@scaleway/sdk-webhosting 2.6.0 → 2.8.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.
@@ -1,12 +1,12 @@
1
1
  //#region src/v1/content.gen.ts
2
2
  /** Lists transient statutes of the enum {@link BackupStatus}. */
3
- var BACKUP_TRANSIENT_STATUSES = ["restoring"];
3
+ const BACKUP_TRANSIENT_STATUSES = ["restoring"];
4
4
  /** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
5
- var DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
5
+ const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = ["validating"];
6
6
  /** Lists transient statutes of the enum {@link DomainStatus}. */
7
- var DOMAIN_TRANSIENT_STATUSES = ["validating"];
7
+ const DOMAIN_TRANSIENT_STATUSES = ["validating"];
8
8
  /** Lists transient statutes of the enum {@link HostingStatus}. */
9
- var HOSTING_TRANSIENT_STATUSES = [
9
+ const HOSTING_TRANSIENT_STATUSES = [
10
10
  "delivering",
11
11
  "deleting",
12
12
  "migrating",
@@ -1,6 +1,6 @@
1
1
  import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
2
2
  //#region src/v1/marshalling.gen.ts
3
- var unmarshalBackup = (data) => {
3
+ const unmarshalBackup = (data) => {
4
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Backup' failed as data isn't a dictionary.`);
5
5
  return {
6
6
  createdAt: unmarshalDate(data.created_at),
@@ -10,28 +10,28 @@ var unmarshalBackup = (data) => {
10
10
  totalItems: data.total_items
11
11
  };
12
12
  };
13
- var unmarshalDatabaseUser = (data) => {
13
+ const unmarshalDatabaseUser = (data) => {
14
14
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DatabaseUser' failed as data isn't a dictionary.`);
15
15
  return {
16
16
  databases: data.databases,
17
17
  username: data.username
18
18
  };
19
19
  };
20
- var unmarshalDatabase = (data) => {
20
+ const unmarshalDatabase = (data) => {
21
21
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Database' failed as data isn't a dictionary.`);
22
22
  return {
23
23
  databaseName: data.database_name,
24
24
  users: data.users
25
25
  };
26
26
  };
27
- var unmarshalFtpAccount = (data) => {
27
+ const unmarshalFtpAccount = (data) => {
28
28
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FtpAccount' failed as data isn't a dictionary.`);
29
29
  return {
30
30
  path: data.path,
31
31
  username: data.username
32
32
  };
33
33
  };
34
- var unmarshalAutoConfigDomainDns = (data) => {
34
+ const unmarshalAutoConfigDomainDns = (data) => {
35
35
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`);
36
36
  return {
37
37
  allRecords: data.all_records,
@@ -41,7 +41,7 @@ var unmarshalAutoConfigDomainDns = (data) => {
41
41
  webRecords: data.web_records
42
42
  };
43
43
  };
44
- var unmarshalHostingDomainCustomDomain = (data) => {
44
+ const unmarshalHostingDomainCustomDomain = (data) => {
45
45
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingDomainCustomDomain' failed as data isn't a dictionary.`);
46
46
  return {
47
47
  autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
@@ -50,14 +50,14 @@ var unmarshalHostingDomainCustomDomain = (data) => {
50
50
  domainStatus: data.domain_status
51
51
  };
52
52
  };
53
- var unmarshalHostingDomain = (data) => {
53
+ const unmarshalHostingDomain = (data) => {
54
54
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingDomain' failed as data isn't a dictionary.`);
55
55
  return {
56
56
  customDomain: data.custom_domain ? unmarshalHostingDomainCustomDomain(data.custom_domain) : void 0,
57
57
  subdomain: data.subdomain
58
58
  };
59
59
  };
60
- var unmarshalHostingSummary = (data) => {
60
+ const unmarshalHostingSummary = (data) => {
61
61
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingSummary' failed as data isn't a dictionary.`);
62
62
  return {
63
63
  createdAt: unmarshalDate(data.created_at),
@@ -74,14 +74,14 @@ var unmarshalHostingSummary = (data) => {
74
74
  updatedAt: unmarshalDate(data.updated_at)
75
75
  };
76
76
  };
77
- var unmarshalMailAccount = (data) => {
77
+ const unmarshalMailAccount = (data) => {
78
78
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'MailAccount' failed as data isn't a dictionary.`);
79
79
  return {
80
80
  domain: data.domain,
81
81
  username: data.username
82
82
  };
83
83
  };
84
- var unmarshalWebsite = (data) => {
84
+ const unmarshalWebsite = (data) => {
85
85
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Website' failed as data isn't a dictionary.`);
86
86
  return {
87
87
  domain: data.domain,
@@ -89,14 +89,14 @@ var unmarshalWebsite = (data) => {
89
89
  sslStatus: data.ssl_status
90
90
  };
91
91
  };
92
- var unmarshalFreeDomain = (data) => {
92
+ const unmarshalFreeDomain = (data) => {
93
93
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FreeDomain' failed as data isn't a dictionary.`);
94
94
  return {
95
95
  rootDomain: data.root_domain,
96
96
  slug: data.slug
97
97
  };
98
98
  };
99
- var unmarshalCheckFreeDomainAvailabilityResponse = (data) => {
99
+ const unmarshalCheckFreeDomainAvailabilityResponse = (data) => {
100
100
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckFreeDomainAvailabilityResponse' failed as data isn't a dictionary.`);
101
101
  return {
102
102
  freeDomain: data.free_domain ? unmarshalFreeDomain(data.free_domain) : void 0,
@@ -104,11 +104,11 @@ var unmarshalCheckFreeDomainAvailabilityResponse = (data) => {
104
104
  reason: data.reason ? data.reason : void 0
105
105
  };
106
106
  };
107
- var unmarshalCheckUserOwnsDomainResponse = (data) => {
107
+ const unmarshalCheckUserOwnsDomainResponse = (data) => {
108
108
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'CheckUserOwnsDomainResponse' failed as data isn't a dictionary.`);
109
109
  return { ownsDomain: data.owns_domain };
110
110
  };
111
- var unmarshalDnsRecord = (data) => {
111
+ const unmarshalDnsRecord = (data) => {
112
112
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DnsRecord' failed as data isn't a dictionary.`);
113
113
  return {
114
114
  name: data.name,
@@ -120,7 +120,7 @@ var unmarshalDnsRecord = (data) => {
120
120
  value: data.value
121
121
  };
122
122
  };
123
- var unmarshalNameserver = (data) => {
123
+ const unmarshalNameserver = (data) => {
124
124
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Nameserver' failed as data isn't a dictionary.`);
125
125
  return {
126
126
  hostname: data.hostname,
@@ -128,7 +128,7 @@ var unmarshalNameserver = (data) => {
128
128
  status: data.status
129
129
  };
130
130
  };
131
- var unmarshalDnsRecords = (data) => {
131
+ const unmarshalDnsRecords = (data) => {
132
132
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DnsRecords' failed as data isn't a dictionary.`);
133
133
  return {
134
134
  autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
@@ -138,7 +138,7 @@ var unmarshalDnsRecords = (data) => {
138
138
  status: data.status
139
139
  };
140
140
  };
141
- var unmarshalDomain = (data) => {
141
+ const unmarshalDomain = (data) => {
142
142
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Domain' failed as data isn't a dictionary.`);
143
143
  return {
144
144
  autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
@@ -150,14 +150,14 @@ var unmarshalDomain = (data) => {
150
150
  zoneDomainName: data.zone_domain_name
151
151
  };
152
152
  };
153
- var unmarshalPlatformControlPanelUrls = (data) => {
153
+ const unmarshalPlatformControlPanelUrls = (data) => {
154
154
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlatformControlPanelUrls' failed as data isn't a dictionary.`);
155
155
  return {
156
156
  dashboard: data.dashboard,
157
157
  webmail: data.webmail
158
158
  };
159
159
  };
160
- var unmarshalOfferCommitment = (data) => {
160
+ const unmarshalOfferCommitment = (data) => {
161
161
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferCommitment' failed as data isn't a dictionary.`);
162
162
  return {
163
163
  billingMode: data.billing_mode,
@@ -169,7 +169,7 @@ var unmarshalOfferCommitment = (data) => {
169
169
  type: data.type
170
170
  };
171
171
  };
172
- var unmarshalControlPanel = (data) => {
172
+ const unmarshalControlPanel = (data) => {
173
173
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ControlPanel' failed as data isn't a dictionary.`);
174
174
  return {
175
175
  available: data.available,
@@ -178,7 +178,7 @@ var unmarshalControlPanel = (data) => {
178
178
  name: data.name
179
179
  };
180
180
  };
181
- var unmarshalOfferOption = (data) => {
181
+ const unmarshalOfferOption = (data) => {
182
182
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'OfferOption' failed as data isn't a dictionary.`);
183
183
  return {
184
184
  billingOperationPath: data.billing_operation_path,
@@ -191,14 +191,14 @@ var unmarshalOfferOption = (data) => {
191
191
  quotaWarning: data.quota_warning
192
192
  };
193
193
  };
194
- var unmarshalPlatformControlPanel = (data) => {
194
+ const unmarshalPlatformControlPanel = (data) => {
195
195
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PlatformControlPanel' failed as data isn't a dictionary.`);
196
196
  return {
197
197
  name: data.name,
198
198
  urls: data.urls ? unmarshalPlatformControlPanelUrls(data.urls) : void 0
199
199
  };
200
200
  };
201
- var unmarshalHostingCommitment = (data) => {
201
+ const unmarshalHostingCommitment = (data) => {
202
202
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingCommitment' failed as data isn't a dictionary.`);
203
203
  return {
204
204
  deleteHostingAtEnd: data.delete_hosting_at_end,
@@ -207,7 +207,7 @@ var unmarshalHostingCommitment = (data) => {
207
207
  startAt: unmarshalDate(data.start_at)
208
208
  };
209
209
  };
210
- var unmarshalHostingUser = (data) => {
210
+ const unmarshalHostingUser = (data) => {
211
211
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'HostingUser' failed as data isn't a dictionary.`);
212
212
  return {
213
213
  contactEmail: data.contact_email,
@@ -216,7 +216,7 @@ var unmarshalHostingUser = (data) => {
216
216
  username: data.username
217
217
  };
218
218
  };
219
- var unmarshalOffer = (data) => {
219
+ const unmarshalOffer = (data) => {
220
220
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Offer' failed as data isn't a dictionary.`);
221
221
  return {
222
222
  available: data.available,
@@ -233,7 +233,7 @@ var unmarshalOffer = (data) => {
233
233
  region: data.region
234
234
  };
235
235
  };
236
- var unmarshalPlatform = (data) => {
236
+ const unmarshalPlatform = (data) => {
237
237
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Platform' failed as data isn't a dictionary.`);
238
238
  return {
239
239
  controlPanel: data.control_panel ? unmarshalPlatformControlPanel(data.control_panel) : void 0,
@@ -244,7 +244,7 @@ var unmarshalPlatform = (data) => {
244
244
  number: data.number
245
245
  };
246
246
  };
247
- var unmarshalHosting = (data) => {
247
+ const unmarshalHosting = (data) => {
248
248
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Hosting' failed as data isn't a dictionary.`);
249
249
  return {
250
250
  commitment: data.commitment ? unmarshalHostingCommitment(data.commitment) : void 0,
@@ -266,7 +266,7 @@ var unmarshalHosting = (data) => {
266
266
  user: data.user ? unmarshalHostingUser(data.user) : void 0
267
267
  };
268
268
  };
269
- var unmarshalBackupItem = (data) => {
269
+ const unmarshalBackupItem = (data) => {
270
270
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackupItem' failed as data isn't a dictionary.`);
271
271
  return {
272
272
  createdAt: unmarshalDate(data.created_at),
@@ -277,84 +277,84 @@ var unmarshalBackupItem = (data) => {
277
277
  type: data.type
278
278
  };
279
279
  };
280
- var unmarshalBackupItemGroup = (data) => {
280
+ const unmarshalBackupItemGroup = (data) => {
281
281
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BackupItemGroup' failed as data isn't a dictionary.`);
282
282
  return {
283
283
  items: unmarshalArrayOfObject(data.items, unmarshalBackupItem),
284
284
  type: data.type
285
285
  };
286
286
  };
287
- var unmarshalListBackupItemsResponse = (data) => {
287
+ const unmarshalListBackupItemsResponse = (data) => {
288
288
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackupItemsResponse' failed as data isn't a dictionary.`);
289
289
  return {
290
290
  groups: unmarshalArrayOfObject(data.groups, unmarshalBackupItemGroup),
291
291
  totalCount: data.total_count
292
292
  };
293
293
  };
294
- var unmarshalListBackupsResponse = (data) => {
294
+ const unmarshalListBackupsResponse = (data) => {
295
295
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListBackupsResponse' failed as data isn't a dictionary.`);
296
296
  return {
297
297
  backups: unmarshalArrayOfObject(data.backups, unmarshalBackup),
298
298
  totalCount: data.total_count
299
299
  };
300
300
  };
301
- var unmarshalListControlPanelsResponse = (data) => {
301
+ const unmarshalListControlPanelsResponse = (data) => {
302
302
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListControlPanelsResponse' failed as data isn't a dictionary.`);
303
303
  return {
304
304
  controlPanels: unmarshalArrayOfObject(data.control_panels, unmarshalControlPanel),
305
305
  totalCount: data.total_count
306
306
  };
307
307
  };
308
- var unmarshalListDatabaseUsersResponse = (data) => {
308
+ const unmarshalListDatabaseUsersResponse = (data) => {
309
309
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDatabaseUsersResponse' failed as data isn't a dictionary.`);
310
310
  return {
311
311
  totalCount: data.total_count,
312
312
  users: unmarshalArrayOfObject(data.users, unmarshalDatabaseUser)
313
313
  };
314
314
  };
315
- var unmarshalListDatabasesResponse = (data) => {
315
+ const unmarshalListDatabasesResponse = (data) => {
316
316
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListDatabasesResponse' failed as data isn't a dictionary.`);
317
317
  return {
318
318
  databases: unmarshalArrayOfObject(data.databases, unmarshalDatabase),
319
319
  totalCount: data.total_count
320
320
  };
321
321
  };
322
- var unmarshalListFreeRootDomainsResponse = (data) => {
322
+ const unmarshalListFreeRootDomainsResponse = (data) => {
323
323
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFreeRootDomainsResponse' failed as data isn't a dictionary.`);
324
324
  return {
325
325
  rootDomains: data.root_domains,
326
326
  totalCount: data.total_count
327
327
  };
328
328
  };
329
- var unmarshalListFtpAccountsResponse = (data) => {
329
+ const unmarshalListFtpAccountsResponse = (data) => {
330
330
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFtpAccountsResponse' failed as data isn't a dictionary.`);
331
331
  return {
332
332
  ftpAccounts: unmarshalArrayOfObject(data.ftp_accounts, unmarshalFtpAccount),
333
333
  totalCount: data.total_count
334
334
  };
335
335
  };
336
- var unmarshalListHostingsResponse = (data) => {
336
+ const unmarshalListHostingsResponse = (data) => {
337
337
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHostingsResponse' failed as data isn't a dictionary.`);
338
338
  return {
339
339
  hostings: unmarshalArrayOfObject(data.hostings, unmarshalHostingSummary),
340
340
  totalCount: data.total_count
341
341
  };
342
342
  };
343
- var unmarshalListMailAccountsResponse = (data) => {
343
+ const unmarshalListMailAccountsResponse = (data) => {
344
344
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListMailAccountsResponse' failed as data isn't a dictionary.`);
345
345
  return {
346
346
  mailAccounts: unmarshalArrayOfObject(data.mail_accounts, unmarshalMailAccount),
347
347
  totalCount: data.total_count
348
348
  };
349
349
  };
350
- var unmarshalListOffersResponse = (data) => {
350
+ const unmarshalListOffersResponse = (data) => {
351
351
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListOffersResponse' failed as data isn't a dictionary.`);
352
352
  return {
353
353
  offers: unmarshalArrayOfObject(data.offers, unmarshalOffer),
354
354
  totalCount: data.total_count
355
355
  };
356
356
  };
357
- var unmarshalProgressSummary = (data) => {
357
+ const unmarshalProgressSummary = (data) => {
358
358
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ProgressSummary' failed as data isn't a dictionary.`);
359
359
  return {
360
360
  backupItemsCount: data.backup_items_count,
@@ -363,18 +363,18 @@ var unmarshalProgressSummary = (data) => {
363
363
  status: data.status
364
364
  };
365
365
  };
366
- var unmarshalListRecentProgressesResponse = (data) => {
366
+ const unmarshalListRecentProgressesResponse = (data) => {
367
367
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListRecentProgressesResponse' failed as data isn't a dictionary.`);
368
368
  return { progresses: unmarshalArrayOfObject(data.progresses, unmarshalProgressSummary) };
369
369
  };
370
- var unmarshalListWebsitesResponse = (data) => {
370
+ const unmarshalListWebsitesResponse = (data) => {
371
371
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListWebsitesResponse' failed as data isn't a dictionary.`);
372
372
  return {
373
373
  totalCount: data.total_count,
374
374
  websites: unmarshalArrayOfObject(data.websites, unmarshalWebsite)
375
375
  };
376
376
  };
377
- var unmarshalProgress = (data) => {
377
+ const unmarshalProgress = (data) => {
378
378
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Progress' failed as data isn't a dictionary.`);
379
379
  return {
380
380
  backupItemGroups: unmarshalArrayOfObject(data.backup_item_groups, unmarshalBackupItemGroup),
@@ -383,14 +383,14 @@ var unmarshalProgress = (data) => {
383
383
  status: data.status
384
384
  };
385
385
  };
386
- var unmarshalResetHostingPasswordResponse = (data) => {
386
+ const unmarshalResetHostingPasswordResponse = (data) => {
387
387
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ResetHostingPasswordResponse' failed as data isn't a dictionary.`);
388
388
  return {
389
389
  oneTimePassword: data.one_time_password,
390
390
  oneTimePasswordB64: data.one_time_password_b64
391
391
  };
392
392
  };
393
- var unmarshalResourceSummary = (data) => {
393
+ const unmarshalResourceSummary = (data) => {
394
394
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ResourceSummary' failed as data isn't a dictionary.`);
395
395
  return {
396
396
  databasesCount: data.databases_count,
@@ -399,15 +399,15 @@ var unmarshalResourceSummary = (data) => {
399
399
  websitesCount: data.websites_count
400
400
  };
401
401
  };
402
- var unmarshalRestoreBackupItemsResponse = (data) => {
402
+ const unmarshalRestoreBackupItemsResponse = (data) => {
403
403
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RestoreBackupItemsResponse' failed as data isn't a dictionary.`);
404
404
  return { progressId: data.progress_id };
405
405
  };
406
- var unmarshalRestoreBackupResponse = (data) => {
406
+ const unmarshalRestoreBackupResponse = (data) => {
407
407
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RestoreBackupResponse' failed as data isn't a dictionary.`);
408
408
  return { progressId: data.progress_id };
409
409
  };
410
- var unmarshalDomainAvailability = (data) => {
410
+ const unmarshalDomainAvailability = (data) => {
411
411
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'DomainAvailability' failed as data isn't a dictionary.`);
412
412
  return {
413
413
  availableActions: data.available_actions,
@@ -418,22 +418,22 @@ var unmarshalDomainAvailability = (data) => {
418
418
  zoneName: data.zone_name
419
419
  };
420
420
  };
421
- var unmarshalSearchDomainsResponse = (data) => {
421
+ const unmarshalSearchDomainsResponse = (data) => {
422
422
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SearchDomainsResponse' failed as data isn't a dictionary.`);
423
423
  return { domainsAvailable: unmarshalArrayOfObject(data.domains_available, unmarshalDomainAvailability) };
424
424
  };
425
- var unmarshalSession = (data) => {
425
+ const unmarshalSession = (data) => {
426
426
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Session' failed as data isn't a dictionary.`);
427
427
  return { url: data.url };
428
428
  };
429
- var marshalBackupApiRestoreBackupItemsRequest = (request, defaults) => ({ item_ids: request.itemIds });
430
- var marshalDatabaseApiAssignDatabaseUserRequest = (request, defaults) => ({ username: request.username });
431
- var marshalDatabaseApiChangeDatabaseUserPasswordRequest = (request, defaults) => ({ password: request.password });
432
- var marshalCreateDatabaseRequestUser = (request, defaults) => ({
429
+ const marshalBackupApiRestoreBackupItemsRequest = (request, defaults) => ({ item_ids: request.itemIds });
430
+ const marshalDatabaseApiAssignDatabaseUserRequest = (request, defaults) => ({ username: request.username });
431
+ const marshalDatabaseApiChangeDatabaseUserPasswordRequest = (request, defaults) => ({ password: request.password });
432
+ const marshalCreateDatabaseRequestUser = (request, defaults) => ({
433
433
  password: request.password,
434
434
  username: request.username
435
435
  });
436
- var marshalDatabaseApiCreateDatabaseRequest = (request, defaults) => ({
436
+ const marshalDatabaseApiCreateDatabaseRequest = (request, defaults) => ({
437
437
  database_name: request.databaseName,
438
438
  ...resolveOneOf([{
439
439
  param: "new_user",
@@ -443,24 +443,24 @@ var marshalDatabaseApiCreateDatabaseRequest = (request, defaults) => ({
443
443
  value: request.existingUsername
444
444
  }])
445
445
  });
446
- var marshalDatabaseApiCreateDatabaseUserRequest = (request, defaults) => ({
446
+ const marshalDatabaseApiCreateDatabaseUserRequest = (request, defaults) => ({
447
447
  password: request.password,
448
448
  username: request.username
449
449
  });
450
- var marshalDatabaseApiUnassignDatabaseUserRequest = (request, defaults) => ({ username: request.username });
451
- var marshalDnsApiCheckUserOwnsDomainRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
452
- var marshalAutoConfigDomainDns = (request, defaults) => ({
450
+ const marshalDatabaseApiUnassignDatabaseUserRequest = (request, defaults) => ({ username: request.username });
451
+ const marshalDnsApiCheckUserOwnsDomainRequest = (request, defaults) => ({ project_id: request.projectId ?? defaults.defaultProjectId });
452
+ const marshalAutoConfigDomainDns = (request, defaults) => ({
453
453
  all_records: request.allRecords,
454
454
  mail_records: request.mailRecords,
455
455
  nameservers: request.nameservers,
456
456
  none: request.none,
457
457
  web_records: request.webRecords
458
458
  });
459
- var marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
459
+ const marshalSyncDomainDnsRecordsRequestRecord = (request, defaults) => ({
460
460
  name: request.name,
461
461
  type: request.type
462
462
  });
463
- var marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
463
+ const marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
464
464
  auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns, defaults) : void 0,
465
465
  custom_records: request.customRecords !== void 0 ? request.customRecords.map((elt) => marshalSyncDomainDnsRecordsRequestRecord(elt, defaults)) : void 0,
466
466
  update_all_records: request.updateAllRecords,
@@ -468,28 +468,28 @@ var marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
468
468
  update_nameservers: request.updateNameservers,
469
469
  update_web_records: request.updateWebRecords
470
470
  });
471
- var marshalFreeDomainApiCheckFreeDomainAvailabilityRequest = (request, defaults) => ({
471
+ const marshalFreeDomainApiCheckFreeDomainAvailabilityRequest = (request, defaults) => ({
472
472
  root_domain: request.rootDomain,
473
473
  slug: request.slug
474
474
  });
475
- var marshalFtpAccountApiChangeFtpAccountPasswordRequest = (request, defaults) => ({ password: request.password });
476
- var marshalFtpAccountApiCreateFtpAccountRequest = (request, defaults) => ({
475
+ const marshalFtpAccountApiChangeFtpAccountPasswordRequest = (request, defaults) => ({ password: request.password });
476
+ const marshalFtpAccountApiCreateFtpAccountRequest = (request, defaults) => ({
477
477
  password: request.password,
478
478
  path: request.path,
479
479
  username: request.username
480
480
  });
481
- var marshalHostingApiAddCustomDomainRequest = (request, defaults) => ({ domain_name: request.domainName });
482
- var marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
481
+ const marshalHostingApiAddCustomDomainRequest = (request, defaults) => ({ domain_name: request.domainName });
482
+ const marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
483
483
  update_all_records: request.updateAllRecords,
484
484
  update_mail_record: request.updateMailRecord,
485
485
  update_nameservers: request.updateNameservers,
486
486
  update_web_record: request.updateWebRecord
487
487
  });
488
- var marshalOfferOptionRequest = (request, defaults) => ({
488
+ const marshalOfferOptionRequest = (request, defaults) => ({
489
489
  id: request.id,
490
490
  quantity: request.quantity
491
491
  });
492
- var marshalHostingApiCreateHostingRequest = (request, defaults) => ({
492
+ const marshalHostingApiCreateHostingRequest = (request, defaults) => ({
493
493
  auto_config_domain_dns: request.autoConfigDomainDns !== void 0 ? marshalAutoConfigDomainDns(request.autoConfigDomainDns, defaults) : void 0,
494
494
  domain: request.domain,
495
495
  domain_configuration: request.domainConfiguration !== void 0 ? marshalCreateHostingRequestDomainConfiguration(request.domainConfiguration, defaults) : void 0,
@@ -503,34 +503,34 @@ var marshalHostingApiCreateHostingRequest = (request, defaults) => ({
503
503
  subdomain: request.subdomain,
504
504
  tags: request.tags
505
505
  });
506
- var marshalHostingApiDeleteHostingDomainsRequest = (request, defaults) => ({ domains: request.domains });
507
- var marshalHostingApiMigrateControlPanelRequest = (request, defaults) => ({
506
+ const marshalHostingApiDeleteHostingDomainsRequest = (request, defaults) => ({ domains: request.domains });
507
+ const marshalHostingApiMigrateControlPanelRequest = (request, defaults) => ({
508
508
  control_panel_name: request.controlPanelName,
509
509
  offer_id: request.offerId
510
510
  });
511
- var marshalHostingApiRemoveCustomDomainRequest = (request, defaults) => ({ domain_name: request.domainName });
512
- var marshalHostingApiUpdateHostingFreeDomainRequest = (request, defaults) => ({ free_domain: request.freeDomain });
513
- var marshalHostingApiUpdateHostingRequest = (request, defaults) => ({
511
+ const marshalHostingApiRemoveCustomDomainRequest = (request, defaults) => ({ domain_name: request.domainName });
512
+ const marshalHostingApiUpdateHostingFreeDomainRequest = (request, defaults) => ({ free_domain: request.freeDomain });
513
+ const marshalHostingApiUpdateHostingRequest = (request, defaults) => ({
514
514
  email: request.email,
515
515
  offer_id: request.offerId,
516
516
  offer_options: request.offerOptions !== void 0 ? request.offerOptions.map((elt) => marshalOfferOptionRequest(elt, defaults)) : void 0,
517
517
  protected: request.protected,
518
518
  tags: request.tags
519
519
  });
520
- var marshalMailAccountApiChangeMailAccountPasswordRequest = (request, defaults) => ({
520
+ const marshalMailAccountApiChangeMailAccountPasswordRequest = (request, defaults) => ({
521
521
  domain: request.domain,
522
522
  password: request.password,
523
523
  username: request.username
524
524
  });
525
- var marshalMailAccountApiCreateMailAccountRequest = (request, defaults) => ({
525
+ const marshalMailAccountApiCreateMailAccountRequest = (request, defaults) => ({
526
526
  domain: request.domain,
527
527
  password: request.password,
528
528
  username: request.username
529
529
  });
530
- var marshalMailAccountApiRemoveMailAccountRequest = (request, defaults) => ({
530
+ const marshalMailAccountApiRemoveMailAccountRequest = (request, defaults) => ({
531
531
  domain: request.domain,
532
532
  username: request.username
533
533
  });
534
- var marshalWebsiteApiCreateWebsiteRequest = (request, defaults) => ({ domain_name: request.domainName });
534
+ const marshalWebsiteApiCreateWebsiteRequest = (request, defaults) => ({ domain_name: request.domainName });
535
535
  //#endregion
536
536
  export { marshalBackupApiRestoreBackupItemsRequest, marshalDatabaseApiAssignDatabaseUserRequest, marshalDatabaseApiChangeDatabaseUserPasswordRequest, marshalDatabaseApiCreateDatabaseRequest, marshalDatabaseApiCreateDatabaseUserRequest, marshalDatabaseApiUnassignDatabaseUserRequest, marshalDnsApiCheckUserOwnsDomainRequest, marshalDnsApiSyncDomainDnsRecordsRequest, marshalFreeDomainApiCheckFreeDomainAvailabilityRequest, marshalFtpAccountApiChangeFtpAccountPasswordRequest, marshalFtpAccountApiCreateFtpAccountRequest, marshalHostingApiAddCustomDomainRequest, marshalHostingApiCreateHostingRequest, marshalHostingApiDeleteHostingDomainsRequest, marshalHostingApiMigrateControlPanelRequest, marshalHostingApiRemoveCustomDomainRequest, marshalHostingApiUpdateHostingFreeDomainRequest, marshalHostingApiUpdateHostingRequest, marshalMailAccountApiChangeMailAccountPasswordRequest, marshalMailAccountApiCreateMailAccountRequest, marshalMailAccountApiRemoveMailAccountRequest, marshalWebsiteApiCreateWebsiteRequest, unmarshalBackup, unmarshalCheckFreeDomainAvailabilityResponse, unmarshalCheckUserOwnsDomainResponse, unmarshalDatabase, unmarshalDatabaseUser, unmarshalDnsRecords, unmarshalDomain, unmarshalFtpAccount, unmarshalHosting, unmarshalHostingSummary, unmarshalListBackupItemsResponse, unmarshalListBackupsResponse, unmarshalListControlPanelsResponse, unmarshalListDatabaseUsersResponse, unmarshalListDatabasesResponse, unmarshalListFreeRootDomainsResponse, unmarshalListFtpAccountsResponse, unmarshalListHostingsResponse, unmarshalListMailAccountsResponse, unmarshalListOffersResponse, unmarshalListRecentProgressesResponse, unmarshalListWebsitesResponse, unmarshalMailAccount, unmarshalProgress, unmarshalResetHostingPasswordResponse, unmarshalResourceSummary, unmarshalRestoreBackupItemsResponse, unmarshalRestoreBackupResponse, unmarshalSearchDomainsResponse, unmarshalSession, unmarshalWebsite };
@@ -1,5 +1,5 @@
1
1
  //#region src/v1/metadata.gen.ts
2
- var queriesMetadata = {
2
+ const queriesMetadata = {
3
3
  namespace: "webhosting",
4
4
  version: "v1",
5
5
  folderName: "webhostingv1",
@@ -12,70 +12,70 @@ var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
12
12
  OfferApiListOffersRequest: () => OfferApiListOffersRequest,
13
13
  WebsiteApiListWebsitesRequest: () => WebsiteApiListWebsitesRequest
14
14
  });
15
- var BackupApiListBackupsRequest = {
15
+ const BackupApiListBackupsRequest = {
16
16
  page: { greaterThan: 0 },
17
17
  pageSize: {
18
18
  greaterThan: 0,
19
19
  lessThanOrEqual: 100
20
20
  }
21
21
  };
22
- var ControlPanelApiListControlPanelsRequest = {
22
+ const ControlPanelApiListControlPanelsRequest = {
23
23
  page: { greaterThan: 0 },
24
24
  pageSize: {
25
25
  greaterThan: 0,
26
26
  lessThanOrEqual: 100
27
27
  }
28
28
  };
29
- var DatabaseApiListDatabaseUsersRequest = {
29
+ const DatabaseApiListDatabaseUsersRequest = {
30
30
  page: { greaterThan: 0 },
31
31
  pageSize: {
32
32
  greaterThan: 0,
33
33
  lessThanOrEqual: 100
34
34
  }
35
35
  };
36
- var DatabaseApiListDatabasesRequest = {
36
+ const DatabaseApiListDatabasesRequest = {
37
37
  page: { greaterThan: 0 },
38
38
  pageSize: {
39
39
  greaterThan: 0,
40
40
  lessThanOrEqual: 100
41
41
  }
42
42
  };
43
- var FreeDomainApiListFreeRootDomainsRequest = {
43
+ const FreeDomainApiListFreeRootDomainsRequest = {
44
44
  page: { greaterThan: 0 },
45
45
  pageSize: {
46
46
  greaterThan: 0,
47
47
  lessThanOrEqual: 100
48
48
  }
49
49
  };
50
- var FtpAccountApiListFtpAccountsRequest = {
50
+ const FtpAccountApiListFtpAccountsRequest = {
51
51
  page: { greaterThan: 0 },
52
52
  pageSize: {
53
53
  greaterThan: 0,
54
54
  lessThanOrEqual: 100
55
55
  }
56
56
  };
57
- var HostingApiListHostingsRequest = {
57
+ const HostingApiListHostingsRequest = {
58
58
  page: { greaterThan: 0 },
59
59
  pageSize: {
60
60
  greaterThan: 0,
61
61
  lessThanOrEqual: 100
62
62
  }
63
63
  };
64
- var MailAccountApiListMailAccountsRequest = {
64
+ const MailAccountApiListMailAccountsRequest = {
65
65
  page: { greaterThan: 0 },
66
66
  pageSize: {
67
67
  greaterThan: 0,
68
68
  lessThanOrEqual: 100
69
69
  }
70
70
  };
71
- var OfferApiListOffersRequest = {
71
+ const OfferApiListOffersRequest = {
72
72
  page: { greaterThan: 0 },
73
73
  pageSize: {
74
74
  greaterThan: 0,
75
75
  lessThanOrEqual: 100
76
76
  }
77
77
  };
78
- var WebsiteApiListWebsitesRequest = {
78
+ const WebsiteApiListWebsitesRequest = {
79
79
  page: { greaterThan: 0 },
80
80
  pageSize: {
81
81
  greaterThan: 0,