node-type-registry 0.6.0 → 0.6.1

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.
@@ -355,7 +355,7 @@ export interface RelationManyToManyParams {
355
355
  [key: string]: unknown;
356
356
  };
357
357
  grant_roles?: string[];
358
- grant_privileges?: string[];
358
+ grant_privileges?: string[][];
359
359
  policy_type?: string;
360
360
  policy_privileges?: string[];
361
361
  policy_role?: string;
@@ -425,7 +425,7 @@ export interface BlueprintField {
425
425
  /** An RLS policy entry for a blueprint table. */
426
426
  export interface BlueprintPolicy {
427
427
  /** Authz* policy type name (e.g., "AuthzDirectOwner", "AuthzAllowAll"). */
428
- $type: "AuthzDirectOwner" | "AuthzDirectOwnerAny" | "AuthzMembership" | "AuthzEntityMembership" | "AuthzRelatedEntityMembership" | "AuthzOrgHierarchy" | "AuthzTemporal" | "AuthzPublishable" | "AuthzMemberList" | "AuthzRelatedMemberList" | "AuthzAllowAll" | "AuthzDenyAll" | "AuthzComposite" | "AuthzPeerOwnership" | "AuthzRelatedPeerOwnership";
428
+ policy_type: "AuthzDirectOwner" | "AuthzDirectOwnerAny" | "AuthzMembership" | "AuthzEntityMembership" | "AuthzRelatedEntityMembership" | "AuthzOrgHierarchy" | "AuthzTemporal" | "AuthzPublishable" | "AuthzMemberList" | "AuthzRelatedMemberList" | "AuthzAllowAll" | "AuthzDenyAll" | "AuthzComposite" | "AuthzPeerOwnership" | "AuthzRelatedPeerOwnership";
429
429
  /** Role for this policy. Defaults to "authenticated". */
430
430
  policy_role?: string;
431
431
  /** Whether this policy is permissive (true) or restrictive (false). */
@@ -459,9 +459,9 @@ export interface BlueprintFullTextSearch {
459
459
  export interface BlueprintIndex {
460
460
  /** Reference key of the table this index belongs to. */
461
461
  table_ref: string;
462
- /** Single column name for the index. Mutually exclusive with "columns". */
462
+ /** Single column name for the index. */
463
463
  column?: string;
464
- /** Array of column names for a multi-column index. Mutually exclusive with "column". */
464
+ /** Array of column names for a multi-column index. */
465
465
  columns?: string[];
466
466
  /** Index access method (e.g., "BTREE", "GIN", "GIST", "HNSW", "BM25"). */
467
467
  access_method: string;
@@ -33,7 +33,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
33
33
  ;
34
34
  /**
35
35
  * ===========================================================================
36
- * Static structural types
36
+ * Structural types — Static fallback (no _meta provided)
37
37
  * ===========================================================================
38
38
  */
39
39
  ;
@@ -355,7 +355,7 @@ export interface RelationManyToManyParams {
355
355
  [key: string]: unknown;
356
356
  };
357
357
  grant_roles?: string[];
358
- grant_privileges?: string[];
358
+ grant_privileges?: string[][];
359
359
  policy_type?: string;
360
360
  policy_privileges?: string[];
361
361
  policy_role?: string;
@@ -425,7 +425,7 @@ export interface BlueprintField {
425
425
  /** An RLS policy entry for a blueprint table. */
426
426
  export interface BlueprintPolicy {
427
427
  /** Authz* policy type name (e.g., "AuthzDirectOwner", "AuthzAllowAll"). */
428
- $type: "AuthzDirectOwner" | "AuthzDirectOwnerAny" | "AuthzMembership" | "AuthzEntityMembership" | "AuthzRelatedEntityMembership" | "AuthzOrgHierarchy" | "AuthzTemporal" | "AuthzPublishable" | "AuthzMemberList" | "AuthzRelatedMemberList" | "AuthzAllowAll" | "AuthzDenyAll" | "AuthzComposite" | "AuthzPeerOwnership" | "AuthzRelatedPeerOwnership";
428
+ policy_type: "AuthzDirectOwner" | "AuthzDirectOwnerAny" | "AuthzMembership" | "AuthzEntityMembership" | "AuthzRelatedEntityMembership" | "AuthzOrgHierarchy" | "AuthzTemporal" | "AuthzPublishable" | "AuthzMemberList" | "AuthzRelatedMemberList" | "AuthzAllowAll" | "AuthzDenyAll" | "AuthzComposite" | "AuthzPeerOwnership" | "AuthzRelatedPeerOwnership";
429
429
  /** Role for this policy. Defaults to "authenticated". */
430
430
  policy_role?: string;
431
431
  /** Whether this policy is permissive (true) or restrictive (false). */
@@ -459,9 +459,9 @@ export interface BlueprintFullTextSearch {
459
459
  export interface BlueprintIndex {
460
460
  /** Reference key of the table this index belongs to. */
461
461
  table_ref: string;
462
- /** Single column name for the index. Mutually exclusive with "columns". */
462
+ /** Single column name for the index. */
463
463
  column?: string;
464
- /** Array of column names for a multi-column index. Mutually exclusive with "column". */
464
+ /** Array of column names for a multi-column index. */
465
465
  columns?: string[];
466
466
  /** Index access method (e.g., "BTREE", "GIN", "GIST", "HNSW", "BM25"). */
467
467
  access_method: string;
@@ -31,7 +31,7 @@
31
31
  ;
32
32
  /**
33
33
  * ===========================================================================
34
- * Static structural types
34
+ * Structural types — Static fallback (no _meta provided)
35
35
  * ===========================================================================
36
36
  */
37
37
  ;
@@ -56,7 +56,13 @@ export const RelationManyToMany = {
56
56
  },
57
57
  "grant_privileges": {
58
58
  "type": "array",
59
- "description": "Privilege grants for the junction table. Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns"
59
+ "items": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string"
63
+ }
64
+ },
65
+ "description": "Privilege grants for the junction table as [verb, columns] tuples (e.g. [['select','*'],['insert','*']]). Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns"
60
66
  },
61
67
  "policy_type": {
62
68
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-type-registry",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
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": "baae875effd00af36577612c861d0f6f9a1a792a"
51
+ "gitHead": "2f6e083d11764a04b2a6bc14df5b2ca2725defc6"
52
52
  }
@@ -59,7 +59,13 @@ exports.RelationManyToMany = {
59
59
  },
60
60
  "grant_privileges": {
61
61
  "type": "array",
62
- "description": "Privilege grants for the junction table. Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns"
62
+ "items": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "description": "Privilege grants for the junction table as [verb, columns] tuples (e.g. [['select','*'],['insert','*']]). Forwarded to secure_table_provision as-is. Default: select/insert/delete for all columns"
63
69
  },
64
70
  "policy_type": {
65
71
  "type": "string",