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
@@ -19,6 +19,7 @@ module Pingram
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Create a webhook endpoint on a server outside Pingram
22
23
  # Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
23
24
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
24
25
  # @param [Hash] opts the optional parameters
@@ -28,6 +29,7 @@ module Pingram
28
29
  data
29
30
  end
30
31
 
32
+ # Create a webhook endpoint on a server outside Pingram
31
33
  # Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
32
34
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
33
35
  # @param [Hash] opts the optional parameters
@@ -85,6 +87,7 @@ module Pingram
85
87
  return data, status_code, headers
86
88
  end
87
89
 
90
+ # Delete one webhook endpoint by id from list or create
88
91
  # Delete one webhook endpoint by id from list or create. That URL stops receiving its events. Other endpoints on the account are left as they are.
89
92
  # @param endpoint_id [String] Id of the webhook endpoint, from list or create.
90
93
  # @param [Hash] opts the optional parameters
@@ -94,6 +97,7 @@ module Pingram
94
97
  nil
95
98
  end
96
99
 
100
+ # Delete one webhook endpoint by id from list or create
97
101
  # Delete one webhook endpoint by id from list or create. That URL stops receiving its events. Other endpoints on the account are left as they are.
98
102
  # @param endpoint_id [String] Id of the webhook endpoint, from list or create.
99
103
  # @param [Hash] opts the optional parameters
@@ -146,6 +150,7 @@ module Pingram
146
150
  return data, status_code, headers
147
151
  end
148
152
 
153
+ # List webhook endpoints
149
154
  # List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
150
155
  # @param [Hash] opts the optional parameters
151
156
  # @return [WebhookEndpointsResponse]
@@ -154,6 +159,7 @@ module Pingram
154
159
  data
155
160
  end
156
161
 
162
+ # List webhook endpoints
157
163
  # List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
158
164
  # @param [Hash] opts the optional parameters
159
165
  # @return [Array<(WebhookEndpointsResponse, Integer, Hash)>] WebhookEndpointsResponse data, response status code and response headers
@@ -201,6 +207,7 @@ module Pingram
201
207
  return data, status_code, headers
202
208
  end
203
209
 
210
+ # Replace a webhook endpoint
204
211
  # Replace one webhook endpoint's URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
205
212
  # @param endpoint_id [String] Id of the webhook endpoint, from list or create.
206
213
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
@@ -211,6 +218,7 @@ module Pingram
211
218
  data
212
219
  end
213
220
 
221
+ # Replace a webhook endpoint
214
222
  # Replace one webhook endpoint&#39;s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
215
223
  # @param endpoint_id [String] Id of the webhook endpoint, from list or create.
216
224
  # @param webhook_endpoint_upsert_request [WebhookEndpointUpsertRequest]
@@ -32,7 +32,7 @@ module Pingram
32
32
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
33
33
  def initialize(config = Configuration.default)
34
34
  @config = config
35
- @user_agent = "pingram-ruby/1.0.42"
35
+ @user_agent = "pingram-ruby/1.0.43"
36
36
  @default_headers = {
37
37
  'Content-Type' => 'application/json',
38
38
  'User-Agent' => @user_agent
@@ -0,0 +1,304 @@
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
+ # Summary of an account the user can access (GET /accounts).
18
+ class AccountSummary < ApiModelBase
19
+ attr_accessor :account_id
20
+
21
+ attr_accessor :name
22
+
23
+ attr_accessor :account_type
24
+
25
+ attr_accessor :created_at
26
+
27
+ attr_accessor :status
28
+
29
+ attr_accessor :cost_cap
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
+ :'account_id' => :'accountId',
57
+ :'name' => :'name',
58
+ :'account_type' => :'accountType',
59
+ :'created_at' => :'createdAt',
60
+ :'status' => :'status',
61
+ :'cost_cap' => :'costCap'
62
+ }
63
+ end
64
+
65
+ # Returns attribute mapping this model knows about
66
+ def self.acceptable_attribute_map
67
+ attribute_map
68
+ end
69
+
70
+ # Returns all the JSON keys this model knows about
71
+ def self.acceptable_attributes
72
+ acceptable_attribute_map.values
73
+ end
74
+
75
+ # Attribute type mapping.
76
+ def self.openapi_types
77
+ {
78
+ :'account_id' => :'String',
79
+ :'name' => :'String',
80
+ :'account_type' => :'String',
81
+ :'created_at' => :'String',
82
+ :'status' => :'String',
83
+ :'cost_cap' => :'Float'
84
+ }
85
+ end
86
+
87
+ # List of attributes with nullable: true
88
+ def self.openapi_nullable
89
+ Set.new([
90
+ ])
91
+ end
92
+
93
+ # Initializes the object
94
+ # @param [Hash] attributes Model attributes in the form of hash
95
+ def initialize(attributes = {})
96
+ if (!attributes.is_a?(Hash))
97
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::AccountSummary` initialize method"
98
+ end
99
+
100
+ # check to see if the attribute exists and convert string to symbol for hash key
101
+ acceptable_attribute_map = self.class.acceptable_attribute_map
102
+ attributes = attributes.each_with_object({}) { |(k, v), h|
103
+ if (!acceptable_attribute_map.key?(k.to_sym))
104
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::AccountSummary`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
105
+ end
106
+ h[k.to_sym] = v
107
+ }
108
+
109
+ if attributes.key?(:'account_id')
110
+ self.account_id = attributes[:'account_id']
111
+ else
112
+ self.account_id = nil
113
+ end
114
+
115
+ if attributes.key?(:'name')
116
+ self.name = attributes[:'name']
117
+ end
118
+
119
+ if attributes.key?(:'account_type')
120
+ self.account_type = attributes[:'account_type']
121
+ else
122
+ self.account_type = nil
123
+ end
124
+
125
+ if attributes.key?(:'created_at')
126
+ self.created_at = attributes[:'created_at']
127
+ else
128
+ self.created_at = nil
129
+ end
130
+
131
+ if attributes.key?(:'status')
132
+ self.status = attributes[:'status']
133
+ else
134
+ self.status = nil
135
+ end
136
+
137
+ if attributes.key?(:'cost_cap')
138
+ self.cost_cap = attributes[:'cost_cap']
139
+ else
140
+ self.cost_cap = nil
141
+ end
142
+ end
143
+
144
+ # Show invalid properties with the reasons. Usually used together with valid?
145
+ # @return Array for valid properties with the reasons
146
+ def list_invalid_properties
147
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
148
+ invalid_properties = Array.new
149
+ if @account_id.nil?
150
+ invalid_properties.push('invalid value for "account_id", account_id cannot be nil.')
151
+ end
152
+
153
+ if @account_type.nil?
154
+ invalid_properties.push('invalid value for "account_type", account_type cannot be nil.')
155
+ end
156
+
157
+ if @created_at.nil?
158
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
159
+ end
160
+
161
+ if @status.nil?
162
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
163
+ end
164
+
165
+ if @cost_cap.nil?
166
+ invalid_properties.push('invalid value for "cost_cap", cost_cap cannot be nil.')
167
+ end
168
+
169
+ invalid_properties
170
+ end
171
+
172
+ # Check to see if the all the properties in the model are valid
173
+ # @return true if the model is valid
174
+ def valid?
175
+ warn '[DEPRECATED] the `valid?` method is obsolete'
176
+ return false if @account_id.nil?
177
+ return false if @account_type.nil?
178
+ account_type_validator = EnumAttributeValidator.new('String', ["free", "paid"])
179
+ return false unless account_type_validator.valid?(@account_type)
180
+ return false if @created_at.nil?
181
+ return false if @status.nil?
182
+ status_validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
183
+ return false unless status_validator.valid?(@status)
184
+ return false if @cost_cap.nil?
185
+ true
186
+ end
187
+
188
+ # Custom attribute writer method with validation
189
+ # @param [Object] account_id Value to be assigned
190
+ def account_id=(account_id)
191
+ if account_id.nil?
192
+ fail ArgumentError, 'account_id cannot be nil'
193
+ end
194
+
195
+ @account_id = account_id
196
+ end
197
+
198
+ # Custom attribute writer method checking allowed values (enum).
199
+ # @param [Object] account_type Object to be assigned
200
+ def account_type=(account_type)
201
+ validator = EnumAttributeValidator.new('String', ["free", "paid"])
202
+ unless validator.valid?(account_type)
203
+ fail ArgumentError, "invalid value for \"account_type\", must be one of #{validator.allowable_values}."
204
+ end
205
+ @account_type = account_type
206
+ end
207
+
208
+ # Custom attribute writer method with validation
209
+ # @param [Object] created_at Value to be assigned
210
+ def created_at=(created_at)
211
+ if created_at.nil?
212
+ fail ArgumentError, 'created_at cannot be nil'
213
+ end
214
+
215
+ @created_at = created_at
216
+ end
217
+
218
+ # Custom attribute writer method checking allowed values (enum).
219
+ # @param [Object] status Object to be assigned
220
+ def status=(status)
221
+ validator = EnumAttributeValidator.new('String', ["verified", "unverified", "blocked"])
222
+ unless validator.valid?(status)
223
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
224
+ end
225
+ @status = status
226
+ end
227
+
228
+ # Custom attribute writer method with validation
229
+ # @param [Object] cost_cap Value to be assigned
230
+ def cost_cap=(cost_cap)
231
+ if cost_cap.nil?
232
+ fail ArgumentError, 'cost_cap cannot be nil'
233
+ end
234
+
235
+ @cost_cap = cost_cap
236
+ end
237
+
238
+ # Checks equality by comparing each attribute.
239
+ # @param [Object] Object to be compared
240
+ def ==(o)
241
+ return true if self.equal?(o)
242
+ self.class == o.class &&
243
+ account_id == o.account_id &&
244
+ name == o.name &&
245
+ account_type == o.account_type &&
246
+ created_at == o.created_at &&
247
+ status == o.status &&
248
+ cost_cap == o.cost_cap
249
+ end
250
+
251
+ # @see the `==` method
252
+ # @param [Object] Object to be compared
253
+ def eql?(o)
254
+ self == o
255
+ end
256
+
257
+ # Calculates hash code according to all attributes.
258
+ # @return [Integer] Hash code
259
+ def hash
260
+ [account_id, name, account_type, created_at, status, cost_cap].hash
261
+ end
262
+
263
+ # Builds the object from hash
264
+ # @param [Hash] attributes Model attributes in the form of hash
265
+ # @return [Object] Returns the model itself
266
+ def self.build_from_hash(attributes)
267
+ return nil unless attributes.is_a?(Hash)
268
+ attributes = attributes.transform_keys(&:to_sym)
269
+ transformed_hash = {}
270
+ openapi_types.each_pair do |key, type|
271
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
272
+ transformed_hash["#{key}"] = nil
273
+ elsif type =~ /\AArray<(.*)>/i
274
+ # check to ensure the input is an array given that the attribute
275
+ # is documented as an array but the input is not
276
+ if attributes[attribute_map[key]].is_a?(Array)
277
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
278
+ end
279
+ elsif !attributes[attribute_map[key]].nil?
280
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
281
+ end
282
+ end
283
+ new(transformed_hash)
284
+ end
285
+
286
+ # Returns the object in the form of hash
287
+ # @return [Hash] Returns the object in the form of hash
288
+ def to_hash
289
+ hash = {}
290
+ self.class.attribute_map.each_pair do |attr, param|
291
+ value = self.send(attr)
292
+ if value.nil?
293
+ is_nullable = self.class.openapi_nullable.include?(attr)
294
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
295
+ end
296
+
297
+ hash[param] = _to_hash(value)
298
+ end
299
+ hash
300
+ end
301
+
302
+ end
303
+
304
+ end
@@ -21,6 +21,8 @@ module Pingram
21
21
 
22
22
  attr_accessor :agent
23
23
 
24
+ attr_accessor :stream
25
+
24
26
  attr_accessor :privacy
25
27
 
26
28
  class EnumAttributeValidator
@@ -51,6 +53,7 @@ module Pingram
51
53
  :'type' => :'type',
52
54
  :'greeting' => :'greeting',
53
55
  :'agent' => :'agent',
56
+ :'stream' => :'stream',
54
57
  :'privacy' => :'privacy'
55
58
  }
56
59
  end
@@ -71,6 +74,7 @@ module Pingram
71
74
  :'type' => :'String',
72
75
  :'greeting' => :'String',
73
76
  :'agent' => :'AgentAgent',
77
+ :'stream' => :'ScriptStream',
74
78
  :'privacy' => :'ScriptPrivacy'
75
79
  }
76
80
  end
@@ -113,6 +117,10 @@ module Pingram
113
117
  self.agent = nil
114
118
  end
115
119
 
120
+ if attributes.key?(:'stream')
121
+ self.stream = attributes[:'stream']
122
+ end
123
+
116
124
  if attributes.key?(:'privacy')
117
125
  self.privacy = attributes[:'privacy']
118
126
  end
@@ -173,6 +181,7 @@ module Pingram
173
181
  type == o.type &&
174
182
  greeting == o.greeting &&
175
183
  agent == o.agent &&
184
+ stream == o.stream &&
176
185
  privacy == o.privacy
177
186
  end
178
187
 
@@ -185,7 +194,7 @@ module Pingram
185
194
  # Calculates hash code according to all attributes.
186
195
  # @return [Integer] Hash code
187
196
  def hash
188
- [type, greeting, agent, privacy].hash
197
+ [type, greeting, agent, stream, privacy].hash
189
198
  end
190
199
 
191
200
  # Builds the object from hash
@@ -26,6 +26,8 @@ module Pingram
26
26
 
27
27
  attr_accessor :agent
28
28
 
29
+ attr_accessor :stream
30
+
29
31
  attr_accessor :privacy
30
32
 
31
33
  class EnumAttributeValidator
@@ -58,6 +60,7 @@ module Pingram
58
60
  :'voicemail_action' => :'voicemailAction',
59
61
  :'voicemail_message' => :'voicemailMessage',
60
62
  :'agent' => :'agent',
63
+ :'stream' => :'stream',
61
64
  :'privacy' => :'privacy'
62
65
  }
63
66
  end
@@ -80,6 +83,7 @@ module Pingram
80
83
  :'voicemail_action' => :'String',
81
84
  :'voicemail_message' => :'String',
82
85
  :'agent' => :'AgentAgent',
86
+ :'stream' => :'ScriptStream',
83
87
  :'privacy' => :'ScriptPrivacy'
84
88
  }
85
89
  end
@@ -130,6 +134,10 @@ module Pingram
130
134
  self.agent = nil
131
135
  end
132
136
 
137
+ if attributes.key?(:'stream')
138
+ self.stream = attributes[:'stream']
139
+ end
140
+
133
141
  if attributes.key?(:'privacy')
134
142
  self.privacy = attributes[:'privacy']
135
143
  end
@@ -204,6 +212,7 @@ module Pingram
204
212
  voicemail_action == o.voicemail_action &&
205
213
  voicemail_message == o.voicemail_message &&
206
214
  agent == o.agent &&
215
+ stream == o.stream &&
207
216
  privacy == o.privacy
208
217
  end
209
218
 
@@ -216,7 +225,7 @@ module Pingram
216
225
  # Calculates hash code according to all attributes.
217
226
  # @return [Integer] Hash code
218
227
  def hash
219
- [type, opener, voicemail_action, voicemail_message, agent, privacy].hash
228
+ [type, opener, voicemail_action, voicemail_message, agent, stream, privacy].hash
220
229
  end
221
230
 
222
231
  # Builds the object from hash
@@ -20,6 +20,8 @@ module Pingram
20
20
  # List of class defined in oneOf (OpenAPI v3)
21
21
  def openapi_one_of
22
22
  [
23
+ :'ElevenlabsElevenRealtimeV1Max',
24
+ :'ElevenlabsElevenRealtimeV1Mini',
23
25
  :'GoogleGemini31FlashLivePreview',
24
26
  :'OpenaiGptLive1',
25
27
  :'OpenaiGptRealtime21',
@@ -21,7 +21,9 @@ module Pingram
21
21
  [
22
22
  :'Agent',
23
23
  :'Disabled',
24
+ :'Elevenlabs',
24
25
  :'Script',
26
+ :'Stream',
25
27
  :'Transfer1'
26
28
  ]
27
29
  end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
- # Response for brand Telnyx webhook handler.
17
+ # Response after a 10DLC brand status webhook.
18
18
  class BrandWebhookResponse < ApiModelBase
19
19
  attr_accessor :message
20
20
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Pingram
17
- # Response for campaign Telnyx webhook handler.
17
+ # Response after a 10DLC campaign status webhook.
18
18
  class CampaignWebhookResponse < ApiModelBase
19
19
  attr_accessor :message
20
20
 
@@ -0,0 +1,148 @@
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 CheckDomainDnsRequest < ApiModelBase
18
+ # Subdomain to check for click tracking, the open pixel, and the unsubscribe page, such as links. Defaults to links on this sending domain.
19
+ attr_accessor :tracking_subdomain
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'tracking_subdomain' => :'trackingSubdomain'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'tracking_subdomain' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::CheckDomainDnsRequest` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::CheckDomainDnsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'tracking_subdomain')
68
+ self.tracking_subdomain = attributes[:'tracking_subdomain']
69
+ end
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properties with the reasons
74
+ def list_invalid_properties
75
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
76
+ invalid_properties = Array.new
77
+ invalid_properties
78
+ end
79
+
80
+ # Check to see if the all the properties in the model are valid
81
+ # @return true if the model is valid
82
+ def valid?
83
+ warn '[DEPRECATED] the `valid?` method is obsolete'
84
+ true
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ tracking_subdomain == o.tracking_subdomain
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Integer] Hash code
103
+ def hash
104
+ [tracking_subdomain].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def self.build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ attributes = attributes.transform_keys(&:to_sym)
113
+ transformed_hash = {}
114
+ openapi_types.each_pair do |key, type|
115
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
116
+ transformed_hash["#{key}"] = nil
117
+ elsif type =~ /\AArray<(.*)>/i
118
+ # check to ensure the input is an array given that the attribute
119
+ # is documented as an array but the input is not
120
+ if attributes[attribute_map[key]].is_a?(Array)
121
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
122
+ end
123
+ elsif !attributes[attribute_map[key]].nil?
124
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
125
+ end
126
+ end
127
+ new(transformed_hash)
128
+ end
129
+
130
+ # Returns the object in the form of hash
131
+ # @return [Hash] Returns the object in the form of hash
132
+ def to_hash
133
+ hash = {}
134
+ self.class.attribute_map.each_pair do |attr, param|
135
+ value = self.send(attr)
136
+ if value.nil?
137
+ is_nullable = self.class.openapi_nullable.include?(attr)
138
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
139
+ end
140
+
141
+ hash[param] = _to_hash(value)
142
+ end
143
+ hash
144
+ end
145
+
146
+ end
147
+
148
+ end
@@ -203,7 +203,7 @@ module Pingram
203
203
  def valid?
204
204
  warn '[DEPRECATED] the `valid?` method is obsolete'
205
205
  return false if @id.nil?
206
- id_validator = EnumAttributeValidator.new('String', ["dkim", "mail_from_spf", "mail_from_mx", "dmarc", "inbound_mx"])
206
+ id_validator = EnumAttributeValidator.new('String', ["dkim", "mail_from_spf", "mail_from_mx", "dmarc", "inbound_mx", "trackingCname"])
207
207
  return false unless id_validator.valid?(@id)
208
208
  return false if @label.nil?
209
209
  return false if @required.nil?
@@ -219,7 +219,7 @@ module Pingram
219
219
  # Custom attribute writer method checking allowed values (enum).
220
220
  # @param [Object] id Object to be assigned
221
221
  def id=(id)
222
- validator = EnumAttributeValidator.new('String', ["dkim", "mail_from_spf", "mail_from_mx", "dmarc", "inbound_mx"])
222
+ validator = EnumAttributeValidator.new('String', ["dkim", "mail_from_spf", "mail_from_mx", "dmarc", "inbound_mx", "trackingCname"])
223
223
  unless validator.valid?(id)
224
224
  fail ArgumentError, "invalid value for \"id\", must be one of #{validator.allowable_values}."
225
225
  end