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.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/pingram/api/account_api.rb +26 -0
  4. data/lib/pingram/api/accounts_api.rb +76 -0
  5. data/lib/pingram/api/broadcasts_api.rb +28 -0
  6. data/lib/pingram/api/default_api.rb +2 -0
  7. data/lib/pingram/api/domains_api.rb +12 -4
  8. data/lib/pingram/api/editor_api.rb +2 -0
  9. data/lib/pingram/api/email_api.rb +4 -0
  10. data/lib/pingram/api/environments_api.rb +2 -0
  11. data/lib/pingram/api/health_api.rb +2 -0
  12. data/lib/pingram/api/library_api.rb +4 -0
  13. data/lib/pingram/api/logs_api.rb +12 -0
  14. data/lib/pingram/api/members_api.rb +2 -0
  15. data/lib/pingram/api/numbers_api.rb +10 -0
  16. data/lib/pingram/api/registrations_api.rb +10 -0
  17. data/lib/pingram/api/sender_api.rb +2 -0
  18. data/lib/pingram/api/sms_api.rb +2 -0
  19. data/lib/pingram/api/sub_notifications_api.rb +4 -0
  20. data/lib/pingram/api/user_api.rb +6 -0
  21. data/lib/pingram/api/users_api.rb +2 -0
  22. data/lib/pingram/api/voice_api.rb +80 -0
  23. data/lib/pingram/api/webhooks_api.rb +8 -0
  24. data/lib/pingram/api_client.rb +1 -1
  25. data/lib/pingram/models/account_summary.rb +304 -0
  26. data/lib/pingram/models/agent.rb +10 -1
  27. data/lib/pingram/models/agent1.rb +10 -1
  28. data/lib/pingram/models/agent_agent_model.rb +2 -0
  29. data/lib/pingram/models/arm_voice_inbound_claim_request_inbound.rb +2 -0
  30. data/lib/pingram/models/brand_webhook_response.rb +1 -1
  31. data/lib/pingram/models/campaign_webhook_response.rb +1 -1
  32. data/lib/pingram/models/check_domain_dns_request.rb +148 -0
  33. data/lib/pingram/models/domain_dns_check_records_inner.rb +2 -2
  34. data/lib/pingram/models/elevenlabs.rb +207 -0
  35. data/lib/pingram/models/elevenlabs1.rb +207 -0
  36. data/lib/pingram/models/elevenlabs_eleven_realtime_v1_max.rb +251 -0
  37. data/lib/pingram/models/elevenlabs_eleven_realtime_v1_mini.rb +251 -0
  38. data/lib/pingram/models/get_senders_response_inner.rb +68 -4
  39. data/lib/pingram/models/get_senders_response_inner_verification_records.rb +13 -4
  40. data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +2 -2
  41. data/lib/pingram/models/get_voice_call_response_call.rb +30 -1
  42. data/lib/pingram/models/get_voice_call_response_call_setup.rb +272 -0
  43. data/lib/pingram/models/get_voice_call_response_call_setup_stream.rb +190 -0
  44. data/lib/pingram/models/get_voice_call_response_call_setup_transcript.rb +41 -0
  45. data/lib/pingram/models/google_gemini31_flash_live_preview.rb +22 -1
  46. data/lib/pingram/models/inbound_config.rb +2 -0
  47. data/lib/pingram/models/intercom_webhook.rb +1 -1
  48. data/lib/pingram/models/internal_transfer_body.rb +254 -0
  49. data/lib/pingram/models/internal_transfer_body_agent_meters_inner.rb +328 -0
  50. data/lib/pingram/models/list_voice_calls_response_calls_inner.rb +24 -4
  51. data/lib/pingram/models/member_update_request.rb +1 -1
  52. data/lib/pingram/models/openai_gpt_live1.rb +22 -1
  53. data/lib/pingram/models/openai_gpt_realtime21.rb +22 -1
  54. data/lib/pingram/models/openai_gpt_realtime21_mini.rb +22 -1
  55. data/lib/pingram/models/script.rb +10 -1
  56. data/lib/pingram/models/script1.rb +10 -1
  57. data/lib/pingram/models/script_privacy.rb +43 -8
  58. data/lib/pingram/models/script_stream.rb +193 -0
  59. data/lib/pingram/models/sign_in_username_response.rb +1 -1
  60. data/lib/pingram/models/sign_out_request.rb +1 -1
  61. data/lib/pingram/models/sms_compliance_countries_response_countries_inner.rb +1 -1
  62. data/lib/pingram/models/sms_compliance_country.rb +1 -1
  63. data/lib/pingram/models/stream.rb +207 -0
  64. data/lib/pingram/models/ten_dlc_brand_admin_update_request.rb +1 -1
  65. data/lib/pingram/models/transfer1.rb +40 -1
  66. data/lib/pingram/models/transfer_call_request.rb +196 -0
  67. data/lib/pingram/models/transfer_destinations_inner.rb +25 -56
  68. data/lib/pingram/models/update_account_request.rb +184 -0
  69. data/lib/pingram/models/voice_browser_call_request_config_any_of.rb +3 -1
  70. data/lib/pingram/models/voice_call_response.rb +32 -5
  71. data/lib/pingram/version.rb +1 -1
  72. data/lib/pingram.rb +15 -0
  73. data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.2.gem +0 -0
  74. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/CHANGELOG.md +45 -1
  75. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/README.md +55 -8
  76. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curl.rb +44 -0
  77. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/easy/form.rb +261 -0
  78. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/informations.rb +30 -0
  79. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mirror.rb +7 -1
  80. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/options.rb +11 -7
  81. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/queryable.rb +5 -0
  82. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/errors/fork_safety.rb +10 -0
  83. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/libc.rb +5 -0
  84. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.2/lib/ethon/multipart.rb +115 -0
  85. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/version.rb +1 -1
  86. data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon.rb +1 -0
  87. data/vendor/bundle/ruby/3.2.0/specifications/{ethon-0.19.1.gemspec → ethon-0.19.2.gemspec} +4 -4
  88. metadata +104 -88
  89. data/vendor/bundle/ruby/3.2.0/cache/ethon-0.19.1.gem +0 -0
  90. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/easy/form.rb +0 -166
  91. data/vendor/bundle/ruby/3.2.0/gems/ethon-0.19.1/lib/ethon/errors/fork_safety.rb +0 -10
  92. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/LICENSE +0 -0
  93. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/ethon.gemspec +0 -0
  94. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/classes.rb +0 -0
  95. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/codes.rb +0 -0
  96. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/constants.rb +0 -0
  97. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/form_options.rb +0 -0
  98. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/functions.rb +0 -0
  99. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/infos.rb +0 -0
  100. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection.rb +0 -0
  101. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/introspection_constants.rb +0 -0
  102. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/messages.rb +0 -0
  103. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/mime.rb +0 -0
  104. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/optional.rb +0 -0
  105. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/options.rb +0 -0
  106. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/settings.rb +0 -0
  107. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share.rb +0 -0
  108. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/share_constants.rb +0 -0
  109. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url.rb +0 -0
  110. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/curls/url_constants.rb +0 -0
  111. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/callbacks.rb +0 -0
  112. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/debug_info.rb +0 -0
  113. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/features.rb +0 -0
  114. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/files.rb +0 -0
  115. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/header.rb +0 -0
  116. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/headers_api.rb +0 -0
  117. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/actionable.rb +0 -0
  118. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/custom.rb +0 -0
  119. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/delete.rb +0 -0
  120. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/get.rb +0 -0
  121. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/head.rb +0 -0
  122. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/options.rb +0 -0
  123. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/patch.rb +0 -0
  124. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/post.rb +0 -0
  125. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/postable.rb +0 -0
  126. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/put.rb +0 -0
  127. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http/putable.rb +0 -0
  128. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/http.rb +0 -0
  129. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/mime.rb +0 -0
  130. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/operations.rb +0 -0
  131. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/params.rb +0 -0
  132. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/response_callbacks.rb +0 -0
  133. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/share.rb +0 -0
  134. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/url.rb +0 -0
  135. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy/util.rb +0 -0
  136. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/easy.rb +0 -0
  137. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/ethon_error.rb +0 -0
  138. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/form_add.rb +0 -0
  139. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/global_init.rb +0 -0
  140. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/header.rb +0 -0
  141. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_option.rb +0 -0
  142. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/invalid_value.rb +0 -0
  143. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/mime.rb +0 -0
  144. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_add.rb +0 -0
  145. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_assign.rb +0 -0
  146. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_fdset.rb +0 -0
  147. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_perform.rb +0 -0
  148. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_poll.rb +0 -0
  149. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_remove.rb +0 -0
  150. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_timeout.rb +0 -0
  151. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wait.rb +0 -0
  152. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/multi_wakeup.rb +0 -0
  153. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/select.rb +0 -0
  154. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/set_option.rb +0 -0
  155. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/share.rb +0 -0
  156. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/unsupported_option.rb +0 -0
  157. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors/url.rb +0 -0
  158. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/errors.rb +0 -0
  159. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/loggable.rb +0 -0
  160. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/operations.rb +0 -0
  161. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/options.rb +0 -0
  162. /data/vendor/bundle/ruby/3.2.0/gems/{ethon-0.19.1 → ethon-0.19.2}/lib/ethon/multi/stack.rb +0 -0
  163. /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,251 @@
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 ElevenlabsElevenRealtimeV1Mini < ApiModelBase
18
+ attr_accessor :language
19
+
20
+ # Which realtime model processes the call.
21
+ attr_accessor :model
22
+
23
+ attr_accessor :voice_id
24
+
25
+ # How varied replies are. 0 is focused, 1 is more creative. Default: 0.8.
26
+ attr_accessor :temperature
27
+
28
+ # Maximum length of one reply, in tokens. Default: 4096.
29
+ attr_accessor :max_tokens
30
+
31
+ class EnumAttributeValidator
32
+ attr_reader :datatype
33
+ attr_reader :allowable_values
34
+
35
+ def initialize(datatype, allowable_values)
36
+ @allowable_values = allowable_values.map do |value|
37
+ case datatype.to_s
38
+ when /Integer/i
39
+ value.to_i
40
+ when /Float/i
41
+ value.to_f
42
+ else
43
+ value
44
+ end
45
+ end
46
+ end
47
+
48
+ def valid?(value)
49
+ !value || allowable_values.include?(value)
50
+ end
51
+ end
52
+
53
+ # Attribute mapping from ruby-style variable name to JSON key.
54
+ def self.attribute_map
55
+ {
56
+ :'language' => :'language',
57
+ :'model' => :'model',
58
+ :'voice_id' => :'voiceId',
59
+ :'temperature' => :'temperature',
60
+ :'max_tokens' => :'maxTokens'
61
+ }
62
+ end
63
+
64
+ # Returns attribute mapping this model knows about
65
+ def self.acceptable_attribute_map
66
+ attribute_map
67
+ end
68
+
69
+ # Returns all the JSON keys this model knows about
70
+ def self.acceptable_attributes
71
+ acceptable_attribute_map.values
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ def self.openapi_types
76
+ {
77
+ :'language' => :'String',
78
+ :'model' => :'String',
79
+ :'voice_id' => :'String',
80
+ :'temperature' => :'Float',
81
+ :'max_tokens' => :'Float'
82
+ }
83
+ end
84
+
85
+ # List of attributes with nullable: true
86
+ def self.openapi_nullable
87
+ Set.new([
88
+ ])
89
+ end
90
+
91
+ # Initializes the object
92
+ # @param [Hash] attributes Model attributes in the form of hash
93
+ def initialize(attributes = {})
94
+ if (!attributes.is_a?(Hash))
95
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::ElevenlabsElevenRealtimeV1Mini` initialize method"
96
+ end
97
+
98
+ # check to see if the attribute exists and convert string to symbol for hash key
99
+ acceptable_attribute_map = self.class.acceptable_attribute_map
100
+ attributes = attributes.each_with_object({}) { |(k, v), h|
101
+ if (!acceptable_attribute_map.key?(k.to_sym))
102
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::ElevenlabsElevenRealtimeV1Mini`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
103
+ end
104
+ h[k.to_sym] = v
105
+ }
106
+
107
+ if attributes.key?(:'language')
108
+ self.language = attributes[:'language']
109
+ end
110
+
111
+ if attributes.key?(:'model')
112
+ self.model = attributes[:'model']
113
+ else
114
+ self.model = nil
115
+ end
116
+
117
+ if attributes.key?(:'voice_id')
118
+ self.voice_id = attributes[:'voice_id']
119
+ end
120
+
121
+ if attributes.key?(:'temperature')
122
+ self.temperature = attributes[:'temperature']
123
+ end
124
+
125
+ if attributes.key?(:'max_tokens')
126
+ self.max_tokens = attributes[:'max_tokens']
127
+ end
128
+ end
129
+
130
+ # Show invalid properties with the reasons. Usually used together with valid?
131
+ # @return Array for valid properties with the reasons
132
+ def list_invalid_properties
133
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
134
+ invalid_properties = Array.new
135
+ if @model.nil?
136
+ invalid_properties.push('invalid value for "model", model cannot be nil.')
137
+ end
138
+
139
+ invalid_properties
140
+ end
141
+
142
+ # Check to see if the all the properties in the model are valid
143
+ # @return true if the model is valid
144
+ def valid?
145
+ warn '[DEPRECATED] the `valid?` method is obsolete'
146
+ language_validator = EnumAttributeValidator.new('String', ["en", "ar", "bg", "zh", "hr", "cs", "da", "nl", "fil", "fi", "fr", "de", "el", "he", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "ta", "tr", "uk", "vi"])
147
+ return false unless language_validator.valid?(@language)
148
+ return false if @model.nil?
149
+ model_validator = EnumAttributeValidator.new('String', ["elevenlabs:eleven_realtime_v1_mini"])
150
+ return false unless model_validator.valid?(@model)
151
+ voice_id_validator = EnumAttributeValidator.new('String', ["brian", "rachel", "adam", "antoni", "elli", "josh", "bella", "charlotte", "dTmTLshIypwp08eftJH6", "M8xXPW1xIZVqZLxYby5T", "KbgdAMqTSb5aaLUaXEm2"])
152
+ return false unless voice_id_validator.valid?(@voice_id)
153
+ true
154
+ end
155
+
156
+ # Custom attribute writer method checking allowed values (enum).
157
+ # @param [Object] language Object to be assigned
158
+ def language=(language)
159
+ validator = EnumAttributeValidator.new('String', ["en", "ar", "bg", "zh", "hr", "cs", "da", "nl", "fil", "fi", "fr", "de", "el", "he", "hi", "hu", "id", "it", "ja", "ko", "ms", "no", "pl", "pt", "ro", "ru", "sk", "es", "sv", "ta", "tr", "uk", "vi"])
160
+ unless validator.valid?(language)
161
+ fail ArgumentError, "invalid value for \"language\", must be one of #{validator.allowable_values}."
162
+ end
163
+ @language = language
164
+ end
165
+
166
+ # Custom attribute writer method checking allowed values (enum).
167
+ # @param [Object] model Object to be assigned
168
+ def model=(model)
169
+ validator = EnumAttributeValidator.new('String', ["elevenlabs:eleven_realtime_v1_mini"])
170
+ unless validator.valid?(model)
171
+ fail ArgumentError, "invalid value for \"model\", must be one of #{validator.allowable_values}."
172
+ end
173
+ @model = model
174
+ end
175
+
176
+ # Custom attribute writer method checking allowed values (enum).
177
+ # @param [Object] voice_id Object to be assigned
178
+ def voice_id=(voice_id)
179
+ validator = EnumAttributeValidator.new('String', ["brian", "rachel", "adam", "antoni", "elli", "josh", "bella", "charlotte", "dTmTLshIypwp08eftJH6", "M8xXPW1xIZVqZLxYby5T", "KbgdAMqTSb5aaLUaXEm2"])
180
+ unless validator.valid?(voice_id)
181
+ fail ArgumentError, "invalid value for \"voice_id\", must be one of #{validator.allowable_values}."
182
+ end
183
+ @voice_id = voice_id
184
+ end
185
+
186
+ # Checks equality by comparing each attribute.
187
+ # @param [Object] Object to be compared
188
+ def ==(o)
189
+ return true if self.equal?(o)
190
+ self.class == o.class &&
191
+ language == o.language &&
192
+ model == o.model &&
193
+ voice_id == o.voice_id &&
194
+ temperature == o.temperature &&
195
+ max_tokens == o.max_tokens
196
+ end
197
+
198
+ # @see the `==` method
199
+ # @param [Object] Object to be compared
200
+ def eql?(o)
201
+ self == o
202
+ end
203
+
204
+ # Calculates hash code according to all attributes.
205
+ # @return [Integer] Hash code
206
+ def hash
207
+ [language, model, voice_id, temperature, max_tokens].hash
208
+ end
209
+
210
+ # Builds the object from hash
211
+ # @param [Hash] attributes Model attributes in the form of hash
212
+ # @return [Object] Returns the model itself
213
+ def self.build_from_hash(attributes)
214
+ return nil unless attributes.is_a?(Hash)
215
+ attributes = attributes.transform_keys(&:to_sym)
216
+ transformed_hash = {}
217
+ openapi_types.each_pair do |key, type|
218
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
219
+ transformed_hash["#{key}"] = nil
220
+ elsif type =~ /\AArray<(.*)>/i
221
+ # check to ensure the input is an array given that the attribute
222
+ # is documented as an array but the input is not
223
+ if attributes[attribute_map[key]].is_a?(Array)
224
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
225
+ end
226
+ elsif !attributes[attribute_map[key]].nil?
227
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
228
+ end
229
+ end
230
+ new(transformed_hash)
231
+ end
232
+
233
+ # Returns the object in the form of hash
234
+ # @return [Hash] Returns the object in the form of hash
235
+ def to_hash
236
+ hash = {}
237
+ self.class.attribute_map.each_pair do |attr, param|
238
+ value = self.send(attr)
239
+ if value.nil?
240
+ is_nullable = self.class.openapi_nullable.include?(attr)
241
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
242
+ end
243
+
244
+ hash[param] = _to_hash(value)
245
+ end
246
+ hash
247
+ end
248
+
249
+ end
250
+
251
+ end
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module Pingram
17
17
  class GetSendersResponseInner < ApiModelBase
18
+ # What is still missing before new mail can use the tracking subdomain.
19
+ attr_accessor :waiting_for
20
+
18
21
  attr_accessor :sender
19
22
 
20
23
  attr_accessor :status
@@ -35,6 +38,15 @@ module Pingram
35
38
 
36
39
  attr_accessor :verification_records
37
40
 
41
+ # Subdomain recipients see on click tracking, the open pixel, and the unsubscribe page, such as links.
42
+ attr_accessor :tracking_subdomain
43
+
44
+ # Whether tracked links on this subdomain are not started, waiting, active, or failed.
45
+ attr_accessor :tracking_status
46
+
47
+ # Why tracked links on this subdomain are not active, when setup did not succeed.
48
+ attr_accessor :tracking_failure_reason
49
+
38
50
  class EnumAttributeValidator
39
51
  attr_reader :datatype
40
52
  attr_reader :allowable_values
@@ -60,6 +72,7 @@ module Pingram
60
72
  # Attribute mapping from ruby-style variable name to JSON key.
61
73
  def self.attribute_map
62
74
  {
75
+ :'waiting_for' => :'waitingFor',
63
76
  :'sender' => :'sender',
64
77
  :'status' => :'status',
65
78
  :'last_sync' => :'lastSync',
@@ -69,7 +82,10 @@ module Pingram
69
82
  :'private_dkim_key' => :'privateDKIMKey',
70
83
  :'reminder_sent_at' => :'reminderSentAt',
71
84
  :'selector' => :'selector',
72
- :'verification_records' => :'verificationRecords'
85
+ :'verification_records' => :'verificationRecords',
86
+ :'tracking_subdomain' => :'trackingSubdomain',
87
+ :'tracking_status' => :'trackingStatus',
88
+ :'tracking_failure_reason' => :'trackingFailureReason'
73
89
  }
74
90
  end
75
91
 
@@ -86,6 +102,7 @@ module Pingram
86
102
  # Attribute type mapping.
87
103
  def self.openapi_types
88
104
  {
105
+ :'waiting_for' => :'String',
89
106
  :'sender' => :'String',
90
107
  :'status' => :'String',
91
108
  :'last_sync' => :'Time',
@@ -95,7 +112,10 @@ module Pingram
95
112
  :'private_dkim_key' => :'String',
96
113
  :'reminder_sent_at' => :'String',
97
114
  :'selector' => :'String',
98
- :'verification_records' => :'GetSendersResponseInnerVerificationRecords'
115
+ :'verification_records' => :'GetSendersResponseInnerVerificationRecords',
116
+ :'tracking_subdomain' => :'String',
117
+ :'tracking_status' => :'String',
118
+ :'tracking_failure_reason' => :'String'
99
119
  }
100
120
  end
101
121
 
@@ -121,6 +141,10 @@ module Pingram
121
141
  h[k.to_sym] = v
122
142
  }
123
143
 
144
+ if attributes.key?(:'waiting_for')
145
+ self.waiting_for = attributes[:'waiting_for']
146
+ end
147
+
124
148
  if attributes.key?(:'sender')
125
149
  self.sender = attributes[:'sender']
126
150
  else
@@ -172,6 +196,18 @@ module Pingram
172
196
  if attributes.key?(:'verification_records')
173
197
  self.verification_records = attributes[:'verification_records']
174
198
  end
199
+
200
+ if attributes.key?(:'tracking_subdomain')
201
+ self.tracking_subdomain = attributes[:'tracking_subdomain']
202
+ end
203
+
204
+ if attributes.key?(:'tracking_status')
205
+ self.tracking_status = attributes[:'tracking_status']
206
+ end
207
+
208
+ if attributes.key?(:'tracking_failure_reason')
209
+ self.tracking_failure_reason = attributes[:'tracking_failure_reason']
210
+ end
175
211
  end
176
212
 
177
213
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -215,6 +251,10 @@ module Pingram
215
251
  return false unless mail_from_domain_status_validator.valid?(@mail_from_domain_status)
216
252
  return false if @created_at.nil?
217
253
  return false if @selector.nil?
254
+ tracking_status_validator = EnumAttributeValidator.new('String', ["NOT_STARTED", "PENDING", "ACTIVE", "FAILED"])
255
+ return false unless tracking_status_validator.valid?(@tracking_status)
256
+ tracking_failure_reason_validator = EnumAttributeValidator.new('String', ["cname_missing", "cname_proxied", "cname_conflict", "cert_failed", "probe_failed", "dkim_lost"])
257
+ return false unless tracking_failure_reason_validator.valid?(@tracking_failure_reason)
218
258
  true
219
259
  end
220
260
 
@@ -278,11 +318,32 @@ module Pingram
278
318
  @selector = selector
279
319
  end
280
320
 
321
+ # Custom attribute writer method checking allowed values (enum).
322
+ # @param [Object] tracking_status Object to be assigned
323
+ def tracking_status=(tracking_status)
324
+ validator = EnumAttributeValidator.new('String', ["NOT_STARTED", "PENDING", "ACTIVE", "FAILED"])
325
+ unless validator.valid?(tracking_status)
326
+ fail ArgumentError, "invalid value for \"tracking_status\", must be one of #{validator.allowable_values}."
327
+ end
328
+ @tracking_status = tracking_status
329
+ end
330
+
331
+ # Custom attribute writer method checking allowed values (enum).
332
+ # @param [Object] tracking_failure_reason Object to be assigned
333
+ def tracking_failure_reason=(tracking_failure_reason)
334
+ validator = EnumAttributeValidator.new('String', ["cname_missing", "cname_proxied", "cname_conflict", "cert_failed", "probe_failed", "dkim_lost"])
335
+ unless validator.valid?(tracking_failure_reason)
336
+ fail ArgumentError, "invalid value for \"tracking_failure_reason\", must be one of #{validator.allowable_values}."
337
+ end
338
+ @tracking_failure_reason = tracking_failure_reason
339
+ end
340
+
281
341
  # Checks equality by comparing each attribute.
282
342
  # @param [Object] Object to be compared
283
343
  def ==(o)
284
344
  return true if self.equal?(o)
285
345
  self.class == o.class &&
346
+ waiting_for == o.waiting_for &&
286
347
  sender == o.sender &&
287
348
  status == o.status &&
288
349
  last_sync == o.last_sync &&
@@ -292,7 +353,10 @@ module Pingram
292
353
  private_dkim_key == o.private_dkim_key &&
293
354
  reminder_sent_at == o.reminder_sent_at &&
294
355
  selector == o.selector &&
295
- verification_records == o.verification_records
356
+ verification_records == o.verification_records &&
357
+ tracking_subdomain == o.tracking_subdomain &&
358
+ tracking_status == o.tracking_status &&
359
+ tracking_failure_reason == o.tracking_failure_reason
296
360
  end
297
361
 
298
362
  # @see the `==` method
@@ -304,7 +368,7 @@ module Pingram
304
368
  # Calculates hash code according to all attributes.
305
369
  # @return [Integer] Hash code
306
370
  def hash
307
- [sender, status, last_sync, verification_tokens, mail_from_domain_status, created_at, private_dkim_key, reminder_sent_at, selector, verification_records].hash
371
+ [waiting_for, sender, status, last_sync, verification_tokens, mail_from_domain_status, created_at, private_dkim_key, reminder_sent_at, selector, verification_records, tracking_subdomain, tracking_status, tracking_failure_reason].hash
308
372
  end
309
373
 
310
374
  # Builds the object from hash
@@ -26,6 +26,8 @@ module Pingram
26
26
 
27
27
  attr_accessor :inbound_mx
28
28
 
29
+ attr_accessor :tracking_cname
30
+
29
31
  # Attribute mapping from ruby-style variable name to JSON key.
30
32
  def self.attribute_map
31
33
  {
@@ -33,7 +35,8 @@ module Pingram
33
35
  :'mail_from_spf' => :'mail_from_spf',
34
36
  :'mail_from_mx' => :'mail_from_mx',
35
37
  :'dmarc' => :'dmarc',
36
- :'inbound_mx' => :'inbound_mx'
38
+ :'inbound_mx' => :'inbound_mx',
39
+ :'tracking_cname' => :'trackingCname'
37
40
  }
38
41
  end
39
42
 
@@ -54,7 +57,8 @@ module Pingram
54
57
  :'mail_from_spf' => :'GetSendersResponseInnerVerificationRecordsDkim',
55
58
  :'mail_from_mx' => :'GetSendersResponseInnerVerificationRecordsDkim',
56
59
  :'dmarc' => :'GetSendersResponseInnerVerificationRecordsDkim',
57
- :'inbound_mx' => :'GetSendersResponseInnerVerificationRecordsDkim'
60
+ :'inbound_mx' => :'GetSendersResponseInnerVerificationRecordsDkim',
61
+ :'tracking_cname' => :'GetSendersResponseInnerVerificationRecordsDkim'
58
62
  }
59
63
  end
60
64
 
@@ -99,6 +103,10 @@ module Pingram
99
103
  if attributes.key?(:'inbound_mx')
100
104
  self.inbound_mx = attributes[:'inbound_mx']
101
105
  end
106
+
107
+ if attributes.key?(:'tracking_cname')
108
+ self.tracking_cname = attributes[:'tracking_cname']
109
+ end
102
110
  end
103
111
 
104
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -125,7 +133,8 @@ module Pingram
125
133
  mail_from_spf == o.mail_from_spf &&
126
134
  mail_from_mx == o.mail_from_mx &&
127
135
  dmarc == o.dmarc &&
128
- inbound_mx == o.inbound_mx
136
+ inbound_mx == o.inbound_mx &&
137
+ tracking_cname == o.tracking_cname
129
138
  end
130
139
 
131
140
  # @see the `==` method
@@ -137,7 +146,7 @@ module Pingram
137
146
  # Calculates hash code according to all attributes.
138
147
  # @return [Integer] Hash code
139
148
  def hash
140
- [dkim, mail_from_spf, mail_from_mx, dmarc, inbound_mx].hash
149
+ [dkim, mail_from_spf, mail_from_mx, dmarc, inbound_mx, tracking_cname].hash
141
150
  end
142
151
 
143
152
  # Builds the object from hash
@@ -170,7 +170,7 @@ module Pingram
170
170
  def valid?
171
171
  warn '[DEPRECATED] the `valid?` method is obsolete'
172
172
  return false if @record_type.nil?
173
- record_type_validator = EnumAttributeValidator.new('String', ["TXT", "MX"])
173
+ record_type_validator = EnumAttributeValidator.new('String', ["TXT", "MX", "CNAME"])
174
174
  return false unless record_type_validator.valid?(@record_type)
175
175
  return false if @record_name.nil?
176
176
  return false if @host.nil?
@@ -181,7 +181,7 @@ module Pingram
181
181
  # Custom attribute writer method checking allowed values (enum).
182
182
  # @param [Object] record_type Object to be assigned
183
183
  def record_type=(record_type)
184
- validator = EnumAttributeValidator.new('String', ["TXT", "MX"])
184
+ validator = EnumAttributeValidator.new('String', ["TXT", "MX", "CNAME"])
185
185
  unless validator.valid?(record_type)
186
186
  fail ArgumentError, "invalid value for \"record_type\", must be one of #{validator.allowable_values}."
187
187
  end
@@ -44,11 +44,19 @@ module Pingram
44
44
  # Short human-readable detail, such as why the call failed.
45
45
  attr_accessor :end_detail
46
46
 
47
+ # Live call socket. Present while the call is active.
48
+ attr_accessor :websocket
49
+
50
+ # Token for the live call socket. Present while the call is active.
51
+ attr_accessor :token
52
+
47
53
  # Full chronological timeline (transcript + ops events).
48
54
  attr_accessor :timeline
49
55
 
50
56
  attr_accessor :recording_url
51
57
 
58
+ attr_accessor :setup
59
+
52
60
  attr_accessor :variables
53
61
 
54
62
  attr_accessor :cost
@@ -91,8 +99,11 @@ module Pingram
91
99
  :'outcome' => :'outcome',
92
100
  :'end_reason' => :'endReason',
93
101
  :'end_detail' => :'endDetail',
102
+ :'websocket' => :'websocket',
103
+ :'token' => :'token',
94
104
  :'timeline' => :'timeline',
95
105
  :'recording_url' => :'recordingUrl',
106
+ :'setup' => :'setup',
96
107
  :'variables' => :'variables',
97
108
  :'cost' => :'cost'
98
109
  }
@@ -124,8 +135,11 @@ module Pingram
124
135
  :'outcome' => :'String',
125
136
  :'end_reason' => :'String',
126
137
  :'end_detail' => :'String',
138
+ :'websocket' => :'String',
139
+ :'token' => :'String',
127
140
  :'timeline' => :'Array<GetVoiceCallResponseCallTimelineInner>',
128
141
  :'recording_url' => :'String',
142
+ :'setup' => :'GetVoiceCallResponseCallSetup',
129
143
  :'variables' => :'Hash<String, String>',
130
144
  :'cost' => :'GetVoiceCallResponseCallCost'
131
145
  }
@@ -223,6 +237,14 @@ module Pingram
223
237
  self.end_detail = attributes[:'end_detail']
224
238
  end
225
239
 
240
+ if attributes.key?(:'websocket')
241
+ self.websocket = attributes[:'websocket']
242
+ end
243
+
244
+ if attributes.key?(:'token')
245
+ self.token = attributes[:'token']
246
+ end
247
+
226
248
  if attributes.key?(:'timeline')
227
249
  if (value = attributes[:'timeline']).is_a?(Array)
228
250
  self.timeline = value
@@ -235,6 +257,10 @@ module Pingram
235
257
  self.recording_url = attributes[:'recording_url']
236
258
  end
237
259
 
260
+ if attributes.key?(:'setup')
261
+ self.setup = attributes[:'setup']
262
+ end
263
+
238
264
  if attributes.key?(:'variables')
239
265
  if (value = attributes[:'variables']).is_a?(Hash)
240
266
  self.variables = value
@@ -459,8 +485,11 @@ module Pingram
459
485
  outcome == o.outcome &&
460
486
  end_reason == o.end_reason &&
461
487
  end_detail == o.end_detail &&
488
+ websocket == o.websocket &&
489
+ token == o.token &&
462
490
  timeline == o.timeline &&
463
491
  recording_url == o.recording_url &&
492
+ setup == o.setup &&
464
493
  variables == o.variables &&
465
494
  cost == o.cost
466
495
  end
@@ -474,7 +503,7 @@ module Pingram
474
503
  # Calculates hash code according to all attributes.
475
504
  # @return [Integer] Hash code
476
505
  def hash
477
- [tracking_id, status, config_name, direction, source, from, to, started_at, answered_at, duration_seconds, outcome, end_reason, end_detail, timeline, recording_url, variables, cost].hash
506
+ [tracking_id, status, config_name, direction, source, from, to, started_at, answered_at, duration_seconds, outcome, end_reason, end_detail, websocket, token, timeline, recording_url, setup, variables, cost].hash
478
507
  end
479
508
 
480
509
  # Builds the object from hash