telnyx 6.55.0 → 6.56.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 +26 -0
- package/client.d.mts +11 -10
- package/client.d.mts.map +1 -1
- package/client.d.ts +11 -10
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai/ai.d.mts +10 -12
- package/resources/ai/ai.d.mts.map +1 -1
- package/resources/ai/ai.d.ts +10 -12
- 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 +112 -320
- package/resources/ai/assistants/assistants.d.mts.map +1 -1
- package/resources/ai/assistants/assistants.d.ts +112 -320
- 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 +70 -241
- package/resources/ai/assistants/canary-deploys.d.mts.map +1 -1
- package/resources/ai/assistants/canary-deploys.d.ts +70 -241
- 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 +6 -212
- package/resources/ai/assistants/versions.d.mts.map +1 -1
- package/resources/ai/assistants/versions.d.ts +6 -212
- 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 +1 -1
- package/resources/ai/index.mjs.map +1 -1
- package/resources/ai/openai/openai.d.mts +2 -9
- package/resources/ai/openai/openai.d.mts.map +1 -1
- package/resources/ai/openai/openai.d.ts +2 -9
- 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 +41 -119
- package/resources/calls/actions.d.mts.map +1 -1
- package/resources/calls/actions.d.ts +41 -119
- package/resources/calls/actions.d.ts.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 +1 -11
- package/resources/conferences/actions.d.mts.map +1 -1
- package/resources/conferences/actions.d.ts +1 -11
- 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 +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/networks/networks.d.mts +25 -2
- package/resources/networks/networks.d.mts.map +1 -1
- package/resources/networks/networks.d.ts +25 -2
- 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 +40 -50
- package/resources/public-internet-gateways.d.mts.map +1 -1
- package/resources/public-internet-gateways.d.ts +40 -50
- 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 +10 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +10 -0
- 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 +211 -1861
- package/resources/uac-connections/uac-connections.d.mts.map +1 -1
- package/resources/uac-connections/uac-connections.d.ts +211 -1861
- 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 +48 -504
- package/resources/virtual-cross-connects.d.mts.map +1 -1
- package/resources/virtual-cross-connects.d.ts +48 -504
- 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 +43 -127
- package/resources/wireguard-interfaces.d.mts.map +1 -1
- package/resources/wireguard-interfaces.d.ts +43 -127
- package/resources/wireguard-interfaces.d.ts.map +1 -1
- package/resources/wireguard-interfaces.js +5 -2
- package/resources/wireguard-interfaces.js.map +1 -1
- package/resources/wireguard-interfaces.mjs +5 -2
- package/resources/wireguard-interfaces.mjs.map +1 -1
- package/src/client.ts +33 -17
- package/src/resources/ai/ai.ts +20 -11
- package/src/resources/ai/assistants/assistants.ts +133 -347
- package/src/resources/ai/assistants/canary-deploys.ts +75 -266
- package/src/resources/ai/assistants/index.ts +10 -0
- package/src/resources/ai/assistants/versions.ts +6 -234
- package/src/resources/ai/index.ts +12 -1
- package/src/resources/ai/openai/openai.ts +2 -13
- package/src/resources/calls/actions.ts +76 -192
- package/src/resources/calls/calls.ts +4 -0
- package/src/resources/calls/index.ts +2 -0
- package/src/resources/conferences/actions.ts +1 -13
- package/src/resources/index.ts +19 -9
- package/src/resources/networks/networks.ts +31 -4
- package/src/resources/public-internet-gateways.ts +46 -55
- package/src/resources/shared.ts +12 -0
- package/src/resources/uac-connections/index.ts +6 -2
- package/src/resources/uac-connections/uac-connections.ts +397 -2396
- package/src/resources/virtual-cross-connects.ts +54 -595
- package/src/resources/wireguard-interfaces.ts +53 -158
- 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;AAG/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,kCAAkD,CAAA,EAClD,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 virtualCrossConnectCombined 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":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,qBAAqB,EAAiD;OAExE,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,oBAAqB,SAAQ,WAAW;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,IAAI,CAAA,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,IAAI,CAAA,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,qBAAkD,CAAA,EAClD,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,2BAA2B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as PublicInternetGatewaysAPI from "./public-internet-gateways.mjs";
|
|
2
|
+
import * as NetworksAPI from "./networks/networks.mjs";
|
|
4
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
5
4
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../core/pagination.mjs";
|
|
6
5
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
@@ -39,12 +38,12 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
39
38
|
* @example
|
|
40
39
|
* ```ts
|
|
41
40
|
* // Automatically fetches more pages as needed.
|
|
42
|
-
* for await (const
|
|
41
|
+
* for await (const wireguardInterfaceRead of client.wireguardInterfaces.list()) {
|
|
43
42
|
* // ...
|
|
44
43
|
* }
|
|
45
44
|
* ```
|
|
46
45
|
*/
|
|
47
|
-
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
46
|
+
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<WireguardInterfaceReadsDefaultFlatPagination, WireguardInterfaceRead>;
|
|
48
47
|
/**
|
|
49
48
|
* Delete a WireGuard Interface.
|
|
50
49
|
*
|
|
@@ -58,88 +57,16 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
58
57
|
*/
|
|
59
58
|
delete(id: string, options?: RequestOptions): APIPromise<WireguardInterfaceDeleteResponse>;
|
|
60
59
|
}
|
|
61
|
-
export type
|
|
62
|
-
export interface
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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 {
|
|
60
|
+
export type WireguardInterfaceReadsDefaultFlatPagination = DefaultFlatPagination<WireguardInterfaceRead>;
|
|
61
|
+
export interface WireguardInterfaceRead {
|
|
62
|
+
/**
|
|
63
|
+
* Identifies the resource.
|
|
64
|
+
*/
|
|
65
|
+
id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
68
|
+
*/
|
|
69
|
+
created_at?: string;
|
|
143
70
|
/**
|
|
144
71
|
* Enable SIP traffic forwarding over VPN interface.
|
|
145
72
|
*/
|
|
@@ -148,17 +75,37 @@ export interface WireguardInterfaceListResponse extends GlobalIPAssignmentsAPI.R
|
|
|
148
75
|
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
149
76
|
*/
|
|
150
77
|
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;
|
|
151
86
|
/**
|
|
152
87
|
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
153
88
|
*/
|
|
154
89
|
public_key?: string;
|
|
155
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Identifies the type of the resource.
|
|
92
|
+
*/
|
|
93
|
+
record_type?: string;
|
|
94
|
+
region?: WireguardInterfaceRead.Region;
|
|
156
95
|
/**
|
|
157
96
|
* The region interface is deployed to.
|
|
158
97
|
*/
|
|
159
98
|
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;
|
|
160
107
|
}
|
|
161
|
-
export declare namespace
|
|
108
|
+
export declare namespace WireguardInterfaceRead {
|
|
162
109
|
interface Region {
|
|
163
110
|
/**
|
|
164
111
|
* Region code of the interface.
|
|
@@ -174,45 +121,14 @@ export declare namespace WireguardInterfaceListResponse {
|
|
|
174
121
|
record_type?: string;
|
|
175
122
|
}
|
|
176
123
|
}
|
|
177
|
-
export interface
|
|
178
|
-
data?:
|
|
124
|
+
export interface WireguardInterfaceCreateResponse {
|
|
125
|
+
data?: WireguardInterfaceRead;
|
|
179
126
|
}
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
}
|
|
127
|
+
export interface WireguardInterfaceRetrieveResponse {
|
|
128
|
+
data?: WireguardInterfaceRead;
|
|
129
|
+
}
|
|
130
|
+
export interface WireguardInterfaceDeleteResponse {
|
|
131
|
+
data?: WireguardInterfaceRead;
|
|
216
132
|
}
|
|
217
133
|
export interface WireguardInterfaceCreateParams {
|
|
218
134
|
/**
|
|
@@ -250,6 +166,6 @@ export declare namespace WireguardInterfaceListParams {
|
|
|
250
166
|
}
|
|
251
167
|
}
|
|
252
168
|
export declare namespace WireguardInterfaces {
|
|
253
|
-
export { type
|
|
169
|
+
export { type WireguardInterfaceRead as WireguardInterfaceRead, type WireguardInterfaceCreateResponse as WireguardInterfaceCreateResponse, type WireguardInterfaceRetrieveResponse as WireguardInterfaceRetrieveResponse, type WireguardInterfaceDeleteResponse as WireguardInterfaceDeleteResponse, type WireguardInterfaceReadsDefaultFlatPagination as WireguardInterfaceReadsDefaultFlatPagination, type WireguardInterfaceCreateParams as WireguardInterfaceCreateParams, type WireguardInterfaceListParams as WireguardInterfaceListParams, };
|
|
254
170
|
}
|
|
255
171
|
//# 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":"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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as PublicInternetGatewaysAPI from "./public-internet-gateways.js";
|
|
2
|
+
import * as NetworksAPI from "./networks/networks.js";
|
|
4
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
5
4
|
import { DefaultFlatPagination, type DefaultFlatPaginationParams, PagePromise } from "../core/pagination.js";
|
|
6
5
|
import { RequestOptions } from "../internal/request-options.js";
|
|
@@ -39,12 +38,12 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
39
38
|
* @example
|
|
40
39
|
* ```ts
|
|
41
40
|
* // Automatically fetches more pages as needed.
|
|
42
|
-
* for await (const
|
|
41
|
+
* for await (const wireguardInterfaceRead of client.wireguardInterfaces.list()) {
|
|
43
42
|
* // ...
|
|
44
43
|
* }
|
|
45
44
|
* ```
|
|
46
45
|
*/
|
|
47
|
-
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
46
|
+
list(query?: WireguardInterfaceListParams | null | undefined, options?: RequestOptions): PagePromise<WireguardInterfaceReadsDefaultFlatPagination, WireguardInterfaceRead>;
|
|
48
47
|
/**
|
|
49
48
|
* Delete a WireGuard Interface.
|
|
50
49
|
*
|
|
@@ -58,88 +57,16 @@ export declare class WireguardInterfaces extends APIResource {
|
|
|
58
57
|
*/
|
|
59
58
|
delete(id: string, options?: RequestOptions): APIPromise<WireguardInterfaceDeleteResponse>;
|
|
60
59
|
}
|
|
61
|
-
export type
|
|
62
|
-
export interface
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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 {
|
|
60
|
+
export type WireguardInterfaceReadsDefaultFlatPagination = DefaultFlatPagination<WireguardInterfaceRead>;
|
|
61
|
+
export interface WireguardInterfaceRead {
|
|
62
|
+
/**
|
|
63
|
+
* Identifies the resource.
|
|
64
|
+
*/
|
|
65
|
+
id?: string;
|
|
66
|
+
/**
|
|
67
|
+
* ISO 8601 formatted date-time indicating when the resource was created.
|
|
68
|
+
*/
|
|
69
|
+
created_at?: string;
|
|
143
70
|
/**
|
|
144
71
|
* Enable SIP traffic forwarding over VPN interface.
|
|
145
72
|
*/
|
|
@@ -148,17 +75,37 @@ export interface WireguardInterfaceListResponse extends GlobalIPAssignmentsAPI.R
|
|
|
148
75
|
* The Telnyx WireGuard peers `Peer.endpoint` value.
|
|
149
76
|
*/
|
|
150
77
|
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;
|
|
151
86
|
/**
|
|
152
87
|
* The Telnyx WireGuard peers `Peer.PublicKey`.
|
|
153
88
|
*/
|
|
154
89
|
public_key?: string;
|
|
155
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Identifies the type of the resource.
|
|
92
|
+
*/
|
|
93
|
+
record_type?: string;
|
|
94
|
+
region?: WireguardInterfaceRead.Region;
|
|
156
95
|
/**
|
|
157
96
|
* The region interface is deployed to.
|
|
158
97
|
*/
|
|
159
98
|
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;
|
|
160
107
|
}
|
|
161
|
-
export declare namespace
|
|
108
|
+
export declare namespace WireguardInterfaceRead {
|
|
162
109
|
interface Region {
|
|
163
110
|
/**
|
|
164
111
|
* Region code of the interface.
|
|
@@ -174,45 +121,14 @@ export declare namespace WireguardInterfaceListResponse {
|
|
|
174
121
|
record_type?: string;
|
|
175
122
|
}
|
|
176
123
|
}
|
|
177
|
-
export interface
|
|
178
|
-
data?:
|
|
124
|
+
export interface WireguardInterfaceCreateResponse {
|
|
125
|
+
data?: WireguardInterfaceRead;
|
|
179
126
|
}
|
|
180
|
-
export
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
}
|
|
127
|
+
export interface WireguardInterfaceRetrieveResponse {
|
|
128
|
+
data?: WireguardInterfaceRead;
|
|
129
|
+
}
|
|
130
|
+
export interface WireguardInterfaceDeleteResponse {
|
|
131
|
+
data?: WireguardInterfaceRead;
|
|
216
132
|
}
|
|
217
133
|
export interface WireguardInterfaceCreateParams {
|
|
218
134
|
/**
|
|
@@ -250,6 +166,6 @@ export declare namespace WireguardInterfaceListParams {
|
|
|
250
166
|
}
|
|
251
167
|
}
|
|
252
168
|
export declare namespace WireguardInterfaces {
|
|
253
|
-
export { type
|
|
169
|
+
export { type WireguardInterfaceRead as WireguardInterfaceRead, type WireguardInterfaceCreateResponse as WireguardInterfaceCreateResponse, type WireguardInterfaceRetrieveResponse as WireguardInterfaceRetrieveResponse, type WireguardInterfaceDeleteResponse as WireguardInterfaceDeleteResponse, type WireguardInterfaceReadsDefaultFlatPagination as WireguardInterfaceReadsDefaultFlatPagination, type WireguardInterfaceCreateParams as WireguardInterfaceCreateParams, type WireguardInterfaceListParams as WireguardInterfaceListParams, };
|
|
254
170
|
}
|
|
255
171
|
//# 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":"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"}
|
|
@@ -44,13 +44,16 @@ 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 wireguardInterfaceRead 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), {
|
|
53
|
+
return this._client.getAPIList('/wireguard_interfaces', (pagination_1.DefaultFlatPagination), {
|
|
54
|
+
query,
|
|
55
|
+
...options,
|
|
56
|
+
});
|
|
54
57
|
}
|
|
55
58
|
/**
|
|
56
59
|
* 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;AAG/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,CAAC,uBAAuB,EAAE,CAAA,kCAA6C,CAAA,EAAE;YACrG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,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;AAtED,kDAsEC"}
|
|
@@ -41,13 +41,16 @@ 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 wireguardInterfaceRead 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), {
|
|
50
|
+
return this._client.getAPIList('/wireguard_interfaces', (DefaultFlatPagination), {
|
|
51
|
+
query,
|
|
52
|
+
...options,
|
|
53
|
+
});
|
|
51
54
|
}
|
|
52
55
|
/**
|
|
53
56
|
* 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;OAGf,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,CAAC,uBAAuB,EAAE,CAAA,qBAA6C,CAAA,EAAE;YACrG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,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"}
|