telnyx 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/client.rb +4 -0
  5. data/lib/telnyx/internal/type/union.rb +1 -1
  6. data/lib/telnyx/models/ai/assistant.rb +39 -4
  7. data/lib/telnyx/models/ai/assistant_create_params.rb +187 -6
  8. data/lib/telnyx/models/ai/assistant_imports_params.rb +10 -1
  9. data/lib/telnyx/models/ai/assistant_tool.rb +400 -3
  10. data/lib/telnyx/models/ai/assistant_update_params.rb +187 -6
  11. data/lib/telnyx/models/ai/assistants/update_assistant.rb +189 -6
  12. data/lib/telnyx/models/ai/bucket_ids.rb +7 -1
  13. data/lib/telnyx/models/ai/chat_create_completion_params.rb +4 -4
  14. data/lib/telnyx/models/ai/inference_embedding.rb +187 -6
  15. data/lib/telnyx/models/ai/messaging_settings.rb +10 -1
  16. data/lib/telnyx/models/ai/retrieval_tool.rb +3 -3
  17. data/lib/telnyx/models/ai/telephony_settings.rb +142 -1
  18. data/lib/telnyx/models/ai/transfer_tool.rb +46 -3
  19. data/lib/telnyx/models/ai/voice_settings.rb +1 -1
  20. data/lib/telnyx/models/ai/webhook_tool.rb +256 -3
  21. data/lib/telnyx/models/call_control_application_list_params.rb +16 -18
  22. data/lib/telnyx/models/call_event_list_params.rb +16 -18
  23. data/lib/telnyx/models/calls/action_add_ai_assistant_messages_params.rb +289 -0
  24. data/lib/telnyx/models/calls/action_add_ai_assistant_messages_response.rb +18 -0
  25. data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +7 -4
  26. data/lib/telnyx/models/conference_list_params.rb +16 -18
  27. data/lib/telnyx/models/conference_list_participants_params.rb +16 -18
  28. data/lib/telnyx/models/connection_list_active_calls_params.rb +16 -18
  29. data/lib/telnyx/models/fax_create_params.rb +10 -1
  30. data/lib/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rb +1 -9
  31. data/lib/telnyx/models/messaging_profile.rb +11 -1
  32. data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
  33. data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
  34. data/lib/telnyx/models/messaging_tollfree/verification/tf_verification_request.rb +14 -1
  35. data/lib/telnyx/models/messaging_tollfree/verification/verification_request_egress.rb +17 -1
  36. data/lib/telnyx/models/messaging_tollfree/verification/verification_request_status.rb +17 -1
  37. data/lib/telnyx/models/organizations/user_get_groups_report_params.rb +32 -0
  38. data/lib/telnyx/models/organizations/user_get_groups_report_response.rb +132 -0
  39. data/lib/telnyx/models/organizations/user_list_params.rb +73 -0
  40. data/lib/telnyx/models/organizations/user_list_response.rb +118 -0
  41. data/lib/telnyx/models/organizations/user_retrieve_params.rb +29 -0
  42. data/lib/telnyx/models/organizations/user_retrieve_response.rb +129 -0
  43. data/lib/telnyx/models/organizations/users/action_remove_params.rb +18 -0
  44. data/lib/telnyx/models/organizations/users/action_remove_response.rb +133 -0
  45. data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
  46. data/lib/telnyx/models/queues/call_list_params.rb +16 -18
  47. data/lib/telnyx/models/sim_card_list_params.rb +11 -3
  48. data/lib/telnyx/models/texml/accounts/queue_list_params.rb +64 -0
  49. data/lib/telnyx/models/texml/accounts/queue_list_response.rb +155 -0
  50. data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +1 -7
  51. data/lib/telnyx/models/unwrap_webhook_event.rb +1 -7
  52. data/lib/telnyx/models.rb +2 -6
  53. data/lib/telnyx/resources/ai/assistants/tools.rb +2 -2
  54. data/lib/telnyx/resources/ai/assistants/versions.rb +18 -16
  55. data/lib/telnyx/resources/ai/assistants.rb +15 -9
  56. data/lib/telnyx/resources/ai/clusters.rb +1 -1
  57. data/lib/telnyx/resources/ai/embeddings.rb +1 -1
  58. data/lib/telnyx/resources/bundle_pricing/user_bundles.rb +1 -1
  59. data/lib/telnyx/resources/call_control_applications.rb +8 -4
  60. data/lib/telnyx/resources/call_events.rb +8 -4
  61. data/lib/telnyx/resources/calls/actions.rb +31 -0
  62. data/lib/telnyx/resources/conferences.rb +16 -8
  63. data/lib/telnyx/resources/connections.rb +8 -4
  64. data/lib/telnyx/resources/faxes.rb +3 -1
  65. data/lib/telnyx/resources/messages.rb +1 -1
  66. data/lib/telnyx/resources/messaging_10dlc/brand.rb +10 -14
  67. data/lib/telnyx/resources/messaging_profiles/autoresp_configs.rb +6 -6
  68. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  69. data/lib/telnyx/resources/messaging_tollfree/verification/requests.rb +6 -2
  70. data/lib/telnyx/resources/operator_connect/actions.rb +1 -1
  71. data/lib/telnyx/resources/organizations/users/actions.rb +38 -0
  72. data/lib/telnyx/resources/organizations/users.rb +114 -0
  73. data/lib/telnyx/resources/organizations.rb +18 -0
  74. data/lib/telnyx/resources/phone_numbers/jobs.rb +1 -1
  75. data/lib/telnyx/resources/queues/calls.rb +8 -4
  76. data/lib/telnyx/resources/sim_cards/actions.rb +6 -6
  77. data/lib/telnyx/resources/texml/accounts/calls/recordings.rb +1 -1
  78. data/lib/telnyx/resources/texml/accounts/queues.rb +41 -0
  79. data/lib/telnyx/resources/usage_reports.rb +2 -2
  80. data/lib/telnyx/resources/webhooks.rb +2 -2
  81. data/lib/telnyx/version.rb +1 -1
  82. data/lib/telnyx.rb +15 -69
  83. data/rbi/telnyx/client.rbi +3 -0
  84. data/rbi/telnyx/models/ai/assistant.rbi +91 -5
  85. data/rbi/telnyx/models/ai/assistant_create_params.rbi +449 -14
  86. data/rbi/telnyx/models/ai/assistant_imports_params.rbi +13 -0
  87. data/rbi/telnyx/models/ai/assistant_tool.rbi +910 -2
  88. data/rbi/telnyx/models/ai/assistant_update_params.rbi +449 -14
  89. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +454 -17
  90. data/rbi/telnyx/models/ai/bucket_ids.rbi +6 -0
  91. data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +6 -13
  92. data/rbi/telnyx/models/ai/inference_embedding.rbi +447 -13
  93. data/rbi/telnyx/models/ai/messaging_settings.rbi +13 -0
  94. data/rbi/telnyx/models/ai/retrieval_tool.rbi +4 -8
  95. data/rbi/telnyx/models/ai/telephony_settings.rbi +347 -3
  96. data/rbi/telnyx/models/ai/transfer_tool.rbi +87 -6
  97. data/rbi/telnyx/models/ai/voice_settings.rbi +2 -2
  98. data/rbi/telnyx/models/ai/webhook_tool.rbi +584 -8
  99. data/rbi/telnyx/models/call_control_application_list_params.rbi +23 -35
  100. data/rbi/telnyx/models/call_event_list_params.rbi +23 -35
  101. data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_params.rbi +583 -0
  102. data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_response.rbi +39 -0
  103. data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +14 -6
  104. data/rbi/telnyx/models/conference_list_params.rbi +23 -35
  105. data/rbi/telnyx/models/conference_list_participants_params.rbi +23 -35
  106. data/rbi/telnyx/models/connection_list_active_calls_params.rbi +23 -35
  107. data/rbi/telnyx/models/fax_create_params.rbi +13 -0
  108. data/rbi/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbi +5 -21
  109. data/rbi/telnyx/models/messaging_profile.rbi +15 -0
  110. data/rbi/telnyx/models/messaging_profile_create_params.rbi +15 -0
  111. data/rbi/telnyx/models/messaging_profile_update_params.rbi +15 -0
  112. data/rbi/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbi +12 -0
  113. data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbi +10 -0
  114. data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_status.rbi +10 -0
  115. data/rbi/telnyx/models/organizations/user_get_groups_report_params.rbi +93 -0
  116. data/rbi/telnyx/models/organizations/user_get_groups_report_response.rbi +253 -0
  117. data/rbi/telnyx/models/organizations/user_list_params.rbi +152 -0
  118. data/rbi/telnyx/models/organizations/user_list_response.rbi +231 -0
  119. data/rbi/telnyx/models/organizations/user_retrieve_params.rbi +55 -0
  120. data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +275 -0
  121. data/rbi/telnyx/models/organizations/users/action_remove_params.rbi +34 -0
  122. data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +282 -0
  123. data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
  124. data/rbi/telnyx/models/queues/call_list_params.rbi +23 -35
  125. data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
  126. data/rbi/telnyx/models/texml/accounts/queue_list_params.rbi +103 -0
  127. data/rbi/telnyx/models/texml/accounts/queue_list_response.rbi +269 -0
  128. data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +0 -3
  129. data/rbi/telnyx/models/unwrap_webhook_event.rbi +0 -3
  130. data/rbi/telnyx/models.rbi +2 -6
  131. data/rbi/telnyx/resources/ai/assistants/tools.rbi +2 -2
  132. data/rbi/telnyx/resources/ai/assistants/versions.rbi +26 -19
  133. data/rbi/telnyx/resources/ai/assistants.rbi +32 -14
  134. data/rbi/telnyx/resources/ai/chat.rbi +1 -1
  135. data/rbi/telnyx/resources/ai/clusters.rbi +1 -1
  136. data/rbi/telnyx/resources/ai/embeddings.rbi +1 -1
  137. data/rbi/telnyx/resources/bundle_pricing/user_bundles.rbi +1 -1
  138. data/rbi/telnyx/resources/call_control_applications.rbi +7 -1
  139. data/rbi/telnyx/resources/call_events.rbi +5 -1
  140. data/rbi/telnyx/resources/calls/actions.rbi +37 -2
  141. data/rbi/telnyx/resources/conferences.rbi +10 -2
  142. data/rbi/telnyx/resources/connections.rbi +5 -1
  143. data/rbi/telnyx/resources/faxes.rbi +4 -0
  144. data/rbi/telnyx/resources/messages.rbi +1 -1
  145. data/rbi/telnyx/resources/messaging_10dlc/brand.rbi +8 -11
  146. data/rbi/telnyx/resources/messaging_profiles/autoresp_configs.rbi +6 -6
  147. data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
  148. data/rbi/telnyx/resources/messaging_tollfree/verification/requests.rbi +10 -0
  149. data/rbi/telnyx/resources/operator_connect/actions.rbi +1 -1
  150. data/rbi/telnyx/resources/organizations/users/actions.rbi +32 -0
  151. data/rbi/telnyx/resources/organizations/users.rbi +88 -0
  152. data/rbi/telnyx/resources/organizations.rbi +15 -0
  153. data/rbi/telnyx/resources/phone_numbers/jobs.rbi +1 -1
  154. data/rbi/telnyx/resources/queues/calls.rbi +5 -1
  155. data/rbi/telnyx/resources/sim_cards/actions.rbi +6 -6
  156. data/rbi/telnyx/resources/sim_cards.rbi +1 -1
  157. data/rbi/telnyx/resources/texml/accounts/calls/recordings.rbi +1 -1
  158. data/rbi/telnyx/resources/texml/accounts/queues.rbi +32 -0
  159. data/rbi/telnyx/resources/usage_reports.rbi +2 -2
  160. data/rbi/telnyx/resources/webhooks.rbi +0 -6
  161. data/sig/telnyx/client.rbs +2 -0
  162. data/sig/telnyx/models/ai/assistant.rbs +44 -1
  163. data/sig/telnyx/models/ai/assistant_create_params.rbs +176 -1
  164. data/sig/telnyx/models/ai/assistant_imports_params.rbs +8 -1
  165. data/sig/telnyx/models/ai/assistant_tool.rbs +367 -2
  166. data/sig/telnyx/models/ai/assistant_update_params.rbs +176 -1
  167. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +178 -3
  168. data/sig/telnyx/models/ai/chat_create_completion_params.rbs +4 -7
  169. data/sig/telnyx/models/ai/inference_embedding.rbs +178 -3
  170. data/sig/telnyx/models/ai/messaging_settings.rbs +7 -0
  171. data/sig/telnyx/models/ai/retrieval_tool.rbs +4 -4
  172. data/sig/telnyx/models/ai/telephony_settings.rbs +133 -4
  173. data/sig/telnyx/models/ai/transfer_tool.rbs +42 -4
  174. data/sig/telnyx/models/ai/webhook_tool.rbs +241 -4
  175. data/sig/telnyx/models/call_control_application_list_params.rbs +17 -26
  176. data/sig/telnyx/models/call_event_list_params.rbs +18 -27
  177. data/sig/telnyx/models/calls/action_add_ai_assistant_messages_params.rbs +240 -0
  178. data/sig/telnyx/models/calls/action_add_ai_assistant_messages_response.rbs +20 -0
  179. data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +2 -1
  180. data/sig/telnyx/models/conference_list_params.rbs +17 -26
  181. data/sig/telnyx/models/conference_list_participants_params.rbs +17 -26
  182. data/sig/telnyx/models/connection_list_active_calls_params.rbs +20 -27
  183. data/sig/telnyx/models/fax_create_params.rbs +7 -0
  184. data/sig/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbs +3 -13
  185. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  186. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  187. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  188. data/sig/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbs +5 -0
  189. data/sig/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbs +5 -0
  190. data/sig/telnyx/models/messaging_tollfree/verification/verification_request_status.rbs +5 -0
  191. data/sig/telnyx/models/organizations/user_get_groups_report_params.rbs +43 -0
  192. data/sig/telnyx/models/organizations/user_get_groups_report_response.rbs +104 -0
  193. data/sig/telnyx/models/organizations/user_list_params.rbs +72 -0
  194. data/sig/telnyx/models/organizations/user_list_response.rbs +99 -0
  195. data/sig/telnyx/models/organizations/user_retrieve_params.rbs +27 -0
  196. data/sig/telnyx/models/organizations/user_retrieve_response.rbs +118 -0
  197. data/sig/telnyx/models/organizations/users/action_remove_params.rbs +19 -0
  198. data/sig/telnyx/models/organizations/users/action_remove_response.rbs +122 -0
  199. data/sig/telnyx/models/queues/call_list_params.rbs +20 -27
  200. data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
  201. data/sig/telnyx/models/texml/accounts/queue_list_params.rbs +60 -0
  202. data/sig/telnyx/models/texml/accounts/queue_list_response.rbs +152 -0
  203. data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +0 -3
  204. data/sig/telnyx/models/unwrap_webhook_event.rbs +0 -3
  205. data/sig/telnyx/models.rbs +2 -6
  206. data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
  207. data/sig/telnyx/resources/ai/assistants.rbs +3 -0
  208. data/sig/telnyx/resources/call_control_applications.rbs +3 -1
  209. data/sig/telnyx/resources/call_events.rbs +3 -1
  210. data/sig/telnyx/resources/calls/actions.rbs +8 -0
  211. data/sig/telnyx/resources/conferences.rbs +6 -2
  212. data/sig/telnyx/resources/connections.rbs +3 -1
  213. data/sig/telnyx/resources/faxes.rbs +1 -0
  214. data/sig/telnyx/resources/messaging_10dlc/brand.rbs +1 -2
  215. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  216. data/sig/telnyx/resources/messaging_tollfree/verification/requests.rbs +2 -0
  217. data/sig/telnyx/resources/organizations/users/actions.rbs +16 -0
  218. data/sig/telnyx/resources/organizations/users.rbs +31 -0
  219. data/sig/telnyx/resources/organizations.rbs +9 -0
  220. data/sig/telnyx/resources/queues/calls.rbs +3 -1
  221. data/sig/telnyx/resources/texml/accounts/queues.rbs +10 -0
  222. data/sig/telnyx/resources/webhooks.rbs +0 -6
  223. metadata +47 -20
  224. data/lib/telnyx/models/ai/inference_embedding_bucket_ids.rb +0 -31
  225. data/lib/telnyx/models/ai/inference_embedding_transfer_tool_params.rb +0 -93
  226. data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +0 -265
  227. data/lib/telnyx/models/streaming_failed_webhook_event.rb +0 -15
  228. data/lib/telnyx/models/streaming_started_webhook_event.rb +0 -15
  229. data/lib/telnyx/models/streaming_stopped_webhook_event.rb +0 -15
  230. data/rbi/telnyx/models/ai/inference_embedding_bucket_ids.rbi +0 -54
  231. data/rbi/telnyx/models/ai/inference_embedding_transfer_tool_params.rbi +0 -185
  232. data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +0 -621
  233. data/rbi/telnyx/models/streaming_failed_webhook_event.rbi +0 -30
  234. data/rbi/telnyx/models/streaming_started_webhook_event.rbi +0 -30
  235. data/rbi/telnyx/models/streaming_stopped_webhook_event.rbi +0 -30
  236. data/sig/telnyx/models/ai/inference_embedding_bucket_ids.rbs +0 -26
  237. data/sig/telnyx/models/ai/inference_embedding_transfer_tool_params.rbs +0 -75
  238. data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +0 -242
  239. data/sig/telnyx/models/streaming_failed_webhook_event.rbs +0 -15
  240. data/sig/telnyx/models/streaming_started_webhook_event.rbs +0 -16
  241. data/sig/telnyx/models/streaming_stopped_webhook_event.rbs +0 -16
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Organizations
6
+ module Users
7
+ # @see Telnyx::Resources::Organizations::Users::Actions#remove
8
+ class ActionRemoveParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ # @!method initialize(request_options: {})
13
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,133 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Organizations
6
+ module Users
7
+ # @see Telnyx::Resources::Organizations::Users::Actions#remove
8
+ class ActionRemoveResponse < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute data
10
+ #
11
+ # @return [Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data, nil]
12
+ optional :data, -> { Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data }
13
+
14
+ # @!method initialize(data: nil)
15
+ # @param data [Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data]
16
+
17
+ # @see Telnyx::Models::Organizations::Users::ActionRemoveResponse#data
18
+ class Data < Telnyx::Internal::Type::BaseModel
19
+ # @!attribute id
20
+ # Identifies the specific resource.
21
+ #
22
+ # @return [String, nil]
23
+ optional :id, String
24
+
25
+ # @!attribute created_at
26
+ # ISO 8601 formatted date indicating when the resource was created.
27
+ #
28
+ # @return [String, nil]
29
+ optional :created_at, String
30
+
31
+ # @!attribute email
32
+ # The email address of the user.
33
+ #
34
+ # @return [String, nil]
35
+ optional :email, String
36
+
37
+ # @!attribute groups
38
+ # The groups the user belongs to. Only included when include_groups parameter is
39
+ # true.
40
+ #
41
+ # @return [Array<Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::Group>, nil]
42
+ optional :groups,
43
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::Group] }
44
+
45
+ # @!attribute last_sign_in_at
46
+ # ISO 8601 formatted date indicating when the resource last signed into the
47
+ # portal. Null if the user has never signed in.
48
+ #
49
+ # @return [String, nil]
50
+ optional :last_sign_in_at, String, nil?: true
51
+
52
+ # @!attribute organization_user_bypasses_sso
53
+ # Indicates whether this user is allowed to bypass SSO and use password
54
+ # authentication.
55
+ #
56
+ # @return [Boolean, nil]
57
+ optional :organization_user_bypasses_sso, Telnyx::Internal::Type::Boolean
58
+
59
+ # @!attribute record_type
60
+ # Identifies the type of the resource. Can be 'organization_owner' or
61
+ # 'organization_sub_user'.
62
+ #
63
+ # @return [String, nil]
64
+ optional :record_type, String
65
+
66
+ # @!attribute user_status
67
+ # The status of the account.
68
+ #
69
+ # @return [Symbol, Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::UserStatus, nil]
70
+ optional :user_status,
71
+ enum: -> { Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::UserStatus }
72
+
73
+ # @!method initialize(id: nil, created_at: nil, email: nil, groups: nil, last_sign_in_at: nil, organization_user_bypasses_sso: nil, record_type: nil, user_status: nil)
74
+ # Some parameter documentations has been truncated, see
75
+ # {Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data} for more
76
+ # details.
77
+ #
78
+ # @param id [String] Identifies the specific resource.
79
+ #
80
+ # @param created_at [String] ISO 8601 formatted date indicating when the resource was created.
81
+ #
82
+ # @param email [String] The email address of the user.
83
+ #
84
+ # @param groups [Array<Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::Group>] The groups the user belongs to. Only included when include_groups parameter is t
85
+ #
86
+ # @param last_sign_in_at [String, nil] ISO 8601 formatted date indicating when the resource last signed into the portal
87
+ #
88
+ # @param organization_user_bypasses_sso [Boolean] Indicates whether this user is allowed to bypass SSO and use password authentica
89
+ #
90
+ # @param record_type [String] Identifies the type of the resource. Can be 'organization_owner' or 'organizatio
91
+ #
92
+ # @param user_status [Symbol, Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::UserStatus] The status of the account.
93
+
94
+ class Group < Telnyx::Internal::Type::BaseModel
95
+ # @!attribute id
96
+ # The unique identifier of the group.
97
+ #
98
+ # @return [String]
99
+ required :id, String
100
+
101
+ # @!attribute name
102
+ # The name of the group.
103
+ #
104
+ # @return [String]
105
+ required :name, String
106
+
107
+ # @!method initialize(id:, name:)
108
+ # A reference to a group that a user belongs to.
109
+ #
110
+ # @param id [String] The unique identifier of the group.
111
+ #
112
+ # @param name [String] The name of the group.
113
+ end
114
+
115
+ # The status of the account.
116
+ #
117
+ # @see Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data#user_status
118
+ module UserStatus
119
+ extend Telnyx::Internal::Type::Enum
120
+
121
+ ENABLED = :enabled
122
+ DISABLED = :disabled
123
+ BLOCKED = :blocked
124
+
125
+ # @!method self.values
126
+ # @return [Array<Symbol>]
127
+ end
128
+ end
129
+ end
130
+ end
131
+ end
132
+ end
133
+ end
@@ -5,7 +5,8 @@ module Telnyx
5
5
  class PrivateWirelessGatewayStatus < Telnyx::Internal::Type::BaseModel
6
6
  response_only do
7
7
  # @!attribute error_code
8
- # This attribute is an [error code](https://developers.telnyx.com/api/errors)
8
+ # This attribute is an
9
+ # [error code](https://developers.telnyx.com/development/api-fundamentals/api-errors)
9
10
  # related to the failure reason.
10
11
  #
11
12
  # @return [String, nil]
@@ -37,7 +38,7 @@ module Telnyx
37
38
  #
38
39
  # The current status or failure details of the Private Wireless Gateway.
39
40
  #
40
- # @param error_code [String, nil] This attribute is an [error code](https://developers.telnyx.com/api/errors) rela
41
+ # @param error_code [String, nil] This attribute is an [error code](https://developers.telnyx.com/development/api-
41
42
  #
42
43
  # @param error_description [String, nil] This attribute provides a human-readable explanation of why a failure happened.
43
44
  #
@@ -15,12 +15,26 @@ module Telnyx
15
15
  # @return [Telnyx::Models::Queues::CallListParams::Page, nil]
16
16
  optional :page, -> { Telnyx::Queues::CallListParams::Page }
17
17
 
18
- # @!method initialize(page: nil, request_options: {})
18
+ # @!attribute page_number
19
+ #
20
+ # @return [Integer, nil]
21
+ optional :page_number, Integer
22
+
23
+ # @!attribute page_size
24
+ #
25
+ # @return [Integer, nil]
26
+ optional :page_size, Integer
27
+
28
+ # @!method initialize(page: nil, page_number: nil, page_size: nil, request_options: {})
19
29
  # Some parameter documentations has been truncated, see
20
30
  # {Telnyx::Models::Queues::CallListParams} for more details.
21
31
  #
22
32
  # @param page [Telnyx::Models::Queues::CallListParams::Page] Consolidated page parameter (deepObject style). Originally: page[after], page[be
23
33
  #
34
+ # @param page_number [Integer]
35
+ #
36
+ # @param page_size [Integer]
37
+ #
24
38
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
25
39
 
26
40
  class Page < Telnyx::Internal::Type::BaseModel
@@ -42,19 +56,7 @@ module Telnyx
42
56
  # @return [Integer, nil]
43
57
  optional :limit, Integer
44
58
 
45
- # @!attribute number
46
- # The page number to load
47
- #
48
- # @return [Integer, nil]
49
- optional :number, Integer
50
-
51
- # @!attribute size
52
- # The size of the page
53
- #
54
- # @return [Integer, nil]
55
- optional :size, Integer
56
-
57
- # @!method initialize(after: nil, before: nil, limit: nil, number: nil, size: nil)
59
+ # @!method initialize(after: nil, before: nil, limit: nil)
58
60
  # Consolidated page parameter (deepObject style). Originally: page[after],
59
61
  # page[before], page[limit], page[size], page[number]
60
62
  #
@@ -63,10 +65,6 @@ module Telnyx
63
65
  # @param before [String] Opaque identifier of previous page
64
66
  #
65
67
  # @param limit [Integer] Limit of records per single page
66
- #
67
- # @param number [Integer] The page number to load
68
- #
69
- # @param size [Integer] The size of the page
70
68
  end
71
69
  end
72
70
  end
@@ -9,7 +9,7 @@ module Telnyx
9
9
 
10
10
  # @!attribute filter
11
11
  # Consolidated filter parameter for SIM cards (deepObject style). Originally:
12
- # filter[tags], filter[iccid], filter[status]
12
+ # filter[iccid], filter[msisdn], filter[status], filter[tags]
13
13
  #
14
14
  # @return [Telnyx::Models::SimCardListParams::Filter, nil]
15
15
  optional :filter, -> { Telnyx::SimCardListParams::Filter }
@@ -63,6 +63,12 @@ module Telnyx
63
63
  # @return [String, nil]
64
64
  optional :iccid, String
65
65
 
66
+ # @!attribute msisdn
67
+ # A search string to match for the SIM card's MSISDN.
68
+ #
69
+ # @return [String, nil]
70
+ optional :msisdn, String
71
+
66
72
  # @!attribute status
67
73
  # Filter by a SIM card's status.
68
74
  #
@@ -83,15 +89,17 @@ module Telnyx
83
89
  # @return [Array<String>, nil]
84
90
  optional :tags, Telnyx::Internal::Type::ArrayOf[String]
85
91
 
86
- # @!method initialize(iccid: nil, status: nil, tags: nil)
92
+ # @!method initialize(iccid: nil, msisdn: nil, status: nil, tags: nil)
87
93
  # Some parameter documentations has been truncated, see
88
94
  # {Telnyx::Models::SimCardListParams::Filter} for more details.
89
95
  #
90
96
  # Consolidated filter parameter for SIM cards (deepObject style). Originally:
91
- # filter[tags], filter[iccid], filter[status]
97
+ # filter[iccid], filter[msisdn], filter[status], filter[tags]
92
98
  #
93
99
  # @param iccid [String] A search string to partially match for the SIM card's ICCID.
94
100
  #
101
+ # @param msisdn [String] A search string to match for the SIM card's MSISDN.
102
+ #
95
103
  # @param status [Array<Symbol, Telnyx::Models::SimCardListParams::Filter::Status>] Filter by a SIM card's status.
96
104
  #
97
105
  # @param tags [Array<String>] A list of SIM card tags to filter on.<br/><br/>
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Texml
6
+ module Accounts
7
+ # @see Telnyx::Resources::Texml::Accounts::Queues#list
8
+ class QueueListParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ # @!attribute date_created
13
+ # Filters conferences by the creation date. Expected format is YYYY-MM-DD. Also
14
+ # accepts inequality operators, e.g. DateCreated>=2023-05-22.
15
+ #
16
+ # @return [String, nil]
17
+ optional :date_created, String
18
+
19
+ # @!attribute date_updated
20
+ # Filters conferences by the time they were last updated. Expected format is
21
+ # YYYY-MM-DD. Also accepts inequality operators, e.g. DateUpdated>=2023-05-22.
22
+ #
23
+ # @return [String, nil]
24
+ optional :date_updated, String
25
+
26
+ # @!attribute page
27
+ # The number of the page to be displayed, zero-indexed, should be used in
28
+ # conjuction with PageToken.
29
+ #
30
+ # @return [Integer, nil]
31
+ optional :page, Integer
32
+
33
+ # @!attribute page_size
34
+ # The number of records to be displayed on a page
35
+ #
36
+ # @return [Integer, nil]
37
+ optional :page_size, Integer
38
+
39
+ # @!attribute page_token
40
+ # Used to request the next page of results.
41
+ #
42
+ # @return [String, nil]
43
+ optional :page_token, String
44
+
45
+ # @!method initialize(date_created: nil, date_updated: nil, page: nil, page_size: nil, page_token: nil, request_options: {})
46
+ # Some parameter documentations has been truncated, see
47
+ # {Telnyx::Models::Texml::Accounts::QueueListParams} for more details.
48
+ #
49
+ # @param date_created [String] Filters conferences by the creation date. Expected format is YYYY-MM-DD. Also ac
50
+ #
51
+ # @param date_updated [String] Filters conferences by the time they were last updated. Expected format is YYYY-
52
+ #
53
+ # @param page [Integer] The number of the page to be displayed, zero-indexed, should be used in conjucti
54
+ #
55
+ # @param page_size [Integer] The number of records to be displayed on a page
56
+ #
57
+ # @param page_token [String] Used to request the next page of results.
58
+ #
59
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,155 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Texml
6
+ module Accounts
7
+ # @see Telnyx::Resources::Texml::Accounts::Queues#list
8
+ class QueueListResponse < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute end_
10
+ # The number of the last element on the page, zero-indexed.
11
+ #
12
+ # @return [Integer, nil]
13
+ optional :end_, Integer, api_name: :end
14
+
15
+ # @!attribute first_page_uri
16
+ # /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=0&PageSize=1
17
+ #
18
+ # @return [String, nil]
19
+ optional :first_page_uri, String
20
+
21
+ # @!attribute next_page_uri
22
+ # /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=1&PageSize=1&PageToken=MTY4AjgyNDkwNzIxMQ
23
+ #
24
+ # @return [String, nil]
25
+ optional :next_page_uri, String
26
+
27
+ # @!attribute page
28
+ # Current page number, zero-indexed.
29
+ #
30
+ # @return [Integer, nil]
31
+ optional :page, Integer
32
+
33
+ # @!attribute page_size
34
+ # The number of items on the page
35
+ #
36
+ # @return [Integer, nil]
37
+ optional :page_size, Integer
38
+
39
+ # @!attribute queues
40
+ #
41
+ # @return [Array<Telnyx::Models::Texml::Accounts::QueueListResponse::Queue>, nil]
42
+ optional :queues,
43
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Texml::Accounts::QueueListResponse::Queue] }
44
+
45
+ # @!attribute start
46
+ # The number of the first element on the page, zero-indexed.
47
+ #
48
+ # @return [Integer, nil]
49
+ optional :start, Integer
50
+
51
+ # @!attribute uri
52
+ # The URI of the current page.
53
+ #
54
+ # @return [String, nil]
55
+ optional :uri, String
56
+
57
+ # @!method initialize(end_: nil, first_page_uri: nil, next_page_uri: nil, page: nil, page_size: nil, queues: nil, start: nil, uri: nil)
58
+ # Some parameter documentations has been truncated, see
59
+ # {Telnyx::Models::Texml::Accounts::QueueListResponse} for more details.
60
+ #
61
+ # @param end_ [Integer] The number of the last element on the page, zero-indexed.
62
+ #
63
+ # @param first_page_uri [String] /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=0&PageS
64
+ #
65
+ # @param next_page_uri [String] /v2/texml/Accounts/61bf923e-5e4d-4595-a110-56190ea18a1b/Queues.json?Page=1&PageS
66
+ #
67
+ # @param page [Integer] Current page number, zero-indexed.
68
+ #
69
+ # @param page_size [Integer] The number of items on the page
70
+ #
71
+ # @param queues [Array<Telnyx::Models::Texml::Accounts::QueueListResponse::Queue>]
72
+ #
73
+ # @param start [Integer] The number of the first element on the page, zero-indexed.
74
+ #
75
+ # @param uri [String] The URI of the current page.
76
+
77
+ class Queue < Telnyx::Internal::Type::BaseModel
78
+ # @!attribute account_sid
79
+ # The id of the account the resource belongs to.
80
+ #
81
+ # @return [String, nil]
82
+ optional :account_sid, String
83
+
84
+ # @!attribute average_wait_time
85
+ # The average wait time in seconds for members in the queue.
86
+ #
87
+ # @return [Integer, nil]
88
+ optional :average_wait_time, Integer
89
+
90
+ # @!attribute current_size
91
+ # The current number of members in the queue.
92
+ #
93
+ # @return [Integer, nil]
94
+ optional :current_size, Integer
95
+
96
+ # @!attribute date_created
97
+ # The timestamp of when the resource was created.
98
+ #
99
+ # @return [String, nil]
100
+ optional :date_created, String
101
+
102
+ # @!attribute date_updated
103
+ # The timestamp of when the resource was last updated.
104
+ #
105
+ # @return [String, nil]
106
+ optional :date_updated, String
107
+
108
+ # @!attribute max_size
109
+ # The maximum size of the queue.
110
+ #
111
+ # @return [Integer, nil]
112
+ optional :max_size, Integer
113
+
114
+ # @!attribute sid
115
+ # The unique identifier of the queue.
116
+ #
117
+ # @return [String, nil]
118
+ optional :sid, String
119
+
120
+ # @!attribute subresource_uris
121
+ # A list of related resources identified by their relative URIs.
122
+ #
123
+ # @return [Hash{Symbol=>Object}, nil]
124
+ optional :subresource_uris, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
125
+
126
+ # @!attribute uri
127
+ # The relative URI for this queue.
128
+ #
129
+ # @return [String, nil]
130
+ optional :uri, String
131
+
132
+ # @!method initialize(account_sid: nil, average_wait_time: nil, current_size: nil, date_created: nil, date_updated: nil, max_size: nil, sid: nil, subresource_uris: nil, uri: nil)
133
+ # @param account_sid [String] The id of the account the resource belongs to.
134
+ #
135
+ # @param average_wait_time [Integer] The average wait time in seconds for members in the queue.
136
+ #
137
+ # @param current_size [Integer] The current number of members in the queue.
138
+ #
139
+ # @param date_created [String] The timestamp of when the resource was created.
140
+ #
141
+ # @param date_updated [String] The timestamp of when the resource was last updated.
142
+ #
143
+ # @param max_size [Integer] The maximum size of the queue.
144
+ #
145
+ # @param sid [String] The unique identifier of the queue.
146
+ #
147
+ # @param subresource_uris [Hash{Symbol=>Object}] A list of related resources identified by their relative URIs.
148
+ #
149
+ # @param uri [String] The relative URI for this queue.
150
+ end
151
+ end
152
+ end
153
+ end
154
+ end
155
+ end
@@ -123,16 +123,10 @@ module Telnyx
123
123
 
124
124
  variant -> { Telnyx::ReplacedLinkClickWebhookEvent }
125
125
 
126
- variant -> { Telnyx::StreamingFailedWebhookEvent }
127
-
128
- variant -> { Telnyx::StreamingStartedWebhookEvent }
129
-
130
- variant -> { Telnyx::StreamingStoppedWebhookEvent }
131
-
132
126
  variant -> { Telnyx::TranscriptionWebhookEvent }
133
127
 
134
128
  # @!method self.variants
135
- # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdateWebhookEvent, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChangedWebhookEvent, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDeliveredWebhookEvent, Telnyx::Models::FaxFailedWebhookEvent, Telnyx::Models::FaxMediaProcessedWebhookEvent, Telnyx::Models::FaxQueuedWebhookEvent, Telnyx::Models::FaxSendingStartedWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::StreamingFailedWebhookEvent, Telnyx::Models::StreamingStartedWebhookEvent, Telnyx::Models::StreamingStoppedWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
129
+ # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdateWebhookEvent, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChangedWebhookEvent, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDeliveredWebhookEvent, Telnyx::Models::FaxFailedWebhookEvent, Telnyx::Models::FaxMediaProcessedWebhookEvent, Telnyx::Models::FaxQueuedWebhookEvent, Telnyx::Models::FaxSendingStartedWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
136
130
  end
137
131
  end
138
132
  end
@@ -123,16 +123,10 @@ module Telnyx
123
123
 
124
124
  variant -> { Telnyx::ReplacedLinkClickWebhookEvent }
125
125
 
126
- variant -> { Telnyx::StreamingFailedWebhookEvent }
127
-
128
- variant -> { Telnyx::StreamingStartedWebhookEvent }
129
-
130
- variant -> { Telnyx::StreamingStoppedWebhookEvent }
131
-
132
126
  variant -> { Telnyx::TranscriptionWebhookEvent }
133
127
 
134
128
  # @!method self.variants
135
- # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdateWebhookEvent, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChangedWebhookEvent, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDeliveredWebhookEvent, Telnyx::Models::FaxFailedWebhookEvent, Telnyx::Models::FaxMediaProcessedWebhookEvent, Telnyx::Models::FaxQueuedWebhookEvent, Telnyx::Models::FaxSendingStartedWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::StreamingFailedWebhookEvent, Telnyx::Models::StreamingStartedWebhookEvent, Telnyx::Models::StreamingStoppedWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
129
+ # @return [Array(Telnyx::Models::CallAIGatherEndedWebhookEvent, Telnyx::Models::CallAIGatherMessageHistoryUpdatedWebhookEvent, Telnyx::Models::CallAIGatherPartialResultsWebhookEvent, Telnyx::Models::CallAnsweredWebhookEvent, Telnyx::Models::CallBridgedWebhookEvent, Telnyx::Models::CallConversationEndedWebhookEvent, Telnyx::Models::CallConversationInsightsGeneratedWebhookEvent, Telnyx::Models::CallDtmfReceivedWebhookEvent, Telnyx::Models::CallEnqueuedWebhookEvent, Telnyx::Models::CallForkStartedWebhookEvent, Telnyx::Models::CallForkStoppedWebhookEvent, Telnyx::Models::CallGatherEndedWebhookEvent, Telnyx::Models::CallHangupWebhookEvent, Telnyx::Models::CallInitiatedWebhookEvent, Telnyx::Models::CallLeftQueueWebhookEvent, Telnyx::Models::CallMachineDetectionEndedWebhookEvent, Telnyx::Models::CallMachineGreetingEndedWebhookEvent, Telnyx::Models::CallMachinePremiumDetectionEndedWebhookEvent, Telnyx::Models::CallMachinePremiumGreetingEndedWebhookEvent, Telnyx::Models::CallPlaybackEndedWebhookEvent, Telnyx::Models::CallPlaybackStartedWebhookEvent, Telnyx::Models::CallRecordingErrorWebhookEvent, Telnyx::Models::CallRecordingSavedWebhookEvent, Telnyx::Models::CallRecordingTranscriptionSavedWebhookEvent, Telnyx::Models::CallReferCompletedWebhookEvent, Telnyx::Models::CallReferFailedWebhookEvent, Telnyx::Models::CallReferStartedWebhookEvent, Telnyx::Models::CallSiprecFailedWebhookEvent, Telnyx::Models::CallSiprecStartedWebhookEvent, Telnyx::Models::CallSiprecStoppedWebhookEvent, Telnyx::Models::CallSpeakEndedWebhookEvent, Telnyx::Models::CallSpeakStartedWebhookEvent, Telnyx::Models::CallStreamingFailedWebhookEvent, Telnyx::Models::CallStreamingStartedWebhookEvent, Telnyx::Models::CallStreamingStoppedWebhookEvent, Telnyx::Models::CampaignStatusUpdateWebhookEvent, Telnyx::Models::ConferenceCreatedWebhookEvent, Telnyx::Models::ConferenceEndedWebhookEvent, Telnyx::Models::ConferenceFloorChangedWebhookEvent, Telnyx::Models::ConferenceParticipantJoinedWebhookEvent, Telnyx::Models::ConferenceParticipantLeftWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackEndedWebhookEvent, Telnyx::Models::ConferenceParticipantPlaybackStartedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakEndedWebhookEvent, Telnyx::Models::ConferenceParticipantSpeakStartedWebhookEvent, Telnyx::Models::ConferencePlaybackEndedWebhookEvent, Telnyx::Models::ConferencePlaybackStartedWebhookEvent, Telnyx::Models::ConferenceRecordingSavedWebhookEvent, Telnyx::Models::ConferenceSpeakEndedWebhookEvent, Telnyx::Models::ConferenceSpeakStartedWebhookEvent, Telnyx::Models::DeliveryUpdateWebhookEvent, Telnyx::Models::FaxDeliveredWebhookEvent, Telnyx::Models::FaxFailedWebhookEvent, Telnyx::Models::FaxMediaProcessedWebhookEvent, Telnyx::Models::FaxQueuedWebhookEvent, Telnyx::Models::FaxSendingStartedWebhookEvent, Telnyx::Models::InboundMessageWebhookEvent, Telnyx::Models::NumberOrderStatusUpdateWebhookEvent, Telnyx::Models::ReplacedLinkClickWebhookEvent, Telnyx::Models::TranscriptionWebhookEvent)]
136
130
  end
137
131
  end
138
132
  end
data/lib/telnyx/models.rb CHANGED
@@ -913,6 +913,8 @@ module Telnyx
913
913
 
914
914
  OperatorConnect = Telnyx::Models::OperatorConnect
915
915
 
916
+ Organizations = Telnyx::Models::Organizations
917
+
916
918
  OtaUpdateListParams = Telnyx::Models::OtaUpdateListParams
917
919
 
918
920
  OtaUpdateRetrieveParams = Telnyx::Models::OtaUpdateRetrieveParams
@@ -1280,12 +1282,6 @@ module Telnyx
1280
1282
 
1281
1283
  StreamCodec = Telnyx::Models::StreamCodec
1282
1284
 
1283
- StreamingFailedWebhookEvent = Telnyx::Models::StreamingFailedWebhookEvent
1284
-
1285
- StreamingStartedWebhookEvent = Telnyx::Models::StreamingStartedWebhookEvent
1286
-
1287
- StreamingStoppedWebhookEvent = Telnyx::Models::StreamingStoppedWebhookEvent
1288
-
1289
1285
  SubNumberOrder = Telnyx::Models::SubNumberOrder
1290
1286
 
1291
1287
  SubNumberOrderCancelParams = Telnyx::Models::SubNumberOrderCancelParams
@@ -9,9 +9,9 @@ module Telnyx
9
9
  #
10
10
  # @overload test_(tool_id, assistant_id:, arguments: nil, dynamic_variables: nil, request_options: {})
11
11
  #
12
- # @param tool_id [String] Path param:
12
+ # @param tool_id [String] Path param
13
13
  #
14
- # @param assistant_id [String] Path param:
14
+ # @param assistant_id [String] Path param
15
15
  #
16
16
  # @param arguments [Hash{Symbol=>Object}] Body param: Key-value arguments to use for the webhook test
17
17
  #
@@ -9,11 +9,11 @@ module Telnyx
9
9
  #
10
10
  # @overload retrieve(version_id, assistant_id:, include_mcp_servers: nil, request_options: {})
11
11
  #
12
- # @param version_id [String] Path param:
12
+ # @param version_id [String] Path param
13
13
  #
14
- # @param assistant_id [String] Path param:
14
+ # @param assistant_id [String] Path param
15
15
  #
16
- # @param include_mcp_servers [Boolean] Query param:
16
+ # @param include_mcp_servers [Boolean] Query param
17
17
  #
18
18
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
19
19
  #
@@ -41,43 +41,45 @@ module Telnyx
41
41
  # Updates the configuration of a specific assistant version. Can not update main
42
42
  # version
43
43
  #
44
- # @overload update(version_id, assistant_id:, description: nil, dynamic_variables: nil, dynamic_variables_webhook_url: nil, enabled_features: nil, greeting: nil, insight_settings: nil, instructions: nil, llm_api_key_ref: nil, messaging_settings: nil, model: nil, name: nil, privacy_settings: nil, telephony_settings: nil, tools: nil, transcription: nil, voice_settings: nil, request_options: {})
44
+ # @overload update(version_id, assistant_id:, description: nil, dynamic_variables: nil, dynamic_variables_webhook_url: nil, enabled_features: nil, greeting: nil, insight_settings: nil, instructions: nil, llm_api_key_ref: nil, messaging_settings: nil, model: nil, name: nil, privacy_settings: nil, telephony_settings: nil, tools: nil, transcription: nil, voice_settings: nil, widget_settings: nil, request_options: {})
45
45
  #
46
- # @param version_id [String] Path param:
46
+ # @param version_id [String] Path param
47
47
  #
48
- # @param assistant_id [String] Path param:
48
+ # @param assistant_id [String] Path param
49
49
  #
50
- # @param description [String] Body param:
50
+ # @param description [String] Body param
51
51
  #
52
52
  # @param dynamic_variables [Hash{Symbol=>Object}] Body param: Map of dynamic variables and their default values
53
53
  #
54
54
  # @param dynamic_variables_webhook_url [String] Body param: If the dynamic_variables_webhook_url is set for the assistant, we wi
55
55
  #
56
- # @param enabled_features [Array<Symbol, Telnyx::Models::AI::EnabledFeatures>] Body param:
56
+ # @param enabled_features [Array<Symbol, Telnyx::Models::AI::EnabledFeatures>] Body param
57
57
  #
58
58
  # @param greeting [String] Body param: Text that the assistant will use to start the conversation. This may
59
59
  #
60
- # @param insight_settings [Telnyx::Models::AI::InsightSettings] Body param:
60
+ # @param insight_settings [Telnyx::Models::AI::InsightSettings] Body param
61
61
  #
62
62
  # @param instructions [String] Body param: System instructions for the assistant. These may be templated with [
63
63
  #
64
64
  # @param llm_api_key_ref [String] Body param: This is only needed when using third-party inference providers. The
65
65
  #
66
- # @param messaging_settings [Telnyx::Models::AI::MessagingSettings] Body param:
66
+ # @param messaging_settings [Telnyx::Models::AI::MessagingSettings] Body param
67
67
  #
68
68
  # @param model [String] Body param: ID of the model to use. You can use the [Get models API](https://dev
69
69
  #
70
- # @param name [String] Body param:
70
+ # @param name [String] Body param
71
71
  #
72
- # @param privacy_settings [Telnyx::Models::AI::PrivacySettings] Body param:
72
+ # @param privacy_settings [Telnyx::Models::AI::PrivacySettings] Body param
73
73
  #
74
- # @param telephony_settings [Telnyx::Models::AI::TelephonySettings] Body param:
74
+ # @param telephony_settings [Telnyx::Models::AI::TelephonySettings] Body param
75
75
  #
76
- # @param tools [Array<Telnyx::Models::AI::WebhookTool, Telnyx::Models::AI::RetrievalTool, Telnyx::Models::AI::AssistantTool::Handoff, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::TransferTool, Telnyx::Models::AI::AssistantTool::Refer, Telnyx::Models::AI::AssistantTool::SendDtmf, Telnyx::Models::AI::AssistantTool::SendMessage>] Body param: The tools that the assistant can use. These may be templated with [d
76
+ # @param tools [Array<Telnyx::Models::AI::AssistantTool::Webhook, Telnyx::Models::AI::RetrievalTool, Telnyx::Models::AI::AssistantTool::Handoff, Telnyx::Models::AI::HangupTool, Telnyx::Models::AI::AssistantTool::Transfer, Telnyx::Models::AI::AssistantTool::Refer, Telnyx::Models::AI::AssistantTool::SendDtmf, Telnyx::Models::AI::AssistantTool::SendMessage>] Body param: The tools that the assistant can use. These may be templated with [d
77
77
  #
78
- # @param transcription [Telnyx::Models::AI::TranscriptionSettings] Body param:
78
+ # @param transcription [Telnyx::Models::AI::TranscriptionSettings] Body param
79
79
  #
80
- # @param voice_settings [Telnyx::Models::AI::VoiceSettings] Body param:
80
+ # @param voice_settings [Telnyx::Models::AI::VoiceSettings] Body param
81
+ #
82
+ # @param widget_settings [Telnyx::Models::AI::Assistants::UpdateAssistant::WidgetSettings] Body param: Configuration settings for the assistant's web widget.
81
83
  #
82
84
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
83
85
  #