diff --git a/.agents/skills/cli-public/SKILL.md b/.agents/skills/cli-public/SKILL.md index 16add3da0..62c1ec46f 100644 --- a/.agents/skills/cli-public/SKILL.md +++ b/.agents/skills/cli-public/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-public -description: CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 72 custom operations +description: CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 70 custom operations --- # cli-public -CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 72 custom operations +CLI tool (csdk) for the public API — provides CRUD commands for 148 tables and 70 custom operations ## Usage @@ -252,8 +252,6 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-spatial-relation](references/provision-spatial-relation.md) - [bootstrap-user](references/bootstrap-user.md) - [set-field-order](references/set-field-order.md) -- [append-field-smart-tags](references/append-field-smart-tags.md) -- [append-table-smart-tags](references/append-table-smart-tags.md) - [provision-unique-constraint](references/provision-unique-constraint.md) - [provision-full-text-search](references/provision-full-text-search.md) - [provision-index](references/provision-index.md) diff --git a/.agents/skills/hooks-public/SKILL.md b/.agents/skills/hooks-public/SKILL.md index c87c2e5e1..70419f595 100644 --- a/.agents/skills/hooks-public/SKILL.md +++ b/.agents/skills/hooks-public/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-public -description: React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 72 custom operations +description: React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 70 custom operations --- # hooks-public -React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 72 custom operations +React Query hooks for the public API — provides typed query and mutation hooks for 148 tables and 70 custom operations ## Usage @@ -233,8 +233,6 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-spatial-relation](references/provision-spatial-relation.md) - [bootstrap-user](references/bootstrap-user.md) - [set-field-order](references/set-field-order.md) -- [append-field-smart-tags](references/append-field-smart-tags.md) -- [append-table-smart-tags](references/append-table-smart-tags.md) - [provision-unique-constraint](references/provision-unique-constraint.md) - [provision-full-text-search](references/provision-full-text-search.md) - [provision-index](references/provision-index.md) diff --git a/.agents/skills/orm-public/SKILL.md b/.agents/skills/orm-public/SKILL.md index 7d2b5a69a..c7bbdb41d 100644 --- a/.agents/skills/orm-public/SKILL.md +++ b/.agents/skills/orm-public/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-public -description: ORM client for the public API — provides typed CRUD operations for 148 tables and 72 custom operations +description: ORM client for the public API — provides typed CRUD operations for 148 tables and 70 custom operations --- # orm-public -ORM client for the public API — provides typed CRUD operations for 148 tables and 72 custom operations +ORM client for the public API — provides typed CRUD operations for 148 tables and 70 custom operations ## Usage @@ -233,8 +233,6 @@ See the `references/` directory for detailed per-entity API documentation: - [provision-spatial-relation](references/provision-spatial-relation.md) - [bootstrap-user](references/bootstrap-user.md) - [set-field-order](references/set-field-order.md) -- [append-field-smart-tags](references/append-field-smart-tags.md) -- [append-table-smart-tags](references/append-table-smart-tags.md) - [provision-unique-constraint](references/provision-unique-constraint.md) - [provision-full-text-search](references/provision-full-text-search.md) - [provision-index](references/provision-index.md) diff --git a/sdk/constructive-cli/src/public/README.md b/sdk/constructive-cli/src/public/README.md index 98f5e6b80..b533dfad9 100644 --- a/sdk/constructive-cli/src/public/README.md +++ b/sdk/constructive-cli/src/public/README.md @@ -10,7 +10,7 @@ - **Tables:** 148 - **Custom queries:** 22 -- **Custom mutations:** 50 +- **Custom mutations:** 48 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md index 3e5b4f63f..a02b8c36a 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -222,8 +222,6 @@ csdk auth set-token | `provision-spatial-relation` | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | | `bootstrap-user` | bootstrapUser | | `set-field-order` | setFieldOrder | -| `append-field-smart-tags` | appendFieldSmartTags | -| `append-table-smart-tags` | appendTableSmartTags | | `provision-unique-constraint` | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | | `provision-full-text-search` | Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. | | `provision-index` | Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. | @@ -5510,32 +5508,6 @@ setFieldOrder | `--input.clientMutationId` | String | | `--input.fieldIds` | UUID | -### `append-field-smart-tags` - -appendFieldSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.pFieldId` | UUID | - | `--input.pTags` | JSON | - -### `append-table-smart-tags` - -appendTableSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.pTableId` | UUID | - | `--input.pTags` | JSON | - ### `provision-unique-constraint` Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. diff --git a/sdk/constructive-cli/src/public/cli/commands.ts b/sdk/constructive-cli/src/public/cli/commands.ts index 8929a56a7..7c941d9d7 100644 --- a/sdk/constructive-cli/src/public/cli/commands.ts +++ b/sdk/constructive-cli/src/public/cli/commands.ts @@ -202,8 +202,6 @@ import copyTemplateToBlueprintCmd from './commands/copy-template-to-blueprint'; import provisionSpatialRelationCmd from './commands/provision-spatial-relation'; import bootstrapUserCmd from './commands/bootstrap-user'; import setFieldOrderCmd from './commands/set-field-order'; -import appendFieldSmartTagsCmd from './commands/append-field-smart-tags'; -import appendTableSmartTagsCmd from './commands/append-table-smart-tags'; import provisionUniqueConstraintCmd from './commands/provision-unique-constraint'; import provisionFullTextSearchCmd from './commands/provision-full-text-search'; import provisionIndexCmd from './commands/provision-index'; @@ -432,8 +430,6 @@ const createCommandMap: () => Record< 'provision-spatial-relation': provisionSpatialRelationCmd, 'bootstrap-user': bootstrapUserCmd, 'set-field-order': setFieldOrderCmd, - 'append-field-smart-tags': appendFieldSmartTagsCmd, - 'append-table-smart-tags': appendTableSmartTagsCmd, 'provision-unique-constraint': provisionUniqueConstraintCmd, 'provision-full-text-search': provisionFullTextSearchCmd, 'provision-index': provisionIndexCmd, @@ -458,7 +454,7 @@ const createCommandMap: () => Record< 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n partition partition CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n database-setting databaseSetting CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n append-field-smart-tags appendFieldSmartTags\n append-table-smart-tags appendTableSmartTags\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n partition partition CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n realtime-module realtimeModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n function function CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n cors-setting corsSetting CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n api-setting apiSetting CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n pubkey-setting pubkeySetting CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n rls-setting rlsSetting CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n rls-module rlsModule CRUD operations\n database-setting databaseSetting CRUD operations\n plans-module plansModule CRUD operations\n sql-action sqlAction CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n webauthn-setting webauthnSetting CRUD operations\n app-membership appMembership CRUD operations\n billing-provider-module billingProviderModule CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/public/cli/commands/append-field-smart-tags.ts b/sdk/constructive-cli/src/public/cli/commands/append-field-smart-tags.ts deleted file mode 100644 index 45c3fba84..000000000 --- a/sdk/constructive-cli/src/public/cli/commands/append-field-smart-tags.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation appendFieldSmartTags - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { AppendFieldSmartTagsVariables } from '../../orm/mutation'; -import type { AppendFieldSmartTagsPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'append-field-smart-tags - appendFieldSmartTags\n\nUsage: append-field-smart-tags [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .appendFieldSmartTags( - parsedAnswers as unknown as AppendFieldSmartTagsVariables, - { - select: selectFields, - } as unknown as { - select: AppendFieldSmartTagsPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appendFieldSmartTags'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/append-table-smart-tags.ts b/sdk/constructive-cli/src/public/cli/commands/append-table-smart-tags.ts deleted file mode 100644 index 5ebcd22c1..000000000 --- a/sdk/constructive-cli/src/public/cli/commands/append-table-smart-tags.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation appendTableSmartTags - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { AppendTableSmartTagsVariables } from '../../orm/mutation'; -import type { AppendTableSmartTagsPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - 'append-table-smart-tags - appendTableSmartTags\n\nUsage: append-table-smart-tags [OPTIONS]\n' - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .appendTableSmartTags( - parsedAnswers as unknown as AppendTableSmartTagsVariables, - { - select: selectFields, - } as unknown as { - select: AppendTableSmartTagsPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: appendTableSmartTags'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index 952de9dbc..d3a841da9 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -6553,36 +6553,6 @@ setFieldOrder const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` -### `db.mutation.appendFieldSmartTags` - -appendFieldSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendFieldSmartTagsInput (required) | - -```typescript -const result = await db.mutation.appendFieldSmartTags({ input: { pFieldId: '', pTags: '' } }).execute(); -``` - -### `db.mutation.appendTableSmartTags` - -appendTableSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendTableSmartTagsInput (required) | - -```typescript -const result = await db.mutation.appendTableSmartTags({ input: { pTableId: '', pTags: '' } }).execute(); -``` - ### `db.mutation.provisionUniqueConstraint` Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts index 78ea53450..3a46c93c3 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -22844,16 +22844,6 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } -export interface AppendFieldSmartTagsInput { - clientMutationId?: string; - pFieldId?: string; - pTags?: Record; -} -export interface AppendTableSmartTagsInput { - clientMutationId?: string; - pTableId?: string; - pTags?: Record; -} export interface ProvisionUniqueConstraintInput { clientMutationId?: string; databaseId?: string; @@ -31366,18 +31356,6 @@ export interface SetFieldOrderPayload { export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; -export interface AppendFieldSmartTagsPayload { - clientMutationId?: string | null; -} -export type AppendFieldSmartTagsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AppendTableSmartTagsPayload { - clientMutationId?: string | null; -} -export type AppendTableSmartTagsPayloadSelect = { - clientMutationId?: boolean; -}; export interface ProvisionUniqueConstraintPayload { clientMutationId?: string | null; } diff --git a/sdk/constructive-cli/src/public/orm/mutation/index.ts b/sdk/constructive-cli/src/public/orm/mutation/index.ts index ae4e3c1e3..24af7c323 100644 --- a/sdk/constructive-cli/src/public/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/public/orm/mutation/index.ts @@ -33,8 +33,6 @@ import type { ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, - AppendFieldSmartTagsInput, - AppendTableSmartTagsInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, @@ -83,8 +81,6 @@ import type { ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, - AppendFieldSmartTagsPayload, - AppendTableSmartTagsPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, @@ -133,8 +129,6 @@ import type { ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, - AppendFieldSmartTagsPayloadSelect, - AppendTableSmartTagsPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, @@ -249,12 +243,6 @@ export interface BootstrapUserVariables { export interface SetFieldOrderVariables { input: SetFieldOrderInput; } -export interface AppendFieldSmartTagsVariables { - input: AppendFieldSmartTagsInput; -} -export interface AppendTableSmartTagsVariables { - input: AppendTableSmartTagsInput; -} /** * Variables for provisionUniqueConstraint * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. @@ -1123,64 +1111,6 @@ export function createMutationOperations(client: OrmClient) { 'SetFieldOrderPayload' ), }), - appendFieldSmartTags: ( - args: AppendFieldSmartTagsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - appendFieldSmartTags: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AppendFieldSmartTags', - fieldName: 'appendFieldSmartTags', - ...buildCustomDocument( - 'mutation', - 'AppendFieldSmartTags', - 'appendFieldSmartTags', - options.select, - args, - [ - { - name: 'input', - type: 'AppendFieldSmartTagsInput!', - }, - ], - connectionFieldsMap, - 'AppendFieldSmartTagsPayload' - ), - }), - appendTableSmartTags: ( - args: AppendTableSmartTagsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - appendTableSmartTags: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AppendTableSmartTags', - fieldName: 'appendTableSmartTags', - ...buildCustomDocument( - 'mutation', - 'AppendTableSmartTags', - 'appendTableSmartTags', - options.select, - args, - [ - { - name: 'input', - type: 'AppendTableSmartTagsInput!', - }, - ], - connectionFieldsMap, - 'AppendTableSmartTagsPayload' - ), - }), provisionUniqueConstraint: ( args: ProvisionUniqueConstraintVariables, options: { diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md index c71383cc9..5c6b6afdc 100644 --- a/sdk/constructive-react/src/public/README.md +++ b/sdk/constructive-react/src/public/README.md @@ -10,7 +10,7 @@ - **Tables:** 148 - **Custom queries:** 22 -- **Custom mutations:** 50 +- **Custom mutations:** 48 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 875b489d7..d1b8e8a71 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -872,8 +872,6 @@ function App() { | `useProvisionSpatialRelationMutation` | Mutation | Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin ↔ param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist — this is a metadata-only insert. | | `useBootstrapUserMutation` | Mutation | bootstrapUser | | `useSetFieldOrderMutation` | Mutation | setFieldOrder | -| `useAppendFieldSmartTagsMutation` | Mutation | appendFieldSmartTags | -| `useAppendTableSmartTagsMutation` | Mutation | appendTableSmartTags | | `useProvisionUniqueConstraintMutation` | Mutation | Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. | | `useProvisionFullTextSearchMutation` | Mutation | Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id. | | `useProvisionIndexMutation` | Mutation | Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id. | @@ -4538,28 +4536,6 @@ setFieldOrder |----------|------| | `input` | SetFieldOrderInput (required) | -### `useAppendFieldSmartTagsMutation` - -appendFieldSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendFieldSmartTagsInput (required) | - -### `useAppendTableSmartTagsMutation` - -appendTableSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendTableSmartTagsInput (required) | - ### `useProvisionUniqueConstraintMutation` Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index c9818c18c..8e9c484e5 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -1457,14 +1457,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'setFieldOrder', identifier] as const) : (['mutation', 'setFieldOrder'] as const), - /** Mutation key for appendFieldSmartTags */ appendFieldSmartTags: (identifier?: string) => - identifier - ? (['mutation', 'appendFieldSmartTags', identifier] as const) - : (['mutation', 'appendFieldSmartTags'] as const), - /** Mutation key for appendTableSmartTags */ appendTableSmartTags: (identifier?: string) => - identifier - ? (['mutation', 'appendTableSmartTags', identifier] as const) - : (['mutation', 'appendTableSmartTags'] as const), /** Mutation key for provisionUniqueConstraint */ provisionUniqueConstraint: ( identifier?: string ) => diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index 42069ea9f..e21e1077b 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -453,8 +453,6 @@ export * from './useCopyTemplateToBlueprintMutation'; export * from './useProvisionSpatialRelationMutation'; export * from './useBootstrapUserMutation'; export * from './useSetFieldOrderMutation'; -export * from './useAppendFieldSmartTagsMutation'; -export * from './useAppendTableSmartTagsMutation'; export * from './useProvisionUniqueConstraintMutation'; export * from './useProvisionFullTextSearchMutation'; export * from './useProvisionIndexMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useAppendFieldSmartTagsMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useAppendFieldSmartTagsMutation.ts deleted file mode 100644 index b7c6fdb30..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useAppendFieldSmartTagsMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for appendFieldSmartTags - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { AppendFieldSmartTagsVariables } from '../../orm/mutation'; -import type { - AppendFieldSmartTagsPayloadSelect, - AppendFieldSmartTagsPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { AppendFieldSmartTagsVariables } from '../../orm/mutation'; -export type { AppendFieldSmartTagsPayloadSelect } from '../../orm/input-types'; -export function useAppendFieldSmartTagsMutation( - params: { - selection: { - fields: S & AppendFieldSmartTagsPayloadSelect; - } & HookStrictSelect, AppendFieldSmartTagsPayloadSelect>; - } & Omit< - UseMutationOptions< - { - appendFieldSmartTags: InferSelectResult | null; - }, - Error, - AppendFieldSmartTagsVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - appendFieldSmartTags: InferSelectResult | null; - }, - Error, - AppendFieldSmartTagsVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.appendFieldSmartTags(), - mutationFn: (variables: AppendFieldSmartTagsVariables) => - getClient() - .mutation.appendFieldSmartTags(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useAppendTableSmartTagsMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useAppendTableSmartTagsMutation.ts deleted file mode 100644 index 4f1daf3c1..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useAppendTableSmartTagsMutation.ts +++ /dev/null @@ -1,58 +0,0 @@ -/** - * Custom mutation hook for appendTableSmartTags - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { AppendTableSmartTagsVariables } from '../../orm/mutation'; -import type { - AppendTableSmartTagsPayloadSelect, - AppendTableSmartTagsPayload, -} from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { AppendTableSmartTagsVariables } from '../../orm/mutation'; -export type { AppendTableSmartTagsPayloadSelect } from '../../orm/input-types'; -export function useAppendTableSmartTagsMutation( - params: { - selection: { - fields: S & AppendTableSmartTagsPayloadSelect; - } & HookStrictSelect, AppendTableSmartTagsPayloadSelect>; - } & Omit< - UseMutationOptions< - { - appendTableSmartTags: InferSelectResult | null; - }, - Error, - AppendTableSmartTagsVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - appendTableSmartTags: InferSelectResult | null; - }, - Error, - AppendTableSmartTagsVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.appendTableSmartTags(), - mutationFn: (variables: AppendTableSmartTagsVariables) => - getClient() - .mutation.appendTableSmartTags(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index 952de9dbc..d3a841da9 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -6553,36 +6553,6 @@ setFieldOrder const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` -### `db.mutation.appendFieldSmartTags` - -appendFieldSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendFieldSmartTagsInput (required) | - -```typescript -const result = await db.mutation.appendFieldSmartTags({ input: { pFieldId: '', pTags: '' } }).execute(); -``` - -### `db.mutation.appendTableSmartTags` - -appendTableSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendTableSmartTagsInput (required) | - -```typescript -const result = await db.mutation.appendTableSmartTags({ input: { pTableId: '', pTags: '' } }).execute(); -``` - ### `db.mutation.provisionUniqueConstraint` Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index 78ea53450..3a46c93c3 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -22844,16 +22844,6 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } -export interface AppendFieldSmartTagsInput { - clientMutationId?: string; - pFieldId?: string; - pTags?: Record; -} -export interface AppendTableSmartTagsInput { - clientMutationId?: string; - pTableId?: string; - pTags?: Record; -} export interface ProvisionUniqueConstraintInput { clientMutationId?: string; databaseId?: string; @@ -31366,18 +31356,6 @@ export interface SetFieldOrderPayload { export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; -export interface AppendFieldSmartTagsPayload { - clientMutationId?: string | null; -} -export type AppendFieldSmartTagsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AppendTableSmartTagsPayload { - clientMutationId?: string | null; -} -export type AppendTableSmartTagsPayloadSelect = { - clientMutationId?: boolean; -}; export interface ProvisionUniqueConstraintPayload { clientMutationId?: string | null; } diff --git a/sdk/constructive-react/src/public/orm/mutation/index.ts b/sdk/constructive-react/src/public/orm/mutation/index.ts index ae4e3c1e3..24af7c323 100644 --- a/sdk/constructive-react/src/public/orm/mutation/index.ts +++ b/sdk/constructive-react/src/public/orm/mutation/index.ts @@ -33,8 +33,6 @@ import type { ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, - AppendFieldSmartTagsInput, - AppendTableSmartTagsInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, @@ -83,8 +81,6 @@ import type { ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, - AppendFieldSmartTagsPayload, - AppendTableSmartTagsPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, @@ -133,8 +129,6 @@ import type { ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, - AppendFieldSmartTagsPayloadSelect, - AppendTableSmartTagsPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, @@ -249,12 +243,6 @@ export interface BootstrapUserVariables { export interface SetFieldOrderVariables { input: SetFieldOrderInput; } -export interface AppendFieldSmartTagsVariables { - input: AppendFieldSmartTagsInput; -} -export interface AppendTableSmartTagsVariables { - input: AppendTableSmartTagsInput; -} /** * Variables for provisionUniqueConstraint * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. @@ -1123,64 +1111,6 @@ export function createMutationOperations(client: OrmClient) { 'SetFieldOrderPayload' ), }), - appendFieldSmartTags: ( - args: AppendFieldSmartTagsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - appendFieldSmartTags: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AppendFieldSmartTags', - fieldName: 'appendFieldSmartTags', - ...buildCustomDocument( - 'mutation', - 'AppendFieldSmartTags', - 'appendFieldSmartTags', - options.select, - args, - [ - { - name: 'input', - type: 'AppendFieldSmartTagsInput!', - }, - ], - connectionFieldsMap, - 'AppendFieldSmartTagsPayload' - ), - }), - appendTableSmartTags: ( - args: AppendTableSmartTagsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - appendTableSmartTags: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AppendTableSmartTags', - fieldName: 'appendTableSmartTags', - ...buildCustomDocument( - 'mutation', - 'AppendTableSmartTags', - 'appendTableSmartTags', - options.select, - args, - [ - { - name: 'input', - type: 'AppendTableSmartTagsInput!', - }, - ], - connectionFieldsMap, - 'AppendTableSmartTagsPayload' - ), - }), provisionUniqueConstraint: ( args: ProvisionUniqueConstraintVariables, options: { diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index 0d0641d18..a5a2a55d4 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -12103,16 +12103,6 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } -export interface AppendFieldSmartTagsInput { - clientMutationId?: string; - pFieldId?: string; - pTags?: unknown; -} -export interface AppendTableSmartTagsInput { - clientMutationId?: string; - pTableId?: string; - pTags?: unknown; -} export interface ProvisionUniqueConstraintInput { clientMutationId?: string; databaseId?: string; @@ -20822,12 +20812,6 @@ export interface BootstrapUserPayload { export interface SetFieldOrderPayload { clientMutationId?: string | null; } -export interface AppendFieldSmartTagsPayload { - clientMutationId?: string | null; -} -export interface AppendTableSmartTagsPayload { - clientMutationId?: string | null; -} export interface ProvisionUniqueConstraintPayload { clientMutationId?: string | null; } diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index 75c7a16b8..8ee2bf680 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -36535,18 +36535,6 @@ type Mutation { """ input: SetFieldOrderInput! ): SetFieldOrderPayload - appendFieldSmartTags( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AppendFieldSmartTagsInput! - ): AppendFieldSmartTagsPayload - appendTableSmartTags( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: AppendTableSmartTagsInput! - ): AppendTableSmartTagsPayload """ Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. @@ -40802,56 +40790,6 @@ input SetFieldOrderInput { fieldIds: [UUID] } -"""The output of our `appendFieldSmartTags` mutation.""" -type AppendFieldSmartTagsPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `appendFieldSmartTags` mutation.""" -input AppendFieldSmartTagsInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - pFieldId: UUID - pTags: JSON -} - -"""The output of our `appendTableSmartTags` mutation.""" -type AppendTableSmartTagsPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `appendTableSmartTags` mutation.""" -input AppendTableSmartTagsInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - pTableId: UUID - pTags: JSON -} - """The output of our `provisionUniqueConstraint` mutation.""" type ProvisionUniqueConstraintPayload { """ diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index 42e63c413..df02e51fe 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -10,7 +10,7 @@ - **Tables:** 148 - **Custom queries:** 22 -- **Custom mutations:** 50 +- **Custom mutations:** 48 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index 952de9dbc..d3a841da9 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -6553,36 +6553,6 @@ setFieldOrder const result = await db.mutation.setFieldOrder({ input: { fieldIds: '' } }).execute(); ``` -### `db.mutation.appendFieldSmartTags` - -appendFieldSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendFieldSmartTagsInput (required) | - -```typescript -const result = await db.mutation.appendFieldSmartTags({ input: { pFieldId: '', pTags: '' } }).execute(); -``` - -### `db.mutation.appendTableSmartTags` - -appendTableSmartTags - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | AppendTableSmartTagsInput (required) | - -```typescript -const result = await db.mutation.appendTableSmartTags({ input: { pTableId: '', pTags: '' } }).execute(); -``` - ### `db.mutation.provisionUniqueConstraint` Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 78ea53450..3a46c93c3 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -22844,16 +22844,6 @@ export interface SetFieldOrderInput { clientMutationId?: string; fieldIds?: string[]; } -export interface AppendFieldSmartTagsInput { - clientMutationId?: string; - pFieldId?: string; - pTags?: Record; -} -export interface AppendTableSmartTagsInput { - clientMutationId?: string; - pTableId?: string; - pTags?: Record; -} export interface ProvisionUniqueConstraintInput { clientMutationId?: string; databaseId?: string; @@ -31366,18 +31356,6 @@ export interface SetFieldOrderPayload { export type SetFieldOrderPayloadSelect = { clientMutationId?: boolean; }; -export interface AppendFieldSmartTagsPayload { - clientMutationId?: string | null; -} -export type AppendFieldSmartTagsPayloadSelect = { - clientMutationId?: boolean; -}; -export interface AppendTableSmartTagsPayload { - clientMutationId?: string | null; -} -export type AppendTableSmartTagsPayloadSelect = { - clientMutationId?: boolean; -}; export interface ProvisionUniqueConstraintPayload { clientMutationId?: string | null; } diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts index ae4e3c1e3..24af7c323 100644 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -33,8 +33,6 @@ import type { ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, - AppendFieldSmartTagsInput, - AppendTableSmartTagsInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, @@ -83,8 +81,6 @@ import type { ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, - AppendFieldSmartTagsPayload, - AppendTableSmartTagsPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, @@ -133,8 +129,6 @@ import type { ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, - AppendFieldSmartTagsPayloadSelect, - AppendTableSmartTagsPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, @@ -249,12 +243,6 @@ export interface BootstrapUserVariables { export interface SetFieldOrderVariables { input: SetFieldOrderInput; } -export interface AppendFieldSmartTagsVariables { - input: AppendFieldSmartTagsInput; -} -export interface AppendTableSmartTagsVariables { - input: AppendTableSmartTagsInput; -} /** * Variables for provisionUniqueConstraint * Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists. @@ -1123,64 +1111,6 @@ export function createMutationOperations(client: OrmClient) { 'SetFieldOrderPayload' ), }), - appendFieldSmartTags: ( - args: AppendFieldSmartTagsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - appendFieldSmartTags: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AppendFieldSmartTags', - fieldName: 'appendFieldSmartTags', - ...buildCustomDocument( - 'mutation', - 'AppendFieldSmartTags', - 'appendFieldSmartTags', - options.select, - args, - [ - { - name: 'input', - type: 'AppendFieldSmartTagsInput!', - }, - ], - connectionFieldsMap, - 'AppendFieldSmartTagsPayload' - ), - }), - appendTableSmartTags: ( - args: AppendTableSmartTagsVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - appendTableSmartTags: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'AppendTableSmartTags', - fieldName: 'appendTableSmartTags', - ...buildCustomDocument( - 'mutation', - 'AppendTableSmartTags', - 'appendTableSmartTags', - options.select, - args, - [ - { - name: 'input', - type: 'AppendTableSmartTagsInput!', - }, - ], - connectionFieldsMap, - 'AppendTableSmartTagsPayload' - ), - }), provisionUniqueConstraint: ( args: ProvisionUniqueConstraintVariables, options: {