telnyx 5.156.0 → 5.157.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 +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/anthropic/v1_messages_params.rb +209 -0
- data/lib/telnyx/models/ai/anthropic/v1_messages_response.rb +12 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +2 -2
- data/lib/telnyx/models/ai/assistant_tool.rb +25 -1
- data/lib/telnyx/models/ai/assistant_update_params.rb +2 -2
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +2 -2
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rb +103 -0
- data/lib/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rb +54 -0
- data/lib/telnyx/models/ai/inference_embedding.rb +6 -6
- data/lib/telnyx/models/ai/pay_tool_params.rb +46 -0
- data/lib/telnyx/models/ai/tool_create_params.rb +7 -1
- data/lib/telnyx/models/ai/tool_update_params.rb +7 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +3 -3
- data/lib/telnyx/models/call_dial_params.rb +13 -1
- data/lib/telnyx/models/calls/transcription_config.rb +8 -4
- data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -1
- data/lib/telnyx/models/doc_reqs_requirement.rb +29 -4
- data/lib/telnyx/models/inbound_message.rb +278 -28
- data/lib/telnyx/models/inbound_message_webhook_event.rb +70 -3
- data/lib/telnyx/models/managed_account_list_params.rb +45 -3
- data/lib/telnyx/models/requirement_list_params.rb +10 -1
- data/lib/telnyx/models/requirement_retrieve_params.rb +14 -1
- data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -1
- data/lib/telnyx/models/storage/cloudf_create_params.rb +56 -0
- data/lib/telnyx/models/storage/cloudf_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_list_params.rb +109 -0
- data/lib/telnyx/models/storage/cloudf_list_response.rb +165 -0
- data/lib/telnyx/models/storage/cloudf_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/cloudf_update_params.rb +36 -0
- data/lib/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rb +30 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rb +129 -0
- data/lib/telnyx/models/storage/cloudfs_filesystem_status.rb +28 -0
- data/lib/telnyx/models/verify_profile.rb +2 -2
- data/lib/telnyx/models/verify_profile_create_params.rb +2 -2
- data/lib/telnyx/models/verify_profile_update_params.rb +2 -2
- data/lib/telnyx/resources/ai/anthropic/v1.rb +91 -0
- data/lib/telnyx/resources/ai/anthropic.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/ai/conversations/conversation_insights.rb +55 -0
- data/lib/telnyx/resources/ai/conversations.rb +5 -0
- data/lib/telnyx/resources/ai/tools.rb +5 -2
- data/lib/telnyx/resources/ai.rb +4 -0
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/requirements.rb +13 -3
- data/lib/telnyx/resources/storage/cloudfs/actions.rb +54 -0
- data/lib/telnyx/resources/storage/cloudfs.rb +187 -0
- data/lib/telnyx/resources/storage.rb +6 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +20 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_params.rbi +314 -0
- data/rbi/telnyx/models/ai/anthropic/v1_messages_response.rbi +15 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +8 -4
- data/rbi/telnyx/models/ai/assistant_tool.rbi +37 -1
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +8 -4
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +8 -4
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbi +188 -0
- data/rbi/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbi +94 -0
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -6
- data/rbi/telnyx/models/ai/pay_tool_params.rbi +71 -0
- data/rbi/telnyx/models/ai/tool_create_params.rbi +9 -0
- data/rbi/telnyx/models/ai/tool_update_params.rbi +9 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +5 -5
- data/rbi/telnyx/models/call_dial_params.rbi +19 -0
- data/rbi/telnyx/models/calls/transcription_config.rbi +15 -7
- data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +2 -2
- data/rbi/telnyx/models/doc_reqs_requirement.rbi +38 -9
- data/rbi/telnyx/models/inbound_message.rbi +324 -58
- data/rbi/telnyx/models/inbound_message_webhook_event.rbi +173 -4
- data/rbi/telnyx/models/managed_account_list_params.rbi +130 -6
- data/rbi/telnyx/models/requirement_list_params.rbi +13 -0
- data/rbi/telnyx/models/requirement_retrieve_params.rbi +21 -2
- data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +2 -2
- data/rbi/telnyx/models/storage/cloudf_create_params.rbi +103 -0
- data/rbi/telnyx/models/storage/cloudf_delete_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_list_params.rbi +232 -0
- data/rbi/telnyx/models/storage/cloudf_list_response.rbi +327 -0
- data/rbi/telnyx/models/storage/cloudf_retrieve_params.rbi +40 -0
- data/rbi/telnyx/models/storage/cloudf_update_params.rbi +61 -0
- data/rbi/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbi +50 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbi +229 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbi +227 -0
- data/rbi/telnyx/models/storage/cloudfs_filesystem_status.rbi +57 -0
- data/rbi/telnyx/models/verify_profile.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_create_params.rbi +2 -2
- data/rbi/telnyx/models/verify_profile_update_params.rbi +2 -2
- data/rbi/telnyx/resources/ai/anthropic/v1.rbi +106 -0
- data/rbi/telnyx/resources/ai/anthropic.rbi +17 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +2 -1
- data/rbi/telnyx/resources/ai/assistants.rbi +4 -2
- data/rbi/telnyx/resources/ai/conversations/conversation_insights.rbi +68 -0
- data/rbi/telnyx/resources/ai/conversations.rbi +6 -0
- data/rbi/telnyx/resources/ai/tools.rbi +4 -0
- data/rbi/telnyx/resources/ai.rbi +3 -0
- data/rbi/telnyx/resources/calls.rbi +7 -0
- data/rbi/telnyx/resources/managed_accounts.rbi +1 -1
- data/rbi/telnyx/resources/requirements.rbi +8 -0
- data/rbi/telnyx/resources/storage/cloudfs/actions.rbi +46 -0
- data/rbi/telnyx/resources/storage/cloudfs.rbi +152 -0
- data/rbi/telnyx/resources/storage.rbi +5 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_params.rbs +175 -0
- data/sig/telnyx/models/ai/anthropic/v1_messages_response.rbs +11 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +13 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_params.rbs +74 -0
- data/sig/telnyx/models/ai/conversations/conversation_insight_retrieve_aggregates_response.rbs +34 -0
- data/sig/telnyx/models/ai/pay_tool_params.rbs +41 -0
- data/sig/telnyx/models/ai/tool_create_params.rbs +7 -0
- data/sig/telnyx/models/ai/tool_update_params.rbs +7 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +2 -2
- data/sig/telnyx/models/call_dial_params.rbs +7 -0
- data/sig/telnyx/models/calls/transcription_config.rbs +2 -2
- data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +2 -2
- data/sig/telnyx/models/doc_reqs_requirement.rbs +25 -8
- data/sig/telnyx/models/inbound_message.rbs +204 -35
- data/sig/telnyx/models/inbound_message_webhook_event.rbs +81 -5
- data/sig/telnyx/models/managed_account_list_params.rbs +47 -3
- data/sig/telnyx/models/requirement_list_params.rbs +8 -1
- data/sig/telnyx/models/requirement_retrieve_params.rbs +12 -2
- data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -2
- data/sig/telnyx/models/storage/cloudf_create_params.rbs +50 -0
- data/sig/telnyx/models/storage/cloudf_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_list_params.rbs +112 -0
- data/sig/telnyx/models/storage/cloudf_list_response.rbs +163 -0
- data/sig/telnyx/models/storage/cloudf_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/cloudf_update_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs/action_rotate_meta_token_params.rbs +32 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_detail_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_response_wrapper.rbs +115 -0
- data/sig/telnyx/models/storage/cloudfs_filesystem_status.rbs +21 -0
- data/sig/telnyx/resources/ai/anthropic/v1.rbs +35 -0
- data/sig/telnyx/resources/ai/anthropic.rbs +11 -0
- data/sig/telnyx/resources/ai/conversations/conversation_insights.rbs +20 -0
- data/sig/telnyx/resources/ai/conversations.rbs +2 -0
- data/sig/telnyx/resources/ai/tools.rbs +2 -0
- data/sig/telnyx/resources/ai.rbs +2 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/requirements.rbs +2 -0
- data/sig/telnyx/resources/storage/cloudfs/actions.rbs +17 -0
- data/sig/telnyx/resources/storage/cloudfs.rbs +45 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- metadata +62 -2
|
@@ -59,7 +59,7 @@ module Telnyx
|
|
|
59
59
|
| :"assemblyai/universal-streaming"
|
|
60
60
|
| :"xai/grok-stt"
|
|
61
61
|
| :"soniox/stt-rt-v4"
|
|
62
|
-
| :"parakeet
|
|
62
|
+
| :"nvidia/parakeet-v3"
|
|
63
63
|
| :"distil-whisper/distil-large-v2"
|
|
64
64
|
| :"openai/whisper-large-v3-turbo"
|
|
65
65
|
|
|
@@ -73,7 +73,7 @@ module Telnyx
|
|
|
73
73
|
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
74
74
|
XAI_GROK_STT: :"xai/grok-stt"
|
|
75
75
|
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
76
|
-
|
|
76
|
+
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
77
77
|
DISTIL_WHISPER_DISTIL_LARGE_V2: :"distil-whisper/distil-large-v2"
|
|
78
78
|
OPENAI_WHISPER_LARGE_V3_TURBO: :"openai/whisper-large-v3-turbo"
|
|
79
79
|
|
|
@@ -36,6 +36,7 @@ module Telnyx
|
|
|
36
36
|
record_timeout_secs: Integer,
|
|
37
37
|
record_track: Telnyx::Models::CallDialParams::record_track,
|
|
38
38
|
record_trim: Telnyx::Models::CallDialParams::record_trim,
|
|
39
|
+
retry_on_timeout: bool,
|
|
39
40
|
send_digits_on_answer: String,
|
|
40
41
|
send_silence_when_idle: bool,
|
|
41
42
|
sip_auth_password: String,
|
|
@@ -231,6 +232,10 @@ module Telnyx
|
|
|
231
232
|
Telnyx::Models::CallDialParams::record_trim
|
|
232
233
|
) -> Telnyx::Models::CallDialParams::record_trim
|
|
233
234
|
|
|
235
|
+
attr_reader retry_on_timeout: bool?
|
|
236
|
+
|
|
237
|
+
def retry_on_timeout=: (bool) -> bool
|
|
238
|
+
|
|
234
239
|
attr_reader send_digits_on_answer: String?
|
|
235
240
|
|
|
236
241
|
def send_digits_on_answer=: (String) -> String
|
|
@@ -408,6 +413,7 @@ module Telnyx
|
|
|
408
413
|
?record_timeout_secs: Integer,
|
|
409
414
|
?record_track: Telnyx::Models::CallDialParams::record_track,
|
|
410
415
|
?record_trim: Telnyx::Models::CallDialParams::record_trim,
|
|
416
|
+
?retry_on_timeout: bool,
|
|
411
417
|
?send_digits_on_answer: String,
|
|
412
418
|
?send_silence_when_idle: bool,
|
|
413
419
|
?sip_auth_password: String,
|
|
@@ -474,6 +480,7 @@ module Telnyx
|
|
|
474
480
|
record_timeout_secs: Integer,
|
|
475
481
|
record_track: Telnyx::Models::CallDialParams::record_track,
|
|
476
482
|
record_trim: Telnyx::Models::CallDialParams::record_trim,
|
|
483
|
+
retry_on_timeout: bool,
|
|
477
484
|
send_digits_on_answer: String,
|
|
478
485
|
send_silence_when_idle: bool,
|
|
479
486
|
sip_auth_password: String,
|
|
@@ -38,7 +38,7 @@ module Telnyx
|
|
|
38
38
|
| :"assemblyai/universal-streaming"
|
|
39
39
|
| :"xai/grok-stt"
|
|
40
40
|
| :"soniox/stt-rt-v4"
|
|
41
|
-
| :"parakeet
|
|
41
|
+
| :"nvidia/parakeet-v3"
|
|
42
42
|
| :"azure/fast"
|
|
43
43
|
| :"azure/realtime"
|
|
44
44
|
| :"google/latest_long"
|
|
@@ -57,7 +57,7 @@ module Telnyx
|
|
|
57
57
|
ASSEMBLYAI_UNIVERSAL_STREAMING: :"assemblyai/universal-streaming"
|
|
58
58
|
XAI_GROK_STT: :"xai/grok-stt"
|
|
59
59
|
SONIOX_STT_RT_V4: :"soniox/stt-rt-v4"
|
|
60
|
-
|
|
60
|
+
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
61
61
|
AZURE_FAST: :"azure/fast"
|
|
62
62
|
AZURE_REALTIME: :"azure/realtime"
|
|
63
63
|
GOOGLE_LATEST_LONG: :"google/latest_long"
|
|
@@ -47,12 +47,12 @@ module Telnyx
|
|
|
47
47
|
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineParakeetConfig::transcription_engine]
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
type transcription_model = :"parakeet
|
|
50
|
+
type transcription_model = :"nvidia/parakeet-v3"
|
|
51
51
|
|
|
52
52
|
module TranscriptionModel
|
|
53
53
|
extend Telnyx::Internal::Type::Enum
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
NVIDIA_PARAKEET_V3: :"nvidia/parakeet-v3"
|
|
56
56
|
|
|
57
57
|
def self?.values: -> ::Array[Telnyx::Models::Calls::TranscriptionEngineParakeetConfig::transcription_model]
|
|
58
58
|
end
|
|
@@ -6,11 +6,14 @@ module Telnyx
|
|
|
6
6
|
action: Telnyx::Models::DocReqsRequirement::action,
|
|
7
7
|
country_code: String,
|
|
8
8
|
created_at: String,
|
|
9
|
+
effective_end_at: Time?,
|
|
10
|
+
effective_start_at: Time?,
|
|
9
11
|
locality: String,
|
|
10
12
|
phone_number_type: Telnyx::Models::DocReqsRequirement::phone_number_type,
|
|
11
13
|
record_type: String,
|
|
12
|
-
|
|
13
|
-
updated_at: String
|
|
14
|
+
requirement_types: ::Array[Telnyx::DocReqsRequirementType],
|
|
15
|
+
updated_at: String,
|
|
16
|
+
version: Integer
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
class DocReqsRequirement < Telnyx::Internal::Type::BaseModel
|
|
@@ -42,13 +45,17 @@ module Telnyx
|
|
|
42
45
|
|
|
43
46
|
def created_at=: (String) -> String
|
|
44
47
|
|
|
48
|
+
attr_accessor effective_end_at: Time?
|
|
49
|
+
|
|
50
|
+
attr_accessor effective_start_at: Time?
|
|
51
|
+
|
|
45
52
|
attr_reader record_type: String?
|
|
46
53
|
|
|
47
54
|
def record_type=: (String) -> String
|
|
48
55
|
|
|
49
|
-
attr_reader
|
|
56
|
+
attr_reader requirement_types: ::Array[Telnyx::DocReqsRequirementType]?
|
|
50
57
|
|
|
51
|
-
def
|
|
58
|
+
def requirement_types=: (
|
|
52
59
|
::Array[Telnyx::DocReqsRequirementType]
|
|
53
60
|
) -> ::Array[Telnyx::DocReqsRequirementType]
|
|
54
61
|
|
|
@@ -56,16 +63,23 @@ module Telnyx
|
|
|
56
63
|
|
|
57
64
|
def updated_at=: (String) -> String
|
|
58
65
|
|
|
66
|
+
attr_reader version: Integer?
|
|
67
|
+
|
|
68
|
+
def version=: (Integer) -> Integer
|
|
69
|
+
|
|
59
70
|
def initialize: (
|
|
60
71
|
?id: String,
|
|
61
72
|
?action: Telnyx::Models::DocReqsRequirement::action,
|
|
62
73
|
?country_code: String,
|
|
63
74
|
?created_at: String,
|
|
75
|
+
?effective_end_at: Time?,
|
|
76
|
+
?effective_start_at: Time?,
|
|
64
77
|
?locality: String,
|
|
65
78
|
?phone_number_type: Telnyx::Models::DocReqsRequirement::phone_number_type,
|
|
66
79
|
?record_type: String,
|
|
67
|
-
?
|
|
68
|
-
?updated_at: String
|
|
80
|
+
?requirement_types: ::Array[Telnyx::DocReqsRequirementType],
|
|
81
|
+
?updated_at: String,
|
|
82
|
+
?version: Integer
|
|
69
83
|
) -> void
|
|
70
84
|
|
|
71
85
|
def to_hash: -> {
|
|
@@ -73,11 +87,14 @@ module Telnyx
|
|
|
73
87
|
action: Telnyx::Models::DocReqsRequirement::action,
|
|
74
88
|
country_code: String,
|
|
75
89
|
created_at: String,
|
|
90
|
+
effective_end_at: Time?,
|
|
91
|
+
effective_start_at: Time?,
|
|
76
92
|
locality: String,
|
|
77
93
|
phone_number_type: Telnyx::Models::DocReqsRequirement::phone_number_type,
|
|
78
94
|
record_type: String,
|
|
79
|
-
|
|
80
|
-
updated_at: String
|
|
95
|
+
requirement_types: ::Array[Telnyx::DocReqsRequirementType],
|
|
96
|
+
updated_at: String,
|
|
97
|
+
version: Integer
|
|
81
98
|
}
|
|
82
99
|
|
|
83
100
|
type action = :both | :branded_calling | :ordering | :porting
|
|
@@ -3,74 +3,243 @@ module Telnyx
|
|
|
3
3
|
type inbound_message =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
attachments: ::Array[::Hash[Symbol, top]],
|
|
7
|
+
bcc: ::Array[Telnyx::InboundMessage::Bcc],
|
|
8
|
+
cc: ::Array[Telnyx::InboundMessage::Cc],
|
|
9
|
+
created_at: Time,
|
|
10
|
+
direction: Telnyx::Models::InboundMessage::direction,
|
|
11
|
+
from: Telnyx::InboundMessage::From,
|
|
12
|
+
has_quoted_text: bool,
|
|
13
|
+
headers: ::Hash[Symbol, top],
|
|
14
|
+
html_body_url: String?,
|
|
15
|
+
in_reply_to: String?,
|
|
16
|
+
inbox_id: String,
|
|
17
|
+
inline_files: ::Array[::Hash[Symbol, top]],
|
|
18
|
+
message_id: String,
|
|
19
|
+
read_at: Time?,
|
|
20
|
+
received_at: Time,
|
|
21
|
+
record_type: Telnyx::Models::InboundMessage::record_type,
|
|
22
|
+
references: ::Array[String],
|
|
23
|
+
reply_text: String?,
|
|
24
|
+
reply_to: ::Array[Telnyx::InboundMessage::ReplyTo],
|
|
25
|
+
status: Telnyx::Models::InboundMessage::status,
|
|
26
|
+
subject: String?,
|
|
27
|
+
text_body_url: String?,
|
|
28
|
+
thread_id: String,
|
|
29
|
+
to: ::Array[Telnyx::InboundMessage::To],
|
|
30
|
+
updated_at: Time
|
|
10
31
|
}
|
|
11
32
|
|
|
12
33
|
class InboundMessage < Telnyx::Internal::Type::BaseModel
|
|
13
|
-
|
|
34
|
+
attr_accessor id: String
|
|
14
35
|
|
|
15
|
-
|
|
36
|
+
attr_accessor attachments: ::Array[::Hash[Symbol, top]]
|
|
16
37
|
|
|
17
|
-
|
|
38
|
+
attr_accessor bcc: ::Array[Telnyx::InboundMessage::Bcc]
|
|
18
39
|
|
|
19
|
-
|
|
20
|
-
Telnyx::Models::InboundMessage::event_type
|
|
21
|
-
) -> Telnyx::Models::InboundMessage::event_type
|
|
40
|
+
attr_accessor cc: ::Array[Telnyx::InboundMessage::Cc]
|
|
22
41
|
|
|
23
|
-
|
|
42
|
+
attr_accessor created_at: Time
|
|
24
43
|
|
|
25
|
-
|
|
44
|
+
attr_accessor direction: Telnyx::Models::InboundMessage::direction
|
|
26
45
|
|
|
27
|
-
|
|
46
|
+
attr_accessor from: Telnyx::InboundMessage::From
|
|
28
47
|
|
|
29
|
-
|
|
30
|
-
Telnyx::InboundMessagePayload
|
|
31
|
-
) -> Telnyx::InboundMessagePayload
|
|
48
|
+
attr_accessor has_quoted_text: bool
|
|
32
49
|
|
|
33
|
-
|
|
50
|
+
attr_accessor headers: ::Hash[Symbol, top]
|
|
34
51
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
52
|
+
attr_accessor html_body_url: String?
|
|
53
|
+
|
|
54
|
+
attr_accessor in_reply_to: String?
|
|
55
|
+
|
|
56
|
+
attr_accessor inbox_id: String
|
|
57
|
+
|
|
58
|
+
attr_accessor inline_files: ::Array[::Hash[Symbol, top]]
|
|
59
|
+
|
|
60
|
+
attr_accessor message_id: String
|
|
61
|
+
|
|
62
|
+
attr_accessor read_at: Time?
|
|
63
|
+
|
|
64
|
+
attr_accessor received_at: Time
|
|
65
|
+
|
|
66
|
+
attr_accessor record_type: Telnyx::Models::InboundMessage::record_type
|
|
67
|
+
|
|
68
|
+
attr_accessor references: ::Array[String]
|
|
69
|
+
|
|
70
|
+
attr_accessor reply_text: String?
|
|
71
|
+
|
|
72
|
+
attr_accessor reply_to: ::Array[Telnyx::InboundMessage::ReplyTo]
|
|
73
|
+
|
|
74
|
+
attr_accessor status: Telnyx::Models::InboundMessage::status
|
|
75
|
+
|
|
76
|
+
attr_accessor subject: String?
|
|
77
|
+
|
|
78
|
+
attr_accessor text_body_url: String?
|
|
79
|
+
|
|
80
|
+
attr_accessor thread_id: String
|
|
81
|
+
|
|
82
|
+
attr_accessor to: ::Array[Telnyx::InboundMessage::To]
|
|
83
|
+
|
|
84
|
+
attr_accessor updated_at: Time
|
|
38
85
|
|
|
39
86
|
def initialize: (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
87
|
+
id: String,
|
|
88
|
+
attachments: ::Array[::Hash[Symbol, top]],
|
|
89
|
+
bcc: ::Array[Telnyx::InboundMessage::Bcc],
|
|
90
|
+
cc: ::Array[Telnyx::InboundMessage::Cc],
|
|
91
|
+
created_at: Time,
|
|
92
|
+
direction: Telnyx::Models::InboundMessage::direction,
|
|
93
|
+
from: Telnyx::InboundMessage::From,
|
|
94
|
+
has_quoted_text: bool,
|
|
95
|
+
headers: ::Hash[Symbol, top],
|
|
96
|
+
html_body_url: String?,
|
|
97
|
+
in_reply_to: String?,
|
|
98
|
+
inbox_id: String,
|
|
99
|
+
inline_files: ::Array[::Hash[Symbol, top]],
|
|
100
|
+
message_id: String,
|
|
101
|
+
read_at: Time?,
|
|
102
|
+
received_at: Time,
|
|
103
|
+
record_type: Telnyx::Models::InboundMessage::record_type,
|
|
104
|
+
references: ::Array[String],
|
|
105
|
+
reply_text: String?,
|
|
106
|
+
reply_to: ::Array[Telnyx::InboundMessage::ReplyTo],
|
|
107
|
+
status: Telnyx::Models::InboundMessage::status,
|
|
108
|
+
subject: String?,
|
|
109
|
+
text_body_url: String?,
|
|
110
|
+
thread_id: String,
|
|
111
|
+
to: ::Array[Telnyx::InboundMessage::To],
|
|
112
|
+
updated_at: Time
|
|
45
113
|
) -> void
|
|
46
114
|
|
|
47
115
|
def to_hash: -> {
|
|
48
116
|
id: String,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
117
|
+
attachments: ::Array[::Hash[Symbol, top]],
|
|
118
|
+
bcc: ::Array[Telnyx::InboundMessage::Bcc],
|
|
119
|
+
cc: ::Array[Telnyx::InboundMessage::Cc],
|
|
120
|
+
created_at: Time,
|
|
121
|
+
direction: Telnyx::Models::InboundMessage::direction,
|
|
122
|
+
from: Telnyx::InboundMessage::From,
|
|
123
|
+
has_quoted_text: bool,
|
|
124
|
+
headers: ::Hash[Symbol, top],
|
|
125
|
+
html_body_url: String?,
|
|
126
|
+
in_reply_to: String?,
|
|
127
|
+
inbox_id: String,
|
|
128
|
+
inline_files: ::Array[::Hash[Symbol, top]],
|
|
129
|
+
message_id: String,
|
|
130
|
+
read_at: Time?,
|
|
131
|
+
received_at: Time,
|
|
132
|
+
record_type: Telnyx::Models::InboundMessage::record_type,
|
|
133
|
+
references: ::Array[String],
|
|
134
|
+
reply_text: String?,
|
|
135
|
+
reply_to: ::Array[Telnyx::InboundMessage::ReplyTo],
|
|
136
|
+
status: Telnyx::Models::InboundMessage::status,
|
|
137
|
+
subject: String?,
|
|
138
|
+
text_body_url: String?,
|
|
139
|
+
thread_id: String,
|
|
140
|
+
to: ::Array[Telnyx::InboundMessage::To],
|
|
141
|
+
updated_at: Time
|
|
53
142
|
}
|
|
54
143
|
|
|
55
|
-
type
|
|
144
|
+
type bcc = { email: String, name: String }
|
|
145
|
+
|
|
146
|
+
class Bcc < Telnyx::Internal::Type::BaseModel
|
|
147
|
+
attr_accessor email: String
|
|
148
|
+
|
|
149
|
+
attr_reader name: String?
|
|
150
|
+
|
|
151
|
+
def name=: (String) -> String
|
|
152
|
+
|
|
153
|
+
def initialize: (email: String, ?name: String) -> void
|
|
154
|
+
|
|
155
|
+
def to_hash: -> { email: String, name: String }
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
type cc = { email: String, name: String }
|
|
159
|
+
|
|
160
|
+
class Cc < Telnyx::Internal::Type::BaseModel
|
|
161
|
+
attr_accessor email: String
|
|
162
|
+
|
|
163
|
+
attr_reader name: String?
|
|
164
|
+
|
|
165
|
+
def name=: (String) -> String
|
|
166
|
+
|
|
167
|
+
def initialize: (email: String, ?name: String) -> void
|
|
168
|
+
|
|
169
|
+
def to_hash: -> { email: String, name: String }
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
type direction = :inbound
|
|
56
173
|
|
|
57
|
-
module
|
|
174
|
+
module Direction
|
|
58
175
|
extend Telnyx::Internal::Type::Enum
|
|
59
176
|
|
|
60
|
-
|
|
177
|
+
INBOUND: :inbound
|
|
61
178
|
|
|
62
|
-
def self?.values: -> ::Array[Telnyx::Models::InboundMessage::
|
|
179
|
+
def self?.values: -> ::Array[Telnyx::Models::InboundMessage::direction]
|
|
63
180
|
end
|
|
64
181
|
|
|
65
|
-
type
|
|
182
|
+
type from = { email: String, name: String }
|
|
183
|
+
|
|
184
|
+
class From < Telnyx::Internal::Type::BaseModel
|
|
185
|
+
attr_accessor email: String
|
|
186
|
+
|
|
187
|
+
attr_reader name: String?
|
|
188
|
+
|
|
189
|
+
def name=: (String) -> String
|
|
190
|
+
|
|
191
|
+
def initialize: (email: String, ?name: String) -> void
|
|
192
|
+
|
|
193
|
+
def to_hash: -> { email: String, name: String }
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
type record_type = :email_message
|
|
66
197
|
|
|
67
198
|
module RecordType
|
|
68
199
|
extend Telnyx::Internal::Type::Enum
|
|
69
200
|
|
|
70
|
-
|
|
201
|
+
EMAIL_MESSAGE: :email_message
|
|
71
202
|
|
|
72
203
|
def self?.values: -> ::Array[Telnyx::Models::InboundMessage::record_type]
|
|
73
204
|
end
|
|
205
|
+
|
|
206
|
+
type reply_to = { email: String, name: String }
|
|
207
|
+
|
|
208
|
+
class ReplyTo < Telnyx::Internal::Type::BaseModel
|
|
209
|
+
attr_accessor email: String
|
|
210
|
+
|
|
211
|
+
attr_reader name: String?
|
|
212
|
+
|
|
213
|
+
def name=: (String) -> String
|
|
214
|
+
|
|
215
|
+
def initialize: (email: String, ?name: String) -> void
|
|
216
|
+
|
|
217
|
+
def to_hash: -> { email: String, name: String }
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
type status = :received
|
|
221
|
+
|
|
222
|
+
module Status
|
|
223
|
+
extend Telnyx::Internal::Type::Enum
|
|
224
|
+
|
|
225
|
+
RECEIVED: :received
|
|
226
|
+
|
|
227
|
+
def self?.values: -> ::Array[Telnyx::Models::InboundMessage::status]
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
type to = { email: String, name: String }
|
|
231
|
+
|
|
232
|
+
class To < Telnyx::Internal::Type::BaseModel
|
|
233
|
+
attr_accessor email: String
|
|
234
|
+
|
|
235
|
+
attr_reader name: String?
|
|
236
|
+
|
|
237
|
+
def name=: (String) -> String
|
|
238
|
+
|
|
239
|
+
def initialize: (email: String, ?name: String) -> void
|
|
240
|
+
|
|
241
|
+
def to_hash: -> { email: String, name: String }
|
|
242
|
+
end
|
|
74
243
|
end
|
|
75
244
|
end
|
|
76
245
|
end
|
|
@@ -1,15 +1,91 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
|
-
type inbound_message_webhook_event =
|
|
3
|
+
type inbound_message_webhook_event =
|
|
4
|
+
{ data: Telnyx::InboundMessageWebhookEvent::Data }
|
|
4
5
|
|
|
5
6
|
class InboundMessageWebhookEvent < Telnyx::Internal::Type::BaseModel
|
|
6
|
-
attr_reader data: Telnyx::
|
|
7
|
+
attr_reader data: Telnyx::InboundMessageWebhookEvent::Data?
|
|
7
8
|
|
|
8
|
-
def data=: (
|
|
9
|
+
def data=: (
|
|
10
|
+
Telnyx::InboundMessageWebhookEvent::Data
|
|
11
|
+
) -> Telnyx::InboundMessageWebhookEvent::Data
|
|
9
12
|
|
|
10
|
-
def initialize: (?data: Telnyx::
|
|
13
|
+
def initialize: (?data: Telnyx::InboundMessageWebhookEvent::Data) -> void
|
|
11
14
|
|
|
12
|
-
def to_hash: -> { data: Telnyx::
|
|
15
|
+
def to_hash: -> { data: Telnyx::InboundMessageWebhookEvent::Data }
|
|
16
|
+
|
|
17
|
+
type data =
|
|
18
|
+
{
|
|
19
|
+
id: String,
|
|
20
|
+
event_type: Telnyx::Models::InboundMessageWebhookEvent::Data::event_type,
|
|
21
|
+
occurred_at: Time,
|
|
22
|
+
payload: Telnyx::InboundMessagePayload,
|
|
23
|
+
record_type: Telnyx::Models::InboundMessageWebhookEvent::Data::record_type
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
27
|
+
attr_reader id: String?
|
|
28
|
+
|
|
29
|
+
def id=: (String) -> String
|
|
30
|
+
|
|
31
|
+
attr_reader event_type: Telnyx::Models::InboundMessageWebhookEvent::Data::event_type?
|
|
32
|
+
|
|
33
|
+
def event_type=: (
|
|
34
|
+
Telnyx::Models::InboundMessageWebhookEvent::Data::event_type
|
|
35
|
+
) -> Telnyx::Models::InboundMessageWebhookEvent::Data::event_type
|
|
36
|
+
|
|
37
|
+
attr_reader occurred_at: Time?
|
|
38
|
+
|
|
39
|
+
def occurred_at=: (Time) -> Time
|
|
40
|
+
|
|
41
|
+
attr_reader payload: Telnyx::InboundMessagePayload?
|
|
42
|
+
|
|
43
|
+
def payload=: (
|
|
44
|
+
Telnyx::InboundMessagePayload
|
|
45
|
+
) -> Telnyx::InboundMessagePayload
|
|
46
|
+
|
|
47
|
+
attr_reader record_type: Telnyx::Models::InboundMessageWebhookEvent::Data::record_type?
|
|
48
|
+
|
|
49
|
+
def record_type=: (
|
|
50
|
+
Telnyx::Models::InboundMessageWebhookEvent::Data::record_type
|
|
51
|
+
) -> Telnyx::Models::InboundMessageWebhookEvent::Data::record_type
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
?id: String,
|
|
55
|
+
?event_type: Telnyx::Models::InboundMessageWebhookEvent::Data::event_type,
|
|
56
|
+
?occurred_at: Time,
|
|
57
|
+
?payload: Telnyx::InboundMessagePayload,
|
|
58
|
+
?record_type: Telnyx::Models::InboundMessageWebhookEvent::Data::record_type
|
|
59
|
+
) -> void
|
|
60
|
+
|
|
61
|
+
def to_hash: -> {
|
|
62
|
+
id: String,
|
|
63
|
+
event_type: Telnyx::Models::InboundMessageWebhookEvent::Data::event_type,
|
|
64
|
+
occurred_at: Time,
|
|
65
|
+
payload: Telnyx::InboundMessagePayload,
|
|
66
|
+
record_type: Telnyx::Models::InboundMessageWebhookEvent::Data::record_type
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type event_type = :"message.received"
|
|
70
|
+
|
|
71
|
+
module EventType
|
|
72
|
+
extend Telnyx::Internal::Type::Enum
|
|
73
|
+
|
|
74
|
+
MESSAGE_RECEIVED: :"message.received"
|
|
75
|
+
|
|
76
|
+
def self?.values: -> ::Array[Telnyx::Models::InboundMessageWebhookEvent::Data::event_type]
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
type record_type = :event
|
|
80
|
+
|
|
81
|
+
module RecordType
|
|
82
|
+
extend Telnyx::Internal::Type::Enum
|
|
83
|
+
|
|
84
|
+
EVENT: :event
|
|
85
|
+
|
|
86
|
+
def self?.values: -> ::Array[Telnyx::Models::InboundMessageWebhookEvent::Data::record_type]
|
|
87
|
+
end
|
|
88
|
+
end
|
|
13
89
|
end
|
|
14
90
|
end
|
|
15
91
|
end
|
|
@@ -59,7 +59,8 @@ module Telnyx
|
|
|
59
59
|
type filter =
|
|
60
60
|
{
|
|
61
61
|
email: Telnyx::ManagedAccountListParams::Filter::Email,
|
|
62
|
-
organization_name: Telnyx::ManagedAccountListParams::Filter::OrganizationName
|
|
62
|
+
organization_name: Telnyx::ManagedAccountListParams::Filter::OrganizationName,
|
|
63
|
+
status: Telnyx::ManagedAccountListParams::Filter::Status
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
class Filter < Telnyx::Internal::Type::BaseModel
|
|
@@ -75,14 +76,22 @@ module Telnyx
|
|
|
75
76
|
Telnyx::ManagedAccountListParams::Filter::OrganizationName
|
|
76
77
|
) -> Telnyx::ManagedAccountListParams::Filter::OrganizationName
|
|
77
78
|
|
|
79
|
+
attr_reader status: Telnyx::ManagedAccountListParams::Filter::Status?
|
|
80
|
+
|
|
81
|
+
def status=: (
|
|
82
|
+
Telnyx::ManagedAccountListParams::Filter::Status
|
|
83
|
+
) -> Telnyx::ManagedAccountListParams::Filter::Status
|
|
84
|
+
|
|
78
85
|
def initialize: (
|
|
79
86
|
?email: Telnyx::ManagedAccountListParams::Filter::Email,
|
|
80
|
-
?organization_name: Telnyx::ManagedAccountListParams::Filter::OrganizationName
|
|
87
|
+
?organization_name: Telnyx::ManagedAccountListParams::Filter::OrganizationName,
|
|
88
|
+
?status: Telnyx::ManagedAccountListParams::Filter::Status
|
|
81
89
|
) -> void
|
|
82
90
|
|
|
83
91
|
def to_hash: -> {
|
|
84
92
|
email: Telnyx::ManagedAccountListParams::Filter::Email,
|
|
85
|
-
organization_name: Telnyx::ManagedAccountListParams::Filter::OrganizationName
|
|
93
|
+
organization_name: Telnyx::ManagedAccountListParams::Filter::OrganizationName,
|
|
94
|
+
status: Telnyx::ManagedAccountListParams::Filter::Status
|
|
86
95
|
}
|
|
87
96
|
|
|
88
97
|
type email = { contains: String, eq: String }
|
|
@@ -116,6 +125,41 @@ module Telnyx
|
|
|
116
125
|
|
|
117
126
|
def to_hash: -> { contains: String, eq: String }
|
|
118
127
|
end
|
|
128
|
+
|
|
129
|
+
type status =
|
|
130
|
+
{ eq: Telnyx::Models::ManagedAccountListParams::Filter::Status::eq }
|
|
131
|
+
|
|
132
|
+
class Status < Telnyx::Internal::Type::BaseModel
|
|
133
|
+
attr_reader eq: Telnyx::Models::ManagedAccountListParams::Filter::Status::eq?
|
|
134
|
+
|
|
135
|
+
def eq=: (
|
|
136
|
+
Telnyx::Models::ManagedAccountListParams::Filter::Status::eq
|
|
137
|
+
) -> Telnyx::Models::ManagedAccountListParams::Filter::Status::eq
|
|
138
|
+
|
|
139
|
+
def initialize: (
|
|
140
|
+
?eq: Telnyx::Models::ManagedAccountListParams::Filter::Status::eq
|
|
141
|
+
) -> void
|
|
142
|
+
|
|
143
|
+
def to_hash: -> {
|
|
144
|
+
eq: Telnyx::Models::ManagedAccountListParams::Filter::Status::eq
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
type eq =
|
|
148
|
+
:all | :active | :enabled | :cancelled | :disabled | :blocked
|
|
149
|
+
|
|
150
|
+
module Eq
|
|
151
|
+
extend Telnyx::Internal::Type::Enum
|
|
152
|
+
|
|
153
|
+
ALL: :all
|
|
154
|
+
ACTIVE: :active
|
|
155
|
+
ENABLED: :enabled
|
|
156
|
+
CANCELLED: :cancelled
|
|
157
|
+
DISABLED: :disabled
|
|
158
|
+
BLOCKED: :blocked
|
|
159
|
+
|
|
160
|
+
def self?.values: -> ::Array[Telnyx::Models::ManagedAccountListParams::Filter::Status::eq]
|
|
161
|
+
end
|
|
162
|
+
end
|
|
119
163
|
end
|
|
120
164
|
|
|
121
165
|
type sort = :created_at | :email
|
|
@@ -5,7 +5,8 @@ module Telnyx
|
|
|
5
5
|
filter: Telnyx::RequirementListParams::Filter,
|
|
6
6
|
page_number: Integer,
|
|
7
7
|
page_size: Integer,
|
|
8
|
-
sort: ::Array[Telnyx::Models::RequirementListParams::sort]
|
|
8
|
+
sort: ::Array[Telnyx::Models::RequirementListParams::sort],
|
|
9
|
+
version: Integer
|
|
9
10
|
}
|
|
10
11
|
& Telnyx::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -33,11 +34,16 @@ module Telnyx
|
|
|
33
34
|
::Array[Telnyx::Models::RequirementListParams::sort]
|
|
34
35
|
) -> ::Array[Telnyx::Models::RequirementListParams::sort]
|
|
35
36
|
|
|
37
|
+
attr_reader version: Integer?
|
|
38
|
+
|
|
39
|
+
def version=: (Integer) -> Integer
|
|
40
|
+
|
|
36
41
|
def initialize: (
|
|
37
42
|
?filter: Telnyx::RequirementListParams::Filter,
|
|
38
43
|
?page_number: Integer,
|
|
39
44
|
?page_size: Integer,
|
|
40
45
|
?sort: ::Array[Telnyx::Models::RequirementListParams::sort],
|
|
46
|
+
?version: Integer,
|
|
41
47
|
?request_options: Telnyx::request_opts
|
|
42
48
|
) -> void
|
|
43
49
|
|
|
@@ -46,6 +52,7 @@ module Telnyx
|
|
|
46
52
|
page_number: Integer,
|
|
47
53
|
page_size: Integer,
|
|
48
54
|
sort: ::Array[Telnyx::Models::RequirementListParams::sort],
|
|
55
|
+
version: Integer,
|
|
49
56
|
request_options: Telnyx::RequestOptions
|
|
50
57
|
}
|
|
51
58
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
type requirement_retrieve_params =
|
|
4
|
-
{ id: String
|
|
4
|
+
{ id: String, version: Integer }
|
|
5
|
+
& Telnyx::Internal::Type::request_parameters
|
|
5
6
|
|
|
6
7
|
class RequirementRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
7
8
|
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
@@ -9,12 +10,21 @@ module Telnyx
|
|
|
9
10
|
|
|
10
11
|
attr_accessor id: String
|
|
11
12
|
|
|
13
|
+
attr_reader version: Integer?
|
|
14
|
+
|
|
15
|
+
def version=: (Integer) -> Integer
|
|
16
|
+
|
|
12
17
|
def initialize: (
|
|
13
18
|
id: String,
|
|
19
|
+
?version: Integer,
|
|
14
20
|
?request_options: Telnyx::request_opts
|
|
15
21
|
) -> void
|
|
16
22
|
|
|
17
|
-
def to_hash: -> {
|
|
23
|
+
def to_hash: -> {
|
|
24
|
+
id: String,
|
|
25
|
+
version: Integer,
|
|
26
|
+
request_options: Telnyx::RequestOptions
|
|
27
|
+
}
|
|
18
28
|
end
|
|
19
29
|
end
|
|
20
30
|
end
|