telnyx 5.167.0 → 5.168.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 +4 -0
- data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +16 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -1
- data/lib/telnyx/models/ai/chat_completion_request.rb +125 -48
- data/lib/telnyx/models/ai/inference_embedding.rb +16 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +15 -1
- data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
- data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
- data/lib/telnyx/models/compute/logs_meta.rb +23 -0
- data/lib/telnyx/models/credential_connection.rb +4 -1
- data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
- data/lib/telnyx/models/email_message_batch_params.rb +4 -1
- data/lib/telnyx/models/email_message_batch_response.rb +1 -0
- data/lib/telnyx/models/fqdn_connection.rb +5 -2
- data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +210 -67
- data/lib/telnyx/models/messaging_messaging_profile.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_features.rb +26 -0
- data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
- data/lib/telnyx/models/uac_connection.rb +4 -1
- data/lib/telnyx/models/uac_external_settings.rb +6 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
- data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
- data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
- data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
- data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
- data/lib/telnyx/models.rb +8 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -1
- data/lib/telnyx/resources/ai/assistants.rb +6 -2
- data/lib/telnyx/resources/ai/openai/chat.rb +2 -8
- data/lib/telnyx/resources/compute/funcs.rb +141 -0
- data/lib/telnyx/resources/compute.rb +18 -0
- data/lib/telnyx/resources/email_messages.rb +4 -2
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
- data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
- data/lib/telnyx/resources/x402/credit_account.rb +8 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +23 -0
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +29 -0
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +31 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +224 -92
- data/rbi/telnyx/models/ai/inference_embedding.rbi +29 -0
- data/rbi/telnyx/models/ai/telephony_settings.rbi +23 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
- data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
- data/rbi/telnyx/models/credential_connection.rbi +8 -2
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
- data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
- data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +450 -193
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +19 -0
- data/rbi/telnyx/models/uac_connection.rbi +8 -2
- data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
- data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
- data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
- data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
- data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
- data/rbi/telnyx/models.rbi +8 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +12 -0
- data/rbi/telnyx/resources/ai/assistants.rbi +21 -0
- data/rbi/telnyx/resources/ai/openai/chat.rbi +9 -13
- data/rbi/telnyx/resources/compute/funcs.rbi +111 -0
- data/rbi/telnyx/resources/compute.rbi +15 -0
- data/rbi/telnyx/resources/email_messages.rbi +6 -2
- data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
- data/rbi/telnyx/resources/webhooks.rbi +6 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
- data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +86 -44
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/telephony_settings.rbs +7 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
- data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
- data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +207 -95
- data/sig/telnyx/models/messaging_messaging_profile.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
- data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
- data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
- data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
- data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
- data/sig/telnyx/models.rbs +8 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +1 -4
- data/sig/telnyx/resources/compute/funcs.rbs +41 -0
- data/sig/telnyx/resources/compute.rbs +9 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/webhooks.rbs +6 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
- data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
- metadata +71 -2
|
@@ -19,6 +19,18 @@ module Telnyx
|
|
|
19
19
|
# @return [Boolean, nil]
|
|
20
20
|
optional :disable_dtmf, Telnyx::Internal::Type::Boolean
|
|
21
21
|
|
|
22
|
+
# @!attribute fallback_destination
|
|
23
|
+
# Destination number or SIP URI to transfer the caller to when the AI conversation
|
|
24
|
+
# ends abnormally, for example because of an assistant-side error, so the caller
|
|
25
|
+
# is not left in dead air. This only fires for abnormal ends: it does not fire
|
|
26
|
+
# when the conversation ends on purpose (the caller hung up, the assistant
|
|
27
|
+
# completed normally, the caller hung up after a relay handoff, or voicemail was
|
|
28
|
+
# detected), and it does not fire when the assistant already transferred or
|
|
29
|
+
# bridged the call.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :fallback_destination, String
|
|
33
|
+
|
|
22
34
|
# @!attribute noise_suppression
|
|
23
35
|
# The noise suppression engine to use. Use 'disabled' to turn off noise
|
|
24
36
|
# suppression.
|
|
@@ -97,7 +109,7 @@ module Telnyx
|
|
|
97
109
|
# @return [Telnyx::Models::AI::TelephonySettings::VoicemailDetection, nil]
|
|
98
110
|
optional :voicemail_detection, -> { Telnyx::AI::TelephonySettings::VoicemailDetection }
|
|
99
111
|
|
|
100
|
-
# @!method initialize(default_texml_app_id: nil, disable_dtmf: nil, noise_suppression: nil, noise_suppression_config: nil, recording_settings: nil, send_message_history_updates: nil, supports_unauthenticated_web_calls: nil, time_limit_secs: nil, user_idle_reply_secs: nil, user_idle_timeout_secs: nil, voicemail_detection: nil)
|
|
112
|
+
# @!method initialize(default_texml_app_id: nil, disable_dtmf: nil, fallback_destination: nil, noise_suppression: nil, noise_suppression_config: nil, recording_settings: nil, send_message_history_updates: nil, supports_unauthenticated_web_calls: nil, time_limit_secs: nil, user_idle_reply_secs: nil, user_idle_timeout_secs: nil, voicemail_detection: nil)
|
|
101
113
|
# Some parameter documentations has been truncated, see
|
|
102
114
|
# {Telnyx::Models::AI::TelephonySettings} for more details.
|
|
103
115
|
#
|
|
@@ -105,6 +117,8 @@ module Telnyx
|
|
|
105
117
|
#
|
|
106
118
|
# @param disable_dtmf [Boolean] Disable inbound DTMF for the entire call. Must be set to true if a 'pay' tool is
|
|
107
119
|
#
|
|
120
|
+
# @param fallback_destination [String] Destination number or SIP URI to transfer the caller to when the AI conversation
|
|
121
|
+
#
|
|
108
122
|
# @param noise_suppression [Symbol, Telnyx::Models::AI::TelephonySettings::NoiseSuppression] The noise suppression engine to use. Use 'disabled' to turn off noise suppressio
|
|
109
123
|
#
|
|
110
124
|
# @param noise_suppression_config [Telnyx::Models::AI::TelephonySettings::NoiseSuppressionConfig] Configuration for noise suppression. Only applicable when noise_suppression is '
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_logs
|
|
7
|
+
class FuncRetrieveLogsParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute end_time
|
|
17
|
+
# Return records at or before this RFC 3339 timestamp.
|
|
18
|
+
#
|
|
19
|
+
# @return [Time, nil]
|
|
20
|
+
optional :end_time, Time
|
|
21
|
+
|
|
22
|
+
# @!attribute limit
|
|
23
|
+
# Maximum records to return.
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :limit, Integer
|
|
27
|
+
|
|
28
|
+
# @!attribute start_time
|
|
29
|
+
# Return records at or after this RFC 3339 timestamp.
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :start_time, Time
|
|
33
|
+
|
|
34
|
+
# @!attribute type
|
|
35
|
+
# Log stream to return.
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsParams::Type, nil]
|
|
38
|
+
optional :type, enum: -> { Telnyx::Compute::FuncRetrieveLogsParams::Type }
|
|
39
|
+
|
|
40
|
+
# @!method initialize(id:, end_time: nil, limit: nil, start_time: nil, type: nil, request_options: {})
|
|
41
|
+
# @param id [String]
|
|
42
|
+
#
|
|
43
|
+
# @param end_time [Time] Return records at or before this RFC 3339 timestamp.
|
|
44
|
+
#
|
|
45
|
+
# @param limit [Integer] Maximum records to return.
|
|
46
|
+
#
|
|
47
|
+
# @param start_time [Time] Return records at or after this RFC 3339 timestamp.
|
|
48
|
+
#
|
|
49
|
+
# @param type [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsParams::Type] Log stream to return.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
|
|
53
|
+
# Log stream to return.
|
|
54
|
+
module Type
|
|
55
|
+
extend Telnyx::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
RUNTIME = :runtime
|
|
58
|
+
INVOCATIONS = :invocations
|
|
59
|
+
|
|
60
|
+
# @!method self.values
|
|
61
|
+
# @return [Array<Symbol>]
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_logs
|
|
7
|
+
module FuncRetrieveLogsResponse
|
|
8
|
+
extend Telnyx::Internal::Type::Union
|
|
9
|
+
|
|
10
|
+
variant -> { Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse }
|
|
11
|
+
|
|
12
|
+
variant -> { Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse }
|
|
13
|
+
|
|
14
|
+
class FuncRuntimeLogsResponse < Telnyx::Internal::Type::BaseModel
|
|
15
|
+
# @!attribute data
|
|
16
|
+
#
|
|
17
|
+
# @return [Array<Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse::Data>, nil]
|
|
18
|
+
optional :data,
|
|
19
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse::Data] }
|
|
20
|
+
|
|
21
|
+
# @!attribute meta
|
|
22
|
+
#
|
|
23
|
+
# @return [Telnyx::Models::Compute::LogsMeta, nil]
|
|
24
|
+
optional :meta, -> { Telnyx::Compute::LogsMeta }
|
|
25
|
+
|
|
26
|
+
# @!method initialize(data: nil, meta: nil)
|
|
27
|
+
# @param data [Array<Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse::Data>]
|
|
28
|
+
# @param meta [Telnyx::Models::Compute::LogsMeta]
|
|
29
|
+
|
|
30
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
31
|
+
# @!attribute level
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :level, String
|
|
35
|
+
|
|
36
|
+
# @!attribute message
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :message, String
|
|
40
|
+
|
|
41
|
+
# @!attribute record_type
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse::Data::RecordType, nil]
|
|
44
|
+
optional :record_type,
|
|
45
|
+
enum: -> { Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse::Data::RecordType }
|
|
46
|
+
|
|
47
|
+
# @!attribute timestamp
|
|
48
|
+
#
|
|
49
|
+
# @return [Time, nil]
|
|
50
|
+
optional :timestamp, Time
|
|
51
|
+
|
|
52
|
+
# @!method initialize(level: nil, message: nil, record_type: nil, timestamp: nil)
|
|
53
|
+
# @param level [String]
|
|
54
|
+
# @param message [String]
|
|
55
|
+
# @param record_type [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse::Data::RecordType]
|
|
56
|
+
# @param timestamp [Time]
|
|
57
|
+
|
|
58
|
+
# @see Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse::Data#record_type
|
|
59
|
+
module RecordType
|
|
60
|
+
extend Telnyx::Internal::Type::Enum
|
|
61
|
+
|
|
62
|
+
COMPUTE_FUNC_RUNTIME_LOG = :compute_func_runtime_log
|
|
63
|
+
|
|
64
|
+
# @!method self.values
|
|
65
|
+
# @return [Array<Symbol>]
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class FuncInvocationLogsResponse < Telnyx::Internal::Type::BaseModel
|
|
71
|
+
# @!attribute data
|
|
72
|
+
#
|
|
73
|
+
# @return [Array<Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse::Data>, nil]
|
|
74
|
+
optional :data,
|
|
75
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse::Data] }
|
|
76
|
+
|
|
77
|
+
# @!attribute meta
|
|
78
|
+
#
|
|
79
|
+
# @return [Telnyx::Models::Compute::LogsMeta, nil]
|
|
80
|
+
optional :meta, -> { Telnyx::Compute::LogsMeta }
|
|
81
|
+
|
|
82
|
+
# @!method initialize(data: nil, meta: nil)
|
|
83
|
+
# @param data [Array<Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse::Data>]
|
|
84
|
+
# @param meta [Telnyx::Models::Compute::LogsMeta]
|
|
85
|
+
|
|
86
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
87
|
+
# @!attribute duration_ms
|
|
88
|
+
#
|
|
89
|
+
# @return [Float, nil]
|
|
90
|
+
optional :duration_ms, Float
|
|
91
|
+
|
|
92
|
+
# @!attribute method_
|
|
93
|
+
#
|
|
94
|
+
# @return [String, nil]
|
|
95
|
+
optional :method_, String, api_name: :method
|
|
96
|
+
|
|
97
|
+
# @!attribute path
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
optional :path, String
|
|
101
|
+
|
|
102
|
+
# @!attribute record_type
|
|
103
|
+
#
|
|
104
|
+
# @return [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse::Data::RecordType, nil]
|
|
105
|
+
optional :record_type,
|
|
106
|
+
enum: -> { Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse::Data::RecordType }
|
|
107
|
+
|
|
108
|
+
# @!attribute region
|
|
109
|
+
#
|
|
110
|
+
# @return [String, nil]
|
|
111
|
+
optional :region, String
|
|
112
|
+
|
|
113
|
+
# @!attribute request_size_bytes
|
|
114
|
+
#
|
|
115
|
+
# @return [Integer, nil]
|
|
116
|
+
optional :request_size_bytes, Integer
|
|
117
|
+
|
|
118
|
+
# @!attribute response_size_bytes
|
|
119
|
+
#
|
|
120
|
+
# @return [Integer, nil]
|
|
121
|
+
optional :response_size_bytes, Integer
|
|
122
|
+
|
|
123
|
+
# @!attribute status_code
|
|
124
|
+
#
|
|
125
|
+
# @return [Integer, nil]
|
|
126
|
+
optional :status_code, Integer
|
|
127
|
+
|
|
128
|
+
# @!attribute timestamp
|
|
129
|
+
#
|
|
130
|
+
# @return [Time, nil]
|
|
131
|
+
optional :timestamp, Time
|
|
132
|
+
|
|
133
|
+
# @!method initialize(duration_ms: nil, method_: nil, path: nil, record_type: nil, region: nil, request_size_bytes: nil, response_size_bytes: nil, status_code: nil, timestamp: nil)
|
|
134
|
+
# @param duration_ms [Float]
|
|
135
|
+
# @param method_ [String]
|
|
136
|
+
# @param path [String]
|
|
137
|
+
# @param record_type [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse::Data::RecordType]
|
|
138
|
+
# @param region [String]
|
|
139
|
+
# @param request_size_bytes [Integer]
|
|
140
|
+
# @param response_size_bytes [Integer]
|
|
141
|
+
# @param status_code [Integer]
|
|
142
|
+
# @param timestamp [Time]
|
|
143
|
+
|
|
144
|
+
# @see Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse::Data#record_type
|
|
145
|
+
module RecordType
|
|
146
|
+
extend Telnyx::Internal::Type::Enum
|
|
147
|
+
|
|
148
|
+
COMPUTE_FUNC_INVOCATION_LOG = :compute_func_invocation_log
|
|
149
|
+
|
|
150
|
+
# @!method self.values
|
|
151
|
+
# @return [Array<Symbol>]
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# @!method self.variants
|
|
157
|
+
# @return [Array(Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse, Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse)]
|
|
158
|
+
end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_metric_aggregates
|
|
7
|
+
class FuncRetrieveMetricAggregatesParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute end_time
|
|
17
|
+
# Exclusive window end, UTC ISO 8601 with milliseconds
|
|
18
|
+
#
|
|
19
|
+
# @return [Time]
|
|
20
|
+
required :end_time, Time
|
|
21
|
+
|
|
22
|
+
# @!attribute start_time
|
|
23
|
+
# Inclusive window start, UTC ISO 8601 with milliseconds
|
|
24
|
+
#
|
|
25
|
+
# @return [Time]
|
|
26
|
+
required :start_time, Time
|
|
27
|
+
|
|
28
|
+
# @!attribute filter_edge_site
|
|
29
|
+
# Edge site filter
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :filter_edge_site, String
|
|
33
|
+
|
|
34
|
+
# @!attribute filter_namespace
|
|
35
|
+
# Kubernetes namespace filter
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :filter_namespace, String
|
|
39
|
+
|
|
40
|
+
# @!attribute page_number
|
|
41
|
+
#
|
|
42
|
+
# @return [Integer, nil]
|
|
43
|
+
optional :page_number, Integer
|
|
44
|
+
|
|
45
|
+
# @!attribute page_size
|
|
46
|
+
#
|
|
47
|
+
# @return [Integer, nil]
|
|
48
|
+
optional :page_size, Integer
|
|
49
|
+
|
|
50
|
+
# @!method initialize(id:, end_time:, start_time:, filter_edge_site: nil, filter_namespace: nil, page_number: nil, page_size: nil, request_options: {})
|
|
51
|
+
# @param id [String]
|
|
52
|
+
#
|
|
53
|
+
# @param end_time [Time] Exclusive window end, UTC ISO 8601 with milliseconds
|
|
54
|
+
#
|
|
55
|
+
# @param start_time [Time] Inclusive window start, UTC ISO 8601 with milliseconds
|
|
56
|
+
#
|
|
57
|
+
# @param filter_edge_site [String] Edge site filter
|
|
58
|
+
#
|
|
59
|
+
# @param filter_namespace [String] Kubernetes namespace filter
|
|
60
|
+
#
|
|
61
|
+
# @param page_number [Integer]
|
|
62
|
+
#
|
|
63
|
+
# @param page_size [Integer]
|
|
64
|
+
#
|
|
65
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_metric_aggregates
|
|
7
|
+
class FuncRetrieveMetricAggregatesResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<Telnyx::Models::Compute::FuncRetrieveMetricAggregatesResponse::Data>, nil]
|
|
11
|
+
optional :data,
|
|
12
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Compute::FuncRetrieveMetricAggregatesResponse::Data] }
|
|
13
|
+
|
|
14
|
+
# @!attribute meta
|
|
15
|
+
#
|
|
16
|
+
# @return [Telnyx::Models::Compute::FunctionsObservabilityPaginationMeta, nil]
|
|
17
|
+
optional :meta, -> { Telnyx::Compute::FunctionsObservabilityPaginationMeta }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(data: nil, meta: nil)
|
|
20
|
+
# @param data [Array<Telnyx::Models::Compute::FuncRetrieveMetricAggregatesResponse::Data>]
|
|
21
|
+
# @param meta [Telnyx::Models::Compute::FunctionsObservabilityPaginationMeta]
|
|
22
|
+
|
|
23
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
24
|
+
# @!attribute cpu_used_cores_avg
|
|
25
|
+
#
|
|
26
|
+
# @return [Float, nil]
|
|
27
|
+
optional :cpu_used_cores_avg, Float, nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute cpu_used_cores_max
|
|
30
|
+
#
|
|
31
|
+
# @return [Float, nil]
|
|
32
|
+
optional :cpu_used_cores_max, Float, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute end_time
|
|
35
|
+
#
|
|
36
|
+
# @return [Time, nil]
|
|
37
|
+
optional :end_time, Time
|
|
38
|
+
|
|
39
|
+
# @!attribute function_id
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
optional :function_id, String
|
|
43
|
+
|
|
44
|
+
# @!attribute function_name
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :function_name, String
|
|
48
|
+
|
|
49
|
+
# @!attribute memory_used_bytes_avg
|
|
50
|
+
#
|
|
51
|
+
# @return [Float, nil]
|
|
52
|
+
optional :memory_used_bytes_avg, Float, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute memory_used_bytes_max
|
|
55
|
+
#
|
|
56
|
+
# @return [Float, nil]
|
|
57
|
+
optional :memory_used_bytes_max, Float, nil?: true
|
|
58
|
+
|
|
59
|
+
# @!attribute product
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :product, String
|
|
63
|
+
|
|
64
|
+
# @!attribute record_type
|
|
65
|
+
#
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
optional :record_type, String
|
|
68
|
+
|
|
69
|
+
# @!attribute request_client_error_rate
|
|
70
|
+
#
|
|
71
|
+
# @return [Float, nil]
|
|
72
|
+
optional :request_client_error_rate, Float, nil?: true
|
|
73
|
+
|
|
74
|
+
# @!attribute request_count
|
|
75
|
+
#
|
|
76
|
+
# @return [Float, nil]
|
|
77
|
+
optional :request_count, Float, nil?: true
|
|
78
|
+
|
|
79
|
+
# @!attribute request_error_rate
|
|
80
|
+
#
|
|
81
|
+
# @return [Float, nil]
|
|
82
|
+
optional :request_error_rate, Float, nil?: true
|
|
83
|
+
|
|
84
|
+
# @!attribute request_latency_avg_ms
|
|
85
|
+
#
|
|
86
|
+
# @return [Float, nil]
|
|
87
|
+
optional :request_latency_avg_ms, Float, nil?: true
|
|
88
|
+
|
|
89
|
+
# @!attribute request_latency_p50_ms
|
|
90
|
+
#
|
|
91
|
+
# @return [Float, nil]
|
|
92
|
+
optional :request_latency_p50_ms, Float, nil?: true
|
|
93
|
+
|
|
94
|
+
# @!attribute request_latency_p95_ms
|
|
95
|
+
#
|
|
96
|
+
# @return [Float, nil]
|
|
97
|
+
optional :request_latency_p95_ms, Float, nil?: true
|
|
98
|
+
|
|
99
|
+
# @!attribute request_latency_p99_ms
|
|
100
|
+
#
|
|
101
|
+
# @return [Float, nil]
|
|
102
|
+
optional :request_latency_p99_ms, Float, nil?: true
|
|
103
|
+
|
|
104
|
+
# @!attribute request_success_rate
|
|
105
|
+
#
|
|
106
|
+
# @return [Float, nil]
|
|
107
|
+
optional :request_success_rate, Float, nil?: true
|
|
108
|
+
|
|
109
|
+
# @!attribute start_time
|
|
110
|
+
#
|
|
111
|
+
# @return [Time, nil]
|
|
112
|
+
optional :start_time, Time
|
|
113
|
+
|
|
114
|
+
# @!method initialize(cpu_used_cores_avg: nil, cpu_used_cores_max: nil, end_time: nil, function_id: nil, function_name: nil, memory_used_bytes_avg: nil, memory_used_bytes_max: nil, product: nil, record_type: nil, request_client_error_rate: nil, request_count: nil, request_error_rate: nil, request_latency_avg_ms: nil, request_latency_p50_ms: nil, request_latency_p95_ms: nil, request_latency_p99_ms: nil, request_success_rate: nil, start_time: nil)
|
|
115
|
+
# @param cpu_used_cores_avg [Float, nil]
|
|
116
|
+
# @param cpu_used_cores_max [Float, nil]
|
|
117
|
+
# @param end_time [Time]
|
|
118
|
+
# @param function_id [String]
|
|
119
|
+
# @param function_name [String]
|
|
120
|
+
# @param memory_used_bytes_avg [Float, nil]
|
|
121
|
+
# @param memory_used_bytes_max [Float, nil]
|
|
122
|
+
# @param product [String]
|
|
123
|
+
# @param record_type [String]
|
|
124
|
+
# @param request_client_error_rate [Float, nil]
|
|
125
|
+
# @param request_count [Float, nil]
|
|
126
|
+
# @param request_error_rate [Float, nil]
|
|
127
|
+
# @param request_latency_avg_ms [Float, nil]
|
|
128
|
+
# @param request_latency_p50_ms [Float, nil]
|
|
129
|
+
# @param request_latency_p95_ms [Float, nil]
|
|
130
|
+
# @param request_latency_p99_ms [Float, nil]
|
|
131
|
+
# @param request_success_rate [Float, nil]
|
|
132
|
+
# @param start_time [Time]
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_revisions
|
|
7
|
+
class FuncRetrieveRevisionsParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute page_number
|
|
17
|
+
#
|
|
18
|
+
# @return [Integer, nil]
|
|
19
|
+
optional :page_number, Integer
|
|
20
|
+
|
|
21
|
+
# @!attribute page_size
|
|
22
|
+
#
|
|
23
|
+
# @return [Integer, nil]
|
|
24
|
+
optional :page_size, Integer
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, page_number: nil, page_size: nil, request_options: {})
|
|
27
|
+
# @param id [String]
|
|
28
|
+
# @param page_number [Integer]
|
|
29
|
+
# @param page_size [Integer]
|
|
30
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_revisions
|
|
7
|
+
class FuncRetrieveRevisionsResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<Telnyx::Models::Compute::FuncRetrieveRevisionsResponse::Data>, nil]
|
|
11
|
+
optional :data,
|
|
12
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Compute::FuncRetrieveRevisionsResponse::Data] }
|
|
13
|
+
|
|
14
|
+
# @!attribute meta
|
|
15
|
+
#
|
|
16
|
+
# @return [Telnyx::Models::Compute::FunctionsObservabilityPaginationMeta, nil]
|
|
17
|
+
optional :meta, -> { Telnyx::Compute::FunctionsObservabilityPaginationMeta }
|
|
18
|
+
|
|
19
|
+
# @!method initialize(data: nil, meta: nil)
|
|
20
|
+
# @param data [Array<Telnyx::Models::Compute::FuncRetrieveRevisionsResponse::Data>]
|
|
21
|
+
# @param meta [Telnyx::Models::Compute::FunctionsObservabilityPaginationMeta]
|
|
22
|
+
|
|
23
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
24
|
+
# @!attribute active
|
|
25
|
+
#
|
|
26
|
+
# @return [Boolean, nil]
|
|
27
|
+
optional :active, Telnyx::Internal::Type::Boolean
|
|
28
|
+
|
|
29
|
+
# @!attribute build_ok_at
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :build_ok_at, Time
|
|
33
|
+
|
|
34
|
+
# @!attribute build_status
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :build_status, String
|
|
38
|
+
|
|
39
|
+
# @!attribute commit_sha
|
|
40
|
+
#
|
|
41
|
+
# @return [String, nil]
|
|
42
|
+
optional :commit_sha, String
|
|
43
|
+
|
|
44
|
+
# @!attribute deploy_status
|
|
45
|
+
#
|
|
46
|
+
# @return [String, nil]
|
|
47
|
+
optional :deploy_status, String
|
|
48
|
+
|
|
49
|
+
# @!attribute failure_reason
|
|
50
|
+
#
|
|
51
|
+
# @return [String, nil]
|
|
52
|
+
optional :failure_reason, String
|
|
53
|
+
|
|
54
|
+
# @!attribute failure_stage
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :failure_stage, String
|
|
58
|
+
|
|
59
|
+
# @!attribute image
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :image, String
|
|
63
|
+
|
|
64
|
+
# @!attribute record_type
|
|
65
|
+
#
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
optional :record_type, String
|
|
68
|
+
|
|
69
|
+
# @!attribute revision_id
|
|
70
|
+
#
|
|
71
|
+
# @return [String, nil]
|
|
72
|
+
optional :revision_id, String
|
|
73
|
+
|
|
74
|
+
# @!attribute shipped_at
|
|
75
|
+
#
|
|
76
|
+
# @return [Time, nil]
|
|
77
|
+
optional :shipped_at, Time
|
|
78
|
+
|
|
79
|
+
# @!attribute shipped_by
|
|
80
|
+
#
|
|
81
|
+
# @return [String, nil]
|
|
82
|
+
optional :shipped_by, String
|
|
83
|
+
|
|
84
|
+
# @!method initialize(active: nil, build_ok_at: nil, build_status: nil, commit_sha: nil, deploy_status: nil, failure_reason: nil, failure_stage: nil, image: nil, record_type: nil, revision_id: nil, shipped_at: nil, shipped_by: nil)
|
|
85
|
+
# @param active [Boolean]
|
|
86
|
+
# @param build_ok_at [Time]
|
|
87
|
+
# @param build_status [String]
|
|
88
|
+
# @param commit_sha [String]
|
|
89
|
+
# @param deploy_status [String]
|
|
90
|
+
# @param failure_reason [String]
|
|
91
|
+
# @param failure_stage [String]
|
|
92
|
+
# @param image [String]
|
|
93
|
+
# @param record_type [String]
|
|
94
|
+
# @param revision_id [String]
|
|
95
|
+
# @param shipped_at [Time]
|
|
96
|
+
# @param shipped_by [String]
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_ship_inspection
|
|
7
|
+
class FuncRetrieveShipInspectionParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(id:, request_options: {})
|
|
17
|
+
# @param id [String]
|
|
18
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|