/**
 * Centralized mutation key factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
// ============================================================================
// Mutation keys for tracking in-flight mutations
//
// Benefits:
// - Track mutation state with useIsMutating
// - Implement optimistic updates with proper rollback
// - Deduplicate identical mutations
// - Coordinate related mutations
// ============================================================================
// ============================================================================
// Entity Mutation Keys
// ============================================================================
export const functionMutationKeys = {
    /** All function mutation keys */ all: ['mutation', 'function'],
    /** Create function mutation key */ create: () => ['mutation', 'function', 'create'],
    /** Update function mutation key */ update: (id) => ['mutation', 'function', 'update', id],
    /** Delete function mutation key */ delete: (id) => ['mutation', 'function', 'delete', id],
};
export const schemaMutationKeys = {
    /** All schema mutation keys */ all: ['mutation', 'schema'],
    /** Create schema mutation key */ create: () => ['mutation', 'schema', 'create'],
    /** Update schema mutation key */ update: (id) => ['mutation', 'schema', 'update', id],
    /** Delete schema mutation key */ delete: (id) => ['mutation', 'schema', 'delete', id],
};
export const tableMutationKeys = {
    /** All table mutation keys */ all: ['mutation', 'table'],
    /** Create table mutation key */ create: () => ['mutation', 'table', 'create'],
    /** Update table mutation key */ update: (id) => ['mutation', 'table', 'update', id],
    /** Delete table mutation key */ delete: (id) => ['mutation', 'table', 'delete', id],
};
export const checkConstraintMutationKeys = {
    /** All checkConstraint mutation keys */ all: ['mutation', 'checkconstraint'],
    /** Create checkConstraint mutation key */ create: () => ['mutation', 'checkconstraint', 'create'],
    /** Update checkConstraint mutation key */ update: (id) => ['mutation', 'checkconstraint', 'update', id],
    /** Delete checkConstraint mutation key */ delete: (id) => ['mutation', 'checkconstraint', 'delete', id],
};
export const fieldMutationKeys = {
    /** All field mutation keys */ all: ['mutation', 'field'],
    /** Create field mutation key */ create: () => ['mutation', 'field', 'create'],
    /** Update field mutation key */ update: (id) => ['mutation', 'field', 'update', id],
    /** Delete field mutation key */ delete: (id) => ['mutation', 'field', 'delete', id],
};
export const spatialRelationMutationKeys = {
    /** All spatialRelation mutation keys */ all: ['mutation', 'spatialrelation'],
    /** Create spatialRelation mutation key */ create: () => ['mutation', 'spatialrelation', 'create'],
    /** Update spatialRelation mutation key */ update: (id) => ['mutation', 'spatialrelation', 'update', id],
    /** Delete spatialRelation mutation key */ delete: (id) => ['mutation', 'spatialrelation', 'delete', id],
};
export const foreignKeyConstraintMutationKeys = {
    /** All foreignKeyConstraint mutation keys */ all: ['mutation', 'foreignkeyconstraint'],
    /** Create foreignKeyConstraint mutation key */ create: () => ['mutation', 'foreignkeyconstraint', 'create'],
    /** Update foreignKeyConstraint mutation key */ update: (id) => ['mutation', 'foreignkeyconstraint', 'update', id],
    /** Delete foreignKeyConstraint mutation key */ delete: (id) => ['mutation', 'foreignkeyconstraint', 'delete', id],
};
export const fullTextSearchMutationKeys = {
    /** All fullTextSearch mutation keys */ all: ['mutation', 'fulltextsearch'],
    /** Create fullTextSearch mutation key */ create: () => ['mutation', 'fulltextsearch', 'create'],
    /** Update fullTextSearch mutation key */ update: (id) => ['mutation', 'fulltextsearch', 'update', id],
    /** Delete fullTextSearch mutation key */ delete: (id) => ['mutation', 'fulltextsearch', 'delete', id],
};
export const indexMutationKeys = {
    /** All index mutation keys */ all: ['mutation', 'index'],
    /** Create index mutation key */ create: () => ['mutation', 'index', 'create'],
    /** Update index mutation key */ update: (id) => ['mutation', 'index', 'update', id],
    /** Delete index mutation key */ delete: (id) => ['mutation', 'index', 'delete', id],
};
export const policyMutationKeys = {
    /** All policy mutation keys */ all: ['mutation', 'policy'],
    /** Create policy mutation key */ create: () => ['mutation', 'policy', 'create'],
    /** Update policy mutation key */ update: (id) => ['mutation', 'policy', 'update', id],
    /** Delete policy mutation key */ delete: (id) => ['mutation', 'policy', 'delete', id],
};
export const primaryKeyConstraintMutationKeys = {
    /** All primaryKeyConstraint mutation keys */ all: ['mutation', 'primarykeyconstraint'],
    /** Create primaryKeyConstraint mutation key */ create: () => ['mutation', 'primarykeyconstraint', 'create'],
    /** Update primaryKeyConstraint mutation key */ update: (id) => ['mutation', 'primarykeyconstraint', 'update', id],
    /** Delete primaryKeyConstraint mutation key */ delete: (id) => ['mutation', 'primarykeyconstraint', 'delete', id],
};
export const tableGrantMutationKeys = {
    /** All tableGrant mutation keys */ all: ['mutation', 'tablegrant'],
    /** Create tableGrant mutation key */ create: () => ['mutation', 'tablegrant', 'create'],
    /** Update tableGrant mutation key */ update: (id) => ['mutation', 'tablegrant', 'update', id],
    /** Delete tableGrant mutation key */ delete: (id) => ['mutation', 'tablegrant', 'delete', id],
};
export const triggerMutationKeys = {
    /** All trigger mutation keys */ all: ['mutation', 'trigger'],
    /** Create trigger mutation key */ create: () => ['mutation', 'trigger', 'create'],
    /** Update trigger mutation key */ update: (id) => ['mutation', 'trigger', 'update', id],
    /** Delete trigger mutation key */ delete: (id) => ['mutation', 'trigger', 'delete', id],
};
export const uniqueConstraintMutationKeys = {
    /** All uniqueConstraint mutation keys */ all: ['mutation', 'uniqueconstraint'],
    /** Create uniqueConstraint mutation key */ create: () => ['mutation', 'uniqueconstraint', 'create'],
    /** Update uniqueConstraint mutation key */ update: (id) => ['mutation', 'uniqueconstraint', 'update', id],
    /** Delete uniqueConstraint mutation key */ delete: (id) => ['mutation', 'uniqueconstraint', 'delete', id],
};
export const viewMutationKeys = {
    /** All view mutation keys */ all: ['mutation', 'view'],
    /** Create view mutation key */ create: () => ['mutation', 'view', 'create'],
    /** Update view mutation key */ update: (id) => ['mutation', 'view', 'update', id],
    /** Delete view mutation key */ delete: (id) => ['mutation', 'view', 'delete', id],
};
export const viewTableMutationKeys = {
    /** All viewTable mutation keys */ all: ['mutation', 'viewtable'],
    /** Create viewTable mutation key */ create: () => ['mutation', 'viewtable', 'create'],
    /** Update viewTable mutation key */ update: (id) => ['mutation', 'viewtable', 'update', id],
    /** Delete viewTable mutation key */ delete: (id) => ['mutation', 'viewtable', 'delete', id],
};
export const viewGrantMutationKeys = {
    /** All viewGrant mutation keys */ all: ['mutation', 'viewgrant'],
    /** Create viewGrant mutation key */ create: () => ['mutation', 'viewgrant', 'create'],
    /** Update viewGrant mutation key */ update: (id) => ['mutation', 'viewgrant', 'update', id],
    /** Delete viewGrant mutation key */ delete: (id) => ['mutation', 'viewgrant', 'delete', id],
};
export const viewRuleMutationKeys = {
    /** All viewRule mutation keys */ all: ['mutation', 'viewrule'],
    /** Create viewRule mutation key */ create: () => ['mutation', 'viewrule', 'create'],
    /** Update viewRule mutation key */ update: (id) => ['mutation', 'viewrule', 'update', id],
    /** Delete viewRule mutation key */ delete: (id) => ['mutation', 'viewrule', 'delete', id],
};
export const embeddingChunkMutationKeys = {
    /** All embeddingChunk mutation keys */ all: ['mutation', 'embeddingchunk'],
    /** Create embeddingChunk mutation key */ create: () => ['mutation', 'embeddingchunk', 'create'],
    /** Update embeddingChunk mutation key */ update: (id) => ['mutation', 'embeddingchunk', 'update', id],
    /** Delete embeddingChunk mutation key */ delete: (id) => ['mutation', 'embeddingchunk', 'delete', id],
};
export const schemaGrantMutationKeys = {
    /** All schemaGrant mutation keys */ all: ['mutation', 'schemagrant'],
    /** Create schemaGrant mutation key */ create: () => ['mutation', 'schemagrant', 'create'],
    /** Update schemaGrant mutation key */ update: (id) => ['mutation', 'schemagrant', 'update', id],
    /** Delete schemaGrant mutation key */ delete: (id) => ['mutation', 'schemagrant', 'delete', id],
};
export const defaultPrivilegeMutationKeys = {
    /** All defaultPrivilege mutation keys */ all: ['mutation', 'defaultprivilege'],
    /** Create defaultPrivilege mutation key */ create: () => ['mutation', 'defaultprivilege', 'create'],
    /** Update defaultPrivilege mutation key */ update: (id) => ['mutation', 'defaultprivilege', 'update', id],
    /** Delete defaultPrivilege mutation key */ delete: (id) => ['mutation', 'defaultprivilege', 'delete', id],
};
export const enumMutationKeys = {
    /** All enum mutation keys */ all: ['mutation', 'enum'],
    /** Create enum mutation key */ create: () => ['mutation', 'enum', 'create'],
    /** Update enum mutation key */ update: (id) => ['mutation', 'enum', 'update', id],
    /** Delete enum mutation key */ delete: (id) => ['mutation', 'enum', 'delete', id],
};
export const compositeTypeMutationKeys = {
    /** All compositeType mutation keys */ all: ['mutation', 'compositetype'],
    /** Create compositeType mutation key */ create: () => ['mutation', 'compositetype', 'create'],
    /** Update compositeType mutation key */ update: (id) => ['mutation', 'compositetype', 'update', id],
    /** Delete compositeType mutation key */ delete: (id) => ['mutation', 'compositetype', 'delete', id],
};
export const apiSchemaMutationKeys = {
    /** All apiSchema mutation keys */ all: ['mutation', 'apischema'],
    /** Create apiSchema mutation key */ create: () => ['mutation', 'apischema', 'create'],
    /** Update apiSchema mutation key */ update: (id) => ['mutation', 'apischema', 'update', id],
    /** Delete apiSchema mutation key */ delete: (id) => ['mutation', 'apischema', 'delete', id],
};
export const apiModuleMutationKeys = {
    /** All apiModule mutation keys */ all: ['mutation', 'apimodule'],
    /** Create apiModule mutation key */ create: () => ['mutation', 'apimodule', 'create'],
    /** Update apiModule mutation key */ update: (id) => ['mutation', 'apimodule', 'update', id],
    /** Delete apiModule mutation key */ delete: (id) => ['mutation', 'apimodule', 'delete', id],
};
export const domainMutationKeys = {
    /** All domain mutation keys */ all: ['mutation', 'domain'],
    /** Create domain mutation key */ create: () => ['mutation', 'domain', 'create'],
    /** Update domain mutation key */ update: (id) => ['mutation', 'domain', 'update', id],
    /** Delete domain mutation key */ delete: (id) => ['mutation', 'domain', 'delete', id],
};
export const siteMetadatumMutationKeys = {
    /** All siteMetadatum mutation keys */ all: ['mutation', 'sitemetadatum'],
    /** Create siteMetadatum mutation key */ create: () => ['mutation', 'sitemetadatum', 'create'],
    /** Update siteMetadatum mutation key */ update: (id) => ['mutation', 'sitemetadatum', 'update', id],
    /** Delete siteMetadatum mutation key */ delete: (id) => ['mutation', 'sitemetadatum', 'delete', id],
};
export const siteModuleMutationKeys = {
    /** All siteModule mutation keys */ all: ['mutation', 'sitemodule'],
    /** Create siteModule mutation key */ create: () => ['mutation', 'sitemodule', 'create'],
    /** Update siteModule mutation key */ update: (id) => ['mutation', 'sitemodule', 'update', id],
    /** Delete siteModule mutation key */ delete: (id) => ['mutation', 'sitemodule', 'delete', id],
};
export const siteThemeMutationKeys = {
    /** All siteTheme mutation keys */ all: ['mutation', 'sitetheme'],
    /** Create siteTheme mutation key */ create: () => ['mutation', 'sitetheme', 'create'],
    /** Update siteTheme mutation key */ update: (id) => ['mutation', 'sitetheme', 'update', id],
    /** Delete siteTheme mutation key */ delete: (id) => ['mutation', 'sitetheme', 'delete', id],
};
export const corsSettingMutationKeys = {
    /** All corsSetting mutation keys */ all: ['mutation', 'corssetting'],
    /** Create corsSetting mutation key */ create: () => ['mutation', 'corssetting', 'create'],
    /** Update corsSetting mutation key */ update: (id) => ['mutation', 'corssetting', 'update', id],
    /** Delete corsSetting mutation key */ delete: (id) => ['mutation', 'corssetting', 'delete', id],
};
export const triggerFunctionMutationKeys = {
    /** All triggerFunction mutation keys */ all: ['mutation', 'triggerfunction'],
    /** Create triggerFunction mutation key */ create: () => ['mutation', 'triggerfunction', 'create'],
    /** Update triggerFunction mutation key */ update: (id) => ['mutation', 'triggerfunction', 'update', id],
    /** Delete triggerFunction mutation key */ delete: (id) => ['mutation', 'triggerfunction', 'delete', id],
};
export const partitionMutationKeys = {
    /** All partition mutation keys */ all: ['mutation', 'partition'],
    /** Create partition mutation key */ create: () => ['mutation', 'partition', 'create'],
    /** Update partition mutation key */ update: (id) => ['mutation', 'partition', 'update', id],
    /** Delete partition mutation key */ delete: (id) => ['mutation', 'partition', 'delete', id],
};
export const databaseTransferMutationKeys = {
    /** All databaseTransfer mutation keys */ all: ['mutation', 'databasetransfer'],
    /** Create databaseTransfer mutation key */ create: () => ['mutation', 'databasetransfer', 'create'],
    /** Update databaseTransfer mutation key */ update: (id) => ['mutation', 'databasetransfer', 'update', id],
    /** Delete databaseTransfer mutation key */ delete: (id) => ['mutation', 'databasetransfer', 'delete', id],
};
export const apiMutationKeys = {
    /** All api mutation keys */ all: ['mutation', 'api'],
    /** Create api mutation key */ create: () => ['mutation', 'api', 'create'],
    /** Update api mutation key */ update: (id) => ['mutation', 'api', 'update', id],
    /** Delete api mutation key */ delete: (id) => ['mutation', 'api', 'delete', id],
};
export const siteMutationKeys = {
    /** All site mutation keys */ all: ['mutation', 'site'],
    /** Create site mutation key */ create: () => ['mutation', 'site', 'create'],
    /** Update site mutation key */ update: (id) => ['mutation', 'site', 'update', id],
    /** Delete site mutation key */ delete: (id) => ['mutation', 'site', 'delete', id],
};
export const appMutationKeys = {
    /** All app mutation keys */ all: ['mutation', 'app'],
    /** Create app mutation key */ create: () => ['mutation', 'app', 'create'],
    /** Update app mutation key */ update: (id) => ['mutation', 'app', 'update', id],
    /** Delete app mutation key */ delete: (id) => ['mutation', 'app', 'delete', id],
};
export const apiSettingMutationKeys = {
    /** All apiSetting mutation keys */ all: ['mutation', 'apisetting'],
    /** Create apiSetting mutation key */ create: () => ['mutation', 'apisetting', 'create'],
    /** Update apiSetting mutation key */ update: (id) => ['mutation', 'apisetting', 'update', id],
    /** Delete apiSetting mutation key */ delete: (id) => ['mutation', 'apisetting', 'delete', id],
};
export const migrateFileMutationKeys = {
    /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'],
    /** Create migrateFile mutation key */ create: () => ['mutation', 'migratefile', 'create'],
    /** Update migrateFile mutation key */ update: (id) => ['mutation', 'migratefile', 'update', id],
    /** Delete migrateFile mutation key */ delete: (id) => ['mutation', 'migratefile', 'delete', id],
};
export const nodeTypeRegistryMutationKeys = {
    /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'],
    /** Create nodeTypeRegistry mutation key */ create: () => ['mutation', 'nodetyperegistry', 'create'],
    /** Update nodeTypeRegistry mutation key */ update: (id) => ['mutation', 'nodetyperegistry', 'update', id],
    /** Delete nodeTypeRegistry mutation key */ delete: (id) => ['mutation', 'nodetyperegistry', 'delete', id],
};
export const pubkeySettingMutationKeys = {
    /** All pubkeySetting mutation keys */ all: ['mutation', 'pubkeysetting'],
    /** Create pubkeySetting mutation key */ create: () => ['mutation', 'pubkeysetting', 'create'],
    /** Update pubkeySetting mutation key */ update: (id) => ['mutation', 'pubkeysetting', 'update', id],
    /** Delete pubkeySetting mutation key */ delete: (id) => ['mutation', 'pubkeysetting', 'delete', id],
};
export const databaseMutationKeys = {
    /** All database mutation keys */ all: ['mutation', 'database'],
    /** Create database mutation key */ create: () => ['mutation', 'database', 'create'],
    /** Update database mutation key */ update: (id) => ['mutation', 'database', 'update', id],
    /** Delete database mutation key */ delete: (id) => ['mutation', 'database', 'delete', id],
};
export const rlsSettingMutationKeys = {
    /** All rlsSetting mutation keys */ all: ['mutation', 'rlssetting'],
    /** Create rlsSetting mutation key */ create: () => ['mutation', 'rlssetting', 'create'],
    /** Update rlsSetting mutation key */ update: (id) => ['mutation', 'rlssetting', 'update', id],
    /** Delete rlsSetting mutation key */ delete: (id) => ['mutation', 'rlssetting', 'delete', id],
};
export const sqlActionMutationKeys = {
    /** All sqlAction mutation keys */ all: ['mutation', 'sqlaction'],
    /** Create sqlAction mutation key */ create: () => ['mutation', 'sqlaction', 'create'],
    /** Update sqlAction mutation key */ update: (id) => ['mutation', 'sqlaction', 'update', id],
    /** Delete sqlAction mutation key */ delete: (id) => ['mutation', 'sqlaction', 'delete', id],
};
export const databaseSettingMutationKeys = {
    /** All databaseSetting mutation keys */ all: ['mutation', 'databasesetting'],
    /** Create databaseSetting mutation key */ create: () => ['mutation', 'databasesetting', 'create'],
    /** Update databaseSetting mutation key */ update: (id) => ['mutation', 'databasesetting', 'update', id],
    /** Delete databaseSetting mutation key */ delete: (id) => ['mutation', 'databasesetting', 'delete', id],
};
export const astMigrationMutationKeys = {
    /** All astMigration mutation keys */ all: ['mutation', 'astmigration'],
    /** Create astMigration mutation key */ create: () => ['mutation', 'astmigration', 'create'],
    /** Update astMigration mutation key */ update: (id) => ['mutation', 'astmigration', 'update', id],
    /** Delete astMigration mutation key */ delete: (id) => ['mutation', 'astmigration', 'delete', id],
};
export const webauthnSettingMutationKeys = {
    /** All webauthnSetting mutation keys */ all: ['mutation', 'webauthnsetting'],
    /** Create webauthnSetting mutation key */ create: () => ['mutation', 'webauthnsetting', 'create'],
    /** Update webauthnSetting mutation key */ update: (id) => ['mutation', 'webauthnsetting', 'update', id],
    /** Delete webauthnSetting mutation key */ delete: (id) => ['mutation', 'webauthnsetting', 'delete', id],
};
// ============================================================================
// Custom Mutation Keys
// ============================================================================
export const customMutationKeys = {
    /** Mutation key for acceptDatabaseTransfer */ acceptDatabaseTransfer: (identifier) => identifier
        ? ['mutation', 'acceptDatabaseTransfer', identifier]
        : ['mutation', 'acceptDatabaseTransfer'],
    /** Mutation key for cancelDatabaseTransfer */ cancelDatabaseTransfer: (identifier) => identifier
        ? ['mutation', 'cancelDatabaseTransfer', identifier]
        : ['mutation', 'cancelDatabaseTransfer'],
    /** Mutation key for rejectDatabaseTransfer */ rejectDatabaseTransfer: (identifier) => identifier
        ? ['mutation', 'rejectDatabaseTransfer', identifier]
        : ['mutation', 'rejectDatabaseTransfer'],
    /** Mutation key for setFieldOrder */ setFieldOrder: (identifier) => identifier
        ? ['mutation', 'setFieldOrder', identifier]
        : ['mutation', 'setFieldOrder'],
    /** Mutation key for applyRls */ applyRls: (identifier) => identifier
        ? ['mutation', 'applyRls', identifier]
        : ['mutation', 'applyRls'],
    /** Mutation key for requestDatabase */ requestDatabase: (identifier) => identifier
        ? ['mutation', 'requestDatabase', identifier]
        : ['mutation', 'requestDatabase'],
    /** Mutation key for provisionBucket */ provisionBucket: (identifier) => identifier
        ? ['mutation', 'provisionBucket', identifier]
        : ['mutation', 'provisionBucket'],
};
/**

// ============================================================================
// Unified Mutation Key Store
// ============================================================================

 * Unified mutation key store
 *
 * Use this for tracking in-flight mutations with useIsMutating.
 *
 * @example
 * ```ts
 * import { useIsMutating } from '@tanstack/react-query';
 * import { mutationKeys } from './generated';
 *
 * // Check if any user mutations are in progress
 * const isMutatingUser = useIsMutating({ mutationKey: mutationKeys.user.all });
 *
 * // Check if a specific user is being updated
 * const isUpdating = useIsMutating({ mutationKey: mutationKeys.user.update(userId) });
 * ```
 */
export const mutationKeys = {
    function: functionMutationKeys,
    schema: schemaMutationKeys,
    table: tableMutationKeys,
    checkConstraint: checkConstraintMutationKeys,
    field: fieldMutationKeys,
    spatialRelation: spatialRelationMutationKeys,
    foreignKeyConstraint: foreignKeyConstraintMutationKeys,
    fullTextSearch: fullTextSearchMutationKeys,
    index: indexMutationKeys,
    policy: policyMutationKeys,
    primaryKeyConstraint: primaryKeyConstraintMutationKeys,
    tableGrant: tableGrantMutationKeys,
    trigger: triggerMutationKeys,
    uniqueConstraint: uniqueConstraintMutationKeys,
    view: viewMutationKeys,
    viewTable: viewTableMutationKeys,
    viewGrant: viewGrantMutationKeys,
    viewRule: viewRuleMutationKeys,
    embeddingChunk: embeddingChunkMutationKeys,
    schemaGrant: schemaGrantMutationKeys,
    defaultPrivilege: defaultPrivilegeMutationKeys,
    enum: enumMutationKeys,
    compositeType: compositeTypeMutationKeys,
    apiSchema: apiSchemaMutationKeys,
    apiModule: apiModuleMutationKeys,
    domain: domainMutationKeys,
    siteMetadatum: siteMetadatumMutationKeys,
    siteModule: siteModuleMutationKeys,
    siteTheme: siteThemeMutationKeys,
    corsSetting: corsSettingMutationKeys,
    triggerFunction: triggerFunctionMutationKeys,
    partition: partitionMutationKeys,
    databaseTransfer: databaseTransferMutationKeys,
    api: apiMutationKeys,
    site: siteMutationKeys,
    app: appMutationKeys,
    apiSetting: apiSettingMutationKeys,
    migrateFile: migrateFileMutationKeys,
    nodeTypeRegistry: nodeTypeRegistryMutationKeys,
    pubkeySetting: pubkeySettingMutationKeys,
    database: databaseMutationKeys,
    rlsSetting: rlsSettingMutationKeys,
    sqlAction: sqlActionMutationKeys,
    databaseSetting: databaseSettingMutationKeys,
    astMigration: astMigrationMutationKeys,
    webauthnSetting: webauthnSettingMutationKeys,
    custom: customMutationKeys,
};
