telnyx 5.176.0 → 5.177.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 (187) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
  5. data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
  6. data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
  7. data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
  8. data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
  9. data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
  10. data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
  11. data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
  12. data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
  13. data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
  14. data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
  15. data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
  16. data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
  17. data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
  18. data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
  19. data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
  20. data/lib/telnyx/models/email_event_list_response.rb +11 -12
  21. data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
  22. data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
  23. data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
  24. data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
  25. data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
  26. data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
  27. data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
  28. data/lib/telnyx/models/iam/iam_action.rb +4 -4
  29. data/lib/telnyx/models/iam/iam_settings.rb +60 -0
  30. data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
  31. data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
  32. data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
  33. data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
  34. data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
  35. data/lib/telnyx/models/iam_decision.rb +5 -3
  36. data/lib/telnyx/models/iam_explain_params.rb +13 -1
  37. data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
  38. data/lib/telnyx/models/iam_simulate_params.rb +13 -1
  39. data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
  40. data/lib/telnyx/models/mobile_phone_number.rb +25 -4
  41. data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
  42. data/lib/telnyx/models/model_metadata.rb +28 -1
  43. data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
  44. data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
  45. data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
  46. data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
  47. data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
  48. data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
  49. data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
  50. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
  51. data/lib/telnyx/models/texml_application_list_params.rb +6 -6
  52. data/lib/telnyx/models/user_profile.rb +11 -1
  53. data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
  54. data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
  55. data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
  56. data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
  57. data/lib/telnyx/resources/calls/actions.rb +1 -1
  58. data/lib/telnyx/resources/customer_service_records.rb +4 -4
  59. data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
  60. data/lib/telnyx/resources/iam/guardrail.rb +45 -0
  61. data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
  62. data/lib/telnyx/resources/iam.rb +21 -8
  63. data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
  64. data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
  65. data/lib/telnyx/resources/user_profile.rb +1 -3
  66. data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
  67. data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
  68. data/lib/telnyx/version.rb +1 -1
  69. data/lib/telnyx.rb +20 -0
  70. data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
  71. data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
  72. data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
  73. data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
  74. data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
  75. data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
  76. data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
  77. data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
  78. data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
  79. data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
  80. data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
  81. data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
  82. data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
  83. data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
  84. data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
  85. data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
  86. data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
  87. data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
  88. data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
  89. data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
  90. data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
  91. data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
  92. data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
  93. data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
  94. data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
  95. data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
  96. data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
  97. data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
  98. data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
  99. data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
  100. data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
  101. data/rbi/telnyx/models/iam_decision.rbi +10 -6
  102. data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
  103. data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
  104. data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
  105. data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
  106. data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
  107. data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
  108. data/rbi/telnyx/models/model_metadata.rbi +90 -0
  109. data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
  110. data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
  111. data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
  112. data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
  113. data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
  114. data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
  115. data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
  116. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
  117. data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
  118. data/rbi/telnyx/models/user_profile.rbi +11 -0
  119. data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
  120. data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
  121. data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
  122. data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
  123. data/rbi/telnyx/resources/calls/actions.rbi +5 -5
  124. data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
  125. data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
  126. data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
  127. data/rbi/telnyx/resources/iam.rbi +18 -7
  128. data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
  129. data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
  130. data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
  131. data/rbi/telnyx/resources/user_profile.rbi +0 -3
  132. data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
  133. data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
  134. data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
  135. data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
  136. data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
  137. data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
  138. data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
  139. data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
  140. data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
  141. data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
  142. data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
  143. data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
  144. data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
  145. data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
  146. data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
  147. data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
  148. data/sig/telnyx/models/email_event_list_response.rbs +13 -3
  149. data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
  150. data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
  151. data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
  152. data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
  153. data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
  154. data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
  155. data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
  156. data/sig/telnyx/models/iam/iam_action.rbs +4 -4
  157. data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
  158. data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
  159. data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
  160. data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
  161. data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
  162. data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
  163. data/sig/telnyx/models/iam_explain_params.rbs +6 -1
  164. data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
  165. data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
  166. data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
  167. data/sig/telnyx/models/model_metadata.rbs +26 -0
  168. data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
  169. data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
  170. data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
  171. data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
  172. data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
  173. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
  174. data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
  175. data/sig/telnyx/models/user_profile.rbs +7 -0
  176. data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
  177. data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
  178. data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
  179. data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
  180. data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
  181. data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
  182. data/sig/telnyx/resources/iam.rbs +3 -0
  183. data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
  184. data/sig/telnyx/resources/user_profile.rbs +0 -1
  185. data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
  186. data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
  187. metadata +62 -2
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ module Guardrail
7
+ # @see Telnyx::Resources::Iam::Guardrail::Statements#create
8
+ class IamGuardrailStatementResponse < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute data
10
+ #
11
+ # @return [Telnyx::Models::Iam::Guardrail::IamGuardrailStatement]
12
+ required :data, -> { Telnyx::Iam::Guardrail::IamGuardrailStatement }
13
+
14
+ # @!method initialize(data:)
15
+ # @param data [Telnyx::Models::Iam::Guardrail::IamGuardrailStatement]
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ module Guardrail
7
+ # @see Telnyx::Resources::Iam::Guardrail::Statements#create
8
+ class StatementCreateParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ # @!attribute actions
13
+ # Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number.*`, which
14
+ # covers every action ID that starts with `number.`, or `*`, which covers every
15
+ # action. Every entry must match the catalog. Duplicates are removed.
16
+ #
17
+ # @return [Array<String>]
18
+ required :actions, Telnyx::Internal::Type::ArrayOf[String]
19
+
20
+ # @!attribute effect
21
+ # Whether the statement allows or denies its actions.
22
+ #
23
+ # @return [Symbol, Telnyx::Models::Iam::Guardrail::StatementCreateParams::Effect, nil]
24
+ optional :effect, enum: -> { Telnyx::Iam::Guardrail::StatementCreateParams::Effect }
25
+
26
+ # @!method initialize(actions:, effect: nil, request_options: {})
27
+ # Some parameter documentations has been truncated, see
28
+ # {Telnyx::Models::Iam::Guardrail::StatementCreateParams} for more details.
29
+ #
30
+ # @param actions [Array<String>] Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number.*`, which
31
+ #
32
+ # @param effect [Symbol, Telnyx::Models::Iam::Guardrail::StatementCreateParams::Effect] Whether the statement allows or denies its actions.
33
+ #
34
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
35
+
36
+ # Whether the statement allows or denies its actions.
37
+ module Effect
38
+ extend Telnyx::Internal::Type::Enum
39
+
40
+ ALLOW = :allow
41
+ DENY = :deny
42
+
43
+ # @!method self.values
44
+ # @return [Array<Symbol>]
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ module Guardrail
7
+ # @see Telnyx::Resources::Iam::Guardrail::Statements#delete
8
+ class StatementDeleteParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ # @!attribute statement_id
13
+ #
14
+ # @return [String]
15
+ required :statement_id, String
16
+
17
+ # @!method initialize(statement_id:, request_options: {})
18
+ # @param statement_id [String]
19
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ module Guardrail
7
+ # @see Telnyx::Resources::Iam::Guardrail::Statements#list
8
+ class StatementListParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ # @!attribute page_number
13
+ # The page to return, counting from 1.
14
+ #
15
+ # @return [Integer, nil]
16
+ optional :page_number, Integer
17
+
18
+ # @!attribute page_size
19
+ # The number of results per page.
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :page_size, Integer
23
+
24
+ # @!method initialize(page_number: nil, page_size: nil, request_options: {})
25
+ # @param page_number [Integer] The page to return, counting from 1.
26
+ #
27
+ # @param page_size [Integer] The number of results per page.
28
+ #
29
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,57 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ module Guardrail
7
+ # @see Telnyx::Resources::Iam::Guardrail::Statements#update
8
+ class StatementUpdateParams < Telnyx::Internal::Type::BaseModel
9
+ extend Telnyx::Internal::Type::RequestParameters::Converter
10
+ include Telnyx::Internal::Type::RequestParameters
11
+
12
+ # @!attribute statement_id
13
+ #
14
+ # @return [String]
15
+ required :statement_id, String
16
+
17
+ # @!attribute actions
18
+ # Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number.*`, which
19
+ # covers every action ID that starts with `number.`, or `*`, which covers every
20
+ # action. Every entry must match the catalog. Duplicates are removed.
21
+ #
22
+ # @return [Array<String>]
23
+ required :actions, Telnyx::Internal::Type::ArrayOf[String]
24
+
25
+ # @!attribute effect
26
+ # Whether the statement allows or denies its actions.
27
+ #
28
+ # @return [Symbol, Telnyx::Models::Iam::Guardrail::StatementUpdateParams::Effect]
29
+ required :effect, enum: -> { Telnyx::Iam::Guardrail::StatementUpdateParams::Effect }
30
+
31
+ # @!method initialize(statement_id:, actions:, effect:, request_options: {})
32
+ # Some parameter documentations has been truncated, see
33
+ # {Telnyx::Models::Iam::Guardrail::StatementUpdateParams} for more details.
34
+ #
35
+ # @param statement_id [String]
36
+ #
37
+ # @param actions [Array<String>] Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number.*`, which
38
+ #
39
+ # @param effect [Symbol, Telnyx::Models::Iam::Guardrail::StatementUpdateParams::Effect] Whether the statement allows or denies its actions.
40
+ #
41
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
42
+
43
+ # Whether the statement allows or denies its actions.
44
+ module Effect
45
+ extend Telnyx::Internal::Type::Enum
46
+
47
+ ALLOW = :allow
48
+ DENY = :deny
49
+
50
+ # @!method self.values
51
+ # @return [Array<Symbol>]
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ # @see Telnyx::Resources::Iam::Guardrail#delete_all
7
+ class GuardrailDeleteAllParams < Telnyx::Internal::Type::BaseModel
8
+ extend Telnyx::Internal::Type::RequestParameters::Converter
9
+ include Telnyx::Internal::Type::RequestParameters
10
+
11
+ # @!method initialize(request_options: {})
12
+ # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
13
+ end
14
+ end
15
+ end
16
+ end
@@ -47,11 +47,11 @@ module Telnyx
47
47
  # @param record_type [Symbol, Telnyx::Models::Iam::IamAction::RecordType] Identifies the type of the resource.
48
48
 
49
49
  class Endpoint < Telnyx::Internal::Type::BaseModel
50
- # @!attribute method_
50
+ # @!attribute http_method
51
51
  # The HTTP method of the operation, or `null` when the route accepts every method.
52
52
  #
53
53
  # @return [String, nil]
54
- required :method_, String, api_name: :method, nil?: true
54
+ required :http_method, String, api_name: :method, nil?: true
55
55
 
56
56
  # @!attribute path
57
57
  # The path of the operation, with its parameters in braces. A route that matches a
@@ -60,11 +60,11 @@ module Telnyx
60
60
  # @return [String]
61
61
  required :path, String
62
62
 
63
- # @!method initialize(method_:, path:)
63
+ # @!method initialize(http_method:, path:)
64
64
  # Some parameter documentations has been truncated, see
65
65
  # {Telnyx::Models::Iam::IamAction::Endpoint} for more details.
66
66
  #
67
- # @param method_ [String, nil] The HTTP method of the operation, or `null` when the route accepts every method.
67
+ # @param http_method [String, nil] The HTTP method of the operation, or `null` when the route accepts every method.
68
68
  #
69
69
  # @param path [String] The path of the operation, with its parameters in braces. A route that matches a
70
70
  end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ class IamSettings < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute enabled
8
+ # Whether IAM is enabled, so that granted roles decide what the organization's
9
+ # users and service accounts may do.
10
+ #
11
+ # @return [Boolean]
12
+ required :enabled, Telnyx::Internal::Type::Boolean
13
+
14
+ # @!attribute organization_id
15
+ # The organization the settings belong to.
16
+ #
17
+ # @return [String]
18
+ required :organization_id, String
19
+
20
+ # @!attribute record_type
21
+ # Identifies the type of the resource.
22
+ #
23
+ # @return [Symbol, Telnyx::Models::Iam::IamSettings::RecordType]
24
+ required :record_type, enum: -> { Telnyx::Iam::IamSettings::RecordType }
25
+
26
+ # @!attribute updated_at
27
+ # When the settings were last changed. `null` until they are first changed.
28
+ #
29
+ # @return [Time, nil]
30
+ required :updated_at, Time, nil?: true
31
+
32
+ # @!method initialize(enabled:, organization_id:, record_type:, updated_at:)
33
+ # Some parameter documentations has been truncated, see
34
+ # {Telnyx::Models::Iam::IamSettings} for more details.
35
+ #
36
+ # @param enabled [Boolean] Whether IAM is enabled, so that granted roles decide what the organization's use
37
+ #
38
+ # @param organization_id [String] The organization the settings belong to.
39
+ #
40
+ # @param record_type [Symbol, Telnyx::Models::Iam::IamSettings::RecordType] Identifies the type of the resource.
41
+ #
42
+ # @param updated_at [Time, nil] When the settings were last changed. `null` until they are first changed.
43
+
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @see Telnyx::Models::Iam::IamSettings#record_type
47
+ module RecordType
48
+ extend Telnyx::Internal::Type::Enum
49
+
50
+ IAM_SETTINGS = :iam_settings
51
+
52
+ # @!method self.values
53
+ # @return [Array<Symbol>]
54
+ end
55
+ end
56
+ end
57
+
58
+ IamSettings = Iam::IamSettings
59
+ end
60
+ end
@@ -7,63 +7,11 @@ module Telnyx
7
7
  class IamSettingsResponse < Telnyx::Internal::Type::BaseModel
8
8
  # @!attribute data
9
9
  #
10
- # @return [Telnyx::Models::Iam::IamSettingsResponse::Data]
11
- required :data, -> { Telnyx::Iam::IamSettingsResponse::Data }
10
+ # @return [Telnyx::Models::Iam::IamSettings]
11
+ required :data, -> { Telnyx::Iam::IamSettings }
12
12
 
13
13
  # @!method initialize(data:)
14
- # @param data [Telnyx::Models::Iam::IamSettingsResponse::Data]
15
-
16
- # @see Telnyx::Models::Iam::IamSettingsResponse#data
17
- class Data < Telnyx::Internal::Type::BaseModel
18
- # @!attribute enabled
19
- # Whether IAM is enabled, so that granted roles decide what the organization's
20
- # users and service accounts may do.
21
- #
22
- # @return [Boolean]
23
- required :enabled, Telnyx::Internal::Type::Boolean
24
-
25
- # @!attribute organization_id
26
- # The organization the settings belong to.
27
- #
28
- # @return [String]
29
- required :organization_id, String
30
-
31
- # @!attribute record_type
32
- # Identifies the type of the resource.
33
- #
34
- # @return [Symbol, Telnyx::Models::Iam::IamSettingsResponse::Data::RecordType]
35
- required :record_type, enum: -> { Telnyx::Iam::IamSettingsResponse::Data::RecordType }
36
-
37
- # @!attribute updated_at
38
- # When the settings were last changed. `null` until they are first changed.
39
- #
40
- # @return [Time, nil]
41
- required :updated_at, Time, nil?: true
42
-
43
- # @!method initialize(enabled:, organization_id:, record_type:, updated_at:)
44
- # Some parameter documentations has been truncated, see
45
- # {Telnyx::Models::Iam::IamSettingsResponse::Data} for more details.
46
- #
47
- # @param enabled [Boolean] Whether IAM is enabled, so that granted roles decide what the organization's use
48
- #
49
- # @param organization_id [String] The organization the settings belong to.
50
- #
51
- # @param record_type [Symbol, Telnyx::Models::Iam::IamSettingsResponse::Data::RecordType] Identifies the type of the resource.
52
- #
53
- # @param updated_at [Time, nil] When the settings were last changed. `null` until they are first changed.
54
-
55
- # Identifies the type of the resource.
56
- #
57
- # @see Telnyx::Models::Iam::IamSettingsResponse::Data#record_type
58
- module RecordType
59
- extend Telnyx::Internal::Type::Enum
60
-
61
- IAM_SETTINGS = :iam_settings
62
-
63
- # @!method self.values
64
- # @return [Array<Symbol>]
65
- end
66
- end
14
+ # @param data [Telnyx::Models::Iam::IamSettings]
67
15
  end
68
16
  end
69
17
 
@@ -18,6 +18,13 @@ module Telnyx
18
18
  # @return [Array<String>]
19
19
  required :actions, Telnyx::Internal::Type::ArrayOf[String]
20
20
 
21
+ # @!attribute conditions
22
+ # The statement's conditions. `ip` is `null` when the statement has no IP
23
+ # condition.
24
+ #
25
+ # @return [Telnyx::Models::Iam::Roles::IamRoleStatementConditions]
26
+ required :conditions, -> { Telnyx::Iam::Roles::IamRoleStatementConditions }
27
+
21
28
  # @!attribute created_at
22
29
  # When the statement was created.
23
30
  #
@@ -48,11 +55,16 @@ module Telnyx
48
55
  # @return [Time]
49
56
  required :updated_at, Time
50
57
 
51
- # @!method initialize(id:, actions:, created_at:, effect:, record_type:, role_id:, updated_at:)
58
+ # @!method initialize(id:, actions:, conditions:, created_at:, effect:, record_type:, role_id:, updated_at:)
59
+ # Some parameter documentations has been truncated, see
60
+ # {Telnyx::Models::Iam::Roles::IamRoleStatement} for more details.
61
+ #
52
62
  # @param id [String] The statement's ID.
53
63
  #
54
64
  # @param actions [Array<String>] Action IDs, wildcards such as `number_order.*`, or `*`.
55
65
  #
66
+ # @param conditions [Telnyx::Models::Iam::Roles::IamRoleStatementConditions] The statement's conditions. `ip` is `null` when the statement has no IP conditio
67
+ #
56
68
  # @param created_at [Time] When the statement was created.
57
69
  #
58
70
  # @param effect [Symbol, Telnyx::Models::Iam::Roles::IamRoleStatement::Effect] Whether the statement allows or denies its actions.
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Iam
6
+ module Roles
7
+ class IamRoleStatementConditions < Telnyx::Internal::Type::BaseModel
8
+ # @!attribute ip
9
+ # IPv4 or IPv6 addresses or CIDR ranges, such as `203.0.113.0/24`. The statement
10
+ # applies only to requests from one of them. A bare address is a single host.
11
+ # `null` means no IP condition.
12
+ #
13
+ # @return [Array<String>, nil]
14
+ optional :ip, Telnyx::Internal::Type::ArrayOf[String], nil?: true
15
+
16
+ # @!method initialize(ip: nil)
17
+ # Some parameter documentations has been truncated, see
18
+ # {Telnyx::Models::Iam::Roles::IamRoleStatementConditions} for more details.
19
+ #
20
+ # Conditions a request must meet for the statement to apply to it.
21
+ #
22
+ # @param ip [Array<String>, nil] IPv4 or IPv6 addresses or CIDR ranges, such as `203.0.113.0/24`. The statement a
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -22,13 +22,19 @@ module Telnyx
22
22
  # @return [Array<String>]
23
23
  required :actions, Telnyx::Internal::Type::ArrayOf[String]
24
24
 
25
+ # @!attribute conditions
26
+ # Optional conditions. Without them, the statement applies to every request.
27
+ #
28
+ # @return [Telnyx::Models::Iam::Roles::IamRoleStatementConditions, nil]
29
+ optional :conditions, -> { Telnyx::Iam::Roles::IamRoleStatementConditions }
30
+
25
31
  # @!attribute effect
26
32
  # Whether the statement allows or denies its actions.
27
33
  #
28
34
  # @return [Symbol, Telnyx::Models::Iam::Roles::StatementCreateParams::Effect, nil]
29
35
  optional :effect, enum: -> { Telnyx::Iam::Roles::StatementCreateParams::Effect }
30
36
 
31
- # @!method initialize(role_id:, actions:, effect: nil, request_options: {})
37
+ # @!method initialize(role_id:, actions:, conditions: nil, effect: nil, request_options: {})
32
38
  # Some parameter documentations has been truncated, see
33
39
  # {Telnyx::Models::Iam::Roles::StatementCreateParams} for more details.
34
40
  #
@@ -36,6 +42,8 @@ module Telnyx
36
42
  #
37
43
  # @param actions [Array<String>] Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number_order.*`,
38
44
  #
45
+ # @param conditions [Telnyx::Models::Iam::Roles::IamRoleStatementConditions] Optional conditions. Without them, the statement applies to every request.
46
+ #
39
47
  # @param effect [Symbol, Telnyx::Models::Iam::Roles::StatementCreateParams::Effect] Whether the statement allows or denies its actions.
40
48
  #
41
49
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
@@ -33,7 +33,13 @@ module Telnyx
33
33
  # @return [Symbol, Telnyx::Models::Iam::Roles::StatementUpdateParams::Effect]
34
34
  required :effect, enum: -> { Telnyx::Iam::Roles::StatementUpdateParams::Effect }
35
35
 
36
- # @!method initialize(role_id:, statement_id:, actions:, effect:, request_options: {})
36
+ # @!attribute conditions
37
+ # Optional conditions. Leaving them out clears the statement's conditions.
38
+ #
39
+ # @return [Telnyx::Models::Iam::Roles::IamRoleStatementConditions, nil]
40
+ optional :conditions, -> { Telnyx::Iam::Roles::IamRoleStatementConditions }
41
+
42
+ # @!method initialize(role_id:, statement_id:, actions:, effect:, conditions: nil, request_options: {})
37
43
  # Some parameter documentations has been truncated, see
38
44
  # {Telnyx::Models::Iam::Roles::StatementUpdateParams} for more details.
39
45
  #
@@ -45,6 +51,8 @@ module Telnyx
45
51
  #
46
52
  # @param effect [Symbol, Telnyx::Models::Iam::Roles::StatementUpdateParams::Effect] Whether the statement allows or denies its actions.
47
53
  #
54
+ # @param conditions [Telnyx::Models::Iam::Roles::IamRoleStatementConditions] Optional conditions. Leaving them out clears the statement's conditions.
55
+ #
48
56
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
49
57
 
50
58
  # Whether the statement allows or denies its actions.
@@ -39,9 +39,11 @@ module Telnyx
39
39
  # @!attribute reason
40
40
  # Why, as a code. `action_allowed` when the action is allowed, `action_denied`
41
41
  # when a role denies it, and `action_not_granted` when no role allows it.
42
- # `iam_disabled` when the organization has not enabled IAM, and
43
- # `organization_owner` when the principal is the organization owner, who holds no
44
- # roles.
42
+ # `guardrail_denied` when a statement of the organization's guardrail denies it,
43
+ # and `guardrail_not_allowed` when the guardrail has statements and none allows
44
+ # it. The guardrail applies to the organization owner too. `iam_disabled` when the
45
+ # organization has not enabled IAM, and `organization_owner` when the principal is
46
+ # the organization owner, who holds no roles.
45
47
  #
46
48
  # @return [String]
47
49
  required :reason, String
@@ -25,13 +25,25 @@ module Telnyx
25
25
  # @return [Symbol, Telnyx::Models::IamExplainParams::PrincipalType]
26
26
  required :principal_type, enum: -> { Telnyx::IamExplainParams::PrincipalType }
27
27
 
28
- # @!method initialize(action:, principal_id:, principal_type:, request_options: {})
28
+ # @!attribute ip
29
+ # The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without
30
+ # it, a matching statement with an IP condition counts as a deny.
31
+ #
32
+ # @return [String, nil]
33
+ optional :ip, String, nil?: true
34
+
35
+ # @!method initialize(action:, principal_id:, principal_type:, ip: nil, request_options: {})
36
+ # Some parameter documentations has been truncated, see
37
+ # {Telnyx::Models::IamExplainParams} for more details.
38
+ #
29
39
  # @param action [String] An exact action ID from the catalog. A wildcard is refused.
30
40
  #
31
41
  # @param principal_id [String] The ID of the user or service account to decide for.
32
42
  #
33
43
  # @param principal_type [Symbol, Telnyx::Models::IamExplainParams::PrincipalType] Whether the principal is a user or a service account.
34
44
  #
45
+ # @param ip [String, nil] The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without it
46
+ #
35
47
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
36
48
 
37
49
  # Whether the principal is a user or a service account.
@@ -59,7 +59,8 @@ module Telnyx
59
59
 
60
60
  # @!attribute decision_reason
61
61
  # Why, as a code, such as `action_allowed`, `action_denied`, `action_not_granted`,
62
- # `credential_scope_denied`, or `credential_scope_not_allowed`.
62
+ # `credential_scope_denied`, `credential_scope_not_allowed`, `guardrail_denied`,
63
+ # or `guardrail_not_allowed`.
63
64
  #
64
65
  # @return [String]
65
66
  required :decision_reason, String
@@ -76,11 +77,11 @@ module Telnyx
76
77
  # @return [String, nil]
77
78
  required :ip_ingress, String, nil?: true
78
79
 
79
- # @!attribute method_
80
+ # @!attribute http_method
80
81
  # The HTTP method of the request.
81
82
  #
82
83
  # @return [String]
83
- required :method_, String, api_name: :method
84
+ required :http_method, String, api_name: :method
84
85
 
85
86
  # @!attribute path
86
87
  # The path of the request.
@@ -119,7 +120,7 @@ module Telnyx
119
120
  # @return [String]
120
121
  required :user_id, String
121
122
 
122
- # @!method initialize(id:, action:, allowed_role_ids:, cred_id:, cred_type:, decision:, decision_reason:, denied_role_ids:, ip_ingress:, method_:, path:, record_type:, request_id:, service_account_id:, timestamp:, user_id:)
123
+ # @!method initialize(id:, action:, allowed_role_ids:, cred_id:, cred_type:, decision:, decision_reason:, denied_role_ids:, ip_ingress:, http_method:, path:, record_type:, request_id:, service_account_id:, timestamp:, user_id:)
123
124
  # Some parameter documentations has been truncated, see
124
125
  # {Telnyx::Models::IamRetrieveAccessLogsResponse::Data} for more details.
125
126
  #
@@ -141,7 +142,7 @@ module Telnyx
141
142
  #
142
143
  # @param ip_ingress [String, nil] The client address Telnyx saw.
143
144
  #
144
- # @param method_ [String] The HTTP method of the request.
145
+ # @param http_method [String] The HTTP method of the request.
145
146
  #
146
147
  # @param path [String] The path of the request.
147
148
  #
@@ -64,8 +64,20 @@ module Telnyx
64
64
  # @return [String]
65
65
  required :action, String
66
66
 
67
- # @!method initialize(action:)
67
+ # @!attribute ip
68
+ # The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without
69
+ # it, a matching statement with an IP condition counts as a deny.
70
+ #
71
+ # @return [String, nil]
72
+ optional :ip, String, nil?: true
73
+
74
+ # @!method initialize(action:, ip: nil)
75
+ # Some parameter documentations has been truncated, see
76
+ # {Telnyx::Models::IamSimulateParams::Request} for more details.
77
+ #
68
78
  # @param action [String] An exact action ID from the catalog. A wildcard is refused.
79
+ #
80
+ # @param ip [String, nil] The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without it
69
81
  end
70
82
  end
71
83
  end