@fjall/components-infrastructure 0.99.1 → 0.99.3

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.
@@ -115,7 +115,8 @@ export declare class ClickHouseDatabase extends Construct implements IClickHouse
115
115
  constructor(scope: Construct, id: string, props: ClickHouseDatabaseProps);
116
116
  /**
117
117
  * Returns the Fjall `Secret` wrapper for the named user. Throws with a
118
- * `Known users:` list if the name is not present in the `users:` prop.
118
+ * `Known users:` list if the name is not present in the construct's
119
+ * `schemaAdmin:` / `managedPasswords:` props.
119
120
  */
120
121
  getUser(name: string): Secret;
121
122
  /**
@@ -474,7 +474,8 @@ export class ClickHouseDatabase extends Construct {
474
474
  }
475
475
  /**
476
476
  * Returns the Fjall `Secret` wrapper for the named user. Throws with a
477
- * `Known users:` list if the name is not present in the `users:` prop.
477
+ * `Known users:` list if the name is not present in the construct's
478
+ * `schemaAdmin:` / `managedPasswords:` props.
478
479
  */
479
480
  getUser(name) {
480
481
  const secret = this.#users.get(name);
@@ -1,8 +1,11 @@
1
1
  import { z } from "zod";
2
2
  /** ClickHouse user/profile name pattern — lowercase snake_case, leading
3
- * letter only. Shared by `ClickHouseUserSchema.name` and the per-profile
3
+ * letter only. Shared by `ClickHouseSchemaAdminSchema.name`, the per-profile
4
4
  * key regex applied inside `ClickHouseDatabase`'s construct-time validation
5
- * (Stage 1). Keeps the XML element names emit-safe (no escaping needed). */
5
+ * (Stage 1), and `MANAGED_USER_NAME_PATTERN` at
6
+ * `fjall/util/src/migration/clickhouseSqlUsers.ts` (drift between the three
7
+ * surfaces as a parse failure in the runner). Keeps the XML element names
8
+ * emit-safe (no escaping needed). */
6
9
  const NAME_PATTERN = /^[a-z][a-z0-9_]*$/;
7
10
  /**
8
11
  * Schema-admin user — the framework's bootstrap-privileged identity that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjall/components-infrastructure",
3
- "version": "0.99.1",
3
+ "version": "0.99.3",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "type": "module",
6
6
  "bin": {
@@ -58,8 +58,8 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@aws-sdk/client-organizations": "^3.1038.0",
61
- "@fjall/generator": "^0.99.1",
62
- "@fjall/util": "^0.99.1",
61
+ "@fjall/generator": "^0.99.3",
62
+ "@fjall/util": "^0.99.3",
63
63
  "constructs": "^10.0.0",
64
64
  "uuid": "^14.0.0"
65
65
  },
@@ -74,5 +74,5 @@
74
74
  "engines": {
75
75
  "node": ">=18.0.0"
76
76
  },
77
- "gitHead": "0b8cc9b7c5017ca126c884da4cb29793dd26c96a"
77
+ "gitHead": "e50d25185d5eab618e2a90622466296fa0cbffe8"
78
78
  }