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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +10 -4
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +67 -64
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +7 -16
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +7 -16
- data/lib/telnyx/models/ai/privacy_settings.rb +16 -14
- data/lib/telnyx/models/ai/readiness_probe.rb +8 -8
- data/lib/telnyx/models/ai/telephony_settings.rb +25 -1
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +8 -8
- data/lib/telnyx/models/browser_sessions/wait_for_action.rb +11 -11
- data/lib/telnyx/models/calls/deepgram_flux_config.rb +91 -0
- data/lib/telnyx/models/calls/deepgram_flux_multi_config.rb +103 -0
- data/lib/telnyx/models/calls/deepgram_nova2_specialty_config.rb +113 -0
- data/lib/telnyx/models/calls/deepgram_nova3_medical_config.rb +110 -0
- data/lib/telnyx/models/calls/transcription_engine_community_config.rb +57 -0
- data/lib/telnyx/models/calls/transcription_engine_deepgram_config.rb +5 -372
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -459
- data/lib/telnyx/models/email_event_list_response.rb +11 -12
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement.rb +94 -0
- data/lib/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rb +20 -0
- data/lib/telnyx/models/iam/guardrail/statement_create_params.rb +50 -0
- data/lib/telnyx/models/iam/guardrail/statement_delete_params.rb +24 -0
- data/lib/telnyx/models/iam/guardrail/statement_list_params.rb +34 -0
- data/lib/telnyx/models/iam/guardrail/statement_update_params.rb +57 -0
- data/lib/telnyx/models/iam/guardrail_delete_all_params.rb +16 -0
- data/lib/telnyx/models/iam/iam_action.rb +4 -4
- data/lib/telnyx/models/iam/iam_settings.rb +60 -0
- data/lib/telnyx/models/iam/iam_settings_response.rb +3 -55
- data/lib/telnyx/models/iam/roles/iam_role_statement.rb +13 -1
- data/lib/telnyx/models/iam/roles/iam_role_statement_conditions.rb +27 -0
- data/lib/telnyx/models/iam/roles/statement_create_params.rb +9 -1
- data/lib/telnyx/models/iam/roles/statement_update_params.rb +9 -1
- data/lib/telnyx/models/iam_decision.rb +5 -3
- data/lib/telnyx/models/iam_explain_params.rb +13 -1
- data/lib/telnyx/models/iam_retrieve_access_logs_response.rb +6 -5
- data/lib/telnyx/models/iam_simulate_params.rb +13 -1
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +15 -15
- data/lib/telnyx/models/mobile_phone_number.rb +25 -4
- data/lib/telnyx/models/mobile_phone_number_update_params.rb +38 -4
- data/lib/telnyx/models/model_metadata.rb +28 -1
- data/lib/telnyx/models/phone_numbers/emergency_settings.rb +56 -0
- data/lib/telnyx/models/phone_numbers/numbers_cnam_listing.rb +36 -0
- data/lib/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rb +9 -59
- data/lib/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rb +6 -4
- data/lib/telnyx/models/phone_numbers/phone_number_with_voice_settings.rb +3 -55
- data/lib/telnyx/models/sim_cards/action_bulk_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/sim_cards/action_enable_voice_params.rb +2 -2
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +15 -15
- data/lib/telnyx/models/texml_application_list_params.rb +6 -6
- data/lib/telnyx/models/user_profile.rb +11 -1
- data/lib/telnyx/models/user_profile_patch_all_params.rb +1 -9
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +223 -0
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +220 -0
- data/lib/telnyx/models/whatsapp/whatsapp_phone_response.rb +0 -1
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/customer_service_records.rb +4 -4
- data/lib/telnyx/resources/iam/guardrail/statements.rb +158 -0
- data/lib/telnyx/resources/iam/guardrail.rb +45 -0
- data/lib/telnyx/resources/iam/roles/statements.rb +13 -6
- data/lib/telnyx/resources/iam.rb +21 -8
- data/lib/telnyx/resources/mobile_phone_numbers.rb +4 -1
- data/lib/telnyx/resources/phone_numbers/voice.rb +1 -1
- data/lib/telnyx/resources/user_profile.rb +1 -3
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +15 -6
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +114 -97
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +12 -28
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +12 -28
- data/rbi/telnyx/models/ai/privacy_settings.rbi +24 -21
- data/rbi/telnyx/models/ai/readiness_probe.rbi +14 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +79 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +4 -4
- data/rbi/telnyx/models/browser_sessions/wait_for_action.rbi +24 -24
- data/rbi/telnyx/models/calls/deepgram_flux_config.rbi +192 -0
- data/rbi/telnyx/models/calls/deepgram_flux_multi_config.rbi +251 -0
- data/rbi/telnyx/models/calls/deepgram_nova2_specialty_config.rbi +226 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_medical_config.rbi +220 -0
- data/rbi/telnyx/models/calls/transcription_engine_community_config.rbi +94 -0
- data/rbi/telnyx/models/calls/transcription_engine_deepgram_config.rbi +4 -776
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +25 -989
- data/rbi/telnyx/models/email_event_list_response.rbi +32 -18
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement.rbi +169 -0
- data/rbi/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbi +45 -0
- data/rbi/telnyx/models/iam/guardrail/statement_create_params.rbi +113 -0
- data/rbi/telnyx/models/iam/guardrail/statement_delete_params.rbi +42 -0
- data/rbi/telnyx/models/iam/guardrail/statement_list_params.rbi +64 -0
- data/rbi/telnyx/models/iam/guardrail/statement_update_params.rbi +109 -0
- data/rbi/telnyx/models/iam/guardrail_delete_all_params.rbi +32 -0
- data/rbi/telnyx/models/iam/iam_action.rbi +6 -4
- data/rbi/telnyx/models/iam/iam_settings.rbi +90 -0
- data/rbi/telnyx/models/iam/iam_settings_response.rbi +4 -105
- data/rbi/telnyx/models/iam/roles/iam_role_statement.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/iam_role_statement_conditions.rbi +41 -0
- data/rbi/telnyx/models/iam/roles/statement_create_params.rbi +18 -0
- data/rbi/telnyx/models/iam/roles/statement_update_params.rbi +18 -0
- data/rbi/telnyx/models/iam_decision.rbi +10 -6
- data/rbi/telnyx/models/iam_explain_params.rbi +10 -0
- data/rbi/telnyx/models/iam_retrieve_access_logs_response.rbi +8 -6
- data/rbi/telnyx/models/iam_simulate_params.rbi +15 -3
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +31 -31
- data/rbi/telnyx/models/mobile_phone_number.rbi +19 -0
- data/rbi/telnyx/models/mobile_phone_number_update_params.rbi +19 -0
- data/rbi/telnyx/models/model_metadata.rbi +90 -0
- data/rbi/telnyx/models/phone_numbers/emergency_settings.rbi +133 -0
- data/rbi/telnyx/models/phone_numbers/numbers_cnam_listing.rbi +62 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbi +16 -145
- data/rbi/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbi +12 -6
- data/rbi/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbi +4 -139
- data/rbi/telnyx/models/sim_cards/action_bulk_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/sim_cards/action_enable_voice_params.rbi +4 -4
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +15 -15
- data/rbi/telnyx/models/texml_application_list_params.rbi +7 -7
- data/rbi/telnyx/models/user_profile.rbi +11 -0
- data/rbi/telnyx/models/user_profile_patch_all_params.rbi +0 -11
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +393 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +391 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +5 -2
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/iam/guardrail/statements.rbi +132 -0
- data/rbi/telnyx/resources/iam/guardrail.rbi +29 -0
- data/rbi/telnyx/resources/iam/roles/statements.rbi +16 -4
- data/rbi/telnyx/resources/iam.rbi +18 -7
- data/rbi/telnyx/resources/mobile_phone_numbers.rbi +2 -0
- data/rbi/telnyx/resources/phone_numbers/voice.rbi +4 -2
- data/rbi/telnyx/resources/sim_cards/actions.rbi +4 -4
- data/rbi/telnyx/resources/user_profile.rbi +0 -3
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +50 -57
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +3 -12
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +3 -12
- data/sig/telnyx/models/ai/readiness_probe.rbs +11 -8
- data/sig/telnyx/models/ai/telephony_settings.rbs +21 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +4 -4
- data/sig/telnyx/models/browser_sessions/wait_for_action.rbs +12 -13
- data/sig/telnyx/models/calls/deepgram_flux_config.rbs +80 -0
- data/sig/telnyx/models/calls/deepgram_flux_multi_config.rbs +91 -0
- data/sig/telnyx/models/calls/deepgram_nova2_specialty_config.rbs +93 -0
- data/sig/telnyx/models/calls/deepgram_nova3_medical_config.rbs +91 -0
- data/sig/telnyx/models/calls/transcription_engine_community_config.rbs +43 -0
- data/sig/telnyx/models/calls/transcription_engine_deepgram_config.rbs +4 -313
- data/sig/telnyx/models/calls/transcription_start_request.rbs +5 -382
- data/sig/telnyx/models/email_event_list_response.rbs +13 -3
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement.rbs +75 -0
- data/sig/telnyx/models/iam/guardrail/iam_guardrail_statement_response.rbs +22 -0
- data/sig/telnyx/models/iam/guardrail/statement_create_params.rbs +50 -0
- data/sig/telnyx/models/iam/guardrail/statement_delete_params.rbs +27 -0
- data/sig/telnyx/models/iam/guardrail/statement_list_params.rbs +36 -0
- data/sig/telnyx/models/iam/guardrail/statement_update_params.rbs +51 -0
- data/sig/telnyx/models/iam/guardrail_delete_all_params.rbs +17 -0
- data/sig/telnyx/models/iam/iam_action.rbs +4 -4
- data/sig/telnyx/models/iam/iam_settings.rbs +49 -0
- data/sig/telnyx/models/iam/iam_settings_response.rbs +4 -47
- data/sig/telnyx/models/iam/roles/iam_role_statement.rbs +5 -0
- data/sig/telnyx/models/iam/roles/iam_role_statement_conditions.rbs +17 -0
- data/sig/telnyx/models/iam/roles/statement_create_params.rbs +9 -0
- data/sig/telnyx/models/iam/roles/statement_update_params.rbs +10 -1
- data/sig/telnyx/models/iam_explain_params.rbs +6 -1
- data/sig/telnyx/models/iam_retrieve_access_logs_response.rbs +4 -4
- data/sig/telnyx/models/iam_simulate_params.rbs +5 -3
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +18 -18
- data/sig/telnyx/models/model_metadata.rbs +26 -0
- data/sig/telnyx/models/phone_numbers/emergency_settings.rbs +59 -0
- data/sig/telnyx/models/phone_numbers/numbers_cnam_listing.rbs +28 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings.rbs +12 -66
- data/sig/telnyx/models/phone_numbers/numbers_update_phone_number_voice_settings_request.rbs +6 -6
- data/sig/telnyx/models/phone_numbers/phone_number_with_voice_settings.rbs +6 -60
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -15
- data/sig/telnyx/models/texml_application_list_params.rbs +3 -3
- data/sig/telnyx/models/user_profile.rbs +7 -0
- data/sig/telnyx/models/user_profile_patch_all_params.rbs +0 -7
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +207 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +205 -0
- data/sig/telnyx/resources/iam/guardrail/statements.rbs +35 -0
- data/sig/telnyx/resources/iam/guardrail.rbs +13 -0
- data/sig/telnyx/resources/iam/roles/statements.rbs +2 -0
- data/sig/telnyx/resources/iam.rbs +3 -0
- data/sig/telnyx/resources/phone_numbers/voice.rbs +1 -1
- data/sig/telnyx/resources/user_profile.rbs +0 -1
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +62 -2
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Iam
|
|
6
|
+
class Guardrail
|
|
7
|
+
# Statements on the whole organization that every request must pass while IAM is
|
|
8
|
+
# enabled, the owner's included.
|
|
9
|
+
class Statements
|
|
10
|
+
# Some parameter documentations has been truncated, see
|
|
11
|
+
# {Telnyx::Models::Iam::Guardrail::StatementCreateParams} for more details.
|
|
12
|
+
#
|
|
13
|
+
# Adds one statement to the organization's guardrail. A statement has an effect,
|
|
14
|
+
# `allow` unless it says `deny`, and a list of actions: exact action IDs,
|
|
15
|
+
# wildcards such as `number.*`, or `*`. Every entry must match the catalog. Start
|
|
16
|
+
# with an allow of `*` and add denies.
|
|
17
|
+
#
|
|
18
|
+
# While the organization has enabled IAM, every request in it must pass the
|
|
19
|
+
# guardrail, the organization owner's included: a guardrail statement must allow
|
|
20
|
+
# the request's action, and none may deny it. The seven actions a signed-in user
|
|
21
|
+
# always keeps are exempt, except for the owner. An organization without
|
|
22
|
+
# statements has no guardrail. The guardrail only takes away: it never allows more
|
|
23
|
+
# than roles and API key scopes allow. A request sent into a managed organization
|
|
24
|
+
# with `X-Managed-Account-Id` must pass the managed organization's guardrail
|
|
25
|
+
# instead of the sender's own, when the managed organization has enabled IAM,
|
|
26
|
+
# whether or not the sender's organization has. The sender's own guardrail still
|
|
27
|
+
# decides `managed_account.impersonate`.
|
|
28
|
+
#
|
|
29
|
+
# A change that would leave the guardrail not allowing `iam_guardrail.update`
|
|
30
|
+
# answers `422`, so the first statement must allow it, for example with an allow
|
|
31
|
+
# of `*`.
|
|
32
|
+
#
|
|
33
|
+
# Its action is `iam_guardrail.update`.
|
|
34
|
+
#
|
|
35
|
+
# @overload create(actions:, effect: nil, request_options: {})
|
|
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::StatementCreateParams::Effect] Whether the statement allows or denies its actions.
|
|
40
|
+
#
|
|
41
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
|
+
#
|
|
43
|
+
# @return [Telnyx::Models::Iam::Guardrail::IamGuardrailStatementResponse]
|
|
44
|
+
#
|
|
45
|
+
# @see Telnyx::Models::Iam::Guardrail::StatementCreateParams
|
|
46
|
+
def create(params)
|
|
47
|
+
parsed, options = Telnyx::Iam::Guardrail::StatementCreateParams.dump_request(params)
|
|
48
|
+
@client.request(
|
|
49
|
+
method: :post,
|
|
50
|
+
path: "iam/guardrail/statements",
|
|
51
|
+
body: parsed,
|
|
52
|
+
model: Telnyx::Iam::Guardrail::IamGuardrailStatementResponse,
|
|
53
|
+
options: options
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Some parameter documentations has been truncated, see
|
|
58
|
+
# {Telnyx::Models::Iam::Guardrail::StatementUpdateParams} for more details.
|
|
59
|
+
#
|
|
60
|
+
# Replaces a guardrail statement's effect and actions. Both are required.
|
|
61
|
+
#
|
|
62
|
+
# A change that would leave the guardrail not allowing `iam_guardrail.update`
|
|
63
|
+
# answers `422`, so the first statement must allow it, for example with an allow
|
|
64
|
+
# of `*`.
|
|
65
|
+
#
|
|
66
|
+
# Its action is `iam_guardrail.update`.
|
|
67
|
+
#
|
|
68
|
+
# @overload update(statement_id, actions:, effect:, request_options: {})
|
|
69
|
+
#
|
|
70
|
+
# @param statement_id [String] The guardrail statement's ID.
|
|
71
|
+
#
|
|
72
|
+
# @param actions [Array<String>] Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number.*`, which
|
|
73
|
+
#
|
|
74
|
+
# @param effect [Symbol, Telnyx::Models::Iam::Guardrail::StatementUpdateParams::Effect] Whether the statement allows or denies its actions.
|
|
75
|
+
#
|
|
76
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
77
|
+
#
|
|
78
|
+
# @return [Telnyx::Models::Iam::Guardrail::IamGuardrailStatementResponse]
|
|
79
|
+
#
|
|
80
|
+
# @see Telnyx::Models::Iam::Guardrail::StatementUpdateParams
|
|
81
|
+
def update(statement_id, params)
|
|
82
|
+
parsed, options = Telnyx::Iam::Guardrail::StatementUpdateParams.dump_request(params)
|
|
83
|
+
@client.request(
|
|
84
|
+
method: :put,
|
|
85
|
+
path: ["iam/guardrail/statements/%1$s", statement_id],
|
|
86
|
+
body: parsed,
|
|
87
|
+
model: Telnyx::Iam::Guardrail::IamGuardrailStatementResponse,
|
|
88
|
+
options: options
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Lists the statements of the organization's guardrail, oldest first. An
|
|
93
|
+
# organization without statements has no guardrail.
|
|
94
|
+
#
|
|
95
|
+
# Its action is `iam_guardrail.read`.
|
|
96
|
+
#
|
|
97
|
+
# @overload list(page_number: nil, page_size: nil, request_options: {})
|
|
98
|
+
#
|
|
99
|
+
# @param page_number [Integer] The page to return, counting from 1.
|
|
100
|
+
#
|
|
101
|
+
# @param page_size [Integer] The number of results per page.
|
|
102
|
+
#
|
|
103
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
104
|
+
#
|
|
105
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Iam::Guardrail::IamGuardrailStatement>]
|
|
106
|
+
#
|
|
107
|
+
# @see Telnyx::Models::Iam::Guardrail::StatementListParams
|
|
108
|
+
def list(params = {})
|
|
109
|
+
parsed, options = Telnyx::Iam::Guardrail::StatementListParams.dump_request(params)
|
|
110
|
+
query = Telnyx::Internal::Util.encode_query_params(parsed)
|
|
111
|
+
@client.request(
|
|
112
|
+
method: :get,
|
|
113
|
+
path: "iam/guardrail/statements",
|
|
114
|
+
query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
115
|
+
page: Telnyx::Internal::DefaultFlatPagination,
|
|
116
|
+
model: Telnyx::Iam::Guardrail::IamGuardrailStatement,
|
|
117
|
+
options: options
|
|
118
|
+
)
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Deletes one statement from the organization's guardrail. A guardrail left
|
|
122
|
+
# without statements has no effect.
|
|
123
|
+
#
|
|
124
|
+
# A change that would leave the guardrail not allowing `iam_guardrail.update`
|
|
125
|
+
# answers `422`, so the first statement must allow it, for example with an allow
|
|
126
|
+
# of `*`.
|
|
127
|
+
#
|
|
128
|
+
# Its action is `iam_guardrail.update`.
|
|
129
|
+
#
|
|
130
|
+
# @overload delete(statement_id, request_options: {})
|
|
131
|
+
#
|
|
132
|
+
# @param statement_id [String] The guardrail statement's ID.
|
|
133
|
+
#
|
|
134
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
135
|
+
#
|
|
136
|
+
# @return [Telnyx::Models::Iam::Guardrail::IamGuardrailStatementResponse]
|
|
137
|
+
#
|
|
138
|
+
# @see Telnyx::Models::Iam::Guardrail::StatementDeleteParams
|
|
139
|
+
def delete(statement_id, params = {})
|
|
140
|
+
@client.request(
|
|
141
|
+
method: :delete,
|
|
142
|
+
path: ["iam/guardrail/statements/%1$s", statement_id],
|
|
143
|
+
model: Telnyx::Iam::Guardrail::IamGuardrailStatementResponse,
|
|
144
|
+
options: params[:request_options]
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# @api private
|
|
149
|
+
#
|
|
150
|
+
# @param client [Telnyx::Client]
|
|
151
|
+
def initialize(client:)
|
|
152
|
+
@client = client
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Iam
|
|
6
|
+
# Statements on the whole organization that every request must pass while IAM is
|
|
7
|
+
# enabled, the owner's included.
|
|
8
|
+
class Guardrail
|
|
9
|
+
# Statements on the whole organization that every request must pass while IAM is
|
|
10
|
+
# enabled, the owner's included.
|
|
11
|
+
# @return [Telnyx::Resources::Iam::Guardrail::Statements]
|
|
12
|
+
attr_reader :statements
|
|
13
|
+
|
|
14
|
+
# Deletes every statement of the organization's guardrail, so the organization has
|
|
15
|
+
# no guardrail.
|
|
16
|
+
#
|
|
17
|
+
# Its action is `iam_guardrail.update`.
|
|
18
|
+
#
|
|
19
|
+
# @overload delete_all(request_options: {})
|
|
20
|
+
#
|
|
21
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
|
+
#
|
|
23
|
+
# @return [nil]
|
|
24
|
+
#
|
|
25
|
+
# @see Telnyx::Models::Iam::GuardrailDeleteAllParams
|
|
26
|
+
def delete_all(params = {})
|
|
27
|
+
@client.request(
|
|
28
|
+
method: :delete,
|
|
29
|
+
path: "iam/guardrail",
|
|
30
|
+
model: NilClass,
|
|
31
|
+
options: params[:request_options]
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# @api private
|
|
36
|
+
#
|
|
37
|
+
# @param client [Telnyx::Client]
|
|
38
|
+
def initialize(client:)
|
|
39
|
+
@client = client
|
|
40
|
+
@statements = Telnyx::Resources::Iam::Guardrail::Statements.new(client: client)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -13,18 +13,22 @@ module Telnyx
|
|
|
13
13
|
# `deny`, and a list of actions: exact action IDs, wildcards such as
|
|
14
14
|
# `number_order.*`, or `*`. Every entry must match the catalog, and there is no
|
|
15
15
|
# upper limit on the number of entries. A role can hold both an allow and a deny,
|
|
16
|
-
# such as an allow of `number.*` and a deny of `number.delete`. A
|
|
17
|
-
#
|
|
16
|
+
# such as an allow of `number.*` and a deny of `number.delete`. A statement can
|
|
17
|
+
# also carry `conditions.ip`, a list of IPv4 or IPv6 addresses or CIDR ranges, and
|
|
18
|
+
# then applies only to requests from those addresses. A change applies to new
|
|
19
|
+
# requests within five seconds.
|
|
18
20
|
#
|
|
19
21
|
# Only the organization owner can call this endpoint. Its action is
|
|
20
22
|
# `iam_roles.update`. Other users and service account tokens get `403`.
|
|
21
23
|
#
|
|
22
|
-
# @overload create(role_id, actions:, effect: nil, request_options: {})
|
|
24
|
+
# @overload create(role_id, actions:, conditions: nil, effect: nil, request_options: {})
|
|
23
25
|
#
|
|
24
26
|
# @param role_id [String] The role's ID.
|
|
25
27
|
#
|
|
26
28
|
# @param actions [Array<String>] Exact action IDs from `GET /v2/iam/actions`, wildcards such as `number_order.*`,
|
|
27
29
|
#
|
|
30
|
+
# @param conditions [Telnyx::Models::Iam::Roles::IamRoleStatementConditions] Optional conditions. Without them, the statement applies to every request.
|
|
31
|
+
#
|
|
28
32
|
# @param effect [Symbol, Telnyx::Models::Iam::Roles::StatementCreateParams::Effect] Whether the statement allows or denies its actions.
|
|
29
33
|
#
|
|
30
34
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
@@ -46,13 +50,14 @@ module Telnyx
|
|
|
46
50
|
# Some parameter documentations has been truncated, see
|
|
47
51
|
# {Telnyx::Models::Iam::Roles::StatementUpdateParams} for more details.
|
|
48
52
|
#
|
|
49
|
-
# Replaces a statement's effect
|
|
50
|
-
#
|
|
53
|
+
# Replaces a statement's effect, actions, and conditions. `effect` and `actions`
|
|
54
|
+
# are required, and leaving out `conditions` clears them. A change applies to new
|
|
55
|
+
# requests within five seconds.
|
|
51
56
|
#
|
|
52
57
|
# Only the organization owner can call this endpoint. Its action is
|
|
53
58
|
# `iam_roles.update`. Other users and service account tokens get `403`.
|
|
54
59
|
#
|
|
55
|
-
# @overload update(statement_id, role_id:, actions:, effect:, request_options: {})
|
|
60
|
+
# @overload update(statement_id, role_id:, actions:, effect:, conditions: nil, request_options: {})
|
|
56
61
|
#
|
|
57
62
|
# @param statement_id [String] Path param: The statement's ID.
|
|
58
63
|
#
|
|
@@ -62,6 +67,8 @@ module Telnyx
|
|
|
62
67
|
#
|
|
63
68
|
# @param effect [Symbol, Telnyx::Models::Iam::Roles::StatementUpdateParams::Effect] Body param: Whether the statement allows or denies its actions.
|
|
64
69
|
#
|
|
70
|
+
# @param conditions [Telnyx::Models::Iam::Roles::IamRoleStatementConditions] Body param: Optional conditions. Leaving them out clears the statement's conditi
|
|
71
|
+
#
|
|
65
72
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
66
73
|
#
|
|
67
74
|
# @return [Telnyx::Models::Iam::Roles::IamRoleStatementResponse]
|
data/lib/telnyx/resources/iam.rb
CHANGED
|
@@ -28,21 +28,30 @@ module Telnyx
|
|
|
28
28
|
# @return [Telnyx::Resources::Iam::Settings]
|
|
29
29
|
attr_reader :settings
|
|
30
30
|
|
|
31
|
+
# Statements on the whole organization that every request must pass while IAM is
|
|
32
|
+
# enabled, the owner's included.
|
|
33
|
+
# @return [Telnyx::Resources::Iam::Guardrail]
|
|
34
|
+
attr_reader :guardrail
|
|
35
|
+
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {Telnyx::Models::IamExplainParams} for more details.
|
|
38
|
+
#
|
|
31
39
|
# Returns what IAM decides for one action and one user or service account of the
|
|
32
40
|
# organization, from the principal's current grants, with the roles behind the
|
|
33
41
|
# decision. Nothing is changed.
|
|
34
42
|
#
|
|
35
43
|
# The action is an exact action ID, and a wildcard or an unknown action answers
|
|
36
44
|
# `422`. Explain decides for the principal, not for a credential, so it does not
|
|
37
|
-
# apply an API key's scope.
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
#
|
|
45
|
+
# apply an API key's scope. While the organization has enabled IAM, explain
|
|
46
|
+
# applies the organization's guardrail, to the owner too. For a user other than
|
|
47
|
+
# the owner and one of the seven actions a signed-in user always keeps, it answers
|
|
48
|
+
# `allow` whether or not IAM is enabled. Explain does not check that the principal
|
|
49
|
+
# exists, so an unknown ID is decided like a principal without grants.
|
|
41
50
|
#
|
|
42
51
|
# Only the organization owner can call this endpoint. Its action is `iam.explain`.
|
|
43
52
|
# Other users and service account tokens get `403`.
|
|
44
53
|
#
|
|
45
|
-
# @overload explain(action:, principal_id:, principal_type:, request_options: {})
|
|
54
|
+
# @overload explain(action:, principal_id:, principal_type:, ip: nil, request_options: {})
|
|
46
55
|
#
|
|
47
56
|
# @param action [String] An exact action ID from the catalog. A wildcard is refused.
|
|
48
57
|
#
|
|
@@ -50,6 +59,8 @@ module Telnyx
|
|
|
50
59
|
#
|
|
51
60
|
# @param principal_type [Symbol, Telnyx::Models::IamExplainParams::PrincipalType] Whether the principal is a user or a service account.
|
|
52
61
|
#
|
|
62
|
+
# @param ip [String, nil] The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without it
|
|
63
|
+
#
|
|
53
64
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
54
65
|
#
|
|
55
66
|
# @return [Telnyx::Models::IamExplainResponse]
|
|
@@ -154,9 +165,10 @@ module Telnyx
|
|
|
154
165
|
# A simulate names 1 to 10 roles of the organization and 1 to 50 requests, each an
|
|
155
166
|
# exact action ID. A role of another organization, a wildcard, or an unknown
|
|
156
167
|
# action answers `422`. Simulate decides from the given roles only, so it applies
|
|
157
|
-
# neither an API key's scope nor the actions a signed-in user always keeps.
|
|
158
|
-
#
|
|
159
|
-
#
|
|
168
|
+
# neither an API key's scope nor the actions a signed-in user always keeps. It
|
|
169
|
+
# applies the organization's guardrail whether or not IAM is enabled, to the owner
|
|
170
|
+
# too. The organization owner holds no roles, so the given roles do not change the
|
|
171
|
+
# owner's decisions.
|
|
160
172
|
#
|
|
161
173
|
# Only the organization owner can call this endpoint. Its action is
|
|
162
174
|
# `iam.simulate`. Other users and service account tokens get `403`.
|
|
@@ -198,6 +210,7 @@ module Telnyx
|
|
|
198
210
|
@roles = Telnyx::Resources::Iam::Roles.new(client: client)
|
|
199
211
|
@service_accounts = Telnyx::Resources::Iam::ServiceAccounts.new(client: client)
|
|
200
212
|
@settings = Telnyx::Resources::Iam::Settings.new(client: client)
|
|
213
|
+
@guardrail = Telnyx::Resources::Iam::Guardrail.new(client: client)
|
|
201
214
|
end
|
|
202
215
|
end
|
|
203
216
|
end
|
|
@@ -27,13 +27,16 @@ module Telnyx
|
|
|
27
27
|
)
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
# Some parameter documentations has been truncated, see
|
|
31
|
+
# {Telnyx::Models::MobilePhoneNumberUpdateParams} for more details.
|
|
32
|
+
#
|
|
30
33
|
# Update the settings of a specific mobile phone number.
|
|
31
34
|
#
|
|
32
35
|
# @overload update(id, call_forwarding: nil, call_recording: nil, caller_id_name_enabled: nil, cnam_listing: nil, connection_id: nil, customer_reference: nil, inbound: nil, inbound_call_screening: nil, noise_suppression: nil, outbound: nil, tags: nil, request_options: {})
|
|
33
36
|
#
|
|
34
37
|
# @param id [String] The ID of the mobile phone number
|
|
35
38
|
#
|
|
36
|
-
# @param call_forwarding [Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding]
|
|
39
|
+
# @param call_forwarding [Telnyx::Models::MobilePhoneNumberUpdateParams::CallForwarding] The call forwarding settings for this mobile phone number. Call forwarding is th
|
|
37
40
|
#
|
|
38
41
|
# @param call_recording [Telnyx::Models::MobilePhoneNumberUpdateParams::CallRecording]
|
|
39
42
|
#
|
|
@@ -44,7 +44,7 @@ module Telnyx
|
|
|
44
44
|
#
|
|
45
45
|
# @param caller_id_name_lookup_tier [Symbol, Telnyx::Models::PhoneNumbers::NumbersUpdatePhoneNumberVoiceSettingsRequest::CallerIDNameLookupTier] The inbound caller name lookup tier. The initial tier is `standard`. This settin
|
|
46
46
|
#
|
|
47
|
-
# @param cnam_listing [Telnyx::Models::PhoneNumbers::
|
|
47
|
+
# @param cnam_listing [Telnyx::Models::PhoneNumbers::NumbersCnamListing] The CNAM listing settings for a phone number. See the [Caller ID & CNAM guide](h
|
|
48
48
|
#
|
|
49
49
|
# @param inbound_call_screening [Symbol, Telnyx::Models::PhoneNumbers::NumbersUpdatePhoneNumberVoiceSettingsRequest::InboundCallScreening] The inbound_call_screening setting is a phone number configuration option variab
|
|
50
50
|
#
|
|
@@ -33,7 +33,7 @@ module Telnyx
|
|
|
33
33
|
#
|
|
34
34
|
# This API may change if user account settings require changes
|
|
35
35
|
#
|
|
36
|
-
# @overload patch_all(address_1: nil, address_2: nil, business_name: nil, city: nil, company_size: nil, country: nil, data_locality: nil, default_managed_account_allow_custom_pricing: nil, default_managed_account_inherit_emergency_terms_of_service: nil, default_managed_account_rollup_billing: nil, default_notify_manager_account: nil, default_numbers_external_pin: nil, first_name: nil, got_free_number_at_signup: nil, last_name: nil, low_balance_notification_frequency: nil, low_balance_threshold_amount: nil, notify_on_invoice_available: nil, notify_on_invoice_payment: nil,
|
|
36
|
+
# @overload patch_all(address_1: nil, address_2: nil, business_name: nil, city: nil, company_size: nil, country: nil, data_locality: nil, default_managed_account_allow_custom_pricing: nil, default_managed_account_inherit_emergency_terms_of_service: nil, default_managed_account_rollup_billing: nil, default_notify_manager_account: nil, default_numbers_external_pin: nil, first_name: nil, got_free_number_at_signup: nil, last_name: nil, low_balance_notification_frequency: nil, low_balance_threshold_amount: nil, notify_on_invoice_available: nil, notify_on_invoice_payment: nil, onboarding_build_method: nil, onboarding_industries: nil, onboarding_monthly_budget: nil, onboarding_product_interest: nil, onboarding_project_types: nil, onboarding_reasons_for_consideration: nil, onboarding_referrer: nil, onboarding_use_cases_other: nil, phone_number: nil, port_out_pin_validation: nil, primary_use_case: nil, role: nil, state: nil, ui_theme: nil, use_cases: nil, user_subscription_opt_in: nil, zip: nil, request_options: {})
|
|
37
37
|
#
|
|
38
38
|
# @param address_1 [String, nil] First line of the profile address.
|
|
39
39
|
#
|
|
@@ -73,8 +73,6 @@ module Telnyx
|
|
|
73
73
|
#
|
|
74
74
|
# @param notify_on_invoice_payment [Boolean] Whether to notify the user when an invoice is paid.
|
|
75
75
|
#
|
|
76
|
-
# @param npac_user [Boolean] Whether the user is an NPAC user.
|
|
77
|
-
#
|
|
78
76
|
# @param onboarding_build_method [Array<String>] Build methods reported during onboarding.
|
|
79
77
|
#
|
|
80
78
|
# @param onboarding_industries [Array<String>] Industries reported during onboarding.
|
|
@@ -17,7 +17,7 @@ module Telnyx
|
|
|
17
17
|
#
|
|
18
18
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
19
|
#
|
|
20
|
-
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Whatsapp::
|
|
20
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse>]
|
|
21
21
|
#
|
|
22
22
|
# @see Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListParams
|
|
23
23
|
def list(id, params = {})
|
|
@@ -28,7 +28,7 @@ module Telnyx
|
|
|
28
28
|
path: ["v2/whatsapp/business_accounts/%1$s/phone_numbers", id],
|
|
29
29
|
query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
30
30
|
page: Telnyx::Internal::DefaultFlatPagination,
|
|
31
|
-
model: Telnyx::Whatsapp::
|
|
31
|
+
model: Telnyx::Models::Whatsapp::BusinessAccounts::PhoneNumberListResponse,
|
|
32
32
|
options: options
|
|
33
33
|
)
|
|
34
34
|
end
|
|
@@ -29,7 +29,7 @@ module Telnyx
|
|
|
29
29
|
# @param page_size [Integer]
|
|
30
30
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
31
31
|
#
|
|
32
|
-
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Whatsapp::
|
|
32
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Whatsapp::PhoneNumberListResponse>]
|
|
33
33
|
#
|
|
34
34
|
# @see Telnyx::Models::Whatsapp::PhoneNumberListParams
|
|
35
35
|
def list(params = {})
|
|
@@ -40,7 +40,7 @@ module Telnyx
|
|
|
40
40
|
path: "v2/whatsapp/phone_numbers",
|
|
41
41
|
query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
42
42
|
page: Telnyx::Internal::DefaultFlatPagination,
|
|
43
|
-
model: Telnyx::Whatsapp::
|
|
43
|
+
model: Telnyx::Models::Whatsapp::PhoneNumberListResponse,
|
|
44
44
|
options: options
|
|
45
45
|
)
|
|
46
46
|
end
|
data/lib/telnyx/version.rb
CHANGED
data/lib/telnyx.rb
CHANGED
|
@@ -1015,8 +1015,12 @@ require_relative "telnyx/models/calls/call_control_command_result_with_conversat
|
|
|
1015
1015
|
require_relative "telnyx/models/calls/conversation_relay_interruptible"
|
|
1016
1016
|
require_relative "telnyx/models/calls/conversation_relay_transcription_engine_config"
|
|
1017
1017
|
require_relative "telnyx/models/calls/deepgram_english_transcription_language"
|
|
1018
|
+
require_relative "telnyx/models/calls/deepgram_flux_config"
|
|
1019
|
+
require_relative "telnyx/models/calls/deepgram_flux_multi_config"
|
|
1018
1020
|
require_relative "telnyx/models/calls/deepgram_nova2_config"
|
|
1021
|
+
require_relative "telnyx/models/calls/deepgram_nova2_specialty_config"
|
|
1019
1022
|
require_relative "telnyx/models/calls/deepgram_nova3_config"
|
|
1023
|
+
require_relative "telnyx/models/calls/deepgram_nova3_medical_config"
|
|
1020
1024
|
require_relative "telnyx/models/calls/developer_message"
|
|
1021
1025
|
require_relative "telnyx/models/calls/eleven_labs_voice_settings"
|
|
1022
1026
|
require_relative "telnyx/models/calls/google_transcription_language"
|
|
@@ -1034,6 +1038,7 @@ require_relative "telnyx/models/calls/transcription_engine_assemblyai_config"
|
|
|
1034
1038
|
require_relative "telnyx/models/calls/transcription_engine_azure_config"
|
|
1035
1039
|
require_relative "telnyx/models/calls/transcription_engine_b_config"
|
|
1036
1040
|
require_relative "telnyx/models/calls/transcription_engine_cohere_config"
|
|
1041
|
+
require_relative "telnyx/models/calls/transcription_engine_community_config"
|
|
1037
1042
|
require_relative "telnyx/models/calls/transcription_engine_deepgram_config"
|
|
1038
1043
|
require_relative "telnyx/models/calls/transcription_engine_google_config"
|
|
1039
1044
|
require_relative "telnyx/models/calls/transcription_engine_humain_config"
|
|
@@ -1720,6 +1725,13 @@ require_relative "telnyx/models/iam/api_keys/scope_update_params"
|
|
|
1720
1725
|
require_relative "telnyx/models/iam/grant_create_params"
|
|
1721
1726
|
require_relative "telnyx/models/iam/grant_delete_params"
|
|
1722
1727
|
require_relative "telnyx/models/iam/grant_list_params"
|
|
1728
|
+
require_relative "telnyx/models/iam/guardrail/iam_guardrail_statement"
|
|
1729
|
+
require_relative "telnyx/models/iam/guardrail/iam_guardrail_statement_response"
|
|
1730
|
+
require_relative "telnyx/models/iam/guardrail/statement_create_params"
|
|
1731
|
+
require_relative "telnyx/models/iam/guardrail/statement_delete_params"
|
|
1732
|
+
require_relative "telnyx/models/iam/guardrail/statement_list_params"
|
|
1733
|
+
require_relative "telnyx/models/iam/guardrail/statement_update_params"
|
|
1734
|
+
require_relative "telnyx/models/iam/guardrail_delete_all_params"
|
|
1723
1735
|
require_relative "telnyx/models/iam/iam_action"
|
|
1724
1736
|
require_relative "telnyx/models/iam/iam_api_key"
|
|
1725
1737
|
require_relative "telnyx/models/iam/iam_api_key_response"
|
|
@@ -1730,12 +1742,14 @@ require_relative "telnyx/models/iam/iam_role"
|
|
|
1730
1742
|
require_relative "telnyx/models/iam/iam_role_response"
|
|
1731
1743
|
require_relative "telnyx/models/iam/iam_service_account"
|
|
1732
1744
|
require_relative "telnyx/models/iam/iam_service_account_response"
|
|
1745
|
+
require_relative "telnyx/models/iam/iam_settings"
|
|
1733
1746
|
require_relative "telnyx/models/iam/iam_settings_response"
|
|
1734
1747
|
require_relative "telnyx/models/iam/role_create_params"
|
|
1735
1748
|
require_relative "telnyx/models/iam/role_delete_params"
|
|
1736
1749
|
require_relative "telnyx/models/iam/role_list_params"
|
|
1737
1750
|
require_relative "telnyx/models/iam/role_retrieve_params"
|
|
1738
1751
|
require_relative "telnyx/models/iam/roles/iam_role_statement"
|
|
1752
|
+
require_relative "telnyx/models/iam/roles/iam_role_statement_conditions"
|
|
1739
1753
|
require_relative "telnyx/models/iam/roles/iam_role_statement_response"
|
|
1740
1754
|
require_relative "telnyx/models/iam/roles/statement_create_params"
|
|
1741
1755
|
require_relative "telnyx/models/iam/roles/statement_delete_params"
|
|
@@ -2442,6 +2456,7 @@ require_relative "telnyx/models/phone_numbers/csv_download_create_response"
|
|
|
2442
2456
|
require_relative "telnyx/models/phone_numbers/csv_download_list_params"
|
|
2443
2457
|
require_relative "telnyx/models/phone_numbers/csv_download_retrieve_params"
|
|
2444
2458
|
require_relative "telnyx/models/phone_numbers/csv_download_retrieve_response"
|
|
2459
|
+
require_relative "telnyx/models/phone_numbers/emergency_settings"
|
|
2445
2460
|
require_relative "telnyx/models/phone_numbers/job_delete_batch_params"
|
|
2446
2461
|
require_relative "telnyx/models/phone_numbers/job_delete_batch_response"
|
|
2447
2462
|
require_relative "telnyx/models/phone_numbers/job_list_params"
|
|
@@ -2457,6 +2472,7 @@ require_relative "telnyx/models/phone_numbers/messaging_retrieve_params"
|
|
|
2457
2472
|
require_relative "telnyx/models/phone_numbers/messaging_retrieve_response"
|
|
2458
2473
|
require_relative "telnyx/models/phone_numbers/messaging_update_params"
|
|
2459
2474
|
require_relative "telnyx/models/phone_numbers/messaging_update_response"
|
|
2475
|
+
require_relative "telnyx/models/phone_numbers/numbers_cnam_listing"
|
|
2460
2476
|
require_relative "telnyx/models/phone_numbers/numbers_phone_numbers_job"
|
|
2461
2477
|
require_relative "telnyx/models/phone_numbers/numbers_phone_number_with_voice_settings"
|
|
2462
2478
|
require_relative "telnyx/models/phone_numbers/phone_numbers_job"
|
|
@@ -3366,6 +3382,7 @@ require_relative "telnyx/models/whatsapp/business_account_retrieve_params"
|
|
|
3366
3382
|
require_relative "telnyx/models/whatsapp/business_account_retrieve_response"
|
|
3367
3383
|
require_relative "telnyx/models/whatsapp/business_accounts/phone_number_initialize_verification_params"
|
|
3368
3384
|
require_relative "telnyx/models/whatsapp/business_accounts/phone_number_list_params"
|
|
3385
|
+
require_relative "telnyx/models/whatsapp/business_accounts/phone_number_list_response"
|
|
3369
3386
|
require_relative "telnyx/models/whatsapp/business_accounts/setting_retrieve_params"
|
|
3370
3387
|
require_relative "telnyx/models/whatsapp/business_accounts/setting_retrieve_response"
|
|
3371
3388
|
require_relative "telnyx/models/whatsapp/business_accounts/setting_update_params"
|
|
@@ -3380,6 +3397,7 @@ require_relative "telnyx/models/whatsapp/phone_number_delete_params"
|
|
|
3380
3397
|
require_relative "telnyx/models/whatsapp/phone_number_get_params"
|
|
3381
3398
|
require_relative "telnyx/models/whatsapp/phone_number_get_response"
|
|
3382
3399
|
require_relative "telnyx/models/whatsapp/phone_number_list_params"
|
|
3400
|
+
require_relative "telnyx/models/whatsapp/phone_number_list_response"
|
|
3383
3401
|
require_relative "telnyx/models/whatsapp/phone_number_resend_verification_params"
|
|
3384
3402
|
require_relative "telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params"
|
|
3385
3403
|
require_relative "telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response"
|
|
@@ -3704,6 +3722,8 @@ require_relative "telnyx/resources/iam/api_keys"
|
|
|
3704
3722
|
require_relative "telnyx/resources/iam/api_keys/actions"
|
|
3705
3723
|
require_relative "telnyx/resources/iam/api_keys/scopes"
|
|
3706
3724
|
require_relative "telnyx/resources/iam/grants"
|
|
3725
|
+
require_relative "telnyx/resources/iam/guardrail"
|
|
3726
|
+
require_relative "telnyx/resources/iam/guardrail/statements"
|
|
3707
3727
|
require_relative "telnyx/resources/iam/roles"
|
|
3708
3728
|
require_relative "telnyx/resources/iam/roles/statements"
|
|
3709
3729
|
require_relative "telnyx/resources/iam/service_accounts"
|
|
@@ -141,8 +141,11 @@ module Telnyx
|
|
|
141
141
|
# Controls the reasoning effort for models that support it. When set, the model
|
|
142
142
|
# spends more or less compute on internal reasoning before generating its
|
|
143
143
|
# response. Supported values: none, minimal, low, medium, high, xhigh, max. Not
|
|
144
|
-
# all models support all values;
|
|
145
|
-
#
|
|
144
|
+
# all models support all values; each model's accepted set is returned as
|
|
145
|
+
# `supported_reasoning_efforts` in the model list. An unsupported value is
|
|
146
|
+
# rejected with a 400 error naming the value and the supported set. When omitted,
|
|
147
|
+
# reasoning models use their default effort level. On the Responses API the same
|
|
148
|
+
# control is `reasoning.effort`.
|
|
146
149
|
sig do
|
|
147
150
|
returns(
|
|
148
151
|
T.nilable(
|
|
@@ -436,8 +439,11 @@ module Telnyx
|
|
|
436
439
|
# Controls the reasoning effort for models that support it. When set, the model
|
|
437
440
|
# spends more or less compute on internal reasoning before generating its
|
|
438
441
|
# response. Supported values: none, minimal, low, medium, high, xhigh, max. Not
|
|
439
|
-
# all models support all values;
|
|
440
|
-
#
|
|
442
|
+
# all models support all values; each model's accepted set is returned as
|
|
443
|
+
# `supported_reasoning_efforts` in the model list. An unsupported value is
|
|
444
|
+
# rejected with a 400 error naming the value and the supported set. When omitted,
|
|
445
|
+
# reasoning models use their default effort level. On the Responses API the same
|
|
446
|
+
# control is `reasoning.effort`.
|
|
441
447
|
reasoning_effort: nil,
|
|
442
448
|
# Optional data-residency region the request should be served from, using the same
|
|
443
449
|
# vocabulary as your account's Data Locality setting. Behavior depends on `mode`.
|
|
@@ -778,8 +784,11 @@ module Telnyx
|
|
|
778
784
|
# Controls the reasoning effort for models that support it. When set, the model
|
|
779
785
|
# spends more or less compute on internal reasoning before generating its
|
|
780
786
|
# response. Supported values: none, minimal, low, medium, high, xhigh, max. Not
|
|
781
|
-
# all models support all values;
|
|
782
|
-
#
|
|
787
|
+
# all models support all values; each model's accepted set is returned as
|
|
788
|
+
# `supported_reasoning_efforts` in the model list. An unsupported value is
|
|
789
|
+
# rejected with a 400 error naming the value and the supported set. When omitted,
|
|
790
|
+
# reasoning models use their default effort level. On the Responses API the same
|
|
791
|
+
# control is `reasoning.effort`.
|
|
783
792
|
module ReasoningEffort
|
|
784
793
|
extend Telnyx::Internal::Type::Enum
|
|
785
794
|
|