@causa/workspace-google 0.14.1 → 0.15.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.
@@ -51,8 +51,8 @@ export declare enum GoogleCloudRunIngress {
51
51
  * See https://cloud.google.com/run/docs/configuring/connecting-vpc#manage for more details.
52
52
  */
53
53
  export declare enum GoogleCloudRunVpcAccessConnectorEgressSettings {
54
- AllTraffic = "all-traffic",
55
- PrivateRangesOnly = "private-ranges-only"
54
+ AllTraffic = "ALL_TRAFFIC",
55
+ PrivateRangesOnly = "PRIVATE_RANGES_ONLY"
56
56
  }
57
57
  /**
58
58
  * Configuration for Cloud Run containers.
@@ -597,9 +597,20 @@ export declare class Causa {
597
597
  readonly secrets?: Secrets;
598
598
  [property: string]: any;
599
599
  }
600
- export declare class Secret {
601
- constructor(init: Secret);
600
+ /**
601
+ * A secret that returns a Google access token for the current user or service account.
602
+ * This backend does not require any additional configuration.
603
+ */
604
+ export declare class GoogleSecretConfiguration {
605
+ constructor(init: GoogleSecretConfiguration);
602
606
  readonly backend?: string;
607
+ /**
608
+ * The reference to the secret in Google Secret Manager.
609
+ * Supported formats: `<secret-name>`, `projects/<project>/secrets/<secret-name>`, `projects/<project>/secrets/<secret-name>/versions/<version>`.
610
+ * If the project is not specified, `google.secretManager.project` or `google.project` will be used.
611
+ * If the version is not specified, `latest` will be used.
612
+ */
613
+ readonly id?: string;
603
614
  [property: string]: any;
604
615
  }
605
616
  /**
@@ -609,7 +620,7 @@ export declare class GoogleSecretsConfiguration {
609
620
  constructor(init: GoogleSecretsConfiguration);
610
621
  readonly causa?: Causa;
611
622
  readonly secrets?: {
612
- [key: string]: Secret;
623
+ [key: string]: GoogleSecretConfiguration;
613
624
  };
614
625
  [property: string]: any;
615
626
  }
@@ -92,8 +92,8 @@ export var GoogleCloudRunIngress;
92
92
  */
93
93
  export var GoogleCloudRunVpcAccessConnectorEgressSettings;
94
94
  (function (GoogleCloudRunVpcAccessConnectorEgressSettings) {
95
- GoogleCloudRunVpcAccessConnectorEgressSettings["AllTraffic"] = "all-traffic";
96
- GoogleCloudRunVpcAccessConnectorEgressSettings["PrivateRangesOnly"] = "private-ranges-only";
95
+ GoogleCloudRunVpcAccessConnectorEgressSettings["AllTraffic"] = "ALL_TRAFFIC";
96
+ GoogleCloudRunVpcAccessConnectorEgressSettings["PrivateRangesOnly"] = "PRIVATE_RANGES_ONLY";
97
97
  })(GoogleCloudRunVpcAccessConnectorEgressSettings || (GoogleCloudRunVpcAccessConnectorEgressSettings = {}));
98
98
  /**
99
99
  * Configuration for Cloud Run containers.
@@ -193,7 +193,7 @@ __decorate([
193
193
  ], GoogleCloudRun.prototype, "vpcAccessConnector", void 0);
194
194
  __decorate([
195
195
  AllowMissing(),
196
- IsIn(['all-traffic', 'private-ranges-only']),
196
+ IsIn(['ALL_TRAFFIC', 'PRIVATE_RANGES_ONLY']),
197
197
  __metadata("design:type", String)
198
198
  ], GoogleCloudRun.prototype, "vpcAccessConnectorEgressSettings", void 0);
199
199
  /**
@@ -1073,17 +1073,33 @@ __decorate([
1073
1073
  AllowMissing(),
1074
1074
  __metadata("design:type", Secrets)
1075
1075
  ], Causa.prototype, "secrets", void 0);
1076
- export class Secret {
1076
+ /**
1077
+ * A secret that returns a Google access token for the current user or service account.
1078
+ * This backend does not require any additional configuration.
1079
+ */
1080
+ export class GoogleSecretConfiguration {
1077
1081
  constructor(init) {
1078
1082
  Object.assign(this, init);
1079
1083
  }
1080
1084
  backend;
1085
+ /**
1086
+ * The reference to the secret in Google Secret Manager.
1087
+ * Supported formats: `<secret-name>`, `projects/<project>/secrets/<secret-name>`, `projects/<project>/secrets/<secret-name>/versions/<version>`.
1088
+ * If the project is not specified, `google.secretManager.project` or `google.project` will be used.
1089
+ * If the version is not specified, `latest` will be used.
1090
+ */
1091
+ id;
1081
1092
  }
1082
1093
  __decorate([
1083
1094
  AllowMissing(),
1084
1095
  IsString(),
1085
1096
  __metadata("design:type", String)
1086
- ], Secret.prototype, "backend", void 0);
1097
+ ], GoogleSecretConfiguration.prototype, "backend", void 0);
1098
+ __decorate([
1099
+ AllowMissing(),
1100
+ IsString(),
1101
+ __metadata("design:type", String)
1102
+ ], GoogleSecretConfiguration.prototype, "id", void 0);
1087
1103
  /**
1088
1104
  * Google-specific refinement of the secrets configuration.
1089
1105
  */
@@ -404,8 +404,8 @@ properties:
404
404
  title: GoogleCloudRunVpcAccessConnectorEgressSettings
405
405
  type: string
406
406
  enum:
407
- - all-traffic
408
- - private-ranges-only
407
+ - ALL_TRAFFIC
408
+ - PRIVATE_RANGES_ONLY
409
409
  description: >-
410
410
  The setting for egress traffic that goes through the VPC access
411
411
  connector.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@causa/workspace-google",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "description": "The Causa workspace module providing many functionalities related to GCP and its services.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  "license": "ISC",
10
10
  "type": "module",
11
11
  "engines": {
12
- "node": ">=20"
12
+ "node": ">=22"
13
13
  },
14
14
  "main": "dist/index.js",
15
15
  "types": "dist/index.d.ts",
@@ -35,10 +35,10 @@
35
35
  "generateConfigurationSchemas": "cs model genCode && perl -pi -e 's|\\@causa/runtime|\\@causa/workspace/validation|g' src/configurations/generated.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@causa/cli": ">= 0.6.6 < 1.0.0",
39
- "@causa/workspace": ">= 0.22.2 < 1.0.0",
40
- "@causa/workspace-core": ">= 0.28.1 < 1.0.0",
41
- "@causa/workspace-typescript": ">= 0.19.0 < 1.0.0",
38
+ "@causa/cli": ">= 0.7.0 < 1.0.0",
39
+ "@causa/workspace": ">= 0.23.0 < 1.0.0",
40
+ "@causa/workspace-core": ">= 0.30.0 < 1.0.0",
41
+ "@causa/workspace-typescript": ">= 0.20.0 < 1.0.0",
42
42
  "@google-cloud/apikeys": "^2.2.1",
43
43
  "@google-cloud/bigquery": "^8.1.1",
44
44
  "@google-cloud/iam-credentials": "^4.2.1",
@@ -50,10 +50,10 @@
50
50
  "@google-cloud/spanner": "^8.6.0",
51
51
  "@google-cloud/storage": "^7.19.0",
52
52
  "class-validator": "^0.15.1",
53
- "firebase": "^12.10.0",
54
- "firebase-admin": "^13.7.0",
55
- "globby": "^16.1.1",
56
- "google-auth-library": "^10.6.1",
53
+ "firebase": "^12.12.0",
54
+ "firebase-admin": "^13.8.0",
55
+ "globby": "^16.2.0",
56
+ "google-auth-library": "^10.6.2",
57
57
  "google-gax": "5.0.6",
58
58
  "googleapis": "^171.4.0",
59
59
  "micromatch": "^4.0.8",
@@ -61,20 +61,20 @@
61
61
  "quicktype-core": "^23.2.6"
62
62
  },
63
63
  "devDependencies": {
64
- "@swc/core": "^1.15.18",
64
+ "@swc/core": "^1.15.24",
65
65
  "@swc/jest": "^0.2.39",
66
- "@tsconfig/node20": "^20.1.9",
66
+ "@tsconfig/node22": "^22.0.5",
67
67
  "@types/jest": "^30.0.0",
68
68
  "@types/micromatch": "^4.0.10",
69
- "@types/node": "^20.19.37",
69
+ "@types/node": "^20.19.39",
70
70
  "copyfiles": "^2.4.1",
71
- "eslint": "^10.0.3",
71
+ "eslint": "^10.2.0",
72
72
  "eslint-config-prettier": "^10.1.8",
73
73
  "eslint-plugin-prettier": "^5.5.5",
74
74
  "jest": "^30.3.0",
75
75
  "jest-extended": "^7.0.0",
76
76
  "rimraf": "^6.1.3",
77
- "typescript": "^5.9.3",
78
- "typescript-eslint": "^8.57.0"
77
+ "typescript": "^6.0.2",
78
+ "typescript-eslint": "^8.58.1"
79
79
  }
80
80
  }