telnyx 3.0.0a0__py3-none-any.whl

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.

Potentially problematic release.


This version of telnyx might be problematic. Click here for more details.

Files changed (1874) hide show
  1. telnyx/__init__.py +90 -0
  2. telnyx/_base_client.py +1995 -0
  3. telnyx/_client.py +3163 -0
  4. telnyx/_compat.py +219 -0
  5. telnyx/_constants.py +14 -0
  6. telnyx/_exceptions.py +108 -0
  7. telnyx/_files.py +123 -0
  8. telnyx/_models.py +829 -0
  9. telnyx/_qs.py +150 -0
  10. telnyx/_resource.py +43 -0
  11. telnyx/_response.py +830 -0
  12. telnyx/_streaming.py +333 -0
  13. telnyx/_types.py +219 -0
  14. telnyx/_utils/__init__.py +57 -0
  15. telnyx/_utils/_logs.py +25 -0
  16. telnyx/_utils/_proxy.py +65 -0
  17. telnyx/_utils/_reflection.py +42 -0
  18. telnyx/_utils/_resources_proxy.py +24 -0
  19. telnyx/_utils/_streams.py +12 -0
  20. telnyx/_utils/_sync.py +86 -0
  21. telnyx/_utils/_transform.py +447 -0
  22. telnyx/_utils/_typing.py +151 -0
  23. telnyx/_utils/_utils.py +422 -0
  24. telnyx/_version.py +4 -0
  25. telnyx/lib/.keep +4 -0
  26. telnyx/py.typed +0 -0
  27. telnyx/resources/__init__.py +2049 -0
  28. telnyx/resources/access_ip_address.py +452 -0
  29. telnyx/resources/access_ip_ranges.py +370 -0
  30. telnyx/resources/actions/__init__.py +47 -0
  31. telnyx/resources/actions/actions.py +134 -0
  32. telnyx/resources/actions/purchase.py +232 -0
  33. telnyx/resources/actions/register.py +208 -0
  34. telnyx/resources/addresses/__init__.py +33 -0
  35. telnyx/resources/addresses/actions.py +314 -0
  36. telnyx/resources/addresses/addresses.py +660 -0
  37. telnyx/resources/advanced_orders.py +329 -0
  38. telnyx/resources/ai/__init__.py +117 -0
  39. telnyx/resources/ai/ai.py +500 -0
  40. telnyx/resources/ai/assistants/__init__.py +89 -0
  41. telnyx/resources/ai/assistants/assistants.py +1313 -0
  42. telnyx/resources/ai/assistants/canary_deploys.py +448 -0
  43. telnyx/resources/ai/assistants/scheduled_events.py +534 -0
  44. telnyx/resources/ai/assistants/tests/__init__.py +47 -0
  45. telnyx/resources/ai/assistants/tests/runs.py +380 -0
  46. telnyx/resources/ai/assistants/tests/test_suites/__init__.py +33 -0
  47. telnyx/resources/ai/assistants/tests/test_suites/runs.py +304 -0
  48. telnyx/resources/ai/assistants/tests/test_suites/test_suites.py +173 -0
  49. telnyx/resources/ai/assistants/tests/tests.py +759 -0
  50. telnyx/resources/ai/assistants/tools.py +199 -0
  51. telnyx/resources/ai/assistants/versions.py +672 -0
  52. telnyx/resources/ai/audio.py +248 -0
  53. telnyx/resources/ai/chat.py +409 -0
  54. telnyx/resources/ai/clusters.py +597 -0
  55. telnyx/resources/ai/conversations/__init__.py +61 -0
  56. telnyx/resources/ai/conversations/conversations.py +813 -0
  57. telnyx/resources/ai/conversations/insight_groups/__init__.py +33 -0
  58. telnyx/resources/ai/conversations/insight_groups/insight_groups.py +580 -0
  59. telnyx/resources/ai/conversations/insight_groups/insights.py +268 -0
  60. telnyx/resources/ai/conversations/insights.py +554 -0
  61. telnyx/resources/ai/conversations/messages.py +298 -0
  62. telnyx/resources/ai/embeddings/__init__.py +33 -0
  63. telnyx/resources/ai/embeddings/buckets.py +298 -0
  64. telnyx/resources/ai/embeddings/embeddings.py +710 -0
  65. telnyx/resources/ai/fine_tuning/__init__.py +33 -0
  66. telnyx/resources/ai/fine_tuning/fine_tuning.py +102 -0
  67. telnyx/resources/ai/fine_tuning/jobs.py +408 -0
  68. telnyx/resources/audit_events.py +211 -0
  69. telnyx/resources/authentication_providers.py +666 -0
  70. telnyx/resources/available_phone_number_blocks.py +181 -0
  71. telnyx/resources/available_phone_numbers.py +187 -0
  72. telnyx/resources/balance.py +135 -0
  73. telnyx/resources/billing_groups.py +501 -0
  74. telnyx/resources/brand/__init__.py +33 -0
  75. telnyx/resources/brand/brand.py +1316 -0
  76. telnyx/resources/brand/external_vetting.py +389 -0
  77. telnyx/resources/bulk_sim_card_actions.py +288 -0
  78. telnyx/resources/bundle_pricing/__init__.py +47 -0
  79. telnyx/resources/bundle_pricing/billing_bundles.py +296 -0
  80. telnyx/resources/bundle_pricing/bundle_pricing.py +134 -0
  81. telnyx/resources/bundle_pricing/user_bundles.py +686 -0
  82. telnyx/resources/call_control_applications.py +812 -0
  83. telnyx/resources/call_events.py +213 -0
  84. telnyx/resources/calls/__init__.py +33 -0
  85. telnyx/resources/calls/actions.py +7061 -0
  86. telnyx/resources/calls/calls.py +872 -0
  87. telnyx/resources/campaign/__init__.py +47 -0
  88. telnyx/resources/campaign/campaign.py +1064 -0
  89. telnyx/resources/campaign/osr.py +162 -0
  90. telnyx/resources/campaign/usecase.py +169 -0
  91. telnyx/resources/campaign_builder/__init__.py +33 -0
  92. telnyx/resources/campaign_builder/brand.py +171 -0
  93. telnyx/resources/campaign_builder/campaign_builder.py +523 -0
  94. telnyx/resources/channel_zones.py +282 -0
  95. telnyx/resources/charges_breakdown.py +211 -0
  96. telnyx/resources/charges_summary.py +202 -0
  97. telnyx/resources/comments.py +432 -0
  98. telnyx/resources/conferences/__init__.py +33 -0
  99. telnyx/resources/conferences/actions.py +2029 -0
  100. telnyx/resources/conferences/conferences.py +670 -0
  101. telnyx/resources/connections.py +423 -0
  102. telnyx/resources/country_coverage.py +214 -0
  103. telnyx/resources/credential_connections/__init__.py +33 -0
  104. telnyx/resources/credential_connections/actions.py +169 -0
  105. telnyx/resources/credential_connections/credential_connections.py +995 -0
  106. telnyx/resources/custom_storage_credentials.py +441 -0
  107. telnyx/resources/customer_service_records.py +488 -0
  108. telnyx/resources/detail_records.py +207 -0
  109. telnyx/resources/dialogflow_connections.py +514 -0
  110. telnyx/resources/document_links.py +197 -0
  111. telnyx/resources/documents.py +804 -0
  112. telnyx/resources/dynamic_emergency_addresses.py +482 -0
  113. telnyx/resources/dynamic_emergency_endpoints.py +452 -0
  114. telnyx/resources/enum.py +210 -0
  115. telnyx/resources/external_connections/__init__.py +89 -0
  116. telnyx/resources/external_connections/civic_addresses.py +268 -0
  117. telnyx/resources/external_connections/external_connections.py +928 -0
  118. telnyx/resources/external_connections/log_messages.py +355 -0
  119. telnyx/resources/external_connections/phone_numbers.py +387 -0
  120. telnyx/resources/external_connections/releases.py +292 -0
  121. telnyx/resources/external_connections/uploads.py +671 -0
  122. telnyx/resources/fax_applications.py +744 -0
  123. telnyx/resources/faxes/__init__.py +33 -0
  124. telnyx/resources/faxes/actions.py +244 -0
  125. telnyx/resources/faxes/faxes.py +648 -0
  126. telnyx/resources/fqdn_connections.py +921 -0
  127. telnyx/resources/fqdns.py +605 -0
  128. telnyx/resources/global_ip_allowed_ports.py +135 -0
  129. telnyx/resources/global_ip_assignment_health.py +183 -0
  130. telnyx/resources/global_ip_assignments.py +529 -0
  131. telnyx/resources/global_ip_assignments_usage.py +183 -0
  132. telnyx/resources/global_ip_health_check_types.py +135 -0
  133. telnyx/resources/global_ip_health_checks.py +444 -0
  134. telnyx/resources/global_ip_latency.py +181 -0
  135. telnyx/resources/global_ip_protocols.py +135 -0
  136. telnyx/resources/global_ip_usage.py +179 -0
  137. telnyx/resources/global_ips.py +442 -0
  138. telnyx/resources/inbound_channels.py +240 -0
  139. telnyx/resources/integration_secrets.py +400 -0
  140. telnyx/resources/inventory_coverage.py +185 -0
  141. telnyx/resources/invoices.py +288 -0
  142. telnyx/resources/ip_connections.py +899 -0
  143. telnyx/resources/ips.py +575 -0
  144. telnyx/resources/ledger_billing_group_reports.py +264 -0
  145. telnyx/resources/list.py +214 -0
  146. telnyx/resources/managed_accounts/__init__.py +33 -0
  147. telnyx/resources/managed_accounts/actions.py +266 -0
  148. telnyx/resources/managed_accounts/managed_accounts.py +773 -0
  149. telnyx/resources/media.py +678 -0
  150. telnyx/resources/messages/__init__.py +33 -0
  151. telnyx/resources/messages/messages.py +1425 -0
  152. telnyx/resources/messages/rcs.py +199 -0
  153. telnyx/resources/messaging/__init__.py +33 -0
  154. telnyx/resources/messaging/messaging.py +102 -0
  155. telnyx/resources/messaging/rcs/__init__.py +33 -0
  156. telnyx/resources/messaging/rcs/agents.py +368 -0
  157. telnyx/resources/messaging/rcs/rcs.py +389 -0
  158. telnyx/resources/messaging_hosted_number_orders/__init__.py +33 -0
  159. telnyx/resources/messaging_hosted_number_orders/actions.py +207 -0
  160. telnyx/resources/messaging_hosted_number_orders/messaging_hosted_number_orders.py +766 -0
  161. telnyx/resources/messaging_hosted_numbers.py +163 -0
  162. telnyx/resources/messaging_numbers_bulk_updates.py +278 -0
  163. telnyx/resources/messaging_optouts.py +217 -0
  164. telnyx/resources/messaging_profiles/__init__.py +33 -0
  165. telnyx/resources/messaging_profiles/autoresp_configs.py +599 -0
  166. telnyx/resources/messaging_profiles/messaging_profiles.py +1048 -0
  167. telnyx/resources/messaging_tollfree/__init__.py +33 -0
  168. telnyx/resources/messaging_tollfree/messaging_tollfree.py +102 -0
  169. telnyx/resources/messaging_tollfree/verification/__init__.py +33 -0
  170. telnyx/resources/messaging_tollfree/verification/requests.py +922 -0
  171. telnyx/resources/messaging_tollfree/verification/verification.py +102 -0
  172. telnyx/resources/messaging_url_domains.py +177 -0
  173. telnyx/resources/messsages.py +224 -0
  174. telnyx/resources/mobile_network_operators.py +207 -0
  175. telnyx/resources/mobile_push_credentials.py +579 -0
  176. telnyx/resources/network_coverage.py +211 -0
  177. telnyx/resources/networks/__init__.py +33 -0
  178. telnyx/resources/networks/default_gateway.py +335 -0
  179. telnyx/resources/networks/networks.py +666 -0
  180. telnyx/resources/notification_channels.py +585 -0
  181. telnyx/resources/notification_event_conditions.py +201 -0
  182. telnyx/resources/notification_events.py +177 -0
  183. telnyx/resources/notification_profiles.py +511 -0
  184. telnyx/resources/notification_settings.py +472 -0
  185. telnyx/resources/number_block_orders.py +401 -0
  186. telnyx/resources/number_lookup.py +183 -0
  187. telnyx/resources/number_order_phone_numbers.py +461 -0
  188. telnyx/resources/number_orders.py +499 -0
  189. telnyx/resources/number_reservations/__init__.py +33 -0
  190. telnyx/resources/number_reservations/actions.py +167 -0
  191. telnyx/resources/number_reservations/number_reservations.py +410 -0
  192. telnyx/resources/numbers_features.py +169 -0
  193. telnyx/resources/operator_connect/__init__.py +33 -0
  194. telnyx/resources/operator_connect/actions.py +147 -0
  195. telnyx/resources/operator_connect/operator_connect.py +102 -0
  196. telnyx/resources/ota_updates.py +276 -0
  197. telnyx/resources/outbound_voice_profiles.py +821 -0
  198. telnyx/resources/partner_campaigns.py +630 -0
  199. telnyx/resources/payment/__init__.py +33 -0
  200. telnyx/resources/payment/auto_recharge_prefs.py +260 -0
  201. telnyx/resources/payment/payment.py +102 -0
  202. telnyx/resources/phone_number_assignment_by_profile.py +416 -0
  203. telnyx/resources/phone_number_blocks/__init__.py +33 -0
  204. telnyx/resources/phone_number_blocks/jobs.py +377 -0
  205. telnyx/resources/phone_number_blocks/phone_number_blocks.py +102 -0
  206. telnyx/resources/phone_number_campaigns.py +576 -0
  207. telnyx/resources/phone_numbers/__init__.py +103 -0
  208. telnyx/resources/phone_numbers/actions.py +385 -0
  209. telnyx/resources/phone_numbers/csv_downloads.py +375 -0
  210. telnyx/resources/phone_numbers/jobs.py +686 -0
  211. telnyx/resources/phone_numbers/messaging.py +379 -0
  212. telnyx/resources/phone_numbers/phone_numbers.py +854 -0
  213. telnyx/resources/phone_numbers/voice.py +468 -0
  214. telnyx/resources/phone_numbers/voicemail.py +375 -0
  215. telnyx/resources/phone_numbers_regulatory_requirements.py +185 -0
  216. telnyx/resources/portability_checks.py +173 -0
  217. telnyx/resources/porting/__init__.py +61 -0
  218. telnyx/resources/porting/events.py +354 -0
  219. telnyx/resources/porting/loa_configurations.py +815 -0
  220. telnyx/resources/porting/porting.py +231 -0
  221. telnyx/resources/porting/reports.py +378 -0
  222. telnyx/resources/porting_orders/__init__.py +159 -0
  223. telnyx/resources/porting_orders/action_requirements.py +308 -0
  224. telnyx/resources/porting_orders/actions.py +438 -0
  225. telnyx/resources/porting_orders/activation_jobs.py +366 -0
  226. telnyx/resources/porting_orders/additional_documents.py +392 -0
  227. telnyx/resources/porting_orders/associated_phone_numbers.py +411 -0
  228. telnyx/resources/porting_orders/comments.py +264 -0
  229. telnyx/resources/porting_orders/phone_number_blocks.py +405 -0
  230. telnyx/resources/porting_orders/phone_number_configurations.py +294 -0
  231. telnyx/resources/porting_orders/phone_number_extensions.py +413 -0
  232. telnyx/resources/porting_orders/porting_orders.py +1438 -0
  233. telnyx/resources/porting_orders/verification_codes.py +399 -0
  234. telnyx/resources/porting_phone_numbers.py +197 -0
  235. telnyx/resources/portouts/__init__.py +75 -0
  236. telnyx/resources/portouts/comments.py +252 -0
  237. telnyx/resources/portouts/events.py +356 -0
  238. telnyx/resources/portouts/portouts.py +622 -0
  239. telnyx/resources/portouts/reports.py +378 -0
  240. telnyx/resources/portouts/supporting_documents.py +258 -0
  241. telnyx/resources/private_wireless_gateways.py +502 -0
  242. telnyx/resources/public_internet_gateways.py +458 -0
  243. telnyx/resources/queues/__init__.py +33 -0
  244. telnyx/resources/queues/calls.py +266 -0
  245. telnyx/resources/queues/queues.py +195 -0
  246. telnyx/resources/recording_transcriptions.py +301 -0
  247. telnyx/resources/recordings/__init__.py +33 -0
  248. telnyx/resources/recordings/actions.py +170 -0
  249. telnyx/resources/recordings/recordings.py +391 -0
  250. telnyx/resources/regions.py +135 -0
  251. telnyx/resources/regulatory_requirements.py +183 -0
  252. telnyx/resources/reports/__init__.py +47 -0
  253. telnyx/resources/reports/cdr_usage_reports.py +205 -0
  254. telnyx/resources/reports/mdr_usage_reports.py +561 -0
  255. telnyx/resources/reports/reports.py +505 -0
  256. telnyx/resources/requirement_groups.py +625 -0
  257. telnyx/resources/requirement_types.py +279 -0
  258. telnyx/resources/requirements.py +315 -0
  259. telnyx/resources/room_compositions.py +516 -0
  260. telnyx/resources/room_participants.py +288 -0
  261. telnyx/resources/room_recordings.py +483 -0
  262. telnyx/resources/rooms/__init__.py +47 -0
  263. telnyx/resources/rooms/actions.py +310 -0
  264. telnyx/resources/rooms/rooms.py +736 -0
  265. telnyx/resources/rooms/sessions/__init__.py +33 -0
  266. telnyx/resources/rooms/sessions/actions.py +489 -0
  267. telnyx/resources/rooms/sessions/sessions.py +605 -0
  268. telnyx/resources/seti.py +179 -0
  269. telnyx/resources/short_codes.py +371 -0
  270. telnyx/resources/sim_card_data_usage_notifications.py +569 -0
  271. telnyx/resources/sim_card_groups/__init__.py +33 -0
  272. telnyx/resources/sim_card_groups/actions.py +690 -0
  273. telnyx/resources/sim_card_groups/sim_card_groups.py +632 -0
  274. telnyx/resources/sim_card_order_preview.py +187 -0
  275. telnyx/resources/sim_card_orders.py +381 -0
  276. telnyx/resources/sim_cards/__init__.py +33 -0
  277. telnyx/resources/sim_cards/actions.py +934 -0
  278. telnyx/resources/sim_cards/sim_cards.py +970 -0
  279. telnyx/resources/siprec_connectors.py +481 -0
  280. telnyx/resources/storage/__init__.py +61 -0
  281. telnyx/resources/storage/buckets/__init__.py +47 -0
  282. telnyx/resources/storage/buckets/buckets.py +257 -0
  283. telnyx/resources/storage/buckets/ssl_certificate.py +365 -0
  284. telnyx/resources/storage/buckets/usage.py +266 -0
  285. telnyx/resources/storage/migration_sources.py +412 -0
  286. telnyx/resources/storage/migrations/__init__.py +33 -0
  287. telnyx/resources/storage/migrations/actions.py +163 -0
  288. telnyx/resources/storage/migrations/migrations.py +371 -0
  289. telnyx/resources/storage/storage.py +231 -0
  290. telnyx/resources/sub_number_orders.py +561 -0
  291. telnyx/resources/sub_number_orders_report.py +388 -0
  292. telnyx/resources/telephony_credentials.py +665 -0
  293. telnyx/resources/texml/__init__.py +47 -0
  294. telnyx/resources/texml/accounts/__init__.py +75 -0
  295. telnyx/resources/texml/accounts/accounts.py +453 -0
  296. telnyx/resources/texml/accounts/calls/__init__.py +75 -0
  297. telnyx/resources/texml/accounts/calls/calls.py +1412 -0
  298. telnyx/resources/texml/accounts/calls/recordings.py +187 -0
  299. telnyx/resources/texml/accounts/calls/recordings_json.py +334 -0
  300. telnyx/resources/texml/accounts/calls/siprec.py +191 -0
  301. telnyx/resources/texml/accounts/calls/streams.py +189 -0
  302. telnyx/resources/texml/accounts/conferences/__init__.py +33 -0
  303. telnyx/resources/texml/accounts/conferences/conferences.py +659 -0
  304. telnyx/resources/texml/accounts/conferences/participants.py +1106 -0
  305. telnyx/resources/texml/accounts/recordings/__init__.py +33 -0
  306. telnyx/resources/texml/accounts/recordings/json.py +255 -0
  307. telnyx/resources/texml/accounts/recordings/recordings.py +102 -0
  308. telnyx/resources/texml/accounts/transcriptions/__init__.py +33 -0
  309. telnyx/resources/texml/accounts/transcriptions/json.py +265 -0
  310. telnyx/resources/texml/accounts/transcriptions/transcriptions.py +102 -0
  311. telnyx/resources/texml/calls.py +632 -0
  312. telnyx/resources/texml/texml.py +259 -0
  313. telnyx/resources/texml_applications.py +808 -0
  314. telnyx/resources/text_to_speech.py +327 -0
  315. telnyx/resources/usage_reports.py +389 -0
  316. telnyx/resources/user_addresses.py +541 -0
  317. telnyx/resources/user_tags.py +177 -0
  318. telnyx/resources/verifications/__init__.py +47 -0
  319. telnyx/resources/verifications/actions.py +195 -0
  320. telnyx/resources/verifications/by_phone_number/__init__.py +33 -0
  321. telnyx/resources/verifications/by_phone_number/actions.py +195 -0
  322. telnyx/resources/verifications/by_phone_number/by_phone_number.py +199 -0
  323. telnyx/resources/verifications/verifications.py +570 -0
  324. telnyx/resources/verified_numbers/__init__.py +33 -0
  325. telnyx/resources/verified_numbers/actions.py +179 -0
  326. telnyx/resources/verified_numbers/verified_numbers.py +469 -0
  327. telnyx/resources/verify_profiles.py +627 -0
  328. telnyx/resources/virtual_cross_connects.py +773 -0
  329. telnyx/resources/virtual_cross_connects_coverage.py +215 -0
  330. telnyx/resources/webhook_deliveries.py +282 -0
  331. telnyx/resources/wireguard_interfaces.py +470 -0
  332. telnyx/resources/wireguard_peers.py +631 -0
  333. telnyx/resources/wireless/__init__.py +33 -0
  334. telnyx/resources/wireless/detail_records_reports.py +450 -0
  335. telnyx/resources/wireless/wireless.py +211 -0
  336. telnyx/resources/wireless_blocklist_values.py +181 -0
  337. telnyx/resources/wireless_blocklists.py +590 -0
  338. telnyx/types/__init__.py +1223 -0
  339. telnyx/types/access_ip_address_create_params.py +13 -0
  340. telnyx/types/access_ip_address_list_params.py +63 -0
  341. telnyx/types/access_ip_address_list_response.py +24 -0
  342. telnyx/types/access_ip_address_response.py +28 -0
  343. telnyx/types/access_ip_range.py +26 -0
  344. telnyx/types/access_ip_range_create_params.py +13 -0
  345. telnyx/types/access_ip_range_list_params.py +83 -0
  346. telnyx/types/access_ip_range_list_response.py +24 -0
  347. telnyx/types/actions/__init__.py +8 -0
  348. telnyx/types/actions/purchase_create_params.py +36 -0
  349. telnyx/types/actions/purchase_create_response.py +35 -0
  350. telnyx/types/actions/register_create_params.py +25 -0
  351. telnyx/types/actions/register_create_response.py +35 -0
  352. telnyx/types/address.py +102 -0
  353. telnyx/types/address_create_params.py +90 -0
  354. telnyx/types/address_create_response.py +12 -0
  355. telnyx/types/address_delete_response.py +12 -0
  356. telnyx/types/address_list_params.py +106 -0
  357. telnyx/types/address_list_response.py +15 -0
  358. telnyx/types/address_retrieve_response.py +12 -0
  359. telnyx/types/addresses/__init__.py +8 -0
  360. telnyx/types/addresses/action_accept_suggestions_params.py +14 -0
  361. telnyx/types/addresses/action_accept_suggestions_response.py +22 -0
  362. telnyx/types/addresses/action_validate_params.py +36 -0
  363. telnyx/types/addresses/action_validate_response.py +64 -0
  364. telnyx/types/advanced_order_create_params.py +24 -0
  365. telnyx/types/ai/__init__.py +87 -0
  366. telnyx/types/ai/assistant_chat_params.py +18 -0
  367. telnyx/types/ai/assistant_chat_response.py +10 -0
  368. telnyx/types/ai/assistant_clone_response.py +92 -0
  369. telnyx/types/ai/assistant_create_params.py +86 -0
  370. telnyx/types/ai/assistant_create_response.py +92 -0
  371. telnyx/types/ai/assistant_delete_response.py +13 -0
  372. telnyx/types/ai/assistant_get_texml_response.py +7 -0
  373. telnyx/types/ai/assistant_import_params.py +19 -0
  374. telnyx/types/ai/assistant_param.py +108 -0
  375. telnyx/types/ai/assistant_retrieve_params.py +19 -0
  376. telnyx/types/ai/assistant_retrieve_response.py +92 -0
  377. telnyx/types/ai/assistant_tool.py +122 -0
  378. telnyx/types/ai/assistant_tool_param.py +123 -0
  379. telnyx/types/ai/assistant_update_params.py +92 -0
  380. telnyx/types/ai/assistants/__init__.py +30 -0
  381. telnyx/types/ai/assistants/assistant_test.py +52 -0
  382. telnyx/types/ai/assistants/canary_deploy_create_params.py +15 -0
  383. telnyx/types/ai/assistants/canary_deploy_response.py +19 -0
  384. telnyx/types/ai/assistants/canary_deploy_update_params.py +15 -0
  385. telnyx/types/ai/assistants/conversation_channel_type.py +7 -0
  386. telnyx/types/ai/assistants/event_status.py +7 -0
  387. telnyx/types/ai/assistants/scheduled_event_create_params.py +35 -0
  388. telnyx/types/ai/assistants/scheduled_event_list_params.py +32 -0
  389. telnyx/types/ai/assistants/scheduled_event_list_response.py +19 -0
  390. telnyx/types/ai/assistants/scheduled_event_response.py +11 -0
  391. telnyx/types/ai/assistants/scheduled_phone_call_event_response.py +38 -0
  392. telnyx/types/ai/assistants/scheduled_sms_event_response.py +38 -0
  393. telnyx/types/ai/assistants/telnyx_conversation_channel.py +7 -0
  394. telnyx/types/ai/assistants/test_create_params.py +72 -0
  395. telnyx/types/ai/assistants/test_list_params.py +32 -0
  396. telnyx/types/ai/assistants/test_list_response.py +18 -0
  397. telnyx/types/ai/assistants/test_update_params.py +47 -0
  398. telnyx/types/ai/assistants/tests/__init__.py +9 -0
  399. telnyx/types/ai/assistants/tests/run_list_params.py +26 -0
  400. telnyx/types/ai/assistants/tests/run_trigger_params.py +16 -0
  401. telnyx/types/ai/assistants/tests/test_run_response.py +76 -0
  402. telnyx/types/ai/assistants/tests/test_status.py +7 -0
  403. telnyx/types/ai/assistants/tests/test_suite_list_response.py +13 -0
  404. telnyx/types/ai/assistants/tests/test_suites/__init__.py +9 -0
  405. telnyx/types/ai/assistants/tests/test_suites/meta.py +15 -0
  406. telnyx/types/ai/assistants/tests/test_suites/paginated_test_run_list.py +17 -0
  407. telnyx/types/ai/assistants/tests/test_suites/run_list_params.py +29 -0
  408. telnyx/types/ai/assistants/tests/test_suites/run_trigger_params.py +16 -0
  409. telnyx/types/ai/assistants/tests/test_suites/run_trigger_response.py +10 -0
  410. telnyx/types/ai/assistants/tool_test_params.py +18 -0
  411. telnyx/types/ai/assistants/tool_test_response.py +24 -0
  412. telnyx/types/ai/assistants/version_config.py +13 -0
  413. telnyx/types/ai/assistants/version_config_param.py +15 -0
  414. telnyx/types/ai/assistants/version_promote_response.py +92 -0
  415. telnyx/types/ai/assistants/version_retrieve_params.py +13 -0
  416. telnyx/types/ai/assistants/version_retrieve_response.py +92 -0
  417. telnyx/types/ai/assistants/version_update_params.py +88 -0
  418. telnyx/types/ai/assistants/version_update_response.py +92 -0
  419. telnyx/types/ai/assistants_list.py +96 -0
  420. telnyx/types/ai/audio_transcribe_params.py +46 -0
  421. telnyx/types/ai/audio_transcribe_response.py +38 -0
  422. telnyx/types/ai/background_task_status.py +7 -0
  423. telnyx/types/ai/chat_create_completion_params.py +184 -0
  424. telnyx/types/ai/cluster_compute_params.py +37 -0
  425. telnyx/types/ai/cluster_compute_response.py +13 -0
  426. telnyx/types/ai/cluster_fetch_graph_params.py +11 -0
  427. telnyx/types/ai/cluster_list_params.py +21 -0
  428. telnyx/types/ai/cluster_list_response.py +32 -0
  429. telnyx/types/ai/cluster_retrieve_params.py +18 -0
  430. telnyx/types/ai/cluster_retrieve_response.py +25 -0
  431. telnyx/types/ai/conversation.py +27 -0
  432. telnyx/types/ai/conversation_create_params.py +15 -0
  433. telnyx/types/ai/conversation_list_params.py +62 -0
  434. telnyx/types/ai/conversation_list_response.py +12 -0
  435. telnyx/types/ai/conversation_retrieve_conversations_insights_response.py +41 -0
  436. telnyx/types/ai/conversation_retrieve_response.py +12 -0
  437. telnyx/types/ai/conversation_update_params.py +13 -0
  438. telnyx/types/ai/conversation_update_response.py +12 -0
  439. telnyx/types/ai/conversations/__init__.py +22 -0
  440. telnyx/types/ai/conversations/insight_create_params.py +19 -0
  441. telnyx/types/ai/conversations/insight_group_insight_groups_params.py +15 -0
  442. telnyx/types/ai/conversations/insight_group_retrieve_insight_groups_params.py +23 -0
  443. telnyx/types/ai/conversations/insight_group_retrieve_insight_groups_response.py +15 -0
  444. telnyx/types/ai/conversations/insight_group_update_params.py +15 -0
  445. telnyx/types/ai/conversations/insight_groups/__init__.py +3 -0
  446. telnyx/types/ai/conversations/insight_list_params.py +23 -0
  447. telnyx/types/ai/conversations/insight_list_response.py +15 -0
  448. telnyx/types/ai/conversations/insight_template.py +26 -0
  449. telnyx/types/ai/conversations/insight_template_detail.py +10 -0
  450. telnyx/types/ai/conversations/insight_template_group.py +23 -0
  451. telnyx/types/ai/conversations/insight_template_group_detail.py +10 -0
  452. telnyx/types/ai/conversations/insight_update_params.py +18 -0
  453. telnyx/types/ai/conversations/message_create_params.py +29 -0
  454. telnyx/types/ai/conversations/message_list_response.py +56 -0
  455. telnyx/types/ai/embedding_create_params.py +21 -0
  456. telnyx/types/ai/embedding_list_params.py +13 -0
  457. telnyx/types/ai/embedding_list_response.py +30 -0
  458. telnyx/types/ai/embedding_response.py +25 -0
  459. telnyx/types/ai/embedding_retrieve_response.py +25 -0
  460. telnyx/types/ai/embedding_similarity_search_params.py +15 -0
  461. telnyx/types/ai/embedding_similarity_search_response.py +33 -0
  462. telnyx/types/ai/embedding_url_params.py +15 -0
  463. telnyx/types/ai/embeddings/__init__.py +6 -0
  464. telnyx/types/ai/embeddings/bucket_list_response.py +15 -0
  465. telnyx/types/ai/embeddings/bucket_retrieve_response.py +26 -0
  466. telnyx/types/ai/enabled_features.py +7 -0
  467. telnyx/types/ai/fine_tuning/__init__.py +7 -0
  468. telnyx/types/ai/fine_tuning/fine_tuning_job.py +51 -0
  469. telnyx/types/ai/fine_tuning/job_create_params.py +31 -0
  470. telnyx/types/ai/fine_tuning/job_list_response.py +12 -0
  471. telnyx/types/ai/hangup_tool.py +14 -0
  472. telnyx/types/ai/hangup_tool_param.py +15 -0
  473. telnyx/types/ai/hangup_tool_params.py +12 -0
  474. telnyx/types/ai/hangup_tool_params_param.py +12 -0
  475. telnyx/types/ai/import_metadata.py +16 -0
  476. telnyx/types/ai/inference_embedding_bucket_ids.py +19 -0
  477. telnyx/types/ai/inference_embedding_bucket_ids_param.py +20 -0
  478. telnyx/types/ai/inference_embedding_transfer_tool_params.py +43 -0
  479. telnyx/types/ai/inference_embedding_transfer_tool_params_param.py +50 -0
  480. telnyx/types/ai/inference_embedding_webhook_tool_params.py +99 -0
  481. telnyx/types/ai/inference_embedding_webhook_tool_params_param.py +99 -0
  482. telnyx/types/ai/insight_settings.py +16 -0
  483. telnyx/types/ai/insight_settings_param.py +16 -0
  484. telnyx/types/ai/messaging_settings.py +21 -0
  485. telnyx/types/ai/messaging_settings_param.py +21 -0
  486. telnyx/types/ai/privacy_settings.py +19 -0
  487. telnyx/types/ai/privacy_settings_param.py +19 -0
  488. telnyx/types/ai/recursive_cluster.py +34 -0
  489. telnyx/types/ai/retrieval_tool.py +14 -0
  490. telnyx/types/ai/retrieval_tool_param.py +15 -0
  491. telnyx/types/ai/telephony_settings.py +22 -0
  492. telnyx/types/ai/telephony_settings_param.py +22 -0
  493. telnyx/types/ai/transcription_settings.py +26 -0
  494. telnyx/types/ai/transcription_settings_param.py +26 -0
  495. telnyx/types/ai/transfer_tool.py +14 -0
  496. telnyx/types/ai/transfer_tool_param.py +15 -0
  497. telnyx/types/ai/voice_settings.py +36 -0
  498. telnyx/types/ai/voice_settings_param.py +36 -0
  499. telnyx/types/ai/webhook_tool.py +14 -0
  500. telnyx/types/ai/webhook_tool_param.py +15 -0
  501. telnyx/types/ai_retrieve_models_response.py +23 -0
  502. telnyx/types/ai_summarize_params.py +18 -0
  503. telnyx/types/ai_summarize_response.py +13 -0
  504. telnyx/types/alt_business_id_type.py +7 -0
  505. telnyx/types/anchorsite_override.py +18 -0
  506. telnyx/types/audit_event_list_params.py +44 -0
  507. telnyx/types/audit_event_list_response.py +82 -0
  508. telnyx/types/authentication_provider.py +71 -0
  509. telnyx/types/authentication_provider_create_params.py +32 -0
  510. telnyx/types/authentication_provider_create_response.py +12 -0
  511. telnyx/types/authentication_provider_delete_response.py +12 -0
  512. telnyx/types/authentication_provider_list_params.py +51 -0
  513. telnyx/types/authentication_provider_list_response.py +15 -0
  514. telnyx/types/authentication_provider_retrieve_response.py +12 -0
  515. telnyx/types/authentication_provider_update_params.py +32 -0
  516. telnyx/types/authentication_provider_update_response.py +12 -0
  517. telnyx/types/available_phone_number_block_list_params.py +30 -0
  518. telnyx/types/available_phone_number_block_list_response.py +60 -0
  519. telnyx/types/available_phone_number_list_params.py +92 -0
  520. telnyx/types/available_phone_number_list_response.py +75 -0
  521. telnyx/types/available_service.py +7 -0
  522. telnyx/types/azure_configuration_data.py +18 -0
  523. telnyx/types/azure_configuration_data_param.py +18 -0
  524. telnyx/types/balance_retrieve_response.py +32 -0
  525. telnyx/types/billing_group.py +32 -0
  526. telnyx/types/billing_group_create_params.py +12 -0
  527. telnyx/types/billing_group_create_response.py +12 -0
  528. telnyx/types/billing_group_delete_response.py +12 -0
  529. telnyx/types/billing_group_list_params.py +23 -0
  530. telnyx/types/billing_group_list_response.py +15 -0
  531. telnyx/types/billing_group_retrieve_response.py +12 -0
  532. telnyx/types/billing_group_update_params.py +12 -0
  533. telnyx/types/billing_group_update_response.py +12 -0
  534. telnyx/types/brand/__init__.py +7 -0
  535. telnyx/types/brand/external_vetting_import_params.py +23 -0
  536. telnyx/types/brand/external_vetting_import_response.py +43 -0
  537. telnyx/types/brand/external_vetting_order_params.py +17 -0
  538. telnyx/types/brand_create_params.py +91 -0
  539. telnyx/types/brand_get_feedback_response.py +31 -0
  540. telnyx/types/brand_identity_status.py +7 -0
  541. telnyx/types/brand_list_params.py +51 -0
  542. telnyx/types/brand_list_response.py +61 -0
  543. telnyx/types/brand_retrieve_response.py +14 -0
  544. telnyx/types/brand_update_params.py +96 -0
  545. telnyx/types/bulk_sim_card_action_list_params.py +20 -0
  546. telnyx/types/bulk_sim_card_action_list_response.py +47 -0
  547. telnyx/types/bulk_sim_card_action_retrieve_response.py +44 -0
  548. telnyx/types/bundle_pricing/__init__.py +20 -0
  549. telnyx/types/bundle_pricing/billing_bundle_list_params.py +42 -0
  550. telnyx/types/bundle_pricing/billing_bundle_list_response.py +15 -0
  551. telnyx/types/bundle_pricing/billing_bundle_retrieve_response.py +68 -0
  552. telnyx/types/bundle_pricing/billing_bundle_summary.py +36 -0
  553. telnyx/types/bundle_pricing/pagination_response.py +19 -0
  554. telnyx/types/bundle_pricing/user_bundle.py +31 -0
  555. telnyx/types/bundle_pricing/user_bundle_create_params.py +29 -0
  556. telnyx/types/bundle_pricing/user_bundle_create_response.py +12 -0
  557. telnyx/types/bundle_pricing/user_bundle_deactivate_response.py +10 -0
  558. telnyx/types/bundle_pricing/user_bundle_list_params.py +42 -0
  559. telnyx/types/bundle_pricing/user_bundle_list_resources_response.py +12 -0
  560. telnyx/types/bundle_pricing/user_bundle_list_response.py +15 -0
  561. telnyx/types/bundle_pricing/user_bundle_list_unused_params.py +28 -0
  562. telnyx/types/bundle_pricing/user_bundle_list_unused_response.py +19 -0
  563. telnyx/types/bundle_pricing/user_bundle_resource.py +25 -0
  564. telnyx/types/bundle_pricing/user_bundle_retrieve_response.py +10 -0
  565. telnyx/types/call_control_application.py +80 -0
  566. telnyx/types/call_control_application_create_params.py +70 -0
  567. telnyx/types/call_control_application_create_response.py +12 -0
  568. telnyx/types/call_control_application_delete_response.py +12 -0
  569. telnyx/types/call_control_application_inbound.py +39 -0
  570. telnyx/types/call_control_application_inbound_param.py +38 -0
  571. telnyx/types/call_control_application_list_params.py +141 -0
  572. telnyx/types/call_control_application_list_response.py +15 -0
  573. telnyx/types/call_control_application_outbound.py +18 -0
  574. telnyx/types/call_control_application_outbound_param.py +18 -0
  575. telnyx/types/call_control_application_retrieve_response.py +12 -0
  576. telnyx/types/call_control_application_update_params.py +73 -0
  577. telnyx/types/call_control_application_update_response.py +12 -0
  578. telnyx/types/call_dial_params.py +435 -0
  579. telnyx/types/call_dial_response.py +56 -0
  580. telnyx/types/call_event_list_params.py +123 -0
  581. telnyx/types/call_event_list_response.py +43 -0
  582. telnyx/types/call_retrieve_status_response.py +50 -0
  583. telnyx/types/calls/__init__.py +95 -0
  584. telnyx/types/calls/action_answer_params.py +149 -0
  585. telnyx/types/calls/action_answer_response.py +21 -0
  586. telnyx/types/calls/action_bridge_params.py +170 -0
  587. telnyx/types/calls/action_bridge_response.py +12 -0
  588. telnyx/types/calls/action_enqueue_params.py +37 -0
  589. telnyx/types/calls/action_enqueue_response.py +12 -0
  590. telnyx/types/calls/action_gather_params.py +55 -0
  591. telnyx/types/calls/action_gather_response.py +12 -0
  592. telnyx/types/calls/action_gather_using_ai_params.py +138 -0
  593. telnyx/types/calls/action_gather_using_ai_response.py +18 -0
  594. telnyx/types/calls/action_gather_using_audio_params.py +87 -0
  595. telnyx/types/calls/action_gather_using_audio_response.py +12 -0
  596. telnyx/types/calls/action_gather_using_speak_params.py +157 -0
  597. telnyx/types/calls/action_gather_using_speak_response.py +12 -0
  598. telnyx/types/calls/action_hangup_params.py +22 -0
  599. telnyx/types/calls/action_hangup_response.py +12 -0
  600. telnyx/types/calls/action_leave_queue_params.py +22 -0
  601. telnyx/types/calls/action_leave_queue_response.py +12 -0
  602. telnyx/types/calls/action_pause_recording_params.py +25 -0
  603. telnyx/types/calls/action_pause_recording_response.py +12 -0
  604. telnyx/types/calls/action_refer_params.py +44 -0
  605. telnyx/types/calls/action_refer_response.py +12 -0
  606. telnyx/types/calls/action_reject_params.py +25 -0
  607. telnyx/types/calls/action_reject_response.py +12 -0
  608. telnyx/types/calls/action_resume_recording_params.py +25 -0
  609. telnyx/types/calls/action_resume_recording_response.py +12 -0
  610. telnyx/types/calls/action_send_dtmf_params.py +35 -0
  611. telnyx/types/calls/action_send_dtmf_response.py +12 -0
  612. telnyx/types/calls/action_send_sip_info_params.py +31 -0
  613. telnyx/types/calls/action_send_sip_info_response.py +12 -0
  614. telnyx/types/calls/action_speak_params.py +125 -0
  615. telnyx/types/calls/action_speak_response.py +12 -0
  616. telnyx/types/calls/action_start_ai_assistant_params.py +97 -0
  617. telnyx/types/calls/action_start_ai_assistant_response.py +18 -0
  618. telnyx/types/calls/action_start_forking_params.py +41 -0
  619. telnyx/types/calls/action_start_forking_response.py +12 -0
  620. telnyx/types/calls/action_start_noise_suppression_params.py +31 -0
  621. telnyx/types/calls/action_start_noise_suppression_response.py +12 -0
  622. telnyx/types/calls/action_start_playback_params.py +83 -0
  623. telnyx/types/calls/action_start_playback_response.py +12 -0
  624. telnyx/types/calls/action_start_recording_params.py +245 -0
  625. telnyx/types/calls/action_start_recording_response.py +12 -0
  626. telnyx/types/calls/action_start_siprec_params.py +44 -0
  627. telnyx/types/calls/action_start_siprec_response.py +12 -0
  628. telnyx/types/calls/action_start_streaming_params.py +59 -0
  629. telnyx/types/calls/action_start_streaming_response.py +12 -0
  630. telnyx/types/calls/action_start_transcription_params.py +41 -0
  631. telnyx/types/calls/action_start_transcription_response.py +12 -0
  632. telnyx/types/calls/action_stop_ai_assistant_params.py +22 -0
  633. telnyx/types/calls/action_stop_ai_assistant_response.py +12 -0
  634. telnyx/types/calls/action_stop_forking_params.py +29 -0
  635. telnyx/types/calls/action_stop_forking_response.py +12 -0
  636. telnyx/types/calls/action_stop_gather_params.py +22 -0
  637. telnyx/types/calls/action_stop_gather_response.py +12 -0
  638. telnyx/types/calls/action_stop_noise_suppression_params.py +22 -0
  639. telnyx/types/calls/action_stop_noise_suppression_response.py +12 -0
  640. telnyx/types/calls/action_stop_playback_params.py +32 -0
  641. telnyx/types/calls/action_stop_playback_response.py +12 -0
  642. telnyx/types/calls/action_stop_recording_params.py +25 -0
  643. telnyx/types/calls/action_stop_recording_response.py +12 -0
  644. telnyx/types/calls/action_stop_siprec_params.py +22 -0
  645. telnyx/types/calls/action_stop_siprec_response.py +12 -0
  646. telnyx/types/calls/action_stop_streaming_params.py +29 -0
  647. telnyx/types/calls/action_stop_streaming_response.py +12 -0
  648. telnyx/types/calls/action_stop_transcription_params.py +22 -0
  649. telnyx/types/calls/action_stop_transcription_response.py +12 -0
  650. telnyx/types/calls/action_switch_supervisor_role_params.py +16 -0
  651. telnyx/types/calls/action_switch_supervisor_role_response.py +12 -0
  652. telnyx/types/calls/action_transfer_params.py +199 -0
  653. telnyx/types/calls/action_transfer_response.py +12 -0
  654. telnyx/types/calls/action_update_client_state_params.py +15 -0
  655. telnyx/types/calls/action_update_client_state_response.py +12 -0
  656. telnyx/types/calls/aws_voice_settings_param.py +9 -0
  657. telnyx/types/calls/call_control_command_result.py +11 -0
  658. telnyx/types/calls/eleven_labs_voice_settings_param.py +17 -0
  659. telnyx/types/calls/google_transcription_language.py +88 -0
  660. telnyx/types/calls/interruption_settings_param.py +12 -0
  661. telnyx/types/calls/loopcount_param.py +10 -0
  662. telnyx/types/calls/telnyx_voice_settings_param.py +15 -0
  663. telnyx/types/calls/transcription_config_param.py +19 -0
  664. telnyx/types/calls/transcription_engine_a_config_param.py +64 -0
  665. telnyx/types/calls/transcription_engine_b_config_param.py +119 -0
  666. telnyx/types/calls/transcription_start_request_param.py +40 -0
  667. telnyx/types/campaign/__init__.py +6 -0
  668. telnyx/types/campaign/usecase_get_cost_params.py +11 -0
  669. telnyx/types/campaign/usecase_get_cost_response.py +17 -0
  670. telnyx/types/campaign_builder/__init__.py +5 -0
  671. telnyx/types/campaign_builder/brand_qualify_by_usecase_response.py +36 -0
  672. telnyx/types/campaign_builder_create_params.py +145 -0
  673. telnyx/types/campaign_builder_create_response.py +10 -0
  674. telnyx/types/campaign_deactivate_response.py +15 -0
  675. telnyx/types/campaign_get_mno_metadata_response.py +35 -0
  676. telnyx/types/campaign_get_sharing_status_response.py +16 -0
  677. telnyx/types/campaign_list_params.py +39 -0
  678. telnyx/types/campaign_list_response.py +225 -0
  679. telnyx/types/campaign_sharing_status.py +21 -0
  680. telnyx/types/campaign_submit_appeal_params.py +15 -0
  681. telnyx/types/campaign_submit_appeal_response.py +16 -0
  682. telnyx/types/campaign_update_params.py +47 -0
  683. telnyx/types/channel_zone_list_params.py +23 -0
  684. telnyx/types/channel_zone_list_response.py +37 -0
  685. telnyx/types/channel_zone_update_params.py +12 -0
  686. telnyx/types/channel_zone_update_response.py +30 -0
  687. telnyx/types/charges_breakdown_retrieve_params.py +27 -0
  688. telnyx/types/charges_breakdown_retrieve_response.py +60 -0
  689. telnyx/types/charges_summary_retrieve_params.py +23 -0
  690. telnyx/types/charges_summary_retrieve_response.py +122 -0
  691. telnyx/types/client_create_bucket_params.py +13 -0
  692. telnyx/types/client_delete_objects_params.py +20 -0
  693. telnyx/types/client_get_object_params.py +15 -0
  694. telnyx/types/client_list_objects_params.py +13 -0
  695. telnyx/types/client_put_object_params.py +20 -0
  696. telnyx/types/cloudflare_sync_status.py +7 -0
  697. telnyx/types/comment_create_params.py +15 -0
  698. telnyx/types/comment_create_response.py +36 -0
  699. telnyx/types/comment_list_params.py +23 -0
  700. telnyx/types/comment_list_response.py +39 -0
  701. telnyx/types/comment_mark_as_read_response.py +36 -0
  702. telnyx/types/comment_retrieve_response.py +36 -0
  703. telnyx/types/conference.py +53 -0
  704. telnyx/types/conference_create_params.py +72 -0
  705. telnyx/types/conference_create_response.py +12 -0
  706. telnyx/types/conference_list_params.py +123 -0
  707. telnyx/types/conference_list_participants_params.py +51 -0
  708. telnyx/types/conference_list_participants_response.py +69 -0
  709. telnyx/types/conference_list_response.py +15 -0
  710. telnyx/types/conference_retrieve_response.py +12 -0
  711. telnyx/types/conferences/__init__.py +33 -0
  712. telnyx/types/conferences/action_hold_params.py +30 -0
  713. telnyx/types/conferences/action_hold_response.py +12 -0
  714. telnyx/types/conferences/action_join_params.py +100 -0
  715. telnyx/types/conferences/action_join_response.py +12 -0
  716. telnyx/types/conferences/action_leave_params.py +26 -0
  717. telnyx/types/conferences/action_leave_response.py +12 -0
  718. telnyx/types/conferences/action_mute_params.py +16 -0
  719. telnyx/types/conferences/action_mute_response.py +12 -0
  720. telnyx/types/conferences/action_play_params.py +39 -0
  721. telnyx/types/conferences/action_play_response.py +12 -0
  722. telnyx/types/conferences/action_record_pause_params.py +19 -0
  723. telnyx/types/conferences/action_record_pause_response.py +12 -0
  724. telnyx/types/conferences/action_record_resume_params.py +19 -0
  725. telnyx/types/conferences/action_record_resume_response.py +12 -0
  726. telnyx/types/conferences/action_record_start_params.py +37 -0
  727. telnyx/types/conferences/action_record_start_response.py +12 -0
  728. telnyx/types/conferences/action_record_stop_params.py +25 -0
  729. telnyx/types/conferences/action_record_stop_response.py +12 -0
  730. telnyx/types/conferences/action_speak_params.py +110 -0
  731. telnyx/types/conferences/action_speak_response.py +12 -0
  732. telnyx/types/conferences/action_stop_params.py +16 -0
  733. telnyx/types/conferences/action_stop_response.py +12 -0
  734. telnyx/types/conferences/action_unhold_params.py +16 -0
  735. telnyx/types/conferences/action_unhold_response.py +12 -0
  736. telnyx/types/conferences/action_unmute_params.py +17 -0
  737. telnyx/types/conferences/action_unmute_response.py +12 -0
  738. telnyx/types/conferences/action_update_params.py +37 -0
  739. telnyx/types/conferences/action_update_response.py +12 -0
  740. telnyx/types/conferences/conference_command_result.py +9 -0
  741. telnyx/types/connection_list_active_calls_params.py +32 -0
  742. telnyx/types/connection_list_active_calls_response.py +57 -0
  743. telnyx/types/connection_list_params.py +71 -0
  744. telnyx/types/connection_list_response.py +60 -0
  745. telnyx/types/connection_retrieve_response.py +57 -0
  746. telnyx/types/connection_rtcp_settings.py +25 -0
  747. telnyx/types/connection_rtcp_settings_param.py +24 -0
  748. telnyx/types/consumed_data.py +13 -0
  749. telnyx/types/country_coverage_retrieve_country_response.py +71 -0
  750. telnyx/types/country_coverage_retrieve_response.py +71 -0
  751. telnyx/types/create_verification_response.py +10 -0
  752. telnyx/types/credential_connection.py +122 -0
  753. telnyx/types/credential_connection_create_params.py +122 -0
  754. telnyx/types/credential_connection_create_response.py +12 -0
  755. telnyx/types/credential_connection_delete_response.py +12 -0
  756. telnyx/types/credential_connection_list_params.py +71 -0
  757. telnyx/types/credential_connection_list_response.py +15 -0
  758. telnyx/types/credential_connection_retrieve_response.py +12 -0
  759. telnyx/types/credential_connection_update_params.py +118 -0
  760. telnyx/types/credential_connection_update_response.py +12 -0
  761. telnyx/types/credential_connections/__init__.py +7 -0
  762. telnyx/types/credential_connections/action_check_registration_status_response.py +40 -0
  763. telnyx/types/credential_inbound.py +60 -0
  764. telnyx/types/credential_inbound_param.py +60 -0
  765. telnyx/types/credential_outbound.py +66 -0
  766. telnyx/types/credential_outbound_param.py +64 -0
  767. telnyx/types/custom_sip_header_param.py +15 -0
  768. telnyx/types/custom_storage_configuration.py +19 -0
  769. telnyx/types/custom_storage_credential_create_params.py +21 -0
  770. telnyx/types/custom_storage_credential_create_response.py +21 -0
  771. telnyx/types/custom_storage_credential_retrieve_response.py +21 -0
  772. telnyx/types/custom_storage_credential_update_params.py +21 -0
  773. telnyx/types/custom_storage_credential_update_response.py +21 -0
  774. telnyx/types/customer_service_record.py +86 -0
  775. telnyx/types/customer_service_record_create_params.py +49 -0
  776. telnyx/types/customer_service_record_create_response.py +12 -0
  777. telnyx/types/customer_service_record_list_params.py +98 -0
  778. telnyx/types/customer_service_record_list_response.py +15 -0
  779. telnyx/types/customer_service_record_retrieve_response.py +12 -0
  780. telnyx/types/customer_service_record_verify_phone_number_coverage_params.py +13 -0
  781. telnyx/types/customer_service_record_verify_phone_number_coverage_response.py +50 -0
  782. telnyx/types/detail_record_list_params.py +83 -0
  783. telnyx/types/detail_record_list_response.py +493 -0
  784. telnyx/types/dialogflow_config_param.py +15 -0
  785. telnyx/types/dialogflow_connection_create_params.py +28 -0
  786. telnyx/types/dialogflow_connection_create_response.py +30 -0
  787. telnyx/types/dialogflow_connection_retrieve_response.py +30 -0
  788. telnyx/types/dialogflow_connection_update_params.py +28 -0
  789. telnyx/types/dialogflow_connection_update_response.py +30 -0
  790. telnyx/types/doc_service_document.py +48 -0
  791. telnyx/types/document_delete_response.py +12 -0
  792. telnyx/types/document_link_list_params.py +37 -0
  793. telnyx/types/document_link_list_response.py +37 -0
  794. telnyx/types/document_list_params.py +75 -0
  795. telnyx/types/document_list_response.py +15 -0
  796. telnyx/types/document_retrieve_response.py +12 -0
  797. telnyx/types/document_update_params.py +15 -0
  798. telnyx/types/document_update_response.py +12 -0
  799. telnyx/types/document_upload_params.py +39 -0
  800. telnyx/types/document_upload_response.py +12 -0
  801. telnyx/types/dtmf_type.py +7 -0
  802. telnyx/types/dynamic_emergency_address.py +52 -0
  803. telnyx/types/dynamic_emergency_address_create_params.py +31 -0
  804. telnyx/types/dynamic_emergency_address_create_response.py +12 -0
  805. telnyx/types/dynamic_emergency_address_delete_response.py +12 -0
  806. telnyx/types/dynamic_emergency_address_list_params.py +37 -0
  807. telnyx/types/dynamic_emergency_address_list_response.py +15 -0
  808. telnyx/types/dynamic_emergency_address_retrieve_response.py +12 -0
  809. telnyx/types/dynamic_emergency_endpoint.py +33 -0
  810. telnyx/types/dynamic_emergency_endpoint_create_params.py +16 -0
  811. telnyx/types/dynamic_emergency_endpoint_create_response.py +12 -0
  812. telnyx/types/dynamic_emergency_endpoint_delete_response.py +12 -0
  813. telnyx/types/dynamic_emergency_endpoint_list_params.py +37 -0
  814. telnyx/types/dynamic_emergency_endpoint_list_response.py +15 -0
  815. telnyx/types/dynamic_emergency_endpoint_retrieve_response.py +12 -0
  816. telnyx/types/encrypted_media.py +8 -0
  817. telnyx/types/entity_type.py +7 -0
  818. telnyx/types/enum_retrieve_response.py +8 -0
  819. telnyx/types/error.py +27 -0
  820. telnyx/types/external_connection.py +75 -0
  821. telnyx/types/external_connection_create_params.py +57 -0
  822. telnyx/types/external_connection_create_response.py +12 -0
  823. telnyx/types/external_connection_delete_response.py +12 -0
  824. telnyx/types/external_connection_list_params.py +76 -0
  825. telnyx/types/external_connection_list_response.py +15 -0
  826. telnyx/types/external_connection_retrieve_response.py +12 -0
  827. telnyx/types/external_connection_update_location_params.py +14 -0
  828. telnyx/types/external_connection_update_location_response.py +19 -0
  829. telnyx/types/external_connection_update_params.py +54 -0
  830. telnyx/types/external_connection_update_response.py +12 -0
  831. telnyx/types/external_connections/__init__.py +30 -0
  832. telnyx/types/external_connections/civic_address_list_params.py +21 -0
  833. telnyx/types/external_connections/civic_address_list_response.py +60 -0
  834. telnyx/types/external_connections/civic_address_retrieve_response.py +60 -0
  835. telnyx/types/external_connections/external_connection_phone_number.py +35 -0
  836. telnyx/types/external_connections/log_message_dismiss_response.py +12 -0
  837. telnyx/types/external_connections/log_message_list_params.py +55 -0
  838. telnyx/types/external_connections/log_message_list_response.py +42 -0
  839. telnyx/types/external_connections/log_message_retrieve_response.py +39 -0
  840. telnyx/types/external_connections/phone_number_list_params.py +56 -0
  841. telnyx/types/external_connections/phone_number_list_response.py +15 -0
  842. telnyx/types/external_connections/phone_number_retrieve_response.py +12 -0
  843. telnyx/types/external_connections/phone_number_update_params.py +14 -0
  844. telnyx/types/external_connections/phone_number_update_response.py +12 -0
  845. telnyx/types/external_connections/release_list_params.py +76 -0
  846. telnyx/types/external_connections/release_list_response.py +43 -0
  847. telnyx/types/external_connections/release_retrieve_response.py +40 -0
  848. telnyx/types/external_connections/tn_upload_entry.py +58 -0
  849. telnyx/types/external_connections/upload.py +33 -0
  850. telnyx/types/external_connections/upload_create_params.py +26 -0
  851. telnyx/types/external_connections/upload_create_response.py +15 -0
  852. telnyx/types/external_connections/upload_list_params.py +72 -0
  853. telnyx/types/external_connections/upload_list_response.py +15 -0
  854. telnyx/types/external_connections/upload_pending_count_response.py +22 -0
  855. telnyx/types/external_connections/upload_refresh_status_response.py +12 -0
  856. telnyx/types/external_connections/upload_retrieve_response.py +12 -0
  857. telnyx/types/external_connections/upload_retry_response.py +12 -0
  858. telnyx/types/external_voice_integrations_pagination_meta.py +17 -0
  859. telnyx/types/fax.py +108 -0
  860. telnyx/types/fax_application.py +94 -0
  861. telnyx/types/fax_application_create_params.py +83 -0
  862. telnyx/types/fax_application_create_response.py +12 -0
  863. telnyx/types/fax_application_delete_response.py +12 -0
  864. telnyx/types/fax_application_list_params.py +65 -0
  865. telnyx/types/fax_application_list_response.py +15 -0
  866. telnyx/types/fax_application_retrieve_response.py +12 -0
  867. telnyx/types/fax_application_update_params.py +89 -0
  868. telnyx/types/fax_application_update_response.py +12 -0
  869. telnyx/types/fax_create_params.py +81 -0
  870. telnyx/types/fax_create_response.py +12 -0
  871. telnyx/types/fax_list_params.py +84 -0
  872. telnyx/types/fax_list_response.py +14 -0
  873. telnyx/types/fax_retrieve_response.py +12 -0
  874. telnyx/types/faxes/__init__.py +6 -0
  875. telnyx/types/faxes/action_cancel_response.py +11 -0
  876. telnyx/types/faxes/action_refresh_response.py +11 -0
  877. telnyx/types/fqdn.py +38 -0
  878. telnyx/types/fqdn_connection.py +150 -0
  879. telnyx/types/fqdn_connection_create_params.py +110 -0
  880. telnyx/types/fqdn_connection_create_response.py +12 -0
  881. telnyx/types/fqdn_connection_delete_response.py +12 -0
  882. telnyx/types/fqdn_connection_list_params.py +71 -0
  883. telnyx/types/fqdn_connection_list_response.py +15 -0
  884. telnyx/types/fqdn_connection_retrieve_response.py +12 -0
  885. telnyx/types/fqdn_connection_update_params.py +104 -0
  886. telnyx/types/fqdn_connection_update_response.py +12 -0
  887. telnyx/types/fqdn_create_params.py +27 -0
  888. telnyx/types/fqdn_create_response.py +12 -0
  889. telnyx/types/fqdn_delete_response.py +12 -0
  890. telnyx/types/fqdn_list_params.py +44 -0
  891. telnyx/types/fqdn_list_response.py +15 -0
  892. telnyx/types/fqdn_retrieve_response.py +12 -0
  893. telnyx/types/fqdn_update_params.py +27 -0
  894. telnyx/types/fqdn_update_response.py +12 -0
  895. telnyx/types/gcs_configuration_data.py +18 -0
  896. telnyx/types/gcs_configuration_data_param.py +18 -0
  897. telnyx/types/global_ip_allowed_port_list_response.py +31 -0
  898. telnyx/types/global_ip_assignment.py +31 -0
  899. telnyx/types/global_ip_assignment_create_params.py +18 -0
  900. telnyx/types/global_ip_assignment_create_response.py +12 -0
  901. telnyx/types/global_ip_assignment_delete_response.py +12 -0
  902. telnyx/types/global_ip_assignment_health_retrieve_params.py +62 -0
  903. telnyx/types/global_ip_assignment_health_retrieve_response.py +66 -0
  904. telnyx/types/global_ip_assignment_list_params.py +23 -0
  905. telnyx/types/global_ip_assignment_list_response.py +15 -0
  906. telnyx/types/global_ip_assignment_param.py +18 -0
  907. telnyx/types/global_ip_assignment_retrieve_response.py +12 -0
  908. telnyx/types/global_ip_assignment_update_params.py +17 -0
  909. telnyx/types/global_ip_assignment_update_response.py +12 -0
  910. telnyx/types/global_ip_assignments_usage_retrieve_params.py +62 -0
  911. telnyx/types/global_ip_assignments_usage_retrieve_response.py +75 -0
  912. telnyx/types/global_ip_create_params.py +19 -0
  913. telnyx/types/global_ip_create_response.py +29 -0
  914. telnyx/types/global_ip_delete_response.py +29 -0
  915. telnyx/types/global_ip_health_check_create_params.py +19 -0
  916. telnyx/types/global_ip_health_check_create_response.py +26 -0
  917. telnyx/types/global_ip_health_check_delete_response.py +26 -0
  918. telnyx/types/global_ip_health_check_list_params.py +23 -0
  919. telnyx/types/global_ip_health_check_list_response.py +29 -0
  920. telnyx/types/global_ip_health_check_retrieve_response.py +26 -0
  921. telnyx/types/global_ip_health_check_type_list_response.py +22 -0
  922. telnyx/types/global_ip_latency_retrieve_params.py +37 -0
  923. telnyx/types/global_ip_latency_retrieve_response.py +143 -0
  924. telnyx/types/global_ip_list_params.py +23 -0
  925. telnyx/types/global_ip_list_response.py +32 -0
  926. telnyx/types/global_ip_protocol_list_response.py +22 -0
  927. telnyx/types/global_ip_retrieve_response.py +29 -0
  928. telnyx/types/global_ip_usage_retrieve_params.py +37 -0
  929. telnyx/types/global_ip_usage_retrieve_response.py +47 -0
  930. telnyx/types/inbound_channel_list_response.py +19 -0
  931. telnyx/types/inbound_channel_update_params.py +12 -0
  932. telnyx/types/inbound_channel_update_response.py +19 -0
  933. telnyx/types/inbound_fqdn.py +111 -0
  934. telnyx/types/inbound_fqdn_param.py +111 -0
  935. telnyx/types/inbound_ip.py +111 -0
  936. telnyx/types/inbound_ip_param.py +111 -0
  937. telnyx/types/integration_secret.py +20 -0
  938. telnyx/types/integration_secret_create_params.py +30 -0
  939. telnyx/types/integration_secret_create_response.py +10 -0
  940. telnyx/types/integration_secret_list_params.py +28 -0
  941. telnyx/types/integration_secret_list_response.py +24 -0
  942. telnyx/types/interface.py +19 -0
  943. telnyx/types/interface_status.py +7 -0
  944. telnyx/types/inventory_coverage_list_params.py +86 -0
  945. telnyx/types/inventory_coverage_list_response.py +41 -0
  946. telnyx/types/invoice_list_params.py +26 -0
  947. telnyx/types/invoice_list_response.py +38 -0
  948. telnyx/types/invoice_retrieve_params.py +12 -0
  949. telnyx/types/invoice_retrieve_response.py +29 -0
  950. telnyx/types/ip.py +30 -0
  951. telnyx/types/ip_connection.py +106 -0
  952. telnyx/types/ip_connection_create_params.py +182 -0
  953. telnyx/types/ip_connection_create_response.py +12 -0
  954. telnyx/types/ip_connection_delete_response.py +12 -0
  955. telnyx/types/ip_connection_list_params.py +71 -0
  956. telnyx/types/ip_connection_list_response.py +15 -0
  957. telnyx/types/ip_connection_retrieve_response.py +12 -0
  958. telnyx/types/ip_connection_update_params.py +101 -0
  959. telnyx/types/ip_connection_update_response.py +12 -0
  960. telnyx/types/ip_create_params.py +18 -0
  961. telnyx/types/ip_create_response.py +12 -0
  962. telnyx/types/ip_delete_response.py +12 -0
  963. telnyx/types/ip_list_params.py +40 -0
  964. telnyx/types/ip_list_response.py +12 -0
  965. telnyx/types/ip_retrieve_response.py +12 -0
  966. telnyx/types/ip_update_params.py +18 -0
  967. telnyx/types/ip_update_response.py +12 -0
  968. telnyx/types/ledger_billing_group_report.py +32 -0
  969. telnyx/types/ledger_billing_group_report_create_params.py +15 -0
  970. telnyx/types/ledger_billing_group_report_create_response.py +12 -0
  971. telnyx/types/ledger_billing_group_report_retrieve_response.py +12 -0
  972. telnyx/types/list_buckets_response.py +20 -0
  973. telnyx/types/list_objects_response.py +24 -0
  974. telnyx/types/list_retrieve_all_response.py +30 -0
  975. telnyx/types/list_retrieve_by_zone_response.py +30 -0
  976. telnyx/types/managed_account.py +61 -0
  977. telnyx/types/managed_account_balance.py +25 -0
  978. telnyx/types/managed_account_create_params.py +48 -0
  979. telnyx/types/managed_account_create_response.py +12 -0
  980. telnyx/types/managed_account_get_allocatable_global_outbound_channels_response.py +39 -0
  981. telnyx/types/managed_account_list_params.py +86 -0
  982. telnyx/types/managed_account_list_response.py +59 -0
  983. telnyx/types/managed_account_retrieve_response.py +12 -0
  984. telnyx/types/managed_account_update_global_channel_limit_params.py +17 -0
  985. telnyx/types/managed_account_update_global_channel_limit_response.py +32 -0
  986. telnyx/types/managed_account_update_params.py +17 -0
  987. telnyx/types/managed_account_update_response.py +12 -0
  988. telnyx/types/managed_accounts/__init__.py +7 -0
  989. telnyx/types/managed_accounts/action_disable_response.py +12 -0
  990. telnyx/types/managed_accounts/action_enable_params.py +16 -0
  991. telnyx/types/managed_accounts/action_enable_response.py +12 -0
  992. telnyx/types/media_list_params.py +21 -0
  993. telnyx/types/media_list_response.py +15 -0
  994. telnyx/types/media_resource.py +24 -0
  995. telnyx/types/media_retrieve_response.py +12 -0
  996. telnyx/types/media_update_params.py +21 -0
  997. telnyx/types/media_update_response.py +12 -0
  998. telnyx/types/media_upload_params.py +24 -0
  999. telnyx/types/media_upload_response.py +12 -0
  1000. telnyx/types/message_cancel_scheduled_response.py +198 -0
  1001. telnyx/types/message_retrieve_response.py +215 -0
  1002. telnyx/types/message_schedule_params.py +77 -0
  1003. telnyx/types/message_schedule_response.py +12 -0
  1004. telnyx/types/message_send_group_mms_params.py +43 -0
  1005. telnyx/types/message_send_group_mms_response.py +12 -0
  1006. telnyx/types/message_send_long_code_params.py +58 -0
  1007. telnyx/types/message_send_long_code_response.py +12 -0
  1008. telnyx/types/message_send_number_pool_params.py +56 -0
  1009. telnyx/types/message_send_number_pool_response.py +12 -0
  1010. telnyx/types/message_send_params.py +77 -0
  1011. telnyx/types/message_send_response.py +12 -0
  1012. telnyx/types/message_send_short_code_params.py +58 -0
  1013. telnyx/types/message_send_short_code_response.py +12 -0
  1014. telnyx/types/messages/__init__.py +6 -0
  1015. telnyx/types/messages/rc_generate_deeplink_params.py +15 -0
  1016. telnyx/types/messages/rc_generate_deeplink_response.py +14 -0
  1017. telnyx/types/messaging/__init__.py +9 -0
  1018. telnyx/types/messaging/rc_invite_test_number_response.py +26 -0
  1019. telnyx/types/messaging/rc_list_bulk_capabilities_params.py +16 -0
  1020. telnyx/types/messaging/rc_list_bulk_capabilities_response.py +12 -0
  1021. telnyx/types/messaging/rc_retrieve_capabilities_response.py +12 -0
  1022. telnyx/types/messaging/rcs/__init__.py +7 -0
  1023. telnyx/types/messaging/rcs/agent_list_params.py +23 -0
  1024. telnyx/types/messaging/rcs/agent_list_response.py +15 -0
  1025. telnyx/types/messaging/rcs/agent_update_params.py +19 -0
  1026. telnyx/types/messaging/rcs_capabilities.py +25 -0
  1027. telnyx/types/messaging_error.py +27 -0
  1028. telnyx/types/messaging_hosted_number_delete_response.py +12 -0
  1029. telnyx/types/messaging_hosted_number_order_check_eligibility_params.py +13 -0
  1030. telnyx/types/messaging_hosted_number_order_check_eligibility_response.py +42 -0
  1031. telnyx/types/messaging_hosted_number_order_create_params.py +19 -0
  1032. telnyx/types/messaging_hosted_number_order_create_response.py +12 -0
  1033. telnyx/types/messaging_hosted_number_order_create_verification_codes_params.py +14 -0
  1034. telnyx/types/messaging_hosted_number_order_create_verification_codes_response.py +39 -0
  1035. telnyx/types/messaging_hosted_number_order_delete_response.py +12 -0
  1036. telnyx/types/messaging_hosted_number_order_list_params.py +23 -0
  1037. telnyx/types/messaging_hosted_number_order_list_response.py +15 -0
  1038. telnyx/types/messaging_hosted_number_order_retrieve_response.py +12 -0
  1039. telnyx/types/messaging_hosted_number_order_validate_codes_params.py +18 -0
  1040. telnyx/types/messaging_hosted_number_order_validate_codes_response.py +24 -0
  1041. telnyx/types/messaging_hosted_number_orders/__init__.py +6 -0
  1042. telnyx/types/messaging_hosted_number_orders/action_upload_file_params.py +20 -0
  1043. telnyx/types/messaging_hosted_number_orders/action_upload_file_response.py +12 -0
  1044. telnyx/types/messaging_numbers_bulk_update_create_params.py +22 -0
  1045. telnyx/types/messaging_numbers_bulk_update_create_response.py +29 -0
  1046. telnyx/types/messaging_numbers_bulk_update_retrieve_response.py +29 -0
  1047. telnyx/types/messaging_optout_list_params.py +64 -0
  1048. telnyx/types/messaging_optout_list_response.py +37 -0
  1049. telnyx/types/messaging_profile.py +97 -0
  1050. telnyx/types/messaging_profile_create_params.py +82 -0
  1051. telnyx/types/messaging_profile_create_response.py +12 -0
  1052. telnyx/types/messaging_profile_delete_response.py +12 -0
  1053. telnyx/types/messaging_profile_list_params.py +31 -0
  1054. telnyx/types/messaging_profile_list_phone_numbers_params.py +23 -0
  1055. telnyx/types/messaging_profile_list_phone_numbers_response.py +15 -0
  1056. telnyx/types/messaging_profile_list_response.py +15 -0
  1057. telnyx/types/messaging_profile_list_short_codes_params.py +23 -0
  1058. telnyx/types/messaging_profile_list_short_codes_response.py +15 -0
  1059. telnyx/types/messaging_profile_retrieve_response.py +12 -0
  1060. telnyx/types/messaging_profile_update_params.py +87 -0
  1061. telnyx/types/messaging_profile_update_response.py +12 -0
  1062. telnyx/types/messaging_profiles/__init__.py +10 -0
  1063. telnyx/types/messaging_profiles/auto_resp_config.py +25 -0
  1064. telnyx/types/messaging_profiles/auto_resp_config_response.py +10 -0
  1065. telnyx/types/messaging_profiles/autoresp_config_create_params.py +18 -0
  1066. telnyx/types/messaging_profiles/autoresp_config_list_params.py +35 -0
  1067. telnyx/types/messaging_profiles/autoresp_config_list_response.py +15 -0
  1068. telnyx/types/messaging_profiles/autoresp_config_update_params.py +20 -0
  1069. telnyx/types/messaging_tollfree/__init__.py +3 -0
  1070. telnyx/types/messaging_tollfree/verification/__init__.py +17 -0
  1071. telnyx/types/messaging_tollfree/verification/request_create_params.py +91 -0
  1072. telnyx/types/messaging_tollfree/verification/request_list_params.py +31 -0
  1073. telnyx/types/messaging_tollfree/verification/request_list_response.py +16 -0
  1074. telnyx/types/messaging_tollfree/verification/request_update_params.py +91 -0
  1075. telnyx/types/messaging_tollfree/verification/tf_phone_number.py +11 -0
  1076. telnyx/types/messaging_tollfree/verification/tf_phone_number_param.py +13 -0
  1077. telnyx/types/messaging_tollfree/verification/tf_verification_status.py +9 -0
  1078. telnyx/types/messaging_tollfree/verification/url.py +9 -0
  1079. telnyx/types/messaging_tollfree/verification/url_param.py +11 -0
  1080. telnyx/types/messaging_tollfree/verification/use_case_categories.py +51 -0
  1081. telnyx/types/messaging_tollfree/verification/verification_request_egress.py +67 -0
  1082. telnyx/types/messaging_tollfree/verification/verification_request_status.py +72 -0
  1083. telnyx/types/messaging_tollfree/verification/volume.py +9 -0
  1084. telnyx/types/messaging_url_domain_list_params.py +23 -0
  1085. telnyx/types/messaging_url_domain_list_response.py +24 -0
  1086. telnyx/types/messsage_rcs_params.py +67 -0
  1087. telnyx/types/messsage_rcs_response.py +59 -0
  1088. telnyx/types/mobile_network_operator_list_params.py +62 -0
  1089. telnyx/types/mobile_network_operator_list_response.py +57 -0
  1090. telnyx/types/mobile_push_credential_create_params.py +36 -0
  1091. telnyx/types/mobile_push_credential_list_params.py +37 -0
  1092. telnyx/types/mobile_push_credential_list_response.py +15 -0
  1093. telnyx/types/month_detail.py +18 -0
  1094. telnyx/types/network_coverage_list_params.py +74 -0
  1095. telnyx/types/network_coverage_list_response.py +42 -0
  1096. telnyx/types/network_create_params.py +12 -0
  1097. telnyx/types/network_create_response.py +20 -0
  1098. telnyx/types/network_delete_response.py +20 -0
  1099. telnyx/types/network_list_interfaces_params.py +37 -0
  1100. telnyx/types/network_list_interfaces_response.py +40 -0
  1101. telnyx/types/network_list_params.py +31 -0
  1102. telnyx/types/network_list_response.py +23 -0
  1103. telnyx/types/network_retrieve_response.py +20 -0
  1104. telnyx/types/network_update_params.py +12 -0
  1105. telnyx/types/network_update_response.py +20 -0
  1106. telnyx/types/networks/__init__.py +8 -0
  1107. telnyx/types/networks/default_gateway_create_params.py +12 -0
  1108. telnyx/types/networks/default_gateway_create_response.py +30 -0
  1109. telnyx/types/networks/default_gateway_delete_response.py +30 -0
  1110. telnyx/types/networks/default_gateway_retrieve_response.py +30 -0
  1111. telnyx/types/notification_channel.py +29 -0
  1112. telnyx/types/notification_channel_create_params.py +18 -0
  1113. telnyx/types/notification_channel_create_response.py +13 -0
  1114. telnyx/types/notification_channel_delete_response.py +13 -0
  1115. telnyx/types/notification_channel_list_params.py +94 -0
  1116. telnyx/types/notification_channel_list_response.py +15 -0
  1117. telnyx/types/notification_channel_retrieve_response.py +13 -0
  1118. telnyx/types/notification_channel_update_params.py +18 -0
  1119. telnyx/types/notification_channel_update_response.py +13 -0
  1120. telnyx/types/notification_event_condition_list_params.py +94 -0
  1121. telnyx/types/notification_event_condition_list_response.py +59 -0
  1122. telnyx/types/notification_event_list_params.py +23 -0
  1123. telnyx/types/notification_event_list_response.py +33 -0
  1124. telnyx/types/notification_profile.py +22 -0
  1125. telnyx/types/notification_profile_create_params.py +12 -0
  1126. telnyx/types/notification_profile_create_response.py +13 -0
  1127. telnyx/types/notification_profile_delete_response.py +13 -0
  1128. telnyx/types/notification_profile_list_params.py +23 -0
  1129. telnyx/types/notification_profile_list_response.py +15 -0
  1130. telnyx/types/notification_profile_retrieve_response.py +13 -0
  1131. telnyx/types/notification_profile_update_params.py +12 -0
  1132. telnyx/types/notification_profile_update_response.py +13 -0
  1133. telnyx/types/notification_setting.py +55 -0
  1134. telnyx/types/notification_setting_create_params.py +27 -0
  1135. telnyx/types/notification_setting_create_response.py +12 -0
  1136. telnyx/types/notification_setting_delete_response.py +12 -0
  1137. telnyx/types/notification_setting_list_params.py +94 -0
  1138. telnyx/types/notification_setting_list_response.py +15 -0
  1139. telnyx/types/notification_setting_retrieve_response.py +12 -0
  1140. telnyx/types/number_block_order.py +48 -0
  1141. telnyx/types/number_block_order_create_params.py +24 -0
  1142. telnyx/types/number_block_order_create_response.py +12 -0
  1143. telnyx/types/number_block_order_list_params.py +51 -0
  1144. telnyx/types/number_block_order_list_response.py +15 -0
  1145. telnyx/types/number_block_order_retrieve_response.py +12 -0
  1146. telnyx/types/number_lookup_retrieve_params.py +12 -0
  1147. telnyx/types/number_lookup_retrieve_response.py +145 -0
  1148. telnyx/types/number_order_create_params.py +35 -0
  1149. telnyx/types/number_order_create_response.py +12 -0
  1150. telnyx/types/number_order_list_params.py +55 -0
  1151. telnyx/types/number_order_list_response.py +61 -0
  1152. telnyx/types/number_order_phone_number.py +55 -0
  1153. telnyx/types/number_order_phone_number_list_params.py +20 -0
  1154. telnyx/types/number_order_phone_number_list_response.py +15 -0
  1155. telnyx/types/number_order_phone_number_retrieve_response.py +12 -0
  1156. telnyx/types/number_order_phone_number_update_requirement_group_params.py +12 -0
  1157. telnyx/types/number_order_phone_number_update_requirement_group_response.py +54 -0
  1158. telnyx/types/number_order_phone_number_update_requirements_params.py +14 -0
  1159. telnyx/types/number_order_phone_number_update_requirements_response.py +12 -0
  1160. telnyx/types/number_order_retrieve_response.py +12 -0
  1161. telnyx/types/number_order_update_params.py +17 -0
  1162. telnyx/types/number_order_update_response.py +12 -0
  1163. telnyx/types/number_order_with_phone_numbers.py +47 -0
  1164. telnyx/types/number_pool_settings.py +51 -0
  1165. telnyx/types/number_pool_settings_param.py +51 -0
  1166. telnyx/types/number_reservation.py +30 -0
  1167. telnyx/types/number_reservation_create_params.py +17 -0
  1168. telnyx/types/number_reservation_create_response.py +12 -0
  1169. telnyx/types/number_reservation_list_params.py +54 -0
  1170. telnyx/types/number_reservation_list_response.py +15 -0
  1171. telnyx/types/number_reservation_retrieve_response.py +12 -0
  1172. telnyx/types/number_reservations/__init__.py +5 -0
  1173. telnyx/types/number_reservations/action_extend_response.py +12 -0
  1174. telnyx/types/numbers_feature_create_params.py +12 -0
  1175. telnyx/types/numbers_feature_create_response.py +17 -0
  1176. telnyx/types/operator_connect/__init__.py +5 -0
  1177. telnyx/types/operator_connect/action_refresh_response.py +15 -0
  1178. telnyx/types/ota_update_list_params.py +40 -0
  1179. telnyx/types/ota_update_list_response.py +39 -0
  1180. telnyx/types/ota_update_retrieve_response.py +71 -0
  1181. telnyx/types/outbound_call_recording.py +28 -0
  1182. telnyx/types/outbound_call_recording_param.py +28 -0
  1183. telnyx/types/outbound_fqdn.py +86 -0
  1184. telnyx/types/outbound_fqdn_param.py +85 -0
  1185. telnyx/types/outbound_ip.py +73 -0
  1186. telnyx/types/outbound_ip_param.py +71 -0
  1187. telnyx/types/outbound_message_payload.py +196 -0
  1188. telnyx/types/outbound_voice_profile.py +84 -0
  1189. telnyx/types/outbound_voice_profile_create_params.py +71 -0
  1190. telnyx/types/outbound_voice_profile_create_response.py +12 -0
  1191. telnyx/types/outbound_voice_profile_delete_response.py +12 -0
  1192. telnyx/types/outbound_voice_profile_list_params.py +70 -0
  1193. telnyx/types/outbound_voice_profile_list_response.py +15 -0
  1194. telnyx/types/outbound_voice_profile_retrieve_response.py +12 -0
  1195. telnyx/types/outbound_voice_profile_update_params.py +71 -0
  1196. telnyx/types/outbound_voice_profile_update_response.py +12 -0
  1197. telnyx/types/pagination_meta.py +17 -0
  1198. telnyx/types/partner_campaign_list_params.py +39 -0
  1199. telnyx/types/partner_campaign_list_response.py +18 -0
  1200. telnyx/types/partner_campaign_list_shared_by_me_params.py +20 -0
  1201. telnyx/types/partner_campaign_list_shared_by_me_response.py +45 -0
  1202. telnyx/types/partner_campaign_retrieve_sharing_status_response.py +10 -0
  1203. telnyx/types/partner_campaign_update_params.py +17 -0
  1204. telnyx/types/payment/__init__.py +7 -0
  1205. telnyx/types/payment/auto_recharge_pref_list_response.py +37 -0
  1206. telnyx/types/payment/auto_recharge_pref_update_params.py +26 -0
  1207. telnyx/types/payment/auto_recharge_pref_update_response.py +37 -0
  1208. telnyx/types/phone_number.py +49 -0
  1209. telnyx/types/phone_number_assignment_by_profile_assign_params.py +29 -0
  1210. telnyx/types/phone_number_assignment_by_profile_assign_response.py +46 -0
  1211. telnyx/types/phone_number_assignment_by_profile_retrieve_phone_number_status_params.py +15 -0
  1212. telnyx/types/phone_number_assignment_by_profile_retrieve_phone_number_status_response.py +24 -0
  1213. telnyx/types/phone_number_assignment_by_profile_retrieve_status_response.py +22 -0
  1214. telnyx/types/phone_number_blocks/__init__.py +12 -0
  1215. telnyx/types/phone_number_blocks/job.py +89 -0
  1216. telnyx/types/phone_number_blocks/job_delete_phone_number_block_params.py +11 -0
  1217. telnyx/types/phone_number_blocks/job_delete_phone_number_block_response.py +12 -0
  1218. telnyx/types/phone_number_blocks/job_list_params.py +43 -0
  1219. telnyx/types/phone_number_blocks/job_list_response.py +15 -0
  1220. telnyx/types/phone_number_blocks/job_retrieve_response.py +12 -0
  1221. telnyx/types/phone_number_campaign.py +48 -0
  1222. telnyx/types/phone_number_campaign_create_params.py +17 -0
  1223. telnyx/types/phone_number_campaign_list_params.py +42 -0
  1224. telnyx/types/phone_number_campaign_list_response.py +18 -0
  1225. telnyx/types/phone_number_campaign_update_params.py +17 -0
  1226. telnyx/types/phone_number_delete_response.py +113 -0
  1227. telnyx/types/phone_number_detailed.py +139 -0
  1228. telnyx/types/phone_number_list_params.py +130 -0
  1229. telnyx/types/phone_number_list_response.py +15 -0
  1230. telnyx/types/phone_number_retrieve_response.py +12 -0
  1231. telnyx/types/phone_number_slim_list_params.py +148 -0
  1232. telnyx/types/phone_number_slim_list_response.py +125 -0
  1233. telnyx/types/phone_number_update_params.py +33 -0
  1234. telnyx/types/phone_number_update_response.py +12 -0
  1235. telnyx/types/phone_numbers/__init__.py +56 -0
  1236. telnyx/types/phone_numbers/action_change_bundle_status_params.py +18 -0
  1237. telnyx/types/phone_numbers/action_change_bundle_status_response.py +12 -0
  1238. telnyx/types/phone_numbers/action_enable_emergency_params.py +15 -0
  1239. telnyx/types/phone_numbers/action_enable_emergency_response.py +12 -0
  1240. telnyx/types/phone_numbers/action_verify_ownership_params.py +13 -0
  1241. telnyx/types/phone_numbers/action_verify_ownership_response.py +30 -0
  1242. telnyx/types/phone_numbers/call_forwarding.py +27 -0
  1243. telnyx/types/phone_numbers/call_forwarding_param.py +26 -0
  1244. telnyx/types/phone_numbers/call_recording.py +22 -0
  1245. telnyx/types/phone_numbers/call_recording_param.py +21 -0
  1246. telnyx/types/phone_numbers/cnam_listing.py +22 -0
  1247. telnyx/types/phone_numbers/cnam_listing_param.py +22 -0
  1248. telnyx/types/phone_numbers/csv_download.py +25 -0
  1249. telnyx/types/phone_numbers/csv_download_create_params.py +96 -0
  1250. telnyx/types/phone_numbers/csv_download_create_response.py +12 -0
  1251. telnyx/types/phone_numbers/csv_download_list_params.py +23 -0
  1252. telnyx/types/phone_numbers/csv_download_list_response.py +15 -0
  1253. telnyx/types/phone_numbers/csv_download_retrieve_response.py +12 -0
  1254. telnyx/types/phone_numbers/job_delete_batch_params.py +12 -0
  1255. telnyx/types/phone_numbers/job_delete_batch_response.py +12 -0
  1256. telnyx/types/phone_numbers/job_list_params.py +37 -0
  1257. telnyx/types/phone_numbers/job_list_response.py +15 -0
  1258. telnyx/types/phone_numbers/job_retrieve_response.py +12 -0
  1259. telnyx/types/phone_numbers/job_update_batch_params.py +130 -0
  1260. telnyx/types/phone_numbers/job_update_batch_response.py +12 -0
  1261. telnyx/types/phone_numbers/job_update_emergency_settings_batch_params.py +22 -0
  1262. telnyx/types/phone_numbers/job_update_emergency_settings_batch_response.py +12 -0
  1263. telnyx/types/phone_numbers/media_features.py +28 -0
  1264. telnyx/types/phone_numbers/media_features_param.py +28 -0
  1265. telnyx/types/phone_numbers/messaging_list_params.py +23 -0
  1266. telnyx/types/phone_numbers/messaging_list_response.py +15 -0
  1267. telnyx/types/phone_numbers/messaging_retrieve_response.py +12 -0
  1268. telnyx/types/phone_numbers/messaging_update_params.py +25 -0
  1269. telnyx/types/phone_numbers/messaging_update_response.py +12 -0
  1270. telnyx/types/phone_numbers/phone_number_with_voice_settings.py +84 -0
  1271. telnyx/types/phone_numbers/phone_numbers_job.py +111 -0
  1272. telnyx/types/phone_numbers/update_voice_settings_param.py +52 -0
  1273. telnyx/types/phone_numbers/voice_list_params.py +63 -0
  1274. telnyx/types/phone_numbers/voice_list_response.py +15 -0
  1275. telnyx/types/phone_numbers/voice_retrieve_response.py +12 -0
  1276. telnyx/types/phone_numbers/voice_update_params.py +52 -0
  1277. telnyx/types/phone_numbers/voice_update_response.py +12 -0
  1278. telnyx/types/phone_numbers/voicemail_create_params.py +15 -0
  1279. telnyx/types/phone_numbers/voicemail_create_response.py +12 -0
  1280. telnyx/types/phone_numbers/voicemail_pref_response.py +15 -0
  1281. telnyx/types/phone_numbers/voicemail_retrieve_response.py +12 -0
  1282. telnyx/types/phone_numbers/voicemail_update_params.py +15 -0
  1283. telnyx/types/phone_numbers/voicemail_update_response.py +12 -0
  1284. telnyx/types/phone_numbers_regulatory_requirement_retrieve_params.py +20 -0
  1285. telnyx/types/phone_numbers_regulatory_requirement_retrieve_response.py +62 -0
  1286. telnyx/types/portability_check_run_params.py +13 -0
  1287. telnyx/types/portability_check_run_response.py +31 -0
  1288. telnyx/types/porting/__init__.py +26 -0
  1289. telnyx/types/porting/event_list_params.py +61 -0
  1290. telnyx/types/porting/event_list_response.py +200 -0
  1291. telnyx/types/porting/event_retrieve_response.py +197 -0
  1292. telnyx/types/porting/export_porting_orders_csv_report.py +43 -0
  1293. telnyx/types/porting/export_porting_orders_csv_report_param.py +44 -0
  1294. telnyx/types/porting/loa_configuration_create_params.py +57 -0
  1295. telnyx/types/porting/loa_configuration_create_response.py +12 -0
  1296. telnyx/types/porting/loa_configuration_list_params.py +23 -0
  1297. telnyx/types/porting/loa_configuration_list_response.py +15 -0
  1298. telnyx/types/porting/loa_configuration_preview_0_params.py +57 -0
  1299. telnyx/types/porting/loa_configuration_retrieve_response.py +12 -0
  1300. telnyx/types/porting/loa_configuration_update_params.py +57 -0
  1301. telnyx/types/porting/loa_configuration_update_response.py +12 -0
  1302. telnyx/types/porting/porting_loa_configuration.py +77 -0
  1303. telnyx/types/porting/porting_report.py +39 -0
  1304. telnyx/types/porting/report_create_params.py +17 -0
  1305. telnyx/types/porting/report_create_response.py +12 -0
  1306. telnyx/types/porting/report_list_params.py +37 -0
  1307. telnyx/types/porting/report_list_response.py +15 -0
  1308. telnyx/types/porting/report_retrieve_response.py +12 -0
  1309. telnyx/types/porting_list_uk_carriers_response.py +38 -0
  1310. telnyx/types/porting_order.py +98 -0
  1311. telnyx/types/porting_order_activation_settings.py +39 -0
  1312. telnyx/types/porting_order_create_params.py +16 -0
  1313. telnyx/types/porting_order_create_response.py +12 -0
  1314. telnyx/types/porting_order_documents.py +15 -0
  1315. telnyx/types/porting_order_documents_param.py +15 -0
  1316. telnyx/types/porting_order_end_user.py +15 -0
  1317. telnyx/types/porting_order_end_user_admin.py +33 -0
  1318. telnyx/types/porting_order_end_user_admin_param.py +33 -0
  1319. telnyx/types/porting_order_end_user_location.py +27 -0
  1320. telnyx/types/porting_order_end_user_location_param.py +27 -0
  1321. telnyx/types/porting_order_end_user_param.py +16 -0
  1322. telnyx/types/porting_order_list_params.py +116 -0
  1323. telnyx/types/porting_order_list_response.py +15 -0
  1324. telnyx/types/porting_order_messaging.py +28 -0
  1325. telnyx/types/porting_order_misc.py +32 -0
  1326. telnyx/types/porting_order_misc_param.py +32 -0
  1327. telnyx/types/porting_order_phone_number_configuration.py +23 -0
  1328. telnyx/types/porting_order_phone_number_configuration_param.py +24 -0
  1329. telnyx/types/porting_order_requirement.py +22 -0
  1330. telnyx/types/porting_order_retrieve_allowed_foc_windows_response.py +26 -0
  1331. telnyx/types/porting_order_retrieve_exception_types_response.py +12 -0
  1332. telnyx/types/porting_order_retrieve_loa_template_params.py +15 -0
  1333. telnyx/types/porting_order_retrieve_params.py +12 -0
  1334. telnyx/types/porting_order_retrieve_requirements_params.py +23 -0
  1335. telnyx/types/porting_order_retrieve_requirements_response.py +52 -0
  1336. telnyx/types/porting_order_retrieve_response.py +19 -0
  1337. telnyx/types/porting_order_retrieve_sub_request_response.py +19 -0
  1338. telnyx/types/porting_order_type.py +7 -0
  1339. telnyx/types/porting_order_update_params.py +74 -0
  1340. telnyx/types/porting_order_update_response.py +19 -0
  1341. telnyx/types/porting_order_user_feedback.py +18 -0
  1342. telnyx/types/porting_order_user_feedback_param.py +18 -0
  1343. telnyx/types/porting_orders/__init__.py +73 -0
  1344. telnyx/types/porting_orders/action_activate_response.py +12 -0
  1345. telnyx/types/porting_orders/action_cancel_response.py +19 -0
  1346. telnyx/types/porting_orders/action_confirm_response.py +19 -0
  1347. telnyx/types/porting_orders/action_requirement_initiate_params.py +25 -0
  1348. telnyx/types/porting_orders/action_requirement_initiate_response.py +45 -0
  1349. telnyx/types/porting_orders/action_requirement_list_params.py +56 -0
  1350. telnyx/types/porting_orders/action_requirement_list_response.py +48 -0
  1351. telnyx/types/porting_orders/action_share_params.py +15 -0
  1352. telnyx/types/porting_orders/action_share_response.py +39 -0
  1353. telnyx/types/porting_orders/activation_job_list_params.py +23 -0
  1354. telnyx/types/porting_orders/activation_job_list_response.py +15 -0
  1355. telnyx/types/porting_orders/activation_job_retrieve_response.py +12 -0
  1356. telnyx/types/porting_orders/activation_job_update_params.py +21 -0
  1357. telnyx/types/porting_orders/activation_job_update_response.py +12 -0
  1358. telnyx/types/porting_orders/additional_document_create_params.py +20 -0
  1359. telnyx/types/porting_orders/additional_document_create_response.py +42 -0
  1360. telnyx/types/porting_orders/additional_document_list_params.py +46 -0
  1361. telnyx/types/porting_orders/additional_document_list_response.py +45 -0
  1362. telnyx/types/porting_orders/associated_phone_number_create_params.py +22 -0
  1363. telnyx/types/porting_orders/associated_phone_number_create_response.py +12 -0
  1364. telnyx/types/porting_orders/associated_phone_number_delete_response.py +12 -0
  1365. telnyx/types/porting_orders/associated_phone_number_list_params.py +48 -0
  1366. telnyx/types/porting_orders/associated_phone_number_list_response.py +15 -0
  1367. telnyx/types/porting_orders/comment_create_params.py +11 -0
  1368. telnyx/types/porting_orders/comment_create_response.py +31 -0
  1369. telnyx/types/porting_orders/comment_list_params.py +23 -0
  1370. telnyx/types/porting_orders/comment_list_response.py +34 -0
  1371. telnyx/types/porting_orders/phone_number_block_create_params.py +46 -0
  1372. telnyx/types/porting_orders/phone_number_block_create_response.py +12 -0
  1373. telnyx/types/porting_orders/phone_number_block_delete_response.py +12 -0
  1374. telnyx/types/porting_orders/phone_number_block_list_params.py +105 -0
  1375. telnyx/types/porting_orders/phone_number_block_list_response.py +15 -0
  1376. telnyx/types/porting_orders/phone_number_configuration_create_params.py +20 -0
  1377. telnyx/types/porting_orders/phone_number_configuration_create_response.py +32 -0
  1378. telnyx/types/porting_orders/phone_number_configuration_list_params.py +70 -0
  1379. telnyx/types/porting_orders/phone_number_configuration_list_response.py +35 -0
  1380. telnyx/types/porting_orders/phone_number_extension_create_params.py +53 -0
  1381. telnyx/types/porting_orders/phone_number_extension_create_response.py +12 -0
  1382. telnyx/types/porting_orders/phone_number_extension_delete_response.py +12 -0
  1383. telnyx/types/porting_orders/phone_number_extension_list_params.py +45 -0
  1384. telnyx/types/porting_orders/phone_number_extension_list_response.py +15 -0
  1385. telnyx/types/porting_orders/porting_associated_phone_number.py +49 -0
  1386. telnyx/types/porting_orders/porting_phone_number_block.py +69 -0
  1387. telnyx/types/porting_orders/porting_phone_number_extension.py +66 -0
  1388. telnyx/types/porting_orders/verification_code_list_params.py +42 -0
  1389. telnyx/types/porting_orders/verification_code_list_response.py +38 -0
  1390. telnyx/types/porting_orders/verification_code_send_params.py +14 -0
  1391. telnyx/types/porting_orders/verification_code_verify_params.py +18 -0
  1392. telnyx/types/porting_orders/verification_code_verify_response.py +35 -0
  1393. telnyx/types/porting_orders_activation_job.py +46 -0
  1394. telnyx/types/porting_phone_number_list_params.py +36 -0
  1395. telnyx/types/porting_phone_number_list_response.py +76 -0
  1396. telnyx/types/portout_details.py +98 -0
  1397. telnyx/types/portout_list_params.py +86 -0
  1398. telnyx/types/portout_list_rejection_codes_params.py +21 -0
  1399. telnyx/types/portout_list_rejection_codes_response.py +19 -0
  1400. telnyx/types/portout_list_response.py +15 -0
  1401. telnyx/types/portout_retrieve_response.py +12 -0
  1402. telnyx/types/portout_update_status_params.py +20 -0
  1403. telnyx/types/portout_update_status_response.py +12 -0
  1404. telnyx/types/portouts/__init__.py +21 -0
  1405. telnyx/types/portouts/comment_create_params.py +12 -0
  1406. telnyx/types/portouts/comment_create_response.py +33 -0
  1407. telnyx/types/portouts/comment_list_response.py +36 -0
  1408. telnyx/types/portouts/event_list_params.py +52 -0
  1409. telnyx/types/portouts/event_list_response.py +116 -0
  1410. telnyx/types/portouts/event_retrieve_response.py +113 -0
  1411. telnyx/types/portouts/export_portouts_csv_report.py +38 -0
  1412. telnyx/types/portouts/export_portouts_csv_report_param.py +39 -0
  1413. telnyx/types/portouts/portout_report.py +39 -0
  1414. telnyx/types/portouts/report_create_params.py +17 -0
  1415. telnyx/types/portouts/report_create_response.py +12 -0
  1416. telnyx/types/portouts/report_list_params.py +37 -0
  1417. telnyx/types/portouts/report_list_response.py +15 -0
  1418. telnyx/types/portouts/report_retrieve_response.py +12 -0
  1419. telnyx/types/portouts/supporting_document_create_params.py +21 -0
  1420. telnyx/types/portouts/supporting_document_create_response.py +34 -0
  1421. telnyx/types/portouts/supporting_document_list_response.py +34 -0
  1422. telnyx/types/private_wireless_gateway.py +42 -0
  1423. telnyx/types/private_wireless_gateway_create_params.py +21 -0
  1424. telnyx/types/private_wireless_gateway_create_response.py +12 -0
  1425. telnyx/types/private_wireless_gateway_delete_response.py +12 -0
  1426. telnyx/types/private_wireless_gateway_list_params.py +32 -0
  1427. telnyx/types/private_wireless_gateway_list_response.py +15 -0
  1428. telnyx/types/private_wireless_gateway_retrieve_response.py +12 -0
  1429. telnyx/types/private_wireless_gateway_status.py +30 -0
  1430. telnyx/types/public_internet_gateway_create_params.py +18 -0
  1431. telnyx/types/public_internet_gateway_create_response.py +37 -0
  1432. telnyx/types/public_internet_gateway_delete_response.py +37 -0
  1433. telnyx/types/public_internet_gateway_list_params.py +34 -0
  1434. telnyx/types/public_internet_gateway_list_response.py +40 -0
  1435. telnyx/types/public_internet_gateway_retrieve_response.py +37 -0
  1436. telnyx/types/push_credential.py +39 -0
  1437. telnyx/types/push_credential_response.py +12 -0
  1438. telnyx/types/pwg_assigned_resources_summary.py +15 -0
  1439. telnyx/types/queue_retrieve_response.py +40 -0
  1440. telnyx/types/queues/__init__.py +7 -0
  1441. telnyx/types/queues/call_list_params.py +32 -0
  1442. telnyx/types/queues/call_list_response.py +55 -0
  1443. telnyx/types/queues/call_retrieve_response.py +52 -0
  1444. telnyx/types/rcs_agent.py +37 -0
  1445. telnyx/types/rcs_agent_message.py +77 -0
  1446. telnyx/types/rcs_agent_message_param.py +79 -0
  1447. telnyx/types/rcs_agent_response.py +12 -0
  1448. telnyx/types/rcs_card_content.py +35 -0
  1449. telnyx/types/rcs_card_content_param.py +36 -0
  1450. telnyx/types/rcs_content_info.py +18 -0
  1451. telnyx/types/rcs_content_info_param.py +18 -0
  1452. telnyx/types/rcs_suggestion.py +124 -0
  1453. telnyx/types/rcs_suggestion_param.py +126 -0
  1454. telnyx/types/record.py +21 -0
  1455. telnyx/types/record_param.py +11 -0
  1456. telnyx/types/recording_delete_response.py +12 -0
  1457. telnyx/types/recording_list_params.py +76 -0
  1458. telnyx/types/recording_list_response.py +15 -0
  1459. telnyx/types/recording_response_data.py +72 -0
  1460. telnyx/types/recording_retrieve_response.py +12 -0
  1461. telnyx/types/recording_transcription.py +36 -0
  1462. telnyx/types/recording_transcription_delete_response.py +12 -0
  1463. telnyx/types/recording_transcription_list_response.py +32 -0
  1464. telnyx/types/recording_transcription_retrieve_response.py +12 -0
  1465. telnyx/types/recordings/__init__.py +5 -0
  1466. telnyx/types/recordings/action_delete_params.py +13 -0
  1467. telnyx/types/region_in.py +12 -0
  1468. telnyx/types/region_list_response.py +31 -0
  1469. telnyx/types/regulatory_requirement_retrieve_params.py +33 -0
  1470. telnyx/types/regulatory_requirement_retrieve_response.py +58 -0
  1471. telnyx/types/report_list_mdrs_params.py +36 -0
  1472. telnyx/types/report_list_mdrs_response.py +74 -0
  1473. telnyx/types/report_list_wdrs_params.py +60 -0
  1474. telnyx/types/report_list_wdrs_response.py +99 -0
  1475. telnyx/types/reports/__init__.py +15 -0
  1476. telnyx/types/reports/cdr_usage_report_fetch_sync_params.py +23 -0
  1477. telnyx/types/reports/cdr_usage_report_fetch_sync_response.py +42 -0
  1478. telnyx/types/reports/mdr_usage_report.py +66 -0
  1479. telnyx/types/reports/mdr_usage_report_create_params.py +21 -0
  1480. telnyx/types/reports/mdr_usage_report_create_response.py +12 -0
  1481. telnyx/types/reports/mdr_usage_report_delete_response.py +12 -0
  1482. telnyx/types/reports/mdr_usage_report_fetch_sync_params.py +21 -0
  1483. telnyx/types/reports/mdr_usage_report_fetch_sync_response.py +12 -0
  1484. telnyx/types/reports/mdr_usage_report_list_params.py +23 -0
  1485. telnyx/types/reports/mdr_usage_report_list_response.py +24 -0
  1486. telnyx/types/reports/mdr_usage_report_retrieve_response.py +12 -0
  1487. telnyx/types/requirement_group.py +47 -0
  1488. telnyx/types/requirement_group_create_params.py +27 -0
  1489. telnyx/types/requirement_group_list_params.py +33 -0
  1490. telnyx/types/requirement_group_list_response.py +10 -0
  1491. telnyx/types/requirement_group_update_params.py +23 -0
  1492. telnyx/types/requirement_list_params.py +61 -0
  1493. telnyx/types/requirement_list_response.py +53 -0
  1494. telnyx/types/requirement_retrieve_response.py +50 -0
  1495. telnyx/types/requirement_type_list_params.py +31 -0
  1496. telnyx/types/requirement_type_list_response.py +15 -0
  1497. telnyx/types/requirement_type_retrieve_response.py +12 -0
  1498. telnyx/types/reserved_phone_number.py +38 -0
  1499. telnyx/types/reserved_phone_number_param.py +11 -0
  1500. telnyx/types/room.py +51 -0
  1501. telnyx/types/room_composition.py +77 -0
  1502. telnyx/types/room_composition_create_params.py +43 -0
  1503. telnyx/types/room_composition_create_response.py +12 -0
  1504. telnyx/types/room_composition_list_params.py +55 -0
  1505. telnyx/types/room_composition_list_response.py +15 -0
  1506. telnyx/types/room_composition_retrieve_response.py +12 -0
  1507. telnyx/types/room_create_params.py +38 -0
  1508. telnyx/types/room_create_response.py +12 -0
  1509. telnyx/types/room_list_params.py +69 -0
  1510. telnyx/types/room_list_response.py +15 -0
  1511. telnyx/types/room_participant_list_params.py +96 -0
  1512. telnyx/types/room_participant_list_response.py +15 -0
  1513. telnyx/types/room_participant_retrieve_response.py +12 -0
  1514. telnyx/types/room_recording_delete_bulk_params.py +83 -0
  1515. telnyx/types/room_recording_delete_bulk_response.py +16 -0
  1516. telnyx/types/room_recording_list_params.py +83 -0
  1517. telnyx/types/room_recording_list_response.py +65 -0
  1518. telnyx/types/room_recording_retrieve_response.py +62 -0
  1519. telnyx/types/room_retrieve_params.py +12 -0
  1520. telnyx/types/room_retrieve_response.py +12 -0
  1521. telnyx/types/room_session.py +33 -0
  1522. telnyx/types/room_update_params.py +38 -0
  1523. telnyx/types/room_update_response.py +12 -0
  1524. telnyx/types/rooms/__init__.py +22 -0
  1525. telnyx/types/rooms/action_generate_join_client_token_params.py +21 -0
  1526. telnyx/types/rooms/action_generate_join_client_token_response.py +24 -0
  1527. telnyx/types/rooms/action_refresh_client_token_params.py +17 -0
  1528. telnyx/types/rooms/action_refresh_client_token_response.py +19 -0
  1529. telnyx/types/rooms/session_list_0_params.py +87 -0
  1530. telnyx/types/rooms/session_list_0_response.py +15 -0
  1531. telnyx/types/rooms/session_list_1_params.py +84 -0
  1532. telnyx/types/rooms/session_list_1_response.py +15 -0
  1533. telnyx/types/rooms/session_retrieve_params.py +12 -0
  1534. telnyx/types/rooms/session_retrieve_participants_params.py +93 -0
  1535. telnyx/types/rooms/session_retrieve_participants_response.py +15 -0
  1536. telnyx/types/rooms/session_retrieve_response.py +12 -0
  1537. telnyx/types/rooms/sessions/__init__.py +11 -0
  1538. telnyx/types/rooms/sessions/action_end_response.py +15 -0
  1539. telnyx/types/rooms/sessions/action_kick_params.py +19 -0
  1540. telnyx/types/rooms/sessions/action_kick_response.py +15 -0
  1541. telnyx/types/rooms/sessions/action_mute_params.py +19 -0
  1542. telnyx/types/rooms/sessions/action_mute_response.py +15 -0
  1543. telnyx/types/rooms/sessions/action_unmute_params.py +19 -0
  1544. telnyx/types/rooms/sessions/action_unmute_response.py +15 -0
  1545. telnyx/types/s3_configuration_data.py +21 -0
  1546. telnyx/types/s3_configuration_data_param.py +21 -0
  1547. telnyx/types/service_plan.py +7 -0
  1548. telnyx/types/seti_retrieve_black_box_test_results_params.py +17 -0
  1549. telnyx/types/seti_retrieve_black_box_test_results_response.py +30 -0
  1550. telnyx/types/settings_param.py +24 -0
  1551. telnyx/types/shared/__init__.py +19 -0
  1552. telnyx/types/shared/connections_pagination_meta.py +17 -0
  1553. telnyx/types/shared/doc_reqs_requirement_type.py +60 -0
  1554. telnyx/types/shared/hosted_number.py +35 -0
  1555. telnyx/types/shared/messaging_feature_set.py +16 -0
  1556. telnyx/types/shared/messaging_hosted_number_order.py +42 -0
  1557. telnyx/types/shared/metadata.py +24 -0
  1558. telnyx/types/shared/number_health_metrics.py +21 -0
  1559. telnyx/types/shared/phone_number_with_messaging_settings.py +67 -0
  1560. telnyx/types/shared/porting_order_status.py +28 -0
  1561. telnyx/types/shared/porting_orders_exception_type.py +40 -0
  1562. telnyx/types/shared/room_participant.py +30 -0
  1563. telnyx/types/shared/short_code.py +32 -0
  1564. telnyx/types/shared/sim_card_status.py +40 -0
  1565. telnyx/types/shared/simple_sim_card.py +85 -0
  1566. telnyx/types/shared/sub_number_order_regulatory_requirement_with_value.py +23 -0
  1567. telnyx/types/shared_params/__init__.py +3 -0
  1568. telnyx/types/shared_params/sim_card_status.py +11 -0
  1569. telnyx/types/short_code_list_params.py +39 -0
  1570. telnyx/types/short_code_list_response.py +15 -0
  1571. telnyx/types/short_code_retrieve_response.py +12 -0
  1572. telnyx/types/short_code_update_params.py +12 -0
  1573. telnyx/types/short_code_update_response.py +12 -0
  1574. telnyx/types/sim_card.py +177 -0
  1575. telnyx/types/sim_card_data_usage_notification.py +33 -0
  1576. telnyx/types/sim_card_data_usage_notification_create_params.py +21 -0
  1577. telnyx/types/sim_card_data_usage_notification_create_response.py +13 -0
  1578. telnyx/types/sim_card_data_usage_notification_delete_response.py +13 -0
  1579. telnyx/types/sim_card_data_usage_notification_list_params.py +20 -0
  1580. telnyx/types/sim_card_data_usage_notification_list_response.py +15 -0
  1581. telnyx/types/sim_card_data_usage_notification_retrieve_response.py +13 -0
  1582. telnyx/types/sim_card_data_usage_notification_update_params.py +21 -0
  1583. telnyx/types/sim_card_data_usage_notification_update_response.py +13 -0
  1584. telnyx/types/sim_card_delete_params.py +15 -0
  1585. telnyx/types/sim_card_delete_response.py +12 -0
  1586. telnyx/types/sim_card_get_activation_code_response.py +18 -0
  1587. telnyx/types/sim_card_get_device_details_response.py +32 -0
  1588. telnyx/types/sim_card_get_public_ip_response.py +35 -0
  1589. telnyx/types/sim_card_group.py +49 -0
  1590. telnyx/types/sim_card_group_create_params.py +21 -0
  1591. telnyx/types/sim_card_group_create_response.py +12 -0
  1592. telnyx/types/sim_card_group_delete_response.py +12 -0
  1593. telnyx/types/sim_card_group_list_params.py +26 -0
  1594. telnyx/types/sim_card_group_list_response.py +59 -0
  1595. telnyx/types/sim_card_group_retrieve_params.py +12 -0
  1596. telnyx/types/sim_card_group_retrieve_response.py +12 -0
  1597. telnyx/types/sim_card_group_update_params.py +21 -0
  1598. telnyx/types/sim_card_group_update_response.py +12 -0
  1599. telnyx/types/sim_card_groups/__init__.py +24 -0
  1600. telnyx/types/sim_card_groups/action_list_params.py +34 -0
  1601. telnyx/types/sim_card_groups/action_list_response.py +15 -0
  1602. telnyx/types/sim_card_groups/action_remove_private_wireless_gateway_response.py +17 -0
  1603. telnyx/types/sim_card_groups/action_remove_wireless_blocklist_response.py +17 -0
  1604. telnyx/types/sim_card_groups/action_retrieve_response.py +17 -0
  1605. telnyx/types/sim_card_groups/action_set_private_wireless_gateway_params.py +12 -0
  1606. telnyx/types/sim_card_groups/action_set_private_wireless_gateway_response.py +17 -0
  1607. telnyx/types/sim_card_groups/action_set_wireless_blocklist_params.py +12 -0
  1608. telnyx/types/sim_card_groups/action_set_wireless_blocklist_response.py +17 -0
  1609. telnyx/types/sim_card_groups/sim_card_group_action.py +44 -0
  1610. telnyx/types/sim_card_list_params.py +65 -0
  1611. telnyx/types/sim_card_list_response.py +15 -0
  1612. telnyx/types/sim_card_list_wireless_connectivity_logs_params.py +17 -0
  1613. telnyx/types/sim_card_list_wireless_connectivity_logs_response.py +106 -0
  1614. telnyx/types/sim_card_order.py +89 -0
  1615. telnyx/types/sim_card_order_create_params.py +15 -0
  1616. telnyx/types/sim_card_order_create_response.py +12 -0
  1617. telnyx/types/sim_card_order_list_params.py +95 -0
  1618. telnyx/types/sim_card_order_list_response.py +15 -0
  1619. telnyx/types/sim_card_order_preview_preview_params.py +18 -0
  1620. telnyx/types/sim_card_order_preview_preview_response.py +49 -0
  1621. telnyx/types/sim_card_order_retrieve_response.py +12 -0
  1622. telnyx/types/sim_card_retrieve_params.py +19 -0
  1623. telnyx/types/sim_card_retrieve_response.py +12 -0
  1624. telnyx/types/sim_card_update_params.py +36 -0
  1625. telnyx/types/sim_card_update_response.py +12 -0
  1626. telnyx/types/sim_cards/__init__.py +22 -0
  1627. telnyx/types/sim_cards/action_bulk_set_public_ips_params.py +12 -0
  1628. telnyx/types/sim_cards/action_bulk_set_public_ips_response.py +41 -0
  1629. telnyx/types/sim_cards/action_disable_response.py +16 -0
  1630. telnyx/types/sim_cards/action_enable_response.py +16 -0
  1631. telnyx/types/sim_cards/action_list_params.py +46 -0
  1632. telnyx/types/sim_cards/action_list_response.py +15 -0
  1633. telnyx/types/sim_cards/action_remove_public_ip_response.py +16 -0
  1634. telnyx/types/sim_cards/action_retrieve_response.py +16 -0
  1635. telnyx/types/sim_cards/action_set_public_ip_params.py +15 -0
  1636. telnyx/types/sim_cards/action_set_public_ip_response.py +16 -0
  1637. telnyx/types/sim_cards/action_set_standby_response.py +16 -0
  1638. telnyx/types/sim_cards/action_validate_registration_codes_params.py +12 -0
  1639. telnyx/types/sim_cards/action_validate_registration_codes_response.py +24 -0
  1640. telnyx/types/sim_cards/sim_card_action.py +53 -0
  1641. telnyx/types/sip_header_param.py +15 -0
  1642. telnyx/types/siprec_connector_create_params.py +23 -0
  1643. telnyx/types/siprec_connector_create_response.py +33 -0
  1644. telnyx/types/siprec_connector_retrieve_response.py +33 -0
  1645. telnyx/types/siprec_connector_update_params.py +23 -0
  1646. telnyx/types/siprec_connector_update_response.py +33 -0
  1647. telnyx/types/sound_modifications_param.py +24 -0
  1648. telnyx/types/stock_exchange.py +33 -0
  1649. telnyx/types/storage/__init__.py +17 -0
  1650. telnyx/types/storage/bucket_create_presigned_url_params.py +16 -0
  1651. telnyx/types/storage/bucket_create_presigned_url_response.py +23 -0
  1652. telnyx/types/storage/buckets/__init__.py +13 -0
  1653. telnyx/types/storage/buckets/pagination_meta_simple.py +17 -0
  1654. telnyx/types/storage/buckets/ssl_certificate.py +48 -0
  1655. telnyx/types/storage/buckets/ssl_certificate_create_params.py +17 -0
  1656. telnyx/types/storage/buckets/ssl_certificate_create_response.py +12 -0
  1657. telnyx/types/storage/buckets/ssl_certificate_delete_response.py +12 -0
  1658. telnyx/types/storage/buckets/ssl_certificate_retrieve_response.py +12 -0
  1659. telnyx/types/storage/buckets/usage_get_api_usage_params.py +27 -0
  1660. telnyx/types/storage/buckets/usage_get_api_usage_response.py +66 -0
  1661. telnyx/types/storage/buckets/usage_get_bucket_usage_response.py +29 -0
  1662. telnyx/types/storage/migration_create_params.py +27 -0
  1663. telnyx/types/storage/migration_create_response.py +12 -0
  1664. telnyx/types/storage/migration_list_response.py +15 -0
  1665. telnyx/types/storage/migration_params.py +53 -0
  1666. telnyx/types/storage/migration_retrieve_response.py +12 -0
  1667. telnyx/types/storage/migration_source_create_params.py +37 -0
  1668. telnyx/types/storage/migration_source_create_response.py +12 -0
  1669. telnyx/types/storage/migration_source_delete_response.py +12 -0
  1670. telnyx/types/storage/migration_source_list_response.py +15 -0
  1671. telnyx/types/storage/migration_source_params.py +41 -0
  1672. telnyx/types/storage/migration_source_retrieve_response.py +12 -0
  1673. telnyx/types/storage/migrations/__init__.py +5 -0
  1674. telnyx/types/storage/migrations/action_stop_response.py +12 -0
  1675. telnyx/types/storage_list_migration_source_coverage_response.py +23 -0
  1676. telnyx/types/stream_bidirectional_codec.py +7 -0
  1677. telnyx/types/stream_bidirectional_mode.py +7 -0
  1678. telnyx/types/stream_bidirectional_target_legs.py +7 -0
  1679. telnyx/types/stream_codec.py +7 -0
  1680. telnyx/types/sub_number_order.py +47 -0
  1681. telnyx/types/sub_number_order_cancel_response.py +12 -0
  1682. telnyx/types/sub_number_order_list_params.py +33 -0
  1683. telnyx/types/sub_number_order_list_response.py +15 -0
  1684. telnyx/types/sub_number_order_regulatory_requirement.py +17 -0
  1685. telnyx/types/sub_number_order_retrieve_params.py +20 -0
  1686. telnyx/types/sub_number_order_retrieve_response.py +12 -0
  1687. telnyx/types/sub_number_order_update_params.py +14 -0
  1688. telnyx/types/sub_number_order_update_requirement_group_params.py +12 -0
  1689. telnyx/types/sub_number_order_update_requirement_group_response.py +88 -0
  1690. telnyx/types/sub_number_order_update_response.py +12 -0
  1691. telnyx/types/sub_number_orders_report_create_params.py +31 -0
  1692. telnyx/types/sub_number_orders_report_create_response.py +53 -0
  1693. telnyx/types/sub_number_orders_report_download_response.py +7 -0
  1694. telnyx/types/sub_number_orders_report_retrieve_response.py +53 -0
  1695. telnyx/types/task_status.py +7 -0
  1696. telnyx/types/telephony_credential.py +38 -0
  1697. telnyx/types/telephony_credential_create_params.py +20 -0
  1698. telnyx/types/telephony_credential_create_response.py +12 -0
  1699. telnyx/types/telephony_credential_create_token_response.py +7 -0
  1700. telnyx/types/telephony_credential_delete_response.py +12 -0
  1701. telnyx/types/telephony_credential_list_params.py +47 -0
  1702. telnyx/types/telephony_credential_list_response.py +15 -0
  1703. telnyx/types/telephony_credential_retrieve_response.py +12 -0
  1704. telnyx/types/telephony_credential_update_params.py +20 -0
  1705. telnyx/types/telephony_credential_update_response.py +12 -0
  1706. telnyx/types/telnyx_brand.py +142 -0
  1707. telnyx/types/telnyx_campaign_csp.py +214 -0
  1708. telnyx/types/telnyx_downstream_campaign.py +154 -0
  1709. telnyx/types/texml/__init__.py +24 -0
  1710. telnyx/types/texml/account_retrieve_recordings_json_params.py +30 -0
  1711. telnyx/types/texml/account_retrieve_recordings_json_response.py +36 -0
  1712. telnyx/types/texml/account_retrieve_transcriptions_json_params.py +17 -0
  1713. telnyx/types/texml/account_retrieve_transcriptions_json_response.py +71 -0
  1714. telnyx/types/texml/accounts/__init__.py +30 -0
  1715. telnyx/types/texml/accounts/call_calls_params.py +169 -0
  1716. telnyx/types/texml/accounts/call_calls_response.py +17 -0
  1717. telnyx/types/texml/accounts/call_retrieve_calls_params.py +50 -0
  1718. telnyx/types/texml/accounts/call_retrieve_calls_response.py +101 -0
  1719. telnyx/types/texml/accounts/call_retrieve_response.py +72 -0
  1720. telnyx/types/texml/accounts/call_siprec_json_params.py +61 -0
  1721. telnyx/types/texml/accounts/call_siprec_json_response.py +40 -0
  1722. telnyx/types/texml/accounts/call_streams_json_params.py +37 -0
  1723. telnyx/types/texml/accounts/call_streams_json_response.py +29 -0
  1724. telnyx/types/texml/accounts/call_update_params.py +46 -0
  1725. telnyx/types/texml/accounts/call_update_response.py +72 -0
  1726. telnyx/types/texml/accounts/calls/__init__.py +21 -0
  1727. telnyx/types/texml/accounts/calls/recording_recording_sid_json_params.py +17 -0
  1728. telnyx/types/texml/accounts/calls/recording_recording_sid_json_response.py +58 -0
  1729. telnyx/types/texml/accounts/calls/recordings_json_recordings_json_params.py +43 -0
  1730. telnyx/types/texml/accounts/calls/recordings_json_recordings_json_response.py +58 -0
  1731. telnyx/types/texml/accounts/calls/recordings_json_retrieve_recordings_json_response.py +36 -0
  1732. telnyx/types/texml/accounts/calls/siprec_siprec_sid_json_params.py +21 -0
  1733. telnyx/types/texml/accounts/calls/siprec_siprec_sid_json_response.py +31 -0
  1734. telnyx/types/texml/accounts/calls/stream_streaming_sid_json_params.py +18 -0
  1735. telnyx/types/texml/accounts/calls/stream_streaming_sid_json_response.py +26 -0
  1736. telnyx/types/texml/accounts/conference_retrieve_conferences_params.py +43 -0
  1737. telnyx/types/texml/accounts/conference_retrieve_conferences_response.py +85 -0
  1738. telnyx/types/texml/accounts/conference_retrieve_recordings_json_response.py +36 -0
  1739. telnyx/types/texml/accounts/conference_retrieve_recordings_response.py +94 -0
  1740. telnyx/types/texml/accounts/conference_retrieve_response.py +56 -0
  1741. telnyx/types/texml/accounts/conference_update_params.py +29 -0
  1742. telnyx/types/texml/accounts/conference_update_response.py +56 -0
  1743. telnyx/types/texml/accounts/conferences/__init__.py +12 -0
  1744. telnyx/types/texml/accounts/conferences/participant_participants_params.py +251 -0
  1745. telnyx/types/texml/accounts/conferences/participant_participants_response.py +37 -0
  1746. telnyx/types/texml/accounts/conferences/participant_retrieve_participants_response.py +81 -0
  1747. telnyx/types/texml/accounts/conferences/participant_retrieve_response.py +52 -0
  1748. telnyx/types/texml/accounts/conferences/participant_update_params.py +69 -0
  1749. telnyx/types/texml/accounts/conferences/participant_update_response.py +52 -0
  1750. telnyx/types/texml/accounts/recordings/__init__.py +3 -0
  1751. telnyx/types/texml/accounts/transcriptions/__init__.py +7 -0
  1752. telnyx/types/texml/accounts/transcriptions/json_retrieve_recording_transcription_sid_json_response.py +43 -0
  1753. telnyx/types/texml/call_initiate_params.py +163 -0
  1754. telnyx/types/texml/call_initiate_response.py +21 -0
  1755. telnyx/types/texml/call_update_params.py +44 -0
  1756. telnyx/types/texml/call_update_response.py +17 -0
  1757. telnyx/types/texml/texml_get_call_recording_response_body.py +57 -0
  1758. telnyx/types/texml/texml_recording_subresources_uris.py +11 -0
  1759. telnyx/types/texml_application.py +125 -0
  1760. telnyx/types/texml_application_create_params.py +114 -0
  1761. telnyx/types/texml_application_create_response.py +12 -0
  1762. telnyx/types/texml_application_delete_response.py +12 -0
  1763. telnyx/types/texml_application_list_params.py +59 -0
  1764. telnyx/types/texml_application_list_response.py +24 -0
  1765. telnyx/types/texml_application_retrieve_response.py +12 -0
  1766. telnyx/types/texml_application_update_params.py +114 -0
  1767. telnyx/types/texml_application_update_response.py +12 -0
  1768. telnyx/types/texml_secrets_params.py +18 -0
  1769. telnyx/types/texml_secrets_response.py +18 -0
  1770. telnyx/types/text_to_speech_generate_speech_params.py +26 -0
  1771. telnyx/types/text_to_speech_list_voices_params.py +15 -0
  1772. telnyx/types/text_to_speech_list_voices_response.py +29 -0
  1773. telnyx/types/traffic_type.py +7 -0
  1774. telnyx/types/transport_protocol.py +7 -0
  1775. telnyx/types/update_regulatory_requirement_param.py +19 -0
  1776. telnyx/types/url_shortener_settings.py +30 -0
  1777. telnyx/types/url_shortener_settings_param.py +30 -0
  1778. telnyx/types/usage_payment_method.py +7 -0
  1779. telnyx/types/usage_report_get_options_params.py +18 -0
  1780. telnyx/types/usage_report_get_options_response.py +37 -0
  1781. telnyx/types/usage_report_list_params.py +70 -0
  1782. telnyx/types/usage_report_list_response.py +27 -0
  1783. telnyx/types/user_address.py +77 -0
  1784. telnyx/types/user_address_create_params.py +80 -0
  1785. telnyx/types/user_address_create_response.py +12 -0
  1786. telnyx/types/user_address_list_params.py +86 -0
  1787. telnyx/types/user_address_list_response.py +15 -0
  1788. telnyx/types/user_address_retrieve_response.py +12 -0
  1789. telnyx/types/user_tag_list_params.py +20 -0
  1790. telnyx/types/user_tag_list_response.py +31 -0
  1791. telnyx/types/verification.py +42 -0
  1792. telnyx/types/verification_retrieve_response.py +10 -0
  1793. telnyx/types/verification_trigger_call_params.py +22 -0
  1794. telnyx/types/verification_trigger_flashcall_params.py +18 -0
  1795. telnyx/types/verification_trigger_sms_params.py +22 -0
  1796. telnyx/types/verifications/__init__.py +6 -0
  1797. telnyx/types/verifications/action_verify_params.py +18 -0
  1798. telnyx/types/verifications/by_phone_number/__init__.py +6 -0
  1799. telnyx/types/verifications/by_phone_number/action_verify_params.py +15 -0
  1800. telnyx/types/verifications/by_phone_number/verify_verification_code_response.py +19 -0
  1801. telnyx/types/verifications/by_phone_number_list_response.py +24 -0
  1802. telnyx/types/verified_number.py +17 -0
  1803. telnyx/types/verified_number_create_params.py +14 -0
  1804. telnyx/types/verified_number_create_response.py +13 -0
  1805. telnyx/types/verified_number_data_wrapper.py +12 -0
  1806. telnyx/types/verified_number_list_params.py +22 -0
  1807. telnyx/types/verified_number_list_response.py +24 -0
  1808. telnyx/types/verified_numbers/__init__.py +7 -0
  1809. telnyx/types/verified_numbers/action_submit_verification_code_params.py +11 -0
  1810. telnyx/types/verify_profile.py +130 -0
  1811. telnyx/types/verify_profile_create_params.py +114 -0
  1812. telnyx/types/verify_profile_data.py +12 -0
  1813. telnyx/types/verify_profile_list_params.py +29 -0
  1814. telnyx/types/verify_profile_list_response.py +24 -0
  1815. telnyx/types/verify_profile_retrieve_templates_response.py +17 -0
  1816. telnyx/types/verify_profile_update_params.py +114 -0
  1817. telnyx/types/vertical.py +25 -0
  1818. telnyx/types/video_region.py +53 -0
  1819. telnyx/types/video_region_param.py +54 -0
  1820. telnyx/types/virtual_cross_connect_create_params.py +95 -0
  1821. telnyx/types/virtual_cross_connect_create_response.py +129 -0
  1822. telnyx/types/virtual_cross_connect_delete_response.py +129 -0
  1823. telnyx/types/virtual_cross_connect_list_params.py +34 -0
  1824. telnyx/types/virtual_cross_connect_list_response.py +132 -0
  1825. telnyx/types/virtual_cross_connect_retrieve_response.py +129 -0
  1826. telnyx/types/virtual_cross_connect_update_params.py +41 -0
  1827. telnyx/types/virtual_cross_connect_update_response.py +129 -0
  1828. telnyx/types/virtual_cross_connects_coverage_list_params.py +80 -0
  1829. telnyx/types/virtual_cross_connects_coverage_list_response.py +58 -0
  1830. telnyx/types/webhook_api_version.py +7 -0
  1831. telnyx/types/webhook_delivery_list_params.py +106 -0
  1832. telnyx/types/webhook_delivery_list_response.py +120 -0
  1833. telnyx/types/webhook_delivery_retrieve_response.py +108 -0
  1834. telnyx/types/wireguard_interface_create_params.py +21 -0
  1835. telnyx/types/wireguard_interface_create_response.py +43 -0
  1836. telnyx/types/wireguard_interface_delete_response.py +43 -0
  1837. telnyx/types/wireguard_interface_list_params.py +34 -0
  1838. telnyx/types/wireguard_interface_list_response.py +46 -0
  1839. telnyx/types/wireguard_interface_retrieve_response.py +43 -0
  1840. telnyx/types/wireguard_peer_create_params.py +18 -0
  1841. telnyx/types/wireguard_peer_create_response.py +33 -0
  1842. telnyx/types/wireguard_peer_delete_response.py +33 -0
  1843. telnyx/types/wireguard_peer_list_params.py +34 -0
  1844. telnyx/types/wireguard_peer_list_response.py +36 -0
  1845. telnyx/types/wireguard_peer_patch.py +15 -0
  1846. telnyx/types/wireguard_peer_retrieve_config_response.py +7 -0
  1847. telnyx/types/wireguard_peer_retrieve_response.py +33 -0
  1848. telnyx/types/wireguard_peer_update_params.py +15 -0
  1849. telnyx/types/wireguard_peer_update_response.py +33 -0
  1850. telnyx/types/wireless/__init__.py +17 -0
  1851. telnyx/types/wireless/detail_records_report_create_params.py +15 -0
  1852. telnyx/types/wireless/detail_records_report_create_response.py +12 -0
  1853. telnyx/types/wireless/detail_records_report_delete_response.py +12 -0
  1854. telnyx/types/wireless/detail_records_report_list_params.py +17 -0
  1855. telnyx/types/wireless/detail_records_report_list_response.py +12 -0
  1856. telnyx/types/wireless/detail_records_report_retrieve_response.py +12 -0
  1857. telnyx/types/wireless/wdr_report.py +33 -0
  1858. telnyx/types/wireless_blocklist.py +30 -0
  1859. telnyx/types/wireless_blocklist_create_params.py +19 -0
  1860. telnyx/types/wireless_blocklist_create_response.py +12 -0
  1861. telnyx/types/wireless_blocklist_delete_response.py +12 -0
  1862. telnyx/types/wireless_blocklist_list_params.py +26 -0
  1863. telnyx/types/wireless_blocklist_list_response.py +15 -0
  1864. telnyx/types/wireless_blocklist_retrieve_response.py +12 -0
  1865. telnyx/types/wireless_blocklist_update_params.py +19 -0
  1866. telnyx/types/wireless_blocklist_update_response.py +12 -0
  1867. telnyx/types/wireless_blocklist_value_list_params.py +15 -0
  1868. telnyx/types/wireless_blocklist_value_list_response.py +38 -0
  1869. telnyx/types/wireless_retrieve_regions_params.py +15 -0
  1870. telnyx/types/wireless_retrieve_regions_response.py +26 -0
  1871. telnyx-3.0.0a0.dist-info/METADATA +431 -0
  1872. telnyx-3.0.0a0.dist-info/RECORD +1874 -0
  1873. telnyx-3.0.0a0.dist-info/WHEEL +4 -0
  1874. telnyx-3.0.0a0.dist-info/licenses/LICENSE +7 -0
telnyx/_client.py ADDED
@@ -0,0 +1,3163 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ import os
6
+ from typing import Any, Union, Mapping, Iterable
7
+ from typing_extensions import Self, Literal, override
8
+
9
+ import httpx
10
+
11
+ from . import _exceptions
12
+ from ._qs import Querystring
13
+ from .types import (
14
+ client_get_object_params,
15
+ client_put_object_params,
16
+ client_list_objects_params,
17
+ client_create_bucket_params,
18
+ client_delete_objects_params,
19
+ )
20
+ from ._types import (
21
+ NOT_GIVEN,
22
+ Body,
23
+ Omit,
24
+ Query,
25
+ Headers,
26
+ Timeout,
27
+ NoneType,
28
+ NotGiven,
29
+ FileTypes,
30
+ Transport,
31
+ ProxiesTypes,
32
+ RequestOptions,
33
+ )
34
+ from ._utils import (
35
+ is_given,
36
+ maybe_transform,
37
+ get_async_library,
38
+ async_maybe_transform,
39
+ )
40
+ from ._version import __version__
41
+ from ._response import (
42
+ BinaryAPIResponse,
43
+ AsyncBinaryAPIResponse,
44
+ StreamedBinaryAPIResponse,
45
+ AsyncStreamedBinaryAPIResponse,
46
+ to_raw_response_wrapper,
47
+ to_streamed_response_wrapper,
48
+ async_to_raw_response_wrapper,
49
+ to_custom_raw_response_wrapper,
50
+ async_to_streamed_response_wrapper,
51
+ to_custom_streamed_response_wrapper,
52
+ async_to_custom_raw_response_wrapper,
53
+ async_to_custom_streamed_response_wrapper,
54
+ )
55
+ from .resources import (
56
+ ips,
57
+ enum,
58
+ list,
59
+ seti,
60
+ fqdns,
61
+ media,
62
+ balance,
63
+ regions,
64
+ comments,
65
+ invoices,
66
+ documents,
67
+ messsages,
68
+ user_tags,
69
+ global_ips,
70
+ call_events,
71
+ connections,
72
+ ota_updates,
73
+ short_codes,
74
+ audit_events,
75
+ requirements,
76
+ channel_zones,
77
+ number_lookup,
78
+ number_orders,
79
+ usage_reports,
80
+ billing_groups,
81
+ detail_records,
82
+ document_links,
83
+ ip_connections,
84
+ text_to_speech,
85
+ user_addresses,
86
+ advanced_orders,
87
+ charges_summary,
88
+ global_ip_usage,
89
+ room_recordings,
90
+ sim_card_orders,
91
+ verify_profiles,
92
+ wireguard_peers,
93
+ access_ip_ranges,
94
+ country_coverage,
95
+ fax_applications,
96
+ fqdn_connections,
97
+ inbound_channels,
98
+ network_coverage,
99
+ numbers_features,
100
+ access_ip_address,
101
+ charges_breakdown,
102
+ global_ip_latency,
103
+ messaging_optouts,
104
+ partner_campaigns,
105
+ requirement_types,
106
+ room_compositions,
107
+ room_participants,
108
+ siprec_connectors,
109
+ sub_number_orders,
110
+ inventory_coverage,
111
+ portability_checks,
112
+ requirement_groups,
113
+ texml_applications,
114
+ webhook_deliveries,
115
+ global_ip_protocols,
116
+ integration_secrets,
117
+ notification_events,
118
+ number_block_orders,
119
+ wireless_blocklists,
120
+ wireguard_interfaces,
121
+ bulk_sim_card_actions,
122
+ global_ip_assignments,
123
+ messaging_url_domains,
124
+ notification_channels,
125
+ notification_profiles,
126
+ notification_settings,
127
+ porting_phone_numbers,
128
+ telephony_credentials,
129
+ dialogflow_connections,
130
+ phone_number_campaigns,
131
+ sim_card_order_preview,
132
+ virtual_cross_connects,
133
+ available_phone_numbers,
134
+ global_ip_allowed_ports,
135
+ global_ip_health_checks,
136
+ mobile_push_credentials,
137
+ outbound_voice_profiles,
138
+ regulatory_requirements,
139
+ authentication_providers,
140
+ customer_service_records,
141
+ messaging_hosted_numbers,
142
+ mobile_network_operators,
143
+ public_internet_gateways,
144
+ recording_transcriptions,
145
+ sub_number_orders_report,
146
+ call_control_applications,
147
+ private_wireless_gateways,
148
+ wireless_blocklist_values,
149
+ custom_storage_credentials,
150
+ number_order_phone_numbers,
151
+ dynamic_emergency_addresses,
152
+ dynamic_emergency_endpoints,
153
+ global_ip_assignment_health,
154
+ global_ip_assignments_usage,
155
+ global_ip_health_check_types,
156
+ ledger_billing_group_reports,
157
+ available_phone_number_blocks,
158
+ notification_event_conditions,
159
+ messaging_numbers_bulk_updates,
160
+ virtual_cross_connects_coverage,
161
+ sim_card_data_usage_notifications,
162
+ phone_number_assignment_by_profile,
163
+ phone_numbers_regulatory_requirements,
164
+ )
165
+ from ._streaming import Stream as Stream, AsyncStream as AsyncStream
166
+ from ._exceptions import TelnyxError, APIStatusError
167
+ from ._base_client import (
168
+ DEFAULT_MAX_RETRIES,
169
+ SyncAPIClient,
170
+ AsyncAPIClient,
171
+ make_request_options,
172
+ )
173
+ from .resources.ai import ai
174
+ from .resources.brand import brand
175
+ from .resources.calls import calls
176
+ from .resources.faxes import faxes
177
+ from .resources.rooms import rooms
178
+ from .resources.texml import texml
179
+ from .resources.queues import queues
180
+ from .resources.actions import actions
181
+ from .resources.payment import payment
182
+ from .resources.porting import porting
183
+ from .resources.reports import reports
184
+ from .resources.storage import storage
185
+ from .resources.campaign import campaign
186
+ from .resources.messages import messages
187
+ from .resources.networks import networks
188
+ from .resources.portouts import portouts
189
+ from .resources.wireless import wireless
190
+ from .resources.addresses import addresses
191
+ from .resources.messaging import messaging
192
+ from .resources.sim_cards import sim_cards
193
+ from .resources.recordings import recordings
194
+ from .resources.conferences import conferences
195
+ from .resources.phone_numbers import phone_numbers
196
+ from .resources.verifications import verifications
197
+ from .resources.bundle_pricing import bundle_pricing
198
+ from .resources.porting_orders import porting_orders
199
+ from .resources.sim_card_groups import sim_card_groups
200
+ from .resources.campaign_builder import campaign_builder
201
+ from .resources.managed_accounts import managed_accounts
202
+ from .resources.operator_connect import operator_connect
203
+ from .resources.verified_numbers import verified_numbers
204
+ from .types.list_buckets_response import ListBucketsResponse
205
+ from .types.list_objects_response import ListObjectsResponse
206
+ from .resources.messaging_profiles import messaging_profiles
207
+ from .resources.messaging_tollfree import messaging_tollfree
208
+ from .resources.number_reservations import number_reservations
209
+ from .resources.phone_number_blocks import phone_number_blocks
210
+ from .resources.external_connections import external_connections
211
+ from .resources.credential_connections import credential_connections
212
+ from .resources.messaging_hosted_number_orders import messaging_hosted_number_orders
213
+
214
+ __all__ = ["Timeout", "Transport", "ProxiesTypes", "RequestOptions", "Telnyx", "AsyncTelnyx", "Client", "AsyncClient"]
215
+
216
+
217
+ class Telnyx(SyncAPIClient):
218
+ access_ip_address: access_ip_address.AccessIPAddressResource
219
+ access_ip_ranges: access_ip_ranges.AccessIPRangesResource
220
+ actions: actions.ActionsResource
221
+ addresses: addresses.AddressesResource
222
+ advanced_orders: advanced_orders.AdvancedOrdersResource
223
+ ai: ai.AIResource
224
+ audit_events: audit_events.AuditEventsResource
225
+ authentication_providers: authentication_providers.AuthenticationProvidersResource
226
+ available_phone_number_blocks: available_phone_number_blocks.AvailablePhoneNumberBlocksResource
227
+ available_phone_numbers: available_phone_numbers.AvailablePhoneNumbersResource
228
+ balance: balance.BalanceResource
229
+ billing_groups: billing_groups.BillingGroupsResource
230
+ brand: brand.BrandResource
231
+ bulk_sim_card_actions: bulk_sim_card_actions.BulkSimCardActionsResource
232
+ bundle_pricing: bundle_pricing.BundlePricingResource
233
+ call_control_applications: call_control_applications.CallControlApplicationsResource
234
+ call_events: call_events.CallEventsResource
235
+ calls: calls.CallsResource
236
+ campaign: campaign.CampaignResource
237
+ campaign_builder: campaign_builder.CampaignBuilderResource
238
+ channel_zones: channel_zones.ChannelZonesResource
239
+ charges_breakdown: charges_breakdown.ChargesBreakdownResource
240
+ charges_summary: charges_summary.ChargesSummaryResource
241
+ comments: comments.CommentsResource
242
+ conferences: conferences.ConferencesResource
243
+ connections: connections.ConnectionsResource
244
+ country_coverage: country_coverage.CountryCoverageResource
245
+ credential_connections: credential_connections.CredentialConnectionsResource
246
+ custom_storage_credentials: custom_storage_credentials.CustomStorageCredentialsResource
247
+ customer_service_records: customer_service_records.CustomerServiceRecordsResource
248
+ detail_records: detail_records.DetailRecordsResource
249
+ dialogflow_connections: dialogflow_connections.DialogflowConnectionsResource
250
+ document_links: document_links.DocumentLinksResource
251
+ documents: documents.DocumentsResource
252
+ dynamic_emergency_addresses: dynamic_emergency_addresses.DynamicEmergencyAddressesResource
253
+ dynamic_emergency_endpoints: dynamic_emergency_endpoints.DynamicEmergencyEndpointsResource
254
+ enum: enum.EnumResource
255
+ external_connections: external_connections.ExternalConnectionsResource
256
+ fax_applications: fax_applications.FaxApplicationsResource
257
+ faxes: faxes.FaxesResource
258
+ fqdn_connections: fqdn_connections.FqdnConnectionsResource
259
+ fqdns: fqdns.FqdnsResource
260
+ global_ip_allowed_ports: global_ip_allowed_ports.GlobalIPAllowedPortsResource
261
+ global_ip_assignment_health: global_ip_assignment_health.GlobalIPAssignmentHealthResource
262
+ global_ip_assignments: global_ip_assignments.GlobalIPAssignmentsResource
263
+ global_ip_assignments_usage: global_ip_assignments_usage.GlobalIPAssignmentsUsageResource
264
+ global_ip_health_check_types: global_ip_health_check_types.GlobalIPHealthCheckTypesResource
265
+ global_ip_health_checks: global_ip_health_checks.GlobalIPHealthChecksResource
266
+ global_ip_latency: global_ip_latency.GlobalIPLatencyResource
267
+ global_ip_protocols: global_ip_protocols.GlobalIPProtocolsResource
268
+ global_ip_usage: global_ip_usage.GlobalIPUsageResource
269
+ global_ips: global_ips.GlobalIPsResource
270
+ inbound_channels: inbound_channels.InboundChannelsResource
271
+ integration_secrets: integration_secrets.IntegrationSecretsResource
272
+ inventory_coverage: inventory_coverage.InventoryCoverageResource
273
+ invoices: invoices.InvoicesResource
274
+ ip_connections: ip_connections.IPConnectionsResource
275
+ ips: ips.IPsResource
276
+ ledger_billing_group_reports: ledger_billing_group_reports.LedgerBillingGroupReportsResource
277
+ list: list.ListResource
278
+ managed_accounts: managed_accounts.ManagedAccountsResource
279
+ media: media.MediaResource
280
+ messages: messages.MessagesResource
281
+ messaging: messaging.MessagingResource
282
+ messaging_hosted_number_orders: messaging_hosted_number_orders.MessagingHostedNumberOrdersResource
283
+ messaging_hosted_numbers: messaging_hosted_numbers.MessagingHostedNumbersResource
284
+ messaging_numbers_bulk_updates: messaging_numbers_bulk_updates.MessagingNumbersBulkUpdatesResource
285
+ messaging_optouts: messaging_optouts.MessagingOptoutsResource
286
+ messaging_profiles: messaging_profiles.MessagingProfilesResource
287
+ messaging_tollfree: messaging_tollfree.MessagingTollfreeResource
288
+ messaging_url_domains: messaging_url_domains.MessagingURLDomainsResource
289
+ messsages: messsages.MesssagesResource
290
+ mobile_network_operators: mobile_network_operators.MobileNetworkOperatorsResource
291
+ mobile_push_credentials: mobile_push_credentials.MobilePushCredentialsResource
292
+ network_coverage: network_coverage.NetworkCoverageResource
293
+ networks: networks.NetworksResource
294
+ notification_channels: notification_channels.NotificationChannelsResource
295
+ notification_event_conditions: notification_event_conditions.NotificationEventConditionsResource
296
+ notification_events: notification_events.NotificationEventsResource
297
+ notification_profiles: notification_profiles.NotificationProfilesResource
298
+ notification_settings: notification_settings.NotificationSettingsResource
299
+ number_block_orders: number_block_orders.NumberBlockOrdersResource
300
+ number_lookup: number_lookup.NumberLookupResource
301
+ number_order_phone_numbers: number_order_phone_numbers.NumberOrderPhoneNumbersResource
302
+ number_orders: number_orders.NumberOrdersResource
303
+ number_reservations: number_reservations.NumberReservationsResource
304
+ numbers_features: numbers_features.NumbersFeaturesResource
305
+ operator_connect: operator_connect.OperatorConnectResource
306
+ ota_updates: ota_updates.OtaUpdatesResource
307
+ outbound_voice_profiles: outbound_voice_profiles.OutboundVoiceProfilesResource
308
+ payment: payment.PaymentResource
309
+ phone_number_assignment_by_profile: phone_number_assignment_by_profile.PhoneNumberAssignmentByProfileResource
310
+ phone_number_blocks: phone_number_blocks.PhoneNumberBlocksResource
311
+ phone_number_campaigns: phone_number_campaigns.PhoneNumberCampaignsResource
312
+ phone_numbers: phone_numbers.PhoneNumbersResource
313
+ phone_numbers_regulatory_requirements: (
314
+ phone_numbers_regulatory_requirements.PhoneNumbersRegulatoryRequirementsResource
315
+ )
316
+ portability_checks: portability_checks.PortabilityChecksResource
317
+ porting: porting.PortingResource
318
+ porting_orders: porting_orders.PortingOrdersResource
319
+ porting_phone_numbers: porting_phone_numbers.PortingPhoneNumbersResource
320
+ portouts: portouts.PortoutsResource
321
+ private_wireless_gateways: private_wireless_gateways.PrivateWirelessGatewaysResource
322
+ public_internet_gateways: public_internet_gateways.PublicInternetGatewaysResource
323
+ queues: queues.QueuesResource
324
+ recording_transcriptions: recording_transcriptions.RecordingTranscriptionsResource
325
+ recordings: recordings.RecordingsResource
326
+ regions: regions.RegionsResource
327
+ regulatory_requirements: regulatory_requirements.RegulatoryRequirementsResource
328
+ reports: reports.ReportsResource
329
+ requirement_groups: requirement_groups.RequirementGroupsResource
330
+ requirement_types: requirement_types.RequirementTypesResource
331
+ requirements: requirements.RequirementsResource
332
+ room_compositions: room_compositions.RoomCompositionsResource
333
+ room_participants: room_participants.RoomParticipantsResource
334
+ room_recordings: room_recordings.RoomRecordingsResource
335
+ rooms: rooms.RoomsResource
336
+ seti: seti.SetiResource
337
+ short_codes: short_codes.ShortCodesResource
338
+ sim_card_data_usage_notifications: sim_card_data_usage_notifications.SimCardDataUsageNotificationsResource
339
+ sim_card_groups: sim_card_groups.SimCardGroupsResource
340
+ sim_card_order_preview: sim_card_order_preview.SimCardOrderPreviewResource
341
+ sim_card_orders: sim_card_orders.SimCardOrdersResource
342
+ sim_cards: sim_cards.SimCardsResource
343
+ siprec_connectors: siprec_connectors.SiprecConnectorsResource
344
+ storage: storage.StorageResource
345
+ sub_number_orders: sub_number_orders.SubNumberOrdersResource
346
+ sub_number_orders_report: sub_number_orders_report.SubNumberOrdersReportResource
347
+ telephony_credentials: telephony_credentials.TelephonyCredentialsResource
348
+ texml: texml.TexmlResource
349
+ texml_applications: texml_applications.TexmlApplicationsResource
350
+ text_to_speech: text_to_speech.TextToSpeechResource
351
+ usage_reports: usage_reports.UsageReportsResource
352
+ user_addresses: user_addresses.UserAddressesResource
353
+ user_tags: user_tags.UserTagsResource
354
+ verifications: verifications.VerificationsResource
355
+ verified_numbers: verified_numbers.VerifiedNumbersResource
356
+ verify_profiles: verify_profiles.VerifyProfilesResource
357
+ virtual_cross_connects: virtual_cross_connects.VirtualCrossConnectsResource
358
+ virtual_cross_connects_coverage: virtual_cross_connects_coverage.VirtualCrossConnectsCoverageResource
359
+ webhook_deliveries: webhook_deliveries.WebhookDeliveriesResource
360
+ wireguard_interfaces: wireguard_interfaces.WireguardInterfacesResource
361
+ wireguard_peers: wireguard_peers.WireguardPeersResource
362
+ wireless: wireless.WirelessResource
363
+ wireless_blocklist_values: wireless_blocklist_values.WirelessBlocklistValuesResource
364
+ wireless_blocklists: wireless_blocklists.WirelessBlocklistsResource
365
+ partner_campaigns: partner_campaigns.PartnerCampaignsResource
366
+ with_raw_response: TelnyxWithRawResponse
367
+ with_streaming_response: TelnyxWithStreamedResponse
368
+
369
+ # client options
370
+ api_key: str
371
+
372
+ def __init__(
373
+ self,
374
+ *,
375
+ api_key: str | None = None,
376
+ base_url: str | httpx.URL | None = None,
377
+ timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
378
+ max_retries: int = DEFAULT_MAX_RETRIES,
379
+ default_headers: Mapping[str, str] | None = None,
380
+ default_query: Mapping[str, object] | None = None,
381
+ # Configure a custom httpx client.
382
+ # We provide a `DefaultHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`.
383
+ # See the [httpx documentation](https://www.python-httpx.org/api/#client) for more details.
384
+ http_client: httpx.Client | None = None,
385
+ # Enable or disable schema validation for data returned by the API.
386
+ # When enabled an error APIResponseValidationError is raised
387
+ # if the API responds with invalid data for the expected schema.
388
+ #
389
+ # This parameter may be removed or changed in the future.
390
+ # If you rely on this feature, please open a GitHub issue
391
+ # outlining your use-case to help us decide if it should be
392
+ # part of our public interface in the future.
393
+ _strict_response_validation: bool = False,
394
+ ) -> None:
395
+ """Construct a new synchronous Telnyx client instance.
396
+
397
+ This automatically infers the `api_key` argument from the `TELNYX_API_KEY` environment variable if it is not provided.
398
+ """
399
+ if api_key is None:
400
+ api_key = os.environ.get("TELNYX_API_KEY")
401
+ if api_key is None:
402
+ raise TelnyxError(
403
+ "The api_key client option must be set either by passing api_key to the client or by setting the TELNYX_API_KEY environment variable"
404
+ )
405
+ self.api_key = api_key
406
+
407
+ if base_url is None:
408
+ base_url = os.environ.get("TELNYX_BASE_URL")
409
+ if base_url is None:
410
+ base_url = f"https://api.telnyx.com/v2"
411
+
412
+ super().__init__(
413
+ version=__version__,
414
+ base_url=base_url,
415
+ max_retries=max_retries,
416
+ timeout=timeout,
417
+ http_client=http_client,
418
+ custom_headers=default_headers,
419
+ custom_query=default_query,
420
+ _strict_response_validation=_strict_response_validation,
421
+ )
422
+
423
+ self.access_ip_address = access_ip_address.AccessIPAddressResource(self)
424
+ self.access_ip_ranges = access_ip_ranges.AccessIPRangesResource(self)
425
+ self.actions = actions.ActionsResource(self)
426
+ self.addresses = addresses.AddressesResource(self)
427
+ self.advanced_orders = advanced_orders.AdvancedOrdersResource(self)
428
+ self.ai = ai.AIResource(self)
429
+ self.audit_events = audit_events.AuditEventsResource(self)
430
+ self.authentication_providers = authentication_providers.AuthenticationProvidersResource(self)
431
+ self.available_phone_number_blocks = available_phone_number_blocks.AvailablePhoneNumberBlocksResource(self)
432
+ self.available_phone_numbers = available_phone_numbers.AvailablePhoneNumbersResource(self)
433
+ self.balance = balance.BalanceResource(self)
434
+ self.billing_groups = billing_groups.BillingGroupsResource(self)
435
+ self.brand = brand.BrandResource(self)
436
+ self.bulk_sim_card_actions = bulk_sim_card_actions.BulkSimCardActionsResource(self)
437
+ self.bundle_pricing = bundle_pricing.BundlePricingResource(self)
438
+ self.call_control_applications = call_control_applications.CallControlApplicationsResource(self)
439
+ self.call_events = call_events.CallEventsResource(self)
440
+ self.calls = calls.CallsResource(self)
441
+ self.campaign = campaign.CampaignResource(self)
442
+ self.campaign_builder = campaign_builder.CampaignBuilderResource(self)
443
+ self.channel_zones = channel_zones.ChannelZonesResource(self)
444
+ self.charges_breakdown = charges_breakdown.ChargesBreakdownResource(self)
445
+ self.charges_summary = charges_summary.ChargesSummaryResource(self)
446
+ self.comments = comments.CommentsResource(self)
447
+ self.conferences = conferences.ConferencesResource(self)
448
+ self.connections = connections.ConnectionsResource(self)
449
+ self.country_coverage = country_coverage.CountryCoverageResource(self)
450
+ self.credential_connections = credential_connections.CredentialConnectionsResource(self)
451
+ self.custom_storage_credentials = custom_storage_credentials.CustomStorageCredentialsResource(self)
452
+ self.customer_service_records = customer_service_records.CustomerServiceRecordsResource(self)
453
+ self.detail_records = detail_records.DetailRecordsResource(self)
454
+ self.dialogflow_connections = dialogflow_connections.DialogflowConnectionsResource(self)
455
+ self.document_links = document_links.DocumentLinksResource(self)
456
+ self.documents = documents.DocumentsResource(self)
457
+ self.dynamic_emergency_addresses = dynamic_emergency_addresses.DynamicEmergencyAddressesResource(self)
458
+ self.dynamic_emergency_endpoints = dynamic_emergency_endpoints.DynamicEmergencyEndpointsResource(self)
459
+ self.enum = enum.EnumResource(self)
460
+ self.external_connections = external_connections.ExternalConnectionsResource(self)
461
+ self.fax_applications = fax_applications.FaxApplicationsResource(self)
462
+ self.faxes = faxes.FaxesResource(self)
463
+ self.fqdn_connections = fqdn_connections.FqdnConnectionsResource(self)
464
+ self.fqdns = fqdns.FqdnsResource(self)
465
+ self.global_ip_allowed_ports = global_ip_allowed_ports.GlobalIPAllowedPortsResource(self)
466
+ self.global_ip_assignment_health = global_ip_assignment_health.GlobalIPAssignmentHealthResource(self)
467
+ self.global_ip_assignments = global_ip_assignments.GlobalIPAssignmentsResource(self)
468
+ self.global_ip_assignments_usage = global_ip_assignments_usage.GlobalIPAssignmentsUsageResource(self)
469
+ self.global_ip_health_check_types = global_ip_health_check_types.GlobalIPHealthCheckTypesResource(self)
470
+ self.global_ip_health_checks = global_ip_health_checks.GlobalIPHealthChecksResource(self)
471
+ self.global_ip_latency = global_ip_latency.GlobalIPLatencyResource(self)
472
+ self.global_ip_protocols = global_ip_protocols.GlobalIPProtocolsResource(self)
473
+ self.global_ip_usage = global_ip_usage.GlobalIPUsageResource(self)
474
+ self.global_ips = global_ips.GlobalIPsResource(self)
475
+ self.inbound_channels = inbound_channels.InboundChannelsResource(self)
476
+ self.integration_secrets = integration_secrets.IntegrationSecretsResource(self)
477
+ self.inventory_coverage = inventory_coverage.InventoryCoverageResource(self)
478
+ self.invoices = invoices.InvoicesResource(self)
479
+ self.ip_connections = ip_connections.IPConnectionsResource(self)
480
+ self.ips = ips.IPsResource(self)
481
+ self.ledger_billing_group_reports = ledger_billing_group_reports.LedgerBillingGroupReportsResource(self)
482
+ self.list = list.ListResource(self)
483
+ self.managed_accounts = managed_accounts.ManagedAccountsResource(self)
484
+ self.media = media.MediaResource(self)
485
+ self.messages = messages.MessagesResource(self)
486
+ self.messaging = messaging.MessagingResource(self)
487
+ self.messaging_hosted_number_orders = messaging_hosted_number_orders.MessagingHostedNumberOrdersResource(self)
488
+ self.messaging_hosted_numbers = messaging_hosted_numbers.MessagingHostedNumbersResource(self)
489
+ self.messaging_numbers_bulk_updates = messaging_numbers_bulk_updates.MessagingNumbersBulkUpdatesResource(self)
490
+ self.messaging_optouts = messaging_optouts.MessagingOptoutsResource(self)
491
+ self.messaging_profiles = messaging_profiles.MessagingProfilesResource(self)
492
+ self.messaging_tollfree = messaging_tollfree.MessagingTollfreeResource(self)
493
+ self.messaging_url_domains = messaging_url_domains.MessagingURLDomainsResource(self)
494
+ self.messsages = messsages.MesssagesResource(self)
495
+ self.mobile_network_operators = mobile_network_operators.MobileNetworkOperatorsResource(self)
496
+ self.mobile_push_credentials = mobile_push_credentials.MobilePushCredentialsResource(self)
497
+ self.network_coverage = network_coverage.NetworkCoverageResource(self)
498
+ self.networks = networks.NetworksResource(self)
499
+ self.notification_channels = notification_channels.NotificationChannelsResource(self)
500
+ self.notification_event_conditions = notification_event_conditions.NotificationEventConditionsResource(self)
501
+ self.notification_events = notification_events.NotificationEventsResource(self)
502
+ self.notification_profiles = notification_profiles.NotificationProfilesResource(self)
503
+ self.notification_settings = notification_settings.NotificationSettingsResource(self)
504
+ self.number_block_orders = number_block_orders.NumberBlockOrdersResource(self)
505
+ self.number_lookup = number_lookup.NumberLookupResource(self)
506
+ self.number_order_phone_numbers = number_order_phone_numbers.NumberOrderPhoneNumbersResource(self)
507
+ self.number_orders = number_orders.NumberOrdersResource(self)
508
+ self.number_reservations = number_reservations.NumberReservationsResource(self)
509
+ self.numbers_features = numbers_features.NumbersFeaturesResource(self)
510
+ self.operator_connect = operator_connect.OperatorConnectResource(self)
511
+ self.ota_updates = ota_updates.OtaUpdatesResource(self)
512
+ self.outbound_voice_profiles = outbound_voice_profiles.OutboundVoiceProfilesResource(self)
513
+ self.payment = payment.PaymentResource(self)
514
+ self.phone_number_assignment_by_profile = (
515
+ phone_number_assignment_by_profile.PhoneNumberAssignmentByProfileResource(self)
516
+ )
517
+ self.phone_number_blocks = phone_number_blocks.PhoneNumberBlocksResource(self)
518
+ self.phone_number_campaigns = phone_number_campaigns.PhoneNumberCampaignsResource(self)
519
+ self.phone_numbers = phone_numbers.PhoneNumbersResource(self)
520
+ self.phone_numbers_regulatory_requirements = (
521
+ phone_numbers_regulatory_requirements.PhoneNumbersRegulatoryRequirementsResource(self)
522
+ )
523
+ self.portability_checks = portability_checks.PortabilityChecksResource(self)
524
+ self.porting = porting.PortingResource(self)
525
+ self.porting_orders = porting_orders.PortingOrdersResource(self)
526
+ self.porting_phone_numbers = porting_phone_numbers.PortingPhoneNumbersResource(self)
527
+ self.portouts = portouts.PortoutsResource(self)
528
+ self.private_wireless_gateways = private_wireless_gateways.PrivateWirelessGatewaysResource(self)
529
+ self.public_internet_gateways = public_internet_gateways.PublicInternetGatewaysResource(self)
530
+ self.queues = queues.QueuesResource(self)
531
+ self.recording_transcriptions = recording_transcriptions.RecordingTranscriptionsResource(self)
532
+ self.recordings = recordings.RecordingsResource(self)
533
+ self.regions = regions.RegionsResource(self)
534
+ self.regulatory_requirements = regulatory_requirements.RegulatoryRequirementsResource(self)
535
+ self.reports = reports.ReportsResource(self)
536
+ self.requirement_groups = requirement_groups.RequirementGroupsResource(self)
537
+ self.requirement_types = requirement_types.RequirementTypesResource(self)
538
+ self.requirements = requirements.RequirementsResource(self)
539
+ self.room_compositions = room_compositions.RoomCompositionsResource(self)
540
+ self.room_participants = room_participants.RoomParticipantsResource(self)
541
+ self.room_recordings = room_recordings.RoomRecordingsResource(self)
542
+ self.rooms = rooms.RoomsResource(self)
543
+ self.seti = seti.SetiResource(self)
544
+ self.short_codes = short_codes.ShortCodesResource(self)
545
+ self.sim_card_data_usage_notifications = (
546
+ sim_card_data_usage_notifications.SimCardDataUsageNotificationsResource(self)
547
+ )
548
+ self.sim_card_groups = sim_card_groups.SimCardGroupsResource(self)
549
+ self.sim_card_order_preview = sim_card_order_preview.SimCardOrderPreviewResource(self)
550
+ self.sim_card_orders = sim_card_orders.SimCardOrdersResource(self)
551
+ self.sim_cards = sim_cards.SimCardsResource(self)
552
+ self.siprec_connectors = siprec_connectors.SiprecConnectorsResource(self)
553
+ self.storage = storage.StorageResource(self)
554
+ self.sub_number_orders = sub_number_orders.SubNumberOrdersResource(self)
555
+ self.sub_number_orders_report = sub_number_orders_report.SubNumberOrdersReportResource(self)
556
+ self.telephony_credentials = telephony_credentials.TelephonyCredentialsResource(self)
557
+ self.texml = texml.TexmlResource(self)
558
+ self.texml_applications = texml_applications.TexmlApplicationsResource(self)
559
+ self.text_to_speech = text_to_speech.TextToSpeechResource(self)
560
+ self.usage_reports = usage_reports.UsageReportsResource(self)
561
+ self.user_addresses = user_addresses.UserAddressesResource(self)
562
+ self.user_tags = user_tags.UserTagsResource(self)
563
+ self.verifications = verifications.VerificationsResource(self)
564
+ self.verified_numbers = verified_numbers.VerifiedNumbersResource(self)
565
+ self.verify_profiles = verify_profiles.VerifyProfilesResource(self)
566
+ self.virtual_cross_connects = virtual_cross_connects.VirtualCrossConnectsResource(self)
567
+ self.virtual_cross_connects_coverage = virtual_cross_connects_coverage.VirtualCrossConnectsCoverageResource(
568
+ self
569
+ )
570
+ self.webhook_deliveries = webhook_deliveries.WebhookDeliveriesResource(self)
571
+ self.wireguard_interfaces = wireguard_interfaces.WireguardInterfacesResource(self)
572
+ self.wireguard_peers = wireguard_peers.WireguardPeersResource(self)
573
+ self.wireless = wireless.WirelessResource(self)
574
+ self.wireless_blocklist_values = wireless_blocklist_values.WirelessBlocklistValuesResource(self)
575
+ self.wireless_blocklists = wireless_blocklists.WirelessBlocklistsResource(self)
576
+ self.partner_campaigns = partner_campaigns.PartnerCampaignsResource(self)
577
+ self.with_raw_response = TelnyxWithRawResponse(self)
578
+ self.with_streaming_response = TelnyxWithStreamedResponse(self)
579
+
580
+ @property
581
+ @override
582
+ def qs(self) -> Querystring:
583
+ return Querystring(array_format="comma")
584
+
585
+ @property
586
+ @override
587
+ def auth_headers(self) -> dict[str, str]:
588
+ api_key = self.api_key
589
+ return {"Authorization": f"Bearer {api_key}"}
590
+
591
+ @property
592
+ @override
593
+ def default_headers(self) -> dict[str, str | Omit]:
594
+ return {
595
+ **super().default_headers,
596
+ "X-Stainless-Async": "false",
597
+ **self._custom_headers,
598
+ }
599
+
600
+ def copy(
601
+ self,
602
+ *,
603
+ api_key: str | None = None,
604
+ base_url: str | httpx.URL | None = None,
605
+ timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
606
+ http_client: httpx.Client | None = None,
607
+ max_retries: int | NotGiven = NOT_GIVEN,
608
+ default_headers: Mapping[str, str] | None = None,
609
+ set_default_headers: Mapping[str, str] | None = None,
610
+ default_query: Mapping[str, object] | None = None,
611
+ set_default_query: Mapping[str, object] | None = None,
612
+ _extra_kwargs: Mapping[str, Any] = {},
613
+ ) -> Self:
614
+ """
615
+ Create a new client instance re-using the same options given to the current client with optional overriding.
616
+ """
617
+ if default_headers is not None and set_default_headers is not None:
618
+ raise ValueError("The `default_headers` and `set_default_headers` arguments are mutually exclusive")
619
+
620
+ if default_query is not None and set_default_query is not None:
621
+ raise ValueError("The `default_query` and `set_default_query` arguments are mutually exclusive")
622
+
623
+ headers = self._custom_headers
624
+ if default_headers is not None:
625
+ headers = {**headers, **default_headers}
626
+ elif set_default_headers is not None:
627
+ headers = set_default_headers
628
+
629
+ params = self._custom_query
630
+ if default_query is not None:
631
+ params = {**params, **default_query}
632
+ elif set_default_query is not None:
633
+ params = set_default_query
634
+
635
+ http_client = http_client or self._client
636
+ return self.__class__(
637
+ api_key=api_key or self.api_key,
638
+ base_url=base_url or self.base_url,
639
+ timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
640
+ http_client=http_client,
641
+ max_retries=max_retries if is_given(max_retries) else self.max_retries,
642
+ default_headers=headers,
643
+ default_query=params,
644
+ **_extra_kwargs,
645
+ )
646
+
647
+ # Alias for `copy` for nicer inline usage, e.g.
648
+ # client.with_options(timeout=10).foo.create(...)
649
+ with_options = copy
650
+
651
+ def create_bucket(
652
+ self,
653
+ bucket_name: str,
654
+ *,
655
+ location_constraint: str | NotGiven = NOT_GIVEN,
656
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
657
+ # The extra values given here take precedence over values defined on the client or passed to this method.
658
+ extra_headers: Headers | None = None,
659
+ extra_query: Query | None = None,
660
+ extra_body: Body | None = None,
661
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
662
+ ) -> None:
663
+ """
664
+ Create a bucket.
665
+
666
+ Args:
667
+ extra_headers: Send extra headers
668
+
669
+ extra_query: Add additional query parameters to the request
670
+
671
+ extra_body: Add additional JSON properties to the request
672
+
673
+ timeout: Override the client-level default timeout for this request, in seconds
674
+ """
675
+ if not bucket_name:
676
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
677
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
678
+ return self.put(
679
+ f"/{bucket_name}",
680
+ body=maybe_transform(
681
+ {"location_constraint": location_constraint}, client_create_bucket_params.ClientCreateBucketParams
682
+ ),
683
+ options=make_request_options(
684
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
685
+ ),
686
+ cast_to=NoneType,
687
+ )
688
+
689
+ def delete_bucket(
690
+ self,
691
+ bucket_name: str,
692
+ *,
693
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
694
+ # The extra values given here take precedence over values defined on the client or passed to this method.
695
+ extra_headers: Headers | None = None,
696
+ extra_query: Query | None = None,
697
+ extra_body: Body | None = None,
698
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
699
+ ) -> None:
700
+ """Deletes a bucket.
701
+
702
+ The bucket must be empty for it to be deleted.
703
+
704
+ Args:
705
+ extra_headers: Send extra headers
706
+
707
+ extra_query: Add additional query parameters to the request
708
+
709
+ extra_body: Add additional JSON properties to the request
710
+
711
+ timeout: Override the client-level default timeout for this request, in seconds
712
+ """
713
+ if not bucket_name:
714
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
715
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
716
+ return self.delete(
717
+ f"/{bucket_name}",
718
+ options=make_request_options(
719
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
720
+ ),
721
+ cast_to=NoneType,
722
+ )
723
+
724
+ def delete_object(
725
+ self,
726
+ object_name: str,
727
+ *,
728
+ bucket_name: str,
729
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
730
+ # The extra values given here take precedence over values defined on the client or passed to this method.
731
+ extra_headers: Headers | None = None,
732
+ extra_query: Query | None = None,
733
+ extra_body: Body | None = None,
734
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
735
+ ) -> None:
736
+ """
737
+ Delete an object from a given bucket.
738
+
739
+ Args:
740
+ extra_headers: Send extra headers
741
+
742
+ extra_query: Add additional query parameters to the request
743
+
744
+ extra_body: Add additional JSON properties to the request
745
+
746
+ timeout: Override the client-level default timeout for this request, in seconds
747
+ """
748
+ if not bucket_name:
749
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
750
+ if not object_name:
751
+ raise ValueError(f"Expected a non-empty value for `object_name` but received {object_name!r}")
752
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
753
+ return self.delete(
754
+ f"/{bucket_name}/{object_name}",
755
+ options=make_request_options(
756
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
757
+ ),
758
+ cast_to=NoneType,
759
+ )
760
+
761
+ def delete_objects(
762
+ self,
763
+ bucket_name: str,
764
+ *,
765
+ delete: Literal[True],
766
+ body: Iterable[client_delete_objects_params.Body],
767
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
768
+ # The extra values given here take precedence over values defined on the client or passed to this method.
769
+ extra_headers: Headers | None = None,
770
+ extra_query: Query | None = None,
771
+ extra_body: Body | None = None,
772
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
773
+ ) -> object:
774
+ """
775
+ Deletes one or multiple objects from a given bucket.
776
+
777
+ Args:
778
+ extra_headers: Send extra headers
779
+
780
+ extra_query: Add additional query parameters to the request
781
+
782
+ extra_body: Add additional JSON properties to the request
783
+
784
+ timeout: Override the client-level default timeout for this request, in seconds
785
+ """
786
+ if not bucket_name:
787
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
788
+ extra_headers = {"Accept": "application/xml", **(extra_headers or {})}
789
+ return self.post(
790
+ f"/{bucket_name}",
791
+ body=maybe_transform(body, Iterable[client_delete_objects_params.Body]),
792
+ options=make_request_options(
793
+ extra_headers=extra_headers,
794
+ extra_query=extra_query,
795
+ extra_body=extra_body,
796
+ timeout=timeout,
797
+ query=maybe_transform({"delete": delete}, client_delete_objects_params.ClientDeleteObjectsParams),
798
+ ),
799
+ cast_to=object,
800
+ )
801
+
802
+ def get_object(
803
+ self,
804
+ object_name: str,
805
+ *,
806
+ bucket_name: str,
807
+ upload_id: str | NotGiven = NOT_GIVEN,
808
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
809
+ # The extra values given here take precedence over values defined on the client or passed to this method.
810
+ extra_headers: Headers | None = None,
811
+ extra_query: Query | None = None,
812
+ extra_body: Body | None = None,
813
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
814
+ ) -> BinaryAPIResponse:
815
+ """
816
+ Retrieves an object from a given bucket.
817
+
818
+ Args:
819
+ extra_headers: Send extra headers
820
+
821
+ extra_query: Add additional query parameters to the request
822
+
823
+ extra_body: Add additional JSON properties to the request
824
+
825
+ timeout: Override the client-level default timeout for this request, in seconds
826
+ """
827
+ if not bucket_name:
828
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
829
+ if not object_name:
830
+ raise ValueError(f"Expected a non-empty value for `object_name` but received {object_name!r}")
831
+ extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
832
+ return self.get(
833
+ f"/{bucket_name}/{object_name}",
834
+ options=make_request_options(
835
+ extra_headers=extra_headers,
836
+ extra_query=extra_query,
837
+ extra_body=extra_body,
838
+ timeout=timeout,
839
+ query=maybe_transform({"upload_id": upload_id}, client_get_object_params.ClientGetObjectParams),
840
+ ),
841
+ cast_to=BinaryAPIResponse,
842
+ )
843
+
844
+ def list_buckets(
845
+ self,
846
+ *,
847
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
848
+ # The extra values given here take precedence over values defined on the client or passed to this method.
849
+ extra_headers: Headers | None = None,
850
+ extra_query: Query | None = None,
851
+ extra_body: Body | None = None,
852
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
853
+ ) -> ListBucketsResponse:
854
+ """List all Buckets."""
855
+ extra_headers = {"Accept": "application/xml", **(extra_headers or {})}
856
+ return self.get(
857
+ "/",
858
+ options=make_request_options(
859
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
860
+ ),
861
+ cast_to=ListBucketsResponse,
862
+ )
863
+
864
+ def list_objects(
865
+ self,
866
+ bucket_name: str,
867
+ *,
868
+ list_type: Literal[2] | NotGiven = NOT_GIVEN,
869
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
870
+ # The extra values given here take precedence over values defined on the client or passed to this method.
871
+ extra_headers: Headers | None = None,
872
+ extra_query: Query | None = None,
873
+ extra_body: Body | None = None,
874
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
875
+ ) -> ListObjectsResponse:
876
+ """
877
+ List all objects contained in a given bucket.
878
+
879
+ Args:
880
+ extra_headers: Send extra headers
881
+
882
+ extra_query: Add additional query parameters to the request
883
+
884
+ extra_body: Add additional JSON properties to the request
885
+
886
+ timeout: Override the client-level default timeout for this request, in seconds
887
+ """
888
+ if not bucket_name:
889
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
890
+ extra_headers = {"Accept": "application/xml", **(extra_headers or {})}
891
+ return self.get(
892
+ f"/{bucket_name}",
893
+ options=make_request_options(
894
+ extra_headers=extra_headers,
895
+ extra_query=extra_query,
896
+ extra_body=extra_body,
897
+ timeout=timeout,
898
+ query=maybe_transform({"list_type": list_type}, client_list_objects_params.ClientListObjectsParams),
899
+ ),
900
+ cast_to=ListObjectsResponse,
901
+ )
902
+
903
+ def put_object(
904
+ self,
905
+ object_name: str,
906
+ *,
907
+ bucket_name: str,
908
+ body: FileTypes,
909
+ part_number: str | NotGiven = NOT_GIVEN,
910
+ upload_id: str | NotGiven = NOT_GIVEN,
911
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
912
+ # The extra values given here take precedence over values defined on the client or passed to this method.
913
+ extra_headers: Headers | None = None,
914
+ extra_query: Query | None = None,
915
+ extra_body: Body | None = None,
916
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
917
+ ) -> None:
918
+ """
919
+ Add an object to a bucket.
920
+
921
+ Args:
922
+ extra_headers: Send extra headers
923
+
924
+ extra_query: Add additional query parameters to the request
925
+
926
+ extra_body: Add additional JSON properties to the request
927
+
928
+ timeout: Override the client-level default timeout for this request, in seconds
929
+ """
930
+ if not bucket_name:
931
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
932
+ if not object_name:
933
+ raise ValueError(f"Expected a non-empty value for `object_name` but received {object_name!r}")
934
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
935
+ return self.put(
936
+ f"/{bucket_name}/{object_name}",
937
+ body=maybe_transform(body, client_put_object_params.ClientPutObjectParams),
938
+ options=make_request_options(
939
+ extra_headers=extra_headers,
940
+ extra_query=extra_query,
941
+ extra_body=extra_body,
942
+ timeout=timeout,
943
+ query=maybe_transform(
944
+ {
945
+ "part_number": part_number,
946
+ "upload_id": upload_id,
947
+ },
948
+ client_put_object_params.ClientPutObjectParams,
949
+ ),
950
+ ),
951
+ cast_to=NoneType,
952
+ )
953
+
954
+ @override
955
+ def _make_status_error(
956
+ self,
957
+ err_msg: str,
958
+ *,
959
+ body: object,
960
+ response: httpx.Response,
961
+ ) -> APIStatusError:
962
+ if response.status_code == 400:
963
+ return _exceptions.BadRequestError(err_msg, response=response, body=body)
964
+
965
+ if response.status_code == 401:
966
+ return _exceptions.AuthenticationError(err_msg, response=response, body=body)
967
+
968
+ if response.status_code == 403:
969
+ return _exceptions.PermissionDeniedError(err_msg, response=response, body=body)
970
+
971
+ if response.status_code == 404:
972
+ return _exceptions.NotFoundError(err_msg, response=response, body=body)
973
+
974
+ if response.status_code == 409:
975
+ return _exceptions.ConflictError(err_msg, response=response, body=body)
976
+
977
+ if response.status_code == 422:
978
+ return _exceptions.UnprocessableEntityError(err_msg, response=response, body=body)
979
+
980
+ if response.status_code == 429:
981
+ return _exceptions.RateLimitError(err_msg, response=response, body=body)
982
+
983
+ if response.status_code >= 500:
984
+ return _exceptions.InternalServerError(err_msg, response=response, body=body)
985
+ return APIStatusError(err_msg, response=response, body=body)
986
+
987
+
988
+ class AsyncTelnyx(AsyncAPIClient):
989
+ access_ip_address: access_ip_address.AsyncAccessIPAddressResource
990
+ access_ip_ranges: access_ip_ranges.AsyncAccessIPRangesResource
991
+ actions: actions.AsyncActionsResource
992
+ addresses: addresses.AsyncAddressesResource
993
+ advanced_orders: advanced_orders.AsyncAdvancedOrdersResource
994
+ ai: ai.AsyncAIResource
995
+ audit_events: audit_events.AsyncAuditEventsResource
996
+ authentication_providers: authentication_providers.AsyncAuthenticationProvidersResource
997
+ available_phone_number_blocks: available_phone_number_blocks.AsyncAvailablePhoneNumberBlocksResource
998
+ available_phone_numbers: available_phone_numbers.AsyncAvailablePhoneNumbersResource
999
+ balance: balance.AsyncBalanceResource
1000
+ billing_groups: billing_groups.AsyncBillingGroupsResource
1001
+ brand: brand.AsyncBrandResource
1002
+ bulk_sim_card_actions: bulk_sim_card_actions.AsyncBulkSimCardActionsResource
1003
+ bundle_pricing: bundle_pricing.AsyncBundlePricingResource
1004
+ call_control_applications: call_control_applications.AsyncCallControlApplicationsResource
1005
+ call_events: call_events.AsyncCallEventsResource
1006
+ calls: calls.AsyncCallsResource
1007
+ campaign: campaign.AsyncCampaignResource
1008
+ campaign_builder: campaign_builder.AsyncCampaignBuilderResource
1009
+ channel_zones: channel_zones.AsyncChannelZonesResource
1010
+ charges_breakdown: charges_breakdown.AsyncChargesBreakdownResource
1011
+ charges_summary: charges_summary.AsyncChargesSummaryResource
1012
+ comments: comments.AsyncCommentsResource
1013
+ conferences: conferences.AsyncConferencesResource
1014
+ connections: connections.AsyncConnectionsResource
1015
+ country_coverage: country_coverage.AsyncCountryCoverageResource
1016
+ credential_connections: credential_connections.AsyncCredentialConnectionsResource
1017
+ custom_storage_credentials: custom_storage_credentials.AsyncCustomStorageCredentialsResource
1018
+ customer_service_records: customer_service_records.AsyncCustomerServiceRecordsResource
1019
+ detail_records: detail_records.AsyncDetailRecordsResource
1020
+ dialogflow_connections: dialogflow_connections.AsyncDialogflowConnectionsResource
1021
+ document_links: document_links.AsyncDocumentLinksResource
1022
+ documents: documents.AsyncDocumentsResource
1023
+ dynamic_emergency_addresses: dynamic_emergency_addresses.AsyncDynamicEmergencyAddressesResource
1024
+ dynamic_emergency_endpoints: dynamic_emergency_endpoints.AsyncDynamicEmergencyEndpointsResource
1025
+ enum: enum.AsyncEnumResource
1026
+ external_connections: external_connections.AsyncExternalConnectionsResource
1027
+ fax_applications: fax_applications.AsyncFaxApplicationsResource
1028
+ faxes: faxes.AsyncFaxesResource
1029
+ fqdn_connections: fqdn_connections.AsyncFqdnConnectionsResource
1030
+ fqdns: fqdns.AsyncFqdnsResource
1031
+ global_ip_allowed_ports: global_ip_allowed_ports.AsyncGlobalIPAllowedPortsResource
1032
+ global_ip_assignment_health: global_ip_assignment_health.AsyncGlobalIPAssignmentHealthResource
1033
+ global_ip_assignments: global_ip_assignments.AsyncGlobalIPAssignmentsResource
1034
+ global_ip_assignments_usage: global_ip_assignments_usage.AsyncGlobalIPAssignmentsUsageResource
1035
+ global_ip_health_check_types: global_ip_health_check_types.AsyncGlobalIPHealthCheckTypesResource
1036
+ global_ip_health_checks: global_ip_health_checks.AsyncGlobalIPHealthChecksResource
1037
+ global_ip_latency: global_ip_latency.AsyncGlobalIPLatencyResource
1038
+ global_ip_protocols: global_ip_protocols.AsyncGlobalIPProtocolsResource
1039
+ global_ip_usage: global_ip_usage.AsyncGlobalIPUsageResource
1040
+ global_ips: global_ips.AsyncGlobalIPsResource
1041
+ inbound_channels: inbound_channels.AsyncInboundChannelsResource
1042
+ integration_secrets: integration_secrets.AsyncIntegrationSecretsResource
1043
+ inventory_coverage: inventory_coverage.AsyncInventoryCoverageResource
1044
+ invoices: invoices.AsyncInvoicesResource
1045
+ ip_connections: ip_connections.AsyncIPConnectionsResource
1046
+ ips: ips.AsyncIPsResource
1047
+ ledger_billing_group_reports: ledger_billing_group_reports.AsyncLedgerBillingGroupReportsResource
1048
+ list: list.AsyncListResource
1049
+ managed_accounts: managed_accounts.AsyncManagedAccountsResource
1050
+ media: media.AsyncMediaResource
1051
+ messages: messages.AsyncMessagesResource
1052
+ messaging: messaging.AsyncMessagingResource
1053
+ messaging_hosted_number_orders: messaging_hosted_number_orders.AsyncMessagingHostedNumberOrdersResource
1054
+ messaging_hosted_numbers: messaging_hosted_numbers.AsyncMessagingHostedNumbersResource
1055
+ messaging_numbers_bulk_updates: messaging_numbers_bulk_updates.AsyncMessagingNumbersBulkUpdatesResource
1056
+ messaging_optouts: messaging_optouts.AsyncMessagingOptoutsResource
1057
+ messaging_profiles: messaging_profiles.AsyncMessagingProfilesResource
1058
+ messaging_tollfree: messaging_tollfree.AsyncMessagingTollfreeResource
1059
+ messaging_url_domains: messaging_url_domains.AsyncMessagingURLDomainsResource
1060
+ messsages: messsages.AsyncMesssagesResource
1061
+ mobile_network_operators: mobile_network_operators.AsyncMobileNetworkOperatorsResource
1062
+ mobile_push_credentials: mobile_push_credentials.AsyncMobilePushCredentialsResource
1063
+ network_coverage: network_coverage.AsyncNetworkCoverageResource
1064
+ networks: networks.AsyncNetworksResource
1065
+ notification_channels: notification_channels.AsyncNotificationChannelsResource
1066
+ notification_event_conditions: notification_event_conditions.AsyncNotificationEventConditionsResource
1067
+ notification_events: notification_events.AsyncNotificationEventsResource
1068
+ notification_profiles: notification_profiles.AsyncNotificationProfilesResource
1069
+ notification_settings: notification_settings.AsyncNotificationSettingsResource
1070
+ number_block_orders: number_block_orders.AsyncNumberBlockOrdersResource
1071
+ number_lookup: number_lookup.AsyncNumberLookupResource
1072
+ number_order_phone_numbers: number_order_phone_numbers.AsyncNumberOrderPhoneNumbersResource
1073
+ number_orders: number_orders.AsyncNumberOrdersResource
1074
+ number_reservations: number_reservations.AsyncNumberReservationsResource
1075
+ numbers_features: numbers_features.AsyncNumbersFeaturesResource
1076
+ operator_connect: operator_connect.AsyncOperatorConnectResource
1077
+ ota_updates: ota_updates.AsyncOtaUpdatesResource
1078
+ outbound_voice_profiles: outbound_voice_profiles.AsyncOutboundVoiceProfilesResource
1079
+ payment: payment.AsyncPaymentResource
1080
+ phone_number_assignment_by_profile: phone_number_assignment_by_profile.AsyncPhoneNumberAssignmentByProfileResource
1081
+ phone_number_blocks: phone_number_blocks.AsyncPhoneNumberBlocksResource
1082
+ phone_number_campaigns: phone_number_campaigns.AsyncPhoneNumberCampaignsResource
1083
+ phone_numbers: phone_numbers.AsyncPhoneNumbersResource
1084
+ phone_numbers_regulatory_requirements: (
1085
+ phone_numbers_regulatory_requirements.AsyncPhoneNumbersRegulatoryRequirementsResource
1086
+ )
1087
+ portability_checks: portability_checks.AsyncPortabilityChecksResource
1088
+ porting: porting.AsyncPortingResource
1089
+ porting_orders: porting_orders.AsyncPortingOrdersResource
1090
+ porting_phone_numbers: porting_phone_numbers.AsyncPortingPhoneNumbersResource
1091
+ portouts: portouts.AsyncPortoutsResource
1092
+ private_wireless_gateways: private_wireless_gateways.AsyncPrivateWirelessGatewaysResource
1093
+ public_internet_gateways: public_internet_gateways.AsyncPublicInternetGatewaysResource
1094
+ queues: queues.AsyncQueuesResource
1095
+ recording_transcriptions: recording_transcriptions.AsyncRecordingTranscriptionsResource
1096
+ recordings: recordings.AsyncRecordingsResource
1097
+ regions: regions.AsyncRegionsResource
1098
+ regulatory_requirements: regulatory_requirements.AsyncRegulatoryRequirementsResource
1099
+ reports: reports.AsyncReportsResource
1100
+ requirement_groups: requirement_groups.AsyncRequirementGroupsResource
1101
+ requirement_types: requirement_types.AsyncRequirementTypesResource
1102
+ requirements: requirements.AsyncRequirementsResource
1103
+ room_compositions: room_compositions.AsyncRoomCompositionsResource
1104
+ room_participants: room_participants.AsyncRoomParticipantsResource
1105
+ room_recordings: room_recordings.AsyncRoomRecordingsResource
1106
+ rooms: rooms.AsyncRoomsResource
1107
+ seti: seti.AsyncSetiResource
1108
+ short_codes: short_codes.AsyncShortCodesResource
1109
+ sim_card_data_usage_notifications: sim_card_data_usage_notifications.AsyncSimCardDataUsageNotificationsResource
1110
+ sim_card_groups: sim_card_groups.AsyncSimCardGroupsResource
1111
+ sim_card_order_preview: sim_card_order_preview.AsyncSimCardOrderPreviewResource
1112
+ sim_card_orders: sim_card_orders.AsyncSimCardOrdersResource
1113
+ sim_cards: sim_cards.AsyncSimCardsResource
1114
+ siprec_connectors: siprec_connectors.AsyncSiprecConnectorsResource
1115
+ storage: storage.AsyncStorageResource
1116
+ sub_number_orders: sub_number_orders.AsyncSubNumberOrdersResource
1117
+ sub_number_orders_report: sub_number_orders_report.AsyncSubNumberOrdersReportResource
1118
+ telephony_credentials: telephony_credentials.AsyncTelephonyCredentialsResource
1119
+ texml: texml.AsyncTexmlResource
1120
+ texml_applications: texml_applications.AsyncTexmlApplicationsResource
1121
+ text_to_speech: text_to_speech.AsyncTextToSpeechResource
1122
+ usage_reports: usage_reports.AsyncUsageReportsResource
1123
+ user_addresses: user_addresses.AsyncUserAddressesResource
1124
+ user_tags: user_tags.AsyncUserTagsResource
1125
+ verifications: verifications.AsyncVerificationsResource
1126
+ verified_numbers: verified_numbers.AsyncVerifiedNumbersResource
1127
+ verify_profiles: verify_profiles.AsyncVerifyProfilesResource
1128
+ virtual_cross_connects: virtual_cross_connects.AsyncVirtualCrossConnectsResource
1129
+ virtual_cross_connects_coverage: virtual_cross_connects_coverage.AsyncVirtualCrossConnectsCoverageResource
1130
+ webhook_deliveries: webhook_deliveries.AsyncWebhookDeliveriesResource
1131
+ wireguard_interfaces: wireguard_interfaces.AsyncWireguardInterfacesResource
1132
+ wireguard_peers: wireguard_peers.AsyncWireguardPeersResource
1133
+ wireless: wireless.AsyncWirelessResource
1134
+ wireless_blocklist_values: wireless_blocklist_values.AsyncWirelessBlocklistValuesResource
1135
+ wireless_blocklists: wireless_blocklists.AsyncWirelessBlocklistsResource
1136
+ partner_campaigns: partner_campaigns.AsyncPartnerCampaignsResource
1137
+ with_raw_response: AsyncTelnyxWithRawResponse
1138
+ with_streaming_response: AsyncTelnyxWithStreamedResponse
1139
+
1140
+ # client options
1141
+ api_key: str
1142
+
1143
+ def __init__(
1144
+ self,
1145
+ *,
1146
+ api_key: str | None = None,
1147
+ base_url: str | httpx.URL | None = None,
1148
+ timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
1149
+ max_retries: int = DEFAULT_MAX_RETRIES,
1150
+ default_headers: Mapping[str, str] | None = None,
1151
+ default_query: Mapping[str, object] | None = None,
1152
+ # Configure a custom httpx client.
1153
+ # We provide a `DefaultAsyncHttpxClient` class that you can pass to retain the default values we use for `limits`, `timeout` & `follow_redirects`.
1154
+ # See the [httpx documentation](https://www.python-httpx.org/api/#asyncclient) for more details.
1155
+ http_client: httpx.AsyncClient | None = None,
1156
+ # Enable or disable schema validation for data returned by the API.
1157
+ # When enabled an error APIResponseValidationError is raised
1158
+ # if the API responds with invalid data for the expected schema.
1159
+ #
1160
+ # This parameter may be removed or changed in the future.
1161
+ # If you rely on this feature, please open a GitHub issue
1162
+ # outlining your use-case to help us decide if it should be
1163
+ # part of our public interface in the future.
1164
+ _strict_response_validation: bool = False,
1165
+ ) -> None:
1166
+ """Construct a new async AsyncTelnyx client instance.
1167
+
1168
+ This automatically infers the `api_key` argument from the `TELNYX_API_KEY` environment variable if it is not provided.
1169
+ """
1170
+ if api_key is None:
1171
+ api_key = os.environ.get("TELNYX_API_KEY")
1172
+ if api_key is None:
1173
+ raise TelnyxError(
1174
+ "The api_key client option must be set either by passing api_key to the client or by setting the TELNYX_API_KEY environment variable"
1175
+ )
1176
+ self.api_key = api_key
1177
+
1178
+ if base_url is None:
1179
+ base_url = os.environ.get("TELNYX_BASE_URL")
1180
+ if base_url is None:
1181
+ base_url = f"https://api.telnyx.com/v2"
1182
+
1183
+ super().__init__(
1184
+ version=__version__,
1185
+ base_url=base_url,
1186
+ max_retries=max_retries,
1187
+ timeout=timeout,
1188
+ http_client=http_client,
1189
+ custom_headers=default_headers,
1190
+ custom_query=default_query,
1191
+ _strict_response_validation=_strict_response_validation,
1192
+ )
1193
+
1194
+ self.access_ip_address = access_ip_address.AsyncAccessIPAddressResource(self)
1195
+ self.access_ip_ranges = access_ip_ranges.AsyncAccessIPRangesResource(self)
1196
+ self.actions = actions.AsyncActionsResource(self)
1197
+ self.addresses = addresses.AsyncAddressesResource(self)
1198
+ self.advanced_orders = advanced_orders.AsyncAdvancedOrdersResource(self)
1199
+ self.ai = ai.AsyncAIResource(self)
1200
+ self.audit_events = audit_events.AsyncAuditEventsResource(self)
1201
+ self.authentication_providers = authentication_providers.AsyncAuthenticationProvidersResource(self)
1202
+ self.available_phone_number_blocks = available_phone_number_blocks.AsyncAvailablePhoneNumberBlocksResource(self)
1203
+ self.available_phone_numbers = available_phone_numbers.AsyncAvailablePhoneNumbersResource(self)
1204
+ self.balance = balance.AsyncBalanceResource(self)
1205
+ self.billing_groups = billing_groups.AsyncBillingGroupsResource(self)
1206
+ self.brand = brand.AsyncBrandResource(self)
1207
+ self.bulk_sim_card_actions = bulk_sim_card_actions.AsyncBulkSimCardActionsResource(self)
1208
+ self.bundle_pricing = bundle_pricing.AsyncBundlePricingResource(self)
1209
+ self.call_control_applications = call_control_applications.AsyncCallControlApplicationsResource(self)
1210
+ self.call_events = call_events.AsyncCallEventsResource(self)
1211
+ self.calls = calls.AsyncCallsResource(self)
1212
+ self.campaign = campaign.AsyncCampaignResource(self)
1213
+ self.campaign_builder = campaign_builder.AsyncCampaignBuilderResource(self)
1214
+ self.channel_zones = channel_zones.AsyncChannelZonesResource(self)
1215
+ self.charges_breakdown = charges_breakdown.AsyncChargesBreakdownResource(self)
1216
+ self.charges_summary = charges_summary.AsyncChargesSummaryResource(self)
1217
+ self.comments = comments.AsyncCommentsResource(self)
1218
+ self.conferences = conferences.AsyncConferencesResource(self)
1219
+ self.connections = connections.AsyncConnectionsResource(self)
1220
+ self.country_coverage = country_coverage.AsyncCountryCoverageResource(self)
1221
+ self.credential_connections = credential_connections.AsyncCredentialConnectionsResource(self)
1222
+ self.custom_storage_credentials = custom_storage_credentials.AsyncCustomStorageCredentialsResource(self)
1223
+ self.customer_service_records = customer_service_records.AsyncCustomerServiceRecordsResource(self)
1224
+ self.detail_records = detail_records.AsyncDetailRecordsResource(self)
1225
+ self.dialogflow_connections = dialogflow_connections.AsyncDialogflowConnectionsResource(self)
1226
+ self.document_links = document_links.AsyncDocumentLinksResource(self)
1227
+ self.documents = documents.AsyncDocumentsResource(self)
1228
+ self.dynamic_emergency_addresses = dynamic_emergency_addresses.AsyncDynamicEmergencyAddressesResource(self)
1229
+ self.dynamic_emergency_endpoints = dynamic_emergency_endpoints.AsyncDynamicEmergencyEndpointsResource(self)
1230
+ self.enum = enum.AsyncEnumResource(self)
1231
+ self.external_connections = external_connections.AsyncExternalConnectionsResource(self)
1232
+ self.fax_applications = fax_applications.AsyncFaxApplicationsResource(self)
1233
+ self.faxes = faxes.AsyncFaxesResource(self)
1234
+ self.fqdn_connections = fqdn_connections.AsyncFqdnConnectionsResource(self)
1235
+ self.fqdns = fqdns.AsyncFqdnsResource(self)
1236
+ self.global_ip_allowed_ports = global_ip_allowed_ports.AsyncGlobalIPAllowedPortsResource(self)
1237
+ self.global_ip_assignment_health = global_ip_assignment_health.AsyncGlobalIPAssignmentHealthResource(self)
1238
+ self.global_ip_assignments = global_ip_assignments.AsyncGlobalIPAssignmentsResource(self)
1239
+ self.global_ip_assignments_usage = global_ip_assignments_usage.AsyncGlobalIPAssignmentsUsageResource(self)
1240
+ self.global_ip_health_check_types = global_ip_health_check_types.AsyncGlobalIPHealthCheckTypesResource(self)
1241
+ self.global_ip_health_checks = global_ip_health_checks.AsyncGlobalIPHealthChecksResource(self)
1242
+ self.global_ip_latency = global_ip_latency.AsyncGlobalIPLatencyResource(self)
1243
+ self.global_ip_protocols = global_ip_protocols.AsyncGlobalIPProtocolsResource(self)
1244
+ self.global_ip_usage = global_ip_usage.AsyncGlobalIPUsageResource(self)
1245
+ self.global_ips = global_ips.AsyncGlobalIPsResource(self)
1246
+ self.inbound_channels = inbound_channels.AsyncInboundChannelsResource(self)
1247
+ self.integration_secrets = integration_secrets.AsyncIntegrationSecretsResource(self)
1248
+ self.inventory_coverage = inventory_coverage.AsyncInventoryCoverageResource(self)
1249
+ self.invoices = invoices.AsyncInvoicesResource(self)
1250
+ self.ip_connections = ip_connections.AsyncIPConnectionsResource(self)
1251
+ self.ips = ips.AsyncIPsResource(self)
1252
+ self.ledger_billing_group_reports = ledger_billing_group_reports.AsyncLedgerBillingGroupReportsResource(self)
1253
+ self.list = list.AsyncListResource(self)
1254
+ self.managed_accounts = managed_accounts.AsyncManagedAccountsResource(self)
1255
+ self.media = media.AsyncMediaResource(self)
1256
+ self.messages = messages.AsyncMessagesResource(self)
1257
+ self.messaging = messaging.AsyncMessagingResource(self)
1258
+ self.messaging_hosted_number_orders = messaging_hosted_number_orders.AsyncMessagingHostedNumberOrdersResource(
1259
+ self
1260
+ )
1261
+ self.messaging_hosted_numbers = messaging_hosted_numbers.AsyncMessagingHostedNumbersResource(self)
1262
+ self.messaging_numbers_bulk_updates = messaging_numbers_bulk_updates.AsyncMessagingNumbersBulkUpdatesResource(
1263
+ self
1264
+ )
1265
+ self.messaging_optouts = messaging_optouts.AsyncMessagingOptoutsResource(self)
1266
+ self.messaging_profiles = messaging_profiles.AsyncMessagingProfilesResource(self)
1267
+ self.messaging_tollfree = messaging_tollfree.AsyncMessagingTollfreeResource(self)
1268
+ self.messaging_url_domains = messaging_url_domains.AsyncMessagingURLDomainsResource(self)
1269
+ self.messsages = messsages.AsyncMesssagesResource(self)
1270
+ self.mobile_network_operators = mobile_network_operators.AsyncMobileNetworkOperatorsResource(self)
1271
+ self.mobile_push_credentials = mobile_push_credentials.AsyncMobilePushCredentialsResource(self)
1272
+ self.network_coverage = network_coverage.AsyncNetworkCoverageResource(self)
1273
+ self.networks = networks.AsyncNetworksResource(self)
1274
+ self.notification_channels = notification_channels.AsyncNotificationChannelsResource(self)
1275
+ self.notification_event_conditions = notification_event_conditions.AsyncNotificationEventConditionsResource(
1276
+ self
1277
+ )
1278
+ self.notification_events = notification_events.AsyncNotificationEventsResource(self)
1279
+ self.notification_profiles = notification_profiles.AsyncNotificationProfilesResource(self)
1280
+ self.notification_settings = notification_settings.AsyncNotificationSettingsResource(self)
1281
+ self.number_block_orders = number_block_orders.AsyncNumberBlockOrdersResource(self)
1282
+ self.number_lookup = number_lookup.AsyncNumberLookupResource(self)
1283
+ self.number_order_phone_numbers = number_order_phone_numbers.AsyncNumberOrderPhoneNumbersResource(self)
1284
+ self.number_orders = number_orders.AsyncNumberOrdersResource(self)
1285
+ self.number_reservations = number_reservations.AsyncNumberReservationsResource(self)
1286
+ self.numbers_features = numbers_features.AsyncNumbersFeaturesResource(self)
1287
+ self.operator_connect = operator_connect.AsyncOperatorConnectResource(self)
1288
+ self.ota_updates = ota_updates.AsyncOtaUpdatesResource(self)
1289
+ self.outbound_voice_profiles = outbound_voice_profiles.AsyncOutboundVoiceProfilesResource(self)
1290
+ self.payment = payment.AsyncPaymentResource(self)
1291
+ self.phone_number_assignment_by_profile = (
1292
+ phone_number_assignment_by_profile.AsyncPhoneNumberAssignmentByProfileResource(self)
1293
+ )
1294
+ self.phone_number_blocks = phone_number_blocks.AsyncPhoneNumberBlocksResource(self)
1295
+ self.phone_number_campaigns = phone_number_campaigns.AsyncPhoneNumberCampaignsResource(self)
1296
+ self.phone_numbers = phone_numbers.AsyncPhoneNumbersResource(self)
1297
+ self.phone_numbers_regulatory_requirements = (
1298
+ phone_numbers_regulatory_requirements.AsyncPhoneNumbersRegulatoryRequirementsResource(self)
1299
+ )
1300
+ self.portability_checks = portability_checks.AsyncPortabilityChecksResource(self)
1301
+ self.porting = porting.AsyncPortingResource(self)
1302
+ self.porting_orders = porting_orders.AsyncPortingOrdersResource(self)
1303
+ self.porting_phone_numbers = porting_phone_numbers.AsyncPortingPhoneNumbersResource(self)
1304
+ self.portouts = portouts.AsyncPortoutsResource(self)
1305
+ self.private_wireless_gateways = private_wireless_gateways.AsyncPrivateWirelessGatewaysResource(self)
1306
+ self.public_internet_gateways = public_internet_gateways.AsyncPublicInternetGatewaysResource(self)
1307
+ self.queues = queues.AsyncQueuesResource(self)
1308
+ self.recording_transcriptions = recording_transcriptions.AsyncRecordingTranscriptionsResource(self)
1309
+ self.recordings = recordings.AsyncRecordingsResource(self)
1310
+ self.regions = regions.AsyncRegionsResource(self)
1311
+ self.regulatory_requirements = regulatory_requirements.AsyncRegulatoryRequirementsResource(self)
1312
+ self.reports = reports.AsyncReportsResource(self)
1313
+ self.requirement_groups = requirement_groups.AsyncRequirementGroupsResource(self)
1314
+ self.requirement_types = requirement_types.AsyncRequirementTypesResource(self)
1315
+ self.requirements = requirements.AsyncRequirementsResource(self)
1316
+ self.room_compositions = room_compositions.AsyncRoomCompositionsResource(self)
1317
+ self.room_participants = room_participants.AsyncRoomParticipantsResource(self)
1318
+ self.room_recordings = room_recordings.AsyncRoomRecordingsResource(self)
1319
+ self.rooms = rooms.AsyncRoomsResource(self)
1320
+ self.seti = seti.AsyncSetiResource(self)
1321
+ self.short_codes = short_codes.AsyncShortCodesResource(self)
1322
+ self.sim_card_data_usage_notifications = (
1323
+ sim_card_data_usage_notifications.AsyncSimCardDataUsageNotificationsResource(self)
1324
+ )
1325
+ self.sim_card_groups = sim_card_groups.AsyncSimCardGroupsResource(self)
1326
+ self.sim_card_order_preview = sim_card_order_preview.AsyncSimCardOrderPreviewResource(self)
1327
+ self.sim_card_orders = sim_card_orders.AsyncSimCardOrdersResource(self)
1328
+ self.sim_cards = sim_cards.AsyncSimCardsResource(self)
1329
+ self.siprec_connectors = siprec_connectors.AsyncSiprecConnectorsResource(self)
1330
+ self.storage = storage.AsyncStorageResource(self)
1331
+ self.sub_number_orders = sub_number_orders.AsyncSubNumberOrdersResource(self)
1332
+ self.sub_number_orders_report = sub_number_orders_report.AsyncSubNumberOrdersReportResource(self)
1333
+ self.telephony_credentials = telephony_credentials.AsyncTelephonyCredentialsResource(self)
1334
+ self.texml = texml.AsyncTexmlResource(self)
1335
+ self.texml_applications = texml_applications.AsyncTexmlApplicationsResource(self)
1336
+ self.text_to_speech = text_to_speech.AsyncTextToSpeechResource(self)
1337
+ self.usage_reports = usage_reports.AsyncUsageReportsResource(self)
1338
+ self.user_addresses = user_addresses.AsyncUserAddressesResource(self)
1339
+ self.user_tags = user_tags.AsyncUserTagsResource(self)
1340
+ self.verifications = verifications.AsyncVerificationsResource(self)
1341
+ self.verified_numbers = verified_numbers.AsyncVerifiedNumbersResource(self)
1342
+ self.verify_profiles = verify_profiles.AsyncVerifyProfilesResource(self)
1343
+ self.virtual_cross_connects = virtual_cross_connects.AsyncVirtualCrossConnectsResource(self)
1344
+ self.virtual_cross_connects_coverage = (
1345
+ virtual_cross_connects_coverage.AsyncVirtualCrossConnectsCoverageResource(self)
1346
+ )
1347
+ self.webhook_deliveries = webhook_deliveries.AsyncWebhookDeliveriesResource(self)
1348
+ self.wireguard_interfaces = wireguard_interfaces.AsyncWireguardInterfacesResource(self)
1349
+ self.wireguard_peers = wireguard_peers.AsyncWireguardPeersResource(self)
1350
+ self.wireless = wireless.AsyncWirelessResource(self)
1351
+ self.wireless_blocklist_values = wireless_blocklist_values.AsyncWirelessBlocklistValuesResource(self)
1352
+ self.wireless_blocklists = wireless_blocklists.AsyncWirelessBlocklistsResource(self)
1353
+ self.partner_campaigns = partner_campaigns.AsyncPartnerCampaignsResource(self)
1354
+ self.with_raw_response = AsyncTelnyxWithRawResponse(self)
1355
+ self.with_streaming_response = AsyncTelnyxWithStreamedResponse(self)
1356
+
1357
+ @property
1358
+ @override
1359
+ def qs(self) -> Querystring:
1360
+ return Querystring(array_format="comma")
1361
+
1362
+ @property
1363
+ @override
1364
+ def auth_headers(self) -> dict[str, str]:
1365
+ api_key = self.api_key
1366
+ return {"Authorization": f"Bearer {api_key}"}
1367
+
1368
+ @property
1369
+ @override
1370
+ def default_headers(self) -> dict[str, str | Omit]:
1371
+ return {
1372
+ **super().default_headers,
1373
+ "X-Stainless-Async": f"async:{get_async_library()}",
1374
+ **self._custom_headers,
1375
+ }
1376
+
1377
+ def copy(
1378
+ self,
1379
+ *,
1380
+ api_key: str | None = None,
1381
+ base_url: str | httpx.URL | None = None,
1382
+ timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
1383
+ http_client: httpx.AsyncClient | None = None,
1384
+ max_retries: int | NotGiven = NOT_GIVEN,
1385
+ default_headers: Mapping[str, str] | None = None,
1386
+ set_default_headers: Mapping[str, str] | None = None,
1387
+ default_query: Mapping[str, object] | None = None,
1388
+ set_default_query: Mapping[str, object] | None = None,
1389
+ _extra_kwargs: Mapping[str, Any] = {},
1390
+ ) -> Self:
1391
+ """
1392
+ Create a new client instance re-using the same options given to the current client with optional overriding.
1393
+ """
1394
+ if default_headers is not None and set_default_headers is not None:
1395
+ raise ValueError("The `default_headers` and `set_default_headers` arguments are mutually exclusive")
1396
+
1397
+ if default_query is not None and set_default_query is not None:
1398
+ raise ValueError("The `default_query` and `set_default_query` arguments are mutually exclusive")
1399
+
1400
+ headers = self._custom_headers
1401
+ if default_headers is not None:
1402
+ headers = {**headers, **default_headers}
1403
+ elif set_default_headers is not None:
1404
+ headers = set_default_headers
1405
+
1406
+ params = self._custom_query
1407
+ if default_query is not None:
1408
+ params = {**params, **default_query}
1409
+ elif set_default_query is not None:
1410
+ params = set_default_query
1411
+
1412
+ http_client = http_client or self._client
1413
+ return self.__class__(
1414
+ api_key=api_key or self.api_key,
1415
+ base_url=base_url or self.base_url,
1416
+ timeout=self.timeout if isinstance(timeout, NotGiven) else timeout,
1417
+ http_client=http_client,
1418
+ max_retries=max_retries if is_given(max_retries) else self.max_retries,
1419
+ default_headers=headers,
1420
+ default_query=params,
1421
+ **_extra_kwargs,
1422
+ )
1423
+
1424
+ # Alias for `copy` for nicer inline usage, e.g.
1425
+ # client.with_options(timeout=10).foo.create(...)
1426
+ with_options = copy
1427
+
1428
+ async def create_bucket(
1429
+ self,
1430
+ bucket_name: str,
1431
+ *,
1432
+ location_constraint: str | NotGiven = NOT_GIVEN,
1433
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1434
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1435
+ extra_headers: Headers | None = None,
1436
+ extra_query: Query | None = None,
1437
+ extra_body: Body | None = None,
1438
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1439
+ ) -> None:
1440
+ """
1441
+ Create a bucket.
1442
+
1443
+ Args:
1444
+ extra_headers: Send extra headers
1445
+
1446
+ extra_query: Add additional query parameters to the request
1447
+
1448
+ extra_body: Add additional JSON properties to the request
1449
+
1450
+ timeout: Override the client-level default timeout for this request, in seconds
1451
+ """
1452
+ if not bucket_name:
1453
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
1454
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1455
+ return await self.put(
1456
+ f"/{bucket_name}",
1457
+ body=await async_maybe_transform(
1458
+ {"location_constraint": location_constraint}, client_create_bucket_params.ClientCreateBucketParams
1459
+ ),
1460
+ options=make_request_options(
1461
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1462
+ ),
1463
+ cast_to=NoneType,
1464
+ )
1465
+
1466
+ async def delete_bucket(
1467
+ self,
1468
+ bucket_name: str,
1469
+ *,
1470
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1471
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1472
+ extra_headers: Headers | None = None,
1473
+ extra_query: Query | None = None,
1474
+ extra_body: Body | None = None,
1475
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1476
+ ) -> None:
1477
+ """Deletes a bucket.
1478
+
1479
+ The bucket must be empty for it to be deleted.
1480
+
1481
+ Args:
1482
+ extra_headers: Send extra headers
1483
+
1484
+ extra_query: Add additional query parameters to the request
1485
+
1486
+ extra_body: Add additional JSON properties to the request
1487
+
1488
+ timeout: Override the client-level default timeout for this request, in seconds
1489
+ """
1490
+ if not bucket_name:
1491
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
1492
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1493
+ return await self.delete(
1494
+ f"/{bucket_name}",
1495
+ options=make_request_options(
1496
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1497
+ ),
1498
+ cast_to=NoneType,
1499
+ )
1500
+
1501
+ async def delete_object(
1502
+ self,
1503
+ object_name: str,
1504
+ *,
1505
+ bucket_name: str,
1506
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1507
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1508
+ extra_headers: Headers | None = None,
1509
+ extra_query: Query | None = None,
1510
+ extra_body: Body | None = None,
1511
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1512
+ ) -> None:
1513
+ """
1514
+ Delete an object from a given bucket.
1515
+
1516
+ Args:
1517
+ extra_headers: Send extra headers
1518
+
1519
+ extra_query: Add additional query parameters to the request
1520
+
1521
+ extra_body: Add additional JSON properties to the request
1522
+
1523
+ timeout: Override the client-level default timeout for this request, in seconds
1524
+ """
1525
+ if not bucket_name:
1526
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
1527
+ if not object_name:
1528
+ raise ValueError(f"Expected a non-empty value for `object_name` but received {object_name!r}")
1529
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1530
+ return await self.delete(
1531
+ f"/{bucket_name}/{object_name}",
1532
+ options=make_request_options(
1533
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1534
+ ),
1535
+ cast_to=NoneType,
1536
+ )
1537
+
1538
+ async def delete_objects(
1539
+ self,
1540
+ bucket_name: str,
1541
+ *,
1542
+ delete: Literal[True],
1543
+ body: Iterable[client_delete_objects_params.Body],
1544
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1545
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1546
+ extra_headers: Headers | None = None,
1547
+ extra_query: Query | None = None,
1548
+ extra_body: Body | None = None,
1549
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1550
+ ) -> object:
1551
+ """
1552
+ Deletes one or multiple objects from a given bucket.
1553
+
1554
+ Args:
1555
+ extra_headers: Send extra headers
1556
+
1557
+ extra_query: Add additional query parameters to the request
1558
+
1559
+ extra_body: Add additional JSON properties to the request
1560
+
1561
+ timeout: Override the client-level default timeout for this request, in seconds
1562
+ """
1563
+ if not bucket_name:
1564
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
1565
+ extra_headers = {"Accept": "application/xml", **(extra_headers or {})}
1566
+ return await self.post(
1567
+ f"/{bucket_name}",
1568
+ body=await async_maybe_transform(body, Iterable[client_delete_objects_params.Body]),
1569
+ options=make_request_options(
1570
+ extra_headers=extra_headers,
1571
+ extra_query=extra_query,
1572
+ extra_body=extra_body,
1573
+ timeout=timeout,
1574
+ query=await async_maybe_transform(
1575
+ {"delete": delete}, client_delete_objects_params.ClientDeleteObjectsParams
1576
+ ),
1577
+ ),
1578
+ cast_to=object,
1579
+ )
1580
+
1581
+ async def get_object(
1582
+ self,
1583
+ object_name: str,
1584
+ *,
1585
+ bucket_name: str,
1586
+ upload_id: str | NotGiven = NOT_GIVEN,
1587
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1588
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1589
+ extra_headers: Headers | None = None,
1590
+ extra_query: Query | None = None,
1591
+ extra_body: Body | None = None,
1592
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1593
+ ) -> AsyncBinaryAPIResponse:
1594
+ """
1595
+ Retrieves an object from a given bucket.
1596
+
1597
+ Args:
1598
+ extra_headers: Send extra headers
1599
+
1600
+ extra_query: Add additional query parameters to the request
1601
+
1602
+ extra_body: Add additional JSON properties to the request
1603
+
1604
+ timeout: Override the client-level default timeout for this request, in seconds
1605
+ """
1606
+ if not bucket_name:
1607
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
1608
+ if not object_name:
1609
+ raise ValueError(f"Expected a non-empty value for `object_name` but received {object_name!r}")
1610
+ extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
1611
+ return await self.get(
1612
+ f"/{bucket_name}/{object_name}",
1613
+ options=make_request_options(
1614
+ extra_headers=extra_headers,
1615
+ extra_query=extra_query,
1616
+ extra_body=extra_body,
1617
+ timeout=timeout,
1618
+ query=await async_maybe_transform(
1619
+ {"upload_id": upload_id}, client_get_object_params.ClientGetObjectParams
1620
+ ),
1621
+ ),
1622
+ cast_to=AsyncBinaryAPIResponse,
1623
+ )
1624
+
1625
+ async def list_buckets(
1626
+ self,
1627
+ *,
1628
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1629
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1630
+ extra_headers: Headers | None = None,
1631
+ extra_query: Query | None = None,
1632
+ extra_body: Body | None = None,
1633
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1634
+ ) -> ListBucketsResponse:
1635
+ """List all Buckets."""
1636
+ extra_headers = {"Accept": "application/xml", **(extra_headers or {})}
1637
+ return await self.get(
1638
+ "/",
1639
+ options=make_request_options(
1640
+ extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1641
+ ),
1642
+ cast_to=ListBucketsResponse,
1643
+ )
1644
+
1645
+ async def list_objects(
1646
+ self,
1647
+ bucket_name: str,
1648
+ *,
1649
+ list_type: Literal[2] | NotGiven = NOT_GIVEN,
1650
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1651
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1652
+ extra_headers: Headers | None = None,
1653
+ extra_query: Query | None = None,
1654
+ extra_body: Body | None = None,
1655
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1656
+ ) -> ListObjectsResponse:
1657
+ """
1658
+ List all objects contained in a given bucket.
1659
+
1660
+ Args:
1661
+ extra_headers: Send extra headers
1662
+
1663
+ extra_query: Add additional query parameters to the request
1664
+
1665
+ extra_body: Add additional JSON properties to the request
1666
+
1667
+ timeout: Override the client-level default timeout for this request, in seconds
1668
+ """
1669
+ if not bucket_name:
1670
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
1671
+ extra_headers = {"Accept": "application/xml", **(extra_headers or {})}
1672
+ return await self.get(
1673
+ f"/{bucket_name}",
1674
+ options=make_request_options(
1675
+ extra_headers=extra_headers,
1676
+ extra_query=extra_query,
1677
+ extra_body=extra_body,
1678
+ timeout=timeout,
1679
+ query=await async_maybe_transform(
1680
+ {"list_type": list_type}, client_list_objects_params.ClientListObjectsParams
1681
+ ),
1682
+ ),
1683
+ cast_to=ListObjectsResponse,
1684
+ )
1685
+
1686
+ async def put_object(
1687
+ self,
1688
+ object_name: str,
1689
+ *,
1690
+ bucket_name: str,
1691
+ body: FileTypes,
1692
+ part_number: str | NotGiven = NOT_GIVEN,
1693
+ upload_id: str | NotGiven = NOT_GIVEN,
1694
+ # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1695
+ # The extra values given here take precedence over values defined on the client or passed to this method.
1696
+ extra_headers: Headers | None = None,
1697
+ extra_query: Query | None = None,
1698
+ extra_body: Body | None = None,
1699
+ timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1700
+ ) -> None:
1701
+ """
1702
+ Add an object to a bucket.
1703
+
1704
+ Args:
1705
+ extra_headers: Send extra headers
1706
+
1707
+ extra_query: Add additional query parameters to the request
1708
+
1709
+ extra_body: Add additional JSON properties to the request
1710
+
1711
+ timeout: Override the client-level default timeout for this request, in seconds
1712
+ """
1713
+ if not bucket_name:
1714
+ raise ValueError(f"Expected a non-empty value for `bucket_name` but received {bucket_name!r}")
1715
+ if not object_name:
1716
+ raise ValueError(f"Expected a non-empty value for `object_name` but received {object_name!r}")
1717
+ extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1718
+ return await self.put(
1719
+ f"/{bucket_name}/{object_name}",
1720
+ body=await async_maybe_transform(body, client_put_object_params.ClientPutObjectParams),
1721
+ options=make_request_options(
1722
+ extra_headers=extra_headers,
1723
+ extra_query=extra_query,
1724
+ extra_body=extra_body,
1725
+ timeout=timeout,
1726
+ query=await async_maybe_transform(
1727
+ {
1728
+ "part_number": part_number,
1729
+ "upload_id": upload_id,
1730
+ },
1731
+ client_put_object_params.ClientPutObjectParams,
1732
+ ),
1733
+ ),
1734
+ cast_to=NoneType,
1735
+ )
1736
+
1737
+ @override
1738
+ def _make_status_error(
1739
+ self,
1740
+ err_msg: str,
1741
+ *,
1742
+ body: object,
1743
+ response: httpx.Response,
1744
+ ) -> APIStatusError:
1745
+ if response.status_code == 400:
1746
+ return _exceptions.BadRequestError(err_msg, response=response, body=body)
1747
+
1748
+ if response.status_code == 401:
1749
+ return _exceptions.AuthenticationError(err_msg, response=response, body=body)
1750
+
1751
+ if response.status_code == 403:
1752
+ return _exceptions.PermissionDeniedError(err_msg, response=response, body=body)
1753
+
1754
+ if response.status_code == 404:
1755
+ return _exceptions.NotFoundError(err_msg, response=response, body=body)
1756
+
1757
+ if response.status_code == 409:
1758
+ return _exceptions.ConflictError(err_msg, response=response, body=body)
1759
+
1760
+ if response.status_code == 422:
1761
+ return _exceptions.UnprocessableEntityError(err_msg, response=response, body=body)
1762
+
1763
+ if response.status_code == 429:
1764
+ return _exceptions.RateLimitError(err_msg, response=response, body=body)
1765
+
1766
+ if response.status_code >= 500:
1767
+ return _exceptions.InternalServerError(err_msg, response=response, body=body)
1768
+ return APIStatusError(err_msg, response=response, body=body)
1769
+
1770
+
1771
+ class TelnyxWithRawResponse:
1772
+ def __init__(self, client: Telnyx) -> None:
1773
+ self.access_ip_address = access_ip_address.AccessIPAddressResourceWithRawResponse(client.access_ip_address)
1774
+ self.access_ip_ranges = access_ip_ranges.AccessIPRangesResourceWithRawResponse(client.access_ip_ranges)
1775
+ self.actions = actions.ActionsResourceWithRawResponse(client.actions)
1776
+ self.addresses = addresses.AddressesResourceWithRawResponse(client.addresses)
1777
+ self.advanced_orders = advanced_orders.AdvancedOrdersResourceWithRawResponse(client.advanced_orders)
1778
+ self.ai = ai.AIResourceWithRawResponse(client.ai)
1779
+ self.audit_events = audit_events.AuditEventsResourceWithRawResponse(client.audit_events)
1780
+ self.authentication_providers = authentication_providers.AuthenticationProvidersResourceWithRawResponse(
1781
+ client.authentication_providers
1782
+ )
1783
+ self.available_phone_number_blocks = (
1784
+ available_phone_number_blocks.AvailablePhoneNumberBlocksResourceWithRawResponse(
1785
+ client.available_phone_number_blocks
1786
+ )
1787
+ )
1788
+ self.available_phone_numbers = available_phone_numbers.AvailablePhoneNumbersResourceWithRawResponse(
1789
+ client.available_phone_numbers
1790
+ )
1791
+ self.balance = balance.BalanceResourceWithRawResponse(client.balance)
1792
+ self.billing_groups = billing_groups.BillingGroupsResourceWithRawResponse(client.billing_groups)
1793
+ self.brand = brand.BrandResourceWithRawResponse(client.brand)
1794
+ self.bulk_sim_card_actions = bulk_sim_card_actions.BulkSimCardActionsResourceWithRawResponse(
1795
+ client.bulk_sim_card_actions
1796
+ )
1797
+ self.bundle_pricing = bundle_pricing.BundlePricingResourceWithRawResponse(client.bundle_pricing)
1798
+ self.call_control_applications = call_control_applications.CallControlApplicationsResourceWithRawResponse(
1799
+ client.call_control_applications
1800
+ )
1801
+ self.call_events = call_events.CallEventsResourceWithRawResponse(client.call_events)
1802
+ self.calls = calls.CallsResourceWithRawResponse(client.calls)
1803
+ self.campaign = campaign.CampaignResourceWithRawResponse(client.campaign)
1804
+ self.campaign_builder = campaign_builder.CampaignBuilderResourceWithRawResponse(client.campaign_builder)
1805
+ self.channel_zones = channel_zones.ChannelZonesResourceWithRawResponse(client.channel_zones)
1806
+ self.charges_breakdown = charges_breakdown.ChargesBreakdownResourceWithRawResponse(client.charges_breakdown)
1807
+ self.charges_summary = charges_summary.ChargesSummaryResourceWithRawResponse(client.charges_summary)
1808
+ self.comments = comments.CommentsResourceWithRawResponse(client.comments)
1809
+ self.conferences = conferences.ConferencesResourceWithRawResponse(client.conferences)
1810
+ self.connections = connections.ConnectionsResourceWithRawResponse(client.connections)
1811
+ self.country_coverage = country_coverage.CountryCoverageResourceWithRawResponse(client.country_coverage)
1812
+ self.credential_connections = credential_connections.CredentialConnectionsResourceWithRawResponse(
1813
+ client.credential_connections
1814
+ )
1815
+ self.custom_storage_credentials = custom_storage_credentials.CustomStorageCredentialsResourceWithRawResponse(
1816
+ client.custom_storage_credentials
1817
+ )
1818
+ self.customer_service_records = customer_service_records.CustomerServiceRecordsResourceWithRawResponse(
1819
+ client.customer_service_records
1820
+ )
1821
+ self.detail_records = detail_records.DetailRecordsResourceWithRawResponse(client.detail_records)
1822
+ self.dialogflow_connections = dialogflow_connections.DialogflowConnectionsResourceWithRawResponse(
1823
+ client.dialogflow_connections
1824
+ )
1825
+ self.document_links = document_links.DocumentLinksResourceWithRawResponse(client.document_links)
1826
+ self.documents = documents.DocumentsResourceWithRawResponse(client.documents)
1827
+ self.dynamic_emergency_addresses = dynamic_emergency_addresses.DynamicEmergencyAddressesResourceWithRawResponse(
1828
+ client.dynamic_emergency_addresses
1829
+ )
1830
+ self.dynamic_emergency_endpoints = dynamic_emergency_endpoints.DynamicEmergencyEndpointsResourceWithRawResponse(
1831
+ client.dynamic_emergency_endpoints
1832
+ )
1833
+ self.enum = enum.EnumResourceWithRawResponse(client.enum)
1834
+ self.external_connections = external_connections.ExternalConnectionsResourceWithRawResponse(
1835
+ client.external_connections
1836
+ )
1837
+ self.fax_applications = fax_applications.FaxApplicationsResourceWithRawResponse(client.fax_applications)
1838
+ self.faxes = faxes.FaxesResourceWithRawResponse(client.faxes)
1839
+ self.fqdn_connections = fqdn_connections.FqdnConnectionsResourceWithRawResponse(client.fqdn_connections)
1840
+ self.fqdns = fqdns.FqdnsResourceWithRawResponse(client.fqdns)
1841
+ self.global_ip_allowed_ports = global_ip_allowed_ports.GlobalIPAllowedPortsResourceWithRawResponse(
1842
+ client.global_ip_allowed_ports
1843
+ )
1844
+ self.global_ip_assignment_health = global_ip_assignment_health.GlobalIPAssignmentHealthResourceWithRawResponse(
1845
+ client.global_ip_assignment_health
1846
+ )
1847
+ self.global_ip_assignments = global_ip_assignments.GlobalIPAssignmentsResourceWithRawResponse(
1848
+ client.global_ip_assignments
1849
+ )
1850
+ self.global_ip_assignments_usage = global_ip_assignments_usage.GlobalIPAssignmentsUsageResourceWithRawResponse(
1851
+ client.global_ip_assignments_usage
1852
+ )
1853
+ self.global_ip_health_check_types = (
1854
+ global_ip_health_check_types.GlobalIPHealthCheckTypesResourceWithRawResponse(
1855
+ client.global_ip_health_check_types
1856
+ )
1857
+ )
1858
+ self.global_ip_health_checks = global_ip_health_checks.GlobalIPHealthChecksResourceWithRawResponse(
1859
+ client.global_ip_health_checks
1860
+ )
1861
+ self.global_ip_latency = global_ip_latency.GlobalIPLatencyResourceWithRawResponse(client.global_ip_latency)
1862
+ self.global_ip_protocols = global_ip_protocols.GlobalIPProtocolsResourceWithRawResponse(
1863
+ client.global_ip_protocols
1864
+ )
1865
+ self.global_ip_usage = global_ip_usage.GlobalIPUsageResourceWithRawResponse(client.global_ip_usage)
1866
+ self.global_ips = global_ips.GlobalIPsResourceWithRawResponse(client.global_ips)
1867
+ self.inbound_channels = inbound_channels.InboundChannelsResourceWithRawResponse(client.inbound_channels)
1868
+ self.integration_secrets = integration_secrets.IntegrationSecretsResourceWithRawResponse(
1869
+ client.integration_secrets
1870
+ )
1871
+ self.inventory_coverage = inventory_coverage.InventoryCoverageResourceWithRawResponse(client.inventory_coverage)
1872
+ self.invoices = invoices.InvoicesResourceWithRawResponse(client.invoices)
1873
+ self.ip_connections = ip_connections.IPConnectionsResourceWithRawResponse(client.ip_connections)
1874
+ self.ips = ips.IPsResourceWithRawResponse(client.ips)
1875
+ self.ledger_billing_group_reports = (
1876
+ ledger_billing_group_reports.LedgerBillingGroupReportsResourceWithRawResponse(
1877
+ client.ledger_billing_group_reports
1878
+ )
1879
+ )
1880
+ self.list = list.ListResourceWithRawResponse(client.list)
1881
+ self.managed_accounts = managed_accounts.ManagedAccountsResourceWithRawResponse(client.managed_accounts)
1882
+ self.media = media.MediaResourceWithRawResponse(client.media)
1883
+ self.messages = messages.MessagesResourceWithRawResponse(client.messages)
1884
+ self.messaging = messaging.MessagingResourceWithRawResponse(client.messaging)
1885
+ self.messaging_hosted_number_orders = (
1886
+ messaging_hosted_number_orders.MessagingHostedNumberOrdersResourceWithRawResponse(
1887
+ client.messaging_hosted_number_orders
1888
+ )
1889
+ )
1890
+ self.messaging_hosted_numbers = messaging_hosted_numbers.MessagingHostedNumbersResourceWithRawResponse(
1891
+ client.messaging_hosted_numbers
1892
+ )
1893
+ self.messaging_numbers_bulk_updates = (
1894
+ messaging_numbers_bulk_updates.MessagingNumbersBulkUpdatesResourceWithRawResponse(
1895
+ client.messaging_numbers_bulk_updates
1896
+ )
1897
+ )
1898
+ self.messaging_optouts = messaging_optouts.MessagingOptoutsResourceWithRawResponse(client.messaging_optouts)
1899
+ self.messaging_profiles = messaging_profiles.MessagingProfilesResourceWithRawResponse(client.messaging_profiles)
1900
+ self.messaging_tollfree = messaging_tollfree.MessagingTollfreeResourceWithRawResponse(client.messaging_tollfree)
1901
+ self.messaging_url_domains = messaging_url_domains.MessagingURLDomainsResourceWithRawResponse(
1902
+ client.messaging_url_domains
1903
+ )
1904
+ self.messsages = messsages.MesssagesResourceWithRawResponse(client.messsages)
1905
+ self.mobile_network_operators = mobile_network_operators.MobileNetworkOperatorsResourceWithRawResponse(
1906
+ client.mobile_network_operators
1907
+ )
1908
+ self.mobile_push_credentials = mobile_push_credentials.MobilePushCredentialsResourceWithRawResponse(
1909
+ client.mobile_push_credentials
1910
+ )
1911
+ self.network_coverage = network_coverage.NetworkCoverageResourceWithRawResponse(client.network_coverage)
1912
+ self.networks = networks.NetworksResourceWithRawResponse(client.networks)
1913
+ self.notification_channels = notification_channels.NotificationChannelsResourceWithRawResponse(
1914
+ client.notification_channels
1915
+ )
1916
+ self.notification_event_conditions = (
1917
+ notification_event_conditions.NotificationEventConditionsResourceWithRawResponse(
1918
+ client.notification_event_conditions
1919
+ )
1920
+ )
1921
+ self.notification_events = notification_events.NotificationEventsResourceWithRawResponse(
1922
+ client.notification_events
1923
+ )
1924
+ self.notification_profiles = notification_profiles.NotificationProfilesResourceWithRawResponse(
1925
+ client.notification_profiles
1926
+ )
1927
+ self.notification_settings = notification_settings.NotificationSettingsResourceWithRawResponse(
1928
+ client.notification_settings
1929
+ )
1930
+ self.number_block_orders = number_block_orders.NumberBlockOrdersResourceWithRawResponse(
1931
+ client.number_block_orders
1932
+ )
1933
+ self.number_lookup = number_lookup.NumberLookupResourceWithRawResponse(client.number_lookup)
1934
+ self.number_order_phone_numbers = number_order_phone_numbers.NumberOrderPhoneNumbersResourceWithRawResponse(
1935
+ client.number_order_phone_numbers
1936
+ )
1937
+ self.number_orders = number_orders.NumberOrdersResourceWithRawResponse(client.number_orders)
1938
+ self.number_reservations = number_reservations.NumberReservationsResourceWithRawResponse(
1939
+ client.number_reservations
1940
+ )
1941
+ self.numbers_features = numbers_features.NumbersFeaturesResourceWithRawResponse(client.numbers_features)
1942
+ self.operator_connect = operator_connect.OperatorConnectResourceWithRawResponse(client.operator_connect)
1943
+ self.ota_updates = ota_updates.OtaUpdatesResourceWithRawResponse(client.ota_updates)
1944
+ self.outbound_voice_profiles = outbound_voice_profiles.OutboundVoiceProfilesResourceWithRawResponse(
1945
+ client.outbound_voice_profiles
1946
+ )
1947
+ self.payment = payment.PaymentResourceWithRawResponse(client.payment)
1948
+ self.phone_number_assignment_by_profile = (
1949
+ phone_number_assignment_by_profile.PhoneNumberAssignmentByProfileResourceWithRawResponse(
1950
+ client.phone_number_assignment_by_profile
1951
+ )
1952
+ )
1953
+ self.phone_number_blocks = phone_number_blocks.PhoneNumberBlocksResourceWithRawResponse(
1954
+ client.phone_number_blocks
1955
+ )
1956
+ self.phone_number_campaigns = phone_number_campaigns.PhoneNumberCampaignsResourceWithRawResponse(
1957
+ client.phone_number_campaigns
1958
+ )
1959
+ self.phone_numbers = phone_numbers.PhoneNumbersResourceWithRawResponse(client.phone_numbers)
1960
+ self.phone_numbers_regulatory_requirements = (
1961
+ phone_numbers_regulatory_requirements.PhoneNumbersRegulatoryRequirementsResourceWithRawResponse(
1962
+ client.phone_numbers_regulatory_requirements
1963
+ )
1964
+ )
1965
+ self.portability_checks = portability_checks.PortabilityChecksResourceWithRawResponse(client.portability_checks)
1966
+ self.porting = porting.PortingResourceWithRawResponse(client.porting)
1967
+ self.porting_orders = porting_orders.PortingOrdersResourceWithRawResponse(client.porting_orders)
1968
+ self.porting_phone_numbers = porting_phone_numbers.PortingPhoneNumbersResourceWithRawResponse(
1969
+ client.porting_phone_numbers
1970
+ )
1971
+ self.portouts = portouts.PortoutsResourceWithRawResponse(client.portouts)
1972
+ self.private_wireless_gateways = private_wireless_gateways.PrivateWirelessGatewaysResourceWithRawResponse(
1973
+ client.private_wireless_gateways
1974
+ )
1975
+ self.public_internet_gateways = public_internet_gateways.PublicInternetGatewaysResourceWithRawResponse(
1976
+ client.public_internet_gateways
1977
+ )
1978
+ self.queues = queues.QueuesResourceWithRawResponse(client.queues)
1979
+ self.recording_transcriptions = recording_transcriptions.RecordingTranscriptionsResourceWithRawResponse(
1980
+ client.recording_transcriptions
1981
+ )
1982
+ self.recordings = recordings.RecordingsResourceWithRawResponse(client.recordings)
1983
+ self.regions = regions.RegionsResourceWithRawResponse(client.regions)
1984
+ self.regulatory_requirements = regulatory_requirements.RegulatoryRequirementsResourceWithRawResponse(
1985
+ client.regulatory_requirements
1986
+ )
1987
+ self.reports = reports.ReportsResourceWithRawResponse(client.reports)
1988
+ self.requirement_groups = requirement_groups.RequirementGroupsResourceWithRawResponse(client.requirement_groups)
1989
+ self.requirement_types = requirement_types.RequirementTypesResourceWithRawResponse(client.requirement_types)
1990
+ self.requirements = requirements.RequirementsResourceWithRawResponse(client.requirements)
1991
+ self.room_compositions = room_compositions.RoomCompositionsResourceWithRawResponse(client.room_compositions)
1992
+ self.room_participants = room_participants.RoomParticipantsResourceWithRawResponse(client.room_participants)
1993
+ self.room_recordings = room_recordings.RoomRecordingsResourceWithRawResponse(client.room_recordings)
1994
+ self.rooms = rooms.RoomsResourceWithRawResponse(client.rooms)
1995
+ self.seti = seti.SetiResourceWithRawResponse(client.seti)
1996
+ self.short_codes = short_codes.ShortCodesResourceWithRawResponse(client.short_codes)
1997
+ self.sim_card_data_usage_notifications = (
1998
+ sim_card_data_usage_notifications.SimCardDataUsageNotificationsResourceWithRawResponse(
1999
+ client.sim_card_data_usage_notifications
2000
+ )
2001
+ )
2002
+ self.sim_card_groups = sim_card_groups.SimCardGroupsResourceWithRawResponse(client.sim_card_groups)
2003
+ self.sim_card_order_preview = sim_card_order_preview.SimCardOrderPreviewResourceWithRawResponse(
2004
+ client.sim_card_order_preview
2005
+ )
2006
+ self.sim_card_orders = sim_card_orders.SimCardOrdersResourceWithRawResponse(client.sim_card_orders)
2007
+ self.sim_cards = sim_cards.SimCardsResourceWithRawResponse(client.sim_cards)
2008
+ self.siprec_connectors = siprec_connectors.SiprecConnectorsResourceWithRawResponse(client.siprec_connectors)
2009
+ self.storage = storage.StorageResourceWithRawResponse(client.storage)
2010
+ self.sub_number_orders = sub_number_orders.SubNumberOrdersResourceWithRawResponse(client.sub_number_orders)
2011
+ self.sub_number_orders_report = sub_number_orders_report.SubNumberOrdersReportResourceWithRawResponse(
2012
+ client.sub_number_orders_report
2013
+ )
2014
+ self.telephony_credentials = telephony_credentials.TelephonyCredentialsResourceWithRawResponse(
2015
+ client.telephony_credentials
2016
+ )
2017
+ self.texml = texml.TexmlResourceWithRawResponse(client.texml)
2018
+ self.texml_applications = texml_applications.TexmlApplicationsResourceWithRawResponse(client.texml_applications)
2019
+ self.text_to_speech = text_to_speech.TextToSpeechResourceWithRawResponse(client.text_to_speech)
2020
+ self.usage_reports = usage_reports.UsageReportsResourceWithRawResponse(client.usage_reports)
2021
+ self.user_addresses = user_addresses.UserAddressesResourceWithRawResponse(client.user_addresses)
2022
+ self.user_tags = user_tags.UserTagsResourceWithRawResponse(client.user_tags)
2023
+ self.verifications = verifications.VerificationsResourceWithRawResponse(client.verifications)
2024
+ self.verified_numbers = verified_numbers.VerifiedNumbersResourceWithRawResponse(client.verified_numbers)
2025
+ self.verify_profiles = verify_profiles.VerifyProfilesResourceWithRawResponse(client.verify_profiles)
2026
+ self.virtual_cross_connects = virtual_cross_connects.VirtualCrossConnectsResourceWithRawResponse(
2027
+ client.virtual_cross_connects
2028
+ )
2029
+ self.virtual_cross_connects_coverage = (
2030
+ virtual_cross_connects_coverage.VirtualCrossConnectsCoverageResourceWithRawResponse(
2031
+ client.virtual_cross_connects_coverage
2032
+ )
2033
+ )
2034
+ self.webhook_deliveries = webhook_deliveries.WebhookDeliveriesResourceWithRawResponse(client.webhook_deliveries)
2035
+ self.wireguard_interfaces = wireguard_interfaces.WireguardInterfacesResourceWithRawResponse(
2036
+ client.wireguard_interfaces
2037
+ )
2038
+ self.wireguard_peers = wireguard_peers.WireguardPeersResourceWithRawResponse(client.wireguard_peers)
2039
+ self.wireless = wireless.WirelessResourceWithRawResponse(client.wireless)
2040
+ self.wireless_blocklist_values = wireless_blocklist_values.WirelessBlocklistValuesResourceWithRawResponse(
2041
+ client.wireless_blocklist_values
2042
+ )
2043
+ self.wireless_blocklists = wireless_blocklists.WirelessBlocklistsResourceWithRawResponse(
2044
+ client.wireless_blocklists
2045
+ )
2046
+ self.partner_campaigns = partner_campaigns.PartnerCampaignsResourceWithRawResponse(client.partner_campaigns)
2047
+
2048
+ self.create_bucket = to_raw_response_wrapper(
2049
+ client.create_bucket,
2050
+ )
2051
+ self.delete_bucket = to_raw_response_wrapper(
2052
+ client.delete_bucket,
2053
+ )
2054
+ self.delete_object = to_raw_response_wrapper(
2055
+ client.delete_object,
2056
+ )
2057
+ self.delete_objects = to_raw_response_wrapper(
2058
+ client.delete_objects,
2059
+ )
2060
+ self.get_object = to_custom_raw_response_wrapper(
2061
+ client.get_object,
2062
+ BinaryAPIResponse,
2063
+ )
2064
+ self.list_buckets = to_raw_response_wrapper(
2065
+ client.list_buckets,
2066
+ )
2067
+ self.list_objects = to_raw_response_wrapper(
2068
+ client.list_objects,
2069
+ )
2070
+ self.put_object = to_raw_response_wrapper(
2071
+ client.put_object,
2072
+ )
2073
+
2074
+
2075
+ class AsyncTelnyxWithRawResponse:
2076
+ def __init__(self, client: AsyncTelnyx) -> None:
2077
+ self.access_ip_address = access_ip_address.AsyncAccessIPAddressResourceWithRawResponse(client.access_ip_address)
2078
+ self.access_ip_ranges = access_ip_ranges.AsyncAccessIPRangesResourceWithRawResponse(client.access_ip_ranges)
2079
+ self.actions = actions.AsyncActionsResourceWithRawResponse(client.actions)
2080
+ self.addresses = addresses.AsyncAddressesResourceWithRawResponse(client.addresses)
2081
+ self.advanced_orders = advanced_orders.AsyncAdvancedOrdersResourceWithRawResponse(client.advanced_orders)
2082
+ self.ai = ai.AsyncAIResourceWithRawResponse(client.ai)
2083
+ self.audit_events = audit_events.AsyncAuditEventsResourceWithRawResponse(client.audit_events)
2084
+ self.authentication_providers = authentication_providers.AsyncAuthenticationProvidersResourceWithRawResponse(
2085
+ client.authentication_providers
2086
+ )
2087
+ self.available_phone_number_blocks = (
2088
+ available_phone_number_blocks.AsyncAvailablePhoneNumberBlocksResourceWithRawResponse(
2089
+ client.available_phone_number_blocks
2090
+ )
2091
+ )
2092
+ self.available_phone_numbers = available_phone_numbers.AsyncAvailablePhoneNumbersResourceWithRawResponse(
2093
+ client.available_phone_numbers
2094
+ )
2095
+ self.balance = balance.AsyncBalanceResourceWithRawResponse(client.balance)
2096
+ self.billing_groups = billing_groups.AsyncBillingGroupsResourceWithRawResponse(client.billing_groups)
2097
+ self.brand = brand.AsyncBrandResourceWithRawResponse(client.brand)
2098
+ self.bulk_sim_card_actions = bulk_sim_card_actions.AsyncBulkSimCardActionsResourceWithRawResponse(
2099
+ client.bulk_sim_card_actions
2100
+ )
2101
+ self.bundle_pricing = bundle_pricing.AsyncBundlePricingResourceWithRawResponse(client.bundle_pricing)
2102
+ self.call_control_applications = call_control_applications.AsyncCallControlApplicationsResourceWithRawResponse(
2103
+ client.call_control_applications
2104
+ )
2105
+ self.call_events = call_events.AsyncCallEventsResourceWithRawResponse(client.call_events)
2106
+ self.calls = calls.AsyncCallsResourceWithRawResponse(client.calls)
2107
+ self.campaign = campaign.AsyncCampaignResourceWithRawResponse(client.campaign)
2108
+ self.campaign_builder = campaign_builder.AsyncCampaignBuilderResourceWithRawResponse(client.campaign_builder)
2109
+ self.channel_zones = channel_zones.AsyncChannelZonesResourceWithRawResponse(client.channel_zones)
2110
+ self.charges_breakdown = charges_breakdown.AsyncChargesBreakdownResourceWithRawResponse(
2111
+ client.charges_breakdown
2112
+ )
2113
+ self.charges_summary = charges_summary.AsyncChargesSummaryResourceWithRawResponse(client.charges_summary)
2114
+ self.comments = comments.AsyncCommentsResourceWithRawResponse(client.comments)
2115
+ self.conferences = conferences.AsyncConferencesResourceWithRawResponse(client.conferences)
2116
+ self.connections = connections.AsyncConnectionsResourceWithRawResponse(client.connections)
2117
+ self.country_coverage = country_coverage.AsyncCountryCoverageResourceWithRawResponse(client.country_coverage)
2118
+ self.credential_connections = credential_connections.AsyncCredentialConnectionsResourceWithRawResponse(
2119
+ client.credential_connections
2120
+ )
2121
+ self.custom_storage_credentials = (
2122
+ custom_storage_credentials.AsyncCustomStorageCredentialsResourceWithRawResponse(
2123
+ client.custom_storage_credentials
2124
+ )
2125
+ )
2126
+ self.customer_service_records = customer_service_records.AsyncCustomerServiceRecordsResourceWithRawResponse(
2127
+ client.customer_service_records
2128
+ )
2129
+ self.detail_records = detail_records.AsyncDetailRecordsResourceWithRawResponse(client.detail_records)
2130
+ self.dialogflow_connections = dialogflow_connections.AsyncDialogflowConnectionsResourceWithRawResponse(
2131
+ client.dialogflow_connections
2132
+ )
2133
+ self.document_links = document_links.AsyncDocumentLinksResourceWithRawResponse(client.document_links)
2134
+ self.documents = documents.AsyncDocumentsResourceWithRawResponse(client.documents)
2135
+ self.dynamic_emergency_addresses = (
2136
+ dynamic_emergency_addresses.AsyncDynamicEmergencyAddressesResourceWithRawResponse(
2137
+ client.dynamic_emergency_addresses
2138
+ )
2139
+ )
2140
+ self.dynamic_emergency_endpoints = (
2141
+ dynamic_emergency_endpoints.AsyncDynamicEmergencyEndpointsResourceWithRawResponse(
2142
+ client.dynamic_emergency_endpoints
2143
+ )
2144
+ )
2145
+ self.enum = enum.AsyncEnumResourceWithRawResponse(client.enum)
2146
+ self.external_connections = external_connections.AsyncExternalConnectionsResourceWithRawResponse(
2147
+ client.external_connections
2148
+ )
2149
+ self.fax_applications = fax_applications.AsyncFaxApplicationsResourceWithRawResponse(client.fax_applications)
2150
+ self.faxes = faxes.AsyncFaxesResourceWithRawResponse(client.faxes)
2151
+ self.fqdn_connections = fqdn_connections.AsyncFqdnConnectionsResourceWithRawResponse(client.fqdn_connections)
2152
+ self.fqdns = fqdns.AsyncFqdnsResourceWithRawResponse(client.fqdns)
2153
+ self.global_ip_allowed_ports = global_ip_allowed_ports.AsyncGlobalIPAllowedPortsResourceWithRawResponse(
2154
+ client.global_ip_allowed_ports
2155
+ )
2156
+ self.global_ip_assignment_health = (
2157
+ global_ip_assignment_health.AsyncGlobalIPAssignmentHealthResourceWithRawResponse(
2158
+ client.global_ip_assignment_health
2159
+ )
2160
+ )
2161
+ self.global_ip_assignments = global_ip_assignments.AsyncGlobalIPAssignmentsResourceWithRawResponse(
2162
+ client.global_ip_assignments
2163
+ )
2164
+ self.global_ip_assignments_usage = (
2165
+ global_ip_assignments_usage.AsyncGlobalIPAssignmentsUsageResourceWithRawResponse(
2166
+ client.global_ip_assignments_usage
2167
+ )
2168
+ )
2169
+ self.global_ip_health_check_types = (
2170
+ global_ip_health_check_types.AsyncGlobalIPHealthCheckTypesResourceWithRawResponse(
2171
+ client.global_ip_health_check_types
2172
+ )
2173
+ )
2174
+ self.global_ip_health_checks = global_ip_health_checks.AsyncGlobalIPHealthChecksResourceWithRawResponse(
2175
+ client.global_ip_health_checks
2176
+ )
2177
+ self.global_ip_latency = global_ip_latency.AsyncGlobalIPLatencyResourceWithRawResponse(client.global_ip_latency)
2178
+ self.global_ip_protocols = global_ip_protocols.AsyncGlobalIPProtocolsResourceWithRawResponse(
2179
+ client.global_ip_protocols
2180
+ )
2181
+ self.global_ip_usage = global_ip_usage.AsyncGlobalIPUsageResourceWithRawResponse(client.global_ip_usage)
2182
+ self.global_ips = global_ips.AsyncGlobalIPsResourceWithRawResponse(client.global_ips)
2183
+ self.inbound_channels = inbound_channels.AsyncInboundChannelsResourceWithRawResponse(client.inbound_channels)
2184
+ self.integration_secrets = integration_secrets.AsyncIntegrationSecretsResourceWithRawResponse(
2185
+ client.integration_secrets
2186
+ )
2187
+ self.inventory_coverage = inventory_coverage.AsyncInventoryCoverageResourceWithRawResponse(
2188
+ client.inventory_coverage
2189
+ )
2190
+ self.invoices = invoices.AsyncInvoicesResourceWithRawResponse(client.invoices)
2191
+ self.ip_connections = ip_connections.AsyncIPConnectionsResourceWithRawResponse(client.ip_connections)
2192
+ self.ips = ips.AsyncIPsResourceWithRawResponse(client.ips)
2193
+ self.ledger_billing_group_reports = (
2194
+ ledger_billing_group_reports.AsyncLedgerBillingGroupReportsResourceWithRawResponse(
2195
+ client.ledger_billing_group_reports
2196
+ )
2197
+ )
2198
+ self.list = list.AsyncListResourceWithRawResponse(client.list)
2199
+ self.managed_accounts = managed_accounts.AsyncManagedAccountsResourceWithRawResponse(client.managed_accounts)
2200
+ self.media = media.AsyncMediaResourceWithRawResponse(client.media)
2201
+ self.messages = messages.AsyncMessagesResourceWithRawResponse(client.messages)
2202
+ self.messaging = messaging.AsyncMessagingResourceWithRawResponse(client.messaging)
2203
+ self.messaging_hosted_number_orders = (
2204
+ messaging_hosted_number_orders.AsyncMessagingHostedNumberOrdersResourceWithRawResponse(
2205
+ client.messaging_hosted_number_orders
2206
+ )
2207
+ )
2208
+ self.messaging_hosted_numbers = messaging_hosted_numbers.AsyncMessagingHostedNumbersResourceWithRawResponse(
2209
+ client.messaging_hosted_numbers
2210
+ )
2211
+ self.messaging_numbers_bulk_updates = (
2212
+ messaging_numbers_bulk_updates.AsyncMessagingNumbersBulkUpdatesResourceWithRawResponse(
2213
+ client.messaging_numbers_bulk_updates
2214
+ )
2215
+ )
2216
+ self.messaging_optouts = messaging_optouts.AsyncMessagingOptoutsResourceWithRawResponse(
2217
+ client.messaging_optouts
2218
+ )
2219
+ self.messaging_profiles = messaging_profiles.AsyncMessagingProfilesResourceWithRawResponse(
2220
+ client.messaging_profiles
2221
+ )
2222
+ self.messaging_tollfree = messaging_tollfree.AsyncMessagingTollfreeResourceWithRawResponse(
2223
+ client.messaging_tollfree
2224
+ )
2225
+ self.messaging_url_domains = messaging_url_domains.AsyncMessagingURLDomainsResourceWithRawResponse(
2226
+ client.messaging_url_domains
2227
+ )
2228
+ self.messsages = messsages.AsyncMesssagesResourceWithRawResponse(client.messsages)
2229
+ self.mobile_network_operators = mobile_network_operators.AsyncMobileNetworkOperatorsResourceWithRawResponse(
2230
+ client.mobile_network_operators
2231
+ )
2232
+ self.mobile_push_credentials = mobile_push_credentials.AsyncMobilePushCredentialsResourceWithRawResponse(
2233
+ client.mobile_push_credentials
2234
+ )
2235
+ self.network_coverage = network_coverage.AsyncNetworkCoverageResourceWithRawResponse(client.network_coverage)
2236
+ self.networks = networks.AsyncNetworksResourceWithRawResponse(client.networks)
2237
+ self.notification_channels = notification_channels.AsyncNotificationChannelsResourceWithRawResponse(
2238
+ client.notification_channels
2239
+ )
2240
+ self.notification_event_conditions = (
2241
+ notification_event_conditions.AsyncNotificationEventConditionsResourceWithRawResponse(
2242
+ client.notification_event_conditions
2243
+ )
2244
+ )
2245
+ self.notification_events = notification_events.AsyncNotificationEventsResourceWithRawResponse(
2246
+ client.notification_events
2247
+ )
2248
+ self.notification_profiles = notification_profiles.AsyncNotificationProfilesResourceWithRawResponse(
2249
+ client.notification_profiles
2250
+ )
2251
+ self.notification_settings = notification_settings.AsyncNotificationSettingsResourceWithRawResponse(
2252
+ client.notification_settings
2253
+ )
2254
+ self.number_block_orders = number_block_orders.AsyncNumberBlockOrdersResourceWithRawResponse(
2255
+ client.number_block_orders
2256
+ )
2257
+ self.number_lookup = number_lookup.AsyncNumberLookupResourceWithRawResponse(client.number_lookup)
2258
+ self.number_order_phone_numbers = (
2259
+ number_order_phone_numbers.AsyncNumberOrderPhoneNumbersResourceWithRawResponse(
2260
+ client.number_order_phone_numbers
2261
+ )
2262
+ )
2263
+ self.number_orders = number_orders.AsyncNumberOrdersResourceWithRawResponse(client.number_orders)
2264
+ self.number_reservations = number_reservations.AsyncNumberReservationsResourceWithRawResponse(
2265
+ client.number_reservations
2266
+ )
2267
+ self.numbers_features = numbers_features.AsyncNumbersFeaturesResourceWithRawResponse(client.numbers_features)
2268
+ self.operator_connect = operator_connect.AsyncOperatorConnectResourceWithRawResponse(client.operator_connect)
2269
+ self.ota_updates = ota_updates.AsyncOtaUpdatesResourceWithRawResponse(client.ota_updates)
2270
+ self.outbound_voice_profiles = outbound_voice_profiles.AsyncOutboundVoiceProfilesResourceWithRawResponse(
2271
+ client.outbound_voice_profiles
2272
+ )
2273
+ self.payment = payment.AsyncPaymentResourceWithRawResponse(client.payment)
2274
+ self.phone_number_assignment_by_profile = (
2275
+ phone_number_assignment_by_profile.AsyncPhoneNumberAssignmentByProfileResourceWithRawResponse(
2276
+ client.phone_number_assignment_by_profile
2277
+ )
2278
+ )
2279
+ self.phone_number_blocks = phone_number_blocks.AsyncPhoneNumberBlocksResourceWithRawResponse(
2280
+ client.phone_number_blocks
2281
+ )
2282
+ self.phone_number_campaigns = phone_number_campaigns.AsyncPhoneNumberCampaignsResourceWithRawResponse(
2283
+ client.phone_number_campaigns
2284
+ )
2285
+ self.phone_numbers = phone_numbers.AsyncPhoneNumbersResourceWithRawResponse(client.phone_numbers)
2286
+ self.phone_numbers_regulatory_requirements = (
2287
+ phone_numbers_regulatory_requirements.AsyncPhoneNumbersRegulatoryRequirementsResourceWithRawResponse(
2288
+ client.phone_numbers_regulatory_requirements
2289
+ )
2290
+ )
2291
+ self.portability_checks = portability_checks.AsyncPortabilityChecksResourceWithRawResponse(
2292
+ client.portability_checks
2293
+ )
2294
+ self.porting = porting.AsyncPortingResourceWithRawResponse(client.porting)
2295
+ self.porting_orders = porting_orders.AsyncPortingOrdersResourceWithRawResponse(client.porting_orders)
2296
+ self.porting_phone_numbers = porting_phone_numbers.AsyncPortingPhoneNumbersResourceWithRawResponse(
2297
+ client.porting_phone_numbers
2298
+ )
2299
+ self.portouts = portouts.AsyncPortoutsResourceWithRawResponse(client.portouts)
2300
+ self.private_wireless_gateways = private_wireless_gateways.AsyncPrivateWirelessGatewaysResourceWithRawResponse(
2301
+ client.private_wireless_gateways
2302
+ )
2303
+ self.public_internet_gateways = public_internet_gateways.AsyncPublicInternetGatewaysResourceWithRawResponse(
2304
+ client.public_internet_gateways
2305
+ )
2306
+ self.queues = queues.AsyncQueuesResourceWithRawResponse(client.queues)
2307
+ self.recording_transcriptions = recording_transcriptions.AsyncRecordingTranscriptionsResourceWithRawResponse(
2308
+ client.recording_transcriptions
2309
+ )
2310
+ self.recordings = recordings.AsyncRecordingsResourceWithRawResponse(client.recordings)
2311
+ self.regions = regions.AsyncRegionsResourceWithRawResponse(client.regions)
2312
+ self.regulatory_requirements = regulatory_requirements.AsyncRegulatoryRequirementsResourceWithRawResponse(
2313
+ client.regulatory_requirements
2314
+ )
2315
+ self.reports = reports.AsyncReportsResourceWithRawResponse(client.reports)
2316
+ self.requirement_groups = requirement_groups.AsyncRequirementGroupsResourceWithRawResponse(
2317
+ client.requirement_groups
2318
+ )
2319
+ self.requirement_types = requirement_types.AsyncRequirementTypesResourceWithRawResponse(
2320
+ client.requirement_types
2321
+ )
2322
+ self.requirements = requirements.AsyncRequirementsResourceWithRawResponse(client.requirements)
2323
+ self.room_compositions = room_compositions.AsyncRoomCompositionsResourceWithRawResponse(
2324
+ client.room_compositions
2325
+ )
2326
+ self.room_participants = room_participants.AsyncRoomParticipantsResourceWithRawResponse(
2327
+ client.room_participants
2328
+ )
2329
+ self.room_recordings = room_recordings.AsyncRoomRecordingsResourceWithRawResponse(client.room_recordings)
2330
+ self.rooms = rooms.AsyncRoomsResourceWithRawResponse(client.rooms)
2331
+ self.seti = seti.AsyncSetiResourceWithRawResponse(client.seti)
2332
+ self.short_codes = short_codes.AsyncShortCodesResourceWithRawResponse(client.short_codes)
2333
+ self.sim_card_data_usage_notifications = (
2334
+ sim_card_data_usage_notifications.AsyncSimCardDataUsageNotificationsResourceWithRawResponse(
2335
+ client.sim_card_data_usage_notifications
2336
+ )
2337
+ )
2338
+ self.sim_card_groups = sim_card_groups.AsyncSimCardGroupsResourceWithRawResponse(client.sim_card_groups)
2339
+ self.sim_card_order_preview = sim_card_order_preview.AsyncSimCardOrderPreviewResourceWithRawResponse(
2340
+ client.sim_card_order_preview
2341
+ )
2342
+ self.sim_card_orders = sim_card_orders.AsyncSimCardOrdersResourceWithRawResponse(client.sim_card_orders)
2343
+ self.sim_cards = sim_cards.AsyncSimCardsResourceWithRawResponse(client.sim_cards)
2344
+ self.siprec_connectors = siprec_connectors.AsyncSiprecConnectorsResourceWithRawResponse(
2345
+ client.siprec_connectors
2346
+ )
2347
+ self.storage = storage.AsyncStorageResourceWithRawResponse(client.storage)
2348
+ self.sub_number_orders = sub_number_orders.AsyncSubNumberOrdersResourceWithRawResponse(client.sub_number_orders)
2349
+ self.sub_number_orders_report = sub_number_orders_report.AsyncSubNumberOrdersReportResourceWithRawResponse(
2350
+ client.sub_number_orders_report
2351
+ )
2352
+ self.telephony_credentials = telephony_credentials.AsyncTelephonyCredentialsResourceWithRawResponse(
2353
+ client.telephony_credentials
2354
+ )
2355
+ self.texml = texml.AsyncTexmlResourceWithRawResponse(client.texml)
2356
+ self.texml_applications = texml_applications.AsyncTexmlApplicationsResourceWithRawResponse(
2357
+ client.texml_applications
2358
+ )
2359
+ self.text_to_speech = text_to_speech.AsyncTextToSpeechResourceWithRawResponse(client.text_to_speech)
2360
+ self.usage_reports = usage_reports.AsyncUsageReportsResourceWithRawResponse(client.usage_reports)
2361
+ self.user_addresses = user_addresses.AsyncUserAddressesResourceWithRawResponse(client.user_addresses)
2362
+ self.user_tags = user_tags.AsyncUserTagsResourceWithRawResponse(client.user_tags)
2363
+ self.verifications = verifications.AsyncVerificationsResourceWithRawResponse(client.verifications)
2364
+ self.verified_numbers = verified_numbers.AsyncVerifiedNumbersResourceWithRawResponse(client.verified_numbers)
2365
+ self.verify_profiles = verify_profiles.AsyncVerifyProfilesResourceWithRawResponse(client.verify_profiles)
2366
+ self.virtual_cross_connects = virtual_cross_connects.AsyncVirtualCrossConnectsResourceWithRawResponse(
2367
+ client.virtual_cross_connects
2368
+ )
2369
+ self.virtual_cross_connects_coverage = (
2370
+ virtual_cross_connects_coverage.AsyncVirtualCrossConnectsCoverageResourceWithRawResponse(
2371
+ client.virtual_cross_connects_coverage
2372
+ )
2373
+ )
2374
+ self.webhook_deliveries = webhook_deliveries.AsyncWebhookDeliveriesResourceWithRawResponse(
2375
+ client.webhook_deliveries
2376
+ )
2377
+ self.wireguard_interfaces = wireguard_interfaces.AsyncWireguardInterfacesResourceWithRawResponse(
2378
+ client.wireguard_interfaces
2379
+ )
2380
+ self.wireguard_peers = wireguard_peers.AsyncWireguardPeersResourceWithRawResponse(client.wireguard_peers)
2381
+ self.wireless = wireless.AsyncWirelessResourceWithRawResponse(client.wireless)
2382
+ self.wireless_blocklist_values = wireless_blocklist_values.AsyncWirelessBlocklistValuesResourceWithRawResponse(
2383
+ client.wireless_blocklist_values
2384
+ )
2385
+ self.wireless_blocklists = wireless_blocklists.AsyncWirelessBlocklistsResourceWithRawResponse(
2386
+ client.wireless_blocklists
2387
+ )
2388
+ self.partner_campaigns = partner_campaigns.AsyncPartnerCampaignsResourceWithRawResponse(
2389
+ client.partner_campaigns
2390
+ )
2391
+
2392
+ self.create_bucket = async_to_raw_response_wrapper(
2393
+ client.create_bucket,
2394
+ )
2395
+ self.delete_bucket = async_to_raw_response_wrapper(
2396
+ client.delete_bucket,
2397
+ )
2398
+ self.delete_object = async_to_raw_response_wrapper(
2399
+ client.delete_object,
2400
+ )
2401
+ self.delete_objects = async_to_raw_response_wrapper(
2402
+ client.delete_objects,
2403
+ )
2404
+ self.get_object = async_to_custom_raw_response_wrapper(
2405
+ client.get_object,
2406
+ AsyncBinaryAPIResponse,
2407
+ )
2408
+ self.list_buckets = async_to_raw_response_wrapper(
2409
+ client.list_buckets,
2410
+ )
2411
+ self.list_objects = async_to_raw_response_wrapper(
2412
+ client.list_objects,
2413
+ )
2414
+ self.put_object = async_to_raw_response_wrapper(
2415
+ client.put_object,
2416
+ )
2417
+
2418
+
2419
+ class TelnyxWithStreamedResponse:
2420
+ def __init__(self, client: Telnyx) -> None:
2421
+ self.access_ip_address = access_ip_address.AccessIPAddressResourceWithStreamingResponse(
2422
+ client.access_ip_address
2423
+ )
2424
+ self.access_ip_ranges = access_ip_ranges.AccessIPRangesResourceWithStreamingResponse(client.access_ip_ranges)
2425
+ self.actions = actions.ActionsResourceWithStreamingResponse(client.actions)
2426
+ self.addresses = addresses.AddressesResourceWithStreamingResponse(client.addresses)
2427
+ self.advanced_orders = advanced_orders.AdvancedOrdersResourceWithStreamingResponse(client.advanced_orders)
2428
+ self.ai = ai.AIResourceWithStreamingResponse(client.ai)
2429
+ self.audit_events = audit_events.AuditEventsResourceWithStreamingResponse(client.audit_events)
2430
+ self.authentication_providers = authentication_providers.AuthenticationProvidersResourceWithStreamingResponse(
2431
+ client.authentication_providers
2432
+ )
2433
+ self.available_phone_number_blocks = (
2434
+ available_phone_number_blocks.AvailablePhoneNumberBlocksResourceWithStreamingResponse(
2435
+ client.available_phone_number_blocks
2436
+ )
2437
+ )
2438
+ self.available_phone_numbers = available_phone_numbers.AvailablePhoneNumbersResourceWithStreamingResponse(
2439
+ client.available_phone_numbers
2440
+ )
2441
+ self.balance = balance.BalanceResourceWithStreamingResponse(client.balance)
2442
+ self.billing_groups = billing_groups.BillingGroupsResourceWithStreamingResponse(client.billing_groups)
2443
+ self.brand = brand.BrandResourceWithStreamingResponse(client.brand)
2444
+ self.bulk_sim_card_actions = bulk_sim_card_actions.BulkSimCardActionsResourceWithStreamingResponse(
2445
+ client.bulk_sim_card_actions
2446
+ )
2447
+ self.bundle_pricing = bundle_pricing.BundlePricingResourceWithStreamingResponse(client.bundle_pricing)
2448
+ self.call_control_applications = call_control_applications.CallControlApplicationsResourceWithStreamingResponse(
2449
+ client.call_control_applications
2450
+ )
2451
+ self.call_events = call_events.CallEventsResourceWithStreamingResponse(client.call_events)
2452
+ self.calls = calls.CallsResourceWithStreamingResponse(client.calls)
2453
+ self.campaign = campaign.CampaignResourceWithStreamingResponse(client.campaign)
2454
+ self.campaign_builder = campaign_builder.CampaignBuilderResourceWithStreamingResponse(client.campaign_builder)
2455
+ self.channel_zones = channel_zones.ChannelZonesResourceWithStreamingResponse(client.channel_zones)
2456
+ self.charges_breakdown = charges_breakdown.ChargesBreakdownResourceWithStreamingResponse(
2457
+ client.charges_breakdown
2458
+ )
2459
+ self.charges_summary = charges_summary.ChargesSummaryResourceWithStreamingResponse(client.charges_summary)
2460
+ self.comments = comments.CommentsResourceWithStreamingResponse(client.comments)
2461
+ self.conferences = conferences.ConferencesResourceWithStreamingResponse(client.conferences)
2462
+ self.connections = connections.ConnectionsResourceWithStreamingResponse(client.connections)
2463
+ self.country_coverage = country_coverage.CountryCoverageResourceWithStreamingResponse(client.country_coverage)
2464
+ self.credential_connections = credential_connections.CredentialConnectionsResourceWithStreamingResponse(
2465
+ client.credential_connections
2466
+ )
2467
+ self.custom_storage_credentials = (
2468
+ custom_storage_credentials.CustomStorageCredentialsResourceWithStreamingResponse(
2469
+ client.custom_storage_credentials
2470
+ )
2471
+ )
2472
+ self.customer_service_records = customer_service_records.CustomerServiceRecordsResourceWithStreamingResponse(
2473
+ client.customer_service_records
2474
+ )
2475
+ self.detail_records = detail_records.DetailRecordsResourceWithStreamingResponse(client.detail_records)
2476
+ self.dialogflow_connections = dialogflow_connections.DialogflowConnectionsResourceWithStreamingResponse(
2477
+ client.dialogflow_connections
2478
+ )
2479
+ self.document_links = document_links.DocumentLinksResourceWithStreamingResponse(client.document_links)
2480
+ self.documents = documents.DocumentsResourceWithStreamingResponse(client.documents)
2481
+ self.dynamic_emergency_addresses = (
2482
+ dynamic_emergency_addresses.DynamicEmergencyAddressesResourceWithStreamingResponse(
2483
+ client.dynamic_emergency_addresses
2484
+ )
2485
+ )
2486
+ self.dynamic_emergency_endpoints = (
2487
+ dynamic_emergency_endpoints.DynamicEmergencyEndpointsResourceWithStreamingResponse(
2488
+ client.dynamic_emergency_endpoints
2489
+ )
2490
+ )
2491
+ self.enum = enum.EnumResourceWithStreamingResponse(client.enum)
2492
+ self.external_connections = external_connections.ExternalConnectionsResourceWithStreamingResponse(
2493
+ client.external_connections
2494
+ )
2495
+ self.fax_applications = fax_applications.FaxApplicationsResourceWithStreamingResponse(client.fax_applications)
2496
+ self.faxes = faxes.FaxesResourceWithStreamingResponse(client.faxes)
2497
+ self.fqdn_connections = fqdn_connections.FqdnConnectionsResourceWithStreamingResponse(client.fqdn_connections)
2498
+ self.fqdns = fqdns.FqdnsResourceWithStreamingResponse(client.fqdns)
2499
+ self.global_ip_allowed_ports = global_ip_allowed_ports.GlobalIPAllowedPortsResourceWithStreamingResponse(
2500
+ client.global_ip_allowed_ports
2501
+ )
2502
+ self.global_ip_assignment_health = (
2503
+ global_ip_assignment_health.GlobalIPAssignmentHealthResourceWithStreamingResponse(
2504
+ client.global_ip_assignment_health
2505
+ )
2506
+ )
2507
+ self.global_ip_assignments = global_ip_assignments.GlobalIPAssignmentsResourceWithStreamingResponse(
2508
+ client.global_ip_assignments
2509
+ )
2510
+ self.global_ip_assignments_usage = (
2511
+ global_ip_assignments_usage.GlobalIPAssignmentsUsageResourceWithStreamingResponse(
2512
+ client.global_ip_assignments_usage
2513
+ )
2514
+ )
2515
+ self.global_ip_health_check_types = (
2516
+ global_ip_health_check_types.GlobalIPHealthCheckTypesResourceWithStreamingResponse(
2517
+ client.global_ip_health_check_types
2518
+ )
2519
+ )
2520
+ self.global_ip_health_checks = global_ip_health_checks.GlobalIPHealthChecksResourceWithStreamingResponse(
2521
+ client.global_ip_health_checks
2522
+ )
2523
+ self.global_ip_latency = global_ip_latency.GlobalIPLatencyResourceWithStreamingResponse(
2524
+ client.global_ip_latency
2525
+ )
2526
+ self.global_ip_protocols = global_ip_protocols.GlobalIPProtocolsResourceWithStreamingResponse(
2527
+ client.global_ip_protocols
2528
+ )
2529
+ self.global_ip_usage = global_ip_usage.GlobalIPUsageResourceWithStreamingResponse(client.global_ip_usage)
2530
+ self.global_ips = global_ips.GlobalIPsResourceWithStreamingResponse(client.global_ips)
2531
+ self.inbound_channels = inbound_channels.InboundChannelsResourceWithStreamingResponse(client.inbound_channels)
2532
+ self.integration_secrets = integration_secrets.IntegrationSecretsResourceWithStreamingResponse(
2533
+ client.integration_secrets
2534
+ )
2535
+ self.inventory_coverage = inventory_coverage.InventoryCoverageResourceWithStreamingResponse(
2536
+ client.inventory_coverage
2537
+ )
2538
+ self.invoices = invoices.InvoicesResourceWithStreamingResponse(client.invoices)
2539
+ self.ip_connections = ip_connections.IPConnectionsResourceWithStreamingResponse(client.ip_connections)
2540
+ self.ips = ips.IPsResourceWithStreamingResponse(client.ips)
2541
+ self.ledger_billing_group_reports = (
2542
+ ledger_billing_group_reports.LedgerBillingGroupReportsResourceWithStreamingResponse(
2543
+ client.ledger_billing_group_reports
2544
+ )
2545
+ )
2546
+ self.list = list.ListResourceWithStreamingResponse(client.list)
2547
+ self.managed_accounts = managed_accounts.ManagedAccountsResourceWithStreamingResponse(client.managed_accounts)
2548
+ self.media = media.MediaResourceWithStreamingResponse(client.media)
2549
+ self.messages = messages.MessagesResourceWithStreamingResponse(client.messages)
2550
+ self.messaging = messaging.MessagingResourceWithStreamingResponse(client.messaging)
2551
+ self.messaging_hosted_number_orders = (
2552
+ messaging_hosted_number_orders.MessagingHostedNumberOrdersResourceWithStreamingResponse(
2553
+ client.messaging_hosted_number_orders
2554
+ )
2555
+ )
2556
+ self.messaging_hosted_numbers = messaging_hosted_numbers.MessagingHostedNumbersResourceWithStreamingResponse(
2557
+ client.messaging_hosted_numbers
2558
+ )
2559
+ self.messaging_numbers_bulk_updates = (
2560
+ messaging_numbers_bulk_updates.MessagingNumbersBulkUpdatesResourceWithStreamingResponse(
2561
+ client.messaging_numbers_bulk_updates
2562
+ )
2563
+ )
2564
+ self.messaging_optouts = messaging_optouts.MessagingOptoutsResourceWithStreamingResponse(
2565
+ client.messaging_optouts
2566
+ )
2567
+ self.messaging_profiles = messaging_profiles.MessagingProfilesResourceWithStreamingResponse(
2568
+ client.messaging_profiles
2569
+ )
2570
+ self.messaging_tollfree = messaging_tollfree.MessagingTollfreeResourceWithStreamingResponse(
2571
+ client.messaging_tollfree
2572
+ )
2573
+ self.messaging_url_domains = messaging_url_domains.MessagingURLDomainsResourceWithStreamingResponse(
2574
+ client.messaging_url_domains
2575
+ )
2576
+ self.messsages = messsages.MesssagesResourceWithStreamingResponse(client.messsages)
2577
+ self.mobile_network_operators = mobile_network_operators.MobileNetworkOperatorsResourceWithStreamingResponse(
2578
+ client.mobile_network_operators
2579
+ )
2580
+ self.mobile_push_credentials = mobile_push_credentials.MobilePushCredentialsResourceWithStreamingResponse(
2581
+ client.mobile_push_credentials
2582
+ )
2583
+ self.network_coverage = network_coverage.NetworkCoverageResourceWithStreamingResponse(client.network_coverage)
2584
+ self.networks = networks.NetworksResourceWithStreamingResponse(client.networks)
2585
+ self.notification_channels = notification_channels.NotificationChannelsResourceWithStreamingResponse(
2586
+ client.notification_channels
2587
+ )
2588
+ self.notification_event_conditions = (
2589
+ notification_event_conditions.NotificationEventConditionsResourceWithStreamingResponse(
2590
+ client.notification_event_conditions
2591
+ )
2592
+ )
2593
+ self.notification_events = notification_events.NotificationEventsResourceWithStreamingResponse(
2594
+ client.notification_events
2595
+ )
2596
+ self.notification_profiles = notification_profiles.NotificationProfilesResourceWithStreamingResponse(
2597
+ client.notification_profiles
2598
+ )
2599
+ self.notification_settings = notification_settings.NotificationSettingsResourceWithStreamingResponse(
2600
+ client.notification_settings
2601
+ )
2602
+ self.number_block_orders = number_block_orders.NumberBlockOrdersResourceWithStreamingResponse(
2603
+ client.number_block_orders
2604
+ )
2605
+ self.number_lookup = number_lookup.NumberLookupResourceWithStreamingResponse(client.number_lookup)
2606
+ self.number_order_phone_numbers = (
2607
+ number_order_phone_numbers.NumberOrderPhoneNumbersResourceWithStreamingResponse(
2608
+ client.number_order_phone_numbers
2609
+ )
2610
+ )
2611
+ self.number_orders = number_orders.NumberOrdersResourceWithStreamingResponse(client.number_orders)
2612
+ self.number_reservations = number_reservations.NumberReservationsResourceWithStreamingResponse(
2613
+ client.number_reservations
2614
+ )
2615
+ self.numbers_features = numbers_features.NumbersFeaturesResourceWithStreamingResponse(client.numbers_features)
2616
+ self.operator_connect = operator_connect.OperatorConnectResourceWithStreamingResponse(client.operator_connect)
2617
+ self.ota_updates = ota_updates.OtaUpdatesResourceWithStreamingResponse(client.ota_updates)
2618
+ self.outbound_voice_profiles = outbound_voice_profiles.OutboundVoiceProfilesResourceWithStreamingResponse(
2619
+ client.outbound_voice_profiles
2620
+ )
2621
+ self.payment = payment.PaymentResourceWithStreamingResponse(client.payment)
2622
+ self.phone_number_assignment_by_profile = (
2623
+ phone_number_assignment_by_profile.PhoneNumberAssignmentByProfileResourceWithStreamingResponse(
2624
+ client.phone_number_assignment_by_profile
2625
+ )
2626
+ )
2627
+ self.phone_number_blocks = phone_number_blocks.PhoneNumberBlocksResourceWithStreamingResponse(
2628
+ client.phone_number_blocks
2629
+ )
2630
+ self.phone_number_campaigns = phone_number_campaigns.PhoneNumberCampaignsResourceWithStreamingResponse(
2631
+ client.phone_number_campaigns
2632
+ )
2633
+ self.phone_numbers = phone_numbers.PhoneNumbersResourceWithStreamingResponse(client.phone_numbers)
2634
+ self.phone_numbers_regulatory_requirements = (
2635
+ phone_numbers_regulatory_requirements.PhoneNumbersRegulatoryRequirementsResourceWithStreamingResponse(
2636
+ client.phone_numbers_regulatory_requirements
2637
+ )
2638
+ )
2639
+ self.portability_checks = portability_checks.PortabilityChecksResourceWithStreamingResponse(
2640
+ client.portability_checks
2641
+ )
2642
+ self.porting = porting.PortingResourceWithStreamingResponse(client.porting)
2643
+ self.porting_orders = porting_orders.PortingOrdersResourceWithStreamingResponse(client.porting_orders)
2644
+ self.porting_phone_numbers = porting_phone_numbers.PortingPhoneNumbersResourceWithStreamingResponse(
2645
+ client.porting_phone_numbers
2646
+ )
2647
+ self.portouts = portouts.PortoutsResourceWithStreamingResponse(client.portouts)
2648
+ self.private_wireless_gateways = private_wireless_gateways.PrivateWirelessGatewaysResourceWithStreamingResponse(
2649
+ client.private_wireless_gateways
2650
+ )
2651
+ self.public_internet_gateways = public_internet_gateways.PublicInternetGatewaysResourceWithStreamingResponse(
2652
+ client.public_internet_gateways
2653
+ )
2654
+ self.queues = queues.QueuesResourceWithStreamingResponse(client.queues)
2655
+ self.recording_transcriptions = recording_transcriptions.RecordingTranscriptionsResourceWithStreamingResponse(
2656
+ client.recording_transcriptions
2657
+ )
2658
+ self.recordings = recordings.RecordingsResourceWithStreamingResponse(client.recordings)
2659
+ self.regions = regions.RegionsResourceWithStreamingResponse(client.regions)
2660
+ self.regulatory_requirements = regulatory_requirements.RegulatoryRequirementsResourceWithStreamingResponse(
2661
+ client.regulatory_requirements
2662
+ )
2663
+ self.reports = reports.ReportsResourceWithStreamingResponse(client.reports)
2664
+ self.requirement_groups = requirement_groups.RequirementGroupsResourceWithStreamingResponse(
2665
+ client.requirement_groups
2666
+ )
2667
+ self.requirement_types = requirement_types.RequirementTypesResourceWithStreamingResponse(
2668
+ client.requirement_types
2669
+ )
2670
+ self.requirements = requirements.RequirementsResourceWithStreamingResponse(client.requirements)
2671
+ self.room_compositions = room_compositions.RoomCompositionsResourceWithStreamingResponse(
2672
+ client.room_compositions
2673
+ )
2674
+ self.room_participants = room_participants.RoomParticipantsResourceWithStreamingResponse(
2675
+ client.room_participants
2676
+ )
2677
+ self.room_recordings = room_recordings.RoomRecordingsResourceWithStreamingResponse(client.room_recordings)
2678
+ self.rooms = rooms.RoomsResourceWithStreamingResponse(client.rooms)
2679
+ self.seti = seti.SetiResourceWithStreamingResponse(client.seti)
2680
+ self.short_codes = short_codes.ShortCodesResourceWithStreamingResponse(client.short_codes)
2681
+ self.sim_card_data_usage_notifications = (
2682
+ sim_card_data_usage_notifications.SimCardDataUsageNotificationsResourceWithStreamingResponse(
2683
+ client.sim_card_data_usage_notifications
2684
+ )
2685
+ )
2686
+ self.sim_card_groups = sim_card_groups.SimCardGroupsResourceWithStreamingResponse(client.sim_card_groups)
2687
+ self.sim_card_order_preview = sim_card_order_preview.SimCardOrderPreviewResourceWithStreamingResponse(
2688
+ client.sim_card_order_preview
2689
+ )
2690
+ self.sim_card_orders = sim_card_orders.SimCardOrdersResourceWithStreamingResponse(client.sim_card_orders)
2691
+ self.sim_cards = sim_cards.SimCardsResourceWithStreamingResponse(client.sim_cards)
2692
+ self.siprec_connectors = siprec_connectors.SiprecConnectorsResourceWithStreamingResponse(
2693
+ client.siprec_connectors
2694
+ )
2695
+ self.storage = storage.StorageResourceWithStreamingResponse(client.storage)
2696
+ self.sub_number_orders = sub_number_orders.SubNumberOrdersResourceWithStreamingResponse(
2697
+ client.sub_number_orders
2698
+ )
2699
+ self.sub_number_orders_report = sub_number_orders_report.SubNumberOrdersReportResourceWithStreamingResponse(
2700
+ client.sub_number_orders_report
2701
+ )
2702
+ self.telephony_credentials = telephony_credentials.TelephonyCredentialsResourceWithStreamingResponse(
2703
+ client.telephony_credentials
2704
+ )
2705
+ self.texml = texml.TexmlResourceWithStreamingResponse(client.texml)
2706
+ self.texml_applications = texml_applications.TexmlApplicationsResourceWithStreamingResponse(
2707
+ client.texml_applications
2708
+ )
2709
+ self.text_to_speech = text_to_speech.TextToSpeechResourceWithStreamingResponse(client.text_to_speech)
2710
+ self.usage_reports = usage_reports.UsageReportsResourceWithStreamingResponse(client.usage_reports)
2711
+ self.user_addresses = user_addresses.UserAddressesResourceWithStreamingResponse(client.user_addresses)
2712
+ self.user_tags = user_tags.UserTagsResourceWithStreamingResponse(client.user_tags)
2713
+ self.verifications = verifications.VerificationsResourceWithStreamingResponse(client.verifications)
2714
+ self.verified_numbers = verified_numbers.VerifiedNumbersResourceWithStreamingResponse(client.verified_numbers)
2715
+ self.verify_profiles = verify_profiles.VerifyProfilesResourceWithStreamingResponse(client.verify_profiles)
2716
+ self.virtual_cross_connects = virtual_cross_connects.VirtualCrossConnectsResourceWithStreamingResponse(
2717
+ client.virtual_cross_connects
2718
+ )
2719
+ self.virtual_cross_connects_coverage = (
2720
+ virtual_cross_connects_coverage.VirtualCrossConnectsCoverageResourceWithStreamingResponse(
2721
+ client.virtual_cross_connects_coverage
2722
+ )
2723
+ )
2724
+ self.webhook_deliveries = webhook_deliveries.WebhookDeliveriesResourceWithStreamingResponse(
2725
+ client.webhook_deliveries
2726
+ )
2727
+ self.wireguard_interfaces = wireguard_interfaces.WireguardInterfacesResourceWithStreamingResponse(
2728
+ client.wireguard_interfaces
2729
+ )
2730
+ self.wireguard_peers = wireguard_peers.WireguardPeersResourceWithStreamingResponse(client.wireguard_peers)
2731
+ self.wireless = wireless.WirelessResourceWithStreamingResponse(client.wireless)
2732
+ self.wireless_blocklist_values = wireless_blocklist_values.WirelessBlocklistValuesResourceWithStreamingResponse(
2733
+ client.wireless_blocklist_values
2734
+ )
2735
+ self.wireless_blocklists = wireless_blocklists.WirelessBlocklistsResourceWithStreamingResponse(
2736
+ client.wireless_blocklists
2737
+ )
2738
+ self.partner_campaigns = partner_campaigns.PartnerCampaignsResourceWithStreamingResponse(
2739
+ client.partner_campaigns
2740
+ )
2741
+
2742
+ self.create_bucket = to_streamed_response_wrapper(
2743
+ client.create_bucket,
2744
+ )
2745
+ self.delete_bucket = to_streamed_response_wrapper(
2746
+ client.delete_bucket,
2747
+ )
2748
+ self.delete_object = to_streamed_response_wrapper(
2749
+ client.delete_object,
2750
+ )
2751
+ self.delete_objects = to_streamed_response_wrapper(
2752
+ client.delete_objects,
2753
+ )
2754
+ self.get_object = to_custom_streamed_response_wrapper(
2755
+ client.get_object,
2756
+ StreamedBinaryAPIResponse,
2757
+ )
2758
+ self.list_buckets = to_streamed_response_wrapper(
2759
+ client.list_buckets,
2760
+ )
2761
+ self.list_objects = to_streamed_response_wrapper(
2762
+ client.list_objects,
2763
+ )
2764
+ self.put_object = to_streamed_response_wrapper(
2765
+ client.put_object,
2766
+ )
2767
+
2768
+
2769
+ class AsyncTelnyxWithStreamedResponse:
2770
+ def __init__(self, client: AsyncTelnyx) -> None:
2771
+ self.access_ip_address = access_ip_address.AsyncAccessIPAddressResourceWithStreamingResponse(
2772
+ client.access_ip_address
2773
+ )
2774
+ self.access_ip_ranges = access_ip_ranges.AsyncAccessIPRangesResourceWithStreamingResponse(
2775
+ client.access_ip_ranges
2776
+ )
2777
+ self.actions = actions.AsyncActionsResourceWithStreamingResponse(client.actions)
2778
+ self.addresses = addresses.AsyncAddressesResourceWithStreamingResponse(client.addresses)
2779
+ self.advanced_orders = advanced_orders.AsyncAdvancedOrdersResourceWithStreamingResponse(client.advanced_orders)
2780
+ self.ai = ai.AsyncAIResourceWithStreamingResponse(client.ai)
2781
+ self.audit_events = audit_events.AsyncAuditEventsResourceWithStreamingResponse(client.audit_events)
2782
+ self.authentication_providers = (
2783
+ authentication_providers.AsyncAuthenticationProvidersResourceWithStreamingResponse(
2784
+ client.authentication_providers
2785
+ )
2786
+ )
2787
+ self.available_phone_number_blocks = (
2788
+ available_phone_number_blocks.AsyncAvailablePhoneNumberBlocksResourceWithStreamingResponse(
2789
+ client.available_phone_number_blocks
2790
+ )
2791
+ )
2792
+ self.available_phone_numbers = available_phone_numbers.AsyncAvailablePhoneNumbersResourceWithStreamingResponse(
2793
+ client.available_phone_numbers
2794
+ )
2795
+ self.balance = balance.AsyncBalanceResourceWithStreamingResponse(client.balance)
2796
+ self.billing_groups = billing_groups.AsyncBillingGroupsResourceWithStreamingResponse(client.billing_groups)
2797
+ self.brand = brand.AsyncBrandResourceWithStreamingResponse(client.brand)
2798
+ self.bulk_sim_card_actions = bulk_sim_card_actions.AsyncBulkSimCardActionsResourceWithStreamingResponse(
2799
+ client.bulk_sim_card_actions
2800
+ )
2801
+ self.bundle_pricing = bundle_pricing.AsyncBundlePricingResourceWithStreamingResponse(client.bundle_pricing)
2802
+ self.call_control_applications = (
2803
+ call_control_applications.AsyncCallControlApplicationsResourceWithStreamingResponse(
2804
+ client.call_control_applications
2805
+ )
2806
+ )
2807
+ self.call_events = call_events.AsyncCallEventsResourceWithStreamingResponse(client.call_events)
2808
+ self.calls = calls.AsyncCallsResourceWithStreamingResponse(client.calls)
2809
+ self.campaign = campaign.AsyncCampaignResourceWithStreamingResponse(client.campaign)
2810
+ self.campaign_builder = campaign_builder.AsyncCampaignBuilderResourceWithStreamingResponse(
2811
+ client.campaign_builder
2812
+ )
2813
+ self.channel_zones = channel_zones.AsyncChannelZonesResourceWithStreamingResponse(client.channel_zones)
2814
+ self.charges_breakdown = charges_breakdown.AsyncChargesBreakdownResourceWithStreamingResponse(
2815
+ client.charges_breakdown
2816
+ )
2817
+ self.charges_summary = charges_summary.AsyncChargesSummaryResourceWithStreamingResponse(client.charges_summary)
2818
+ self.comments = comments.AsyncCommentsResourceWithStreamingResponse(client.comments)
2819
+ self.conferences = conferences.AsyncConferencesResourceWithStreamingResponse(client.conferences)
2820
+ self.connections = connections.AsyncConnectionsResourceWithStreamingResponse(client.connections)
2821
+ self.country_coverage = country_coverage.AsyncCountryCoverageResourceWithStreamingResponse(
2822
+ client.country_coverage
2823
+ )
2824
+ self.credential_connections = credential_connections.AsyncCredentialConnectionsResourceWithStreamingResponse(
2825
+ client.credential_connections
2826
+ )
2827
+ self.custom_storage_credentials = (
2828
+ custom_storage_credentials.AsyncCustomStorageCredentialsResourceWithStreamingResponse(
2829
+ client.custom_storage_credentials
2830
+ )
2831
+ )
2832
+ self.customer_service_records = (
2833
+ customer_service_records.AsyncCustomerServiceRecordsResourceWithStreamingResponse(
2834
+ client.customer_service_records
2835
+ )
2836
+ )
2837
+ self.detail_records = detail_records.AsyncDetailRecordsResourceWithStreamingResponse(client.detail_records)
2838
+ self.dialogflow_connections = dialogflow_connections.AsyncDialogflowConnectionsResourceWithStreamingResponse(
2839
+ client.dialogflow_connections
2840
+ )
2841
+ self.document_links = document_links.AsyncDocumentLinksResourceWithStreamingResponse(client.document_links)
2842
+ self.documents = documents.AsyncDocumentsResourceWithStreamingResponse(client.documents)
2843
+ self.dynamic_emergency_addresses = (
2844
+ dynamic_emergency_addresses.AsyncDynamicEmergencyAddressesResourceWithStreamingResponse(
2845
+ client.dynamic_emergency_addresses
2846
+ )
2847
+ )
2848
+ self.dynamic_emergency_endpoints = (
2849
+ dynamic_emergency_endpoints.AsyncDynamicEmergencyEndpointsResourceWithStreamingResponse(
2850
+ client.dynamic_emergency_endpoints
2851
+ )
2852
+ )
2853
+ self.enum = enum.AsyncEnumResourceWithStreamingResponse(client.enum)
2854
+ self.external_connections = external_connections.AsyncExternalConnectionsResourceWithStreamingResponse(
2855
+ client.external_connections
2856
+ )
2857
+ self.fax_applications = fax_applications.AsyncFaxApplicationsResourceWithStreamingResponse(
2858
+ client.fax_applications
2859
+ )
2860
+ self.faxes = faxes.AsyncFaxesResourceWithStreamingResponse(client.faxes)
2861
+ self.fqdn_connections = fqdn_connections.AsyncFqdnConnectionsResourceWithStreamingResponse(
2862
+ client.fqdn_connections
2863
+ )
2864
+ self.fqdns = fqdns.AsyncFqdnsResourceWithStreamingResponse(client.fqdns)
2865
+ self.global_ip_allowed_ports = global_ip_allowed_ports.AsyncGlobalIPAllowedPortsResourceWithStreamingResponse(
2866
+ client.global_ip_allowed_ports
2867
+ )
2868
+ self.global_ip_assignment_health = (
2869
+ global_ip_assignment_health.AsyncGlobalIPAssignmentHealthResourceWithStreamingResponse(
2870
+ client.global_ip_assignment_health
2871
+ )
2872
+ )
2873
+ self.global_ip_assignments = global_ip_assignments.AsyncGlobalIPAssignmentsResourceWithStreamingResponse(
2874
+ client.global_ip_assignments
2875
+ )
2876
+ self.global_ip_assignments_usage = (
2877
+ global_ip_assignments_usage.AsyncGlobalIPAssignmentsUsageResourceWithStreamingResponse(
2878
+ client.global_ip_assignments_usage
2879
+ )
2880
+ )
2881
+ self.global_ip_health_check_types = (
2882
+ global_ip_health_check_types.AsyncGlobalIPHealthCheckTypesResourceWithStreamingResponse(
2883
+ client.global_ip_health_check_types
2884
+ )
2885
+ )
2886
+ self.global_ip_health_checks = global_ip_health_checks.AsyncGlobalIPHealthChecksResourceWithStreamingResponse(
2887
+ client.global_ip_health_checks
2888
+ )
2889
+ self.global_ip_latency = global_ip_latency.AsyncGlobalIPLatencyResourceWithStreamingResponse(
2890
+ client.global_ip_latency
2891
+ )
2892
+ self.global_ip_protocols = global_ip_protocols.AsyncGlobalIPProtocolsResourceWithStreamingResponse(
2893
+ client.global_ip_protocols
2894
+ )
2895
+ self.global_ip_usage = global_ip_usage.AsyncGlobalIPUsageResourceWithStreamingResponse(client.global_ip_usage)
2896
+ self.global_ips = global_ips.AsyncGlobalIPsResourceWithStreamingResponse(client.global_ips)
2897
+ self.inbound_channels = inbound_channels.AsyncInboundChannelsResourceWithStreamingResponse(
2898
+ client.inbound_channels
2899
+ )
2900
+ self.integration_secrets = integration_secrets.AsyncIntegrationSecretsResourceWithStreamingResponse(
2901
+ client.integration_secrets
2902
+ )
2903
+ self.inventory_coverage = inventory_coverage.AsyncInventoryCoverageResourceWithStreamingResponse(
2904
+ client.inventory_coverage
2905
+ )
2906
+ self.invoices = invoices.AsyncInvoicesResourceWithStreamingResponse(client.invoices)
2907
+ self.ip_connections = ip_connections.AsyncIPConnectionsResourceWithStreamingResponse(client.ip_connections)
2908
+ self.ips = ips.AsyncIPsResourceWithStreamingResponse(client.ips)
2909
+ self.ledger_billing_group_reports = (
2910
+ ledger_billing_group_reports.AsyncLedgerBillingGroupReportsResourceWithStreamingResponse(
2911
+ client.ledger_billing_group_reports
2912
+ )
2913
+ )
2914
+ self.list = list.AsyncListResourceWithStreamingResponse(client.list)
2915
+ self.managed_accounts = managed_accounts.AsyncManagedAccountsResourceWithStreamingResponse(
2916
+ client.managed_accounts
2917
+ )
2918
+ self.media = media.AsyncMediaResourceWithStreamingResponse(client.media)
2919
+ self.messages = messages.AsyncMessagesResourceWithStreamingResponse(client.messages)
2920
+ self.messaging = messaging.AsyncMessagingResourceWithStreamingResponse(client.messaging)
2921
+ self.messaging_hosted_number_orders = (
2922
+ messaging_hosted_number_orders.AsyncMessagingHostedNumberOrdersResourceWithStreamingResponse(
2923
+ client.messaging_hosted_number_orders
2924
+ )
2925
+ )
2926
+ self.messaging_hosted_numbers = (
2927
+ messaging_hosted_numbers.AsyncMessagingHostedNumbersResourceWithStreamingResponse(
2928
+ client.messaging_hosted_numbers
2929
+ )
2930
+ )
2931
+ self.messaging_numbers_bulk_updates = (
2932
+ messaging_numbers_bulk_updates.AsyncMessagingNumbersBulkUpdatesResourceWithStreamingResponse(
2933
+ client.messaging_numbers_bulk_updates
2934
+ )
2935
+ )
2936
+ self.messaging_optouts = messaging_optouts.AsyncMessagingOptoutsResourceWithStreamingResponse(
2937
+ client.messaging_optouts
2938
+ )
2939
+ self.messaging_profiles = messaging_profiles.AsyncMessagingProfilesResourceWithStreamingResponse(
2940
+ client.messaging_profiles
2941
+ )
2942
+ self.messaging_tollfree = messaging_tollfree.AsyncMessagingTollfreeResourceWithStreamingResponse(
2943
+ client.messaging_tollfree
2944
+ )
2945
+ self.messaging_url_domains = messaging_url_domains.AsyncMessagingURLDomainsResourceWithStreamingResponse(
2946
+ client.messaging_url_domains
2947
+ )
2948
+ self.messsages = messsages.AsyncMesssagesResourceWithStreamingResponse(client.messsages)
2949
+ self.mobile_network_operators = (
2950
+ mobile_network_operators.AsyncMobileNetworkOperatorsResourceWithStreamingResponse(
2951
+ client.mobile_network_operators
2952
+ )
2953
+ )
2954
+ self.mobile_push_credentials = mobile_push_credentials.AsyncMobilePushCredentialsResourceWithStreamingResponse(
2955
+ client.mobile_push_credentials
2956
+ )
2957
+ self.network_coverage = network_coverage.AsyncNetworkCoverageResourceWithStreamingResponse(
2958
+ client.network_coverage
2959
+ )
2960
+ self.networks = networks.AsyncNetworksResourceWithStreamingResponse(client.networks)
2961
+ self.notification_channels = notification_channels.AsyncNotificationChannelsResourceWithStreamingResponse(
2962
+ client.notification_channels
2963
+ )
2964
+ self.notification_event_conditions = (
2965
+ notification_event_conditions.AsyncNotificationEventConditionsResourceWithStreamingResponse(
2966
+ client.notification_event_conditions
2967
+ )
2968
+ )
2969
+ self.notification_events = notification_events.AsyncNotificationEventsResourceWithStreamingResponse(
2970
+ client.notification_events
2971
+ )
2972
+ self.notification_profiles = notification_profiles.AsyncNotificationProfilesResourceWithStreamingResponse(
2973
+ client.notification_profiles
2974
+ )
2975
+ self.notification_settings = notification_settings.AsyncNotificationSettingsResourceWithStreamingResponse(
2976
+ client.notification_settings
2977
+ )
2978
+ self.number_block_orders = number_block_orders.AsyncNumberBlockOrdersResourceWithStreamingResponse(
2979
+ client.number_block_orders
2980
+ )
2981
+ self.number_lookup = number_lookup.AsyncNumberLookupResourceWithStreamingResponse(client.number_lookup)
2982
+ self.number_order_phone_numbers = (
2983
+ number_order_phone_numbers.AsyncNumberOrderPhoneNumbersResourceWithStreamingResponse(
2984
+ client.number_order_phone_numbers
2985
+ )
2986
+ )
2987
+ self.number_orders = number_orders.AsyncNumberOrdersResourceWithStreamingResponse(client.number_orders)
2988
+ self.number_reservations = number_reservations.AsyncNumberReservationsResourceWithStreamingResponse(
2989
+ client.number_reservations
2990
+ )
2991
+ self.numbers_features = numbers_features.AsyncNumbersFeaturesResourceWithStreamingResponse(
2992
+ client.numbers_features
2993
+ )
2994
+ self.operator_connect = operator_connect.AsyncOperatorConnectResourceWithStreamingResponse(
2995
+ client.operator_connect
2996
+ )
2997
+ self.ota_updates = ota_updates.AsyncOtaUpdatesResourceWithStreamingResponse(client.ota_updates)
2998
+ self.outbound_voice_profiles = outbound_voice_profiles.AsyncOutboundVoiceProfilesResourceWithStreamingResponse(
2999
+ client.outbound_voice_profiles
3000
+ )
3001
+ self.payment = payment.AsyncPaymentResourceWithStreamingResponse(client.payment)
3002
+ self.phone_number_assignment_by_profile = (
3003
+ phone_number_assignment_by_profile.AsyncPhoneNumberAssignmentByProfileResourceWithStreamingResponse(
3004
+ client.phone_number_assignment_by_profile
3005
+ )
3006
+ )
3007
+ self.phone_number_blocks = phone_number_blocks.AsyncPhoneNumberBlocksResourceWithStreamingResponse(
3008
+ client.phone_number_blocks
3009
+ )
3010
+ self.phone_number_campaigns = phone_number_campaigns.AsyncPhoneNumberCampaignsResourceWithStreamingResponse(
3011
+ client.phone_number_campaigns
3012
+ )
3013
+ self.phone_numbers = phone_numbers.AsyncPhoneNumbersResourceWithStreamingResponse(client.phone_numbers)
3014
+ self.phone_numbers_regulatory_requirements = (
3015
+ phone_numbers_regulatory_requirements.AsyncPhoneNumbersRegulatoryRequirementsResourceWithStreamingResponse(
3016
+ client.phone_numbers_regulatory_requirements
3017
+ )
3018
+ )
3019
+ self.portability_checks = portability_checks.AsyncPortabilityChecksResourceWithStreamingResponse(
3020
+ client.portability_checks
3021
+ )
3022
+ self.porting = porting.AsyncPortingResourceWithStreamingResponse(client.porting)
3023
+ self.porting_orders = porting_orders.AsyncPortingOrdersResourceWithStreamingResponse(client.porting_orders)
3024
+ self.porting_phone_numbers = porting_phone_numbers.AsyncPortingPhoneNumbersResourceWithStreamingResponse(
3025
+ client.porting_phone_numbers
3026
+ )
3027
+ self.portouts = portouts.AsyncPortoutsResourceWithStreamingResponse(client.portouts)
3028
+ self.private_wireless_gateways = (
3029
+ private_wireless_gateways.AsyncPrivateWirelessGatewaysResourceWithStreamingResponse(
3030
+ client.private_wireless_gateways
3031
+ )
3032
+ )
3033
+ self.public_internet_gateways = (
3034
+ public_internet_gateways.AsyncPublicInternetGatewaysResourceWithStreamingResponse(
3035
+ client.public_internet_gateways
3036
+ )
3037
+ )
3038
+ self.queues = queues.AsyncQueuesResourceWithStreamingResponse(client.queues)
3039
+ self.recording_transcriptions = (
3040
+ recording_transcriptions.AsyncRecordingTranscriptionsResourceWithStreamingResponse(
3041
+ client.recording_transcriptions
3042
+ )
3043
+ )
3044
+ self.recordings = recordings.AsyncRecordingsResourceWithStreamingResponse(client.recordings)
3045
+ self.regions = regions.AsyncRegionsResourceWithStreamingResponse(client.regions)
3046
+ self.regulatory_requirements = regulatory_requirements.AsyncRegulatoryRequirementsResourceWithStreamingResponse(
3047
+ client.regulatory_requirements
3048
+ )
3049
+ self.reports = reports.AsyncReportsResourceWithStreamingResponse(client.reports)
3050
+ self.requirement_groups = requirement_groups.AsyncRequirementGroupsResourceWithStreamingResponse(
3051
+ client.requirement_groups
3052
+ )
3053
+ self.requirement_types = requirement_types.AsyncRequirementTypesResourceWithStreamingResponse(
3054
+ client.requirement_types
3055
+ )
3056
+ self.requirements = requirements.AsyncRequirementsResourceWithStreamingResponse(client.requirements)
3057
+ self.room_compositions = room_compositions.AsyncRoomCompositionsResourceWithStreamingResponse(
3058
+ client.room_compositions
3059
+ )
3060
+ self.room_participants = room_participants.AsyncRoomParticipantsResourceWithStreamingResponse(
3061
+ client.room_participants
3062
+ )
3063
+ self.room_recordings = room_recordings.AsyncRoomRecordingsResourceWithStreamingResponse(client.room_recordings)
3064
+ self.rooms = rooms.AsyncRoomsResourceWithStreamingResponse(client.rooms)
3065
+ self.seti = seti.AsyncSetiResourceWithStreamingResponse(client.seti)
3066
+ self.short_codes = short_codes.AsyncShortCodesResourceWithStreamingResponse(client.short_codes)
3067
+ self.sim_card_data_usage_notifications = (
3068
+ sim_card_data_usage_notifications.AsyncSimCardDataUsageNotificationsResourceWithStreamingResponse(
3069
+ client.sim_card_data_usage_notifications
3070
+ )
3071
+ )
3072
+ self.sim_card_groups = sim_card_groups.AsyncSimCardGroupsResourceWithStreamingResponse(client.sim_card_groups)
3073
+ self.sim_card_order_preview = sim_card_order_preview.AsyncSimCardOrderPreviewResourceWithStreamingResponse(
3074
+ client.sim_card_order_preview
3075
+ )
3076
+ self.sim_card_orders = sim_card_orders.AsyncSimCardOrdersResourceWithStreamingResponse(client.sim_card_orders)
3077
+ self.sim_cards = sim_cards.AsyncSimCardsResourceWithStreamingResponse(client.sim_cards)
3078
+ self.siprec_connectors = siprec_connectors.AsyncSiprecConnectorsResourceWithStreamingResponse(
3079
+ client.siprec_connectors
3080
+ )
3081
+ self.storage = storage.AsyncStorageResourceWithStreamingResponse(client.storage)
3082
+ self.sub_number_orders = sub_number_orders.AsyncSubNumberOrdersResourceWithStreamingResponse(
3083
+ client.sub_number_orders
3084
+ )
3085
+ self.sub_number_orders_report = (
3086
+ sub_number_orders_report.AsyncSubNumberOrdersReportResourceWithStreamingResponse(
3087
+ client.sub_number_orders_report
3088
+ )
3089
+ )
3090
+ self.telephony_credentials = telephony_credentials.AsyncTelephonyCredentialsResourceWithStreamingResponse(
3091
+ client.telephony_credentials
3092
+ )
3093
+ self.texml = texml.AsyncTexmlResourceWithStreamingResponse(client.texml)
3094
+ self.texml_applications = texml_applications.AsyncTexmlApplicationsResourceWithStreamingResponse(
3095
+ client.texml_applications
3096
+ )
3097
+ self.text_to_speech = text_to_speech.AsyncTextToSpeechResourceWithStreamingResponse(client.text_to_speech)
3098
+ self.usage_reports = usage_reports.AsyncUsageReportsResourceWithStreamingResponse(client.usage_reports)
3099
+ self.user_addresses = user_addresses.AsyncUserAddressesResourceWithStreamingResponse(client.user_addresses)
3100
+ self.user_tags = user_tags.AsyncUserTagsResourceWithStreamingResponse(client.user_tags)
3101
+ self.verifications = verifications.AsyncVerificationsResourceWithStreamingResponse(client.verifications)
3102
+ self.verified_numbers = verified_numbers.AsyncVerifiedNumbersResourceWithStreamingResponse(
3103
+ client.verified_numbers
3104
+ )
3105
+ self.verify_profiles = verify_profiles.AsyncVerifyProfilesResourceWithStreamingResponse(client.verify_profiles)
3106
+ self.virtual_cross_connects = virtual_cross_connects.AsyncVirtualCrossConnectsResourceWithStreamingResponse(
3107
+ client.virtual_cross_connects
3108
+ )
3109
+ self.virtual_cross_connects_coverage = (
3110
+ virtual_cross_connects_coverage.AsyncVirtualCrossConnectsCoverageResourceWithStreamingResponse(
3111
+ client.virtual_cross_connects_coverage
3112
+ )
3113
+ )
3114
+ self.webhook_deliveries = webhook_deliveries.AsyncWebhookDeliveriesResourceWithStreamingResponse(
3115
+ client.webhook_deliveries
3116
+ )
3117
+ self.wireguard_interfaces = wireguard_interfaces.AsyncWireguardInterfacesResourceWithStreamingResponse(
3118
+ client.wireguard_interfaces
3119
+ )
3120
+ self.wireguard_peers = wireguard_peers.AsyncWireguardPeersResourceWithStreamingResponse(client.wireguard_peers)
3121
+ self.wireless = wireless.AsyncWirelessResourceWithStreamingResponse(client.wireless)
3122
+ self.wireless_blocklist_values = (
3123
+ wireless_blocklist_values.AsyncWirelessBlocklistValuesResourceWithStreamingResponse(
3124
+ client.wireless_blocklist_values
3125
+ )
3126
+ )
3127
+ self.wireless_blocklists = wireless_blocklists.AsyncWirelessBlocklistsResourceWithStreamingResponse(
3128
+ client.wireless_blocklists
3129
+ )
3130
+ self.partner_campaigns = partner_campaigns.AsyncPartnerCampaignsResourceWithStreamingResponse(
3131
+ client.partner_campaigns
3132
+ )
3133
+
3134
+ self.create_bucket = async_to_streamed_response_wrapper(
3135
+ client.create_bucket,
3136
+ )
3137
+ self.delete_bucket = async_to_streamed_response_wrapper(
3138
+ client.delete_bucket,
3139
+ )
3140
+ self.delete_object = async_to_streamed_response_wrapper(
3141
+ client.delete_object,
3142
+ )
3143
+ self.delete_objects = async_to_streamed_response_wrapper(
3144
+ client.delete_objects,
3145
+ )
3146
+ self.get_object = async_to_custom_streamed_response_wrapper(
3147
+ client.get_object,
3148
+ AsyncStreamedBinaryAPIResponse,
3149
+ )
3150
+ self.list_buckets = async_to_streamed_response_wrapper(
3151
+ client.list_buckets,
3152
+ )
3153
+ self.list_objects = async_to_streamed_response_wrapper(
3154
+ client.list_objects,
3155
+ )
3156
+ self.put_object = async_to_streamed_response_wrapper(
3157
+ client.put_object,
3158
+ )
3159
+
3160
+
3161
+ Client = Telnyx
3162
+
3163
+ AsyncClient = AsyncTelnyx