Skip to content
Merged
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
8 changes: 8 additions & 0 deletions packages/node-type-registry/src/blueprint-types.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,8 @@ export interface BlueprintStorageConfig {
scope?: 'app' | 'org';
/** Discriminator for multi-module storage. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{storage_key}_buckets. Max 16 chars, lowercase snake_case. */
storage_key?: string;
/** Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "buckets" instead of "org_buckets"). */
prefix?: string;
/** Initial bucket seed entries. Each creates a row in {prefix}_buckets during provisioning. */
buckets?: BlueprintBucketSeed[];
/** Override for presigned upload URL expiry time in seconds. */
Expand Down Expand Up @@ -1590,6 +1592,8 @@ export interface BlueprintNamespaceConfig {
scope?: 'app' | 'org';
/** Module discriminator for multi-module namespaces. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{key}_namespaces. */
key?: string;
/** Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "namespaces" instead of "org_namespaces"). */
prefix?: string;
/** RLS policy overrides for the namespaces table. NULL = apply defaults from apply_namespace_security(). */
policies?: BlueprintPolicy[];
/** Per-table overrides for namespace tables. Each key targets a specific table (namespaces, namespace_events) and uses the same shape as table_provision: { nodes, fields, grants, use_rls, policies }. Fanned out to secure_table_provision. */
Expand All @@ -1604,6 +1608,8 @@ export interface BlueprintFunctionConfig {
scope?: 'app' | 'org';
/** Module discriminator for multi-module functions. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{key}_function_definitions. */
key?: string;
/** Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "function_definitions" instead of "org_function_definitions"). */
prefix?: string;
/** RLS policy overrides for the function tables. NULL = apply defaults from apply_function_security(). */
policies?: BlueprintPolicy[];
/** Per-table overrides for function tables. Each key targets a specific table (definitions, invocations, execution_logs) and uses the same shape as table_provision: { nodes, fields, grants, use_rls, policies }. Fanned out to secure_table_provision. */
Expand All @@ -1619,6 +1625,8 @@ export interface BlueprintAgentConfig {
scope?: 'app' | 'org';
/** Module discriminator for multi-module agents. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{key}_agent_thread. */
key?: string;
/** Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "agent_thread" instead of "org_agent_thread"). */
prefix?: string;
/** API name for the agent module. Used in GraphQL naming. Defaults to "agent". */
api_name?: string;
/** Whether to provision the agent_plan table for workflow plans with ordered tasks and approval gates. When true, tasks belong to plans (plan_id NOT NULL) instead of directly to threads. Defaults to false. */
Expand Down
16 changes: 16 additions & 0 deletions packages/node-type-registry/src/codegen/generate-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,10 @@ function buildBlueprintStorageConfig(): t.ExportNamedDeclaration {
optionalProp('storage_key', t.tsStringKeyword()),
'Discriminator for multi-module storage. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{storage_key}_buckets. Max 16 chars, lowercase snake_case.'
),
addJSDoc(
optionalProp('prefix', t.tsStringKeyword()),
'Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "buckets" instead of "org_buckets").'
),
addJSDoc(
optionalProp(
'buckets',
Expand Down Expand Up @@ -1047,6 +1051,10 @@ function buildBlueprintNamespaceConfig(): t.ExportNamedDeclaration {
optionalProp('key', t.tsStringKeyword()),
'Module discriminator for multi-module namespaces. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{key}_namespaces.'
),
addJSDoc(
optionalProp('prefix', t.tsStringKeyword()),
'Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "namespaces" instead of "org_namespaces").'
),
addJSDoc(
optionalProp(
'policies',
Expand Down Expand Up @@ -1098,6 +1106,10 @@ function buildBlueprintFunctionConfig(): t.ExportNamedDeclaration {
optionalProp('key', t.tsStringKeyword()),
'Module discriminator for multi-module functions. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{key}_function_definitions.'
),
addJSDoc(
optionalProp('prefix', t.tsStringKeyword()),
'Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "function_definitions" instead of "org_function_definitions").'
),
addJSDoc(
optionalProp(
'policies',
Expand Down Expand Up @@ -1153,6 +1165,10 @@ function buildBlueprintAgentConfig(): t.ExportNamedDeclaration {
optionalProp('key', t.tsStringKeyword()),
'Module discriminator for multi-module agents. Defaults to "default" (omitted from table names). Non-default keys appear as an infix: {prefix}_{key}_agent_thread.'
),
addJSDoc(
optionalProp('prefix', t.tsStringKeyword()),
'Override the table-name prefix. By default the prefix is derived from the scope (e.g. "org"). Set to an empty string to produce unprefixed table names (e.g. "agent_thread" instead of "org_agent_thread").'
),
addJSDoc(
optionalProp('api_name', t.tsStringKeyword()),
'API name for the agent module. Used in GraphQL naming. Defaults to "agent".'
Expand Down
Loading