@scaleway/sdk-webhosting 1.1.3 → 1.3.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,6 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const sdkClient = require("@scaleway/sdk-client");
4
+ const unmarshalBackup = (data) => {
5
+ if (!sdkClient.isJSONObject(data)) {
6
+ throw new TypeError(
7
+ `Unmarshalling the type 'Backup' failed as data isn't a dictionary.`
8
+ );
9
+ }
10
+ return {
11
+ createdAt: sdkClient.unmarshalDate(data.created_at),
12
+ id: data.id,
13
+ size: data.size,
14
+ status: data.status,
15
+ totalItems: data.total_items
16
+ };
17
+ };
4
18
  const unmarshalDatabaseUser = (data) => {
5
19
  if (!sdkClient.isJSONObject(data)) {
6
20
  throw new TypeError(
@@ -34,6 +48,65 @@ const unmarshalFtpAccount = (data) => {
34
48
  username: data.username
35
49
  };
36
50
  };
51
+ const unmarshalAutoConfigDomainDns = (data) => {
52
+ if (!sdkClient.isJSONObject(data)) {
53
+ throw new TypeError(
54
+ `Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
55
+ );
56
+ }
57
+ return {
58
+ allRecords: data.all_records,
59
+ mailRecords: data.mail_records,
60
+ nameservers: data.nameservers,
61
+ none: data.none,
62
+ webRecords: data.web_records
63
+ };
64
+ };
65
+ const unmarshalHostingDomainCustomDomain = (data) => {
66
+ if (!sdkClient.isJSONObject(data)) {
67
+ throw new TypeError(
68
+ `Unmarshalling the type 'HostingDomainCustomDomain' failed as data isn't a dictionary.`
69
+ );
70
+ }
71
+ return {
72
+ autoConfigDomainDns: data.auto_config_domain_dns ? unmarshalAutoConfigDomainDns(data.auto_config_domain_dns) : void 0,
73
+ dnsStatus: data.dns_status,
74
+ domain: data.domain,
75
+ domainStatus: data.domain_status
76
+ };
77
+ };
78
+ const unmarshalHostingDomain = (data) => {
79
+ if (!sdkClient.isJSONObject(data)) {
80
+ throw new TypeError(
81
+ `Unmarshalling the type 'HostingDomain' failed as data isn't a dictionary.`
82
+ );
83
+ }
84
+ return {
85
+ customDomain: data.custom_domain ? unmarshalHostingDomainCustomDomain(data.custom_domain) : void 0,
86
+ subdomain: data.subdomain
87
+ };
88
+ };
89
+ const unmarshalHostingSummary = (data) => {
90
+ if (!sdkClient.isJSONObject(data)) {
91
+ throw new TypeError(
92
+ `Unmarshalling the type 'HostingSummary' failed as data isn't a dictionary.`
93
+ );
94
+ }
95
+ return {
96
+ createdAt: sdkClient.unmarshalDate(data.created_at),
97
+ dnsStatus: data.dns_status ? data.dns_status : void 0,
98
+ domain: data.domain,
99
+ domainInfo: data.domain_info ? unmarshalHostingDomain(data.domain_info) : void 0,
100
+ domainStatus: data.domain_status ? data.domain_status : void 0,
101
+ id: data.id,
102
+ offerName: data.offer_name,
103
+ projectId: data.project_id,
104
+ protected: data.protected,
105
+ region: data.region,
106
+ status: data.status,
107
+ updatedAt: sdkClient.unmarshalDate(data.updated_at)
108
+ };
109
+ };
37
110
  const unmarshalMailAccount = (data) => {
38
111
  if (!sdkClient.isJSONObject(data)) {
39
112
  throw new TypeError(
@@ -45,28 +118,37 @@ const unmarshalMailAccount = (data) => {
45
118
  username: data.username
46
119
  };
47
120
  };
48
- const unmarshalCheckUserOwnsDomainResponse = (data) => {
121
+ const unmarshalFreeDomain = (data) => {
49
122
  if (!sdkClient.isJSONObject(data)) {
50
123
  throw new TypeError(
51
- `Unmarshalling the type 'CheckUserOwnsDomainResponse' failed as data isn't a dictionary.`
124
+ `Unmarshalling the type 'FreeDomain' failed as data isn't a dictionary.`
52
125
  );
53
126
  }
54
127
  return {
55
- ownsDomain: data.owns_domain
128
+ rootDomain: data.root_domain,
129
+ slug: data.slug
56
130
  };
57
131
  };
58
- const unmarshalAutoConfigDomainDns = (data) => {
132
+ const unmarshalCheckFreeDomainAvailabilityResponse = (data) => {
59
133
  if (!sdkClient.isJSONObject(data)) {
60
134
  throw new TypeError(
61
- `Unmarshalling the type 'AutoConfigDomainDns' failed as data isn't a dictionary.`
135
+ `Unmarshalling the type 'CheckFreeDomainAvailabilityResponse' failed as data isn't a dictionary.`
62
136
  );
63
137
  }
64
138
  return {
65
- allRecords: data.all_records,
66
- mailRecords: data.mail_records,
67
- nameservers: data.nameservers,
68
- none: data.none,
69
- webRecords: data.web_records
139
+ freeDomain: data.free_domain ? unmarshalFreeDomain(data.free_domain) : void 0,
140
+ isAvailable: data.is_available,
141
+ reason: data.reason ? data.reason : void 0
142
+ };
143
+ };
144
+ const unmarshalCheckUserOwnsDomainResponse = (data) => {
145
+ if (!sdkClient.isJSONObject(data)) {
146
+ throw new TypeError(
147
+ `Unmarshalling the type 'CheckUserOwnsDomainResponse' failed as data isn't a dictionary.`
148
+ );
149
+ }
150
+ return {
151
+ ownsDomain: data.owns_domain
70
152
  };
71
153
  };
72
154
  const unmarshalDnsRecord = (data) => {
@@ -123,7 +205,8 @@ const unmarshalDomain = (data) => {
123
205
  availableDnsActions: data.available_dns_actions ? data.available_dns_actions : void 0,
124
206
  name: data.name,
125
207
  owner: data.owner,
126
- status: data.status
208
+ status: data.status,
209
+ zoneDomainName: data.zone_domain_name
127
210
  };
128
211
  };
129
212
  const unmarshalPlatformControlPanelUrls = (data) => {
@@ -193,7 +276,8 @@ const unmarshalOffer = (data) => {
193
276
  name: data.name,
194
277
  options: sdkClient.unmarshalArrayOfObject(data.options, unmarshalOfferOption),
195
278
  price: data.price ? sdkClient.unmarshalMoney(data.price) : void 0,
196
- quotaWarning: data.quota_warning
279
+ quotaWarning: data.quota_warning,
280
+ region: data.region
197
281
  };
198
282
  };
199
283
  const unmarshalPlatform = (data) => {
@@ -221,7 +305,8 @@ const unmarshalHosting = (data) => {
221
305
  createdAt: sdkClient.unmarshalDate(data.created_at),
222
306
  dnsStatus: data.dns_status ? data.dns_status : void 0,
223
307
  domain: data.domain,
224
- domainStatus: data.domain_status,
308
+ domainInfo: data.domain_info ? unmarshalHostingDomain(data.domain_info) : void 0,
309
+ domainStatus: data.domain_status ? data.domain_status : void 0,
225
310
  id: data.id,
226
311
  ipv4: data.ipv4,
227
312
  offer: data.offer ? unmarshalOffer(data.offer) : void 0,
@@ -235,6 +320,54 @@ const unmarshalHosting = (data) => {
235
320
  user: data.user ? unmarshalHostingUser(data.user) : void 0
236
321
  };
237
322
  };
323
+ const unmarshalBackupItem = (data) => {
324
+ if (!sdkClient.isJSONObject(data)) {
325
+ throw new TypeError(
326
+ `Unmarshalling the type 'BackupItem' failed as data isn't a dictionary.`
327
+ );
328
+ }
329
+ return {
330
+ createdAt: sdkClient.unmarshalDate(data.created_at),
331
+ id: data.id,
332
+ name: data.name,
333
+ size: data.size,
334
+ status: data.status,
335
+ type: data.type
336
+ };
337
+ };
338
+ const unmarshalBackupItemGroup = (data) => {
339
+ if (!sdkClient.isJSONObject(data)) {
340
+ throw new TypeError(
341
+ `Unmarshalling the type 'BackupItemGroup' failed as data isn't a dictionary.`
342
+ );
343
+ }
344
+ return {
345
+ items: sdkClient.unmarshalArrayOfObject(data.items, unmarshalBackupItem),
346
+ type: data.type
347
+ };
348
+ };
349
+ const unmarshalListBackupItemsResponse = (data) => {
350
+ if (!sdkClient.isJSONObject(data)) {
351
+ throw new TypeError(
352
+ `Unmarshalling the type 'ListBackupItemsResponse' failed as data isn't a dictionary.`
353
+ );
354
+ }
355
+ return {
356
+ groups: sdkClient.unmarshalArrayOfObject(data.groups, unmarshalBackupItemGroup),
357
+ totalCount: data.total_count
358
+ };
359
+ };
360
+ const unmarshalListBackupsResponse = (data) => {
361
+ if (!sdkClient.isJSONObject(data)) {
362
+ throw new TypeError(
363
+ `Unmarshalling the type 'ListBackupsResponse' failed as data isn't a dictionary.`
364
+ );
365
+ }
366
+ return {
367
+ backups: sdkClient.unmarshalArrayOfObject(data.backups, unmarshalBackup),
368
+ totalCount: data.total_count
369
+ };
370
+ };
238
371
  const unmarshalControlPanel = (data) => {
239
372
  if (!sdkClient.isJSONObject(data)) {
240
373
  throw new TypeError(
@@ -284,35 +417,26 @@ const unmarshalListDatabasesResponse = (data) => {
284
417
  totalCount: data.total_count
285
418
  };
286
419
  };
287
- const unmarshalListFtpAccountsResponse = (data) => {
420
+ const unmarshalListFreeRootDomainsResponse = (data) => {
288
421
  if (!sdkClient.isJSONObject(data)) {
289
422
  throw new TypeError(
290
- `Unmarshalling the type 'ListFtpAccountsResponse' failed as data isn't a dictionary.`
423
+ `Unmarshalling the type 'ListFreeRootDomainsResponse' failed as data isn't a dictionary.`
291
424
  );
292
425
  }
293
426
  return {
294
- ftpAccounts: sdkClient.unmarshalArrayOfObject(data.ftp_accounts, unmarshalFtpAccount),
427
+ rootDomains: data.root_domains,
295
428
  totalCount: data.total_count
296
429
  };
297
430
  };
298
- const unmarshalHostingSummary = (data) => {
431
+ const unmarshalListFtpAccountsResponse = (data) => {
299
432
  if (!sdkClient.isJSONObject(data)) {
300
433
  throw new TypeError(
301
- `Unmarshalling the type 'HostingSummary' failed as data isn't a dictionary.`
434
+ `Unmarshalling the type 'ListFtpAccountsResponse' failed as data isn't a dictionary.`
302
435
  );
303
436
  }
304
437
  return {
305
- createdAt: sdkClient.unmarshalDate(data.created_at),
306
- dnsStatus: data.dns_status ? data.dns_status : void 0,
307
- domain: data.domain,
308
- domainStatus: data.domain_status,
309
- id: data.id,
310
- offerName: data.offer_name,
311
- projectId: data.project_id,
312
- protected: data.protected,
313
- region: data.region,
314
- status: data.status,
315
- updatedAt: sdkClient.unmarshalDate(data.updated_at)
438
+ ftpAccounts: sdkClient.unmarshalArrayOfObject(data.ftp_accounts, unmarshalFtpAccount),
439
+ totalCount: data.total_count
316
440
  };
317
441
  };
318
442
  const unmarshalListHostingsResponse = (data) => {
@@ -351,6 +475,32 @@ const unmarshalListOffersResponse = (data) => {
351
475
  totalCount: data.total_count
352
476
  };
353
477
  };
478
+ const unmarshalProgressSummary = (data) => {
479
+ if (!sdkClient.isJSONObject(data)) {
480
+ throw new TypeError(
481
+ `Unmarshalling the type 'ProgressSummary' failed as data isn't a dictionary.`
482
+ );
483
+ }
484
+ return {
485
+ backupItemsCount: data.backup_items_count,
486
+ id: data.id,
487
+ percentage: data.percentage,
488
+ status: data.status
489
+ };
490
+ };
491
+ const unmarshalListRecentProgressesResponse = (data) => {
492
+ if (!sdkClient.isJSONObject(data)) {
493
+ throw new TypeError(
494
+ `Unmarshalling the type 'ListRecentProgressesResponse' failed as data isn't a dictionary.`
495
+ );
496
+ }
497
+ return {
498
+ progresses: sdkClient.unmarshalArrayOfObject(
499
+ data.progresses,
500
+ unmarshalProgressSummary
501
+ )
502
+ };
503
+ };
354
504
  const unmarshalWebsite = (data) => {
355
505
  if (!sdkClient.isJSONObject(data)) {
356
506
  throw new TypeError(
@@ -374,6 +524,22 @@ const unmarshalListWebsitesResponse = (data) => {
374
524
  websites: sdkClient.unmarshalArrayOfObject(data.websites, unmarshalWebsite)
375
525
  };
376
526
  };
527
+ const unmarshalProgress = (data) => {
528
+ if (!sdkClient.isJSONObject(data)) {
529
+ throw new TypeError(
530
+ `Unmarshalling the type 'Progress' failed as data isn't a dictionary.`
531
+ );
532
+ }
533
+ return {
534
+ backupItemGroups: sdkClient.unmarshalArrayOfObject(
535
+ data.backup_item_groups,
536
+ unmarshalBackupItemGroup
537
+ ),
538
+ id: data.id,
539
+ percentage: data.percentage,
540
+ status: data.status
541
+ };
542
+ };
377
543
  const unmarshalResetHostingPasswordResponse = (data) => {
378
544
  if (!sdkClient.isJSONObject(data)) {
379
545
  throw new TypeError(
@@ -398,6 +564,26 @@ const unmarshalResourceSummary = (data) => {
398
564
  websitesCount: data.websites_count
399
565
  };
400
566
  };
567
+ const unmarshalRestoreBackupItemsResponse = (data) => {
568
+ if (!sdkClient.isJSONObject(data)) {
569
+ throw new TypeError(
570
+ `Unmarshalling the type 'RestoreBackupItemsResponse' failed as data isn't a dictionary.`
571
+ );
572
+ }
573
+ return {
574
+ progressId: data.progress_id
575
+ };
576
+ };
577
+ const unmarshalRestoreBackupResponse = (data) => {
578
+ if (!sdkClient.isJSONObject(data)) {
579
+ throw new TypeError(
580
+ `Unmarshalling the type 'RestoreBackupResponse' failed as data isn't a dictionary.`
581
+ );
582
+ }
583
+ return {
584
+ progressId: data.progress_id
585
+ };
586
+ };
401
587
  const unmarshalDomainAvailability = (data) => {
402
588
  if (!sdkClient.isJSONObject(data)) {
403
589
  throw new TypeError(
@@ -436,6 +622,9 @@ const unmarshalSession = (data) => {
436
622
  url: data.url
437
623
  };
438
624
  };
625
+ const marshalBackupApiRestoreBackupItemsRequest = (request, defaults) => ({
626
+ item_ids: request.itemIds
627
+ });
439
628
  const marshalDatabaseApiAssignDatabaseUserRequest = (request, defaults) => ({
440
629
  username: request.username
441
630
  });
@@ -487,6 +676,10 @@ const marshalDnsApiSyncDomainDnsRecordsRequest = (request, defaults) => ({
487
676
  update_nameservers: request.updateNameservers,
488
677
  update_web_records: request.updateWebRecords
489
678
  });
679
+ const marshalFreeDomainApiCheckFreeDomainAvailabilityRequest = (request, defaults) => ({
680
+ root_domain: request.rootDomain,
681
+ slug: request.slug
682
+ });
490
683
  const marshalFtpAccountApiChangeFtpAccountPasswordRequest = (request, defaults) => ({
491
684
  password: request.password
492
685
  });
@@ -495,6 +688,9 @@ const marshalFtpAccountApiCreateFtpAccountRequest = (request, defaults) => ({
495
688
  path: request.path,
496
689
  username: request.username
497
690
  });
691
+ const marshalHostingApiAddCustomDomainRequest = (request, defaults) => ({
692
+ domain_name: request.domainName
693
+ });
498
694
  const marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
499
695
  update_all_records: request.updateAllRecords,
500
696
  update_mail_record: request.updateMailRecord,
@@ -519,8 +715,12 @@ const marshalHostingApiCreateHostingRequest = (request, defaults) => ({
519
715
  ) : void 0,
520
716
  project_id: request.projectId ?? defaults.defaultProjectId,
521
717
  skip_welcome_email: request.skipWelcomeEmail,
718
+ subdomain: request.subdomain,
522
719
  tags: request.tags
523
720
  });
721
+ const marshalHostingApiRemoveCustomDomainRequest = (request, defaults) => ({
722
+ domain_name: request.domainName
723
+ });
524
724
  const marshalHostingApiUpdateHostingRequest = (request, defaults) => ({
525
725
  email: request.email,
526
726
  offer_id: request.offerId,
@@ -544,6 +744,7 @@ const marshalMailAccountApiRemoveMailAccountRequest = (request, defaults) => ({
544
744
  domain: request.domain,
545
745
  username: request.username
546
746
  });
747
+ exports.marshalBackupApiRestoreBackupItemsRequest = marshalBackupApiRestoreBackupItemsRequest;
547
748
  exports.marshalDatabaseApiAssignDatabaseUserRequest = marshalDatabaseApiAssignDatabaseUserRequest;
548
749
  exports.marshalDatabaseApiChangeDatabaseUserPasswordRequest = marshalDatabaseApiChangeDatabaseUserPasswordRequest;
549
750
  exports.marshalDatabaseApiCreateDatabaseRequest = marshalDatabaseApiCreateDatabaseRequest;
@@ -551,13 +752,18 @@ exports.marshalDatabaseApiCreateDatabaseUserRequest = marshalDatabaseApiCreateDa
551
752
  exports.marshalDatabaseApiUnassignDatabaseUserRequest = marshalDatabaseApiUnassignDatabaseUserRequest;
552
753
  exports.marshalDnsApiCheckUserOwnsDomainRequest = marshalDnsApiCheckUserOwnsDomainRequest;
553
754
  exports.marshalDnsApiSyncDomainDnsRecordsRequest = marshalDnsApiSyncDomainDnsRecordsRequest;
755
+ exports.marshalFreeDomainApiCheckFreeDomainAvailabilityRequest = marshalFreeDomainApiCheckFreeDomainAvailabilityRequest;
554
756
  exports.marshalFtpAccountApiChangeFtpAccountPasswordRequest = marshalFtpAccountApiChangeFtpAccountPasswordRequest;
555
757
  exports.marshalFtpAccountApiCreateFtpAccountRequest = marshalFtpAccountApiCreateFtpAccountRequest;
758
+ exports.marshalHostingApiAddCustomDomainRequest = marshalHostingApiAddCustomDomainRequest;
556
759
  exports.marshalHostingApiCreateHostingRequest = marshalHostingApiCreateHostingRequest;
760
+ exports.marshalHostingApiRemoveCustomDomainRequest = marshalHostingApiRemoveCustomDomainRequest;
557
761
  exports.marshalHostingApiUpdateHostingRequest = marshalHostingApiUpdateHostingRequest;
558
762
  exports.marshalMailAccountApiChangeMailAccountPasswordRequest = marshalMailAccountApiChangeMailAccountPasswordRequest;
559
763
  exports.marshalMailAccountApiCreateMailAccountRequest = marshalMailAccountApiCreateMailAccountRequest;
560
764
  exports.marshalMailAccountApiRemoveMailAccountRequest = marshalMailAccountApiRemoveMailAccountRequest;
765
+ exports.unmarshalBackup = unmarshalBackup;
766
+ exports.unmarshalCheckFreeDomainAvailabilityResponse = unmarshalCheckFreeDomainAvailabilityResponse;
561
767
  exports.unmarshalCheckUserOwnsDomainResponse = unmarshalCheckUserOwnsDomainResponse;
562
768
  exports.unmarshalDatabase = unmarshalDatabase;
563
769
  exports.unmarshalDatabaseUser = unmarshalDatabaseUser;
@@ -565,16 +771,24 @@ exports.unmarshalDnsRecords = unmarshalDnsRecords;
565
771
  exports.unmarshalDomain = unmarshalDomain;
566
772
  exports.unmarshalFtpAccount = unmarshalFtpAccount;
567
773
  exports.unmarshalHosting = unmarshalHosting;
774
+ exports.unmarshalHostingSummary = unmarshalHostingSummary;
775
+ exports.unmarshalListBackupItemsResponse = unmarshalListBackupItemsResponse;
776
+ exports.unmarshalListBackupsResponse = unmarshalListBackupsResponse;
568
777
  exports.unmarshalListControlPanelsResponse = unmarshalListControlPanelsResponse;
569
778
  exports.unmarshalListDatabaseUsersResponse = unmarshalListDatabaseUsersResponse;
570
779
  exports.unmarshalListDatabasesResponse = unmarshalListDatabasesResponse;
780
+ exports.unmarshalListFreeRootDomainsResponse = unmarshalListFreeRootDomainsResponse;
571
781
  exports.unmarshalListFtpAccountsResponse = unmarshalListFtpAccountsResponse;
572
782
  exports.unmarshalListHostingsResponse = unmarshalListHostingsResponse;
573
783
  exports.unmarshalListMailAccountsResponse = unmarshalListMailAccountsResponse;
574
784
  exports.unmarshalListOffersResponse = unmarshalListOffersResponse;
785
+ exports.unmarshalListRecentProgressesResponse = unmarshalListRecentProgressesResponse;
575
786
  exports.unmarshalListWebsitesResponse = unmarshalListWebsitesResponse;
576
787
  exports.unmarshalMailAccount = unmarshalMailAccount;
788
+ exports.unmarshalProgress = unmarshalProgress;
577
789
  exports.unmarshalResetHostingPasswordResponse = unmarshalResetHostingPasswordResponse;
578
790
  exports.unmarshalResourceSummary = unmarshalResourceSummary;
791
+ exports.unmarshalRestoreBackupItemsResponse = unmarshalRestoreBackupItemsResponse;
792
+ exports.unmarshalRestoreBackupResponse = unmarshalRestoreBackupResponse;
579
793
  exports.unmarshalSearchDomainsResponse = unmarshalSearchDomainsResponse;
580
794
  exports.unmarshalSession = unmarshalSession;
@@ -1,25 +1,36 @@
1
1
  import type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { CheckUserOwnsDomainResponse, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiUpdateHostingRequest, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiRemoveMailAccountRequest, ResetHostingPasswordResponse, ResourceSummary, SearchDomainsResponse, Session } from './types.gen';
2
+ import type { Backup, BackupApiRestoreBackupItemsRequest, CheckFreeDomainAvailabilityResponse, CheckUserOwnsDomainResponse, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecords, Domain, FreeDomainApiCheckFreeDomainAvailabilityRequest, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, Hosting, HostingApiAddCustomDomainRequest, HostingApiCreateHostingRequest, HostingApiRemoveCustomDomainRequest, HostingApiUpdateHostingRequest, HostingSummary, ListBackupItemsResponse, ListBackupsResponse, ListControlPanelsResponse, ListDatabaseUsersResponse, ListDatabasesResponse, ListFreeRootDomainsResponse, ListFtpAccountsResponse, ListHostingsResponse, ListMailAccountsResponse, ListOffersResponse, ListRecentProgressesResponse, ListWebsitesResponse, MailAccount, MailAccountApiChangeMailAccountPasswordRequest, MailAccountApiCreateMailAccountRequest, MailAccountApiRemoveMailAccountRequest, Progress, ResetHostingPasswordResponse, ResourceSummary, RestoreBackupItemsResponse, RestoreBackupResponse, SearchDomainsResponse, Session } from './types.gen.js';
3
+ export declare const unmarshalBackup: (data: unknown) => Backup;
3
4
  export declare const unmarshalDatabaseUser: (data: unknown) => DatabaseUser;
4
5
  export declare const unmarshalDatabase: (data: unknown) => Database;
5
6
  export declare const unmarshalFtpAccount: (data: unknown) => FtpAccount;
7
+ export declare const unmarshalHostingSummary: (data: unknown) => HostingSummary;
6
8
  export declare const unmarshalMailAccount: (data: unknown) => MailAccount;
9
+ export declare const unmarshalCheckFreeDomainAvailabilityResponse: (data: unknown) => CheckFreeDomainAvailabilityResponse;
7
10
  export declare const unmarshalCheckUserOwnsDomainResponse: (data: unknown) => CheckUserOwnsDomainResponse;
8
11
  export declare const unmarshalDnsRecords: (data: unknown) => DnsRecords;
9
12
  export declare const unmarshalDomain: (data: unknown) => Domain;
10
13
  export declare const unmarshalHosting: (data: unknown) => Hosting;
14
+ export declare const unmarshalListBackupItemsResponse: (data: unknown) => ListBackupItemsResponse;
15
+ export declare const unmarshalListBackupsResponse: (data: unknown) => ListBackupsResponse;
11
16
  export declare const unmarshalListControlPanelsResponse: (data: unknown) => ListControlPanelsResponse;
12
17
  export declare const unmarshalListDatabaseUsersResponse: (data: unknown) => ListDatabaseUsersResponse;
13
18
  export declare const unmarshalListDatabasesResponse: (data: unknown) => ListDatabasesResponse;
19
+ export declare const unmarshalListFreeRootDomainsResponse: (data: unknown) => ListFreeRootDomainsResponse;
14
20
  export declare const unmarshalListFtpAccountsResponse: (data: unknown) => ListFtpAccountsResponse;
15
21
  export declare const unmarshalListHostingsResponse: (data: unknown) => ListHostingsResponse;
16
22
  export declare const unmarshalListMailAccountsResponse: (data: unknown) => ListMailAccountsResponse;
17
23
  export declare const unmarshalListOffersResponse: (data: unknown) => ListOffersResponse;
24
+ export declare const unmarshalListRecentProgressesResponse: (data: unknown) => ListRecentProgressesResponse;
18
25
  export declare const unmarshalListWebsitesResponse: (data: unknown) => ListWebsitesResponse;
26
+ export declare const unmarshalProgress: (data: unknown) => Progress;
19
27
  export declare const unmarshalResetHostingPasswordResponse: (data: unknown) => ResetHostingPasswordResponse;
20
28
  export declare const unmarshalResourceSummary: (data: unknown) => ResourceSummary;
29
+ export declare const unmarshalRestoreBackupItemsResponse: (data: unknown) => RestoreBackupItemsResponse;
30
+ export declare const unmarshalRestoreBackupResponse: (data: unknown) => RestoreBackupResponse;
21
31
  export declare const unmarshalSearchDomainsResponse: (data: unknown) => SearchDomainsResponse;
22
32
  export declare const unmarshalSession: (data: unknown) => Session;
33
+ export declare const marshalBackupApiRestoreBackupItemsRequest: (request: BackupApiRestoreBackupItemsRequest, defaults: DefaultValues) => Record<string, unknown>;
23
34
  export declare const marshalDatabaseApiAssignDatabaseUserRequest: (request: DatabaseApiAssignDatabaseUserRequest, defaults: DefaultValues) => Record<string, unknown>;
24
35
  export declare const marshalDatabaseApiChangeDatabaseUserPasswordRequest: (request: DatabaseApiChangeDatabaseUserPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
25
36
  export declare const marshalDatabaseApiCreateDatabaseRequest: (request: DatabaseApiCreateDatabaseRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -27,9 +38,12 @@ export declare const marshalDatabaseApiCreateDatabaseUserRequest: (request: Data
27
38
  export declare const marshalDatabaseApiUnassignDatabaseUserRequest: (request: DatabaseApiUnassignDatabaseUserRequest, defaults: DefaultValues) => Record<string, unknown>;
28
39
  export declare const marshalDnsApiCheckUserOwnsDomainRequest: (request: DnsApiCheckUserOwnsDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
29
40
  export declare const marshalDnsApiSyncDomainDnsRecordsRequest: (request: DnsApiSyncDomainDnsRecordsRequest, defaults: DefaultValues) => Record<string, unknown>;
41
+ export declare const marshalFreeDomainApiCheckFreeDomainAvailabilityRequest: (request: FreeDomainApiCheckFreeDomainAvailabilityRequest, defaults: DefaultValues) => Record<string, unknown>;
30
42
  export declare const marshalFtpAccountApiChangeFtpAccountPasswordRequest: (request: FtpAccountApiChangeFtpAccountPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
31
43
  export declare const marshalFtpAccountApiCreateFtpAccountRequest: (request: FtpAccountApiCreateFtpAccountRequest, defaults: DefaultValues) => Record<string, unknown>;
44
+ export declare const marshalHostingApiAddCustomDomainRequest: (request: HostingApiAddCustomDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
32
45
  export declare const marshalHostingApiCreateHostingRequest: (request: HostingApiCreateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
46
+ export declare const marshalHostingApiRemoveCustomDomainRequest: (request: HostingApiRemoveCustomDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
33
47
  export declare const marshalHostingApiUpdateHostingRequest: (request: HostingApiUpdateHostingRequest, defaults: DefaultValues) => Record<string, unknown>;
34
48
  export declare const marshalMailAccountApiChangeMailAccountPasswordRequest: (request: MailAccountApiChangeMailAccountPasswordRequest, defaults: DefaultValues) => Record<string, unknown>;
35
49
  export declare const marshalMailAccountApiCreateMailAccountRequest: (request: MailAccountApiCreateMailAccountRequest, defaults: DefaultValues) => Record<string, unknown>;