telnyx 5.164.0 → 5.166.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 +26 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +4 -5
- data/lib/telnyx/lib/webhook_verification.rb +54 -155
- data/lib/telnyx/lib.rb +3 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -1
- data/lib/telnyx/models/ai/transcription_settings.rb +20 -15
- data/lib/telnyx/models/ai/transcription_settings_config.rb +35 -10
- data/lib/telnyx/models/call_dial_params.rb +13 -1
- data/lib/telnyx/models/calls/action_transfer_params.rb +13 -1
- data/lib/telnyx/models/connection_rtcp_settings.rb +3 -3
- data/lib/telnyx/models/credential_connections/action_check_registration_status_response.rb +12 -12
- data/lib/telnyx/models/external_requirements/sub_number_order_retrieve_params.rb +28 -0
- data/lib/telnyx/models/external_requirements/sub_number_order_retrieve_response.rb +104 -0
- data/lib/telnyx/models/external_requirements/sub_number_order_update_params.rb +69 -0
- data/lib/telnyx/models/external_requirements/sub_number_order_update_response.rb +66 -0
- data/lib/telnyx/models/outbound_voice_profile.rb +14 -14
- data/lib/telnyx/models/outbound_voice_profile_create_params.rb +14 -14
- data/lib/telnyx/models/outbound_voice_profile_update_params.rb +14 -14
- data/lib/telnyx/models/uac_connections/action_check_registration_status_response.rb +12 -12
- data/lib/telnyx/models.rb +2 -2
- data/lib/telnyx/resources/calls/actions.rb +3 -1
- data/lib/telnyx/resources/calls.rb +3 -1
- data/lib/telnyx/resources/credential_connections/actions.rb +3 -3
- data/lib/telnyx/resources/external_requirements/sub_number_orders.rb +99 -0
- data/lib/telnyx/resources/external_requirements.rb +19 -0
- data/lib/telnyx/resources/outbound_voice_profiles.rb +2 -2
- data/lib/telnyx/resources/uac_connections/actions.rb +3 -3
- data/lib/telnyx/resources/webhooks.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +6 -4
- data/rbi/telnyx/client.rbi +3 -4
- data/rbi/telnyx/models/ai/assistant_tool.rbi +21 -0
- data/rbi/telnyx/models/ai/transcription_settings.rbi +40 -28
- data/rbi/telnyx/models/ai/transcription_settings_config.rbi +52 -12
- data/rbi/telnyx/models/call_dial_params.rbi +19 -0
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +19 -0
- data/rbi/telnyx/models/connection_rtcp_settings.rbi +4 -4
- data/rbi/telnyx/models/credential_connections/action_check_registration_status_response.rbi +18 -36
- data/rbi/telnyx/models/external_requirements/sub_number_order_retrieve_params.rbi +52 -0
- data/rbi/telnyx/models/external_requirements/sub_number_order_retrieve_response.rbi +248 -0
- data/rbi/telnyx/models/external_requirements/sub_number_order_update_params.rbi +119 -0
- data/rbi/telnyx/models/external_requirements/sub_number_order_update_response.rbi +159 -0
- data/rbi/telnyx/models/outbound_voice_profile.rbi +18 -18
- data/rbi/telnyx/models/outbound_voice_profile_create_params.rbi +18 -18
- data/rbi/telnyx/models/outbound_voice_profile_update_params.rbi +18 -18
- data/rbi/telnyx/models/uac_connections/action_check_registration_status_response.rbi +18 -36
- data/rbi/telnyx/models.rbi +2 -3
- data/rbi/telnyx/resources/calls/actions.rbi +7 -0
- data/rbi/telnyx/resources/calls.rbi +7 -0
- data/rbi/telnyx/resources/credential_connections/actions.rbi +3 -3
- data/rbi/telnyx/resources/external_requirements/sub_number_orders.rbi +71 -0
- data/rbi/telnyx/resources/external_requirements.rbi +16 -0
- data/rbi/telnyx/resources/outbound_voice_profiles.rbi +4 -4
- data/rbi/telnyx/resources/uac_connections/actions.rbi +3 -3
- data/sig/telnyx/client.rbs +2 -2
- data/sig/telnyx/models/ai/assistant_tool.rbs +7 -0
- data/sig/telnyx/models/ai/transcription_settings.rbs +2 -0
- data/sig/telnyx/models/ai/transcription_settings_config.rbs +14 -0
- data/sig/telnyx/models/call_dial_params.rbs +7 -0
- data/sig/telnyx/models/calls/action_transfer_params.rbs +7 -0
- data/sig/telnyx/models/credential_connections/action_check_registration_status_response.rbs +24 -36
- data/sig/telnyx/models/external_requirements/sub_number_order_retrieve_params.rbs +30 -0
- data/sig/telnyx/models/external_requirements/sub_number_order_retrieve_response.rbs +110 -0
- data/sig/telnyx/models/external_requirements/sub_number_order_update_params.rbs +50 -0
- data/sig/telnyx/models/external_requirements/sub_number_order_update_response.rbs +75 -0
- data/sig/telnyx/models/uac_connections/action_check_registration_status_response.rbs +24 -36
- data/sig/telnyx/models.rbs +2 -2
- data/sig/telnyx/resources/calls/actions.rbs +1 -0
- data/sig/telnyx/resources/calls.rbs +1 -0
- data/sig/telnyx/resources/external_requirements/sub_number_orders.rbs +22 -0
- data/sig/telnyx/resources/external_requirements.rbs +9 -0
- metadata +20 -26
- data/lib/telnyx/lib/webhooks_ed25519.rb +0 -63
- data/lib/telnyx/models/sip_registration_status_retrieve_params.rb +0 -59
- data/lib/telnyx/models/sip_registration_status_retrieve_response.rb +0 -214
- data/lib/telnyx/resources/sip_registration_status.rb +0 -59
- data/rbi/telnyx/models/sip_registration_status_retrieve_params.rbi +0 -124
- data/rbi/telnyx/models/sip_registration_status_retrieve_response.rbi +0 -416
- data/rbi/telnyx/resources/sip_registration_status.rbi +0 -52
- data/sig/telnyx/models/sip_registration_status_retrieve_params.rbs +0 -55
- data/sig/telnyx/models/sip_registration_status_retrieve_response.rbs +0 -195
- data/sig/telnyx/resources/sip_registration_status.rbs +0 -14
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module ExternalRequirements
|
|
6
|
+
class SubNumberOrderUpdateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig do
|
|
16
|
+
returns(
|
|
17
|
+
T.nilable(
|
|
18
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data
|
|
19
|
+
)
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_reader :data
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
data:
|
|
27
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data::OrHash
|
|
28
|
+
).void
|
|
29
|
+
end
|
|
30
|
+
attr_writer :data
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
data:
|
|
35
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data::OrHash
|
|
36
|
+
).returns(T.attached_class)
|
|
37
|
+
end
|
|
38
|
+
def self.new(data: nil)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig do
|
|
42
|
+
override.returns(
|
|
43
|
+
{
|
|
44
|
+
data:
|
|
45
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data
|
|
46
|
+
}
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
def to_hash
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
53
|
+
OrHash =
|
|
54
|
+
T.type_alias do
|
|
55
|
+
T.any(
|
|
56
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data,
|
|
57
|
+
Telnyx::Internal::AnyHash
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
sig { returns(T.nilable(String)) }
|
|
62
|
+
attr_reader :regulatory_requirement_id
|
|
63
|
+
|
|
64
|
+
sig { params(regulatory_requirement_id: String).void }
|
|
65
|
+
attr_writer :regulatory_requirement_id
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
returns(
|
|
69
|
+
T.nilable(
|
|
70
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data::RequirementAction
|
|
71
|
+
)
|
|
72
|
+
)
|
|
73
|
+
end
|
|
74
|
+
attr_reader :requirement_action
|
|
75
|
+
|
|
76
|
+
sig do
|
|
77
|
+
params(
|
|
78
|
+
requirement_action:
|
|
79
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data::RequirementAction::OrHash
|
|
80
|
+
).void
|
|
81
|
+
end
|
|
82
|
+
attr_writer :requirement_action
|
|
83
|
+
|
|
84
|
+
sig { returns(T.nilable(String)) }
|
|
85
|
+
attr_reader :sub_order_id
|
|
86
|
+
|
|
87
|
+
sig { params(sub_order_id: String).void }
|
|
88
|
+
attr_writer :sub_order_id
|
|
89
|
+
|
|
90
|
+
sig do
|
|
91
|
+
params(
|
|
92
|
+
regulatory_requirement_id: String,
|
|
93
|
+
requirement_action:
|
|
94
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data::RequirementAction::OrHash,
|
|
95
|
+
sub_order_id: String
|
|
96
|
+
).returns(T.attached_class)
|
|
97
|
+
end
|
|
98
|
+
def self.new(
|
|
99
|
+
regulatory_requirement_id: nil,
|
|
100
|
+
requirement_action: nil,
|
|
101
|
+
sub_order_id: nil
|
|
102
|
+
)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
sig do
|
|
106
|
+
override.returns(
|
|
107
|
+
{
|
|
108
|
+
regulatory_requirement_id: String,
|
|
109
|
+
requirement_action:
|
|
110
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data::RequirementAction,
|
|
111
|
+
sub_order_id: String
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
def to_hash
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
class RequirementAction < Telnyx::Internal::Type::BaseModel
|
|
119
|
+
OrHash =
|
|
120
|
+
T.type_alias do
|
|
121
|
+
T.any(
|
|
122
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse::Data::RequirementAction,
|
|
123
|
+
Telnyx::Internal::AnyHash
|
|
124
|
+
)
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
sig { returns(T.nilable(String)) }
|
|
128
|
+
attr_reader :type
|
|
129
|
+
|
|
130
|
+
sig { params(type: String).void }
|
|
131
|
+
attr_writer :type
|
|
132
|
+
|
|
133
|
+
# For Australia mobile ID verification, the unique Onfido verification link to
|
|
134
|
+
# share with the end user.
|
|
135
|
+
sig { returns(T.nilable(String)) }
|
|
136
|
+
attr_accessor :value
|
|
137
|
+
|
|
138
|
+
sig do
|
|
139
|
+
params(type: String, value: T.nilable(String)).returns(
|
|
140
|
+
T.attached_class
|
|
141
|
+
)
|
|
142
|
+
end
|
|
143
|
+
def self.new(
|
|
144
|
+
type: nil,
|
|
145
|
+
# For Australia mobile ID verification, the unique Onfido verification link to
|
|
146
|
+
# share with the end user.
|
|
147
|
+
value: nil
|
|
148
|
+
)
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
sig { override.returns({ type: String, value: T.nilable(String) }) }
|
|
152
|
+
def to_hash
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
end
|
|
159
|
+
end
|
|
@@ -30,8 +30,8 @@ module Telnyx
|
|
|
30
30
|
sig { params(call_recording: Telnyx::OutboundCallRecording::OrHash).void }
|
|
31
31
|
attr_writer :call_recording
|
|
32
32
|
|
|
33
|
-
#
|
|
34
|
-
#
|
|
33
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
34
|
+
# voice profile. Note that all times are UTC in 24-hour clock time.
|
|
35
35
|
sig { returns(T.nilable(Telnyx::OutboundVoiceProfile::CallingWindow)) }
|
|
36
36
|
attr_reader :calling_window
|
|
37
37
|
|
|
@@ -175,8 +175,8 @@ module Telnyx
|
|
|
175
175
|
# null (for no group assigned).
|
|
176
176
|
billing_group_id: nil,
|
|
177
177
|
call_recording: nil,
|
|
178
|
-
#
|
|
179
|
-
#
|
|
178
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
179
|
+
# voice profile. Note that all times are UTC in 24-hour clock time.
|
|
180
180
|
calling_window: nil,
|
|
181
181
|
# Must be no more than your global concurrent call limit. Null means no limit.
|
|
182
182
|
concurrent_call_limit: nil,
|
|
@@ -250,32 +250,32 @@ module Telnyx
|
|
|
250
250
|
)
|
|
251
251
|
end
|
|
252
252
|
|
|
253
|
-
#
|
|
254
|
-
#
|
|
253
|
+
# The maximum number of calls that can be initiated to a single called party (CLD)
|
|
254
|
+
# within the calling window. A null value means no limit.
|
|
255
255
|
sig { returns(T.nilable(Integer)) }
|
|
256
256
|
attr_reader :calls_per_cld
|
|
257
257
|
|
|
258
258
|
sig { params(calls_per_cld: Integer).void }
|
|
259
259
|
attr_writer :calls_per_cld
|
|
260
260
|
|
|
261
|
-
#
|
|
262
|
-
#
|
|
261
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are no longer
|
|
262
|
+
# allowed to start.
|
|
263
263
|
sig { returns(T.nilable(String)) }
|
|
264
264
|
attr_reader :end_time
|
|
265
265
|
|
|
266
266
|
sig { params(end_time: String).void }
|
|
267
267
|
attr_writer :end_time
|
|
268
268
|
|
|
269
|
-
#
|
|
270
|
-
#
|
|
269
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are allowed to
|
|
270
|
+
# start.
|
|
271
271
|
sig { returns(T.nilable(String)) }
|
|
272
272
|
attr_reader :start_time
|
|
273
273
|
|
|
274
274
|
sig { params(start_time: String).void }
|
|
275
275
|
attr_writer :start_time
|
|
276
276
|
|
|
277
|
-
#
|
|
278
|
-
#
|
|
277
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
278
|
+
# voice profile. Note that all times are UTC in 24-hour clock time.
|
|
279
279
|
sig do
|
|
280
280
|
params(
|
|
281
281
|
calls_per_cld: Integer,
|
|
@@ -284,14 +284,14 @@ module Telnyx
|
|
|
284
284
|
).returns(T.attached_class)
|
|
285
285
|
end
|
|
286
286
|
def self.new(
|
|
287
|
-
#
|
|
288
|
-
#
|
|
287
|
+
# The maximum number of calls that can be initiated to a single called party (CLD)
|
|
288
|
+
# within the calling window. A null value means no limit.
|
|
289
289
|
calls_per_cld: nil,
|
|
290
|
-
#
|
|
291
|
-
# longer allowed to start.
|
|
292
|
-
end_time: nil,
|
|
293
|
-
# (BETA) The UTC time of day (in HH:MM format, 24-hour clock) when calls are
|
|
290
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are no longer
|
|
294
291
|
# allowed to start.
|
|
292
|
+
end_time: nil,
|
|
293
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are allowed to
|
|
294
|
+
# start.
|
|
295
295
|
start_time: nil
|
|
296
296
|
)
|
|
297
297
|
end
|
|
@@ -29,8 +29,8 @@ module Telnyx
|
|
|
29
29
|
sig { params(call_recording: Telnyx::OutboundCallRecording::OrHash).void }
|
|
30
30
|
attr_writer :call_recording
|
|
31
31
|
|
|
32
|
-
#
|
|
33
|
-
#
|
|
32
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
33
|
+
# voice profile. Note that all times are UTC in 24-hour clock time.
|
|
34
34
|
sig do
|
|
35
35
|
returns(
|
|
36
36
|
T.nilable(Telnyx::OutboundVoiceProfileCreateParams::CallingWindow)
|
|
@@ -146,8 +146,8 @@ module Telnyx
|
|
|
146
146
|
# null (for no group assigned).
|
|
147
147
|
billing_group_id: nil,
|
|
148
148
|
call_recording: nil,
|
|
149
|
-
#
|
|
150
|
-
#
|
|
149
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
150
|
+
# voice profile. Note that all times are UTC in 24-hour clock time.
|
|
151
151
|
calling_window: nil,
|
|
152
152
|
# Must be no more than your global concurrent call limit. Null means no limit.
|
|
153
153
|
concurrent_call_limit: nil,
|
|
@@ -211,32 +211,32 @@ module Telnyx
|
|
|
211
211
|
)
|
|
212
212
|
end
|
|
213
213
|
|
|
214
|
-
#
|
|
215
|
-
#
|
|
214
|
+
# The maximum number of calls that can be initiated to a single called party (CLD)
|
|
215
|
+
# within the calling window. A null value means no limit.
|
|
216
216
|
sig { returns(T.nilable(Integer)) }
|
|
217
217
|
attr_reader :calls_per_cld
|
|
218
218
|
|
|
219
219
|
sig { params(calls_per_cld: Integer).void }
|
|
220
220
|
attr_writer :calls_per_cld
|
|
221
221
|
|
|
222
|
-
#
|
|
223
|
-
#
|
|
222
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are no longer
|
|
223
|
+
# allowed to start.
|
|
224
224
|
sig { returns(T.nilable(Time)) }
|
|
225
225
|
attr_reader :end_time
|
|
226
226
|
|
|
227
227
|
sig { params(end_time: Time).void }
|
|
228
228
|
attr_writer :end_time
|
|
229
229
|
|
|
230
|
-
#
|
|
231
|
-
#
|
|
230
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are allowed to
|
|
231
|
+
# start.
|
|
232
232
|
sig { returns(T.nilable(Time)) }
|
|
233
233
|
attr_reader :start_time
|
|
234
234
|
|
|
235
235
|
sig { params(start_time: Time).void }
|
|
236
236
|
attr_writer :start_time
|
|
237
237
|
|
|
238
|
-
#
|
|
239
|
-
#
|
|
238
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
239
|
+
# voice profile. Note that all times are UTC in 24-hour clock time.
|
|
240
240
|
sig do
|
|
241
241
|
params(
|
|
242
242
|
calls_per_cld: Integer,
|
|
@@ -245,14 +245,14 @@ module Telnyx
|
|
|
245
245
|
).returns(T.attached_class)
|
|
246
246
|
end
|
|
247
247
|
def self.new(
|
|
248
|
-
#
|
|
249
|
-
#
|
|
248
|
+
# The maximum number of calls that can be initiated to a single called party (CLD)
|
|
249
|
+
# within the calling window. A null value means no limit.
|
|
250
250
|
calls_per_cld: nil,
|
|
251
|
-
#
|
|
252
|
-
# longer allowed to start.
|
|
253
|
-
end_time: nil,
|
|
254
|
-
# (BETA) The UTC time of day (in HH:MM format, 24-hour clock) when calls are
|
|
251
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are no longer
|
|
255
252
|
# allowed to start.
|
|
253
|
+
end_time: nil,
|
|
254
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are allowed to
|
|
255
|
+
# start.
|
|
256
256
|
start_time: nil
|
|
257
257
|
)
|
|
258
258
|
end
|
|
@@ -32,8 +32,8 @@ module Telnyx
|
|
|
32
32
|
sig { params(call_recording: Telnyx::OutboundCallRecording::OrHash).void }
|
|
33
33
|
attr_writer :call_recording
|
|
34
34
|
|
|
35
|
-
#
|
|
36
|
-
#
|
|
35
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
36
|
+
# voice profile.
|
|
37
37
|
sig do
|
|
38
38
|
returns(
|
|
39
39
|
T.nilable(Telnyx::OutboundVoiceProfileUpdateParams::CallingWindow)
|
|
@@ -151,8 +151,8 @@ module Telnyx
|
|
|
151
151
|
# null (for no group assigned).
|
|
152
152
|
billing_group_id: nil,
|
|
153
153
|
call_recording: nil,
|
|
154
|
-
#
|
|
155
|
-
#
|
|
154
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
155
|
+
# voice profile.
|
|
156
156
|
calling_window: nil,
|
|
157
157
|
# Must be no more than your global concurrent call limit. Null means no limit.
|
|
158
158
|
concurrent_call_limit: nil,
|
|
@@ -217,32 +217,32 @@ module Telnyx
|
|
|
217
217
|
)
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
-
#
|
|
221
|
-
#
|
|
220
|
+
# The maximum number of calls that can be initiated to a single called party (CLD)
|
|
221
|
+
# within the calling window. A null value means no limit.
|
|
222
222
|
sig { returns(T.nilable(Integer)) }
|
|
223
223
|
attr_reader :calls_per_cld
|
|
224
224
|
|
|
225
225
|
sig { params(calls_per_cld: Integer).void }
|
|
226
226
|
attr_writer :calls_per_cld
|
|
227
227
|
|
|
228
|
-
#
|
|
229
|
-
#
|
|
228
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are no longer
|
|
229
|
+
# allowed to start.
|
|
230
230
|
sig { returns(T.nilable(Time)) }
|
|
231
231
|
attr_reader :end_time
|
|
232
232
|
|
|
233
233
|
sig { params(end_time: Time).void }
|
|
234
234
|
attr_writer :end_time
|
|
235
235
|
|
|
236
|
-
#
|
|
237
|
-
#
|
|
236
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are allowed to
|
|
237
|
+
# start.
|
|
238
238
|
sig { returns(T.nilable(Time)) }
|
|
239
239
|
attr_reader :start_time
|
|
240
240
|
|
|
241
241
|
sig { params(start_time: Time).void }
|
|
242
242
|
attr_writer :start_time
|
|
243
243
|
|
|
244
|
-
#
|
|
245
|
-
#
|
|
244
|
+
# Specifies the time window and call limits for calls made using this outbound
|
|
245
|
+
# voice profile.
|
|
246
246
|
sig do
|
|
247
247
|
params(
|
|
248
248
|
calls_per_cld: Integer,
|
|
@@ -251,14 +251,14 @@ module Telnyx
|
|
|
251
251
|
).returns(T.attached_class)
|
|
252
252
|
end
|
|
253
253
|
def self.new(
|
|
254
|
-
#
|
|
255
|
-
#
|
|
254
|
+
# The maximum number of calls that can be initiated to a single called party (CLD)
|
|
255
|
+
# within the calling window. A null value means no limit.
|
|
256
256
|
calls_per_cld: nil,
|
|
257
|
-
#
|
|
258
|
-
# longer allowed to start.
|
|
259
|
-
end_time: nil,
|
|
260
|
-
# (BETA) The UTC time of day (in HH:MM format, 24-hour clock) when calls are
|
|
257
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are no longer
|
|
261
258
|
# allowed to start.
|
|
259
|
+
end_time: nil,
|
|
260
|
+
# The UTC time of day (in HH:MM format, 24-hour clock) when calls are allowed to
|
|
261
|
+
# start.
|
|
262
262
|
start_time: nil
|
|
263
263
|
)
|
|
264
264
|
end
|
|
@@ -60,24 +60,15 @@ module Telnyx
|
|
|
60
60
|
|
|
61
61
|
# The ip used during the SIP connection
|
|
62
62
|
sig { returns(T.nilable(String)) }
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
sig { params(ip_address: String).void }
|
|
66
|
-
attr_writer :ip_address
|
|
63
|
+
attr_accessor :ip_address
|
|
67
64
|
|
|
68
65
|
# ISO 8601 formatted date indicating when the resource was last updated.
|
|
69
66
|
sig { returns(T.nilable(String)) }
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
sig { params(last_registration: String).void }
|
|
73
|
-
attr_writer :last_registration
|
|
67
|
+
attr_accessor :last_registration
|
|
74
68
|
|
|
75
69
|
# The port of the SIP connection
|
|
76
70
|
sig { returns(T.nilable(Integer)) }
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
sig { params(port: Integer).void }
|
|
80
|
-
attr_writer :port
|
|
71
|
+
attr_accessor :port
|
|
81
72
|
|
|
82
73
|
# Identifies the type of the resource.
|
|
83
74
|
sig { returns(T.nilable(String)) }
|
|
@@ -88,10 +79,7 @@ module Telnyx
|
|
|
88
79
|
|
|
89
80
|
# The user name of the SIP connection
|
|
90
81
|
sig { returns(T.nilable(String)) }
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
sig { params(sip_username: String).void }
|
|
94
|
-
attr_writer :sip_username
|
|
82
|
+
attr_accessor :sip_username
|
|
95
83
|
|
|
96
84
|
# The current registration status of your SIP connection
|
|
97
85
|
sig do
|
|
@@ -113,29 +101,23 @@ module Telnyx
|
|
|
113
101
|
|
|
114
102
|
# The protocol of the SIP connection
|
|
115
103
|
sig { returns(T.nilable(String)) }
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
sig { params(transport: String).void }
|
|
119
|
-
attr_writer :transport
|
|
104
|
+
attr_accessor :transport
|
|
120
105
|
|
|
121
106
|
# The user agent of the SIP connection
|
|
122
107
|
sig { returns(T.nilable(String)) }
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
sig { params(user_agent: String).void }
|
|
126
|
-
attr_writer :user_agent
|
|
108
|
+
attr_accessor :user_agent
|
|
127
109
|
|
|
128
110
|
sig do
|
|
129
111
|
params(
|
|
130
|
-
ip_address: String,
|
|
131
|
-
last_registration: String,
|
|
132
|
-
port: Integer,
|
|
112
|
+
ip_address: T.nilable(String),
|
|
113
|
+
last_registration: T.nilable(String),
|
|
114
|
+
port: T.nilable(Integer),
|
|
133
115
|
record_type: String,
|
|
134
|
-
sip_username: String,
|
|
116
|
+
sip_username: T.nilable(String),
|
|
135
117
|
status:
|
|
136
118
|
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::OrSymbol,
|
|
137
|
-
transport: String,
|
|
138
|
-
user_agent: String
|
|
119
|
+
transport: T.nilable(String),
|
|
120
|
+
user_agent: T.nilable(String)
|
|
139
121
|
).returns(T.attached_class)
|
|
140
122
|
end
|
|
141
123
|
def self.new(
|
|
@@ -161,15 +143,15 @@ module Telnyx
|
|
|
161
143
|
sig do
|
|
162
144
|
override.returns(
|
|
163
145
|
{
|
|
164
|
-
ip_address: String,
|
|
165
|
-
last_registration: String,
|
|
166
|
-
port: Integer,
|
|
146
|
+
ip_address: T.nilable(String),
|
|
147
|
+
last_registration: T.nilable(String),
|
|
148
|
+
port: T.nilable(Integer),
|
|
167
149
|
record_type: String,
|
|
168
|
-
sip_username: String,
|
|
150
|
+
sip_username: T.nilable(String),
|
|
169
151
|
status:
|
|
170
152
|
Telnyx::Models::UacConnections::ActionCheckRegistrationStatusResponse::Data::Status::TaggedSymbol,
|
|
171
|
-
transport: String,
|
|
172
|
-
user_agent: String
|
|
153
|
+
transport: T.nilable(String),
|
|
154
|
+
user_agent: T.nilable(String)
|
|
173
155
|
}
|
|
174
156
|
)
|
|
175
157
|
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -881,6 +881,8 @@ module Telnyx
|
|
|
881
881
|
ExternalConnectionUpdateParams =
|
|
882
882
|
Telnyx::Models::ExternalConnectionUpdateParams
|
|
883
883
|
|
|
884
|
+
ExternalRequirements = Telnyx::Models::ExternalRequirements
|
|
885
|
+
|
|
884
886
|
ExternalVoiceIntegrationsPaginationMeta =
|
|
885
887
|
Telnyx::Models::ExternalVoiceIntegrationsPaginationMeta
|
|
886
888
|
|
|
@@ -2014,9 +2016,6 @@ module Telnyx
|
|
|
2014
2016
|
|
|
2015
2017
|
SiprecConnectorUpdateParams = Telnyx::Models::SiprecConnectorUpdateParams
|
|
2016
2018
|
|
|
2017
|
-
SipRegistrationStatusRetrieveParams =
|
|
2018
|
-
Telnyx::Models::SipRegistrationStatusRetrieveParams
|
|
2019
|
-
|
|
2020
2019
|
SoundModifications = Telnyx::Models::SoundModifications
|
|
2021
2020
|
|
|
2022
2021
|
SpeechToTextListProvidersParams =
|
|
@@ -2286,6 +2286,7 @@ module Telnyx
|
|
|
2286
2286
|
client_state: String,
|
|
2287
2287
|
command_id: String,
|
|
2288
2288
|
custom_headers: T::Array[Telnyx::CustomSipHeader::OrHash],
|
|
2289
|
+
diversion: String,
|
|
2289
2290
|
early_media: T::Boolean,
|
|
2290
2291
|
from: String,
|
|
2291
2292
|
from_display_name: String,
|
|
@@ -2373,6 +2374,12 @@ module Telnyx
|
|
|
2373
2374
|
command_id: nil,
|
|
2374
2375
|
# Custom headers to be added to the SIP INVITE.
|
|
2375
2376
|
custom_headers: nil,
|
|
2377
|
+
# The number the inbound call being transferred was originally received on, in
|
|
2378
|
+
# +E164 format. Supplying it lets an unverified non-Telnyx `from` be used as the
|
|
2379
|
+
# caller id, provided that number is still on an active inbound call to this
|
|
2380
|
+
# `diversion` number for your account. The `diversion` number itself must be one
|
|
2381
|
+
# you own or have verified.
|
|
2382
|
+
diversion: nil,
|
|
2376
2383
|
# If set to false, early media will not be passed to the originating leg.
|
|
2377
2384
|
early_media: nil,
|
|
2378
2385
|
# The `from` number to be used as the caller id presented to the destination (`to`
|
|
@@ -53,6 +53,7 @@ module Telnyx
|
|
|
53
53
|
custom_headers: T::Array[Telnyx::CustomSipHeader::OrHash],
|
|
54
54
|
deepfake_detection: Telnyx::CallDialParams::DeepfakeDetection::OrHash,
|
|
55
55
|
dialogflow_config: Telnyx::DialogflowConfig::OrHash,
|
|
56
|
+
diversion: String,
|
|
56
57
|
enable_dialogflow: T::Boolean,
|
|
57
58
|
from_display_name: String,
|
|
58
59
|
link_to: String,
|
|
@@ -197,6 +198,12 @@ module Telnyx
|
|
|
197
198
|
# webhook.
|
|
198
199
|
deepfake_detection: nil,
|
|
199
200
|
dialogflow_config: nil,
|
|
201
|
+
# The number the inbound call being transferred was originally received on, in
|
|
202
|
+
# +E164 format. Supplying it lets an unverified non-Telnyx `from` be used as the
|
|
203
|
+
# caller id, provided that number is still on an active inbound call to this
|
|
204
|
+
# `diversion` number for your account. The `diversion` number itself must be one
|
|
205
|
+
# you own or have verified.
|
|
206
|
+
diversion: nil,
|
|
200
207
|
# Enables Dialogflow for the current call. The default value is false.
|
|
201
208
|
enable_dialogflow: nil,
|
|
202
209
|
# The `from_display_name` string to be used as the caller id name (SIP From
|
|
@@ -5,9 +5,9 @@ module Telnyx
|
|
|
5
5
|
class CredentialConnections
|
|
6
6
|
# Credential connection operations
|
|
7
7
|
class Actions
|
|
8
|
-
#
|
|
9
|
-
# (`
|
|
10
|
-
# event (`
|
|
8
|
+
# Returns the live SIP registration status for a credential connection. Reports
|
|
9
|
+
# whether the endpoint is currently registered (`status`) and the timestamp of the
|
|
10
|
+
# last SIP registration event (`last_registration`).
|
|
11
11
|
sig do
|
|
12
12
|
params(
|
|
13
13
|
id: String,
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class ExternalRequirements
|
|
6
|
+
# Requirement Groups
|
|
7
|
+
class SubNumberOrders
|
|
8
|
+
# Returns the input fields an action requirement needs and the current requirement
|
|
9
|
+
# action for a sub number order. Action requirements are fulfilled by an external
|
|
10
|
+
# step rather than by uploading documents. Australia mobile ID verification is
|
|
11
|
+
# currently the only action requirement. Once a verification link has been
|
|
12
|
+
# generated, it is returned in `requirement_action.value`.
|
|
13
|
+
sig do
|
|
14
|
+
params(
|
|
15
|
+
sub_number_order_id: String,
|
|
16
|
+
regulatory_requirement_id: String,
|
|
17
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
18
|
+
).returns(
|
|
19
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderRetrieveResponse
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def retrieve(
|
|
23
|
+
# The ID of the sub number order the requirement belongs to.
|
|
24
|
+
sub_number_order_id,
|
|
25
|
+
# The ID of the regulatory (action) requirement. For Australia mobile ID
|
|
26
|
+
# verification this is `b7c72fb8-fa08-4529-aaf6-b9117d3f3698`.
|
|
27
|
+
regulatory_requirement_id:,
|
|
28
|
+
request_options: {}
|
|
29
|
+
)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Submits the end user's details to the external verification provider and returns
|
|
33
|
+
# the requirement action. Australia mobile ID verification is currently the only
|
|
34
|
+
# action requirement. It generates a unique Onfido verification link, returned in
|
|
35
|
+
# `requirement_action.value`, which you share with the end user. The end user's
|
|
36
|
+
# `first_name` and `last_name` must be nested inside a `requirement` object;
|
|
37
|
+
# sending them at the top level is rejected.
|
|
38
|
+
sig do
|
|
39
|
+
params(
|
|
40
|
+
sub_number_order_id: String,
|
|
41
|
+
regulatory_requirement_id: String,
|
|
42
|
+
requirement:
|
|
43
|
+
Telnyx::ExternalRequirements::SubNumberOrderUpdateParams::Requirement::OrHash,
|
|
44
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
45
|
+
).returns(
|
|
46
|
+
Telnyx::Models::ExternalRequirements::SubNumberOrderUpdateResponse
|
|
47
|
+
)
|
|
48
|
+
end
|
|
49
|
+
def update(
|
|
50
|
+
# Path param: The ID of the sub number order the requirement belongs to.
|
|
51
|
+
sub_number_order_id,
|
|
52
|
+
# Path param: The ID of the regulatory (action) requirement. For Australia mobile
|
|
53
|
+
# ID verification this is `b7c72fb8-fa08-4529-aaf6-b9117d3f3698`.
|
|
54
|
+
regulatory_requirement_id:,
|
|
55
|
+
# Body param: The end user's identity details for the action requirement.
|
|
56
|
+
# Australia mobile ID verification is currently the only action requirement. It
|
|
57
|
+
# requires `first_name` and `last_name`, the same fields the corresponding GET
|
|
58
|
+
# lists in `fields_required`.
|
|
59
|
+
requirement:,
|
|
60
|
+
request_options: {}
|
|
61
|
+
)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# @api private
|
|
65
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
66
|
+
def self.new(client:)
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class ExternalRequirements
|
|
6
|
+
# Requirement Groups
|
|
7
|
+
sig { returns(Telnyx::Resources::ExternalRequirements::SubNumberOrders) }
|
|
8
|
+
attr_reader :sub_number_orders
|
|
9
|
+
|
|
10
|
+
# @api private
|
|
11
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
12
|
+
def self.new(client:)
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|