Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion graphql/node-type-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const definition: BlueprintDefinition = {
nodes: [
'DataId',
'DataTimestamps',
{ $type: 'DataDirectOwner', data: { include_id: false } },
'DataDirectOwner',
],
fields: [
{ name: 'title', type: 'text', is_not_null: true },
Expand Down
14 changes: 0 additions & 14 deletions graphql/node-type-registry/src/blueprint-types.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,48 +21,34 @@ export interface DataIdParams {
export interface DataDirectOwnerParams {
/* Column name for owner ID */
owner_field_name?: string;
/* If true, also adds a UUID primary key column with auto-generation */
include_id?: boolean;
/* If true, adds a foreign key constraint from owner_id to the users table */
include_user_fk?: boolean;
}
/** Adds entity reference for organization/group scoping. Enables AuthzEntityMembership, AuthzMembership, AuthzOrgHierarchy authorization. */
export interface DataEntityMembershipParams {
/* Column name for entity ID */
entity_field_name?: string;
/* If true, also adds a UUID primary key column with auto-generation */
include_id?: boolean;
/* If true, adds a foreign key constraint from entity_id to the users table */
include_user_fk?: boolean;
}
/** Combines direct ownership with entity scoping. Adds both owner_id and entity_id columns. Enables AuthzDirectOwner, AuthzEntityMembership, and AuthzOrgHierarchy authorization. Particularly useful for OrgHierarchy where a user owns a row (owner_id) within an entity (entity_id), and managers above can see subordinate-owned records via the hierarchy closure table. */
export interface DataOwnershipInEntityParams {
/* If true, also adds a UUID primary key column with auto-generation */
include_id?: boolean;
/* If true, adds foreign key constraints from owner_id and entity_id to the users table */
include_user_fk?: boolean;
}
/** Adds automatic timestamp tracking with created_at and updated_at columns. */
export interface DataTimestampsParams {
/* If true, also adds a UUID primary key column with auto-generation */
include_id?: boolean;
}
/** Adds user tracking for creates/updates with created_by and updated_by columns. */
export interface DataPeoplestampsParams {
/* If true, also adds a UUID primary key column with auto-generation */
include_id?: boolean;
/* If true, adds foreign key constraints from created_by and updated_by to the users table */
include_user_fk?: boolean;
}
/** Adds publish state columns (is_published, published_at) for content visibility. Enables AuthzPublishable and AuthzTemporal authorization. */
export interface DataPublishableParams {
/* If true, also adds a UUID primary key column with auto-generation */
include_id?: boolean;
}
/** Adds soft delete support with deleted_at and is_deleted columns. */
export interface DataSoftDeleteParams {
/* If true, also adds a UUID primary key column with auto-generation */
include_id?: boolean;
}
/** Adds a vector embedding column with HNSW or IVFFlat index for similarity search. Supports configurable dimensions, distance metrics (cosine, l2, ip), stale tracking strategies (column, null, hash), and automatic job enqueue triggers for embedding generation. */
export interface DataEmbeddingParams {
Expand Down
5 changes: 0 additions & 5 deletions graphql/node-type-registry/src/data/data-direct-owner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export const DataDirectOwner: NodeTypeDefinition = {
"description": "Column name for owner ID",
"default": "owner_id"
},
"include_id": {
"type": "boolean",
"description": "If true, also adds a UUID primary key column with auto-generation",
"default": true
},
"include_user_fk": {
"type": "boolean",
"description": "If true, adds a foreign key constraint from owner_id to the users table",
Expand Down
5 changes: 0 additions & 5 deletions graphql/node-type-registry/src/data/data-entity-membership.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export const DataEntityMembership: NodeTypeDefinition = {
"description": "Column name for entity ID",
"default": "entity_id"
},
"include_id": {
"type": "boolean",
"description": "If true, also adds a UUID primary key column with auto-generation",
"default": true
},
"include_user_fk": {
"type": "boolean",
"description": "If true, adds a foreign key constraint from entity_id to the users table",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export const DataOwnershipInEntity: NodeTypeDefinition = {
"parameter_schema": {
"type": "object",
"properties": {
"include_id": {
"type": "boolean",
"description": "If true, also adds a UUID primary key column with auto-generation",
"default": true
},
"include_user_fk": {
"type": "boolean",
"description": "If true, adds foreign key constraints from owner_id and entity_id to the users table",
Expand Down
5 changes: 0 additions & 5 deletions graphql/node-type-registry/src/data/data-peoplestamps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ export const DataPeoplestamps: NodeTypeDefinition = {
"parameter_schema": {
"type": "object",
"properties": {
"include_id": {
"type": "boolean",
"description": "If true, also adds a UUID primary key column with auto-generation",
"default": true
},
"include_user_fk": {
"type": "boolean",
"description": "If true, adds foreign key constraints from created_by and updated_by to the users table",
Expand Down
8 changes: 1 addition & 7 deletions graphql/node-type-registry/src/data/data-publishable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ export const DataPublishable: NodeTypeDefinition = {
"description": "Adds publish state columns (is_published, published_at) for content visibility. Enables AuthzPublishable and AuthzTemporal authorization.",
"parameter_schema": {
"type": "object",
"properties": {
"include_id": {
"type": "boolean",
"description": "If true, also adds a UUID primary key column with auto-generation",
"default": true
}
}
"properties": {}
},
"tags": [
"publishing",
Expand Down
8 changes: 1 addition & 7 deletions graphql/node-type-registry/src/data/data-soft-delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ export const DataSoftDelete: NodeTypeDefinition = {
"description": "Adds soft delete support with deleted_at and is_deleted columns.",
"parameter_schema": {
"type": "object",
"properties": {
"include_id": {
"type": "boolean",
"description": "If true, also adds a UUID primary key column with auto-generation",
"default": true
}
}
"properties": {}
},
"tags": [
"schema"
Expand Down
8 changes: 1 addition & 7 deletions graphql/node-type-registry/src/data/data-timestamps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ export const DataTimestamps: NodeTypeDefinition = {
"description": "Adds automatic timestamp tracking with created_at and updated_at columns.",
"parameter_schema": {
"type": "object",
"properties": {
"include_id": {
"type": "boolean",
"description": "If true, also adds a UUID primary key column with auto-generation",
"default": true
}
}
"properties": {}
},
"tags": [
"timestamps",
Expand Down
Loading