telnyx 5.150.0 → 5.152.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 +5 -531
- data/README.md +10 -1
- data/lib/telnyx/models/advanced_order_create_params.rb +1 -86
- data/lib/telnyx/models/advanced_order_update_requirement_group_params.rb +1 -88
- data/lib/telnyx/models/ai_retrieve_conversation_histories_params.rb +22 -48
- data/lib/telnyx/models/ai_retrieve_conversation_histories_response.rb +10 -50
- data/lib/telnyx/models/calls/deepgram_nova2_config.rb +23 -1
- data/lib/telnyx/models/calls/deepgram_nova3_config.rb +22 -1
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -3
- data/lib/telnyx/models/dir/email_verification_status_wrapped.rb +82 -0
- data/lib/telnyx/models/dir/reference.rb +125 -0
- data/lib/telnyx/models/dir/reference_create_params.rb +43 -0
- data/lib/telnyx/models/dir/reference_input.rb +74 -0
- data/lib/telnyx/models/dir/reference_list.rb +18 -0
- data/lib/telnyx/models/dir/{phone_number_delete_all_params.rb → reference_list_params.rb} +3 -9
- data/lib/telnyx/models/dir/reference_update_params.rb +103 -0
- data/lib/telnyx/models/dir/reference_update_response.rb +23 -0
- data/lib/telnyx/models/dir/verify_email_confirm_params.rb +31 -0
- data/lib/telnyx/models/dir/verify_email_create_params.rb +22 -0
- data/lib/telnyx/models/dir/verify_email_list_params.rb +22 -0
- data/lib/telnyx/models/dir_update_infringement_params.rb +6 -2
- data/lib/telnyx/models/enterprises/dir_create_params.rb +10 -10
- data/lib/telnyx/models/public_internet_gateway.rb +24 -1
- data/lib/telnyx/models/storage/kv_create_params.rb +24 -0
- data/lib/telnyx/models/storage/kv_delete_params.rb +22 -0
- data/lib/telnyx/models/storage/kv_list_params.rb +32 -0
- data/lib/telnyx/models/storage/kv_namespace.rb +75 -0
- data/lib/telnyx/models/storage/kv_namespace_response_wrapper.rb +18 -0
- data/lib/telnyx/models/storage/kv_retrieve_params.rb +22 -0
- data/lib/telnyx/models/storage/kvs/key_delete_params.rb +30 -0
- data/lib/telnyx/models/storage/kvs/key_list_params.rb +49 -0
- data/lib/telnyx/models/storage/kvs/key_list_response.rb +82 -0
- data/lib/telnyx/models/storage/kvs/key_retrieve_params.rb +30 -0
- data/lib/telnyx/models/storage/kvs/key_update_params.rb +53 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +9 -69
- data/lib/telnyx/models/virtual_cross_connect_create.rb +176 -2
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rb +31 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rb +54 -0
- data/lib/telnyx/models/wireguard_interface.rb +24 -1
- data/lib/telnyx/resources/ai.rb +20 -21
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/dir/references.rb +139 -0
- data/lib/telnyx/resources/dir/verify_email.rb +91 -0
- data/lib/telnyx/resources/dir.rb +17 -1
- data/lib/telnyx/resources/documents.rb +1 -1
- data/lib/telnyx/resources/enterprises/dir.rb +3 -3
- data/lib/telnyx/resources/storage/kvs/keys.rb +154 -0
- data/lib/telnyx/resources/storage/kvs.rb +115 -0
- data/lib/telnyx/resources/storage.rb +5 -0
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +27 -0
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +29 -2
- data/rbi/telnyx/models/advanced_order_create_params.rbi +4 -198
- data/rbi/telnyx/models/advanced_order_update_requirement_group_params.rbi +2 -219
- data/rbi/telnyx/models/ai/assistant_get_texml_response.rbi +1 -1
- data/rbi/telnyx/models/ai/assistants/instruction_enhance_response.rbi +1 -1
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi +30 -97
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi +10 -85
- data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +34 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +32 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +5 -0
- data/rbi/telnyx/models/dir/email_verification_status_wrapped.rbi +184 -0
- data/rbi/telnyx/models/dir/reference.rbi +162 -0
- data/rbi/telnyx/models/dir/reference_create_params.rbi +66 -0
- data/rbi/telnyx/models/dir/reference_input.rbi +93 -0
- data/rbi/telnyx/models/dir/reference_list.rbi +29 -0
- data/rbi/telnyx/models/dir/reference_list_params.rbi +37 -0
- data/rbi/telnyx/models/dir/reference_update_params.rbi +154 -0
- data/rbi/telnyx/models/dir/reference_update_response.rbi +39 -0
- data/rbi/telnyx/models/dir/{phone_number_delete_all_params.rbi → verify_email_confirm_params.rbi} +13 -7
- data/rbi/telnyx/models/dir/verify_email_create_params.rbi +40 -0
- data/rbi/telnyx/models/dir/verify_email_list_params.rbi +37 -0
- data/rbi/telnyx/models/dir_update_infringement_params.rbi +4 -2
- data/rbi/telnyx/models/enterprises/dir_create_params.rbi +10 -13
- data/rbi/telnyx/models/messaging_profiles/autoresp_config_delete_response.rbi +1 -1
- data/rbi/telnyx/models/public_internet_gateway.rbi +45 -3
- data/rbi/telnyx/models/storage/kv_create_params.rbi +42 -0
- data/rbi/telnyx/models/storage/kv_delete_params.rbi +37 -0
- data/rbi/telnyx/models/storage/kv_list_params.rbi +59 -0
- data/rbi/telnyx/models/storage/kv_namespace.rbi +131 -0
- data/rbi/telnyx/models/storage/kv_namespace_response_wrapper.rbi +35 -0
- data/rbi/telnyx/models/storage/kv_retrieve_params.rbi +37 -0
- data/rbi/telnyx/models/storage/kvs/key_delete_params.rbi +50 -0
- data/rbi/telnyx/models/storage/kvs/key_list_params.rbi +81 -0
- data/rbi/telnyx/models/storage/kvs/key_list_response.rbi +179 -0
- data/rbi/telnyx/models/storage/kvs/key_retrieve_params.rbi +50 -0
- data/rbi/telnyx/models/storage/kvs/key_update_params.rbi +77 -0
- data/rbi/telnyx/models/sub_number_orders_report_download_response.rbi +1 -1
- data/rbi/telnyx/models/telephony_credential_create_token_response.rbi +1 -1
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +12 -189
- data/rbi/telnyx/models/virtual_cross_connect_create.rbi +265 -7
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbi +54 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_interface.rbi +48 -3
- data/rbi/telnyx/models/wireguard_peer_retrieve_config_response.rbi +1 -1
- data/rbi/telnyx/models.rbi +0 -7
- data/rbi/telnyx/resources/ai.rbi +21 -28
- data/rbi/telnyx/resources/calls/actions.rbi +1 -0
- data/rbi/telnyx/resources/dir/references.rbi +114 -0
- data/rbi/telnyx/resources/dir/verify_email.rbi +70 -0
- data/rbi/telnyx/resources/dir.rbi +13 -1
- data/rbi/telnyx/resources/enterprises/dir.rbi +4 -4
- data/rbi/telnyx/resources/storage/kvs/keys.rbi +115 -0
- data/rbi/telnyx/resources/storage/kvs.rbi +87 -0
- data/rbi/telnyx/resources/storage.rbi +4 -0
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +21 -0
- data/sig/telnyx/models/advanced_order_create_params.rbs +3 -99
- data/sig/telnyx/models/advanced_order_update_requirement_group_params.rbs +3 -94
- data/sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs +15 -34
- data/sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs +0 -24
- data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +14 -0
- data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +14 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +1 -0
- data/sig/telnyx/models/dir/email_verification_status_wrapped.rbs +69 -0
- data/sig/telnyx/models/dir/reference.rbs +88 -0
- data/sig/telnyx/models/dir/reference_create_params.rbs +38 -0
- data/sig/telnyx/models/dir/reference_input.rbs +52 -0
- data/sig/telnyx/models/dir/reference_list.rbs +15 -0
- data/sig/telnyx/models/dir/reference_list_params.rbs +25 -0
- data/sig/telnyx/models/dir/reference_update_params.rbs +92 -0
- data/sig/telnyx/models/dir/reference_update_response.rbs +15 -0
- data/sig/telnyx/models/dir/{phone_number_delete_all_params.rbs → verify_email_confirm_params.rbs} +6 -6
- data/sig/telnyx/models/dir/verify_email_create_params.rbs +25 -0
- data/sig/telnyx/models/dir/verify_email_list_params.rbs +25 -0
- data/sig/telnyx/models/enterprises/dir_create_params.rbs +5 -7
- data/sig/telnyx/models/public_internet_gateway.rbs +32 -3
- data/sig/telnyx/models/storage/kv_create_params.rbs +25 -0
- data/sig/telnyx/models/storage/kv_delete_params.rbs +22 -0
- data/sig/telnyx/models/storage/kv_list_params.rbs +34 -0
- data/sig/telnyx/models/storage/kv_namespace.rbs +80 -0
- data/sig/telnyx/models/storage/kv_namespace_response_wrapper.rbs +20 -0
- data/sig/telnyx/models/storage/kv_retrieve_params.rbs +22 -0
- data/sig/telnyx/models/storage/kvs/key_delete_params.rbs +32 -0
- data/sig/telnyx/models/storage/kvs/key_list_params.rbs +46 -0
- data/sig/telnyx/models/storage/kvs/key_list_response.rbs +88 -0
- data/sig/telnyx/models/{enterprises/reputation/loa_patch_all_params.rbs → storage/kvs/key_retrieve_params.rbs} +11 -11
- data/sig/telnyx/models/storage/kvs/key_update_params.rbs +47 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -63
- data/sig/telnyx/models/virtual_cross_connect_create.rbs +138 -7
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_params.rbs +30 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_conversation_window_response.rbs +66 -0
- data/sig/telnyx/models/wireguard_interface.rbs +34 -3
- data/sig/telnyx/models.rbs +0 -1
- data/sig/telnyx/resources/ai.rbs +2 -3
- data/sig/telnyx/resources/dir/references.rbs +35 -0
- data/sig/telnyx/resources/dir/verify_email.rbs +25 -0
- data/sig/telnyx/resources/dir.rbs +4 -0
- data/sig/telnyx/resources/enterprises/dir.rbs +1 -1
- data/sig/telnyx/resources/storage/kvs/keys.rbs +39 -0
- data/sig/telnyx/resources/storage/kvs.rbs +32 -0
- data/sig/telnyx/resources/storage.rbs +2 -0
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +6 -0
- metadata +86 -38
- data/lib/telnyx/models/dir/phone_number_create_params.rb +0 -47
- data/lib/telnyx/models/dir/phone_number_create_response.rb +0 -32
- data/lib/telnyx/models/dir/phone_number_delete_all_response.rb +0 -103
- data/lib/telnyx/models/dir_loa_params.rb +0 -79
- data/lib/telnyx/models/dir_retrieve_document_types_params.rb +0 -14
- data/lib/telnyx/models/dir_retrieve_document_types_response.rb +0 -51
- data/lib/telnyx/models/dir_retrieve_infringement_claims_params.rb +0 -40
- data/lib/telnyx/models/dir_retrieve_infringement_claims_response.rb +0 -30
- data/lib/telnyx/models/dir_update_infringement_update_params.rb +0 -134
- data/lib/telnyx/models/enterprises/reputation/loa_create_params.rb +0 -146
- data/lib/telnyx/models/enterprises/reputation/loa_patch_all_params.rb +0 -38
- data/rbi/telnyx/models/dir/phone_number_create_params.rbi +0 -72
- data/rbi/telnyx/models/dir/phone_number_create_response.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_response.rbi +0 -206
- data/rbi/telnyx/models/dir_loa_params.rbi +0 -120
- data/rbi/telnyx/models/dir_retrieve_document_types_params.rbi +0 -30
- data/rbi/telnyx/models/dir_retrieve_document_types_response.rbi +0 -103
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_params.rbi +0 -66
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_response.rbi +0 -55
- data/rbi/telnyx/models/dir_update_infringement_update_params.rbi +0 -256
- data/rbi/telnyx/models/enterprises/reputation/loa_create_params.rbi +0 -238
- data/rbi/telnyx/models/enterprises/reputation/loa_patch_all_params.rbi +0 -60
- data/sig/telnyx/models/dir/phone_number_create_params.rbs +0 -38
- data/sig/telnyx/models/dir/phone_number_create_response.rbs +0 -16
- data/sig/telnyx/models/dir/phone_number_delete_all_response.rbs +0 -86
- data/sig/telnyx/models/dir_loa_params.rbs +0 -61
- data/sig/telnyx/models/dir_retrieve_document_types_params.rbs +0 -15
- data/sig/telnyx/models/dir_retrieve_document_types_response.rbs +0 -41
- data/sig/telnyx/models/dir_retrieve_infringement_claims_params.rbs +0 -36
- data/sig/telnyx/models/dir_retrieve_infringement_claims_response.rbs +0 -25
- data/sig/telnyx/models/dir_update_infringement_update_params.rbs +0 -111
- data/sig/telnyx/models/enterprises/reputation/loa_create_params.rbs +0 -135
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
class KeyListResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Telnyx::Models::Storage::Kvs::KeyListResponse,
|
|
12
|
+
Telnyx::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
sig do
|
|
17
|
+
returns(
|
|
18
|
+
T.nilable(
|
|
19
|
+
T::Array[Telnyx::Models::Storage::Kvs::KeyListResponse::Data]
|
|
20
|
+
)
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
attr_reader :data
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
data:
|
|
28
|
+
T::Array[
|
|
29
|
+
Telnyx::Models::Storage::Kvs::KeyListResponse::Data::OrHash
|
|
30
|
+
]
|
|
31
|
+
).void
|
|
32
|
+
end
|
|
33
|
+
attr_writer :data
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
returns(
|
|
37
|
+
T.nilable(Telnyx::Models::Storage::Kvs::KeyListResponse::Meta)
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
attr_reader :meta
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
params(
|
|
44
|
+
meta: Telnyx::Models::Storage::Kvs::KeyListResponse::Meta::OrHash
|
|
45
|
+
).void
|
|
46
|
+
end
|
|
47
|
+
attr_writer :meta
|
|
48
|
+
|
|
49
|
+
sig { returns(T.nilable(String)) }
|
|
50
|
+
attr_reader :record_type
|
|
51
|
+
|
|
52
|
+
sig { params(record_type: String).void }
|
|
53
|
+
attr_writer :record_type
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
params(
|
|
57
|
+
data:
|
|
58
|
+
T::Array[
|
|
59
|
+
Telnyx::Models::Storage::Kvs::KeyListResponse::Data::OrHash
|
|
60
|
+
],
|
|
61
|
+
meta: Telnyx::Models::Storage::Kvs::KeyListResponse::Meta::OrHash,
|
|
62
|
+
record_type: String
|
|
63
|
+
).returns(T.attached_class)
|
|
64
|
+
end
|
|
65
|
+
def self.new(data: nil, meta: nil, record_type: nil)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
sig do
|
|
69
|
+
override.returns(
|
|
70
|
+
{
|
|
71
|
+
data:
|
|
72
|
+
T::Array[Telnyx::Models::Storage::Kvs::KeyListResponse::Data],
|
|
73
|
+
meta: Telnyx::Models::Storage::Kvs::KeyListResponse::Meta,
|
|
74
|
+
record_type: String
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
end
|
|
78
|
+
def to_hash
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
82
|
+
OrHash =
|
|
83
|
+
T.type_alias do
|
|
84
|
+
T.any(
|
|
85
|
+
Telnyx::Models::Storage::Kvs::KeyListResponse::Data,
|
|
86
|
+
Telnyx::Internal::AnyHash
|
|
87
|
+
)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
sig { returns(T.nilable(String)) }
|
|
91
|
+
attr_reader :key
|
|
92
|
+
|
|
93
|
+
sig { params(key: String).void }
|
|
94
|
+
attr_writer :key
|
|
95
|
+
|
|
96
|
+
# Size of the stored value in bytes.
|
|
97
|
+
sig { returns(T.nilable(Integer)) }
|
|
98
|
+
attr_reader :size_bytes
|
|
99
|
+
|
|
100
|
+
sig { params(size_bytes: Integer).void }
|
|
101
|
+
attr_writer :size_bytes
|
|
102
|
+
|
|
103
|
+
sig { returns(T.nilable(Time)) }
|
|
104
|
+
attr_reader :updated_at
|
|
105
|
+
|
|
106
|
+
sig { params(updated_at: Time).void }
|
|
107
|
+
attr_writer :updated_at
|
|
108
|
+
|
|
109
|
+
sig do
|
|
110
|
+
params(
|
|
111
|
+
key: String,
|
|
112
|
+
size_bytes: Integer,
|
|
113
|
+
updated_at: Time
|
|
114
|
+
).returns(T.attached_class)
|
|
115
|
+
end
|
|
116
|
+
def self.new(
|
|
117
|
+
key: nil,
|
|
118
|
+
# Size of the stored value in bytes.
|
|
119
|
+
size_bytes: nil,
|
|
120
|
+
updated_at: nil
|
|
121
|
+
)
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
sig do
|
|
125
|
+
override.returns(
|
|
126
|
+
{ key: String, size_bytes: Integer, updated_at: Time }
|
|
127
|
+
)
|
|
128
|
+
end
|
|
129
|
+
def to_hash
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class Meta < Telnyx::Internal::Type::BaseModel
|
|
134
|
+
OrHash =
|
|
135
|
+
T.type_alias do
|
|
136
|
+
T.any(
|
|
137
|
+
Telnyx::Models::Storage::Kvs::KeyListResponse::Meta,
|
|
138
|
+
Telnyx::Internal::AnyHash
|
|
139
|
+
)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Opaque cursor for the next page; pass it back as the `cursor` query parameter.
|
|
143
|
+
# Omitted when there are no further results.
|
|
144
|
+
sig { returns(T.nilable(String)) }
|
|
145
|
+
attr_reader :cursor
|
|
146
|
+
|
|
147
|
+
sig { params(cursor: String).void }
|
|
148
|
+
attr_writer :cursor
|
|
149
|
+
|
|
150
|
+
# Whether more results are available on a following page.
|
|
151
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
152
|
+
attr_reader :has_more
|
|
153
|
+
|
|
154
|
+
sig { params(has_more: T::Boolean).void }
|
|
155
|
+
attr_writer :has_more
|
|
156
|
+
|
|
157
|
+
sig do
|
|
158
|
+
params(cursor: String, has_more: T::Boolean).returns(
|
|
159
|
+
T.attached_class
|
|
160
|
+
)
|
|
161
|
+
end
|
|
162
|
+
def self.new(
|
|
163
|
+
# Opaque cursor for the next page; pass it back as the `cursor` query parameter.
|
|
164
|
+
# Omitted when there are no further results.
|
|
165
|
+
cursor: nil,
|
|
166
|
+
# Whether more results are available on a following page.
|
|
167
|
+
has_more: nil
|
|
168
|
+
)
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
sig { override.returns({ cursor: String, has_more: T::Boolean }) }
|
|
172
|
+
def to_hash
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
class KeyRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Telnyx::Storage::Kvs::KeyRetrieveParams,
|
|
15
|
+
Telnyx::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :key
|
|
24
|
+
|
|
25
|
+
sig do
|
|
26
|
+
params(
|
|
27
|
+
id: String,
|
|
28
|
+
key: String,
|
|
29
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(id:, key:, request_options: {})
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
override.returns(
|
|
37
|
+
{
|
|
38
|
+
id: String,
|
|
39
|
+
key: String,
|
|
40
|
+
request_options: Telnyx::RequestOptions
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
def to_hash
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Storage
|
|
6
|
+
module Kvs
|
|
7
|
+
class KeyUpdateParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
OrHash =
|
|
12
|
+
T.type_alias do
|
|
13
|
+
T.any(
|
|
14
|
+
Telnyx::Storage::Kvs::KeyUpdateParams,
|
|
15
|
+
Telnyx::Internal::AnyHash
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
sig { returns(String) }
|
|
23
|
+
attr_accessor :key
|
|
24
|
+
|
|
25
|
+
# Raw value bytes, stored verbatim.
|
|
26
|
+
sig { returns(Telnyx::Internal::FileInput) }
|
|
27
|
+
attr_accessor :body
|
|
28
|
+
|
|
29
|
+
# Time-to-live in seconds. When set, the key expires and is deleted after this
|
|
30
|
+
# duration. Requires a namespace provisioned with TTL support; namespaces without
|
|
31
|
+
# it return a `409`.
|
|
32
|
+
sig { returns(T.nilable(Integer)) }
|
|
33
|
+
attr_reader :ttl_secs
|
|
34
|
+
|
|
35
|
+
sig { params(ttl_secs: Integer).void }
|
|
36
|
+
attr_writer :ttl_secs
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
id: String,
|
|
41
|
+
key: String,
|
|
42
|
+
body: Telnyx::Internal::FileInput,
|
|
43
|
+
ttl_secs: Integer,
|
|
44
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
45
|
+
).returns(T.attached_class)
|
|
46
|
+
end
|
|
47
|
+
def self.new(
|
|
48
|
+
id:,
|
|
49
|
+
key:,
|
|
50
|
+
# Raw value bytes, stored verbatim.
|
|
51
|
+
body:,
|
|
52
|
+
# Time-to-live in seconds. When set, the key expires and is deleted after this
|
|
53
|
+
# duration. Requires a namespace provisioned with TTL support; namespaces without
|
|
54
|
+
# it return a `409`.
|
|
55
|
+
ttl_secs: nil,
|
|
56
|
+
request_options: {}
|
|
57
|
+
)
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
sig do
|
|
61
|
+
override.returns(
|
|
62
|
+
{
|
|
63
|
+
id: String,
|
|
64
|
+
key: String,
|
|
65
|
+
body: Telnyx::Internal::FileInput,
|
|
66
|
+
ttl_secs: Integer,
|
|
67
|
+
request_options: Telnyx::RequestOptions
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
def to_hash
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -484,21 +484,10 @@ module Telnyx
|
|
|
484
484
|
|
|
485
485
|
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
486
486
|
# defined when separated by a space.
|
|
487
|
-
sig
|
|
488
|
-
returns(
|
|
489
|
-
T.nilable(
|
|
490
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol
|
|
491
|
-
)
|
|
492
|
-
)
|
|
493
|
-
end
|
|
487
|
+
sig { returns(T.nilable(String)) }
|
|
494
488
|
attr_reader :status_callback_event
|
|
495
489
|
|
|
496
|
-
sig
|
|
497
|
-
params(
|
|
498
|
-
status_callback_event:
|
|
499
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol
|
|
500
|
-
).void
|
|
501
|
-
end
|
|
490
|
+
sig { params(status_callback_event: String).void }
|
|
502
491
|
attr_writer :status_callback_event
|
|
503
492
|
|
|
504
493
|
# HTTP request type used for `StatusCallback`.
|
|
@@ -664,8 +653,7 @@ module Telnyx
|
|
|
664
653
|
sip_region:
|
|
665
654
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::SipRegion::OrSymbol,
|
|
666
655
|
status_callback: String,
|
|
667
|
-
status_callback_event:
|
|
668
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol,
|
|
656
|
+
status_callback_event: String,
|
|
669
657
|
status_callback_method:
|
|
670
658
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackMethod::OrSymbol,
|
|
671
659
|
supervise_call_sid: String,
|
|
@@ -862,8 +850,7 @@ module Telnyx
|
|
|
862
850
|
sip_region:
|
|
863
851
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::SipRegion::OrSymbol,
|
|
864
852
|
status_callback: String,
|
|
865
|
-
status_callback_event:
|
|
866
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol,
|
|
853
|
+
status_callback_event: String,
|
|
867
854
|
status_callback_method:
|
|
868
855
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackMethod::OrSymbol,
|
|
869
856
|
supervise_call_sid: String,
|
|
@@ -1304,52 +1291,6 @@ module Telnyx
|
|
|
1304
1291
|
end
|
|
1305
1292
|
end
|
|
1306
1293
|
|
|
1307
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
1308
|
-
# defined when separated by a space.
|
|
1309
|
-
module StatusCallbackEvent
|
|
1310
|
-
extend Telnyx::Internal::Type::Enum
|
|
1311
|
-
|
|
1312
|
-
TaggedSymbol =
|
|
1313
|
-
T.type_alias do
|
|
1314
|
-
T.all(
|
|
1315
|
-
Symbol,
|
|
1316
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent
|
|
1317
|
-
)
|
|
1318
|
-
end
|
|
1319
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1320
|
-
|
|
1321
|
-
INITIATED =
|
|
1322
|
-
T.let(
|
|
1323
|
-
:initiated,
|
|
1324
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1325
|
-
)
|
|
1326
|
-
RINGING =
|
|
1327
|
-
T.let(
|
|
1328
|
-
:ringing,
|
|
1329
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1330
|
-
)
|
|
1331
|
-
ANSWERED =
|
|
1332
|
-
T.let(
|
|
1333
|
-
:answered,
|
|
1334
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1335
|
-
)
|
|
1336
|
-
COMPLETED =
|
|
1337
|
-
T.let(
|
|
1338
|
-
:completed,
|
|
1339
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1340
|
-
)
|
|
1341
|
-
|
|
1342
|
-
sig do
|
|
1343
|
-
override.returns(
|
|
1344
|
-
T::Array[
|
|
1345
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1346
|
-
]
|
|
1347
|
-
)
|
|
1348
|
-
end
|
|
1349
|
-
def self.values
|
|
1350
|
-
end
|
|
1351
|
-
end
|
|
1352
|
-
|
|
1353
1294
|
# HTTP request type used for `StatusCallback`.
|
|
1354
1295
|
module StatusCallbackMethod
|
|
1355
1296
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -1911,21 +1852,10 @@ module Telnyx
|
|
|
1911
1852
|
|
|
1912
1853
|
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
1913
1854
|
# defined when separated by a space.
|
|
1914
|
-
sig
|
|
1915
|
-
returns(
|
|
1916
|
-
T.nilable(
|
|
1917
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol
|
|
1918
|
-
)
|
|
1919
|
-
)
|
|
1920
|
-
end
|
|
1855
|
+
sig { returns(T.nilable(String)) }
|
|
1921
1856
|
attr_reader :status_callback_event
|
|
1922
1857
|
|
|
1923
|
-
sig
|
|
1924
|
-
params(
|
|
1925
|
-
status_callback_event:
|
|
1926
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol
|
|
1927
|
-
).void
|
|
1928
|
-
end
|
|
1858
|
+
sig { params(status_callback_event: String).void }
|
|
1929
1859
|
attr_writer :status_callback_event
|
|
1930
1860
|
|
|
1931
1861
|
# HTTP request type used for `StatusCallback`.
|
|
@@ -2091,8 +2021,7 @@ module Telnyx
|
|
|
2091
2021
|
sip_region:
|
|
2092
2022
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::SipRegion::OrSymbol,
|
|
2093
2023
|
status_callback: String,
|
|
2094
|
-
status_callback_event:
|
|
2095
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol,
|
|
2024
|
+
status_callback_event: String,
|
|
2096
2025
|
status_callback_method:
|
|
2097
2026
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackMethod::OrSymbol,
|
|
2098
2027
|
supervise_call_sid: String,
|
|
@@ -2290,8 +2219,7 @@ module Telnyx
|
|
|
2290
2219
|
sip_region:
|
|
2291
2220
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::SipRegion::OrSymbol,
|
|
2292
2221
|
status_callback: String,
|
|
2293
|
-
status_callback_event:
|
|
2294
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol,
|
|
2222
|
+
status_callback_event: String,
|
|
2295
2223
|
status_callback_method:
|
|
2296
2224
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackMethod::OrSymbol,
|
|
2297
2225
|
supervise_call_sid: String,
|
|
@@ -2732,52 +2660,6 @@ module Telnyx
|
|
|
2732
2660
|
end
|
|
2733
2661
|
end
|
|
2734
2662
|
|
|
2735
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
2736
|
-
# defined when separated by a space.
|
|
2737
|
-
module StatusCallbackEvent
|
|
2738
|
-
extend Telnyx::Internal::Type::Enum
|
|
2739
|
-
|
|
2740
|
-
TaggedSymbol =
|
|
2741
|
-
T.type_alias do
|
|
2742
|
-
T.all(
|
|
2743
|
-
Symbol,
|
|
2744
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent
|
|
2745
|
-
)
|
|
2746
|
-
end
|
|
2747
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2748
|
-
|
|
2749
|
-
INITIATED =
|
|
2750
|
-
T.let(
|
|
2751
|
-
:initiated,
|
|
2752
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2753
|
-
)
|
|
2754
|
-
RINGING =
|
|
2755
|
-
T.let(
|
|
2756
|
-
:ringing,
|
|
2757
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2758
|
-
)
|
|
2759
|
-
ANSWERED =
|
|
2760
|
-
T.let(
|
|
2761
|
-
:answered,
|
|
2762
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2763
|
-
)
|
|
2764
|
-
COMPLETED =
|
|
2765
|
-
T.let(
|
|
2766
|
-
:completed,
|
|
2767
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2768
|
-
)
|
|
2769
|
-
|
|
2770
|
-
sig do
|
|
2771
|
-
override.returns(
|
|
2772
|
-
T::Array[
|
|
2773
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2774
|
-
]
|
|
2775
|
-
)
|
|
2776
|
-
end
|
|
2777
|
-
def self.values
|
|
2778
|
-
end
|
|
2779
|
-
end
|
|
2780
|
-
|
|
2781
2663
|
# HTTP request type used for `StatusCallback`.
|
|
2782
2664
|
module StatusCallbackMethod
|
|
2783
2665
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -3334,21 +3216,10 @@ module Telnyx
|
|
|
3334
3216
|
|
|
3335
3217
|
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
3336
3218
|
# defined when separated by a space.
|
|
3337
|
-
sig
|
|
3338
|
-
returns(
|
|
3339
|
-
T.nilable(
|
|
3340
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol
|
|
3341
|
-
)
|
|
3342
|
-
)
|
|
3343
|
-
end
|
|
3219
|
+
sig { returns(T.nilable(String)) }
|
|
3344
3220
|
attr_reader :status_callback_event
|
|
3345
3221
|
|
|
3346
|
-
sig
|
|
3347
|
-
params(
|
|
3348
|
-
status_callback_event:
|
|
3349
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol
|
|
3350
|
-
).void
|
|
3351
|
-
end
|
|
3222
|
+
sig { params(status_callback_event: String).void }
|
|
3352
3223
|
attr_writer :status_callback_event
|
|
3353
3224
|
|
|
3354
3225
|
# HTTP request type used for `StatusCallback`.
|
|
@@ -3516,8 +3387,7 @@ module Telnyx
|
|
|
3516
3387
|
sip_region:
|
|
3517
3388
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::SipRegion::OrSymbol,
|
|
3518
3389
|
status_callback: String,
|
|
3519
|
-
status_callback_event:
|
|
3520
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol,
|
|
3390
|
+
status_callback_event: String,
|
|
3521
3391
|
status_callback_method:
|
|
3522
3392
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackMethod::OrSymbol,
|
|
3523
3393
|
supervise_call_sid: String,
|
|
@@ -3713,8 +3583,7 @@ module Telnyx
|
|
|
3713
3583
|
sip_region:
|
|
3714
3584
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::SipRegion::OrSymbol,
|
|
3715
3585
|
status_callback: String,
|
|
3716
|
-
status_callback_event:
|
|
3717
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol,
|
|
3586
|
+
status_callback_event: String,
|
|
3718
3587
|
status_callback_method:
|
|
3719
3588
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackMethod::OrSymbol,
|
|
3720
3589
|
supervise_call_sid: String,
|
|
@@ -4156,52 +4025,6 @@ module Telnyx
|
|
|
4156
4025
|
end
|
|
4157
4026
|
end
|
|
4158
4027
|
|
|
4159
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
4160
|
-
# defined when separated by a space.
|
|
4161
|
-
module StatusCallbackEvent
|
|
4162
|
-
extend Telnyx::Internal::Type::Enum
|
|
4163
|
-
|
|
4164
|
-
TaggedSymbol =
|
|
4165
|
-
T.type_alias do
|
|
4166
|
-
T.all(
|
|
4167
|
-
Symbol,
|
|
4168
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent
|
|
4169
|
-
)
|
|
4170
|
-
end
|
|
4171
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
4172
|
-
|
|
4173
|
-
INITIATED =
|
|
4174
|
-
T.let(
|
|
4175
|
-
:initiated,
|
|
4176
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4177
|
-
)
|
|
4178
|
-
RINGING =
|
|
4179
|
-
T.let(
|
|
4180
|
-
:ringing,
|
|
4181
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4182
|
-
)
|
|
4183
|
-
ANSWERED =
|
|
4184
|
-
T.let(
|
|
4185
|
-
:answered,
|
|
4186
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4187
|
-
)
|
|
4188
|
-
COMPLETED =
|
|
4189
|
-
T.let(
|
|
4190
|
-
:completed,
|
|
4191
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4192
|
-
)
|
|
4193
|
-
|
|
4194
|
-
sig do
|
|
4195
|
-
override.returns(
|
|
4196
|
-
T::Array[
|
|
4197
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4198
|
-
]
|
|
4199
|
-
)
|
|
4200
|
-
end
|
|
4201
|
-
def self.values
|
|
4202
|
-
end
|
|
4203
|
-
end
|
|
4204
|
-
|
|
4205
4028
|
# HTTP request type used for `StatusCallback`.
|
|
4206
4029
|
module StatusCallbackMethod
|
|
4207
4030
|
extend Telnyx::Internal::Type::Enum
|