telnyx 6.64.0 → 6.65.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.
- package/CHANGELOG.md +8 -0
- package/client.d.mts +10 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -11
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +116 -114
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +116 -114
- package/resources/ai/ai.d.ts.map +1 -1
- package/resources/ai/ai.js.map +1 -1
- package/resources/ai/ai.mjs.map +1 -1
- package/resources/ai/assistants/assistants.d.mts +332 -112
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +332 -112
- package/resources/ai/assistants/assistants.d.ts.map +1 -1
- package/resources/ai/assistants/assistants.js.map +1 -1
- package/resources/ai/assistants/assistants.mjs.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.mts +241 -70
- package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.ts +241 -70
- package/resources/ai/assistants/canary-deploys.d.ts.map +1 -1
- package/resources/ai/assistants/index.d.mts +2 -2
- package/resources/ai/assistants/index.d.mts.map +1 -1
- package/resources/ai/assistants/index.d.ts +2 -2
- package/resources/ai/assistants/index.d.ts.map +1 -1
- package/resources/ai/assistants/index.js.map +1 -1
- package/resources/ai/assistants/index.mjs.map +1 -1
- package/resources/ai/assistants/versions.d.mts +220 -6
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +220 -6
- package/resources/ai/assistants/versions.d.ts.map +1 -1
- package/resources/ai/index.d.mts +2 -2
- package/resources/ai/index.d.mts.map +1 -1
- package/resources/ai/index.d.ts +2 -2
- package/resources/ai/index.d.ts.map +1 -1
- package/resources/ai/index.js.map +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +113 -2
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +113 -2
- package/resources/ai/openai/openai.d.ts.map +1 -1
- package/resources/ai/openai/openai.js.map +1 -1
- package/resources/ai/openai/openai.mjs.map +1 -1
- package/resources/calls/actions.d.mts +398 -41
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +398 -41
- package/resources/calls/actions.d.ts.map +1 -1
- package/resources/calls/actions.js +46 -0
- package/resources/calls/actions.js.map +1 -1
- package/resources/calls/actions.mjs +46 -0
- package/resources/calls/actions.mjs.map +1 -1
- package/resources/calls/calls.d.mts +2 -2
- package/resources/calls/calls.d.mts.map +1 -1
- package/resources/calls/calls.d.ts +2 -2
- package/resources/calls/calls.d.ts.map +1 -1
- package/resources/calls/calls.js.map +1 -1
- package/resources/calls/calls.mjs.map +1 -1
- package/resources/calls/index.d.mts +1 -1
- package/resources/calls/index.d.mts.map +1 -1
- package/resources/calls/index.d.ts +1 -1
- package/resources/calls/index.d.ts.map +1 -1
- package/resources/calls/index.js.map +1 -1
- package/resources/calls/index.mjs.map +1 -1
- package/resources/conferences/actions.d.mts +11 -1
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +11 -1
- package/resources/conferences/actions.d.ts.map +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/networks/networks.d.mts +2 -25
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +2 -25
- package/resources/networks/networks.d.ts.map +1 -1
- package/resources/networks/networks.js.map +1 -1
- package/resources/networks/networks.mjs.map +1 -1
- package/resources/public-internet-gateways.d.mts +50 -40
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +50 -40
- package/resources/public-internet-gateways.d.ts.map +1 -1
- package/resources/public-internet-gateways.js +1 -1
- package/resources/public-internet-gateways.js.map +1 -1
- package/resources/public-internet-gateways.mjs +1 -1
- package/resources/public-internet-gateways.mjs.map +1 -1
- package/resources/shared.d.mts +0 -10
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +0 -10
- package/resources/shared.d.ts.map +1 -1
- package/resources/uac-connections/index.d.mts +1 -1
- package/resources/uac-connections/index.d.mts.map +1 -1
- package/resources/uac-connections/index.d.ts +1 -1
- package/resources/uac-connections/index.d.ts.map +1 -1
- package/resources/uac-connections/index.js.map +1 -1
- package/resources/uac-connections/index.mjs.map +1 -1
- package/resources/uac-connections/uac-connections.d.mts +1861 -211
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +1861 -211
- package/resources/uac-connections/uac-connections.d.ts.map +1 -1
- package/resources/uac-connections/uac-connections.js +1 -1
- package/resources/uac-connections/uac-connections.js.map +1 -1
- package/resources/uac-connections/uac-connections.mjs +1 -1
- package/resources/uac-connections/uac-connections.mjs.map +1 -1
- package/resources/virtual-cross-connects.d.mts +504 -48
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +504 -48
- package/resources/virtual-cross-connects.d.ts.map +1 -1
- package/resources/virtual-cross-connects.js +1 -1
- package/resources/virtual-cross-connects.js.map +1 -1
- package/resources/virtual-cross-connects.mjs +1 -1
- package/resources/virtual-cross-connects.mjs.map +1 -1
- package/resources/wireguard-interfaces.d.mts +127 -43
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +127 -43
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js +2 -5
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs +2 -5
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/src/client.ts +16 -27
- package/src/resources/ai/ai.ts +130 -139
- package/src/resources/ai/assistants/assistants.ts +362 -133
- package/src/resources/ai/assistants/canary-deploys.ts +266 -75
- package/src/resources/ai/assistants/index.ts +0 -10
- package/src/resources/ai/assistants/versions.ts +244 -6
- package/src/resources/ai/index.ts +0 -6
- package/src/resources/ai/openai/openai.ts +131 -2
- package/src/resources/calls/actions.ts +543 -76
- package/src/resources/calls/calls.ts +8 -4
- package/src/resources/calls/index.ts +4 -2
- package/src/resources/conferences/actions.ts +13 -1
- package/src/resources/index.ts +8 -13
- package/src/resources/networks/networks.ts +4 -31
- package/src/resources/public-internet-gateways.ts +55 -46
- package/src/resources/shared.ts +0 -12
- package/src/resources/uac-connections/index.ts +2 -6
- package/src/resources/uac-connections/uac-connections.ts +2377 -378
- package/src/resources/virtual-cross-connects.ts +595 -54
- package/src/resources/wireguard-interfaces.ts +158 -53
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-cross-connects.js","sourceRoot":"","sources":["../src/resources/virtual-cross-connects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"virtual-cross-connects.js","sourceRoot":"","sources":["../src/resources/virtual-cross-connects.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAA0G;AAE1G,oDAA8C;AAE9C;;GAEG;AACH,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,EAAU,EACV,IAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA0D,EAAE,EAC5D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,yBAAyB,EACzB,CAAA,kCAAsD,CAAA,EACtD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AApGD,oDAoGC"}
|
|
@@ -65,7 +65,7 @@ export class VirtualCrossConnects extends APIResource {
|
|
|
65
65
|
* @example
|
|
66
66
|
* ```ts
|
|
67
67
|
* // Automatically fetches more pages as needed.
|
|
68
|
-
* for await (const
|
|
68
|
+
* for await (const virtualCrossConnectListResponse of client.virtualCrossConnects.list()) {
|
|
69
69
|
* // ...
|
|
70
70
|
* }
|
|
71
71
|
* ```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual-cross-connects.mjs","sourceRoot":"","sources":["../src/resources/virtual-cross-connects.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"virtual-cross-connects.mjs","sourceRoot":"","sources":["../src/resources/virtual-cross-connects.ts"],"names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
+
import * as GlobalIPAssignmentsAPI from "./global-ip-assignments.mjs";
|
|
3
|
+
import * as PublicInternetGatewaysAPI from "./public-internet-gateways.mjs";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
5
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
@@ -38,12 +39,12 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
38
39
|
* @example
|
|
39
40
|
* ```ts
|
|
40
41
|
* // Automatically fetches more pages as needed.
|
|
41
|
-
* for await (const
|
|
42
|
+
* for await (const wireguardInterfaceListResponse of client.wireguardInterfaces.list()) {
|
|
42
43
|
* // ...
|
|
43
44
|
* }
|
|
44
45
|
* ```
|
|
45
46
|
*/
|
|
46
|
-
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
47
|
+
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<WireguardInterfaceListResponsesDefaultFlatPagination, WireguardInterfaceListResponse>;
|
|
47
48
|
/**
|
|
48
49
|
* Delete a WireGuard Interface.
|
|
49
50
|
*
|
|
@@ -57,16 +58,88 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
57
58
|
*/
|
|
58
59
|
delete(id: string, options?: RequestOptions): APIPromise<WireguardInterfaceDeleteResponse>;
|
|
59
60
|
}
|
|
60
|
-
export type
|
|
61
|
-
export interface
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
export type WireguardInterfaceListResponsesDefaultFlatPagination = DefaultFlatPagination<WireguardInterfaceListResponse>;
|
|
62
|
+
export interface WireguardInterfaceCreateResponse {
|
|
63
|
+
data?: WireguardInterfaceCreateResponse.Data;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace WireguardInterfaceCreateResponse {
|
|
66
|
+
interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
67
|
+
/**
|
|
68
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
69
|
+
*/
|
|
70
|
+
enable_sip_trunking?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
73
|
+
*/
|
|
74
|
+
endpoint?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
77
|
+
*/
|
|
78
|
+
public_key?: string;
|
|
79
|
+
region?: Data.Region;
|
|
80
|
+
/**
|
|
81
|
+
* The region interface is deployed to.
|
|
82
|
+
*/
|
|
83
|
+
region_code?: string;
|
|
84
|
+
}
|
|
85
|
+
namespace Data {
|
|
86
|
+
interface Region {
|
|
87
|
+
/**
|
|
88
|
+
* Region code of the interface.
|
|
89
|
+
*/
|
|
90
|
+
code?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Region name of the interface.
|
|
93
|
+
*/
|
|
94
|
+
name?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Identifies the type of the resource.
|
|
97
|
+
*/
|
|
98
|
+
record_type?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export interface WireguardInterfaceRetrieveResponse {
|
|
103
|
+
data?: WireguardInterfaceRetrieveResponse.Data;
|
|
104
|
+
}
|
|
105
|
+
export declare namespace WireguardInterfaceRetrieveResponse {
|
|
106
|
+
interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
107
|
+
/**
|
|
108
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
109
|
+
*/
|
|
110
|
+
enable_sip_trunking?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
113
|
+
*/
|
|
114
|
+
endpoint?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
117
|
+
*/
|
|
118
|
+
public_key?: string;
|
|
119
|
+
region?: Data.Region;
|
|
120
|
+
/**
|
|
121
|
+
* The region interface is deployed to.
|
|
122
|
+
*/
|
|
123
|
+
region_code?: string;
|
|
124
|
+
}
|
|
125
|
+
namespace Data {
|
|
126
|
+
interface Region {
|
|
127
|
+
/**
|
|
128
|
+
* Region code of the interface.
|
|
129
|
+
*/
|
|
130
|
+
code?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Region name of the interface.
|
|
133
|
+
*/
|
|
134
|
+
name?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Identifies the type of the resource.
|
|
137
|
+
*/
|
|
138
|
+
record_type?: string;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export interface WireguardInterfaceListResponse extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
70
143
|
/**
|
|
71
144
|
* Enable SIP traffic forwarding over VPN interface.
|
|
72
145
|
*/
|
|
@@ -75,37 +148,17 @@ export interface WireguardInterfaceRead {
|
|
|
75
148
|
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
76
149
|
*/
|
|
77
150
|
endpoint?: string;
|
|
78
|
-
/**
|
|
79
|
-
* A user specified name for the interface.
|
|
80
|
-
*/
|
|
81
|
-
name?: string;
|
|
82
|
-
/**
|
|
83
|
-
* The id of the network associated with the interface.
|
|
84
|
-
*/
|
|
85
|
-
network_id?: string;
|
|
86
151
|
/**
|
|
87
152
|
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
88
153
|
*/
|
|
89
154
|
public_key?: string;
|
|
90
|
-
|
|
91
|
-
* Identifies the type of the resource.
|
|
92
|
-
*/
|
|
93
|
-
record_type?: string;
|
|
94
|
-
region?: WireguardInterfaceRead.Region;
|
|
155
|
+
region?: WireguardInterfaceListResponse.Region;
|
|
95
156
|
/**
|
|
96
157
|
* The region interface is deployed to.
|
|
97
158
|
*/
|
|
98
159
|
region_code?: string;
|
|
99
|
-
/**
|
|
100
|
-
* The current status of the interface deployment.
|
|
101
|
-
*/
|
|
102
|
-
status?: NetworksAPI.InterfaceStatus;
|
|
103
|
-
/**
|
|
104
|
-
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
105
|
-
*/
|
|
106
|
-
updated_at?: string;
|
|
107
160
|
}
|
|
108
|
-
export declare namespace
|
|
161
|
+
export declare namespace WireguardInterfaceListResponse {
|
|
109
162
|
interface Region {
|
|
110
163
|
/**
|
|
111
164
|
* Region code of the interface.
|
|
@@ -121,14 +174,45 @@ export declare namespace WireguardInterfaceRead {
|
|
|
121
174
|
record_type?: string;
|
|
122
175
|
}
|
|
123
176
|
}
|
|
124
|
-
export interface WireguardInterfaceCreateResponse {
|
|
125
|
-
data?: WireguardInterfaceRead;
|
|
126
|
-
}
|
|
127
|
-
export interface WireguardInterfaceRetrieveResponse {
|
|
128
|
-
data?: WireguardInterfaceRead;
|
|
129
|
-
}
|
|
130
177
|
export interface WireguardInterfaceDeleteResponse {
|
|
131
|
-
data?:
|
|
178
|
+
data?: WireguardInterfaceDeleteResponse.Data;
|
|
179
|
+
}
|
|
180
|
+
export declare namespace WireguardInterfaceDeleteResponse {
|
|
181
|
+
interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
182
|
+
/**
|
|
183
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
184
|
+
*/
|
|
185
|
+
enable_sip_trunking?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
188
|
+
*/
|
|
189
|
+
endpoint?: string;
|
|
190
|
+
/**
|
|
191
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
192
|
+
*/
|
|
193
|
+
public_key?: string;
|
|
194
|
+
region?: Data.Region;
|
|
195
|
+
/**
|
|
196
|
+
* The region interface is deployed to.
|
|
197
|
+
*/
|
|
198
|
+
region_code?: string;
|
|
199
|
+
}
|
|
200
|
+
namespace Data {
|
|
201
|
+
interface Region {
|
|
202
|
+
/**
|
|
203
|
+
* Region code of the interface.
|
|
204
|
+
*/
|
|
205
|
+
code?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Region name of the interface.
|
|
208
|
+
*/
|
|
209
|
+
name?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Identifies the type of the resource.
|
|
212
|
+
*/
|
|
213
|
+
record_type?: string;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
132
216
|
}
|
|
133
217
|
export interface WireguardInterfaceCreateParams {
|
|
134
218
|
/**
|
|
@@ -166,6 +250,6 @@ export declare namespace WireguardInterfaceListParams {
|
|
|
166
250
|
}
|
|
167
251
|
}
|
|
168
252
|
export declare namespace WireguardInterfaces {
|
|
169
|
-
export { type
|
|
253
|
+
export { type WireguardInterfaceCreateResponse as WireguardInterfaceCreateResponse, type WireguardInterfaceRetrieveResponse as WireguardInterfaceRetrieveResponse, type WireguardInterfaceListResponse as WireguardInterfaceListResponse, type WireguardInterfaceDeleteResponse as WireguardInterfaceDeleteResponse, type WireguardInterfaceListResponsesDefaultFlatPagination as WireguardInterfaceListResponsesDefaultFlatPagination, type WireguardInterfaceCreateParams as WireguardInterfaceCreateParams, type WireguardInterfaceListParams as WireguardInterfaceListParams, };
|
|
170
254
|
}
|
|
171
255
|
//# sourceMappingURL=wireguard-interfaces.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireguard-interfaces.d.mts","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"wireguard-interfaces.d.mts","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,sBAAsB;OAC3B,KAAK,yBAAyB;OAC9B,EAAE,UAAU,EAAE;OACd,EAA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AC3C,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,oDAAoD,IAAI,oDAAoD,EACjH,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as GlobalIPAssignmentsAPI from "./global-ip-assignments.js";
|
|
3
|
+
import * as PublicInternetGatewaysAPI from "./public-internet-gateways.js";
|
|
3
4
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
5
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../core/pagination.js";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.js";
|
|
@@ -38,12 +39,12 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
38
39
|
* @example
|
|
39
40
|
* ```ts
|
|
40
41
|
* // Automatically fetches more pages as needed.
|
|
41
|
-
* for await (const
|
|
42
|
+
* for await (const wireguardInterfaceListResponse of client.wireguardInterfaces.list()) {
|
|
42
43
|
* // ...
|
|
43
44
|
* }
|
|
44
45
|
* ```
|
|
45
46
|
*/
|
|
46
|
-
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
47
|
+
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<WireguardInterfaceListResponsesDefaultFlatPagination, WireguardInterfaceListResponse>;
|
|
47
48
|
/**
|
|
48
49
|
* Delete a WireGuard Interface.
|
|
49
50
|
*
|
|
@@ -57,16 +58,88 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
57
58
|
*/
|
|
58
59
|
delete(id: string, options?: RequestOptions): APIPromise<WireguardInterfaceDeleteResponse>;
|
|
59
60
|
}
|
|
60
|
-
export type
|
|
61
|
-
export interface
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
export type WireguardInterfaceListResponsesDefaultFlatPagination = DefaultFlatPagination<WireguardInterfaceListResponse>;
|
|
62
|
+
export interface WireguardInterfaceCreateResponse {
|
|
63
|
+
data?: WireguardInterfaceCreateResponse.Data;
|
|
64
|
+
}
|
|
65
|
+
export declare namespace WireguardInterfaceCreateResponse {
|
|
66
|
+
interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
67
|
+
/**
|
|
68
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
69
|
+
*/
|
|
70
|
+
enable_sip_trunking?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
73
|
+
*/
|
|
74
|
+
endpoint?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
77
|
+
*/
|
|
78
|
+
public_key?: string;
|
|
79
|
+
region?: Data.Region;
|
|
80
|
+
/**
|
|
81
|
+
* The region interface is deployed to.
|
|
82
|
+
*/
|
|
83
|
+
region_code?: string;
|
|
84
|
+
}
|
|
85
|
+
namespace Data {
|
|
86
|
+
interface Region {
|
|
87
|
+
/**
|
|
88
|
+
* Region code of the interface.
|
|
89
|
+
*/
|
|
90
|
+
code?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Region name of the interface.
|
|
93
|
+
*/
|
|
94
|
+
name?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Identifies the type of the resource.
|
|
97
|
+
*/
|
|
98
|
+
record_type?: string;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
export interface WireguardInterfaceRetrieveResponse {
|
|
103
|
+
data?: WireguardInterfaceRetrieveResponse.Data;
|
|
104
|
+
}
|
|
105
|
+
export declare namespace WireguardInterfaceRetrieveResponse {
|
|
106
|
+
interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
107
|
+
/**
|
|
108
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
109
|
+
*/
|
|
110
|
+
enable_sip_trunking?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
113
|
+
*/
|
|
114
|
+
endpoint?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
117
|
+
*/
|
|
118
|
+
public_key?: string;
|
|
119
|
+
region?: Data.Region;
|
|
120
|
+
/**
|
|
121
|
+
* The region interface is deployed to.
|
|
122
|
+
*/
|
|
123
|
+
region_code?: string;
|
|
124
|
+
}
|
|
125
|
+
namespace Data {
|
|
126
|
+
interface Region {
|
|
127
|
+
/**
|
|
128
|
+
* Region code of the interface.
|
|
129
|
+
*/
|
|
130
|
+
code?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Region name of the interface.
|
|
133
|
+
*/
|
|
134
|
+
name?: string;
|
|
135
|
+
/**
|
|
136
|
+
* Identifies the type of the resource.
|
|
137
|
+
*/
|
|
138
|
+
record_type?: string;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
export interface WireguardInterfaceListResponse extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
70
143
|
/**
|
|
71
144
|
* Enable SIP traffic forwarding over VPN interface.
|
|
72
145
|
*/
|
|
@@ -75,37 +148,17 @@ export interface WireguardInterfaceRead {
|
|
|
75
148
|
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
76
149
|
*/
|
|
77
150
|
endpoint?: string;
|
|
78
|
-
/**
|
|
79
|
-
* A user specified name for the interface.
|
|
80
|
-
*/
|
|
81
|
-
name?: string;
|
|
82
|
-
/**
|
|
83
|
-
* The id of the network associated with the interface.
|
|
84
|
-
*/
|
|
85
|
-
network_id?: string;
|
|
86
151
|
/**
|
|
87
152
|
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
88
153
|
*/
|
|
89
154
|
public_key?: string;
|
|
90
|
-
|
|
91
|
-
* Identifies the type of the resource.
|
|
92
|
-
*/
|
|
93
|
-
record_type?: string;
|
|
94
|
-
region?: WireguardInterfaceRead.Region;
|
|
155
|
+
region?: WireguardInterfaceListResponse.Region;
|
|
95
156
|
/**
|
|
96
157
|
* The region interface is deployed to.
|
|
97
158
|
*/
|
|
98
159
|
region_code?: string;
|
|
99
|
-
/**
|
|
100
|
-
* The current status of the interface deployment.
|
|
101
|
-
*/
|
|
102
|
-
status?: NetworksAPI.InterfaceStatus;
|
|
103
|
-
/**
|
|
104
|
-
* ISO 8601 formatted date-time indicating when the resource was updated.
|
|
105
|
-
*/
|
|
106
|
-
updated_at?: string;
|
|
107
160
|
}
|
|
108
|
-
export declare namespace
|
|
161
|
+
export declare namespace WireguardInterfaceListResponse {
|
|
109
162
|
interface Region {
|
|
110
163
|
/**
|
|
111
164
|
* Region code of the interface.
|
|
@@ -121,14 +174,45 @@ export declare namespace WireguardInterfaceRead {
|
|
|
121
174
|
record_type?: string;
|
|
122
175
|
}
|
|
123
176
|
}
|
|
124
|
-
export interface WireguardInterfaceCreateResponse {
|
|
125
|
-
data?: WireguardInterfaceRead;
|
|
126
|
-
}
|
|
127
|
-
export interface WireguardInterfaceRetrieveResponse {
|
|
128
|
-
data?: WireguardInterfaceRead;
|
|
129
|
-
}
|
|
130
177
|
export interface WireguardInterfaceDeleteResponse {
|
|
131
|
-
data?:
|
|
178
|
+
data?: WireguardInterfaceDeleteResponse.Data;
|
|
179
|
+
}
|
|
180
|
+
export declare namespace WireguardInterfaceDeleteResponse {
|
|
181
|
+
interface Data extends GlobalIPAssignmentsAPI.Record, PublicInternetGatewaysAPI.NetworkInterface {
|
|
182
|
+
/**
|
|
183
|
+
* Enable SIP traffic forwarding over VPN interface.
|
|
184
|
+
*/
|
|
185
|
+
enable_sip_trunking?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
188
|
+
*/
|
|
189
|
+
endpoint?: string;
|
|
190
|
+
/**
|
|
191
|
+
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
192
|
+
*/
|
|
193
|
+
public_key?: string;
|
|
194
|
+
region?: Data.Region;
|
|
195
|
+
/**
|
|
196
|
+
* The region interface is deployed to.
|
|
197
|
+
*/
|
|
198
|
+
region_code?: string;
|
|
199
|
+
}
|
|
200
|
+
namespace Data {
|
|
201
|
+
interface Region {
|
|
202
|
+
/**
|
|
203
|
+
* Region code of the interface.
|
|
204
|
+
*/
|
|
205
|
+
code?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Region name of the interface.
|
|
208
|
+
*/
|
|
209
|
+
name?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Identifies the type of the resource.
|
|
212
|
+
*/
|
|
213
|
+
record_type?: string;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
132
216
|
}
|
|
133
217
|
export interface WireguardInterfaceCreateParams {
|
|
134
218
|
/**
|
|
@@ -166,6 +250,6 @@ export declare namespace WireguardInterfaceListParams {
|
|
|
166
250
|
}
|
|
167
251
|
}
|
|
168
252
|
export declare namespace WireguardInterfaces {
|
|
169
|
-
export { type
|
|
253
|
+
export { type WireguardInterfaceCreateResponse as WireguardInterfaceCreateResponse, type WireguardInterfaceRetrieveResponse as WireguardInterfaceRetrieveResponse, type WireguardInterfaceListResponse as WireguardInterfaceListResponse, type WireguardInterfaceDeleteResponse as WireguardInterfaceDeleteResponse, type WireguardInterfaceListResponsesDefaultFlatPagination as WireguardInterfaceListResponsesDefaultFlatPagination, type WireguardInterfaceCreateParams as WireguardInterfaceCreateParams, type WireguardInterfaceListParams as WireguardInterfaceListParams, };
|
|
170
254
|
}
|
|
171
255
|
//# sourceMappingURL=wireguard-interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireguard-interfaces.d.ts","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"wireguard-interfaces.d.ts","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,sBAAsB;OAC3B,KAAK,yBAAyB;OAC9B,EAAE,UAAU,EAAE;OACd,EAAE,qBAAqB,EAAE,KAAK,2BAA2B,EAAE,WAAW,EAAE;OACxE,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;IAI/C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kCAAkC,CAAC;IAI9F;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,4BAA4B,GAAG,IAAI,GAAG,SAAc,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oDAAoD,EAAE,8BAA8B,CAAC;IAQpG;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gCAAgC,CAAC;CAG3F;AAED,MAAM,MAAM,oDAAoD,GAC9D,qBAAqB,CAAC,8BAA8B,CAAC,CAAC;AAExD,MAAM,WAAW,gCAAgC;IAC/C,IAAI,CAAC,EAAE,gCAAgC,CAAC,IAAI,CAAC;CAC9C;AAED,yBAAiB,gCAAgC,CAAC;IAChD,UAAiB,IAAK,SAAQ,sBAAsB,CAAC,MA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,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,4BAA6B,SAAQ,2BAA2B;IAC/E;;OAEG;IACH,MAAM,CAAC,EAAE,4BAA4B,CAAC,MAAM,CAAC;CAC9C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EACL,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,oDAAoD,IAAI,oDAAoD,EACjH,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -44,16 +44,13 @@ class WireguardInterfaces extends resource_1.APIResource {
|
|
|
44
44
|
* @example
|
|
45
45
|
* ```ts
|
|
46
46
|
* // Automatically fetches more pages as needed.
|
|
47
|
-
* for await (const
|
|
47
|
+
* for await (const wireguardInterfaceListResponse of client.wireguardInterfaces.list()) {
|
|
48
48
|
* // ...
|
|
49
49
|
* }
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
52
|
list(query = {}, options) {
|
|
53
|
-
return this._client.getAPIList('/wireguard_interfaces', (pagination_1.DefaultFlatPagination), {
|
|
54
|
-
query,
|
|
55
|
-
...options,
|
|
56
|
-
});
|
|
53
|
+
return this._client.getAPIList('/wireguard_interfaces', (pagination_1.DefaultFlatPagination), { query, ...options });
|
|
57
54
|
}
|
|
58
55
|
/**
|
|
59
56
|
* Delete a WireGuard Interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireguard-interfaces.js","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"wireguard-interfaces.js","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,sDAA0G;AAE1G,oDAA8C;AAE9C;;GAEG;AACH,MAAa,mBAAoB,SAAQ,sBAAW;IAClD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,uBAAuB,EACvB,CAAA,kCAAqD,CAAA,EACrD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAvED,kDAuEC"}
|
|
@@ -41,16 +41,13 @@ export class WireguardInterfaces extends APIResource {
|
|
|
41
41
|
* @example
|
|
42
42
|
* ```ts
|
|
43
43
|
* // Automatically fetches more pages as needed.
|
|
44
|
-
* for await (const
|
|
44
|
+
* for await (const wireguardInterfaceListResponse of client.wireguardInterfaces.list()) {
|
|
45
45
|
* // ...
|
|
46
46
|
* }
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
49
|
list(query = {}, options) {
|
|
50
|
-
return this._client.getAPIList('/wireguard_interfaces', (DefaultFlatPagination), {
|
|
51
|
-
query,
|
|
52
|
-
...options,
|
|
53
|
-
});
|
|
50
|
+
return this._client.getAPIList('/wireguard_interfaces', (DefaultFlatPagination), { query, ...options });
|
|
54
51
|
}
|
|
55
52
|
/**
|
|
56
53
|
* Delete a WireGuard Interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wireguard-interfaces.mjs","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"wireguard-interfaces.mjs","sourceRoot":"","sources":["../src/resources/wireguard-interfaces.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,qBAAqB,EAAiD;OAExE,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD;;;;;;;;;;;OAWG;IACH,MAAM,CACJ,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAAyD,EAAE,EAC3D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,uBAAuB,EACvB,CAAA,qBAAqD,CAAA,EACrD,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|