@scaleway/sdk-s2s-vpn 1.1.0 → 1.2.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.
@@ -54,6 +54,8 @@ const unmarshalConnection = (data) => {
54
54
  projectId: data.project_id,
55
55
  region: data.region,
56
56
  routePropagationEnabled: data.route_propagation_enabled,
57
+ secretId: data.secret_id,
58
+ secretRevision: data.secret_revision,
57
59
  status: data.status,
58
60
  tags: data.tags,
59
61
  tunnelStatus: data.tunnel_status,
@@ -52,6 +52,8 @@ const unmarshalConnection = (data) => {
52
52
  projectId: data.project_id,
53
53
  region: data.region,
54
54
  routePropagationEnabled: data.route_propagation_enabled,
55
+ secretId: data.secret_id,
56
+ secretRevision: data.secret_revision,
55
57
  status: data.status,
56
58
  tags: data.tags,
57
59
  tunnelStatus: data.tunnel_status,
@@ -74,6 +74,14 @@ export interface Connection {
74
74
  * Who initiates the IPsec tunnel.
75
75
  */
76
76
  initiationPolicy: ConnectionInitiationPolicy;
77
+ /**
78
+ * ID of the secret in Secret Manager which contains the PSK.
79
+ */
80
+ secretId: string;
81
+ /**
82
+ * Version number of the secret in Secret Manager which contains the PSK.
83
+ */
84
+ secretRevision: number;
77
85
  /**
78
86
  * List of IKE v2 ciphers proposed for the IPsec tunnel.
79
87
  */
@@ -361,9 +369,9 @@ export interface CreateConnectionResponse {
361
369
  */
362
370
  connection?: Connection;
363
371
  /**
364
- * New PSK generated for this connection.
372
+ * @deprecated Deprecated, use secret_id & secret_revision fields.
365
373
  */
366
- preSharedKey: string;
374
+ preSharedKey?: string;
367
375
  }
368
376
  export type CreateCustomerGatewayRequest = {
369
377
  /**
@@ -825,9 +833,9 @@ export interface RenewConnectionPskResponse {
825
833
  */
826
834
  connection?: Connection;
827
835
  /**
828
- * New PSK generated for this connection.
836
+ * @deprecated Deprecated, use secret_id & secret_revision fields.
829
837
  */
830
- preSharedKey: string;
838
+ preSharedKey?: string;
831
839
  }
832
840
  export type SetRoutingPolicyRequest = {
833
841
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-s2s-vpn",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Scaleway SDK s2s-vpn",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -30,13 +30,13 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.1.0"
33
+ "@scaleway/sdk-std": "1.2.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.3.2"
36
+ "@scaleway/sdk-client": "^1.3.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.3.2"
39
+ "@scaleway/sdk-client": "^1.3.3"
40
40
  },
41
41
  "scripts": {
42
42
  "package:check": "pnpm publint",