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.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
  5. data/lib/telnyx/models/calls/transcription_start_request.rb +56 -56
  6. data/lib/telnyx/models/messaging_profile.rb +9 -1
  7. data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
  8. data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
  9. data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
  10. data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
  11. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
  12. data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
  13. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
  14. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
  15. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
  16. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
  17. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
  18. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
  19. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
  20. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
  21. data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
  22. data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
  23. data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
  24. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
  25. data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
  26. data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
  27. data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
  28. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
  29. data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
  30. data/lib/telnyx/resources/calls/actions.rb +1 -1
  31. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  32. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
  33. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
  34. data/lib/telnyx/version.rb +1 -1
  35. data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
  36. data/rbi/telnyx/models/calls/transcription_start_request.rbi +266 -263
  37. data/rbi/telnyx/models/messaging_profile.rbi +11 -0
  38. data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
  39. data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
  40. data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
  41. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
  42. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
  43. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
  44. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
  45. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
  46. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
  47. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
  48. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
  49. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
  50. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
  51. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
  52. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
  53. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
  54. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
  55. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
  56. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
  57. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
  58. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
  59. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
  60. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
  61. data/rbi/telnyx/resources/calls/actions.rbi +5 -5
  62. data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
  63. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
  64. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
  65. data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
  66. data/sig/telnyx/models/calls/transcription_start_request.rbs +83 -83
  67. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  68. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  69. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  70. data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
  71. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
  72. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
  73. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
  74. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
  75. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
  76. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
  77. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
  78. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
  79. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
  80. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
  81. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
  82. data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
  83. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
  84. data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
  85. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
  86. data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
  87. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
  88. data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
  89. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
  90. data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
  91. data/sig/telnyx/resources/calls/actions.rbs +1 -1
  92. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  93. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
  94. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
  95. metadata +2 -2
@@ -11,6 +11,137 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardInterfaceRetrieveResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardInterfaceRetrieveResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute enable_sip_trunking
30
+ # Enable SIP traffic forwarding over VPN interface.
31
+ #
32
+ # @return [Boolean, nil]
33
+ optional :enable_sip_trunking, Telnyx::Internal::Type::Boolean
34
+
35
+ # @!attribute region
36
+ #
37
+ # @return [Telnyx::Models::WireguardInterfaceRetrieveResponse::Data::Region, nil]
38
+ optional :region, -> { Telnyx::Models::WireguardInterfaceRetrieveResponse::Data::Region }
39
+
40
+ # @!attribute region_code
41
+ # The region interface is deployed to.
42
+ #
43
+ # @return [String, nil]
44
+ optional :region_code, String
45
+
46
+ response_only do
47
+ # @!attribute id
48
+ # Identifies the resource.
49
+ #
50
+ # @return [String, nil]
51
+ optional :id, String
52
+
53
+ # @!attribute created_at
54
+ # ISO 8601 formatted date-time indicating when the resource was created.
55
+ #
56
+ # @return [String, nil]
57
+ optional :created_at, String
58
+
59
+ # @!attribute record_type
60
+ # Identifies the type of the resource.
61
+ #
62
+ # @return [String, nil]
63
+ optional :record_type, String
64
+
65
+ # @!attribute updated_at
66
+ # ISO 8601 formatted date-time indicating when the resource was updated.
67
+ #
68
+ # @return [String, nil]
69
+ optional :updated_at, String
70
+
71
+ # @!attribute status
72
+ # The current status of the interface deployment.
73
+ #
74
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
75
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
76
+
77
+ # @!attribute endpoint
78
+ # The Telnyx WireGuard peers `Peer.endpoint` value.
79
+ #
80
+ # @return [String, nil]
81
+ optional :endpoint, String
82
+
83
+ # @!attribute public_key
84
+ # The Telnyx WireGuard peers `Peer.PublicKey`.
85
+ #
86
+ # @return [String, nil]
87
+ optional :public_key, String
88
+ end
89
+
90
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, enable_sip_trunking: nil, endpoint: nil, public_key: nil, region: nil, region_code: nil)
91
+ # @param id [String] Identifies the resource.
92
+ #
93
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
94
+ #
95
+ # @param record_type [String] Identifies the type of the resource.
96
+ #
97
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
98
+ #
99
+ # @param name [String] A user specified name for the interface.
100
+ #
101
+ # @param network_id [String] The id of the network associated with the interface.
102
+ #
103
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
104
+ #
105
+ # @param enable_sip_trunking [Boolean] Enable SIP traffic forwarding over VPN interface.
106
+ #
107
+ # @param endpoint [String] The Telnyx WireGuard peers `Peer.endpoint` value.
108
+ #
109
+ # @param public_key [String] The Telnyx WireGuard peers `Peer.PublicKey`.
110
+ #
111
+ # @param region [Telnyx::Models::WireguardInterfaceRetrieveResponse::Data::Region]
112
+ #
113
+ # @param region_code [String] The region interface is deployed to.
114
+
115
+ # @see Telnyx::Models::WireguardInterfaceRetrieveResponse::Data#region
116
+ class Region < Telnyx::Internal::Type::BaseModel
117
+ # @!attribute code
118
+ # Region code of the interface.
119
+ #
120
+ # @return [String, nil]
121
+ optional :code, String
122
+
123
+ # @!attribute name
124
+ # Region name of the interface.
125
+ #
126
+ # @return [String, nil]
127
+ optional :name, String
128
+
129
+ response_only do
130
+ # @!attribute record_type
131
+ # Identifies the type of the resource.
132
+ #
133
+ # @return [String, nil]
134
+ optional :record_type, String
135
+ end
136
+
137
+ # @!method initialize(code: nil, name: nil, record_type: nil)
138
+ # @param code [String] Region code of the interface.
139
+ #
140
+ # @param name [String] Region name of the interface.
141
+ #
142
+ # @param record_type [String] Identifies the type of the resource.
143
+ end
144
+ end
14
145
  end
15
146
  end
16
147
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerCreateResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerCreateResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerCreateResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerDeleteResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerDeleteResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerDeleteResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
@@ -17,6 +17,83 @@ module Telnyx
17
17
  # @!method initialize(data: nil, meta: nil)
18
18
  # @param data [Array<Telnyx::Models::WireguardPeerListResponse::Data>]
19
19
  # @param meta [Telnyx::Models::PaginationMeta]
20
+
21
+ class Data < Telnyx::Internal::Type::BaseModel
22
+ # @!attribute public_key
23
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
24
+ # Public and Private key pair will be generated for you.
25
+ #
26
+ # @return [String, nil]
27
+ optional :public_key, String
28
+
29
+ # @!attribute wireguard_interface_id
30
+ # The id of the wireguard interface associated with the peer.
31
+ #
32
+ # @return [String, nil]
33
+ optional :wireguard_interface_id, String
34
+
35
+ response_only do
36
+ # @!attribute id
37
+ # Identifies the resource.
38
+ #
39
+ # @return [String, nil]
40
+ optional :id, String
41
+
42
+ # @!attribute created_at
43
+ # ISO 8601 formatted date-time indicating when the resource was created.
44
+ #
45
+ # @return [String, nil]
46
+ optional :created_at, String
47
+
48
+ # @!attribute record_type
49
+ # Identifies the type of the resource.
50
+ #
51
+ # @return [String, nil]
52
+ optional :record_type, String
53
+
54
+ # @!attribute updated_at
55
+ # ISO 8601 formatted date-time indicating when the resource was updated.
56
+ #
57
+ # @return [String, nil]
58
+ optional :updated_at, String
59
+
60
+ # @!attribute last_seen
61
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
62
+ #
63
+ # @return [String, nil]
64
+ optional :last_seen, String
65
+
66
+ # @!attribute private_key
67
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
68
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
69
+ # new Public and Private key pair will be generated for you. When your
70
+ # `private_key` is returned, you must save this immediately as we do not save it
71
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
72
+ #
73
+ # @return [String, nil]
74
+ optional :private_key, String
75
+ end
76
+
77
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
78
+ # Some parameter documentations has been truncated, see
79
+ # {Telnyx::Models::WireguardPeerListResponse::Data} for more details.
80
+ #
81
+ # @param id [String] Identifies the resource.
82
+ #
83
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
84
+ #
85
+ # @param record_type [String] Identifies the type of the resource.
86
+ #
87
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
88
+ #
89
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
90
+ #
91
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
92
+ #
93
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
94
+ #
95
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
96
+ end
20
97
  end
21
98
  end
22
99
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerRetrieveResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerRetrieveResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerRetrieveResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
@@ -11,6 +11,84 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardPeerUpdateResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardPeerUpdateResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute public_key
18
+ # The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
19
+ # Public and Private key pair will be generated for you.
20
+ #
21
+ # @return [String, nil]
22
+ optional :public_key, String
23
+
24
+ # @!attribute wireguard_interface_id
25
+ # The id of the wireguard interface associated with the peer.
26
+ #
27
+ # @return [String, nil]
28
+ optional :wireguard_interface_id, String
29
+
30
+ response_only do
31
+ # @!attribute id
32
+ # Identifies the resource.
33
+ #
34
+ # @return [String, nil]
35
+ optional :id, String
36
+
37
+ # @!attribute created_at
38
+ # ISO 8601 formatted date-time indicating when the resource was created.
39
+ #
40
+ # @return [String, nil]
41
+ optional :created_at, String
42
+
43
+ # @!attribute record_type
44
+ # Identifies the type of the resource.
45
+ #
46
+ # @return [String, nil]
47
+ optional :record_type, String
48
+
49
+ # @!attribute updated_at
50
+ # ISO 8601 formatted date-time indicating when the resource was updated.
51
+ #
52
+ # @return [String, nil]
53
+ optional :updated_at, String
54
+
55
+ # @!attribute last_seen
56
+ # ISO 8601 formatted date-time indicating when peer sent traffic last time.
57
+ #
58
+ # @return [String, nil]
59
+ optional :last_seen, String
60
+
61
+ # @!attribute private_key
62
+ # Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
63
+ # utlised if, on POST, you do NOT provide your own `public_key`. In which case, a
64
+ # new Public and Private key pair will be generated for you. When your
65
+ # `private_key` is returned, you must save this immediately as we do not save it
66
+ # within Telnyx. If you lose your Private Key, it can not be recovered.
67
+ #
68
+ # @return [String, nil]
69
+ optional :private_key, String
70
+ end
71
+
72
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, public_key: nil, last_seen: nil, private_key: nil, wireguard_interface_id: nil)
73
+ # Some parameter documentations has been truncated, see
74
+ # {Telnyx::Models::WireguardPeerUpdateResponse::Data} for more details.
75
+ #
76
+ # @param id [String] Identifies the resource.
77
+ #
78
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
79
+ #
80
+ # @param record_type [String] Identifies the type of the resource.
81
+ #
82
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
83
+ #
84
+ # @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
85
+ #
86
+ # @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
87
+ #
88
+ # @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
89
+ #
90
+ # @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
91
+ end
14
92
  end
15
93
  end
16
94
  end
@@ -1150,7 +1150,7 @@ module Telnyx
1150
1150
  #
1151
1151
  # @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngine] Engine to use for speech recognition. Legacy values `A` - `Google`, `B` - `Telny
1152
1152
  #
1153
- # @param transcription_engine_config [Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx, Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram, Telnyx::Models::Calls::TranscriptionEngineAConfig, Telnyx::Models::Calls::TranscriptionEngineBConfig]
1153
+ # @param transcription_engine_config [::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Google, ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Telnyx, ::Telnyx::Models::Calls::TranscriptionStartRequest::TranscriptionEngineConfig::Deepgram, ::Telnyx::Models::Calls::TranscriptionEngineAConfig, ::Telnyx::Models::Calls::TranscriptionEngineBConfig]
1154
1154
  #
1155
1155
  # @param transcription_tracks [String] Indicates which leg of the call will be transcribed. Use `inbound` for the leg t
1156
1156
  #
@@ -11,7 +11,7 @@ module Telnyx
11
11
  #
12
12
  # Create a messaging profile
13
13
  #
14
- # @overload create(name:, whitelisted_destinations:, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, number_pool_settings: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
14
+ # @overload create(name:, whitelisted_destinations:, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
15
15
  #
16
16
  # @param name [String] A user friendly name for the messaging profile.
17
17
  #
@@ -29,6 +29,8 @@ module Telnyx
29
29
  #
30
30
  # @param mms_transcoding [Boolean] enables automated resizing of MMS media.
31
31
  #
32
+ # @param mobile_only [Boolean] Send messages only to mobile phone numbers.
33
+ #
32
34
  # @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
33
35
  #
34
36
  # @param url_shortener_settings [Telnyx::Models::URLShortenerSettings, nil] The URL shortener feature allows automatic replacement of URLs that were generat
@@ -80,7 +82,7 @@ module Telnyx
80
82
  #
81
83
  # Update a messaging profile
82
84
  #
83
- # @overload update(id, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, name: nil, number_pool_settings: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
85
+ # @overload update(id, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
84
86
  #
85
87
  # @param id [String] The id of the messaging profile to retrieve
86
88
  #
@@ -96,6 +98,8 @@ module Telnyx
96
98
  #
97
99
  # @param mms_transcoding [Boolean] enables automated resizing of MMS media.
98
100
  #
101
+ # @param mobile_only [Boolean] Send messages only to mobile phone numbers.
102
+ #
99
103
  # @param name [String] A user friendly name for the messaging profile.
100
104
  #
101
105
  # @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
@@ -100,7 +100,7 @@ module Telnyx
100
100
  # Initiate an outbound TeXML call. Telnyx will request TeXML from the XML Request
101
101
  # URL configured for the connection in the Mission Control Portal.
102
102
  #
103
- # @overload calls(account_sid, application_sid:, from:, to:, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, detection_mode: nil, fallback_url: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, trim: nil, url: nil, url_method: nil, request_options: {})
103
+ # @overload calls(account_sid, application_sid:, from:, to:, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, detection_mode: nil, fallback_url: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, trim: nil, url: nil, url_method: nil, request_options: {})
104
104
  #
105
105
  # @param account_sid [String] The id of the account the resource belongs to.
106
106
  #
@@ -122,6 +122,8 @@ module Telnyx
122
122
  #
123
123
  # @param cancel_playback_on_machine_detection [Boolean] Whether to cancel ongoing playback on `machine` detection. Defaults to `true`.
124
124
  #
125
+ # @param custom_headers [Array<Telnyx::Models::Texml::Accounts::CallCallsParams::CustomHeader>] Custom HTTP headers to be sent with the call. Each header should be an object wi
126
+ #
125
127
  # @param detection_mode [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::DetectionMode] Allows you to chose between Premium and Standard detections.
126
128
  #
127
129
  # @param fallback_url [String] A failover URL for which Telnyx will retrieve the TeXML call instructions if the
@@ -154,7 +154,7 @@ module Telnyx
154
154
  #
155
155
  # Dials a new conference participant
156
156
  #
157
- # @overload participants(conference_sid, account_sid:, amd_status_callback: nil, amd_status_callback_method: nil, beep: nil, caller_id: nil, call_sid_to_coach: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, coaching: nil, conference_record: nil, conference_recording_status_callback: nil, conference_recording_status_callback_event: nil, conference_recording_status_callback_method: nil, conference_recording_timeout: nil, conference_status_callback: nil, conference_status_callback_event: nil, conference_status_callback_method: nil, conference_trim: nil, early_media: nil, end_conference_on_exit: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, max_participants: nil, muted: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_track: nil, sip_auth_password: nil, sip_auth_username: nil, start_conference_on_enter: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, time_limit: nil, timeout_seconds: nil, to: nil, trim: nil, wait_url: nil, request_options: {})
157
+ # @overload participants(conference_sid, account_sid:, amd_status_callback: nil, amd_status_callback_method: nil, beep: nil, caller_id: nil, call_sid_to_coach: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, coaching: nil, conference_record: nil, conference_recording_status_callback: nil, conference_recording_status_callback_event: nil, conference_recording_status_callback_method: nil, conference_recording_timeout: nil, conference_status_callback: nil, conference_status_callback_event: nil, conference_status_callback_method: nil, conference_trim: nil, custom_headers: nil, early_media: nil, end_conference_on_exit: nil, from: nil, machine_detection: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, max_participants: nil, muted: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_track: nil, sip_auth_password: nil, sip_auth_username: nil, start_conference_on_enter: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, time_limit: nil, timeout_seconds: nil, to: nil, trim: nil, wait_url: nil, request_options: {})
158
158
  #
159
159
  # @param conference_sid [String] Path param: The ConferenceSid that uniquely identifies a conference.
160
160
  #
@@ -194,6 +194,8 @@ module Telnyx
194
194
  #
195
195
  # @param conference_trim [Symbol, Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::ConferenceTrim] Body param: Whether to trim any leading and trailing silence from the conference
196
196
  #
197
+ # @param custom_headers [Array<Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::CustomHeader>] Body param: Custom HTTP headers to be sent with the call. Each header should be
198
+ #
197
199
  # @param early_media [Boolean] Body param: Whether participant shall be bridged to conference before the partic
198
200
  #
199
201
  # @param end_conference_on_exit [Boolean] Body param: Whether to end the conference when the participant leaves. Defaults
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "4.1.0"
4
+ VERSION = "4.2.0"
5
5
  end