telnyx 5.173.0 → 5.174.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/client.rb +0 -4
- data/lib/telnyx/lib/access_token.rb +141 -0
- data/lib/telnyx/lib/telephony_credentials.rb +87 -0
- data/lib/telnyx/lib.rb +2 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings.rb +26 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings_response.rb +3 -41
- data/lib/telnyx/models/ai/memory/namespaces/summary_settings.rb +33 -0
- data/lib/telnyx/models/ai/transcription_challenger.rb +148 -0
- data/lib/telnyx/models/ai/transcription_fallback_model.rb +78 -0
- data/lib/telnyx/models/ai/transcription_settings.rb +6 -219
- data/lib/telnyx/models/compute/funcs/func_log_export_config.rb +96 -0
- data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +3 -89
- data/lib/telnyx/models/email_template_common.rb +5 -26
- data/lib/telnyx/models/email_template_create_params.rb +5 -26
- data/lib/telnyx/models/messaging_outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/messaging_profile_features.rb +16 -1
- data/lib/telnyx/models/model_metadata.rb +10 -1
- data/lib/telnyx/models/outbound_message_payload.rb +22 -1
- data/lib/telnyx/models/phone_numbers/numbers_phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job.rb +6 -50
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rb +28 -0
- data/lib/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rb +28 -0
- data/lib/telnyx/models/update_email_template_request.rb +5 -26
- data/lib/telnyx/models/variable_schema_entry.rb +28 -0
- data/lib/telnyx/models/whatsapp/hosted_signup_create_response.rb +3 -83
- data/lib/telnyx/models/whatsapp/hosted_signup_retrieve_response.rb +3 -84
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +3 -191
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +3 -192
- data/lib/telnyx/models/whatsapp/{hosted_signup_list_response.rb → whatsapp_hosted_signup.rb} +8 -6
- data/lib/telnyx/models/whatsapp/{phone_number_list_response.rb → whatsapp_phone_response.rb} +12 -12
- data/lib/telnyx/models.rb +2 -0
- data/lib/telnyx/resources/email_templates.rb +3 -3
- data/lib/telnyx/resources/portouts.rb +2 -1
- data/lib/telnyx/resources/whatsapp/business_accounts/phone_numbers.rb +2 -2
- data/lib/telnyx/resources/whatsapp/hosted_signups.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +10 -5
- data/rbi/telnyx/client.rbi +0 -3
- data/rbi/telnyx/lib/access_token.rbi +73 -0
- data/rbi/telnyx/lib/telephony_credentials.rbi +50 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings.rbi +58 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbi +4 -107
- data/rbi/telnyx/models/ai/memory/namespaces/summary_settings.rbi +51 -0
- data/rbi/telnyx/models/ai/transcription_challenger.rbi +318 -0
- data/rbi/telnyx/models/ai/transcription_fallback_model.rbi +171 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +7 -531
- data/rbi/telnyx/models/compute/funcs/func_log_export_config.rbi +175 -0
- data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +4 -176
- data/rbi/telnyx/models/email_template_common.rbi +3 -56
- data/rbi/telnyx/models/email_template_create_params.rbi +3 -59
- data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +36 -5
- data/rbi/telnyx/models/model_metadata.rbi +13 -0
- data/rbi/telnyx/models/outbound_message_payload.rbi +26 -0
- data/rbi/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbi +8 -96
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job.rbi +8 -94
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbi +49 -0
- data/rbi/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbi +49 -0
- data/rbi/telnyx/models/update_email_template_request.rbi +3 -59
- data/rbi/telnyx/models/variable_schema_entry.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/hosted_signup_create_response.rbi +6 -173
- data/rbi/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbi +6 -175
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +4 -366
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +6 -368
- data/rbi/telnyx/models/whatsapp/{hosted_signup_list_response.rbi → whatsapp_hosted_signup.rbi} +11 -12
- data/rbi/telnyx/models/whatsapp/{phone_number_list_response.rbi → whatsapp_phone_response.rbi} +23 -23
- data/rbi/telnyx/models.rbi +2 -0
- data/rbi/telnyx/resources/email_templates.rbi +3 -18
- data/rbi/telnyx/resources/portouts.rbi +2 -1
- data/rbi/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/hosted_signups.rbi +1 -1
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +1 -1
- data/sig/telnyx/client.rbs +0 -2
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings.rbs +30 -0
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbs +4 -37
- data/sig/telnyx/models/ai/memory/namespaces/summary_settings.rbs +19 -0
- data/sig/telnyx/models/ai/transcription_challenger.rbs +98 -0
- data/sig/telnyx/models/ai/transcription_fallback_model.rbs +63 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +8 -159
- data/sig/telnyx/models/compute/funcs/func_log_export_config.rbs +96 -0
- data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +6 -95
- data/sig/telnyx/models/email_template_common.rbs +4 -18
- data/sig/telnyx/models/email_template_create_params.rbs +4 -18
- data/sig/telnyx/models/messaging_outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +14 -3
- data/sig/telnyx/models/model_metadata.rbs +7 -0
- data/sig/telnyx/models/outbound_message_payload.rbs +10 -0
- data/sig/telnyx/models/phone_numbers/numbers_phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job.rbs +12 -44
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_pending_operation.rbs +24 -0
- data/sig/telnyx/models/phone_numbers/phone_numbers_job_successful_operation.rbs +24 -0
- data/sig/telnyx/models/update_email_template_request.rbs +4 -18
- data/sig/telnyx/models/variable_schema_entry.rbs +17 -0
- data/sig/telnyx/models/whatsapp/hosted_signup_create_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/hosted_signup_retrieve_response.rbs +6 -90
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +6 -185
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +4 -189
- data/sig/telnyx/models/whatsapp/{hosted_signup_list_response.rbs → whatsapp_hosted_signup.rbs} +11 -9
- data/sig/telnyx/models/whatsapp/{phone_number_list_response.rbs → whatsapp_phone_response.rbs} +13 -11
- data/sig/telnyx/models.rbs +2 -0
- data/sig/telnyx/resources/email_templates.rbs +3 -3
- data/sig/telnyx/resources/whatsapp/business_accounts/phone_numbers.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/hosted_signups.rbs +1 -1
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +1 -1
- metadata +36 -17
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +0 -198
- data/lib/telnyx/resources/tts_integrations/actions.rb +0 -16
- data/lib/telnyx/resources/tts_integrations.rb +0 -18
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +0 -358
- data/rbi/telnyx/resources/tts_integrations/actions.rbi +0 -14
- data/rbi/telnyx/resources/tts_integrations.rbi +0 -15
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +0 -186
- data/sig/telnyx/resources/tts_integrations/actions.rbs +0 -9
- data/sig/telnyx/resources/tts_integrations.rbs +0 -9
data/lib/telnyx.rb
CHANGED
|
@@ -395,6 +395,7 @@ require_relative "telnyx/models/ai/memory/namespace_list_params"
|
|
|
395
395
|
require_relative "telnyx/models/ai/memory/namespace_list_response"
|
|
396
396
|
require_relative "telnyx/models/ai/memory/namespace_retrieve_params"
|
|
397
397
|
require_relative "telnyx/models/ai/memory/namespace_retrieve_response"
|
|
398
|
+
require_relative "telnyx/models/ai/memory/namespaces/namespace_settings"
|
|
398
399
|
require_relative "telnyx/models/ai/memory/namespaces/namespace_settings_response"
|
|
399
400
|
require_relative "telnyx/models/ai/memory/namespaces/page_meta"
|
|
400
401
|
require_relative "telnyx/models/ai/memory/namespaces/profile_delete_params"
|
|
@@ -422,6 +423,7 @@ require_relative "telnyx/models/ai/memory/namespaces/profiles/source_retrieve_pa
|
|
|
422
423
|
require_relative "telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response"
|
|
423
424
|
require_relative "telnyx/models/ai/memory/namespaces/setting_list_params"
|
|
424
425
|
require_relative "telnyx/models/ai/memory/namespaces/setting_patch_all_params"
|
|
426
|
+
require_relative "telnyx/models/ai/memory/namespaces/summary_settings"
|
|
425
427
|
require_relative "telnyx/models/ai/messaging_settings"
|
|
426
428
|
require_relative "telnyx/models/ai/mission_clone_mission_params"
|
|
427
429
|
require_relative "telnyx/models/ai/mission_clone_mission_response"
|
|
@@ -586,7 +588,9 @@ require_relative "telnyx/models/ai/tool_node"
|
|
|
586
588
|
require_relative "telnyx/models/ai/tool_node_req"
|
|
587
589
|
require_relative "telnyx/models/ai/tool_retrieve_params"
|
|
588
590
|
require_relative "telnyx/models/ai/tool_update_params"
|
|
591
|
+
require_relative "telnyx/models/ai/transcription_challenger"
|
|
589
592
|
require_relative "telnyx/models/ai/transcription_endpointing_plan"
|
|
593
|
+
require_relative "telnyx/models/ai/transcription_fallback_model"
|
|
590
594
|
require_relative "telnyx/models/ai/transcription_settings"
|
|
591
595
|
require_relative "telnyx/models/ai/transcription_settings_config"
|
|
592
596
|
require_relative "telnyx/models/ai/transfer_tool"
|
|
@@ -964,6 +968,7 @@ require_relative "telnyx/models/compute/func_retrieve_ship_inspection_response"
|
|
|
964
968
|
require_relative "telnyx/models/compute/funcs/export_create_params"
|
|
965
969
|
require_relative "telnyx/models/compute/funcs/export_delete_all_params"
|
|
966
970
|
require_relative "telnyx/models/compute/funcs/export_list_params"
|
|
971
|
+
require_relative "telnyx/models/compute/funcs/func_log_export_config"
|
|
967
972
|
require_relative "telnyx/models/compute/funcs/func_log_export_config_response"
|
|
968
973
|
require_relative "telnyx/models/compute/functions_observability_pagination_meta"
|
|
969
974
|
require_relative "telnyx/models/compute/logs_meta"
|
|
@@ -2233,6 +2238,8 @@ require_relative "telnyx/models/phone_numbers/messaging_update_params"
|
|
|
2233
2238
|
require_relative "telnyx/models/phone_numbers/messaging_update_response"
|
|
2234
2239
|
require_relative "telnyx/models/phone_numbers/numbers_phone_numbers_job"
|
|
2235
2240
|
require_relative "telnyx/models/phone_numbers/phone_numbers_job"
|
|
2241
|
+
require_relative "telnyx/models/phone_numbers/phone_numbers_job_pending_operation"
|
|
2242
|
+
require_relative "telnyx/models/phone_numbers/phone_numbers_job_successful_operation"
|
|
2236
2243
|
require_relative "telnyx/models/phone_numbers/phone_number_with_voice_settings"
|
|
2237
2244
|
require_relative "telnyx/models/phone_numbers/voice_list_params"
|
|
2238
2245
|
require_relative "telnyx/models/phone_numbers/voicemail_create_params"
|
|
@@ -3011,6 +3018,7 @@ require_relative "telnyx/models/user_address_retrieve_response"
|
|
|
3011
3018
|
require_relative "telnyx/models/user_requirement"
|
|
3012
3019
|
require_relative "telnyx/models/user_tag_list_params"
|
|
3013
3020
|
require_relative "telnyx/models/user_tag_list_response"
|
|
3021
|
+
require_relative "telnyx/models/variable_schema_entry"
|
|
3014
3022
|
require_relative "telnyx/models/verification"
|
|
3015
3023
|
require_relative "telnyx/models/verification_retrieve_params"
|
|
3016
3024
|
require_relative "telnyx/models/verification_retrieve_response"
|
|
@@ -3110,7 +3118,6 @@ require_relative "telnyx/models/whatsapp/business_account_retrieve_params"
|
|
|
3110
3118
|
require_relative "telnyx/models/whatsapp/business_account_retrieve_response"
|
|
3111
3119
|
require_relative "telnyx/models/whatsapp/business_accounts/phone_number_initialize_verification_params"
|
|
3112
3120
|
require_relative "telnyx/models/whatsapp/business_accounts/phone_number_list_params"
|
|
3113
|
-
require_relative "telnyx/models/whatsapp/business_accounts/phone_number_list_response"
|
|
3114
3121
|
require_relative "telnyx/models/whatsapp/business_accounts/setting_retrieve_params"
|
|
3115
3122
|
require_relative "telnyx/models/whatsapp/business_accounts/setting_retrieve_response"
|
|
3116
3123
|
require_relative "telnyx/models/whatsapp/business_accounts/setting_update_params"
|
|
@@ -3119,14 +3126,12 @@ require_relative "telnyx/models/whatsapp/business_accounts/waba_settings"
|
|
|
3119
3126
|
require_relative "telnyx/models/whatsapp/hosted_signup_create_params"
|
|
3120
3127
|
require_relative "telnyx/models/whatsapp/hosted_signup_create_response"
|
|
3121
3128
|
require_relative "telnyx/models/whatsapp/hosted_signup_list_params"
|
|
3122
|
-
require_relative "telnyx/models/whatsapp/hosted_signup_list_response"
|
|
3123
3129
|
require_relative "telnyx/models/whatsapp/hosted_signup_retrieve_params"
|
|
3124
3130
|
require_relative "telnyx/models/whatsapp/hosted_signup_retrieve_response"
|
|
3125
3131
|
require_relative "telnyx/models/whatsapp/phone_number_delete_params"
|
|
3126
3132
|
require_relative "telnyx/models/whatsapp/phone_number_get_params"
|
|
3127
3133
|
require_relative "telnyx/models/whatsapp/phone_number_get_response"
|
|
3128
3134
|
require_relative "telnyx/models/whatsapp/phone_number_list_params"
|
|
3129
|
-
require_relative "telnyx/models/whatsapp/phone_number_list_response"
|
|
3130
3135
|
require_relative "telnyx/models/whatsapp/phone_number_resend_verification_params"
|
|
3131
3136
|
require_relative "telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params"
|
|
3132
3137
|
require_relative "telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response"
|
|
@@ -3169,6 +3174,8 @@ require_relative "telnyx/models/whatsapp/user_data_retrieve_params"
|
|
|
3169
3174
|
require_relative "telnyx/models/whatsapp/user_data_retrieve_response"
|
|
3170
3175
|
require_relative "telnyx/models/whatsapp/user_data_update_params"
|
|
3171
3176
|
require_relative "telnyx/models/whatsapp/user_data_update_response"
|
|
3177
|
+
require_relative "telnyx/models/whatsapp/whatsapp_hosted_signup"
|
|
3178
|
+
require_relative "telnyx/models/whatsapp/whatsapp_phone_response"
|
|
3172
3179
|
require_relative "telnyx/models/whatsapp/whatsapp_template_body_component"
|
|
3173
3180
|
require_relative "telnyx/models/whatsapp/whatsapp_template_buttons_component"
|
|
3174
3181
|
require_relative "telnyx/models/whatsapp/whatsapp_template_carousel_component"
|
|
@@ -3640,8 +3647,6 @@ require_relative "telnyx/resources/texml/calls"
|
|
|
3640
3647
|
require_relative "telnyx/resources/texml_applications"
|
|
3641
3648
|
require_relative "telnyx/resources/text_to_speech"
|
|
3642
3649
|
require_relative "telnyx/resources/traffic_policy_profiles"
|
|
3643
|
-
require_relative "telnyx/resources/tts_integrations"
|
|
3644
|
-
require_relative "telnyx/resources/tts_integrations/actions"
|
|
3645
3650
|
require_relative "telnyx/resources/tunnels"
|
|
3646
3651
|
require_relative "telnyx/resources/tunnels/actions"
|
|
3647
3652
|
require_relative "telnyx/resources/uac_connections"
|
data/rbi/telnyx/client.rbi
CHANGED
|
@@ -819,9 +819,6 @@ module Telnyx
|
|
|
819
819
|
sig { returns(Telnyx::Resources::DialMetrics) }
|
|
820
820
|
attr_reader :dial_metrics
|
|
821
821
|
|
|
822
|
-
sig { returns(Telnyx::Resources::TtsIntegrations) }
|
|
823
|
-
attr_reader :tts_integrations
|
|
824
|
-
|
|
825
822
|
# Tailscale Subnet Router operations
|
|
826
823
|
sig { returns(Telnyx::Resources::TailscaleSubnetRouters) }
|
|
827
824
|
attr_reader :tailscale_subnet_routers
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Lib
|
|
5
|
+
class AccessToken
|
|
6
|
+
DEFAULT_TTL = T.let(3600, Integer)
|
|
7
|
+
MAX_TTL = T.let(86_400, Integer)
|
|
8
|
+
CONTENT_TYPE = T.let("telnyx-webrtc;v=1", String)
|
|
9
|
+
ALGORITHM = T.let("HS256", String)
|
|
10
|
+
MATERIAL_FIELDS = T.let([:kid, :tel_token, :signing_secret].freeze, T::Array[Symbol])
|
|
11
|
+
|
|
12
|
+
class SignatureError < StandardError
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_reader :credential_id
|
|
17
|
+
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_reader :user_id
|
|
20
|
+
|
|
21
|
+
sig { returns(String) }
|
|
22
|
+
attr_reader :identity
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :expires_at
|
|
26
|
+
|
|
27
|
+
sig { returns(Integer) }
|
|
28
|
+
attr_reader :ttl
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
credential_id: String,
|
|
33
|
+
user_id: String,
|
|
34
|
+
identity: String,
|
|
35
|
+
token_material: T.any(T::Hash[T.any(Symbol, String), T.untyped], Telnyx::Internal::Type::BaseModel),
|
|
36
|
+
expires_at: T.nilable(String),
|
|
37
|
+
ttl: Integer
|
|
38
|
+
).void
|
|
39
|
+
end
|
|
40
|
+
def initialize(
|
|
41
|
+
# the telephony credential `id`
|
|
42
|
+
credential_id:,
|
|
43
|
+
# the credential's `user_id`
|
|
44
|
+
user_id:,
|
|
45
|
+
# the credential's `sip_username`
|
|
46
|
+
identity:,
|
|
47
|
+
# `kid`, `tel_token`, `signing_secret`
|
|
48
|
+
token_material:,
|
|
49
|
+
# the credential's `expires_at`, as the API returns it
|
|
50
|
+
expires_at: nil,
|
|
51
|
+
# token lifetime in seconds, 1..86400; default one hour
|
|
52
|
+
ttl: DEFAULT_TTL
|
|
53
|
+
)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
sig { params(now: Time).returns(String) }
|
|
57
|
+
def to_jwt(now: Time.now)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig { returns(String) }
|
|
61
|
+
def to_s
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
sig { params(jwt: String, signing_secret: String).returns(T::Hash[String, T.untyped]) }
|
|
65
|
+
def self.decode(jwt, signing_secret:)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig { params(signing_input: String, signing_secret: String).returns(String) }
|
|
69
|
+
def self.sign(signing_input, signing_secret)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Lib
|
|
5
|
+
module TelephonyCredentials
|
|
6
|
+
sig do
|
|
7
|
+
params(
|
|
8
|
+
credential: T.any(
|
|
9
|
+
String,
|
|
10
|
+
Telnyx::Models::TelephonyCredential,
|
|
11
|
+
Telnyx::Models::TelephonyCredentialCreateResponse,
|
|
12
|
+
Telnyx::Models::TelephonyCredentialRetrieveResponse
|
|
13
|
+
),
|
|
14
|
+
ttl: Integer,
|
|
15
|
+
token_material: T.nilable(T::Hash[T.any(Symbol, String), T.untyped]),
|
|
16
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
17
|
+
).returns(String)
|
|
18
|
+
end
|
|
19
|
+
def to_jwt(
|
|
20
|
+
# the credential id, the credential, or the `create` / `retrieve` response holding it
|
|
21
|
+
credential,
|
|
22
|
+
# token lifetime in seconds, 1..86400; default one hour
|
|
23
|
+
ttl: Telnyx::Lib::AccessToken::DEFAULT_TTL,
|
|
24
|
+
# `kid`, `tel_token`, `signing_secret` stored earlier; skips the lookup
|
|
25
|
+
token_material: nil,
|
|
26
|
+
request_options: {}
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
id: String,
|
|
33
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
34
|
+
).returns(T::Hash[Symbol, T.untyped])
|
|
35
|
+
end
|
|
36
|
+
def fetch_token_material(
|
|
37
|
+
# Identifies the resource.
|
|
38
|
+
id,
|
|
39
|
+
request_options: {}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
module Resources
|
|
46
|
+
class TelephonyCredentials
|
|
47
|
+
include Telnyx::Lib::TelephonyCredentials
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
module Memory
|
|
7
|
+
NamespaceSettings = Namespaces::NamespaceSettings
|
|
8
|
+
|
|
9
|
+
module Namespaces
|
|
10
|
+
class NamespaceSettings < Telnyx::Internal::Type::BaseModel
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Telnyx::AI::Memory::Namespaces::NamespaceSettings,
|
|
15
|
+
Telnyx::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Settings that shape this namespace's summaries.
|
|
20
|
+
sig do
|
|
21
|
+
returns(
|
|
22
|
+
T.nilable(Telnyx::AI::Memory::Namespaces::SummarySettings)
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
attr_reader :summary
|
|
26
|
+
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
summary: Telnyx::AI::Memory::Namespaces::SummarySettings::OrHash
|
|
30
|
+
).void
|
|
31
|
+
end
|
|
32
|
+
attr_writer :summary
|
|
33
|
+
|
|
34
|
+
# A namespace's settings, grouped by what they affect.
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
summary: Telnyx::AI::Memory::Namespaces::SummarySettings::OrHash
|
|
38
|
+
).returns(T.attached_class)
|
|
39
|
+
end
|
|
40
|
+
def self.new(
|
|
41
|
+
# Settings that shape this namespace's summaries.
|
|
42
|
+
summary: nil
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
override.returns(
|
|
48
|
+
{ summary: Telnyx::AI::Memory::Namespaces::SummarySettings }
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
def to_hash
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -17,25 +17,19 @@ module Telnyx
|
|
|
17
17
|
end
|
|
18
18
|
|
|
19
19
|
# A namespace's settings, grouped by what they affect.
|
|
20
|
-
sig
|
|
21
|
-
returns(
|
|
22
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data
|
|
23
|
-
)
|
|
24
|
-
end
|
|
20
|
+
sig { returns(Telnyx::AI::Memory::Namespaces::NamespaceSettings) }
|
|
25
21
|
attr_reader :data
|
|
26
22
|
|
|
27
23
|
sig do
|
|
28
24
|
params(
|
|
29
|
-
data:
|
|
30
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::OrHash
|
|
25
|
+
data: Telnyx::AI::Memory::Namespaces::NamespaceSettings::OrHash
|
|
31
26
|
).void
|
|
32
27
|
end
|
|
33
28
|
attr_writer :data
|
|
34
29
|
|
|
35
30
|
sig do
|
|
36
31
|
params(
|
|
37
|
-
data:
|
|
38
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::OrHash
|
|
32
|
+
data: Telnyx::AI::Memory::Namespaces::NamespaceSettings::OrHash
|
|
39
33
|
).returns(T.attached_class)
|
|
40
34
|
end
|
|
41
35
|
def self.new(
|
|
@@ -46,108 +40,11 @@ module Telnyx
|
|
|
46
40
|
|
|
47
41
|
sig do
|
|
48
42
|
override.returns(
|
|
49
|
-
{
|
|
50
|
-
data:
|
|
51
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data
|
|
52
|
-
}
|
|
43
|
+
{ data: Telnyx::AI::Memory::Namespaces::NamespaceSettings }
|
|
53
44
|
)
|
|
54
45
|
end
|
|
55
46
|
def to_hash
|
|
56
47
|
end
|
|
57
|
-
|
|
58
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
|
59
|
-
OrHash =
|
|
60
|
-
T.type_alias do
|
|
61
|
-
T.any(
|
|
62
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data,
|
|
63
|
-
Telnyx::Internal::AnyHash
|
|
64
|
-
)
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
# Settings that shape this namespace's summaries.
|
|
68
|
-
sig do
|
|
69
|
-
returns(
|
|
70
|
-
T.nilable(
|
|
71
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary
|
|
72
|
-
)
|
|
73
|
-
)
|
|
74
|
-
end
|
|
75
|
-
attr_reader :summary
|
|
76
|
-
|
|
77
|
-
sig do
|
|
78
|
-
params(
|
|
79
|
-
summary:
|
|
80
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary::OrHash
|
|
81
|
-
).void
|
|
82
|
-
end
|
|
83
|
-
attr_writer :summary
|
|
84
|
-
|
|
85
|
-
# A namespace's settings, grouped by what they affect.
|
|
86
|
-
sig do
|
|
87
|
-
params(
|
|
88
|
-
summary:
|
|
89
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary::OrHash
|
|
90
|
-
).returns(T.attached_class)
|
|
91
|
-
end
|
|
92
|
-
def self.new(
|
|
93
|
-
# Settings that shape this namespace's summaries.
|
|
94
|
-
summary: nil
|
|
95
|
-
)
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
sig do
|
|
99
|
-
override.returns(
|
|
100
|
-
{
|
|
101
|
-
summary:
|
|
102
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary
|
|
103
|
-
}
|
|
104
|
-
)
|
|
105
|
-
end
|
|
106
|
-
def to_hash
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
class Summary < Telnyx::Internal::Type::BaseModel
|
|
110
|
-
OrHash =
|
|
111
|
-
T.type_alias do
|
|
112
|
-
T.any(
|
|
113
|
-
Telnyx::AI::Memory::Namespaces::NamespaceSettingsResponse::Data::Summary,
|
|
114
|
-
Telnyx::Internal::AnyHash
|
|
115
|
-
)
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
# Free-form instructions that influence how this namespace's summaries are
|
|
119
|
-
# written, shared by every profile in the namespace. How you use them is up to you
|
|
120
|
-
# -- they steer the outcome, so try a phrasing and see how the summary comes out.
|
|
121
|
-
# Advisory: they steer the summary but never override or deny a profile's own
|
|
122
|
-
# facts, and they do not affect recall. Null or empty means none are set, and
|
|
123
|
-
# summaries use the neutral default. A change reaches each summary the next time
|
|
124
|
-
# it is regenerated.
|
|
125
|
-
sig { returns(T.nilable(String)) }
|
|
126
|
-
attr_accessor :instructions
|
|
127
|
-
|
|
128
|
-
# Settings that shape this namespace's summaries.
|
|
129
|
-
sig do
|
|
130
|
-
params(instructions: T.nilable(String)).returns(
|
|
131
|
-
T.attached_class
|
|
132
|
-
)
|
|
133
|
-
end
|
|
134
|
-
def self.new(
|
|
135
|
-
# Free-form instructions that influence how this namespace's summaries are
|
|
136
|
-
# written, shared by every profile in the namespace. How you use them is up to you
|
|
137
|
-
# -- they steer the outcome, so try a phrasing and see how the summary comes out.
|
|
138
|
-
# Advisory: they steer the summary but never override or deny a profile's own
|
|
139
|
-
# facts, and they do not affect recall. Null or empty means none are set, and
|
|
140
|
-
# summaries use the neutral default. A change reaches each summary the next time
|
|
141
|
-
# it is regenerated.
|
|
142
|
-
instructions: nil
|
|
143
|
-
)
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
sig { override.returns({ instructions: T.nilable(String) }) }
|
|
147
|
-
def to_hash
|
|
148
|
-
end
|
|
149
|
-
end
|
|
150
|
-
end
|
|
151
48
|
end
|
|
152
49
|
end
|
|
153
50
|
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module AI
|
|
6
|
+
module Memory
|
|
7
|
+
module Namespaces
|
|
8
|
+
class SummarySettings < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Telnyx::AI::Memory::Namespaces::SummarySettings,
|
|
13
|
+
Telnyx::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Free-form instructions that influence how this namespace's summaries are
|
|
18
|
+
# written, shared by every profile in the namespace. How you use them is up to you
|
|
19
|
+
# -- they steer the outcome, so try a phrasing and see how the summary comes out.
|
|
20
|
+
# Advisory: they steer the summary but never override or deny a profile's own
|
|
21
|
+
# facts, and they do not affect recall. Null or empty means none are set, and
|
|
22
|
+
# summaries use the neutral default. A change reaches each summary the next time
|
|
23
|
+
# it is regenerated.
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_accessor :instructions
|
|
26
|
+
|
|
27
|
+
# A namespace's summary settings, shared by every profile in it.
|
|
28
|
+
sig do
|
|
29
|
+
params(instructions: T.nilable(String)).returns(T.attached_class)
|
|
30
|
+
end
|
|
31
|
+
def self.new(
|
|
32
|
+
# Free-form instructions that influence how this namespace's summaries are
|
|
33
|
+
# written, shared by every profile in the namespace. How you use them is up to you
|
|
34
|
+
# -- they steer the outcome, so try a phrasing and see how the summary comes out.
|
|
35
|
+
# Advisory: they steer the summary but never override or deny a profile's own
|
|
36
|
+
# facts, and they do not affect recall. Null or empty means none are set, and
|
|
37
|
+
# summaries use the neutral default. A change reaches each summary the next time
|
|
38
|
+
# it is regenerated.
|
|
39
|
+
instructions: nil
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
sig { override.returns({ instructions: T.nilable(String) }) }
|
|
44
|
+
def to_hash
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|