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,90 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
IamSettings = Iam::IamSettings
|
|
6
|
+
|
|
7
|
+
module Iam
|
|
8
|
+
class IamSettings < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::Iam::IamSettings, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Whether IAM is enabled, so that granted roles decide what the organization's
|
|
15
|
+
# users and service accounts may do.
|
|
16
|
+
sig { returns(T::Boolean) }
|
|
17
|
+
attr_accessor :enabled
|
|
18
|
+
|
|
19
|
+
# The organization the settings belong to.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :organization_id
|
|
22
|
+
|
|
23
|
+
# Identifies the type of the resource.
|
|
24
|
+
sig { returns(Telnyx::Iam::IamSettings::RecordType::TaggedSymbol) }
|
|
25
|
+
attr_accessor :record_type
|
|
26
|
+
|
|
27
|
+
# When the settings were last changed. `null` until they are first changed.
|
|
28
|
+
sig { returns(T.nilable(Time)) }
|
|
29
|
+
attr_accessor :updated_at
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
enabled: T::Boolean,
|
|
34
|
+
organization_id: String,
|
|
35
|
+
record_type: Telnyx::Iam::IamSettings::RecordType::OrSymbol,
|
|
36
|
+
updated_at: T.nilable(Time)
|
|
37
|
+
).returns(T.attached_class)
|
|
38
|
+
end
|
|
39
|
+
def self.new(
|
|
40
|
+
# Whether IAM is enabled, so that granted roles decide what the organization's
|
|
41
|
+
# users and service accounts may do.
|
|
42
|
+
enabled:,
|
|
43
|
+
# The organization the settings belong to.
|
|
44
|
+
organization_id:,
|
|
45
|
+
# Identifies the type of the resource.
|
|
46
|
+
record_type:,
|
|
47
|
+
# When the settings were last changed. `null` until they are first changed.
|
|
48
|
+
updated_at:
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
override.returns(
|
|
54
|
+
{
|
|
55
|
+
enabled: T::Boolean,
|
|
56
|
+
organization_id: String,
|
|
57
|
+
record_type: Telnyx::Iam::IamSettings::RecordType::TaggedSymbol,
|
|
58
|
+
updated_at: T.nilable(Time)
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
def to_hash
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Identifies the type of the resource.
|
|
66
|
+
module RecordType
|
|
67
|
+
extend Telnyx::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
TaggedSymbol =
|
|
70
|
+
T.type_alias { T.all(Symbol, Telnyx::Iam::IamSettings::RecordType) }
|
|
71
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
72
|
+
|
|
73
|
+
IAM_SETTINGS =
|
|
74
|
+
T.let(
|
|
75
|
+
:iam_settings,
|
|
76
|
+
Telnyx::Iam::IamSettings::RecordType::TaggedSymbol
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
sig do
|
|
80
|
+
override.returns(
|
|
81
|
+
T::Array[Telnyx::Iam::IamSettings::RecordType::TaggedSymbol]
|
|
82
|
+
)
|
|
83
|
+
end
|
|
84
|
+
def self.values
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
@@ -11,124 +11,23 @@ module Telnyx
|
|
|
11
11
|
T.any(Telnyx::Iam::IamSettingsResponse, Telnyx::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig { returns(Telnyx::Iam::
|
|
14
|
+
sig { returns(Telnyx::Iam::IamSettings) }
|
|
15
15
|
attr_reader :data
|
|
16
16
|
|
|
17
|
-
sig
|
|
18
|
-
params(data: Telnyx::Iam::IamSettingsResponse::Data::OrHash).void
|
|
19
|
-
end
|
|
17
|
+
sig { params(data: Telnyx::Iam::IamSettings::OrHash).void }
|
|
20
18
|
attr_writer :data
|
|
21
19
|
|
|
22
20
|
sig do
|
|
23
|
-
params(data: Telnyx::Iam::
|
|
21
|
+
params(data: Telnyx::Iam::IamSettings::OrHash).returns(
|
|
24
22
|
T.attached_class
|
|
25
23
|
)
|
|
26
24
|
end
|
|
27
25
|
def self.new(data:)
|
|
28
26
|
end
|
|
29
27
|
|
|
30
|
-
sig
|
|
31
|
-
override.returns({ data: Telnyx::Iam::IamSettingsResponse::Data })
|
|
32
|
-
end
|
|
28
|
+
sig { override.returns({ data: Telnyx::Iam::IamSettings }) }
|
|
33
29
|
def to_hash
|
|
34
30
|
end
|
|
35
|
-
|
|
36
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
37
|
-
OrHash =
|
|
38
|
-
T.type_alias do
|
|
39
|
-
T.any(
|
|
40
|
-
Telnyx::Iam::IamSettingsResponse::Data,
|
|
41
|
-
Telnyx::Internal::AnyHash
|
|
42
|
-
)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# Whether IAM is enabled, so that granted roles decide what the organization's
|
|
46
|
-
# users and service accounts may do.
|
|
47
|
-
sig { returns(T::Boolean) }
|
|
48
|
-
attr_accessor :enabled
|
|
49
|
-
|
|
50
|
-
# The organization the settings belong to.
|
|
51
|
-
sig { returns(String) }
|
|
52
|
-
attr_accessor :organization_id
|
|
53
|
-
|
|
54
|
-
# Identifies the type of the resource.
|
|
55
|
-
sig do
|
|
56
|
-
returns(
|
|
57
|
-
Telnyx::Iam::IamSettingsResponse::Data::RecordType::TaggedSymbol
|
|
58
|
-
)
|
|
59
|
-
end
|
|
60
|
-
attr_accessor :record_type
|
|
61
|
-
|
|
62
|
-
# When the settings were last changed. `null` until they are first changed.
|
|
63
|
-
sig { returns(T.nilable(Time)) }
|
|
64
|
-
attr_accessor :updated_at
|
|
65
|
-
|
|
66
|
-
sig do
|
|
67
|
-
params(
|
|
68
|
-
enabled: T::Boolean,
|
|
69
|
-
organization_id: String,
|
|
70
|
-
record_type:
|
|
71
|
-
Telnyx::Iam::IamSettingsResponse::Data::RecordType::OrSymbol,
|
|
72
|
-
updated_at: T.nilable(Time)
|
|
73
|
-
).returns(T.attached_class)
|
|
74
|
-
end
|
|
75
|
-
def self.new(
|
|
76
|
-
# Whether IAM is enabled, so that granted roles decide what the organization's
|
|
77
|
-
# users and service accounts may do.
|
|
78
|
-
enabled:,
|
|
79
|
-
# The organization the settings belong to.
|
|
80
|
-
organization_id:,
|
|
81
|
-
# Identifies the type of the resource.
|
|
82
|
-
record_type:,
|
|
83
|
-
# When the settings were last changed. `null` until they are first changed.
|
|
84
|
-
updated_at:
|
|
85
|
-
)
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
sig do
|
|
89
|
-
override.returns(
|
|
90
|
-
{
|
|
91
|
-
enabled: T::Boolean,
|
|
92
|
-
organization_id: String,
|
|
93
|
-
record_type:
|
|
94
|
-
Telnyx::Iam::IamSettingsResponse::Data::RecordType::TaggedSymbol,
|
|
95
|
-
updated_at: T.nilable(Time)
|
|
96
|
-
}
|
|
97
|
-
)
|
|
98
|
-
end
|
|
99
|
-
def to_hash
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
# Identifies the type of the resource.
|
|
103
|
-
module RecordType
|
|
104
|
-
extend Telnyx::Internal::Type::Enum
|
|
105
|
-
|
|
106
|
-
TaggedSymbol =
|
|
107
|
-
T.type_alias do
|
|
108
|
-
T.all(
|
|
109
|
-
Symbol,
|
|
110
|
-
Telnyx::Iam::IamSettingsResponse::Data::RecordType
|
|
111
|
-
)
|
|
112
|
-
end
|
|
113
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
114
|
-
|
|
115
|
-
IAM_SETTINGS =
|
|
116
|
-
T.let(
|
|
117
|
-
:iam_settings,
|
|
118
|
-
Telnyx::Iam::IamSettingsResponse::Data::RecordType::TaggedSymbol
|
|
119
|
-
)
|
|
120
|
-
|
|
121
|
-
sig do
|
|
122
|
-
override.returns(
|
|
123
|
-
T::Array[
|
|
124
|
-
Telnyx::Iam::IamSettingsResponse::Data::RecordType::TaggedSymbol
|
|
125
|
-
]
|
|
126
|
-
)
|
|
127
|
-
end
|
|
128
|
-
def self.values
|
|
129
|
-
end
|
|
130
|
-
end
|
|
131
|
-
end
|
|
132
31
|
end
|
|
133
32
|
end
|
|
134
33
|
end
|
|
@@ -21,6 +21,18 @@ module Telnyx
|
|
|
21
21
|
sig { returns(T::Array[String]) }
|
|
22
22
|
attr_accessor :actions
|
|
23
23
|
|
|
24
|
+
# The statement's conditions. `ip` is `null` when the statement has no IP
|
|
25
|
+
# condition.
|
|
26
|
+
sig { returns(Telnyx::Iam::Roles::IamRoleStatementConditions) }
|
|
27
|
+
attr_reader :conditions
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash
|
|
32
|
+
).void
|
|
33
|
+
end
|
|
34
|
+
attr_writer :conditions
|
|
35
|
+
|
|
24
36
|
# When the statement was created.
|
|
25
37
|
sig { returns(Time) }
|
|
26
38
|
attr_accessor :created_at
|
|
@@ -51,6 +63,8 @@ module Telnyx
|
|
|
51
63
|
params(
|
|
52
64
|
id: String,
|
|
53
65
|
actions: T::Array[String],
|
|
66
|
+
conditions:
|
|
67
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash,
|
|
54
68
|
created_at: Time,
|
|
55
69
|
effect: Telnyx::Iam::Roles::IamRoleStatement::Effect::OrSymbol,
|
|
56
70
|
record_type:
|
|
@@ -64,6 +78,9 @@ module Telnyx
|
|
|
64
78
|
id:,
|
|
65
79
|
# Action IDs, wildcards such as `number_order.*`, or `*`.
|
|
66
80
|
actions:,
|
|
81
|
+
# The statement's conditions. `ip` is `null` when the statement has no IP
|
|
82
|
+
# condition.
|
|
83
|
+
conditions:,
|
|
67
84
|
# When the statement was created.
|
|
68
85
|
created_at:,
|
|
69
86
|
# Whether the statement allows or denies its actions.
|
|
@@ -82,6 +99,7 @@ module Telnyx
|
|
|
82
99
|
{
|
|
83
100
|
id: String,
|
|
84
101
|
actions: T::Array[String],
|
|
102
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
85
103
|
created_at: Time,
|
|
86
104
|
effect:
|
|
87
105
|
Telnyx::Iam::Roles::IamRoleStatement::Effect::TaggedSymbol,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Iam
|
|
6
|
+
module Roles
|
|
7
|
+
class IamRoleStatementConditions < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
12
|
+
Telnyx::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# IPv4 or IPv6 addresses or CIDR ranges, such as `203.0.113.0/24`. The statement
|
|
17
|
+
# applies only to requests from one of them. A bare address is a single host.
|
|
18
|
+
# `null` means no IP condition.
|
|
19
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
20
|
+
attr_accessor :ip
|
|
21
|
+
|
|
22
|
+
# Conditions a request must meet for the statement to apply to it.
|
|
23
|
+
sig do
|
|
24
|
+
params(ip: T.nilable(T::Array[String])).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(
|
|
27
|
+
# IPv4 or IPv6 addresses or CIDR ranges, such as `203.0.113.0/24`. The statement
|
|
28
|
+
# applies only to requests from one of them. A bare address is a single host.
|
|
29
|
+
# `null` means no IP condition.
|
|
30
|
+
ip: nil
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
sig { override.returns({ ip: T.nilable(T::Array[String]) }) }
|
|
35
|
+
def to_hash
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -25,6 +25,19 @@ module Telnyx
|
|
|
25
25
|
sig { returns(T::Array[String]) }
|
|
26
26
|
attr_accessor :actions
|
|
27
27
|
|
|
28
|
+
# Optional conditions. Without them, the statement applies to every request.
|
|
29
|
+
sig do
|
|
30
|
+
returns(T.nilable(Telnyx::Iam::Roles::IamRoleStatementConditions))
|
|
31
|
+
end
|
|
32
|
+
attr_reader :conditions
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
params(
|
|
36
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash
|
|
37
|
+
).void
|
|
38
|
+
end
|
|
39
|
+
attr_writer :conditions
|
|
40
|
+
|
|
28
41
|
# Whether the statement allows or denies its actions.
|
|
29
42
|
sig do
|
|
30
43
|
returns(
|
|
@@ -47,6 +60,8 @@ module Telnyx
|
|
|
47
60
|
params(
|
|
48
61
|
role_id: String,
|
|
49
62
|
actions: T::Array[String],
|
|
63
|
+
conditions:
|
|
64
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash,
|
|
50
65
|
effect:
|
|
51
66
|
Telnyx::Iam::Roles::StatementCreateParams::Effect::OrSymbol,
|
|
52
67
|
request_options: Telnyx::RequestOptions::OrHash
|
|
@@ -58,6 +73,8 @@ module Telnyx
|
|
|
58
73
|
# which covers every action ID that starts with `number_order.`, or `*`, which
|
|
59
74
|
# covers every action. Every entry must match the catalog. Duplicates are removed.
|
|
60
75
|
actions:,
|
|
76
|
+
# Optional conditions. Without them, the statement applies to every request.
|
|
77
|
+
conditions: nil,
|
|
61
78
|
# Whether the statement allows or denies its actions.
|
|
62
79
|
effect: nil,
|
|
63
80
|
request_options: {}
|
|
@@ -69,6 +86,7 @@ module Telnyx
|
|
|
69
86
|
{
|
|
70
87
|
role_id: String,
|
|
71
88
|
actions: T::Array[String],
|
|
89
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
72
90
|
effect:
|
|
73
91
|
Telnyx::Iam::Roles::StatementCreateParams::Effect::OrSymbol,
|
|
74
92
|
request_options: Telnyx::RequestOptions
|
|
@@ -34,6 +34,19 @@ module Telnyx
|
|
|
34
34
|
end
|
|
35
35
|
attr_accessor :effect
|
|
36
36
|
|
|
37
|
+
# Optional conditions. Leaving them out clears the statement's conditions.
|
|
38
|
+
sig do
|
|
39
|
+
returns(T.nilable(Telnyx::Iam::Roles::IamRoleStatementConditions))
|
|
40
|
+
end
|
|
41
|
+
attr_reader :conditions
|
|
42
|
+
|
|
43
|
+
sig do
|
|
44
|
+
params(
|
|
45
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash
|
|
46
|
+
).void
|
|
47
|
+
end
|
|
48
|
+
attr_writer :conditions
|
|
49
|
+
|
|
37
50
|
sig do
|
|
38
51
|
params(
|
|
39
52
|
role_id: String,
|
|
@@ -41,6 +54,8 @@ module Telnyx
|
|
|
41
54
|
actions: T::Array[String],
|
|
42
55
|
effect:
|
|
43
56
|
Telnyx::Iam::Roles::StatementUpdateParams::Effect::OrSymbol,
|
|
57
|
+
conditions:
|
|
58
|
+
Telnyx::Iam::Roles::IamRoleStatementConditions::OrHash,
|
|
44
59
|
request_options: Telnyx::RequestOptions::OrHash
|
|
45
60
|
).returns(T.attached_class)
|
|
46
61
|
end
|
|
@@ -53,6 +68,8 @@ module Telnyx
|
|
|
53
68
|
actions:,
|
|
54
69
|
# Whether the statement allows or denies its actions.
|
|
55
70
|
effect:,
|
|
71
|
+
# Optional conditions. Leaving them out clears the statement's conditions.
|
|
72
|
+
conditions: nil,
|
|
56
73
|
request_options: {}
|
|
57
74
|
)
|
|
58
75
|
end
|
|
@@ -65,6 +82,7 @@ module Telnyx
|
|
|
65
82
|
actions: T::Array[String],
|
|
66
83
|
effect:
|
|
67
84
|
Telnyx::Iam::Roles::StatementUpdateParams::Effect::OrSymbol,
|
|
85
|
+
conditions: Telnyx::Iam::Roles::IamRoleStatementConditions,
|
|
68
86
|
request_options: Telnyx::RequestOptions
|
|
69
87
|
}
|
|
70
88
|
)
|
|
@@ -31,9 +31,11 @@ module Telnyx
|
|
|
31
31
|
|
|
32
32
|
# Why, as a code. `action_allowed` when the action is allowed, `action_denied`
|
|
33
33
|
# when a role denies it, and `action_not_granted` when no role allows it.
|
|
34
|
-
# `
|
|
35
|
-
# `
|
|
36
|
-
#
|
|
34
|
+
# `guardrail_denied` when a statement of the organization's guardrail denies it,
|
|
35
|
+
# and `guardrail_not_allowed` when the guardrail has statements and none allows
|
|
36
|
+
# it. The guardrail applies to the organization owner too. `iam_disabled` when the
|
|
37
|
+
# organization has not enabled IAM, and `organization_owner` when the principal is
|
|
38
|
+
# the organization owner, who holds no roles.
|
|
37
39
|
sig { returns(String) }
|
|
38
40
|
attr_accessor :reason
|
|
39
41
|
|
|
@@ -68,9 +70,11 @@ module Telnyx
|
|
|
68
70
|
detail:,
|
|
69
71
|
# Why, as a code. `action_allowed` when the action is allowed, `action_denied`
|
|
70
72
|
# when a role denies it, and `action_not_granted` when no role allows it.
|
|
71
|
-
# `
|
|
72
|
-
# `
|
|
73
|
-
#
|
|
73
|
+
# `guardrail_denied` when a statement of the organization's guardrail denies it,
|
|
74
|
+
# and `guardrail_not_allowed` when the guardrail has statements and none allows
|
|
75
|
+
# it. The guardrail applies to the organization owner too. `iam_disabled` when the
|
|
76
|
+
# organization has not enabled IAM, and `organization_owner` when the principal is
|
|
77
|
+
# the organization owner, who holds no roles.
|
|
74
78
|
reason:,
|
|
75
79
|
# Identifies the type of the resource.
|
|
76
80
|
record_type:
|
|
@@ -23,11 +23,17 @@ module Telnyx
|
|
|
23
23
|
sig { returns(Telnyx::IamExplainParams::PrincipalType::OrSymbol) }
|
|
24
24
|
attr_accessor :principal_type
|
|
25
25
|
|
|
26
|
+
# The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without
|
|
27
|
+
# it, a matching statement with an IP condition counts as a deny.
|
|
28
|
+
sig { returns(T.nilable(String)) }
|
|
29
|
+
attr_accessor :ip
|
|
30
|
+
|
|
26
31
|
sig do
|
|
27
32
|
params(
|
|
28
33
|
action: String,
|
|
29
34
|
principal_id: String,
|
|
30
35
|
principal_type: Telnyx::IamExplainParams::PrincipalType::OrSymbol,
|
|
36
|
+
ip: T.nilable(String),
|
|
31
37
|
request_options: Telnyx::RequestOptions::OrHash
|
|
32
38
|
).returns(T.attached_class)
|
|
33
39
|
end
|
|
@@ -38,6 +44,9 @@ module Telnyx
|
|
|
38
44
|
principal_id:,
|
|
39
45
|
# Whether the principal is a user or a service account.
|
|
40
46
|
principal_type:,
|
|
47
|
+
# The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without
|
|
48
|
+
# it, a matching statement with an IP condition counts as a deny.
|
|
49
|
+
ip: nil,
|
|
41
50
|
request_options: {}
|
|
42
51
|
)
|
|
43
52
|
end
|
|
@@ -48,6 +57,7 @@ module Telnyx
|
|
|
48
57
|
action: String,
|
|
49
58
|
principal_id: String,
|
|
50
59
|
principal_type: Telnyx::IamExplainParams::PrincipalType::OrSymbol,
|
|
60
|
+
ip: T.nilable(String),
|
|
51
61
|
request_options: Telnyx::RequestOptions
|
|
52
62
|
}
|
|
53
63
|
)
|
|
@@ -90,7 +90,8 @@ module Telnyx
|
|
|
90
90
|
attr_accessor :decision
|
|
91
91
|
|
|
92
92
|
# Why, as a code, such as `action_allowed`, `action_denied`, `action_not_granted`,
|
|
93
|
-
# `credential_scope_denied`,
|
|
93
|
+
# `credential_scope_denied`, `credential_scope_not_allowed`, `guardrail_denied`,
|
|
94
|
+
# or `guardrail_not_allowed`.
|
|
94
95
|
sig { returns(String) }
|
|
95
96
|
attr_accessor :decision_reason
|
|
96
97
|
|
|
@@ -104,7 +105,7 @@ module Telnyx
|
|
|
104
105
|
|
|
105
106
|
# The HTTP method of the request.
|
|
106
107
|
sig { returns(String) }
|
|
107
|
-
attr_accessor :
|
|
108
|
+
attr_accessor :http_method
|
|
108
109
|
|
|
109
110
|
# The path of the request.
|
|
110
111
|
sig { returns(String) }
|
|
@@ -147,7 +148,7 @@ module Telnyx
|
|
|
147
148
|
decision_reason: String,
|
|
148
149
|
denied_role_ids: T::Array[String],
|
|
149
150
|
ip_ingress: T.nilable(String),
|
|
150
|
-
|
|
151
|
+
http_method: String,
|
|
151
152
|
path: String,
|
|
152
153
|
record_type:
|
|
153
154
|
Telnyx::Models::IamRetrieveAccessLogsResponse::Data::RecordType::OrSymbol,
|
|
@@ -172,14 +173,15 @@ module Telnyx
|
|
|
172
173
|
# Whether the request was allowed or refused.
|
|
173
174
|
decision:,
|
|
174
175
|
# Why, as a code, such as `action_allowed`, `action_denied`, `action_not_granted`,
|
|
175
|
-
# `credential_scope_denied`,
|
|
176
|
+
# `credential_scope_denied`, `credential_scope_not_allowed`, `guardrail_denied`,
|
|
177
|
+
# or `guardrail_not_allowed`.
|
|
176
178
|
decision_reason:,
|
|
177
179
|
# The granted roles with a deny statement for the action.
|
|
178
180
|
denied_role_ids:,
|
|
179
181
|
# The client address Telnyx saw.
|
|
180
182
|
ip_ingress:,
|
|
181
183
|
# The HTTP method of the request.
|
|
182
|
-
|
|
184
|
+
http_method:,
|
|
183
185
|
# The path of the request.
|
|
184
186
|
path:,
|
|
185
187
|
# Identifies the type of the resource.
|
|
@@ -209,7 +211,7 @@ module Telnyx
|
|
|
209
211
|
decision_reason: String,
|
|
210
212
|
denied_role_ids: T::Array[String],
|
|
211
213
|
ip_ingress: T.nilable(String),
|
|
212
|
-
|
|
214
|
+
http_method: String,
|
|
213
215
|
path: String,
|
|
214
216
|
record_type:
|
|
215
217
|
Telnyx::Models::IamRetrieveAccessLogsResponse::Data::RecordType::TaggedSymbol,
|
|
@@ -102,14 +102,26 @@ module Telnyx
|
|
|
102
102
|
sig { returns(String) }
|
|
103
103
|
attr_accessor :action
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
# The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without
|
|
106
|
+
# it, a matching statement with an IP condition counts as a deny.
|
|
107
|
+
sig { returns(T.nilable(String)) }
|
|
108
|
+
attr_accessor :ip
|
|
109
|
+
|
|
110
|
+
sig do
|
|
111
|
+
params(action: String, ip: T.nilable(String)).returns(
|
|
112
|
+
T.attached_class
|
|
113
|
+
)
|
|
114
|
+
end
|
|
106
115
|
def self.new(
|
|
107
116
|
# An exact action ID from the catalog. A wildcard is refused.
|
|
108
|
-
action
|
|
117
|
+
action:,
|
|
118
|
+
# The client IPv4 or IPv6 address to decide for, without a CIDR prefix. Without
|
|
119
|
+
# it, a matching statement with an IP condition counts as a deny.
|
|
120
|
+
ip: nil
|
|
109
121
|
)
|
|
110
122
|
end
|
|
111
123
|
|
|
112
|
-
sig { override.returns({ action: String }) }
|
|
124
|
+
sig { override.returns({ action: String, ip: T.nilable(String) }) }
|
|
113
125
|
def to_hash
|
|
114
126
|
end
|
|
115
127
|
end
|