@scaleway/sdk 2.19.0 → 2.20.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.
@@ -72,7 +72,7 @@ class API extends API$1 {
72
72
  pageOfListSecrets = (request = {}) => this.client.fetch({
73
73
  method: 'GET',
74
74
  path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets`,
75
- urlParams: urlParams(['ephemeral', request.ephemeral], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags])
75
+ urlParams: urlParams(['ephemeral', request.ephemeral], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags], ['type', request.type])
76
76
  }, unmarshalListSecretsResponse);
77
77
 
78
78
  /**
@@ -44,6 +44,7 @@ const unmarshalHosting = data => {
44
44
  platformHostname: data.platform_hostname,
45
45
  platformNumber: data.platform_number,
46
46
  projectId: data.project_id,
47
+ protected: data.protected,
47
48
  region: data.region,
48
49
  status: data.status,
49
50
  tags: data.tags,
@@ -152,8 +153,15 @@ const unmarshalListOffersResponse = data => {
152
153
  offers: unmarshalArrayOfObject(data.offers, unmarshalOffer)
153
154
  };
154
155
  };
156
+ const marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
157
+ update_all_records: request.updateAllRecords,
158
+ update_mail_record: request.updateMailRecord,
159
+ update_nameservers: request.updateNameservers,
160
+ update_web_record: request.updateWebRecord
161
+ });
155
162
  const marshalCreateHostingRequest = (request, defaults) => ({
156
163
  domain: request.domain,
164
+ domain_configuration: request.domainConfiguration !== undefined ? marshalCreateHostingRequestDomainConfiguration(request.domainConfiguration) : undefined,
157
165
  email: request.email,
158
166
  language: request.language,
159
167
  offer_id: request.offerId,
@@ -165,6 +173,7 @@ const marshalUpdateHostingRequest = (request, defaults) => ({
165
173
  email: request.email,
166
174
  offer_id: request.offerId,
167
175
  option_ids: request.optionIds,
176
+ protected: request.protected,
168
177
  tags: request.tags
169
178
  });
170
179
 
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v2.18.1';
500
+ const version = 'v2.19.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () =>
@@ -24945,7 +24945,7 @@ let API$7 = class API extends API$y {
24945
24945
  pageOfListSecrets = (request = {}) => this.client.fetch({
24946
24946
  method: 'GET',
24947
24947
  path: `/secret-manager/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/secrets`,
24948
- urlParams: urlParams(['ephemeral', request.ephemeral], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags])
24948
+ urlParams: urlParams(['ephemeral', request.ephemeral], ['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['path', request.path], ['project_id', request.projectId], ['tags', request.tags], ['type', request.type])
24949
24949
  }, unmarshalListSecretsResponse);
24950
24950
 
24951
24951
  /**
@@ -27584,6 +27584,7 @@ const unmarshalHosting = data => {
27584
27584
  platformHostname: data.platform_hostname,
27585
27585
  platformNumber: data.platform_number,
27586
27586
  projectId: data.project_id,
27587
+ protected: data.protected,
27587
27588
  region: data.region,
27588
27589
  status: data.status,
27589
27590
  tags: data.tags,
@@ -27692,8 +27693,15 @@ const unmarshalListOffersResponse = data => {
27692
27693
  offers: unmarshalArrayOfObject(data.offers, unmarshalOffer)
27693
27694
  };
27694
27695
  };
27696
+ const marshalCreateHostingRequestDomainConfiguration = (request, defaults) => ({
27697
+ update_all_records: request.updateAllRecords,
27698
+ update_mail_record: request.updateMailRecord,
27699
+ update_nameservers: request.updateNameservers,
27700
+ update_web_record: request.updateWebRecord
27701
+ });
27695
27702
  const marshalCreateHostingRequest = (request, defaults) => ({
27696
27703
  domain: request.domain,
27704
+ domain_configuration: request.domainConfiguration !== undefined ? marshalCreateHostingRequestDomainConfiguration(request.domainConfiguration) : undefined,
27697
27705
  email: request.email,
27698
27706
  language: request.language,
27699
27707
  offer_id: request.offerId,
@@ -27705,6 +27713,7 @@ const marshalUpdateHostingRequest = (request, defaults) => ({
27705
27713
  email: request.email,
27706
27714
  offer_id: request.offerId,
27707
27715
  option_ids: request.optionIds,
27716
+ protected: request.protected,
27708
27717
  tags: request.tags
27709
27718
  });
27710
27719
 
package/dist/index.d.ts CHANGED
@@ -29113,7 +29113,7 @@ type EphemeralPolicyAction = 'unknown_action' | 'delete' | 'disable';
29113
29113
  type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
29114
29114
  type Product = 'unknown_product' | 'edge_services';
29115
29115
  type SecretStatus = 'unknown_status' | 'ready' | 'locked';
29116
- type SecretType = 'unknown_type' | 'opaque' | 'certificate' | 'key_value';
29116
+ type SecretType = 'unknown_type' | 'opaque' | 'certificate' | 'key_value' | 'basic_credentials' | 'database_credentials' | 'ssh_key';
29117
29117
  type SecretVersionStatus = 'unknown_status' | 'enabled' | 'disabled' | 'deleted';
29118
29118
  interface EphemeralPolicy {
29119
29119
  /**
@@ -29478,6 +29478,8 @@ type ListSecretsRequest = {
29478
29478
  path?: string;
29479
29479
  /** Filter by ephemeral / not ephemeral (optional). */
29480
29480
  ephemeral?: boolean;
29481
+ /** Filter by secret type (optional). */
29482
+ type?: SecretType;
29481
29483
  };
29482
29484
  interface ListSecretsResponse {
29483
29485
  /** Single page of secrets matching the requested criteria. */
@@ -33002,6 +33004,12 @@ interface OfferProduct {
33002
33004
  /** Limit number of add-on domains. */
33003
33005
  maxAddonDomains: number;
33004
33006
  }
33007
+ interface CreateHostingRequestDomainConfiguration {
33008
+ updateNameservers: boolean;
33009
+ updateWebRecord: boolean;
33010
+ updateMailRecord: boolean;
33011
+ updateAllRecords: boolean;
33012
+ }
33005
33013
  interface DnsRecord {
33006
33014
  /** Record name. */
33007
33015
  name: string;
@@ -33075,6 +33083,8 @@ interface Hosting {
33075
33083
  ipv4: string;
33076
33084
  /** IPv6 address of the hosting's host server. */
33077
33085
  ipv6: string;
33086
+ /** Whether the hosting is protected or not. */
33087
+ protected: boolean;
33078
33088
  /** Region where the Web Hosting plan is hosted. */
33079
33089
  region: Region;
33080
33090
  }
@@ -33122,6 +33132,11 @@ type CreateHostingRequest = {
33122
33132
  optionIds?: string[];
33123
33133
  /** Default language for the control panel interface. */
33124
33134
  language?: LanguageCode;
33135
+ /**
33136
+ * Indicates whether to update hosting domain name servers and DNS records for
33137
+ * domains managed by Scaleway Elements.
33138
+ */
33139
+ domainConfiguration?: CreateHostingRequestDomainConfiguration;
33125
33140
  };
33126
33141
  type DeleteHostingRequest = {
33127
33142
  /**
@@ -33291,6 +33306,8 @@ type UpdateHostingRequest = {
33291
33306
  optionIds?: string[];
33292
33307
  /** ID of the new offer for the Web Hosting plan. */
33293
33308
  offerId?: string;
33309
+ /** Whether the hosting is protected or not. */
33310
+ protected?: boolean;
33294
33311
  };
33295
33312
 
33296
33313
  /** Web Hosting API. */
@@ -33427,6 +33444,7 @@ type index_gen_API = API;
33427
33444
  declare const index_gen_API: typeof API;
33428
33445
  type index_gen_ControlPanel = ControlPanel;
33429
33446
  type index_gen_CreateHostingRequest = CreateHostingRequest;
33447
+ type index_gen_CreateHostingRequestDomainConfiguration = CreateHostingRequestDomainConfiguration;
33430
33448
  type index_gen_DeleteHostingRequest = DeleteHostingRequest;
33431
33449
  type index_gen_DnsRecord = DnsRecord;
33432
33450
  type index_gen_DnsRecordStatus = DnsRecordStatus;
@@ -33455,7 +33473,7 @@ type index_gen_OfferQuotaWarning = OfferQuotaWarning;
33455
33473
  type index_gen_RestoreHostingRequest = RestoreHostingRequest;
33456
33474
  type index_gen_UpdateHostingRequest = UpdateHostingRequest;
33457
33475
  declare namespace index_gen {
33458
- export { index_gen_API as API, type index_gen_ControlPanel as ControlPanel, type index_gen_CreateHostingRequest as CreateHostingRequest, type index_gen_DeleteHostingRequest as DeleteHostingRequest, type index_gen_DnsRecord as DnsRecord, type index_gen_DnsRecordStatus as DnsRecordStatus, type index_gen_DnsRecordType as DnsRecordType, type index_gen_DnsRecords as DnsRecords, type index_gen_DnsRecordsStatus as DnsRecordsStatus, type index_gen_GetDomainDnsRecordsRequest as GetDomainDnsRecordsRequest, type index_gen_GetHostingRequest as GetHostingRequest, index_gen_HOSTING_TRANSIENT_STATUSES as HOSTING_TRANSIENT_STATUSES, type index_gen_Hosting as Hosting, type index_gen_HostingCpanelUrls as HostingCpanelUrls, type index_gen_HostingDnsStatus as HostingDnsStatus, type index_gen_HostingOption as HostingOption, type index_gen_HostingStatus as HostingStatus, type ListControlPanelsRequest$1 as ListControlPanelsRequest, type index_gen_ListControlPanelsResponse as ListControlPanelsResponse, type ListHostingsRequest$1 as ListHostingsRequest, type index_gen_ListHostingsRequestOrderBy as ListHostingsRequestOrderBy, type index_gen_ListHostingsResponse as ListHostingsResponse, type index_gen_ListOffersRequest as ListOffersRequest, type index_gen_ListOffersRequestOrderBy as ListOffersRequestOrderBy, type index_gen_ListOffersResponse as ListOffersResponse, type index_gen_Nameserver as Nameserver, type index_gen_NameserverStatus as NameserverStatus, type index_gen_Offer as Offer, type index_gen_OfferProduct as OfferProduct, type index_gen_OfferQuotaWarning as OfferQuotaWarning, type index_gen_RestoreHostingRequest as RestoreHostingRequest, type index_gen_UpdateHostingRequest as UpdateHostingRequest, validationRules_gen as ValidationRules };
33476
+ export { index_gen_API as API, type index_gen_ControlPanel as ControlPanel, type index_gen_CreateHostingRequest as CreateHostingRequest, type index_gen_CreateHostingRequestDomainConfiguration as CreateHostingRequestDomainConfiguration, type index_gen_DeleteHostingRequest as DeleteHostingRequest, type index_gen_DnsRecord as DnsRecord, type index_gen_DnsRecordStatus as DnsRecordStatus, type index_gen_DnsRecordType as DnsRecordType, type index_gen_DnsRecords as DnsRecords, type index_gen_DnsRecordsStatus as DnsRecordsStatus, type index_gen_GetDomainDnsRecordsRequest as GetDomainDnsRecordsRequest, type index_gen_GetHostingRequest as GetHostingRequest, index_gen_HOSTING_TRANSIENT_STATUSES as HOSTING_TRANSIENT_STATUSES, type index_gen_Hosting as Hosting, type index_gen_HostingCpanelUrls as HostingCpanelUrls, type index_gen_HostingDnsStatus as HostingDnsStatus, type index_gen_HostingOption as HostingOption, type index_gen_HostingStatus as HostingStatus, type ListControlPanelsRequest$1 as ListControlPanelsRequest, type index_gen_ListControlPanelsResponse as ListControlPanelsResponse, type ListHostingsRequest$1 as ListHostingsRequest, type index_gen_ListHostingsRequestOrderBy as ListHostingsRequestOrderBy, type index_gen_ListHostingsResponse as ListHostingsResponse, type index_gen_ListOffersRequest as ListOffersRequest, type index_gen_ListOffersRequestOrderBy as ListOffersRequestOrderBy, type index_gen_ListOffersResponse as ListOffersResponse, type index_gen_Nameserver as Nameserver, type index_gen_NameserverStatus as NameserverStatus, type index_gen_Offer as Offer, type index_gen_OfferProduct as OfferProduct, type index_gen_OfferQuotaWarning as OfferQuotaWarning, type index_gen_RestoreHostingRequest as RestoreHostingRequest, type index_gen_UpdateHostingRequest as UpdateHostingRequest, validationRules_gen as ValidationRules };
33459
33477
  }
33460
33478
 
33461
33479
  declare namespace index {
@@ -1,4 +1,4 @@
1
- const version = 'v2.18.1';
1
+ const version = 'v2.19.0';
2
2
  const userAgent = `scaleway-sdk-js/${version}`;
3
3
 
4
4
  export { userAgent, version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk",
3
- "version": "2.19.0",
3
+ "version": "2.20.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Scaleway SDK.",
6
6
  "keywords": [
@@ -35,5 +35,5 @@
35
35
  "bundledDependencies": [
36
36
  "@scaleway/random-name"
37
37
  ],
38
- "gitHead": "c80a70fdc1c9b7ef2d23033026fd690aa10209ae"
38
+ "gitHead": "ece0ef4aab55789486f1060e915bf1489f248f0e"
39
39
  }