telnyx 4.1.0 → 4.2.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 +15 -0
- data/README.md +1 -1
- data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
- data/lib/telnyx/models/calls/transcription_start_request.rb +56 -56
- data/lib/telnyx/models/messaging_profile.rb +9 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
- data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
- data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
- data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
- data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
- data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
- data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +266 -263
- data/rbi/telnyx/models/messaging_profile.rbi +11 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
- data/rbi/telnyx/resources/calls/actions.rbi +5 -5
- data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
- data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
- data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
- data/sig/telnyx/models/calls/transcription_start_request.rbs +83 -83
- data/sig/telnyx/models/messaging_profile.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
- data/sig/telnyx/resources/calls/actions.rbs +1 -1
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
- data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
- metadata +2 -2
@@ -38,6 +38,131 @@ module Telnyx
|
|
38
38
|
end
|
39
39
|
def to_hash
|
40
40
|
end
|
41
|
+
|
42
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
43
|
+
OrHash =
|
44
|
+
T.type_alias do
|
45
|
+
T.any(
|
46
|
+
Telnyx::Models::WireguardPeerCreateResponse::Data,
|
47
|
+
Telnyx::Internal::AnyHash
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
52
|
+
# Public and Private key pair will be generated for you.
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :public_key
|
55
|
+
|
56
|
+
sig { params(public_key: String).void }
|
57
|
+
attr_writer :public_key
|
58
|
+
|
59
|
+
# The id of the wireguard interface associated with the peer.
|
60
|
+
sig { returns(T.nilable(String)) }
|
61
|
+
attr_reader :wireguard_interface_id
|
62
|
+
|
63
|
+
sig { params(wireguard_interface_id: String).void }
|
64
|
+
attr_writer :wireguard_interface_id
|
65
|
+
|
66
|
+
# Identifies the resource.
|
67
|
+
sig { returns(T.nilable(String)) }
|
68
|
+
attr_reader :id
|
69
|
+
|
70
|
+
sig { params(id: String).void }
|
71
|
+
attr_writer :id
|
72
|
+
|
73
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
74
|
+
sig { returns(T.nilable(String)) }
|
75
|
+
attr_reader :created_at
|
76
|
+
|
77
|
+
sig { params(created_at: String).void }
|
78
|
+
attr_writer :created_at
|
79
|
+
|
80
|
+
# Identifies the type of the resource.
|
81
|
+
sig { returns(T.nilable(String)) }
|
82
|
+
attr_reader :record_type
|
83
|
+
|
84
|
+
sig { params(record_type: String).void }
|
85
|
+
attr_writer :record_type
|
86
|
+
|
87
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
attr_reader :updated_at
|
90
|
+
|
91
|
+
sig { params(updated_at: String).void }
|
92
|
+
attr_writer :updated_at
|
93
|
+
|
94
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
95
|
+
sig { returns(T.nilable(String)) }
|
96
|
+
attr_reader :last_seen
|
97
|
+
|
98
|
+
sig { params(last_seen: String).void }
|
99
|
+
attr_writer :last_seen
|
100
|
+
|
101
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
102
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
103
|
+
# new Public and Private key pair will be generated for you. When your
|
104
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
105
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
106
|
+
sig { returns(T.nilable(String)) }
|
107
|
+
attr_reader :private_key
|
108
|
+
|
109
|
+
sig { params(private_key: String).void }
|
110
|
+
attr_writer :private_key
|
111
|
+
|
112
|
+
sig do
|
113
|
+
params(
|
114
|
+
id: String,
|
115
|
+
created_at: String,
|
116
|
+
record_type: String,
|
117
|
+
updated_at: String,
|
118
|
+
public_key: String,
|
119
|
+
last_seen: String,
|
120
|
+
private_key: String,
|
121
|
+
wireguard_interface_id: String
|
122
|
+
).returns(T.attached_class)
|
123
|
+
end
|
124
|
+
def self.new(
|
125
|
+
# Identifies the resource.
|
126
|
+
id: nil,
|
127
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
128
|
+
created_at: nil,
|
129
|
+
# Identifies the type of the resource.
|
130
|
+
record_type: nil,
|
131
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
132
|
+
updated_at: nil,
|
133
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
134
|
+
# Public and Private key pair will be generated for you.
|
135
|
+
public_key: nil,
|
136
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
137
|
+
last_seen: nil,
|
138
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
139
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
140
|
+
# new Public and Private key pair will be generated for you. When your
|
141
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
142
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
143
|
+
private_key: nil,
|
144
|
+
# The id of the wireguard interface associated with the peer.
|
145
|
+
wireguard_interface_id: nil
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
sig do
|
150
|
+
override.returns(
|
151
|
+
{
|
152
|
+
id: String,
|
153
|
+
created_at: String,
|
154
|
+
record_type: String,
|
155
|
+
updated_at: String,
|
156
|
+
public_key: String,
|
157
|
+
last_seen: String,
|
158
|
+
private_key: String,
|
159
|
+
wireguard_interface_id: String
|
160
|
+
}
|
161
|
+
)
|
162
|
+
end
|
163
|
+
def to_hash
|
164
|
+
end
|
165
|
+
end
|
41
166
|
end
|
42
167
|
end
|
43
168
|
end
|
@@ -38,6 +38,131 @@ module Telnyx
|
|
38
38
|
end
|
39
39
|
def to_hash
|
40
40
|
end
|
41
|
+
|
42
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
43
|
+
OrHash =
|
44
|
+
T.type_alias do
|
45
|
+
T.any(
|
46
|
+
Telnyx::Models::WireguardPeerDeleteResponse::Data,
|
47
|
+
Telnyx::Internal::AnyHash
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
52
|
+
# Public and Private key pair will be generated for you.
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :public_key
|
55
|
+
|
56
|
+
sig { params(public_key: String).void }
|
57
|
+
attr_writer :public_key
|
58
|
+
|
59
|
+
# The id of the wireguard interface associated with the peer.
|
60
|
+
sig { returns(T.nilable(String)) }
|
61
|
+
attr_reader :wireguard_interface_id
|
62
|
+
|
63
|
+
sig { params(wireguard_interface_id: String).void }
|
64
|
+
attr_writer :wireguard_interface_id
|
65
|
+
|
66
|
+
# Identifies the resource.
|
67
|
+
sig { returns(T.nilable(String)) }
|
68
|
+
attr_reader :id
|
69
|
+
|
70
|
+
sig { params(id: String).void }
|
71
|
+
attr_writer :id
|
72
|
+
|
73
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
74
|
+
sig { returns(T.nilable(String)) }
|
75
|
+
attr_reader :created_at
|
76
|
+
|
77
|
+
sig { params(created_at: String).void }
|
78
|
+
attr_writer :created_at
|
79
|
+
|
80
|
+
# Identifies the type of the resource.
|
81
|
+
sig { returns(T.nilable(String)) }
|
82
|
+
attr_reader :record_type
|
83
|
+
|
84
|
+
sig { params(record_type: String).void }
|
85
|
+
attr_writer :record_type
|
86
|
+
|
87
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
attr_reader :updated_at
|
90
|
+
|
91
|
+
sig { params(updated_at: String).void }
|
92
|
+
attr_writer :updated_at
|
93
|
+
|
94
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
95
|
+
sig { returns(T.nilable(String)) }
|
96
|
+
attr_reader :last_seen
|
97
|
+
|
98
|
+
sig { params(last_seen: String).void }
|
99
|
+
attr_writer :last_seen
|
100
|
+
|
101
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
102
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
103
|
+
# new Public and Private key pair will be generated for you. When your
|
104
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
105
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
106
|
+
sig { returns(T.nilable(String)) }
|
107
|
+
attr_reader :private_key
|
108
|
+
|
109
|
+
sig { params(private_key: String).void }
|
110
|
+
attr_writer :private_key
|
111
|
+
|
112
|
+
sig do
|
113
|
+
params(
|
114
|
+
id: String,
|
115
|
+
created_at: String,
|
116
|
+
record_type: String,
|
117
|
+
updated_at: String,
|
118
|
+
public_key: String,
|
119
|
+
last_seen: String,
|
120
|
+
private_key: String,
|
121
|
+
wireguard_interface_id: String
|
122
|
+
).returns(T.attached_class)
|
123
|
+
end
|
124
|
+
def self.new(
|
125
|
+
# Identifies the resource.
|
126
|
+
id: nil,
|
127
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
128
|
+
created_at: nil,
|
129
|
+
# Identifies the type of the resource.
|
130
|
+
record_type: nil,
|
131
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
132
|
+
updated_at: nil,
|
133
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
134
|
+
# Public and Private key pair will be generated for you.
|
135
|
+
public_key: nil,
|
136
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
137
|
+
last_seen: nil,
|
138
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
139
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
140
|
+
# new Public and Private key pair will be generated for you. When your
|
141
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
142
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
143
|
+
private_key: nil,
|
144
|
+
# The id of the wireguard interface associated with the peer.
|
145
|
+
wireguard_interface_id: nil
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
sig do
|
150
|
+
override.returns(
|
151
|
+
{
|
152
|
+
id: String,
|
153
|
+
created_at: String,
|
154
|
+
record_type: String,
|
155
|
+
updated_at: String,
|
156
|
+
public_key: String,
|
157
|
+
last_seen: String,
|
158
|
+
private_key: String,
|
159
|
+
wireguard_interface_id: String
|
160
|
+
}
|
161
|
+
)
|
162
|
+
end
|
163
|
+
def to_hash
|
164
|
+
end
|
165
|
+
end
|
41
166
|
end
|
42
167
|
end
|
43
168
|
end
|
@@ -52,6 +52,131 @@ module Telnyx
|
|
52
52
|
end
|
53
53
|
def to_hash
|
54
54
|
end
|
55
|
+
|
56
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
57
|
+
OrHash =
|
58
|
+
T.type_alias do
|
59
|
+
T.any(
|
60
|
+
Telnyx::Models::WireguardPeerListResponse::Data,
|
61
|
+
Telnyx::Internal::AnyHash
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
65
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
66
|
+
# Public and Private key pair will be generated for you.
|
67
|
+
sig { returns(T.nilable(String)) }
|
68
|
+
attr_reader :public_key
|
69
|
+
|
70
|
+
sig { params(public_key: String).void }
|
71
|
+
attr_writer :public_key
|
72
|
+
|
73
|
+
# The id of the wireguard interface associated with the peer.
|
74
|
+
sig { returns(T.nilable(String)) }
|
75
|
+
attr_reader :wireguard_interface_id
|
76
|
+
|
77
|
+
sig { params(wireguard_interface_id: String).void }
|
78
|
+
attr_writer :wireguard_interface_id
|
79
|
+
|
80
|
+
# Identifies the resource.
|
81
|
+
sig { returns(T.nilable(String)) }
|
82
|
+
attr_reader :id
|
83
|
+
|
84
|
+
sig { params(id: String).void }
|
85
|
+
attr_writer :id
|
86
|
+
|
87
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
attr_reader :created_at
|
90
|
+
|
91
|
+
sig { params(created_at: String).void }
|
92
|
+
attr_writer :created_at
|
93
|
+
|
94
|
+
# Identifies the type of the resource.
|
95
|
+
sig { returns(T.nilable(String)) }
|
96
|
+
attr_reader :record_type
|
97
|
+
|
98
|
+
sig { params(record_type: String).void }
|
99
|
+
attr_writer :record_type
|
100
|
+
|
101
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
102
|
+
sig { returns(T.nilable(String)) }
|
103
|
+
attr_reader :updated_at
|
104
|
+
|
105
|
+
sig { params(updated_at: String).void }
|
106
|
+
attr_writer :updated_at
|
107
|
+
|
108
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
109
|
+
sig { returns(T.nilable(String)) }
|
110
|
+
attr_reader :last_seen
|
111
|
+
|
112
|
+
sig { params(last_seen: String).void }
|
113
|
+
attr_writer :last_seen
|
114
|
+
|
115
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
116
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
117
|
+
# new Public and Private key pair will be generated for you. When your
|
118
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
119
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
120
|
+
sig { returns(T.nilable(String)) }
|
121
|
+
attr_reader :private_key
|
122
|
+
|
123
|
+
sig { params(private_key: String).void }
|
124
|
+
attr_writer :private_key
|
125
|
+
|
126
|
+
sig do
|
127
|
+
params(
|
128
|
+
id: String,
|
129
|
+
created_at: String,
|
130
|
+
record_type: String,
|
131
|
+
updated_at: String,
|
132
|
+
public_key: String,
|
133
|
+
last_seen: String,
|
134
|
+
private_key: String,
|
135
|
+
wireguard_interface_id: String
|
136
|
+
).returns(T.attached_class)
|
137
|
+
end
|
138
|
+
def self.new(
|
139
|
+
# Identifies the resource.
|
140
|
+
id: nil,
|
141
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
142
|
+
created_at: nil,
|
143
|
+
# Identifies the type of the resource.
|
144
|
+
record_type: nil,
|
145
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
146
|
+
updated_at: nil,
|
147
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
148
|
+
# Public and Private key pair will be generated for you.
|
149
|
+
public_key: nil,
|
150
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
151
|
+
last_seen: nil,
|
152
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
153
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
154
|
+
# new Public and Private key pair will be generated for you. When your
|
155
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
156
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
157
|
+
private_key: nil,
|
158
|
+
# The id of the wireguard interface associated with the peer.
|
159
|
+
wireguard_interface_id: nil
|
160
|
+
)
|
161
|
+
end
|
162
|
+
|
163
|
+
sig do
|
164
|
+
override.returns(
|
165
|
+
{
|
166
|
+
id: String,
|
167
|
+
created_at: String,
|
168
|
+
record_type: String,
|
169
|
+
updated_at: String,
|
170
|
+
public_key: String,
|
171
|
+
last_seen: String,
|
172
|
+
private_key: String,
|
173
|
+
wireguard_interface_id: String
|
174
|
+
}
|
175
|
+
)
|
176
|
+
end
|
177
|
+
def to_hash
|
178
|
+
end
|
179
|
+
end
|
55
180
|
end
|
56
181
|
end
|
57
182
|
end
|
@@ -38,6 +38,131 @@ module Telnyx
|
|
38
38
|
end
|
39
39
|
def to_hash
|
40
40
|
end
|
41
|
+
|
42
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
43
|
+
OrHash =
|
44
|
+
T.type_alias do
|
45
|
+
T.any(
|
46
|
+
Telnyx::Models::WireguardPeerRetrieveResponse::Data,
|
47
|
+
Telnyx::Internal::AnyHash
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
52
|
+
# Public and Private key pair will be generated for you.
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :public_key
|
55
|
+
|
56
|
+
sig { params(public_key: String).void }
|
57
|
+
attr_writer :public_key
|
58
|
+
|
59
|
+
# The id of the wireguard interface associated with the peer.
|
60
|
+
sig { returns(T.nilable(String)) }
|
61
|
+
attr_reader :wireguard_interface_id
|
62
|
+
|
63
|
+
sig { params(wireguard_interface_id: String).void }
|
64
|
+
attr_writer :wireguard_interface_id
|
65
|
+
|
66
|
+
# Identifies the resource.
|
67
|
+
sig { returns(T.nilable(String)) }
|
68
|
+
attr_reader :id
|
69
|
+
|
70
|
+
sig { params(id: String).void }
|
71
|
+
attr_writer :id
|
72
|
+
|
73
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
74
|
+
sig { returns(T.nilable(String)) }
|
75
|
+
attr_reader :created_at
|
76
|
+
|
77
|
+
sig { params(created_at: String).void }
|
78
|
+
attr_writer :created_at
|
79
|
+
|
80
|
+
# Identifies the type of the resource.
|
81
|
+
sig { returns(T.nilable(String)) }
|
82
|
+
attr_reader :record_type
|
83
|
+
|
84
|
+
sig { params(record_type: String).void }
|
85
|
+
attr_writer :record_type
|
86
|
+
|
87
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
attr_reader :updated_at
|
90
|
+
|
91
|
+
sig { params(updated_at: String).void }
|
92
|
+
attr_writer :updated_at
|
93
|
+
|
94
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
95
|
+
sig { returns(T.nilable(String)) }
|
96
|
+
attr_reader :last_seen
|
97
|
+
|
98
|
+
sig { params(last_seen: String).void }
|
99
|
+
attr_writer :last_seen
|
100
|
+
|
101
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
102
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
103
|
+
# new Public and Private key pair will be generated for you. When your
|
104
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
105
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
106
|
+
sig { returns(T.nilable(String)) }
|
107
|
+
attr_reader :private_key
|
108
|
+
|
109
|
+
sig { params(private_key: String).void }
|
110
|
+
attr_writer :private_key
|
111
|
+
|
112
|
+
sig do
|
113
|
+
params(
|
114
|
+
id: String,
|
115
|
+
created_at: String,
|
116
|
+
record_type: String,
|
117
|
+
updated_at: String,
|
118
|
+
public_key: String,
|
119
|
+
last_seen: String,
|
120
|
+
private_key: String,
|
121
|
+
wireguard_interface_id: String
|
122
|
+
).returns(T.attached_class)
|
123
|
+
end
|
124
|
+
def self.new(
|
125
|
+
# Identifies the resource.
|
126
|
+
id: nil,
|
127
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
128
|
+
created_at: nil,
|
129
|
+
# Identifies the type of the resource.
|
130
|
+
record_type: nil,
|
131
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
132
|
+
updated_at: nil,
|
133
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
134
|
+
# Public and Private key pair will be generated for you.
|
135
|
+
public_key: nil,
|
136
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
137
|
+
last_seen: nil,
|
138
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
139
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
140
|
+
# new Public and Private key pair will be generated for you. When your
|
141
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
142
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
143
|
+
private_key: nil,
|
144
|
+
# The id of the wireguard interface associated with the peer.
|
145
|
+
wireguard_interface_id: nil
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
sig do
|
150
|
+
override.returns(
|
151
|
+
{
|
152
|
+
id: String,
|
153
|
+
created_at: String,
|
154
|
+
record_type: String,
|
155
|
+
updated_at: String,
|
156
|
+
public_key: String,
|
157
|
+
last_seen: String,
|
158
|
+
private_key: String,
|
159
|
+
wireguard_interface_id: String
|
160
|
+
}
|
161
|
+
)
|
162
|
+
end
|
163
|
+
def to_hash
|
164
|
+
end
|
165
|
+
end
|
41
166
|
end
|
42
167
|
end
|
43
168
|
end
|
@@ -38,6 +38,131 @@ module Telnyx
|
|
38
38
|
end
|
39
39
|
def to_hash
|
40
40
|
end
|
41
|
+
|
42
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
43
|
+
OrHash =
|
44
|
+
T.type_alias do
|
45
|
+
T.any(
|
46
|
+
Telnyx::Models::WireguardPeerUpdateResponse::Data,
|
47
|
+
Telnyx::Internal::AnyHash
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
52
|
+
# Public and Private key pair will be generated for you.
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :public_key
|
55
|
+
|
56
|
+
sig { params(public_key: String).void }
|
57
|
+
attr_writer :public_key
|
58
|
+
|
59
|
+
# The id of the wireguard interface associated with the peer.
|
60
|
+
sig { returns(T.nilable(String)) }
|
61
|
+
attr_reader :wireguard_interface_id
|
62
|
+
|
63
|
+
sig { params(wireguard_interface_id: String).void }
|
64
|
+
attr_writer :wireguard_interface_id
|
65
|
+
|
66
|
+
# Identifies the resource.
|
67
|
+
sig { returns(T.nilable(String)) }
|
68
|
+
attr_reader :id
|
69
|
+
|
70
|
+
sig { params(id: String).void }
|
71
|
+
attr_writer :id
|
72
|
+
|
73
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
74
|
+
sig { returns(T.nilable(String)) }
|
75
|
+
attr_reader :created_at
|
76
|
+
|
77
|
+
sig { params(created_at: String).void }
|
78
|
+
attr_writer :created_at
|
79
|
+
|
80
|
+
# Identifies the type of the resource.
|
81
|
+
sig { returns(T.nilable(String)) }
|
82
|
+
attr_reader :record_type
|
83
|
+
|
84
|
+
sig { params(record_type: String).void }
|
85
|
+
attr_writer :record_type
|
86
|
+
|
87
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
attr_reader :updated_at
|
90
|
+
|
91
|
+
sig { params(updated_at: String).void }
|
92
|
+
attr_writer :updated_at
|
93
|
+
|
94
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
95
|
+
sig { returns(T.nilable(String)) }
|
96
|
+
attr_reader :last_seen
|
97
|
+
|
98
|
+
sig { params(last_seen: String).void }
|
99
|
+
attr_writer :last_seen
|
100
|
+
|
101
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
102
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
103
|
+
# new Public and Private key pair will be generated for you. When your
|
104
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
105
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
106
|
+
sig { returns(T.nilable(String)) }
|
107
|
+
attr_reader :private_key
|
108
|
+
|
109
|
+
sig { params(private_key: String).void }
|
110
|
+
attr_writer :private_key
|
111
|
+
|
112
|
+
sig do
|
113
|
+
params(
|
114
|
+
id: String,
|
115
|
+
created_at: String,
|
116
|
+
record_type: String,
|
117
|
+
updated_at: String,
|
118
|
+
public_key: String,
|
119
|
+
last_seen: String,
|
120
|
+
private_key: String,
|
121
|
+
wireguard_interface_id: String
|
122
|
+
).returns(T.attached_class)
|
123
|
+
end
|
124
|
+
def self.new(
|
125
|
+
# Identifies the resource.
|
126
|
+
id: nil,
|
127
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
128
|
+
created_at: nil,
|
129
|
+
# Identifies the type of the resource.
|
130
|
+
record_type: nil,
|
131
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
132
|
+
updated_at: nil,
|
133
|
+
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
134
|
+
# Public and Private key pair will be generated for you.
|
135
|
+
public_key: nil,
|
136
|
+
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
137
|
+
last_seen: nil,
|
138
|
+
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
139
|
+
# utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
|
140
|
+
# new Public and Private key pair will be generated for you. When your
|
141
|
+
# `private_key` is returned, you must save this immediately as we do not save it
|
142
|
+
# within Telnyx. If you lose your Private Key, it can not be recovered.
|
143
|
+
private_key: nil,
|
144
|
+
# The id of the wireguard interface associated with the peer.
|
145
|
+
wireguard_interface_id: nil
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
sig do
|
150
|
+
override.returns(
|
151
|
+
{
|
152
|
+
id: String,
|
153
|
+
created_at: String,
|
154
|
+
record_type: String,
|
155
|
+
updated_at: String,
|
156
|
+
public_key: String,
|
157
|
+
last_seen: String,
|
158
|
+
private_key: String,
|
159
|
+
wireguard_interface_id: String
|
160
|
+
}
|
161
|
+
)
|
162
|
+
end
|
163
|
+
def to_hash
|
164
|
+
end
|
165
|
+
end
|
41
166
|
end
|
42
167
|
end
|
43
168
|
end
|
@@ -1430,11 +1430,11 @@ module Telnyx
|
|
1430
1430
|
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngine::OrSymbol,
|
1431
1431
|
transcription_engine_config:
|
1432
1432
|
T.any(
|
1433
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::OrHash,
|
1434
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::OrHash,
|
1435
|
-
Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::OrHash,
|
1436
|
-
Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
1437
|
-
Telnyx::Calls::TranscriptionEngineBConfig::OrHash
|
1433
|
+
::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google::OrHash,
|
1434
|
+
::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx::OrHash,
|
1435
|
+
::Telnyx::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram::OrHash,
|
1436
|
+
::Telnyx::Calls::TranscriptionEngineAConfig::OrHash,
|
1437
|
+
::Telnyx::Calls::TranscriptionEngineBConfig::OrHash
|
1438
1438
|
),
|
1439
1439
|
transcription_tracks: String,
|
1440
1440
|
request_options: Telnyx::RequestOptions::OrHash
|