@scaleway/sdk 2.58.0 → 2.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +117 -0
  2. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +54 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +120 -3
  4. package/dist/api/applesilicon/v1alpha1/content.gen.cjs +4 -0
  5. package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +5 -1
  6. package/dist/api/applesilicon/v1alpha1/content.gen.js +4 -0
  7. package/dist/api/applesilicon/v1alpha1/index.gen.cjs +3 -0
  8. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
  9. package/dist/api/applesilicon/v1alpha1/index.gen.js +5 -2
  10. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +60 -0
  11. package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +6 -1
  12. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +60 -0
  13. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +100 -0
  14. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
  15. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +12 -0
  16. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +12 -0
  17. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +9 -0
  18. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
  19. package/dist/api/iam/v1alpha1/api.gen.cjs +54 -0
  20. package/dist/api/iam/v1alpha1/api.gen.d.ts +26 -1
  21. package/dist/api/iam/v1alpha1/api.gen.js +55 -1
  22. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +23 -0
  24. package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +4 -1
  25. package/dist/api/iam/v1alpha1/marshalling.gen.js +23 -0
  26. package/dist/api/iam/v1alpha1/types.gen.d.ts +29 -1
  27. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +8 -0
  28. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +7 -0
  29. package/dist/api/iam/v1alpha1/validation-rules.gen.js +9 -1
  30. package/dist/api/index.gen.d.ts +2 -1
  31. package/dist/api/interlink/index.gen.cjs +4 -0
  32. package/dist/api/interlink/index.gen.d.ts +5 -0
  33. package/dist/api/interlink/index.gen.js +4 -0
  34. package/dist/api/interlink/v1beta1/api.gen.cjs +405 -0
  35. package/dist/api/interlink/v1beta1/api.gen.d.ts +208 -0
  36. package/dist/api/interlink/v1beta1/api.gen.js +405 -0
  37. package/dist/api/interlink/v1beta1/index.gen.cjs +6 -0
  38. package/dist/api/interlink/v1beta1/index.gen.d.ts +3 -0
  39. package/dist/api/interlink/v1beta1/index.gen.js +6 -0
  40. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +180 -0
  41. package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +16 -0
  42. package/dist/api/interlink/v1beta1/marshalling.gen.js +180 -0
  43. package/dist/api/interlink/v1beta1/types.gen.d.ts +455 -0
  44. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +107 -0
  45. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +93 -0
  46. package/dist/api/interlink/v1beta1/validation-rules.gen.js +107 -0
  47. package/dist/api/ipam/v1/api.gen.cjs +1 -0
  48. package/dist/api/ipam/v1/api.gen.js +1 -0
  49. package/dist/api/ipam/v1/types.gen.d.ts +12 -10
  50. package/dist/api/k8s/v1/api.gen.cjs +22 -20
  51. package/dist/api/k8s/v1/api.gen.d.ts +22 -20
  52. package/dist/api/k8s/v1/api.gen.js +22 -20
  53. package/dist/api/k8s/v1/marshalling.gen.cjs +2 -5
  54. package/dist/api/k8s/v1/marshalling.gen.js +2 -5
  55. package/dist/api/k8s/v1/types.gen.d.ts +65 -49
  56. package/dist/api/lb/v1/types.gen.d.ts +6 -6
  57. package/dist/api/marketplace/v2/types.gen.d.ts +5 -2
  58. package/dist/api/mongodb/v1alpha1/api.gen.cjs +13 -1
  59. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -1
  60. package/dist/api/mongodb/v1alpha1/api.gen.js +13 -1
  61. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  62. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +11 -0
  63. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  64. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  65. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  66. package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
  67. package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
  68. package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
  69. package/dist/api/vpcgw/index.gen.cjs +2 -0
  70. package/dist/api/vpcgw/index.gen.d.ts +1 -0
  71. package/dist/api/vpcgw/index.gen.js +3 -1
  72. package/dist/api/vpcgw/v2/api.gen.cjs +518 -0
  73. package/dist/api/vpcgw/v2/api.gen.d.ts +267 -0
  74. package/dist/api/vpcgw/v2/api.gen.js +518 -0
  75. package/dist/api/vpcgw/v2/content.gen.cjs +15 -0
  76. package/dist/api/vpcgw/v2/content.gen.d.ts +5 -0
  77. package/dist/api/vpcgw/v2/content.gen.js +15 -0
  78. package/dist/api/vpcgw/v2/index.gen.cjs +7 -0
  79. package/dist/api/vpcgw/v2/index.gen.d.ts +3 -0
  80. package/dist/api/vpcgw/v2/index.gen.js +7 -0
  81. package/dist/api/vpcgw/v2/marshalling.gen.cjs +259 -0
  82. package/dist/api/vpcgw/v2/marshalling.gen.d.ts +22 -0
  83. package/dist/api/vpcgw/v2/marshalling.gen.js +259 -0
  84. package/dist/api/vpcgw/v2/types.gen.d.ts +452 -0
  85. package/dist/api/webhosting/v1/api.gen.cjs +20 -0
  86. package/dist/api/webhosting/v1/api.gen.d.ts +8 -1
  87. package/dist/api/webhosting/v1/api.gen.js +21 -1
  88. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  89. package/dist/api/webhosting/v1/marshalling.gen.cjs +30 -2
  90. package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
  91. package/dist/api/webhosting/v1/marshalling.gen.js +31 -3
  92. package/dist/api/webhosting/v1/types.gen.d.ts +50 -2
  93. package/dist/index.cjs +26 -24
  94. package/dist/index.js +26 -24
  95. package/dist/scw/constants.cjs +1 -1
  96. package/dist/scw/constants.d.ts +2 -2
  97. package/dist/scw/constants.js +1 -1
  98. package/package.json +2 -2
@@ -0,0 +1,452 @@
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
+ /** Defines whether the PGW's IP should be deleted. */
217
+ deleteIp: boolean;
218
+ };
219
+ export type DeleteIPRequest = {
220
+ /** Zone to target. If none is passed will use default zone from the config. */
221
+ zone?: Zone;
222
+ /** ID of the IP address to delete. */
223
+ ipId: string;
224
+ };
225
+ export type DeletePatRuleRequest = {
226
+ /** Zone to target. If none is passed will use default zone from the config. */
227
+ zone?: Zone;
228
+ /** ID of the PAT rule to delete. */
229
+ patRuleId: string;
230
+ };
231
+ export type GetGatewayNetworkRequest = {
232
+ /** Zone to target. If none is passed will use default zone from the config. */
233
+ zone?: Zone;
234
+ /** ID of the GatewayNetwork to fetch. */
235
+ gatewayNetworkId: string;
236
+ };
237
+ export type GetGatewayRequest = {
238
+ /** Zone to target. If none is passed will use default zone from the config. */
239
+ zone?: Zone;
240
+ /** ID of the gateway to fetch. */
241
+ gatewayId: string;
242
+ };
243
+ export type GetIPRequest = {
244
+ /** Zone to target. If none is passed will use default zone from the config. */
245
+ zone?: Zone;
246
+ /** ID of the IP address to get. */
247
+ ipId: string;
248
+ };
249
+ export type GetPatRuleRequest = {
250
+ /** Zone to target. If none is passed will use default zone from the config. */
251
+ zone?: Zone;
252
+ /** ID of the PAT rule to get. */
253
+ patRuleId: string;
254
+ };
255
+ export type ListGatewayNetworksRequest = {
256
+ /** Zone to target. If none is passed will use default zone from the config. */
257
+ zone?: Zone;
258
+ /** Order in which to return results. */
259
+ orderBy?: ListGatewayNetworksRequestOrderBy;
260
+ /** Page number. */
261
+ page?: number;
262
+ /** GatewayNetworks per page. */
263
+ pageSize?: number;
264
+ /**
265
+ * Filter for GatewayNetworks with these status. Use `unknown` to include all
266
+ * statuses.
267
+ */
268
+ status?: GatewayNetworkStatus[];
269
+ /** Filter for GatewayNetworks connected to these gateways. */
270
+ gatewayIds?: string[];
271
+ /** Filter for GatewayNetworks connected to these Private Networks. */
272
+ privateNetworkIds?: string[];
273
+ /** Filter for GatewayNetworks with this `enable_masquerade` setting. */
274
+ masqueradeEnabled?: boolean;
275
+ };
276
+ export interface ListGatewayNetworksResponse {
277
+ /** GatewayNetworks on this page. */
278
+ gatewayNetworks: GatewayNetwork[];
279
+ /** Total GatewayNetworks count matching the filter. */
280
+ totalCount: number;
281
+ }
282
+ export type ListGatewayTypesRequest = {
283
+ /** Zone to target. If none is passed will use default zone from the config. */
284
+ zone?: Zone;
285
+ };
286
+ export interface ListGatewayTypesResponse {
287
+ /** Available types of Public Gateway. */
288
+ types: GatewayType[];
289
+ }
290
+ export type ListGatewaysRequest = {
291
+ /** Zone to target. If none is passed will use default zone from the config. */
292
+ zone?: Zone;
293
+ /** Order in which to return results. */
294
+ orderBy?: ListGatewaysRequestOrderBy;
295
+ /** Page number to return. */
296
+ page?: number;
297
+ /** Gateways per page. */
298
+ pageSize?: number;
299
+ /** Include only gateways in this Organization. */
300
+ organizationId?: string;
301
+ /** Include only gateways in this Project. */
302
+ projectId?: string;
303
+ /** Filter for gateways which have this search term in their name. */
304
+ name?: string;
305
+ /** Filter for gateways with these tags. */
306
+ tags?: string[];
307
+ /** Filter for gateways of these types. */
308
+ types?: string[];
309
+ /**
310
+ * Filter for gateways with these status. Use `unknown` to include all
311
+ * statuses.
312
+ */
313
+ status?: GatewayStatus[];
314
+ /** Filter for gateways attached to these Private Networks. */
315
+ privateNetworkIds?: string[];
316
+ /** Include also legacy gateways. */
317
+ includeLegacy?: boolean;
318
+ };
319
+ export interface ListGatewaysResponse {
320
+ /** Gateways on this page. */
321
+ gateways: Gateway[];
322
+ /** Total count of gateways matching the filter. */
323
+ totalCount: number;
324
+ }
325
+ export type ListIPsRequest = {
326
+ /** Zone to target. If none is passed will use default zone from the config. */
327
+ zone?: Zone;
328
+ /** Order in which to return results. */
329
+ orderBy?: ListIPsRequestOrderBy;
330
+ /** Page number. */
331
+ page?: number;
332
+ /** IP addresses per page. */
333
+ pageSize?: number;
334
+ /** Include only gateways in this Organization. */
335
+ organizationId?: string;
336
+ /** Filter for IP addresses in this Project. */
337
+ projectId?: string;
338
+ /** Filter for IP addresses with these tags. */
339
+ tags?: string[];
340
+ /** Filter for IP addresses that have a reverse containing this string. */
341
+ reverse?: string;
342
+ /** Filter based on whether the IP is attached to a gateway or not. */
343
+ isFree?: boolean;
344
+ };
345
+ export interface ListIPsResponse {
346
+ /** IP addresses on this page. */
347
+ ips: IP[];
348
+ /** Total count of IP addresses matching the filter. */
349
+ totalCount: number;
350
+ }
351
+ export type ListPatRulesRequest = {
352
+ /** Zone to target. If none is passed will use default zone from the config. */
353
+ zone?: Zone;
354
+ /** Order in which to return results. */
355
+ orderBy?: ListPatRulesRequestOrderBy;
356
+ /** Page number. */
357
+ page?: number;
358
+ /** PAT rules per page. */
359
+ pageSize?: number;
360
+ /** Filter for PAT rules on these gateways. */
361
+ gatewayIds?: string[];
362
+ /** Filter for PAT rules targeting these private ips. */
363
+ privateIps?: string[];
364
+ /** Filter for PAT rules with this protocol. */
365
+ protocol?: PatRuleProtocol;
366
+ };
367
+ export interface ListPatRulesResponse {
368
+ /** Array of PAT rules matching the filter. */
369
+ patRules: PatRule[];
370
+ /** Total count of PAT rules matching the filter. */
371
+ totalCount: number;
372
+ }
373
+ export type RefreshSSHKeysRequest = {
374
+ /** Zone to target. If none is passed will use default zone from the config. */
375
+ zone?: Zone;
376
+ /** ID of the gateway to refresh SSH keys on. */
377
+ gatewayId: string;
378
+ };
379
+ export type SetPatRulesRequest = {
380
+ /** Zone to target. If none is passed will use default zone from the config. */
381
+ zone?: Zone;
382
+ /** ID of the gateway on which to set the PAT rules. */
383
+ gatewayId: string;
384
+ /** New list of PAT rules. */
385
+ patRules: SetPatRulesRequestRule[];
386
+ };
387
+ export interface SetPatRulesResponse {
388
+ /** List of PAT rules. */
389
+ patRules: PatRule[];
390
+ }
391
+ export type UpdateGatewayNetworkRequest = {
392
+ /** Zone to target. If none is passed will use default zone from the config. */
393
+ zone?: Zone;
394
+ /** ID of the GatewayNetwork to update. */
395
+ gatewayNetworkId: string;
396
+ /** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */
397
+ enableMasquerade?: boolean;
398
+ /** Enabling the default route also enables masquerading. */
399
+ pushDefaultRoute?: boolean;
400
+ /** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. */
401
+ ipamIpId?: string;
402
+ };
403
+ export type UpdateGatewayRequest = {
404
+ /** Zone to target. If none is passed will use default zone from the config. */
405
+ zone?: Zone;
406
+ /** ID of the gateway to update. */
407
+ gatewayId: string;
408
+ /** Name for the gateway. */
409
+ name?: string;
410
+ /** Tags for the gateway. */
411
+ tags?: string[];
412
+ /** Defines whether SSH bastion should be enabled the gateway. */
413
+ enableBastion?: boolean;
414
+ /** Port of the SSH bastion. */
415
+ bastionPort?: number;
416
+ /** Defines whether SMTP traffic should be allowed to pass through the gateway. */
417
+ enableSmtp?: boolean;
418
+ };
419
+ export type UpdateIPRequest = {
420
+ /** Zone to target. If none is passed will use default zone from the config. */
421
+ zone?: Zone;
422
+ /** ID of the IP address to update. */
423
+ ipId: string;
424
+ /** Tags to give to the IP address. */
425
+ tags?: string[];
426
+ /** Reverse to set on the address. Empty string to unset. */
427
+ reverse?: string;
428
+ /** Gateway to attach the IP address to. Empty string to detach. */
429
+ gatewayId?: string;
430
+ };
431
+ export type UpdatePatRuleRequest = {
432
+ /** Zone to target. If none is passed will use default zone from the config. */
433
+ zone?: Zone;
434
+ /** ID of the PAT rule to update. */
435
+ patRuleId: string;
436
+ /** Public port to listen on. */
437
+ publicPort?: number;
438
+ /** Private IP to forward data to. */
439
+ privateIp?: string;
440
+ /** Private port to translate to. */
441
+ privatePort?: number;
442
+ /** Protocol the rule should apply to. */
443
+ protocol?: PatRuleProtocol;
444
+ };
445
+ export type UpgradeGatewayRequest = {
446
+ /** Zone to target. If none is passed will use default zone from the config. */
447
+ zone?: Zone;
448
+ /** ID of the gateway to upgrade. */
449
+ gatewayId: string;
450
+ /** Gateway type (commercial offer). */
451
+ type?: string;
452
+ };
@@ -273,6 +273,26 @@ class DnsAPI extends api.API {
273
273
  },
274
274
  marshalling_gen.unmarshalCheckUserOwnsDomainResponse
275
275
  );
276
+ /**
277
+ * "Synchronize your DNS records on the Elements Console and on cPanel.".
278
+ *
279
+ * @param request - The request {@link DnsApiSyncDomainDnsRecordsRequest}
280
+ * @returns A Promise of DnsRecords
281
+ */
282
+ syncDomainDnsRecords = (request) => this.client.fetch(
283
+ {
284
+ body: JSON.stringify(
285
+ marshalling_gen.marshalDnsApiSyncDomainDnsRecordsRequest(
286
+ request,
287
+ this.client.settings
288
+ )
289
+ ),
290
+ headers: jsonContentHeaders,
291
+ method: "POST",
292
+ path: `/webhosting/v1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/sync-domain-dns-records`
293
+ },
294
+ marshalling_gen.unmarshalDnsRecords
295
+ );
276
296
  }
277
297
  class OfferAPI extends api.API {
278
298
  /** Lists the available regions of the API. */
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Region, WaitForOptions } from '../../../bridge';
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';
3
+ import type { CheckUserOwnsDomainResponse, ControlPanelApiListControlPanelsRequest, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiSyncDomainDnsRecordsRequest, 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
5
  * Web Hosting Control Panel API.
6
6
  *
@@ -140,6 +140,13 @@ export declare class DnsAPI extends ParentAPI {
140
140
  * @returns A Promise of CheckUserOwnsDomainResponse
141
141
  */
142
142
  checkUserOwnsDomain: (request: Readonly<DnsApiCheckUserOwnsDomainRequest>) => Promise<CheckUserOwnsDomainResponse>;
143
+ /**
144
+ * "Synchronize your DNS records on the Elements Console and on cPanel.".
145
+ *
146
+ * @param request - The request {@link DnsApiSyncDomainDnsRecordsRequest}
147
+ * @returns A Promise of DnsRecords
148
+ */
149
+ syncDomainDnsRecords: (request: Readonly<DnsApiSyncDomainDnsRecordsRequest>) => Promise<DnsRecords>;
143
150
  }
144
151
  /**
145
152
  * Web Hosting Offer API.
@@ -4,7 +4,7 @@ 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, 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";
7
+ import { unmarshalListControlPanelsResponse, marshalDatabaseApiCreateDatabaseRequest, unmarshalDatabase, unmarshalListDatabasesResponse, marshalDatabaseApiCreateDatabaseUserRequest, unmarshalDatabaseUser, unmarshalListDatabaseUsersResponse, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, unmarshalDnsRecords, marshalDnsApiCheckUserOwnsDomainRequest, unmarshalCheckUserOwnsDomainResponse, marshalDnsApiSyncDomainDnsRecordsRequest, 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
  };
@@ -271,6 +271,26 @@ class DnsAPI extends API$1 {
271
271
  },
272
272
  unmarshalCheckUserOwnsDomainResponse
273
273
  );
274
+ /**
275
+ * "Synchronize your DNS records on the Elements Console and on cPanel.".
276
+ *
277
+ * @param request - The request {@link DnsApiSyncDomainDnsRecordsRequest}
278
+ * @returns A Promise of DnsRecords
279
+ */
280
+ syncDomainDnsRecords = (request) => this.client.fetch(
281
+ {
282
+ body: JSON.stringify(
283
+ marshalDnsApiSyncDomainDnsRecordsRequest(
284
+ request,
285
+ this.client.settings
286
+ )
287
+ ),
288
+ headers: jsonContentHeaders,
289
+ method: "POST",
290
+ path: `/webhosting/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${validatePathParam("domain", request.domain)}/sync-domain-dns-records`
291
+ },
292
+ unmarshalDnsRecords
293
+ );
274
294
  }
275
295
  class OfferAPI extends API$1 {
276
296
  /** Lists the available regions of the API. */
@@ -1,4 +1,4 @@
1
1
  export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, 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';
3
+ export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiSyncDomainDnsRecordsRequest, 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, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -159,8 +159,10 @@ const unmarshalOffer = (data) => {
159
159
  controlPanelName: data.control_panel_name,
160
160
  endOfLife: data.end_of_life,
161
161
  id: data.id,
162
+ name: data.name,
162
163
  options: marshalling.unmarshalArrayOfObject(data.options, unmarshalOfferOption),
163
- price: data.price ? customMarshalling.unmarshalMoney(data.price) : void 0
164
+ price: data.price ? customMarshalling.unmarshalMoney(data.price) : void 0,
165
+ quotaWarning: data.quota_warning
164
166
  };
165
167
  };
166
168
  const unmarshalPlatform = (data) => {
@@ -269,8 +271,10 @@ const unmarshalHostingSummary = (data) => {
269
271
  }
270
272
  return {
271
273
  createdAt: marshalling.unmarshalDate(data.created_at),
274
+ dnsStatus: data.dns_status,
272
275
  domain: data.domain,
273
276
  id: data.id,
277
+ offerName: data.offer_name,
274
278
  projectId: data.project_id,
275
279
  protected: data.protected,
276
280
  region: data.region,
@@ -376,8 +380,19 @@ const marshalDatabaseApiAssignDatabaseUserRequest = (request, defaults) => ({
376
380
  const marshalDatabaseApiChangeDatabaseUserPasswordRequest = (request, defaults) => ({
377
381
  password: request.password
378
382
  });
383
+ const marshalCreateDatabaseRequestUser = (request, defaults) => ({
384
+ password: request.password,
385
+ username: request.username
386
+ });
379
387
  const marshalDatabaseApiCreateDatabaseRequest = (request, defaults) => ({
380
- database_name: request.databaseName
388
+ database_name: request.databaseName,
389
+ ...marshalling.resolveOneOf([
390
+ {
391
+ param: "new_user",
392
+ value: request.newUser !== void 0 ? marshalCreateDatabaseRequestUser(request.newUser) : void 0
393
+ },
394
+ { param: "existing_username", value: request.existingUsername }
395
+ ])
381
396
  });
382
397
  const marshalDatabaseApiCreateDatabaseUserRequest = (request, defaults) => ({
383
398
  password: request.password,
@@ -389,6 +404,18 @@ const marshalDatabaseApiUnassignDatabaseUserRequest = (request, defaults) => ({
389
404
  const marshalDnsApiCheckUserOwnsDomainRequest = (request, defaults) => ({
390
405
  project_id: request.projectId ?? defaults.defaultProjectId
391
406
  });
407
+ const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
408
+ name: request.name,
409
+ type: request.type
410
+ });
411
+ const marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
412
+ custom_records: request.customRecords !== void 0 ? request.customRecords.map(
413
+ (elt) => marshalSyncDomainDnsRecordsRequestRecord(elt)
414
+ ) : void 0,
415
+ update_all_records: request.updateAllRecords,
416
+ update_mail_records: request.updateMailRecords,
417
+ update_web_records: request.updateWebRecords
418
+ });
392
419
  const marshalFtpAccountApiChangeFtpAccountPasswordRequest = (request, defaults) => ({
393
420
  password: request.password
394
421
  });
@@ -451,6 +478,7 @@ exports.marshalDatabaseApiCreateDatabaseRequest = marshalDatabaseApiCreateDataba
451
478
  exports.marshalDatabaseApiCreateDatabaseUserRequest = marshalDatabaseApiCreateDatabaseUserRequest;
452
479
  exports.marshalDatabaseApiUnassignDatabaseUserRequest = marshalDatabaseApiUnassignDatabaseUserRequest;
453
480
  exports.marshalDnsApiCheckUserOwnsDomainRequest = marshalDnsApiCheckUserOwnsDomainRequest;
481
+ exports.marshalDnsApiSyncDomainDnsRecordsRequest = marshalDnsApiSyncDomainDnsRecordsRequest;
454
482
  exports.marshalFtpAccountApiChangeFtpAccountPasswordRequest = marshalFtpAccountApiChangeFtpAccountPasswordRequest;
455
483
  exports.marshalFtpAccountApiCreateFtpAccountRequest = marshalFtpAccountApiCreateFtpAccountRequest;
456
484
  exports.marshalHostingApiCreateHostingRequest = marshalHostingApiCreateHostingRequest;
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { CheckUserOwnsDomainResponse, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsRecords, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiRemoveMailAccountRequest, ResetHostingPasswordResponse, ResourceSummary, Session } from './types.gen';
2
+ import type { CheckUserOwnsDomainResponse, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiRemoveMailAccountRequest, ResetHostingPasswordResponse, ResourceSummary, Session } from './types.gen';
3
3
  export declare const unmarshalDatabaseUser: (data: unknown) => DatabaseUser;
4
4
  export declare const unmarshalDatabase: (data: unknown) => Database;
5
5
  export declare const unmarshalFtpAccount: (data: unknown) => FtpAccount;
@@ -24,6 +24,7 @@ export declare const marshalDatabaseApiCreateDatabaseRequest: (request: Database
24
24
  export declare const marshalDatabaseApiCreateDatabaseUserRequest: (request: DatabaseApiCreateDatabaseUserRequest, defaults: DefaultValues) => Record<string, unknown>;
25
25
  export declare const marshalDatabaseApiUnassignDatabaseUserRequest: (request: DatabaseApiUnassignDatabaseUserRequest, defaults: DefaultValues) => Record<string, unknown>;
26
26
  export declare const marshalDnsApiCheckUserOwnsDomainRequest: (request: DnsApiCheckUserOwnsDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
27
+ export declare const marshalDnsApiSyncDomainDnsRecordsRequest: (request: DnsApiSyncDomainDnsRecordsRequest, defaults: DefaultValues) => Record<string, unknown>;
27
28
  export declare const marshalFtpAccountApiChangeFtpAccountPasswordRequest: (request: FtpAccountApiChangeFtpAccountPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
28
29
  export declare const marshalFtpAccountApiCreateFtpAccountRequest: (request: FtpAccountApiCreateFtpAccountRequest, defaults: DefaultValues) => Record<string, unknown>;
29
30
  export declare const marshalHostingApiCreateHostingRequest: (request: HostingApiCreateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;