node-type-registry 0.6.1 → 0.6.2

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.
@@ -641,7 +641,7 @@ export interface BlueprintTable {
641
641
  policies?: BlueprintPolicy[];
642
642
  /** Database roles to grant privileges to. Defaults to ["authenticated"]. */
643
643
  grant_roles?: string[];
644
- /** Privilege grants as [verb, column] tuples or objects. */
644
+ /** Privilege grants as [verb, column] tuples or objects. Defaults to empty (no grants — callers must explicitly specify). */
645
645
  grants?: unknown[];
646
646
  /** Whether to enable RLS on this table. Defaults to true. */
647
647
  use_rls?: boolean;
@@ -362,7 +362,7 @@ function buildBlueprintTable() {
362
362
  addJSDoc(optionalProp('fields', t.tsArrayType(t.tsTypeReference(t.identifier('BlueprintField')))), 'Custom fields (columns) to add to the table.'),
363
363
  addJSDoc(optionalProp('policies', t.tsArrayType(t.tsTypeReference(t.identifier('BlueprintPolicy')))), 'RLS policies for this table.'),
364
364
  addJSDoc(optionalProp('grant_roles', t.tsArrayType(t.tsStringKeyword())), 'Database roles to grant privileges to. Defaults to ["authenticated"].'),
365
- addJSDoc(optionalProp('grants', t.tsArrayType(t.tsUnknownKeyword())), 'Privilege grants as [verb, column] tuples or objects.'),
365
+ addJSDoc(optionalProp('grants', t.tsArrayType(t.tsUnknownKeyword())), 'Privilege grants as [verb, column] tuples or objects. Defaults to empty (no grants — callers must explicitly specify).'),
366
366
  addJSDoc(optionalProp('use_rls', t.tsBooleanKeyword()), 'Whether to enable RLS on this table. Defaults to true.'),
367
367
  ]), 'A table definition within a blueprint.');
368
368
  }
@@ -641,7 +641,7 @@ export interface BlueprintTable {
641
641
  policies?: BlueprintPolicy[];
642
642
  /** Database roles to grant privileges to. Defaults to ["authenticated"]. */
643
643
  grant_roles?: string[];
644
- /** Privilege grants as [verb, column] tuples or objects. */
644
+ /** Privilege grants as [verb, column] tuples or objects. Defaults to empty (no grants — callers must explicitly specify). */
645
645
  grants?: unknown[];
646
646
  /** Whether to enable RLS on this table. Defaults to true. */
647
647
  use_rls?: boolean;
@@ -327,7 +327,7 @@ function buildBlueprintTable() {
327
327
  addJSDoc(optionalProp('fields', t.tsArrayType(t.tsTypeReference(t.identifier('BlueprintField')))), 'Custom fields (columns) to add to the table.'),
328
328
  addJSDoc(optionalProp('policies', t.tsArrayType(t.tsTypeReference(t.identifier('BlueprintPolicy')))), 'RLS policies for this table.'),
329
329
  addJSDoc(optionalProp('grant_roles', t.tsArrayType(t.tsStringKeyword())), 'Database roles to grant privileges to. Defaults to ["authenticated"].'),
330
- addJSDoc(optionalProp('grants', t.tsArrayType(t.tsUnknownKeyword())), 'Privilege grants as [verb, column] tuples or objects.'),
330
+ addJSDoc(optionalProp('grants', t.tsArrayType(t.tsUnknownKeyword())), 'Privilege grants as [verb, column] tuples or objects. Defaults to empty (no grants — callers must explicitly specify).'),
331
331
  addJSDoc(optionalProp('use_rls', t.tsBooleanKeyword()), 'Whether to enable RLS on this table. Defaults to true.'),
332
332
  ]), 'A table definition within a blueprint.');
333
333
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-type-registry",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Node type definitions for the Constructive blueprint system. Single source of truth for all Authz*, Data*, Relation*, and View* node types.",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "main": "index.js",
@@ -48,5 +48,5 @@
48
48
  "registry",
49
49
  "graphile"
50
50
  ],
51
- "gitHead": "2f6e083d11764a04b2a6bc14df5b2ca2725defc6"
51
+ "gitHead": "98b0d29e8937be61d1afde2c6c1fdab74754b1e4"
52
52
  }