@scaleway/sdk 1.21.0 → 1.23.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.
@@ -521,7 +521,7 @@ class RegistrarAPI extends API$1 {
521
521
  return _this4.client.fetch({
522
522
  method: 'GET',
523
523
  path: `/domain/v2beta1/contacts`,
524
- urlParams: urlParams(['domain', request.domain], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId])
524
+ urlParams: urlParams(['domain', request.domain], ['email_status', request.emailStatus ?? 'email_status_unknown'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this4.client.settings.defaultPageSize], ['project_id', request.projectId], ['role', request.role ?? 'unknown_role'])
525
525
  }, unmarshalListContactsResponse);
526
526
  };
527
527
  })();
@@ -1,7 +1,7 @@
1
1
  import { API as API$1 } from '../../../scw/api.js';
2
2
  import { urlParams, validatePathParam, resolveOneOf } from '../../../helpers/marshalling.js';
3
3
  import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
4
- import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, unmarshalJWT } from './marshalling.gen.js';
4
+ import { unmarshalListSSHKeysResponse, marshalCreateSSHKeyRequest, unmarshalSSHKey, marshalUpdateSSHKeyRequest, unmarshalListUsersResponse, unmarshalUser, marshalCreateUserRequest, unmarshalListApplicationsResponse, marshalCreateApplicationRequest, unmarshalApplication, marshalUpdateApplicationRequest, unmarshalListGroupsResponse, marshalCreateGroupRequest, unmarshalGroup, marshalUpdateGroupRequest, marshalSetGroupMembersRequest, marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalRemoveGroupMemberRequest, unmarshalListPoliciesResponse, marshalCreatePolicyRequest, unmarshalPolicy, marshalUpdatePolicyRequest, marshalSetRulesRequest, unmarshalSetRulesResponse, unmarshalListRulesResponse, unmarshalListPermissionSetsResponse, unmarshalListAPIKeysResponse, marshalCreateAPIKeyRequest, unmarshalAPIKey, marshalUpdateAPIKeyRequest, unmarshalListQuotaResponse, unmarshalQuotum, unmarshalListJWTsResponse, unmarshalJWT } from './marshalling.gen.js';
5
5
 
6
6
  // This file was automatically generated. DO NOT EDIT.
7
7
  // If you have any remark or suggestion do not hesitate to open an issue.
@@ -156,6 +156,20 @@ class API extends API$1 {
156
156
  method: 'DELETE',
157
157
  path: `/iam/v1alpha1/users/${validatePathParam('userId', request.userId)}`
158
158
  });
159
+
160
+ /**
161
+ * Create a new user. Create a new user. You must define the `organization_id`
162
+ * and the `email` in your request.
163
+ *
164
+ * @param request - The request {@link CreateUserRequest}
165
+ * @returns A Promise of User
166
+ */
167
+ createUser = request => this.client.fetch({
168
+ body: JSON.stringify(marshalCreateUserRequest(request, this.client.settings)),
169
+ headers: jsonContentHeaders,
170
+ method: 'POST',
171
+ path: `/iam/v1alpha1/users`
172
+ }, unmarshalUser);
159
173
  pageOfListApplications = (() => {
160
174
  var _this5 = this;
161
175
  return function (request) {
@@ -325,6 +325,10 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
325
325
  project_id: request.projectId ?? defaults.defaultProjectId,
326
326
  public_key: request.publicKey
327
327
  });
328
+ const marshalCreateUserRequest = (request, defaults) => ({
329
+ email: request.email,
330
+ organization_id: request.organizationId ?? defaults.defaultOrganizationId
331
+ });
328
332
  const marshalRemoveGroupMemberRequest = (request, defaults) => ({
329
333
  ...resolveOneOf([{
330
334
  param: 'user_id',
@@ -376,4 +380,4 @@ const marshalUpdateSSHKeyRequest = (request, defaults) => ({
376
380
  name: request.name
377
381
  });
378
382
 
379
- export { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalRemoveGroupMemberRequest, marshalSetGroupMembersRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, unmarshalAPIKey, unmarshalApplication, unmarshalGroup, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListUsersResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSetRulesResponse, unmarshalUser };
383
+ export { marshalAddGroupMemberRequest, marshalAddGroupMembersRequest, marshalCreateAPIKeyRequest, marshalCreateApplicationRequest, marshalCreateGroupRequest, marshalCreatePolicyRequest, marshalCreateSSHKeyRequest, marshalCreateUserRequest, marshalRemoveGroupMemberRequest, marshalSetGroupMembersRequest, marshalSetRulesRequest, marshalUpdateAPIKeyRequest, marshalUpdateApplicationRequest, marshalUpdateGroupRequest, marshalUpdatePolicyRequest, marshalUpdateSSHKeyRequest, unmarshalAPIKey, unmarshalApplication, unmarshalGroup, unmarshalJWT, unmarshalListAPIKeysResponse, unmarshalListApplicationsResponse, unmarshalListGroupsResponse, unmarshalListJWTsResponse, unmarshalListPermissionSetsResponse, unmarshalListPoliciesResponse, unmarshalListQuotaResponse, unmarshalListRulesResponse, unmarshalListSSHKeysResponse, unmarshalListUsersResponse, unmarshalPolicy, unmarshalQuotum, unmarshalSSHKey, unmarshalSetRulesResponse, unmarshalUser };
@@ -12,7 +12,7 @@ const jsonContentHeaders = {
12
12
  /** Instance API. */
13
13
  class API extends API$1 {
14
14
  /** Lists the available zones of the API. */
15
- static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
15
+ static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
16
16
 
17
17
  /**
18
18
  * Get availability. Get availability for all Instance types.
@@ -83,7 +83,7 @@ class API extends API$1 {
83
83
  return _this4.client.fetch({
84
84
  method: 'GET',
85
85
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? _this4.client.settings.defaultZone)}/servers`,
86
- urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
86
+ urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? _this4.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
87
87
  }, unmarshalListServersResponse);
88
88
  };
89
89
  })();
@@ -269,7 +269,9 @@ const unmarshalPrivateNetworkDHCPConfig = data => {
269
269
  if (!isJSONObject(data)) {
270
270
  throw new TypeError(`Unmarshalling the type 'PrivateNetworkDHCPConfig' failed as data isn't a dictionary.`);
271
271
  }
272
- return {};
272
+ return {
273
+ ipId: data.ip_id
274
+ };
273
275
  };
274
276
  const unmarshalPrivateNetworkIpamConfig = data => {
275
277
  if (!isJSONObject(data)) {
@@ -561,7 +563,9 @@ const marshalHealthCheck = (request, defaults) => ({
561
563
  value: request.httpsConfig ? marshalHealthCheckHttpsConfig(request.httpsConfig) : undefined
562
564
  }])
563
565
  });
564
- const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({});
566
+ const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
567
+ ip_id: request.ipId
568
+ });
565
569
  const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
566
570
  const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
567
571
  ip_address: request.ipAddress
package/dist/index.cjs CHANGED
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
497
497
  }
498
498
  };
499
499
 
500
- const version = 'v1.20.0';
500
+ const version = 'v1.22.0';
501
501
  const userAgent = `scaleway-sdk-js/${version}`;
502
502
 
503
503
  const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
@@ -6786,7 +6786,7 @@ class RegistrarAPI extends API$s {
6786
6786
  pageOfListContacts = (request = {}) => this.client.fetch({
6787
6787
  method: 'GET',
6788
6788
  path: `/domain/v2beta1/contacts`,
6789
- urlParams: urlParams(['domain', request.domain], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId])
6789
+ urlParams: urlParams(['domain', request.domain], ['email_status', request.emailStatus ?? 'email_status_unknown'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ['role', request.role ?? 'unknown_role'])
6790
6790
  }, unmarshalListContactsResponse);
6791
6791
 
6792
6792
  /**
@@ -8611,6 +8611,10 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
8611
8611
  project_id: request.projectId ?? defaults.defaultProjectId,
8612
8612
  public_key: request.publicKey
8613
8613
  });
8614
+ const marshalCreateUserRequest$1 = (request, defaults) => ({
8615
+ email: request.email,
8616
+ organization_id: request.organizationId ?? defaults.defaultOrganizationId
8617
+ });
8614
8618
  const marshalRemoveGroupMemberRequest = (request, defaults) => ({
8615
8619
  ...resolveOneOf([{
8616
8620
  param: 'user_id',
@@ -8783,6 +8787,20 @@ let API$i = class API extends API$s {
8783
8787
  method: 'DELETE',
8784
8788
  path: `/iam/v1alpha1/users/${validatePathParam('userId', request.userId)}`
8785
8789
  });
8790
+
8791
+ /**
8792
+ * Create a new user. Create a new user. You must define the `organization_id`
8793
+ * and the `email` in your request.
8794
+ *
8795
+ * @param request - The request {@link CreateUserRequest}
8796
+ * @returns A Promise of User
8797
+ */
8798
+ createUser = request => this.client.fetch({
8799
+ body: JSON.stringify(marshalCreateUserRequest$1(request, this.client.settings)),
8800
+ headers: jsonContentHeaders$g,
8801
+ method: 'POST',
8802
+ path: `/iam/v1alpha1/users`
8803
+ }, unmarshalUser$1);
8786
8804
  pageOfListApplications = (request = {}) => this.client.fetch({
8787
8805
  method: 'GET',
8788
8806
  path: `/iam/v1alpha1/applications`,
@@ -10890,7 +10908,7 @@ const jsonContentHeaders$f = {
10890
10908
  /** Instance API. */
10891
10909
  let API$h = class API extends API$s {
10892
10910
  /** Lists the available zones of the API. */
10893
- static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
10911
+ static LOCALITIES = ['fr-par-1', 'fr-par-2', 'fr-par-3', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2', 'pl-waw-3'];
10894
10912
 
10895
10913
  /**
10896
10914
  * Get availability. Get availability for all Instance types.
@@ -10931,7 +10949,7 @@ let API$h = class API extends API$s {
10931
10949
  pageOfListServers = (request = {}) => this.client.fetch({
10932
10950
  method: 'GET',
10933
10951
  path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/servers`,
10934
- urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
10952
+ urlParams: urlParams(['commercial_type', request.commercialType], ['name', request.name], ['order', request.order], ['organization', request.organization], ['page', request.page], ['per_page', request.perPage ?? this.client.settings.defaultPageSize], ['private_ip', request.privateIp], ['private_network', request.privateNetwork], ['private_networks', request.privateNetworks && request.privateNetworks.length > 0 ? request.privateNetworks.join(',') : undefined], ['project', request.project], ['state', request.state], ['tags', request.tags && request.tags.length > 0 ? request.tags.join(',') : undefined], ['without_ip', request.withoutIp])
10935
10953
  }, unmarshalListServersResponse);
10936
10954
 
10937
10955
  /**
@@ -14623,7 +14641,9 @@ const unmarshalPrivateNetworkDHCPConfig = data => {
14623
14641
  if (!isJSONObject(data)) {
14624
14642
  throw new TypeError(`Unmarshalling the type 'PrivateNetworkDHCPConfig' failed as data isn't a dictionary.`);
14625
14643
  }
14626
- return {};
14644
+ return {
14645
+ ipId: data.ip_id
14646
+ };
14627
14647
  };
14628
14648
  const unmarshalPrivateNetworkIpamConfig = data => {
14629
14649
  if (!isJSONObject(data)) {
@@ -14915,7 +14935,9 @@ const marshalHealthCheck = (request, defaults) => ({
14915
14935
  value: request.httpsConfig ? marshalHealthCheckHttpsConfig(request.httpsConfig) : undefined
14916
14936
  }])
14917
14937
  });
14918
- const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({});
14938
+ const marshalPrivateNetworkDHCPConfig = (request, defaults) => ({
14939
+ ip_id: request.ipId
14940
+ });
14919
14941
  const marshalPrivateNetworkIpamConfig = (request, defaults) => ({});
14920
14942
  const marshalPrivateNetworkStaticConfig = (request, defaults) => ({
14921
14943
  ip_address: request.ipAddress
package/dist/index.d.ts CHANGED
@@ -129,7 +129,7 @@ interface ResponseInterceptor {
129
129
  * @public
130
130
  */
131
131
  interface ResponseErrorInterceptor {
132
- ({ request, error }: {
132
+ ({ request, error, }: {
133
133
  request: Request;
134
134
  error: unknown;
135
135
  }): unknown | Promise<unknown>;
@@ -4927,6 +4927,7 @@ type DomainRegistrationStatusTransferStatus = 'status_unknown' | 'pending' | 'wa
4927
4927
  type DomainStatus$2 = 'status_unknown' | 'active' | 'creating' | 'create_error' | 'renewing' | 'renew_error' | 'xfering' | 'xfer_error' | 'expired' | 'expiring' | 'updating' | 'checking' | 'locked' | 'deleting';
4928
4928
  type HostStatus = 'unknown_status' | 'active' | 'updating' | 'deleting';
4929
4929
  type LanguageCode = 'unknown_language_code' | 'en_US' | 'fr_FR' | 'de_DE';
4930
+ type ListContactsRequestRole = 'unknown_role' | 'owner' | 'administrative' | 'technical';
4930
4931
  type ListDNSZoneRecordsRequestOrderBy = 'name_asc' | 'name_desc';
4931
4932
  type ListDNSZonesRequestOrderBy = 'domain_asc' | 'domain_desc' | 'subdomain_asc' | 'subdomain_desc';
4932
4933
  type ListDomainsRequestOrderBy$1 = 'domain_asc' | 'domain_desc';
@@ -5812,6 +5813,8 @@ type RegistrarApiListContactsRequest = {
5812
5813
  domain?: string;
5813
5814
  projectId?: string;
5814
5815
  organizationId?: string;
5816
+ role?: ListContactsRequestRole;
5817
+ emailStatus?: ContactEmailStatus;
5815
5818
  };
5816
5819
  type RegistrarApiGetContactRequest = {
5817
5820
  contactId: string;
@@ -6546,6 +6549,7 @@ type index_gen$i_ImportRawDNSZoneRequestBindSource = ImportRawDNSZoneRequestBind
6546
6549
  type index_gen$i_ImportRawDNSZoneRequestTsigKey = ImportRawDNSZoneRequestTsigKey;
6547
6550
  type index_gen$i_ImportRawDNSZoneResponse = ImportRawDNSZoneResponse;
6548
6551
  type index_gen$i_LanguageCode = LanguageCode;
6552
+ type index_gen$i_ListContactsRequestRole = ListContactsRequestRole;
6549
6553
  type index_gen$i_ListContactsResponse = ListContactsResponse;
6550
6554
  type index_gen$i_ListDNSZoneNameserversRequest = ListDNSZoneNameserversRequest;
6551
6555
  type index_gen$i_ListDNSZoneNameserversResponse = ListDNSZoneNameserversResponse;
@@ -6707,6 +6711,7 @@ declare namespace index_gen$i {
6707
6711
  index_gen$i_ImportRawDNSZoneRequestTsigKey as ImportRawDNSZoneRequestTsigKey,
6708
6712
  index_gen$i_ImportRawDNSZoneResponse as ImportRawDNSZoneResponse,
6709
6713
  index_gen$i_LanguageCode as LanguageCode,
6714
+ index_gen$i_ListContactsRequestRole as ListContactsRequestRole,
6710
6715
  index_gen$i_ListContactsResponse as ListContactsResponse,
6711
6716
  index_gen$i_ListDNSZoneNameserversRequest as ListDNSZoneNameserversRequest,
6712
6717
  index_gen$i_ListDNSZoneNameserversResponse as ListDNSZoneNameserversResponse,
@@ -8902,6 +8907,12 @@ type DeleteUserRequest$1 = {
8902
8907
  /** ID of the user to delete. */
8903
8908
  userId: string;
8904
8909
  };
8910
+ type CreateUserRequest$1 = {
8911
+ /** ID of the Organization. */
8912
+ organizationId?: string;
8913
+ /** Email of the user. */
8914
+ email: string;
8915
+ };
8905
8916
  type ListApplicationsRequest$1 = {
8906
8917
  /** Criteria for sorting results. */
8907
8918
  orderBy?: ListApplicationsRequestOrderBy;
@@ -9356,6 +9367,14 @@ declare class API$i extends API$s {
9356
9367
  * @param request - The request {@link DeleteUserRequest}
9357
9368
  */
9358
9369
  deleteUser: (request: Readonly<DeleteUserRequest$1>) => Promise<void>;
9370
+ /**
9371
+ * Create a new user. Create a new user. You must define the `organization_id`
9372
+ * and the `email` in your request.
9373
+ *
9374
+ * @param request - The request {@link CreateUserRequest}
9375
+ * @returns A Promise of User
9376
+ */
9377
+ createUser: (request: Readonly<CreateUserRequest$1>) => Promise<User$1>;
9359
9378
  protected pageOfListApplications: (request?: Readonly<ListApplicationsRequest$1>) => Promise<ListApplicationsResponse>;
9360
9379
  /**
9361
9380
  * List applications of an Organization. List the applications of an
@@ -10017,6 +10036,7 @@ declare namespace index_gen$f {
10017
10036
  CreateGroupRequest$1 as CreateGroupRequest,
10018
10037
  CreatePolicyRequest$1 as CreatePolicyRequest,
10019
10038
  CreateSSHKeyRequest$1 as CreateSSHKeyRequest,
10039
+ CreateUserRequest$1 as CreateUserRequest,
10020
10040
  index_gen$f_DeleteAPIKeyRequest as DeleteAPIKeyRequest,
10021
10041
  index_gen$f_DeleteApplicationRequest as DeleteApplicationRequest,
10022
10042
  index_gen$f_DeleteGroupRequest as DeleteGroupRequest,
@@ -10948,6 +10968,11 @@ type ListServersRequest = {
10948
10968
  privateNetwork?: string;
10949
10969
  /** Define the order of the returned servers. */
10950
10970
  order?: ListServersRequestOrder;
10971
+ /**
10972
+ * List Instances from the given Private Networks (use commas to separate
10973
+ * them).
10974
+ */
10975
+ privateNetworks?: string[];
10951
10976
  };
10952
10977
  type DeleteServerRequest = {
10953
10978
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -17042,25 +17067,25 @@ interface PrivateNetwork$3 {
17042
17067
  /** Load Balancer object which is attached to the Private Network. */
17043
17068
  lb?: Lb;
17044
17069
  /**
17045
- * Object containing an array of a local IP address for the Load Balancer on
17046
- * this Private Network.
17070
+ * @deprecated Object containing an array of a local IP address for the Load
17071
+ * Balancer on this Private Network.
17047
17072
  *
17048
- * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
17049
- * 'ipamConfig' could be set.
17073
+ * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
17074
+ * 'ipamConfig' could be set.
17050
17075
  */
17051
17076
  staticConfig?: PrivateNetworkStaticConfig;
17052
17077
  /**
17053
- * Defines whether to let DHCP assign IP addresses.
17078
+ * Object containing DHCP-assigned IP addresses.
17054
17079
  *
17055
17080
  * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
17056
17081
  * 'ipamConfig' could be set.
17057
17082
  */
17058
17083
  dhcpConfig?: PrivateNetworkDHCPConfig;
17059
17084
  /**
17060
- * For internal use only.
17085
+ * @deprecated For internal use only.
17061
17086
  *
17062
- * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
17063
- * 'ipamConfig' could be set.
17087
+ * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
17088
+ * 'ipamConfig' could be set.
17064
17089
  */
17065
17090
  ipamConfig?: PrivateNetworkIpamConfig;
17066
17091
  /** Private Network ID. */
@@ -17073,13 +17098,17 @@ interface PrivateNetwork$3 {
17073
17098
  updatedAt?: Date;
17074
17099
  }
17075
17100
  interface PrivateNetworkDHCPConfig {
17101
+ ipId: string;
17076
17102
  }
17077
17103
  interface PrivateNetworkIpamConfig {
17078
17104
  }
17079
17105
  /** Private network. static config. */
17080
17106
  interface PrivateNetworkStaticConfig {
17081
- /** Array of a local IP address for the Load Balancer on this Private Network. */
17082
- ipAddress: string[];
17107
+ /**
17108
+ * @deprecated Array of a local IP address for the Load Balancer on this
17109
+ * Private Network.
17110
+ */
17111
+ ipAddress?: string[];
17083
17112
  }
17084
17113
  /** Route. */
17085
17114
  interface Route {
@@ -18184,11 +18213,11 @@ type AttachPrivateNetworkRequest = {
18184
18213
  /** Private Network ID. */
18185
18214
  privateNetworkId: string;
18186
18215
  /**
18187
- * Object containing an array of a local IP address for the Load Balancer on
18188
- * this Private Network.
18216
+ * @deprecated Object containing an array of a local IP address for the Load
18217
+ * Balancer on this Private Network.
18189
18218
  *
18190
- * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
18191
- * 'ipamConfig' could be set.
18219
+ * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
18220
+ * 'ipamConfig' could be set.
18192
18221
  */
18193
18222
  staticConfig?: PrivateNetworkStaticConfig;
18194
18223
  /**
@@ -18199,10 +18228,10 @@ type AttachPrivateNetworkRequest = {
18199
18228
  */
18200
18229
  dhcpConfig?: PrivateNetworkDHCPConfig;
18201
18230
  /**
18202
- * For internal use only.
18231
+ * @deprecated For internal use only.
18203
18232
  *
18204
- * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
18205
- * 'ipamConfig' could be set.
18233
+ * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
18234
+ * 'ipamConfig' could be set.
18206
18235
  */
18207
18236
  ipamConfig?: PrivateNetworkIpamConfig;
18208
18237
  };
@@ -19097,11 +19126,11 @@ type ZonedApiAttachPrivateNetworkRequest = {
19097
19126
  /** Private Network ID. */
19098
19127
  privateNetworkId: string;
19099
19128
  /**
19100
- * Object containing an array of a local IP address for the Load Balancer on
19101
- * this Private Network.
19129
+ * @deprecated Object containing an array of a local IP address for the Load
19130
+ * Balancer on this Private Network.
19102
19131
  *
19103
- * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
19104
- * 'ipamConfig' could be set.
19132
+ * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
19133
+ * 'ipamConfig' could be set.
19105
19134
  */
19106
19135
  staticConfig?: PrivateNetworkStaticConfig;
19107
19136
  /**
@@ -19112,10 +19141,10 @@ type ZonedApiAttachPrivateNetworkRequest = {
19112
19141
  */
19113
19142
  dhcpConfig?: PrivateNetworkDHCPConfig;
19114
19143
  /**
19115
- * For internal use only.
19144
+ * @deprecated For internal use only.
19116
19145
  *
19117
- * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
19118
- * 'ipamConfig' could be set.
19146
+ * One-of ('config'): at most one of 'staticConfig', 'dhcpConfig',
19147
+ * 'ipamConfig' could be set.
19119
19148
  */
19120
19149
  ipamConfig?: PrivateNetworkIpamConfig;
19121
19150
  };
@@ -25079,7 +25108,7 @@ declare namespace index$6 {
25079
25108
  type ListSecretsRequestOrderBy = 'name_asc' | 'name_desc' | 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
25080
25109
  type Product = 'unknown';
25081
25110
  type SecretStatus = 'ready' | 'locked';
25082
- type SecretType = 'unknown_secret_type' | 'opaque' | 'network_edge_certificate';
25111
+ type SecretType = 'unknown_secret_type' | 'opaque' | 'certificate';
25083
25112
  type SecretVersionStatus = 'unknown' | 'enabled' | 'disabled' | 'destroyed';
25084
25113
  /** Access secret version response. */
25085
25114
  interface AccessSecretVersionResponse {
@@ -26066,7 +26095,7 @@ declare namespace index$4 {
26066
26095
 
26067
26096
  type DomainLastStatusRecordStatus = 'unknown_record_status' | 'valid' | 'invalid' | 'not_found';
26068
26097
  type DomainStatus = 'unknown' | 'checked' | 'unchecked' | 'invalid' | 'locked' | 'revoked' | 'pending';
26069
- type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce';
26098
+ type EmailFlag = 'unknown_flag' | 'soft_bounce' | 'hard_bounce' | 'spam';
26070
26099
  type EmailRcptType = 'unknown_rcpt_type' | 'to' | 'cc' | 'bcc';
26071
26100
  type EmailStatus = 'unknown' | 'new' | 'sending' | 'sent' | 'failed' | 'canceled';
26072
26101
  type ListEmailsRequestOrderBy = 'created_at_desc' | 'created_at_asc' | 'updated_at_desc' | 'updated_at_asc' | 'status_desc' | 'status_asc' | 'mail_from_desc' | 'mail_from_asc' | 'mail_rcpt_desc' | 'mail_rcpt_asc' | 'subject_desc' | 'subject_asc';
@@ -1,4 +1,4 @@
1
- const version = 'v1.20.0';
1
+ const version = 'v1.22.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": "1.21.0",
3
+ "version": "1.23.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": "1c7dc52ba566eb458d324d3939dc35121722a2b0"
38
+ "gitHead": "a21da9b7b7cc1919caa208589e77f0bb340cc8f8"
39
39
  }