@scaleway/sdk-s2s-vpn 2.16.0 → 2.18.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.
@@ -290,6 +290,8 @@ const marshalUpdateConnectionRequest = (request, defaults) => ({
290
290
  ikev2_ciphers: request.ikev2Ciphers !== void 0 ? request.ikev2Ciphers.map((elt) => marshalConnectionCipher(elt, defaults)) : void 0,
291
291
  initiation_policy: request.initiationPolicy,
292
292
  name: request.name,
293
+ secret_id: request.secretId,
294
+ secret_revision: request.secretRevision,
293
295
  tags: request.tags
294
296
  });
295
297
  const marshalUpdateCustomerGatewayRequest = (request, defaults) => ({
@@ -428,7 +428,8 @@ export type CreateConnectionRequest = {
428
428
  */
429
429
  enableRoutePropagation: boolean;
430
430
  /**
431
- * Previously created secret in Secret Manager containing the PSK to be used for the IPsec tunnel. If no secret given, S2S VPN will create one automatically in Secret Manager, reference it's secret_id and revision in the connection and use the generated PSK. Secret revision is also optional and maybe used to refer to a previous revision. If no revision given, "latest" is used.
431
+ * If no secret is given, S2S VPN will create one automatically in Secret Manager, reference its secret_id and version in the connection and use the generated PSK.
432
+ Secret version is also optional and maybe used to refer to a previous version. If no version is given, "latest" is used.
432
433
  */
433
434
  secret?: CreateConnectionRequestSecret;
434
435
  /**
@@ -933,7 +934,7 @@ export type RenewConnectionPskRequest = {
933
934
  */
934
935
  connectionId: string;
935
936
  /**
936
- * Generate a new revision or update to the latest existing one.
937
+ * Generate a new version or update to the latest existing one.
937
938
  */
938
939
  generateRevision?: boolean;
939
940
  };
@@ -998,6 +999,14 @@ export type UpdateConnectionRequest = {
998
999
  * List of ESP ciphers proposed for the IPsec tunnel.
999
1000
  */
1000
1001
  espCiphers?: ConnectionCipher[];
1002
+ /**
1003
+ * Secret ID in the client's project containing the PSK.
1004
+ */
1005
+ secretId?: string;
1006
+ /**
1007
+ * If not given it will not change. If secret_id is updated, secret_revision should be set accordingly.
1008
+ */
1009
+ secretRevision?: number;
1001
1010
  };
1002
1011
  export type UpdateCustomerGatewayRequest = {
1003
1012
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-s2s-vpn",
3
- "version": "2.16.0",
3
+ "version": "2.18.0",
4
4
  "description": "Scaleway SDK s2s-vpn",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,14 +33,14 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@scaleway/random-name": "6.0.2",
36
- "@scaleway/sdk-std": "2.8.1"
36
+ "@scaleway/sdk-std": "2.8.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@repo/configs": "^0.1.1",
40
- "@scaleway/sdk-client": "^2.9.0"
40
+ "@scaleway/sdk-client": "^2.11.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@scaleway/sdk-client": "^2.9.0"
43
+ "@scaleway/sdk-client": "^2.11.0"
44
44
  },
45
45
  "scripts": {
46
46
  "package:check": "pnpm publint",