@scaleway/sdk 2.57.0 → 2.59.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/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +28 -0
- package/dist/api/iam/v1alpha1/api.gen.cjs +63 -7
- package/dist/api/iam/v1alpha1/api.gen.d.ts +35 -8
- package/dist/api/iam/v1alpha1/api.gen.js +64 -8
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +31 -3
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
- package/dist/api/ipam/v1/api.gen.cjs +1 -0
- package/dist/api/ipam/v1/api.gen.js +1 -0
- package/dist/api/ipam/v1/types.gen.d.ts +5 -0
- package/dist/api/k8s/v1/marshalling.gen.cjs +1 -2
- package/dist/api/k8s/v1/marshalling.gen.js +1 -2
- package/dist/api/k8s/v1/types.gen.d.ts +2 -7
- package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
- package/dist/api/mnq/v1beta1/api.gen.cjs +47 -42
- package/dist/api/mnq/v1beta1/api.gen.d.ts +51 -49
- package/dist/api/mnq/v1beta1/api.gen.js +47 -42
- package/dist/api/mnq/v1beta1/types.gen.d.ts +37 -32
- package/dist/api/tem/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/vpcgw/index.gen.cjs +2 -0
- package/dist/api/vpcgw/index.gen.d.ts +1 -0
- package/dist/api/vpcgw/index.gen.js +3 -1
- package/dist/api/vpcgw/v2/api.gen.cjs +517 -0
- package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
- package/dist/api/vpcgw/v2/api.gen.js +517 -0
- package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
- package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
- package/dist/api/vpcgw/v2/content.gen.js +15 -0
- package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
- package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
- package/dist/api/vpcgw/v2/index.gen.js +7 -0
- package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
- package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
- package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
- package/dist/api/vpcgw/v2/types.gen.d.ts +450 -0
- package/dist/api/webhosting/v1/api.gen.cjs +41 -2
- package/dist/api/webhosting/v1/api.gen.d.ts +26 -2
- package/dist/api/webhosting/v1/api.gen.js +42 -3
- package/dist/api/webhosting/v1/index.gen.cjs +1 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +2 -2
- package/dist/api/webhosting/v1/index.gen.js +2 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +137 -51
- package/dist/api/webhosting/v1/marshalling.gen.d.ts +4 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +138 -52
- package/dist/api/webhosting/v1/types.gen.d.ts +144 -60
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import type { Zone } from '../../../bridge';
|
|
2
|
+
export type GatewayNetworkStatus = 'unknown_status' | 'created' | 'attaching' | 'configuring' | 'ready' | 'detaching';
|
|
3
|
+
export type GatewayStatus = 'unknown_status' | 'stopped' | 'allocating' | 'configuring' | 'running' | 'stopping' | 'failed' | 'deleting' | 'locked';
|
|
4
|
+
export type ListGatewayNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'status_asc' | 'status_desc';
|
|
5
|
+
export type ListGatewaysRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc' | 'type_asc' | 'type_desc' | 'status_asc' | 'status_desc';
|
|
6
|
+
export type ListIPsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'address_asc' | 'address_desc' | 'reverse_asc' | 'reverse_desc';
|
|
7
|
+
export type ListPatRulesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'public_port_asc' | 'public_port_desc';
|
|
8
|
+
export type PatRuleProtocol = 'unknown_protocol' | 'both' | 'tcp' | 'udp';
|
|
9
|
+
export interface GatewayNetwork {
|
|
10
|
+
/** ID of the Public Gateway-Private Network connection. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Connection creation date. */
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
/** Connection last modification date. */
|
|
15
|
+
updatedAt?: Date;
|
|
16
|
+
/** ID of the connected Public Gateway. */
|
|
17
|
+
gatewayId: string;
|
|
18
|
+
/** ID of the connected Private Network. */
|
|
19
|
+
privateNetworkId: string;
|
|
20
|
+
/**
|
|
21
|
+
* MAC address of the gateway in the Private Network (if the gateway is up and
|
|
22
|
+
* running).
|
|
23
|
+
*/
|
|
24
|
+
macAddress?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Defines whether the gateway masquerades traffic for this Private Network
|
|
27
|
+
* (Dynamic NAT).
|
|
28
|
+
*/
|
|
29
|
+
masqueradeEnabled: boolean;
|
|
30
|
+
/** Current status of the Public Gateway's connection to the Private Network. */
|
|
31
|
+
status: GatewayNetworkStatus;
|
|
32
|
+
/** Enabling the default route also enables masquerading. */
|
|
33
|
+
pushDefaultRoute: boolean;
|
|
34
|
+
/** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. */
|
|
35
|
+
ipamIpId: string;
|
|
36
|
+
/** Zone of the GatewayNetwork connection. */
|
|
37
|
+
zone: Zone;
|
|
38
|
+
}
|
|
39
|
+
export interface IP {
|
|
40
|
+
/** IP address ID. */
|
|
41
|
+
id: string;
|
|
42
|
+
/** Owning Organization. */
|
|
43
|
+
organizationId: string;
|
|
44
|
+
/** Owning Project. */
|
|
45
|
+
projectId: string;
|
|
46
|
+
/** IP address creation date. */
|
|
47
|
+
createdAt?: Date;
|
|
48
|
+
/** IP address last modification date. */
|
|
49
|
+
updatedAt?: Date;
|
|
50
|
+
/** Tags associated with the IP address. */
|
|
51
|
+
tags: string[];
|
|
52
|
+
/** The IP address itself. */
|
|
53
|
+
address: string;
|
|
54
|
+
/** Reverse domain name for the IP address. */
|
|
55
|
+
reverse?: string;
|
|
56
|
+
/** Public Gateway associated with the IP address. */
|
|
57
|
+
gatewayId?: string;
|
|
58
|
+
/** Zone of the IP address. */
|
|
59
|
+
zone: Zone;
|
|
60
|
+
}
|
|
61
|
+
export interface GatewayType {
|
|
62
|
+
/** Public Gateway type name. */
|
|
63
|
+
name: string;
|
|
64
|
+
/**
|
|
65
|
+
* Bandwidth, in bps, of the Public Gateway. This is the public bandwidth to
|
|
66
|
+
* the outer Internet, and the internal bandwidth to each connected Private
|
|
67
|
+
* Networks.
|
|
68
|
+
*/
|
|
69
|
+
bandwidth: number;
|
|
70
|
+
/** Zone the Public Gateway type is available in. */
|
|
71
|
+
zone: Zone;
|
|
72
|
+
}
|
|
73
|
+
export interface Gateway {
|
|
74
|
+
/** ID of the gateway. */
|
|
75
|
+
id: string;
|
|
76
|
+
/** Owning Organization. */
|
|
77
|
+
organizationId: string;
|
|
78
|
+
/** Owning Project. */
|
|
79
|
+
projectId: string;
|
|
80
|
+
/** Gateway creation date. */
|
|
81
|
+
createdAt?: Date;
|
|
82
|
+
/** Gateway last modification date. */
|
|
83
|
+
updatedAt?: Date;
|
|
84
|
+
/** Gateway type name (commercial offer). */
|
|
85
|
+
type: string;
|
|
86
|
+
/** Bandwidth available of the gateway. */
|
|
87
|
+
bandwidth: number;
|
|
88
|
+
/** Current status of the gateway. */
|
|
89
|
+
status: GatewayStatus;
|
|
90
|
+
/** Name of the gateway. */
|
|
91
|
+
name: string;
|
|
92
|
+
/** Tags associated with the gateway. */
|
|
93
|
+
tags: string[];
|
|
94
|
+
/** Public IPv4 address of the gateway. */
|
|
95
|
+
ipv4?: IP;
|
|
96
|
+
/**
|
|
97
|
+
* GatewayNetwork objects attached to the gateway (each one represents a
|
|
98
|
+
* connection to a Private Network).
|
|
99
|
+
*/
|
|
100
|
+
gatewayNetworks: GatewayNetwork[];
|
|
101
|
+
/** Version of the running gateway software. */
|
|
102
|
+
version?: string;
|
|
103
|
+
/** Newly available gateway software version that can be updated to. */
|
|
104
|
+
canUpgradeTo?: string;
|
|
105
|
+
/** Defines whether SSH bastion is enabled on the gateway. */
|
|
106
|
+
bastionEnabled: boolean;
|
|
107
|
+
/** Port of the SSH bastion. */
|
|
108
|
+
bastionPort: number;
|
|
109
|
+
/** Defines whether SMTP traffic is allowed to pass through the gateway. */
|
|
110
|
+
smtpEnabled: boolean;
|
|
111
|
+
/** Defines whether the gateway uses non-IPAM IP configurations. */
|
|
112
|
+
isLegacy: boolean;
|
|
113
|
+
/** Zone of the gateway. */
|
|
114
|
+
zone: Zone;
|
|
115
|
+
}
|
|
116
|
+
export interface PatRule {
|
|
117
|
+
/** PAT rule ID. */
|
|
118
|
+
id: string;
|
|
119
|
+
/** Gateway the PAT rule applies to. */
|
|
120
|
+
gatewayId: string;
|
|
121
|
+
/** PAT rule creation date. */
|
|
122
|
+
createdAt?: Date;
|
|
123
|
+
/** PAT rule last modification date. */
|
|
124
|
+
updatedAt?: Date;
|
|
125
|
+
/** Public port to listen on. */
|
|
126
|
+
publicPort: number;
|
|
127
|
+
/** Private IP address to forward data to. */
|
|
128
|
+
privateIp: string;
|
|
129
|
+
/** Private port to translate to. */
|
|
130
|
+
privatePort: number;
|
|
131
|
+
/** Protocol the rule applies to. */
|
|
132
|
+
protocol: PatRuleProtocol;
|
|
133
|
+
/** Zone of the PAT rule. */
|
|
134
|
+
zone: Zone;
|
|
135
|
+
}
|
|
136
|
+
export interface SetPatRulesRequestRule {
|
|
137
|
+
/**
|
|
138
|
+
* Public port to listen on. Uniquely identifies the rule, and a matching rule
|
|
139
|
+
* will be updated with the new parameters.
|
|
140
|
+
*/
|
|
141
|
+
publicPort: number;
|
|
142
|
+
/** Private IP to forward data to. */
|
|
143
|
+
privateIp: string;
|
|
144
|
+
/** Private port to translate to. */
|
|
145
|
+
privatePort: number;
|
|
146
|
+
/** Protocol the rule should apply to. */
|
|
147
|
+
protocol: PatRuleProtocol;
|
|
148
|
+
}
|
|
149
|
+
export type CreateGatewayNetworkRequest = {
|
|
150
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
151
|
+
zone?: Zone;
|
|
152
|
+
/** Public Gateway to connect. */
|
|
153
|
+
gatewayId: string;
|
|
154
|
+
/** Private Network to connect. */
|
|
155
|
+
privateNetworkId: string;
|
|
156
|
+
/** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
|
|
157
|
+
enableMasquerade: boolean;
|
|
158
|
+
/** Enabling the default route also enables masquerading. */
|
|
159
|
+
pushDefaultRoute: boolean;
|
|
160
|
+
/** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. */
|
|
161
|
+
ipamIpId?: string;
|
|
162
|
+
};
|
|
163
|
+
export type CreateGatewayRequest = {
|
|
164
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
165
|
+
zone?: Zone;
|
|
166
|
+
/** Scaleway Project to create the gateway in. */
|
|
167
|
+
projectId?: string;
|
|
168
|
+
/** Name for the gateway. */
|
|
169
|
+
name?: string;
|
|
170
|
+
/** Tags for the gateway. */
|
|
171
|
+
tags?: string[];
|
|
172
|
+
/** Gateway type (commercial offer type). */
|
|
173
|
+
type: string;
|
|
174
|
+
/** Existing IP address to attach to the gateway. */
|
|
175
|
+
ipId?: string;
|
|
176
|
+
/** Defines whether SMTP traffic should be allowed pass through the gateway. */
|
|
177
|
+
enableSmtp: boolean;
|
|
178
|
+
/** Defines whether SSH bastion should be enabled the gateway. */
|
|
179
|
+
enableBastion: boolean;
|
|
180
|
+
/** Port of the SSH bastion. */
|
|
181
|
+
bastionPort?: number;
|
|
182
|
+
};
|
|
183
|
+
export type CreateIPRequest = {
|
|
184
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
185
|
+
zone?: Zone;
|
|
186
|
+
/** Project to create the IP address in. */
|
|
187
|
+
projectId?: string;
|
|
188
|
+
/** Tags to give to the IP address. */
|
|
189
|
+
tags?: string[];
|
|
190
|
+
};
|
|
191
|
+
export type CreatePatRuleRequest = {
|
|
192
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
193
|
+
zone?: Zone;
|
|
194
|
+
/** ID of the Gateway on which to create the rule. */
|
|
195
|
+
gatewayId: string;
|
|
196
|
+
/** Public port to listen on. */
|
|
197
|
+
publicPort: number;
|
|
198
|
+
/** Private IP to forward data to. */
|
|
199
|
+
privateIp: string;
|
|
200
|
+
/** Private port to translate to. */
|
|
201
|
+
privatePort: number;
|
|
202
|
+
/** Protocol the rule should apply to. */
|
|
203
|
+
protocol?: PatRuleProtocol;
|
|
204
|
+
};
|
|
205
|
+
export type DeleteGatewayNetworkRequest = {
|
|
206
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
207
|
+
zone?: Zone;
|
|
208
|
+
/** ID of the GatewayNetwork to delete. */
|
|
209
|
+
gatewayNetworkId: string;
|
|
210
|
+
};
|
|
211
|
+
export type DeleteGatewayRequest = {
|
|
212
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
213
|
+
zone?: Zone;
|
|
214
|
+
/** ID of the gateway to delete. */
|
|
215
|
+
gatewayId: string;
|
|
216
|
+
};
|
|
217
|
+
export type DeleteIPRequest = {
|
|
218
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
219
|
+
zone?: Zone;
|
|
220
|
+
/** ID of the IP address to delete. */
|
|
221
|
+
ipId: string;
|
|
222
|
+
};
|
|
223
|
+
export type DeletePatRuleRequest = {
|
|
224
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
225
|
+
zone?: Zone;
|
|
226
|
+
/** ID of the PAT rule to delete. */
|
|
227
|
+
patRuleId: string;
|
|
228
|
+
};
|
|
229
|
+
export type GetGatewayNetworkRequest = {
|
|
230
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
231
|
+
zone?: Zone;
|
|
232
|
+
/** ID of the GatewayNetwork to fetch. */
|
|
233
|
+
gatewayNetworkId: string;
|
|
234
|
+
};
|
|
235
|
+
export type GetGatewayRequest = {
|
|
236
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
237
|
+
zone?: Zone;
|
|
238
|
+
/** ID of the gateway to fetch. */
|
|
239
|
+
gatewayId: string;
|
|
240
|
+
};
|
|
241
|
+
export type GetIPRequest = {
|
|
242
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
243
|
+
zone?: Zone;
|
|
244
|
+
/** ID of the IP address to get. */
|
|
245
|
+
ipId: string;
|
|
246
|
+
};
|
|
247
|
+
export type GetPatRuleRequest = {
|
|
248
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
249
|
+
zone?: Zone;
|
|
250
|
+
/** ID of the PAT rule to get. */
|
|
251
|
+
patRuleId: string;
|
|
252
|
+
};
|
|
253
|
+
export type ListGatewayNetworksRequest = {
|
|
254
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
255
|
+
zone?: Zone;
|
|
256
|
+
/** Order in which to return results. */
|
|
257
|
+
orderBy?: ListGatewayNetworksRequestOrderBy;
|
|
258
|
+
/** Page number. */
|
|
259
|
+
page?: number;
|
|
260
|
+
/** GatewayNetworks per page. */
|
|
261
|
+
pageSize?: number;
|
|
262
|
+
/**
|
|
263
|
+
* Filter for GatewayNetworks with these status. Use `unknown` to include all
|
|
264
|
+
* statuses.
|
|
265
|
+
*/
|
|
266
|
+
status?: GatewayNetworkStatus[];
|
|
267
|
+
/** Filter for GatewayNetworks connected to these gateways. */
|
|
268
|
+
gatewayIds?: string[];
|
|
269
|
+
/** Filter for GatewayNetworks connected to these Private Networks. */
|
|
270
|
+
privateNetworkIds?: string[];
|
|
271
|
+
/** Filter for GatewayNetworks with this `enable_masquerade` setting. */
|
|
272
|
+
masqueradeEnabled?: boolean;
|
|
273
|
+
};
|
|
274
|
+
export interface ListGatewayNetworksResponse {
|
|
275
|
+
/** GatewayNetworks on this page. */
|
|
276
|
+
gatewayNetworks: GatewayNetwork[];
|
|
277
|
+
/** Total GatewayNetworks count matching the filter. */
|
|
278
|
+
totalCount: number;
|
|
279
|
+
}
|
|
280
|
+
export type ListGatewayTypesRequest = {
|
|
281
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
282
|
+
zone?: Zone;
|
|
283
|
+
};
|
|
284
|
+
export interface ListGatewayTypesResponse {
|
|
285
|
+
/** Available types of Public Gateway. */
|
|
286
|
+
types: GatewayType[];
|
|
287
|
+
}
|
|
288
|
+
export type ListGatewaysRequest = {
|
|
289
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
290
|
+
zone?: Zone;
|
|
291
|
+
/** Order in which to return results. */
|
|
292
|
+
orderBy?: ListGatewaysRequestOrderBy;
|
|
293
|
+
/** Page number to return. */
|
|
294
|
+
page?: number;
|
|
295
|
+
/** Gateways per page. */
|
|
296
|
+
pageSize?: number;
|
|
297
|
+
/** Include only gateways in this Organization. */
|
|
298
|
+
organizationId?: string;
|
|
299
|
+
/** Include only gateways in this Project. */
|
|
300
|
+
projectId?: string;
|
|
301
|
+
/** Filter for gateways which have this search term in their name. */
|
|
302
|
+
name?: string;
|
|
303
|
+
/** Filter for gateways with these tags. */
|
|
304
|
+
tags?: string[];
|
|
305
|
+
/** Filter for gateways of these types. */
|
|
306
|
+
types?: string[];
|
|
307
|
+
/**
|
|
308
|
+
* Filter for gateways with these status. Use `unknown` to include all
|
|
309
|
+
* statuses.
|
|
310
|
+
*/
|
|
311
|
+
status?: GatewayStatus[];
|
|
312
|
+
/** Filter for gateways attached to these Private Networks. */
|
|
313
|
+
privateNetworkIds?: string[];
|
|
314
|
+
/** Include also legacy gateways. */
|
|
315
|
+
includeLegacy?: boolean;
|
|
316
|
+
};
|
|
317
|
+
export interface ListGatewaysResponse {
|
|
318
|
+
/** Gateways on this page. */
|
|
319
|
+
gateways: Gateway[];
|
|
320
|
+
/** Total count of gateways matching the filter. */
|
|
321
|
+
totalCount: number;
|
|
322
|
+
}
|
|
323
|
+
export type ListIPsRequest = {
|
|
324
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
325
|
+
zone?: Zone;
|
|
326
|
+
/** Order in which to return results. */
|
|
327
|
+
orderBy?: ListIPsRequestOrderBy;
|
|
328
|
+
/** Page number. */
|
|
329
|
+
page?: number;
|
|
330
|
+
/** IP addresses per page. */
|
|
331
|
+
pageSize?: number;
|
|
332
|
+
/** Include only gateways in this Organization. */
|
|
333
|
+
organizationId?: string;
|
|
334
|
+
/** Filter for IP addresses in this Project. */
|
|
335
|
+
projectId?: string;
|
|
336
|
+
/** Filter for IP addresses with these tags. */
|
|
337
|
+
tags?: string[];
|
|
338
|
+
/** Filter for IP addresses that have a reverse containing this string. */
|
|
339
|
+
reverse?: string;
|
|
340
|
+
/** Filter based on whether the IP is attached to a gateway or not. */
|
|
341
|
+
isFree?: boolean;
|
|
342
|
+
};
|
|
343
|
+
export interface ListIPsResponse {
|
|
344
|
+
/** IP addresses on this page. */
|
|
345
|
+
ips: IP[];
|
|
346
|
+
/** Total count of IP addresses matching the filter. */
|
|
347
|
+
totalCount: number;
|
|
348
|
+
}
|
|
349
|
+
export type ListPatRulesRequest = {
|
|
350
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
351
|
+
zone?: Zone;
|
|
352
|
+
/** Order in which to return results. */
|
|
353
|
+
orderBy?: ListPatRulesRequestOrderBy;
|
|
354
|
+
/** Page number. */
|
|
355
|
+
page?: number;
|
|
356
|
+
/** PAT rules per page. */
|
|
357
|
+
pageSize?: number;
|
|
358
|
+
/** Filter for PAT rules on these gateways. */
|
|
359
|
+
gatewayIds?: string[];
|
|
360
|
+
/** Filter for PAT rules targeting these private ips. */
|
|
361
|
+
privateIps?: string[];
|
|
362
|
+
/** Filter for PAT rules with this protocol. */
|
|
363
|
+
protocol?: PatRuleProtocol;
|
|
364
|
+
};
|
|
365
|
+
export interface ListPatRulesResponse {
|
|
366
|
+
/** Array of PAT rules matching the filter. */
|
|
367
|
+
patRules: PatRule[];
|
|
368
|
+
/** Total count of PAT rules matching the filter. */
|
|
369
|
+
totalCount: number;
|
|
370
|
+
}
|
|
371
|
+
export type RefreshSSHKeysRequest = {
|
|
372
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
373
|
+
zone?: Zone;
|
|
374
|
+
/** ID of the gateway to refresh SSH keys on. */
|
|
375
|
+
gatewayId: string;
|
|
376
|
+
};
|
|
377
|
+
export type SetPatRulesRequest = {
|
|
378
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
379
|
+
zone?: Zone;
|
|
380
|
+
/** ID of the gateway on which to set the PAT rules. */
|
|
381
|
+
gatewayId: string;
|
|
382
|
+
/** New list of PAT rules. */
|
|
383
|
+
patRules: SetPatRulesRequestRule[];
|
|
384
|
+
};
|
|
385
|
+
export interface SetPatRulesResponse {
|
|
386
|
+
/** List of PAT rules. */
|
|
387
|
+
patRules: PatRule[];
|
|
388
|
+
}
|
|
389
|
+
export type UpdateGatewayNetworkRequest = {
|
|
390
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
391
|
+
zone?: Zone;
|
|
392
|
+
/** ID of the GatewayNetwork to update. */
|
|
393
|
+
gatewayNetworkId: string;
|
|
394
|
+
/** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
|
|
395
|
+
enableMasquerade?: boolean;
|
|
396
|
+
/** Enabling the default route also enables masquerading. */
|
|
397
|
+
pushDefaultRoute?: boolean;
|
|
398
|
+
/** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. */
|
|
399
|
+
ipamIpId?: string;
|
|
400
|
+
};
|
|
401
|
+
export type UpdateGatewayRequest = {
|
|
402
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
403
|
+
zone?: Zone;
|
|
404
|
+
/** ID of the gateway to update. */
|
|
405
|
+
gatewayId: string;
|
|
406
|
+
/** Name for the gateway. */
|
|
407
|
+
name?: string;
|
|
408
|
+
/** Tags for the gateway. */
|
|
409
|
+
tags?: string[];
|
|
410
|
+
/** Defines whether SSH bastion should be enabled the gateway. */
|
|
411
|
+
enableBastion?: boolean;
|
|
412
|
+
/** Port of the SSH bastion. */
|
|
413
|
+
bastionPort?: number;
|
|
414
|
+
/** Defines whether SMTP traffic should be allowed to pass through the gateway. */
|
|
415
|
+
enableSmtp?: boolean;
|
|
416
|
+
};
|
|
417
|
+
export type UpdateIPRequest = {
|
|
418
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
419
|
+
zone?: Zone;
|
|
420
|
+
/** ID of the IP address to update. */
|
|
421
|
+
ipId: string;
|
|
422
|
+
/** Tags to give to the IP address. */
|
|
423
|
+
tags?: string[];
|
|
424
|
+
/** Reverse to set on the address. Empty string to unset. */
|
|
425
|
+
reverse?: string;
|
|
426
|
+
/** Gateway to attach the IP address to. Empty string to detach. */
|
|
427
|
+
gatewayId?: string;
|
|
428
|
+
};
|
|
429
|
+
export type UpdatePatRuleRequest = {
|
|
430
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
431
|
+
zone?: Zone;
|
|
432
|
+
/** ID of the PAT rule to update. */
|
|
433
|
+
patRuleId: string;
|
|
434
|
+
/** Public port to listen on. */
|
|
435
|
+
publicPort?: number;
|
|
436
|
+
/** Private IP to forward data to. */
|
|
437
|
+
privateIp?: string;
|
|
438
|
+
/** Private port to translate to. */
|
|
439
|
+
privatePort?: number;
|
|
440
|
+
/** Protocol the rule should apply to. */
|
|
441
|
+
protocol?: PatRuleProtocol;
|
|
442
|
+
};
|
|
443
|
+
export type UpgradeGatewayRequest = {
|
|
444
|
+
/** Zone to target. If none is passed will use default zone from the config. */
|
|
445
|
+
zone?: Zone;
|
|
446
|
+
/** ID of the gateway to upgrade. */
|
|
447
|
+
gatewayId: string;
|
|
448
|
+
/** Gateway type (commercial offer). */
|
|
449
|
+
type?: string;
|
|
450
|
+
};
|
|
@@ -12,7 +12,7 @@ const jsonContentHeaders = {
|
|
|
12
12
|
};
|
|
13
13
|
class ControlPanelAPI extends api.API {
|
|
14
14
|
/** Lists the available regions of the API. */
|
|
15
|
-
static LOCALITIES = ["fr-par", "nl-ams"];
|
|
15
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
16
16
|
pageOfListControlPanels = (request = {}) => this.client.fetch(
|
|
17
17
|
{
|
|
18
18
|
method: "GET",
|
|
@@ -236,6 +236,44 @@ class DatabaseAPI extends api.API {
|
|
|
236
236
|
marshalling_gen.unmarshalDatabaseUser
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
|
+
class DnsAPI extends api.API {
|
|
240
|
+
/** Lists the available regions of the API. */
|
|
241
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
242
|
+
/**
|
|
243
|
+
* Get DNS records. Get the set of DNS records of a specified domain
|
|
244
|
+
* associated with a Web Hosting plan's domain.
|
|
245
|
+
*
|
|
246
|
+
* @param request - The request {@link DnsApiGetDomainDnsRecordsRequest}
|
|
247
|
+
* @returns A Promise of DnsRecords
|
|
248
|
+
*/
|
|
249
|
+
getDomainDnsRecords = (request) => this.client.fetch(
|
|
250
|
+
{
|
|
251
|
+
method: "GET",
|
|
252
|
+
path: `/webhosting/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/dns-records`
|
|
253
|
+
},
|
|
254
|
+
marshalling_gen.unmarshalDnsRecords
|
|
255
|
+
);
|
|
256
|
+
/**
|
|
257
|
+
* "Check whether you own this domain or not.".
|
|
258
|
+
*
|
|
259
|
+
* @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
|
|
260
|
+
* @returns A Promise of CheckUserOwnsDomainResponse
|
|
261
|
+
*/
|
|
262
|
+
checkUserOwnsDomain = (request) => this.client.fetch(
|
|
263
|
+
{
|
|
264
|
+
body: JSON.stringify(
|
|
265
|
+
marshalling_gen.marshalDnsApiCheckUserOwnsDomainRequest(
|
|
266
|
+
request,
|
|
267
|
+
this.client.settings
|
|
268
|
+
)
|
|
269
|
+
),
|
|
270
|
+
headers: jsonContentHeaders,
|
|
271
|
+
method: "POST",
|
|
272
|
+
path: `/webhosting/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/check-ownership`
|
|
273
|
+
},
|
|
274
|
+
marshalling_gen.unmarshalCheckUserOwnsDomainResponse
|
|
275
|
+
);
|
|
276
|
+
}
|
|
239
277
|
class OfferAPI extends api.API {
|
|
240
278
|
/** Lists the available regions of the API. */
|
|
241
279
|
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
@@ -267,7 +305,7 @@ class OfferAPI extends api.API {
|
|
|
267
305
|
}
|
|
268
306
|
class HostingAPI extends api.API {
|
|
269
307
|
/** Lists the available regions of the API. */
|
|
270
|
-
static LOCALITIES = ["fr-par", "nl-ams"];
|
|
308
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
271
309
|
/**
|
|
272
310
|
* Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer
|
|
273
311
|
* type required via the `offer_id` parameter.
|
|
@@ -621,6 +659,7 @@ class WebsiteAPI extends api.API {
|
|
|
621
659
|
}
|
|
622
660
|
exports.ControlPanelAPI = ControlPanelAPI;
|
|
623
661
|
exports.DatabaseAPI = DatabaseAPI;
|
|
662
|
+
exports.DnsAPI = DnsAPI;
|
|
624
663
|
exports.FtpAccountAPI = FtpAccountAPI;
|
|
625
664
|
exports.HostingAPI = HostingAPI;
|
|
626
665
|
exports.MailAccountAPI = MailAccountAPI;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { API as ParentAPI } from '../../../bridge';
|
|
2
2
|
import type { Region, WaitForOptions } from '../../../bridge';
|
|
3
|
-
import type { ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, ResetHostingPasswordResponse, ResourceSummary, Session, WebsiteApiListWebsitesRequest } from './types.gen';
|
|
3
|
+
import type { CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsRecords, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, OfferApiListOffersRequest, ResetHostingPasswordResponse, ResourceSummary, Session, WebsiteApiListWebsitesRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
|
-
* Web Hosting API.
|
|
5
|
+
* Web Hosting Control Panel API.
|
|
6
6
|
*
|
|
7
7
|
* This API allows you to manage your Web Hosting services.
|
|
8
8
|
*/
|
|
@@ -117,6 +117,30 @@ export declare class DatabaseAPI extends ParentAPI {
|
|
|
117
117
|
*/
|
|
118
118
|
unassignDatabaseUser: (request: Readonly<DatabaseApiUnassignDatabaseUserRequest>) => Promise<DatabaseUser>;
|
|
119
119
|
}
|
|
120
|
+
/**
|
|
121
|
+
* Web Hosting Dns API.
|
|
122
|
+
*
|
|
123
|
+
* This API allows you to manage your Web Hosting services.
|
|
124
|
+
*/
|
|
125
|
+
export declare class DnsAPI extends ParentAPI {
|
|
126
|
+
/** Lists the available regions of the API. */
|
|
127
|
+
static readonly LOCALITIES: Region[];
|
|
128
|
+
/**
|
|
129
|
+
* Get DNS records. Get the set of DNS records of a specified domain
|
|
130
|
+
* associated with a Web Hosting plan's domain.
|
|
131
|
+
*
|
|
132
|
+
* @param request - The request {@link DnsApiGetDomainDnsRecordsRequest}
|
|
133
|
+
* @returns A Promise of DnsRecords
|
|
134
|
+
*/
|
|
135
|
+
getDomainDnsRecords: (request: Readonly<DnsApiGetDomainDnsRecordsRequest>) => Promise<DnsRecords>;
|
|
136
|
+
/**
|
|
137
|
+
* "Check whether you own this domain or not.".
|
|
138
|
+
*
|
|
139
|
+
* @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
|
|
140
|
+
* @returns A Promise of CheckUserOwnsDomainResponse
|
|
141
|
+
*/
|
|
142
|
+
checkUserOwnsDomain: (request: Readonly<DnsApiCheckUserOwnsDomainRequest>) => Promise<CheckUserOwnsDomainResponse>;
|
|
143
|
+
}
|
|
120
144
|
/**
|
|
121
145
|
* Web Hosting Offer API.
|
|
122
146
|
*
|
|
@@ -4,13 +4,13 @@ import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
|
|
|
4
4
|
import "../../../vendor/base64/index.js";
|
|
5
5
|
import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
|
|
6
6
|
import { HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
7
|
-
import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
|
|
7
|
+
import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, unmarshalListOffersResponse, marshalHostingApiCreateHostingRequest, unmarshalHosting, unmarshalListHostingsResponse, marshalHostingApiUpdateHostingRequest, unmarshalSession, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, marshalFtpAccountApiCreateFtpAccountRequest, unmarshalFtpAccount, unmarshalListFtpAccountsResponse, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, unmarshalMailAccount, unmarshalListMailAccountsResponse, marshalMailAccountApiRemoveMailAccountRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, unmarshalListWebsitesResponse } from "./marshalling.gen.js";
|
|
8
8
|
const jsonContentHeaders = {
|
|
9
9
|
"Content-Type": "application/json; charset=utf-8"
|
|
10
10
|
};
|
|
11
11
|
class ControlPanelAPI extends API$1 {
|
|
12
12
|
/** Lists the available regions of the API. */
|
|
13
|
-
static LOCALITIES = ["fr-par", "nl-ams"];
|
|
13
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
14
14
|
pageOfListControlPanels = (request = {}) => this.client.fetch(
|
|
15
15
|
{
|
|
16
16
|
method: "GET",
|
|
@@ -234,6 +234,44 @@ class DatabaseAPI extends API$1 {
|
|
|
234
234
|
unmarshalDatabaseUser
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
|
+
class DnsAPI extends API$1 {
|
|
238
|
+
/** Lists the available regions of the API. */
|
|
239
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
240
|
+
/**
|
|
241
|
+
* Get DNS records. Get the set of DNS records of a specified domain
|
|
242
|
+
* associated with a Web Hosting plan's domain.
|
|
243
|
+
*
|
|
244
|
+
* @param request - The request {@link DnsApiGetDomainDnsRecordsRequest}
|
|
245
|
+
* @returns A Promise of DnsRecords
|
|
246
|
+
*/
|
|
247
|
+
getDomainDnsRecords = (request) => this.client.fetch(
|
|
248
|
+
{
|
|
249
|
+
method: "GET",
|
|
250
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/dns-records`
|
|
251
|
+
},
|
|
252
|
+
unmarshalDnsRecords
|
|
253
|
+
);
|
|
254
|
+
/**
|
|
255
|
+
* "Check whether you own this domain or not.".
|
|
256
|
+
*
|
|
257
|
+
* @param request - The request {@link DnsApiCheckUserOwnsDomainRequest}
|
|
258
|
+
* @returns A Promise of CheckUserOwnsDomainResponse
|
|
259
|
+
*/
|
|
260
|
+
checkUserOwnsDomain = (request) => this.client.fetch(
|
|
261
|
+
{
|
|
262
|
+
body: JSON.stringify(
|
|
263
|
+
marshalDnsApiCheckUserOwnsDomainRequest(
|
|
264
|
+
request,
|
|
265
|
+
this.client.settings
|
|
266
|
+
)
|
|
267
|
+
),
|
|
268
|
+
headers: jsonContentHeaders,
|
|
269
|
+
method: "POST",
|
|
270
|
+
path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/check-ownership`
|
|
271
|
+
},
|
|
272
|
+
unmarshalCheckUserOwnsDomainResponse
|
|
273
|
+
);
|
|
274
|
+
}
|
|
237
275
|
class OfferAPI extends API$1 {
|
|
238
276
|
/** Lists the available regions of the API. */
|
|
239
277
|
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
@@ -265,7 +303,7 @@ class OfferAPI extends API$1 {
|
|
|
265
303
|
}
|
|
266
304
|
class HostingAPI extends API$1 {
|
|
267
305
|
/** Lists the available regions of the API. */
|
|
268
|
-
static LOCALITIES = ["fr-par", "nl-ams"];
|
|
306
|
+
static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
|
|
269
307
|
/**
|
|
270
308
|
* Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer
|
|
271
309
|
* type required via the `offer_id` parameter.
|
|
@@ -620,6 +658,7 @@ class WebsiteAPI extends API$1 {
|
|
|
620
658
|
export {
|
|
621
659
|
ControlPanelAPI,
|
|
622
660
|
DatabaseAPI,
|
|
661
|
+
DnsAPI,
|
|
623
662
|
FtpAccountAPI,
|
|
624
663
|
HostingAPI,
|
|
625
664
|
MailAccountAPI,
|
|
@@ -5,6 +5,7 @@ const content_gen = require("./content.gen.cjs");
|
|
|
5
5
|
const validationRules_gen = require("./validation-rules.gen.cjs");
|
|
6
6
|
exports.ControlPanelAPI = api_gen.ControlPanelAPI;
|
|
7
7
|
exports.DatabaseAPI = api_gen.DatabaseAPI;
|
|
8
|
+
exports.DnsAPI = api_gen.DnsAPI;
|
|
8
9
|
exports.FtpAccountAPI = api_gen.FtpAccountAPI;
|
|
9
10
|
exports.HostingAPI = api_gen.HostingAPI;
|
|
10
11
|
exports.MailAccountAPI = api_gen.MailAccountAPI;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ControlPanelAPI, DatabaseAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
|
|
1
|
+
export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
|
|
2
2
|
export * from './content.gen';
|
|
3
|
-
export type { ControlPanel, ControlPanelApiListControlPanelsRequest, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest,
|
|
3
|
+
export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, HostingSummaryStatus, HostingUser, ListControlPanelsResponse, ListDatabaseUsersRequestOrderBy, ListDatabaseUsersResponse, ListDatabasesRequestOrderBy, ListDatabasesResponse, ListFtpAccountsRequestOrderBy, ListFtpAccountsResponse, ListHostingsRequestOrderBy, ListHostingsResponse, ListMailAccountsRequestOrderBy, ListMailAccountsResponse, ListOffersRequestOrderBy, ListOffersResponse, ListWebsitesRequestOrderBy, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiListMailAccountsRequest, MailAccountApiRemoveMailAccountRequest, Nameserver, NameserverStatus, Offer, OfferApiListOffersRequest, OfferOption, OfferOptionName, OfferOptionRequest, OfferOptionWarning, Platform, PlatformControlPanel, PlatformControlPanelUrls, PlatformPlatformGroup, ResetHostingPasswordResponse, ResourceSummary, Session, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ControlPanelAPI, DatabaseAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
1
|
+
import { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
|
|
2
2
|
import { HOSTING_SUMMARY_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import * as validationRules_gen from "./validation-rules.gen.js";
|
|
4
4
|
export {
|
|
5
5
|
ControlPanelAPI,
|
|
6
6
|
DatabaseAPI,
|
|
7
|
+
DnsAPI,
|
|
7
8
|
FtpAccountAPI,
|
|
8
9
|
HOSTING_SUMMARY_TRANSIENT_STATUSES,
|
|
9
10
|
HOSTING_TRANSIENT_STATUSES,
|