@scaleway/sdk 2.67.0 → 2.68.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 (108) hide show
  1. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +5 -1
  2. package/dist/api/audit_trail/v1alpha1/api.gen.js +5 -1
  3. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +1 -0
  4. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +1 -0
  5. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +6 -2
  6. package/dist/api/baremetal/v1/api.gen.cjs +13 -0
  7. package/dist/api/baremetal/v1/api.gen.d.ts +8 -1
  8. package/dist/api/baremetal/v1/api.gen.js +13 -0
  9. package/dist/api/baremetal/v1/content.gen.cjs +2 -1
  10. package/dist/api/baremetal/v1/content.gen.js +2 -1
  11. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  12. package/dist/api/baremetal/v1/marshalling.gen.cjs +1 -0
  13. package/dist/api/baremetal/v1/marshalling.gen.js +1 -0
  14. package/dist/api/baremetal/v1/types.gen.d.ts +9 -1
  15. package/dist/api/block/index.gen.cjs +4 -2
  16. package/dist/api/block/index.gen.d.ts +1 -0
  17. package/dist/api/block/index.gen.js +4 -2
  18. package/dist/api/block/v1/api.gen.cjs +303 -0
  19. package/dist/api/block/v1/api.gen.d.ts +152 -0
  20. package/dist/api/block/v1/api.gen.js +303 -0
  21. package/dist/api/block/v1/content.gen.cjs +22 -0
  22. package/dist/api/block/v1/content.gen.d.ts +7 -0
  23. package/dist/api/block/v1/content.gen.js +22 -0
  24. package/dist/api/block/v1/index.gen.cjs +10 -0
  25. package/dist/api/block/v1/index.gen.d.ts +4 -0
  26. package/dist/api/block/v1/index.gen.js +10 -0
  27. package/dist/api/block/v1/marshalling.gen.cjs +200 -0
  28. package/dist/api/block/v1/marshalling.gen.d.ts +14 -0
  29. package/dist/api/block/v1/marshalling.gen.js +200 -0
  30. package/dist/api/block/v1/types.gen.d.ts +335 -0
  31. package/dist/api/block/v1/validation-rules.gen.cjs +56 -0
  32. package/dist/api/block/v1/validation-rules.gen.d.ts +47 -0
  33. package/dist/api/block/v1/validation-rules.gen.js +56 -0
  34. package/dist/api/block/v1alpha1/api.gen.cjs +1 -0
  35. package/dist/api/block/v1alpha1/api.gen.js +1 -0
  36. package/dist/api/block/v1alpha1/types.gen.d.ts +5 -0
  37. package/dist/api/edge_services/index.gen.cjs +2 -0
  38. package/dist/api/edge_services/index.gen.d.ts +1 -0
  39. package/dist/api/edge_services/index.gen.js +3 -1
  40. package/dist/api/edge_services/v1beta1/api.gen.cjs +941 -0
  41. package/dist/api/edge_services/v1beta1/api.gen.d.ts +454 -0
  42. package/dist/api/edge_services/v1beta1/api.gen.js +941 -0
  43. package/dist/api/edge_services/v1beta1/content.gen.cjs +8 -0
  44. package/dist/api/edge_services/v1beta1/content.gen.d.ts +5 -0
  45. package/dist/api/edge_services/v1beta1/content.gen.js +8 -0
  46. package/dist/api/{webhosting/v1alpha1 → edge_services/v1beta1}/index.gen.cjs +2 -2
  47. package/dist/api/edge_services/v1beta1/index.gen.d.ts +4 -0
  48. package/dist/api/edge_services/v1beta1/index.gen.js +9 -0
  49. package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +808 -0
  50. package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +53 -0
  51. package/dist/api/edge_services/v1beta1/marshalling.gen.js +808 -0
  52. package/dist/api/edge_services/v1beta1/types.gen.d.ts +1218 -0
  53. package/dist/api/edge_services/v1beta1/validation-rules.gen.cjs +23 -0
  54. package/dist/api/edge_services/v1beta1/validation-rules.gen.d.ts +18 -0
  55. package/dist/api/edge_services/v1beta1/validation-rules.gen.js +23 -0
  56. package/dist/api/instance/v1/api.gen.cjs +18 -0
  57. package/dist/api/instance/v1/api.gen.d.ts +13 -1
  58. package/dist/api/instance/v1/api.gen.js +19 -1
  59. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  60. package/dist/api/instance/v1/marshalling.gen.cjs +12 -0
  61. package/dist/api/instance/v1/marshalling.gen.d.ts +2 -1
  62. package/dist/api/instance/v1/marshalling.gen.js +12 -0
  63. package/dist/api/instance/v1/types.gen.d.ts +12 -0
  64. package/dist/api/lb/v1/marshalling.gen.cjs +2 -0
  65. package/dist/api/lb/v1/marshalling.gen.js +2 -0
  66. package/dist/api/lb/v1/types.gen.d.ts +2 -0
  67. package/dist/api/mongodb/v1alpha1/api.gen.cjs +11 -0
  68. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +2 -1
  69. package/dist/api/mongodb/v1alpha1/api.gen.js +12 -1
  70. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  71. package/dist/api/mongodb/v1alpha1/marshalling.gen.cjs +26 -1
  72. package/dist/api/mongodb/v1alpha1/marshalling.gen.d.ts +2 -1
  73. package/dist/api/mongodb/v1alpha1/marshalling.gen.js +26 -1
  74. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +29 -0
  75. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  76. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  77. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  78. package/dist/api/webhosting/index.gen.cjs +0 -2
  79. package/dist/api/webhosting/index.gen.d.ts +0 -1
  80. package/dist/api/webhosting/index.gen.js +1 -3
  81. package/dist/api/webhosting/v1/content.gen.cjs +0 -6
  82. package/dist/api/webhosting/v1/content.gen.d.ts +1 -3
  83. package/dist/api/webhosting/v1/content.gen.js +0 -6
  84. package/dist/api/webhosting/v1/index.gen.cjs +0 -1
  85. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  86. package/dist/api/webhosting/v1/index.gen.js +1 -2
  87. package/dist/api/webhosting/v1/marshalling.gen.cjs +1 -2
  88. package/dist/api/webhosting/v1/marshalling.gen.js +1 -2
  89. package/dist/api/webhosting/v1/types.gen.d.ts +3 -6
  90. package/dist/scw/constants.cjs +1 -1
  91. package/dist/scw/constants.d.ts +2 -2
  92. package/dist/scw/constants.js +1 -1
  93. package/package.json +2 -2
  94. package/dist/api/webhosting/v1alpha1/api.gen.cjs +0 -339
  95. package/dist/api/webhosting/v1alpha1/api.gen.d.ts +0 -168
  96. package/dist/api/webhosting/v1alpha1/api.gen.js +0 -339
  97. package/dist/api/webhosting/v1alpha1/content.gen.cjs +0 -8
  98. package/dist/api/webhosting/v1alpha1/content.gen.d.ts +0 -3
  99. package/dist/api/webhosting/v1alpha1/content.gen.js +0 -8
  100. package/dist/api/webhosting/v1alpha1/index.gen.d.ts +0 -4
  101. package/dist/api/webhosting/v1alpha1/index.gen.js +0 -9
  102. package/dist/api/webhosting/v1alpha1/marshalling.gen.cjs +0 -300
  103. package/dist/api/webhosting/v1alpha1/marshalling.gen.d.ts +0 -17
  104. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +0 -300
  105. package/dist/api/webhosting/v1alpha1/types.gen.d.ts +0 -480
  106. package/dist/api/webhosting/v1alpha1/validation-rules.gen.cjs +0 -32
  107. package/dist/api/webhosting/v1alpha1/validation-rules.gen.d.ts +0 -27
  108. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +0 -32
@@ -127,6 +127,13 @@ const RestoreSnapshotRequest = {
127
127
  lessThanOrEqual: 3
128
128
  }
129
129
  };
130
+ const SetUserRoleRequest = {
131
+ userName: {
132
+ maxLength: 63,
133
+ minLength: 1,
134
+ pattern: /^[a-zA-Z0-9_\-]*$/
135
+ }
136
+ };
130
137
  const UpdateInstanceRequest = {
131
138
  name: {
132
139
  maxLength: 255,
@@ -162,6 +169,7 @@ exports.ListSnapshotsRequest = ListSnapshotsRequest;
162
169
  exports.ListUsersRequest = ListUsersRequest;
163
170
  exports.ListVersionsRequest = ListVersionsRequest;
164
171
  exports.RestoreSnapshotRequest = RestoreSnapshotRequest;
172
+ exports.SetUserRoleRequest = SetUserRoleRequest;
165
173
  exports.UpdateInstanceRequest = UpdateInstanceRequest;
166
174
  exports.UpdateSnapshotRequest = UpdateSnapshotRequest;
167
175
  exports.UpdateUserRequest = UpdateUserRequest;
@@ -125,6 +125,13 @@ export declare const RestoreSnapshotRequest: {
125
125
  lessThanOrEqual: number;
126
126
  };
127
127
  };
128
+ export declare const SetUserRoleRequest: {
129
+ userName: {
130
+ maxLength: number;
131
+ minLength: number;
132
+ pattern: RegExp;
133
+ };
134
+ };
128
135
  export declare const UpdateInstanceRequest: {
129
136
  name: {
130
137
  maxLength: number;
@@ -125,6 +125,13 @@ const RestoreSnapshotRequest = {
125
125
  lessThanOrEqual: 3
126
126
  }
127
127
  };
128
+ const SetUserRoleRequest = {
129
+ userName: {
130
+ maxLength: 63,
131
+ minLength: 1,
132
+ pattern: /^[a-zA-Z0-9_\-]*$/
133
+ }
134
+ };
128
135
  const UpdateInstanceRequest = {
129
136
  name: {
130
137
  maxLength: 255,
@@ -161,6 +168,7 @@ export {
161
168
  ListUsersRequest,
162
169
  ListVersionsRequest,
163
170
  RestoreSnapshotRequest,
171
+ SetUserRoleRequest,
164
172
  UpdateInstanceRequest,
165
173
  UpdateSnapshotRequest,
166
174
  UpdateUserRequest
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const index_gen = require("./v1/index.gen.cjs");
4
- const index_gen$1 = require("./v1alpha1/index.gen.cjs");
5
4
  exports.v1 = index_gen;
6
- exports.v1alpha1 = index_gen$1;
@@ -3,4 +3,3 @@
3
3
  * EDIT HERE
4
4
  */
5
5
  export * as v1 from './v1/index.gen.js';
6
- export * as v1alpha1 from './v1alpha1/index.gen.js';
@@ -1,6 +1,4 @@
1
1
  import * as index_gen from "./v1/index.gen.js";
2
- import * as index_gen$1 from "./v1alpha1/index.gen.js";
3
2
  export {
4
- index_gen as v1,
5
- index_gen$1 as v1alpha1
3
+ index_gen as v1
6
4
  };
@@ -7,12 +7,6 @@ const HOSTING_TRANSIENT_STATUSES = [
7
7
  "deleting",
8
8
  "migrating"
9
9
  ];
10
- const HOSTING_SUMMARY_TRANSIENT_STATUSES = [
11
- "delivering",
12
- "deleting",
13
- "migrating"
14
- ];
15
10
  exports.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = DOMAIN_AVAILABILITY_TRANSIENT_STATUSES;
16
11
  exports.DOMAIN_TRANSIENT_STATUSES = DOMAIN_TRANSIENT_STATUSES;
17
- exports.HOSTING_SUMMARY_TRANSIENT_STATUSES = HOSTING_SUMMARY_TRANSIENT_STATUSES;
18
12
  exports.HOSTING_TRANSIENT_STATUSES = HOSTING_TRANSIENT_STATUSES;
@@ -1,9 +1,7 @@
1
- import type { DomainAvailabilityStatus, DomainStatus, HostingStatus, HostingSummaryStatus } from './types.gen';
1
+ import type { DomainAvailabilityStatus, DomainStatus, HostingStatus } from './types.gen';
2
2
  /** Lists transient statutes of the enum {@link DomainAvailabilityStatus}. */
3
3
  export declare const DOMAIN_AVAILABILITY_TRANSIENT_STATUSES: DomainAvailabilityStatus[];
4
4
  /** Lists transient statutes of the enum {@link DomainStatus}. */
5
5
  export declare const DOMAIN_TRANSIENT_STATUSES: DomainStatus[];
6
6
  /** Lists transient statutes of the enum {@link HostingStatus}. */
7
7
  export declare const HOSTING_TRANSIENT_STATUSES: HostingStatus[];
8
- /** Lists transient statutes of the enum {@link HostingSummaryStatus}. */
9
- export declare const HOSTING_SUMMARY_TRANSIENT_STATUSES: HostingSummaryStatus[];
@@ -5,14 +5,8 @@ const HOSTING_TRANSIENT_STATUSES = [
5
5
  "deleting",
6
6
  "migrating"
7
7
  ];
8
- const HOSTING_SUMMARY_TRANSIENT_STATUSES = [
9
- "delivering",
10
- "deleting",
11
- "migrating"
12
- ];
13
8
  export {
14
9
  DOMAIN_AVAILABILITY_TRANSIENT_STATUSES,
15
10
  DOMAIN_TRANSIENT_STATUSES,
16
- HOSTING_SUMMARY_TRANSIENT_STATUSES,
17
11
  HOSTING_TRANSIENT_STATUSES
18
12
  };
@@ -13,6 +13,5 @@ exports.OfferAPI = api_gen.OfferAPI;
13
13
  exports.WebsiteAPI = api_gen.WebsiteAPI;
14
14
  exports.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES = content_gen.DOMAIN_AVAILABILITY_TRANSIENT_STATUSES;
15
15
  exports.DOMAIN_TRANSIENT_STATUSES = content_gen.DOMAIN_TRANSIENT_STATUSES;
16
- exports.HOSTING_SUMMARY_TRANSIENT_STATUSES = content_gen.HOSTING_SUMMARY_TRANSIENT_STATUSES;
17
16
  exports.HOSTING_TRANSIENT_STATUSES = content_gen.HOSTING_TRANSIENT_STATUSES;
18
17
  exports.ValidationRules = validationRules_gen;
@@ -1,4 +1,4 @@
1
1
  export { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI, } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
- export type { CheckUserOwnsDomainResponse, ControlPanel, ControlPanelApiListControlPanelsRequest, CreateDatabaseRequestUser, CreateHostingRequestDomainConfiguration, Database, DatabaseApiAssignDatabaseUserRequest, DatabaseApiChangeDatabaseUserPasswordRequest, DatabaseApiCreateDatabaseRequest, DatabaseApiCreateDatabaseUserRequest, DatabaseApiDeleteDatabaseRequest, DatabaseApiDeleteDatabaseUserRequest, DatabaseApiGetDatabaseRequest, DatabaseApiGetDatabaseUserRequest, DatabaseApiListDatabaseUsersRequest, DatabaseApiListDatabasesRequest, DatabaseApiUnassignDatabaseUserRequest, DatabaseUser, DnsApiCheckUserOwnsDomainRequest, DnsApiGetDomainDnsRecordsRequest, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, 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, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, 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, DnsApiGetDomainRequest, DnsApiSearchDomainsRequest, DnsApiSyncDomainDnsRecordsRequest, DnsRecord, DnsRecordStatus, DnsRecordType, DnsRecords, DnsRecordsStatus, Domain, DomainAction, DomainAvailability, DomainAvailabilityAction, DomainAvailabilityStatus, DomainDnsAction, DomainStatus, DomainZoneOwner, FtpAccount, FtpAccountApiChangeFtpAccountPasswordRequest, FtpAccountApiCreateFtpAccountRequest, FtpAccountApiListFtpAccountsRequest, FtpAccountApiRemoveFtpAccountRequest, Hosting, HostingApiCreateHostingRequest, HostingApiCreateSessionRequest, HostingApiDeleteHostingRequest, HostingApiGetHostingRequest, HostingApiGetResourceSummaryRequest, HostingApiListHostingsRequest, HostingApiResetHostingPasswordRequest, HostingApiUpdateHostingRequest, HostingStatus, HostingSummary, 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, SearchDomainsResponse, Session, SyncDomainDnsRecordsRequestRecord, Website, WebsiteApiListWebsitesRequest, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen.js';
@@ -1,5 +1,5 @@
1
1
  import { ControlPanelAPI, DatabaseAPI, DnsAPI, FtpAccountAPI, HostingAPI, MailAccountAPI, OfferAPI, WebsiteAPI } from "./api.gen.js";
2
- import { DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_SUMMARY_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
2
+ import { DOMAIN_AVAILABILITY_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, HOSTING_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import * as validationRules_gen from "./validation-rules.gen.js";
4
4
  export {
5
5
  ControlPanelAPI,
@@ -8,7 +8,6 @@ export {
8
8
  DatabaseAPI,
9
9
  DnsAPI,
10
10
  FtpAccountAPI,
11
- HOSTING_SUMMARY_TRANSIENT_STATUSES,
12
11
  HOSTING_TRANSIENT_STATUSES,
13
12
  HostingAPI,
14
13
  MailAccountAPI,
@@ -291,13 +291,12 @@ const unmarshalHostingSummary = (data) => {
291
291
  dnsStatus: data.dns_status ? data.dns_status : void 0,
292
292
  domain: data.domain,
293
293
  domainStatus: data.domain_status,
294
- hostingStatus: data.hosting_status,
295
294
  id: data.id,
296
295
  offerName: data.offer_name,
297
296
  projectId: data.project_id,
298
297
  protected: data.protected,
299
298
  region: data.region,
300
- status: data.status ? data.status : void 0,
299
+ status: data.status,
301
300
  updatedAt: marshalling.unmarshalDate(data.updated_at)
302
301
  };
303
302
  };
@@ -289,13 +289,12 @@ const unmarshalHostingSummary = (data) => {
289
289
  dnsStatus: data.dns_status ? data.dns_status : void 0,
290
290
  domain: data.domain,
291
291
  domainStatus: data.domain_status,
292
- hostingStatus: data.hosting_status,
293
292
  id: data.id,
294
293
  offerName: data.offer_name,
295
294
  projectId: data.project_id,
296
295
  protected: data.protected,
297
296
  region: data.region,
298
- status: data.status ? data.status : void 0,
297
+ status: data.status,
299
298
  updatedAt: unmarshalDate(data.updated_at)
300
299
  };
301
300
  };
@@ -6,11 +6,10 @@ export type DnsRecordsStatus = 'unknown_status' | 'valid' | 'invalid';
6
6
  export type DomainAction = 'unknown_action' | 'transfer' | 'manage_external' | 'renew';
7
7
  export type DomainAvailabilityAction = 'unknown_action' | 'register' | 'transfer' | 'manage_external';
8
8
  export type DomainAvailabilityStatus = 'unknown_status' | 'available' | 'not_available' | 'owned' | 'validating' | 'error';
9
- export type DomainDnsAction = 'unknown_dns_action' | 'auto_config_all_records' | 'auto_config_web_records' | 'auto_config_mail_records' | 'auto_config_nameservers';
9
+ export type DomainDnsAction = 'unknown_dns_action' | 'auto_config_all_records' | 'auto_config_web_records' | 'auto_config_mail_records' | 'auto_config_nameservers' | 'auto_config_none';
10
10
  export type DomainStatus = 'unknown_status' | 'valid' | 'invalid' | 'validating' | 'error';
11
11
  export type DomainZoneOwner = 'unknown_zone_owner' | 'external' | 'scaleway' | 'online' | 'webhosting';
12
12
  export type HostingStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
13
- export type HostingSummaryStatus = 'unknown_status' | 'delivering' | 'ready' | 'deleting' | 'error' | 'locked' | 'migrating';
14
13
  export type ListDatabaseUsersRequestOrderBy = 'username_asc' | 'username_desc';
15
14
  export type ListDatabasesRequestOrderBy = 'database_name_asc' | 'database_name_desc';
16
15
  export type ListFtpAccountsRequestOrderBy = 'username_asc' | 'username_desc';
@@ -190,8 +189,8 @@ export interface HostingSummary {
190
189
  createdAt?: Date;
191
190
  /** Date on which the Web Hosting plan was last updated. */
192
191
  updatedAt?: Date;
193
- /** @deprecated Status of the Web Hosting plan. */
194
- status?: HostingSummaryStatus;
192
+ /** Status of the Web Hosting plan. */
193
+ status: HostingStatus;
195
194
  /** Main domain associated with the Web Hosting plan. */
196
195
  domain: string;
197
196
  /** Whether the hosting is protected or not. */
@@ -200,8 +199,6 @@ export interface HostingSummary {
200
199
  dnsStatus?: DnsRecordsStatus;
201
200
  /** Name of the active offer for the Web Hosting plan. */
202
201
  offerName: string;
203
- /** Status of the Web Hosting plan. */
204
- hostingStatus: HostingStatus;
205
202
  /** Main domain status of the Web Hosting plan. */
206
203
  domainStatus: DomainStatus;
207
204
  /** Region where the Web Hosting plan is hosted. */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const version = "v2.66.0";
3
+ const version = "v2.67.0";
4
4
  const userAgent = `scaleway-sdk-js/${version}`;
5
5
  exports.userAgent = userAgent;
6
6
  exports.version = version;
@@ -1,2 +1,2 @@
1
- export declare const version = "v2.66.0";
2
- export declare const userAgent = "scaleway-sdk-js/v2.66.0";
1
+ export declare const version = "v2.67.0";
2
+ export declare const userAgent = "scaleway-sdk-js/v2.67.0";
@@ -1,4 +1,4 @@
1
- const version = "v2.66.0";
1
+ const version = "v2.67.0";
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
  export {
4
4
  userAgent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.67.0",
3
+ "version": "2.68.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "bundledDependencies": [
40
40
  "@scaleway/random-name"
41
41
  ],
42
- "gitHead": "dfaaaf081c7ebd7475f2bdb08c91a796179a0038"
42
+ "gitHead": "f772f3f49c9d00453fb7bf7207d49198658963a9"
43
43
  }
@@ -1,339 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const intervalRetrier = require("../../../internal/async/interval-retrier.cjs");
4
- const api = require("../../../scw/api.cjs");
5
- const marshalling = require("../../../helpers/marshalling.cjs");
6
- require("../../../vendor/base64/index.cjs");
7
- const resourcePaginator = require("../../../scw/fetch/resource-paginator.cjs");
8
- const content_gen = require("./content.gen.cjs");
9
- const marshalling_gen = require("./marshalling.gen.cjs");
10
- const jsonContentHeaders = {
11
- "Content-Type": "application/json; charset=utf-8"
12
- };
13
- class API extends api.API {
14
- /** Lists the available regions of the API. */
15
- static LOCALITIES = ["fr-par", "nl-ams"];
16
- /**
17
- * Order a Web Hosting plan. Order a Web Hosting plan, specifying the offer
18
- * type required via the `offer_id` parameter.
19
- *
20
- * @param request - The request {@link CreateHostingRequest}
21
- * @returns A Promise of Hosting
22
- */
23
- createHosting = (request) => this.client.fetch(
24
- {
25
- body: JSON.stringify(
26
- marshalling_gen.marshalCreateHostingRequest(request, this.client.settings)
27
- ),
28
- headers: jsonContentHeaders,
29
- method: "POST",
30
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings`
31
- },
32
- marshalling_gen.unmarshalHosting
33
- );
34
- pageOfListHostings = (request = {}) => this.client.fetch(
35
- {
36
- method: "GET",
37
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings`,
38
- urlParams: marshalling.urlParams(
39
- ["control_panels", request.controlPanels],
40
- ["domain", request.domain],
41
- ["order_by", request.orderBy],
42
- ["organization_id", request.organizationId],
43
- ["page", request.page],
44
- [
45
- "page_size",
46
- request.pageSize ?? this.client.settings.defaultPageSize
47
- ],
48
- ["project_id", request.projectId],
49
- ["statuses", request.statuses],
50
- ["tags", request.tags]
51
- )
52
- },
53
- marshalling_gen.unmarshalListHostingsResponse
54
- );
55
- /**
56
- * List all Web Hosting plans. List all of your existing Web Hosting plans.
57
- * Various filters are available to limit the results, including filtering by
58
- * domain, status, tag and Project ID.
59
- *
60
- * @param request - The request {@link ListHostingsRequest}
61
- * @returns A Promise of ListHostingsResponse
62
- */
63
- listHostings = (request = {}) => resourcePaginator.enrichForPagination("hostings", this.pageOfListHostings, request);
64
- /**
65
- * Get a Web Hosting plan. Get the details of one of your existing Web Hosting
66
- * plans, specified by its `hosting_id`.
67
- *
68
- * @param request - The request {@link GetHostingRequest}
69
- * @returns A Promise of Hosting
70
- */
71
- getHosting = (request) => this.client.fetch(
72
- {
73
- method: "GET",
74
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${marshalling.validatePathParam("hostingId", request.hostingId)}`
75
- },
76
- marshalling_gen.unmarshalHosting
77
- );
78
- /**
79
- * Waits for {@link Hosting} to be in a final state.
80
- *
81
- * @param request - The request {@link GetHostingRequest}
82
- * @param options - The waiting options
83
- * @returns A Promise of Hosting
84
- */
85
- waitForHosting = (request, options) => intervalRetrier.waitForResource(
86
- options?.stop ?? ((res) => Promise.resolve(!content_gen.HOSTING_TRANSIENT_STATUSES.includes(res.status))),
87
- this.getHosting,
88
- request,
89
- options
90
- );
91
- /**
92
- * Update a Web Hosting plan. Update the details of one of your existing Web
93
- * Hosting plans, specified by its `hosting_id`. You can update parameters
94
- * including the contact email address, tags, options and offer.
95
- *
96
- * @param request - The request {@link UpdateHostingRequest}
97
- * @returns A Promise of Hosting
98
- */
99
- updateHosting = (request) => this.client.fetch(
100
- {
101
- body: JSON.stringify(
102
- marshalling_gen.marshalUpdateHostingRequest(request, this.client.settings)
103
- ),
104
- headers: jsonContentHeaders,
105
- method: "PATCH",
106
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${marshalling.validatePathParam("hostingId", request.hostingId)}`
107
- },
108
- marshalling_gen.unmarshalHosting
109
- );
110
- /**
111
- * Delete a Web Hosting plan. Delete a Web Hosting plan, specified by its
112
- * `hosting_id`. Note that deletion is not immediate: it will take place at
113
- * the end of the calendar month, after which time your Web Hosting plan and
114
- * all its data (files and emails) will be irreversibly lost.
115
- *
116
- * @param request - The request {@link DeleteHostingRequest}
117
- * @returns A Promise of Hosting
118
- */
119
- deleteHosting = (request) => this.client.fetch(
120
- {
121
- method: "DELETE",
122
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${marshalling.validatePathParam("hostingId", request.hostingId)}`
123
- },
124
- marshalling_gen.unmarshalHosting
125
- );
126
- /**
127
- * Restore a Web Hosting plan. When you [delete a Web Hosting
128
- * plan](#path-hostings-delete-a-hosting), definitive deletion does not take
129
- * place until the end of the calendar month. In the time between initiating
130
- * the deletion, and definitive deletion at the end of the month, you can
131
- * choose to **restore** the Web Hosting plan, using this endpoint and
132
- * specifying its `hosting_id`.
133
- *
134
- * @param request - The request {@link RestoreHostingRequest}
135
- * @returns A Promise of Hosting
136
- */
137
- restoreHosting = (request) => this.client.fetch(
138
- {
139
- body: "{}",
140
- headers: jsonContentHeaders,
141
- method: "POST",
142
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${marshalling.validatePathParam("hostingId", request.hostingId)}/restore`
143
- },
144
- marshalling_gen.unmarshalHosting
145
- );
146
- /**
147
- * Get DNS records. Get the set of DNS records of a specified domain
148
- * associated with a Web Hosting plan.
149
- *
150
- * @param request - The request {@link GetDomainDnsRecordsRequest}
151
- * @returns A Promise of DnsRecords
152
- */
153
- getDomainDnsRecords = (request) => this.client.fetch(
154
- {
155
- method: "GET",
156
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/dns-records`
157
- },
158
- marshalling_gen.unmarshalDnsRecords
159
- );
160
- /**
161
- * "Check whether you own this domain or not.".
162
- *
163
- * @param request - The request {@link CheckUserOwnsDomainRequest}
164
- * @returns A Promise of CheckUserOwnsDomainResponse
165
- */
166
- checkUserOwnsDomain = (request) => this.client.fetch(
167
- {
168
- body: JSON.stringify(
169
- marshalling_gen.marshalCheckUserOwnsDomainRequest(request, this.client.settings)
170
- ),
171
- headers: jsonContentHeaders,
172
- method: "POST",
173
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/domains/${marshalling.validatePathParam("domain", request.domain)}/check-ownership`
174
- },
175
- marshalling_gen.unmarshalCheckUserOwnsDomainResponse
176
- );
177
- /**
178
- * List all offers. List the different Web Hosting offers, and their options,
179
- * available to order from Scaleway.
180
- *
181
- * @param request - The request {@link ListOffersRequest}
182
- * @returns A Promise of ListOffersResponse
183
- */
184
- listOffers = (request) => this.client.fetch(
185
- {
186
- method: "GET",
187
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/offers`,
188
- urlParams: marshalling.urlParams(
189
- ["control_panels", request.controlPanels],
190
- ["hosting_id", request.hostingId],
191
- ["only_options", request.onlyOptions],
192
- ["order_by", request.orderBy],
193
- ["without_options", request.withoutOptions]
194
- )
195
- },
196
- marshalling_gen.unmarshalListOffersResponse
197
- );
198
- pageOfListControlPanels = (request = {}) => this.client.fetch(
199
- {
200
- method: "GET",
201
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/control-panels`,
202
- urlParams: marshalling.urlParams(
203
- ["page", request.page],
204
- [
205
- "page_size",
206
- request.pageSize ?? this.client.settings.defaultPageSize
207
- ]
208
- )
209
- },
210
- marshalling_gen.unmarshalListControlPanelsResponse
211
- );
212
- /**
213
- * "List the control panels type: cpanel or plesk.".
214
- *
215
- * @param request - The request {@link ListControlPanelsRequest}
216
- * @returns A Promise of ListControlPanelsResponse
217
- */
218
- listControlPanels = (request = {}) => resourcePaginator.enrichForPagination("controlPanels", this.pageOfListControlPanels, request);
219
- /**
220
- * Create a user session.
221
- *
222
- * @param request - The request {@link CreateSessionRequest}
223
- * @returns A Promise of Session
224
- */
225
- createSession = (request) => this.client.fetch(
226
- {
227
- body: "{}",
228
- headers: jsonContentHeaders,
229
- method: "POST",
230
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${marshalling.validatePathParam("hostingId", request.hostingId)}/sessions`
231
- },
232
- marshalling_gen.unmarshalSession
233
- );
234
- resetHostingPassword = (request) => this.client.fetch(
235
- {
236
- body: "{}",
237
- headers: jsonContentHeaders,
238
- method: "POST",
239
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/hostings/${marshalling.validatePathParam("hostingId", request.hostingId)}/reset-password`
240
- },
241
- marshalling_gen.unmarshalResetHostingPasswordResponse
242
- );
243
- }
244
- class ClassicMailAPI extends api.API {
245
- /** Lists the available regions of the API. */
246
- static LOCALITIES = [
247
- "fr-par",
248
- "nl-ams",
249
- "pl-waw"
250
- ];
251
- /**
252
- * Create a new mailbox within your hosting plan.. Create a new mailbox within
253
- * your hosting plan.
254
- *
255
- * @param request - The request {@link ClassicMailApiCreateMailboxRequest}
256
- * @returns A Promise of Mailbox
257
- */
258
- createMailbox = (request) => this.client.fetch(
259
- {
260
- body: JSON.stringify(
261
- marshalling_gen.marshalClassicMailApiCreateMailboxRequest(
262
- request,
263
- this.client.settings
264
- )
265
- ),
266
- headers: jsonContentHeaders,
267
- method: "POST",
268
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes`
269
- },
270
- marshalling_gen.unmarshalMailbox
271
- );
272
- /**
273
- * Get a mailbox by id within your hosting plan.. Get a mailbox by id within
274
- * your hosting plan.
275
- *
276
- * @param request - The request {@link ClassicMailApiGetMailboxRequest}
277
- * @returns A Promise of Mailbox
278
- */
279
- getMailbox = (request) => this.client.fetch(
280
- {
281
- method: "GET",
282
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes/${marshalling.validatePathParam("mailboxId", request.mailboxId)}`
283
- },
284
- marshalling_gen.unmarshalMailbox
285
- );
286
- pageOfListMailboxes = (request) => this.client.fetch(
287
- {
288
- method: "GET",
289
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes`,
290
- urlParams: marshalling.urlParams(
291
- ["domain", request.domain],
292
- ["page", request.page],
293
- [
294
- "page_size",
295
- request.pageSize ?? this.client.settings.defaultPageSize
296
- ]
297
- )
298
- },
299
- marshalling_gen.unmarshalListMailboxesResponse
300
- );
301
- /**
302
- * List all mailboxes within your hosting plan.. List all mailboxes within
303
- * your hosting plan.
304
- *
305
- * @param request - The request {@link ClassicMailApiListMailboxesRequest}
306
- * @returns A Promise of ListMailboxesResponse
307
- */
308
- listMailboxes = (request) => resourcePaginator.enrichForPagination("mailboxes", this.pageOfListMailboxes, request);
309
- deleteMailbox = (request) => this.client.fetch(
310
- {
311
- method: "DELETE",
312
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes/${marshalling.validatePathParam("mailboxId", request.mailboxId)}`
313
- },
314
- marshalling_gen.unmarshalMailbox
315
- );
316
- /**
317
- * Update the mailbox within your hosting plan.. Update the mailbox within
318
- * your hosting plan.
319
- *
320
- * @param request - The request {@link ClassicMailApiUpdateMailboxRequest}
321
- * @returns A Promise of Mailbox
322
- */
323
- updateMailbox = (request) => this.client.fetch(
324
- {
325
- body: JSON.stringify(
326
- marshalling_gen.marshalClassicMailApiUpdateMailboxRequest(
327
- request,
328
- this.client.settings
329
- )
330
- ),
331
- headers: jsonContentHeaders,
332
- method: "PATCH",
333
- path: `/webhosting/v1alpha1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/classic-hostings/${marshalling.validatePathParam("onlineId", request.onlineId)}/mailboxes/${marshalling.validatePathParam("mailboxId", request.mailboxId)}`
334
- },
335
- marshalling_gen.unmarshalMailbox
336
- );
337
- }
338
- exports.API = API;
339
- exports.ClassicMailAPI = ClassicMailAPI;