/**
 * Cache invalidation helpers
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { functionKeys, schemaKeys, tableKeys, checkConstraintKeys, fieldKeys, spatialRelationKeys, foreignKeyConstraintKeys, fullTextSearchKeys, indexKeys, policyKeys, primaryKeyConstraintKeys, tableGrantKeys, triggerKeys, uniqueConstraintKeys, viewKeys, viewTableKeys, viewGrantKeys, viewRuleKeys, embeddingChunkKeys, schemaGrantKeys, defaultPrivilegeKeys, enumKeys, compositeTypeKeys, apiSchemaKeys, apiModuleKeys, domainKeys, siteMetadatumKeys, siteModuleKeys, siteThemeKeys, corsSettingKeys, triggerFunctionKeys, partitionKeys, databaseTransferKeys, apiKeys, siteKeys, appKeys, apiSettingKeys, migrateFileKeys, nodeTypeRegistryKeys, pubkeySettingKeys, databaseKeys, rlsSettingKeys, sqlActionKeys, databaseSettingKeys, webauthnSettingKeys, astMigrationKeys, } from './query-keys';
/**
// ============================================================================
// Invalidation Helpers
// ============================================================================

 * Type-safe query invalidation helpers
 *
 * @example
 * ```ts
 * // Invalidate all user queries
 * invalidate.user.all(queryClient);
 *
 * // Invalidate user lists
 * invalidate.user.lists(queryClient);
 *
 * // Invalidate specific user
 * invalidate.user.detail(queryClient, userId);
 * ```
 */
export const invalidate = {
    /** Invalidate function queries */ function: {
        /** Invalidate all function queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionKeys.all,
        }),
        /** Invalidate function list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: functionKeys.lists(),
        }),
        /** Invalidate a specific function */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: functionKeys.detail(id),
        }),
    },
    /** Invalidate schema queries */ schema: {
        /** Invalidate all schema queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: schemaKeys.all,
        }),
        /** Invalidate schema list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: schemaKeys.lists(),
        }),
        /** Invalidate a specific schema */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: schemaKeys.detail(id),
        }),
    },
    /** Invalidate table queries */ table: {
        /** Invalidate all table queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: tableKeys.all,
        }),
        /** Invalidate table list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: tableKeys.lists(),
        }),
        /** Invalidate a specific table */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: tableKeys.detail(id),
        }),
    },
    /** Invalidate checkConstraint queries */ checkConstraint: {
        /** Invalidate all checkConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: checkConstraintKeys.all,
        }),
        /** Invalidate checkConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: checkConstraintKeys.lists(),
        }),
        /** Invalidate a specific checkConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: checkConstraintKeys.detail(id),
        }),
    },
    /** Invalidate field queries */ field: {
        /** Invalidate all field queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: fieldKeys.all,
        }),
        /** Invalidate field list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: fieldKeys.lists(),
        }),
        /** Invalidate a specific field */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: fieldKeys.detail(id),
        }),
    },
    /** Invalidate spatialRelation queries */ spatialRelation: {
        /** Invalidate all spatialRelation queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: spatialRelationKeys.all,
        }),
        /** Invalidate spatialRelation list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: spatialRelationKeys.lists(),
        }),
        /** Invalidate a specific spatialRelation */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: spatialRelationKeys.detail(id),
        }),
    },
    /** Invalidate foreignKeyConstraint queries */ foreignKeyConstraint: {
        /** Invalidate all foreignKeyConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: foreignKeyConstraintKeys.all,
        }),
        /** Invalidate foreignKeyConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: foreignKeyConstraintKeys.lists(),
        }),
        /** Invalidate a specific foreignKeyConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: foreignKeyConstraintKeys.detail(id),
        }),
    },
    /** Invalidate fullTextSearch queries */ fullTextSearch: {
        /** Invalidate all fullTextSearch queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: fullTextSearchKeys.all,
        }),
        /** Invalidate fullTextSearch list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: fullTextSearchKeys.lists(),
        }),
        /** Invalidate a specific fullTextSearch */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: fullTextSearchKeys.detail(id),
        }),
    },
    /** Invalidate index queries */ index: {
        /** Invalidate all index queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: indexKeys.all,
        }),
        /** Invalidate index list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: indexKeys.lists(),
        }),
        /** Invalidate a specific index */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: indexKeys.detail(id),
        }),
    },
    /** Invalidate policy queries */ policy: {
        /** Invalidate all policy queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: policyKeys.all,
        }),
        /** Invalidate policy list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: policyKeys.lists(),
        }),
        /** Invalidate a specific policy */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: policyKeys.detail(id),
        }),
    },
    /** Invalidate primaryKeyConstraint queries */ primaryKeyConstraint: {
        /** Invalidate all primaryKeyConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: primaryKeyConstraintKeys.all,
        }),
        /** Invalidate primaryKeyConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: primaryKeyConstraintKeys.lists(),
        }),
        /** Invalidate a specific primaryKeyConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: primaryKeyConstraintKeys.detail(id),
        }),
    },
    /** Invalidate tableGrant queries */ tableGrant: {
        /** Invalidate all tableGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: tableGrantKeys.all,
        }),
        /** Invalidate tableGrant list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: tableGrantKeys.lists(),
        }),
        /** Invalidate a specific tableGrant */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: tableGrantKeys.detail(id),
        }),
    },
    /** Invalidate trigger queries */ trigger: {
        /** Invalidate all trigger queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: triggerKeys.all,
        }),
        /** Invalidate trigger list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: triggerKeys.lists(),
        }),
        /** Invalidate a specific trigger */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: triggerKeys.detail(id),
        }),
    },
    /** Invalidate uniqueConstraint queries */ uniqueConstraint: {
        /** Invalidate all uniqueConstraint queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: uniqueConstraintKeys.all,
        }),
        /** Invalidate uniqueConstraint list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: uniqueConstraintKeys.lists(),
        }),
        /** Invalidate a specific uniqueConstraint */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: uniqueConstraintKeys.detail(id),
        }),
    },
    /** Invalidate view queries */ view: {
        /** Invalidate all view queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewKeys.all,
        }),
        /** Invalidate view list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewKeys.lists(),
        }),
        /** Invalidate a specific view */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: viewKeys.detail(id),
        }),
    },
    /** Invalidate viewTable queries */ viewTable: {
        /** Invalidate all viewTable queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewTableKeys.all,
        }),
        /** Invalidate viewTable list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewTableKeys.lists(),
        }),
        /** Invalidate a specific viewTable */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: viewTableKeys.detail(id),
        }),
    },
    /** Invalidate viewGrant queries */ viewGrant: {
        /** Invalidate all viewGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewGrantKeys.all,
        }),
        /** Invalidate viewGrant list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewGrantKeys.lists(),
        }),
        /** Invalidate a specific viewGrant */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: viewGrantKeys.detail(id),
        }),
    },
    /** Invalidate viewRule queries */ viewRule: {
        /** Invalidate all viewRule queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewRuleKeys.all,
        }),
        /** Invalidate viewRule list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: viewRuleKeys.lists(),
        }),
        /** Invalidate a specific viewRule */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: viewRuleKeys.detail(id),
        }),
    },
    /** Invalidate embeddingChunk queries */ embeddingChunk: {
        /** Invalidate all embeddingChunk queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: embeddingChunkKeys.all,
        }),
        /** Invalidate embeddingChunk list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: embeddingChunkKeys.lists(),
        }),
        /** Invalidate a specific embeddingChunk */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: embeddingChunkKeys.detail(id),
        }),
    },
    /** Invalidate schemaGrant queries */ schemaGrant: {
        /** Invalidate all schemaGrant queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: schemaGrantKeys.all,
        }),
        /** Invalidate schemaGrant list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: schemaGrantKeys.lists(),
        }),
        /** Invalidate a specific schemaGrant */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: schemaGrantKeys.detail(id),
        }),
    },
    /** Invalidate defaultPrivilege queries */ defaultPrivilege: {
        /** Invalidate all defaultPrivilege queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: defaultPrivilegeKeys.all,
        }),
        /** Invalidate defaultPrivilege list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: defaultPrivilegeKeys.lists(),
        }),
        /** Invalidate a specific defaultPrivilege */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: defaultPrivilegeKeys.detail(id),
        }),
    },
    /** Invalidate enum queries */ enum: {
        /** Invalidate all enum queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: enumKeys.all,
        }),
        /** Invalidate enum list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: enumKeys.lists(),
        }),
        /** Invalidate a specific enum */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: enumKeys.detail(id),
        }),
    },
    /** Invalidate compositeType queries */ compositeType: {
        /** Invalidate all compositeType queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: compositeTypeKeys.all,
        }),
        /** Invalidate compositeType list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: compositeTypeKeys.lists(),
        }),
        /** Invalidate a specific compositeType */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: compositeTypeKeys.detail(id),
        }),
    },
    /** Invalidate apiSchema queries */ apiSchema: {
        /** Invalidate all apiSchema queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiSchemaKeys.all,
        }),
        /** Invalidate apiSchema list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiSchemaKeys.lists(),
        }),
        /** Invalidate a specific apiSchema */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: apiSchemaKeys.detail(id),
        }),
    },
    /** Invalidate apiModule queries */ apiModule: {
        /** Invalidate all apiModule queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiModuleKeys.all,
        }),
        /** Invalidate apiModule list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiModuleKeys.lists(),
        }),
        /** Invalidate a specific apiModule */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: apiModuleKeys.detail(id),
        }),
    },
    /** Invalidate domain queries */ domain: {
        /** Invalidate all domain queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: domainKeys.all,
        }),
        /** Invalidate domain list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: domainKeys.lists(),
        }),
        /** Invalidate a specific domain */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: domainKeys.detail(id),
        }),
    },
    /** Invalidate siteMetadatum queries */ siteMetadatum: {
        /** Invalidate all siteMetadatum queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteMetadatumKeys.all,
        }),
        /** Invalidate siteMetadatum list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteMetadatumKeys.lists(),
        }),
        /** Invalidate a specific siteMetadatum */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: siteMetadatumKeys.detail(id),
        }),
    },
    /** Invalidate siteModule queries */ siteModule: {
        /** Invalidate all siteModule queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteModuleKeys.all,
        }),
        /** Invalidate siteModule list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteModuleKeys.lists(),
        }),
        /** Invalidate a specific siteModule */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: siteModuleKeys.detail(id),
        }),
    },
    /** Invalidate siteTheme queries */ siteTheme: {
        /** Invalidate all siteTheme queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteThemeKeys.all,
        }),
        /** Invalidate siteTheme list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteThemeKeys.lists(),
        }),
        /** Invalidate a specific siteTheme */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: siteThemeKeys.detail(id),
        }),
    },
    /** Invalidate corsSetting queries */ corsSetting: {
        /** Invalidate all corsSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: corsSettingKeys.all,
        }),
        /** Invalidate corsSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: corsSettingKeys.lists(),
        }),
        /** Invalidate a specific corsSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: corsSettingKeys.detail(id),
        }),
    },
    /** Invalidate triggerFunction queries */ triggerFunction: {
        /** Invalidate all triggerFunction queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: triggerFunctionKeys.all,
        }),
        /** Invalidate triggerFunction list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: triggerFunctionKeys.lists(),
        }),
        /** Invalidate a specific triggerFunction */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: triggerFunctionKeys.detail(id),
        }),
    },
    /** Invalidate partition queries */ partition: {
        /** Invalidate all partition queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: partitionKeys.all,
        }),
        /** Invalidate partition list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: partitionKeys.lists(),
        }),
        /** Invalidate a specific partition */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: partitionKeys.detail(id),
        }),
    },
    /** Invalidate databaseTransfer queries */ databaseTransfer: {
        /** Invalidate all databaseTransfer queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: databaseTransferKeys.all,
        }),
        /** Invalidate databaseTransfer list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: databaseTransferKeys.lists(),
        }),
        /** Invalidate a specific databaseTransfer */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: databaseTransferKeys.detail(id),
        }),
    },
    /** Invalidate api queries */ api: {
        /** Invalidate all api queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiKeys.all,
        }),
        /** Invalidate api list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiKeys.lists(),
        }),
        /** Invalidate a specific api */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: apiKeys.detail(id),
        }),
    },
    /** Invalidate site queries */ site: {
        /** Invalidate all site queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteKeys.all,
        }),
        /** Invalidate site list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: siteKeys.lists(),
        }),
        /** Invalidate a specific site */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: siteKeys.detail(id),
        }),
    },
    /** Invalidate app queries */ app: {
        /** Invalidate all app queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: appKeys.all,
        }),
        /** Invalidate app list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: appKeys.lists(),
        }),
        /** Invalidate a specific app */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: appKeys.detail(id),
        }),
    },
    /** Invalidate apiSetting queries */ apiSetting: {
        /** Invalidate all apiSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiSettingKeys.all,
        }),
        /** Invalidate apiSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: apiSettingKeys.lists(),
        }),
        /** Invalidate a specific apiSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: apiSettingKeys.detail(id),
        }),
    },
    /** Invalidate migrateFile queries */ migrateFile: {
        /** Invalidate all migrateFile queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: migrateFileKeys.all,
        }),
        /** Invalidate migrateFile list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: migrateFileKeys.lists(),
        }),
        /** Invalidate a specific migrateFile */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: migrateFileKeys.detail(id),
        }),
    },
    /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: {
        /** Invalidate all nodeTypeRegistry queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: nodeTypeRegistryKeys.all,
        }),
        /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: nodeTypeRegistryKeys.lists(),
        }),
        /** Invalidate a specific nodeTypeRegistry */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: nodeTypeRegistryKeys.detail(id),
        }),
    },
    /** Invalidate pubkeySetting queries */ pubkeySetting: {
        /** Invalidate all pubkeySetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: pubkeySettingKeys.all,
        }),
        /** Invalidate pubkeySetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: pubkeySettingKeys.lists(),
        }),
        /** Invalidate a specific pubkeySetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: pubkeySettingKeys.detail(id),
        }),
    },
    /** Invalidate database queries */ database: {
        /** Invalidate all database queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: databaseKeys.all,
        }),
        /** Invalidate database list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: databaseKeys.lists(),
        }),
        /** Invalidate a specific database */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: databaseKeys.detail(id),
        }),
    },
    /** Invalidate rlsSetting queries */ rlsSetting: {
        /** Invalidate all rlsSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: rlsSettingKeys.all,
        }),
        /** Invalidate rlsSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: rlsSettingKeys.lists(),
        }),
        /** Invalidate a specific rlsSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: rlsSettingKeys.detail(id),
        }),
    },
    /** Invalidate sqlAction queries */ sqlAction: {
        /** Invalidate all sqlAction queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: sqlActionKeys.all,
        }),
        /** Invalidate sqlAction list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: sqlActionKeys.lists(),
        }),
        /** Invalidate a specific sqlAction */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: sqlActionKeys.detail(id),
        }),
    },
    /** Invalidate databaseSetting queries */ databaseSetting: {
        /** Invalidate all databaseSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: databaseSettingKeys.all,
        }),
        /** Invalidate databaseSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: databaseSettingKeys.lists(),
        }),
        /** Invalidate a specific databaseSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: databaseSettingKeys.detail(id),
        }),
    },
    /** Invalidate webauthnSetting queries */ webauthnSetting: {
        /** Invalidate all webauthnSetting queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: webauthnSettingKeys.all,
        }),
        /** Invalidate webauthnSetting list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: webauthnSettingKeys.lists(),
        }),
        /** Invalidate a specific webauthnSetting */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: webauthnSettingKeys.detail(id),
        }),
    },
    /** Invalidate astMigration queries */ astMigration: {
        /** Invalidate all astMigration queries */ all: (queryClient) => queryClient.invalidateQueries({
            queryKey: astMigrationKeys.all,
        }),
        /** Invalidate astMigration list queries */ lists: (queryClient) => queryClient.invalidateQueries({
            queryKey: astMigrationKeys.lists(),
        }),
        /** Invalidate a specific astMigration */ detail: (queryClient, id) => queryClient.invalidateQueries({
            queryKey: astMigrationKeys.detail(id),
        }),
    },
};
/**

// ============================================================================
// Remove Helpers (for delete operations)
// ============================================================================

 * Remove queries from cache (for delete operations)
 *
 * Use these when an entity is deleted to remove it from cache
 * instead of just invalidating (which would trigger a refetch).
 */
export const remove = {
    /** Remove function from cache */ function: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: functionKeys.detail(id),
        });
    },
    /** Remove schema from cache */ schema: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: schemaKeys.detail(id),
        });
    },
    /** Remove table from cache */ table: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: tableKeys.detail(id),
        });
    },
    /** Remove checkConstraint from cache */ checkConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: checkConstraintKeys.detail(id),
        });
    },
    /** Remove field from cache */ field: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: fieldKeys.detail(id),
        });
    },
    /** Remove spatialRelation from cache */ spatialRelation: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: spatialRelationKeys.detail(id),
        });
    },
    /** Remove foreignKeyConstraint from cache */ foreignKeyConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: foreignKeyConstraintKeys.detail(id),
        });
    },
    /** Remove fullTextSearch from cache */ fullTextSearch: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: fullTextSearchKeys.detail(id),
        });
    },
    /** Remove index from cache */ index: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: indexKeys.detail(id),
        });
    },
    /** Remove policy from cache */ policy: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: policyKeys.detail(id),
        });
    },
    /** Remove primaryKeyConstraint from cache */ primaryKeyConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: primaryKeyConstraintKeys.detail(id),
        });
    },
    /** Remove tableGrant from cache */ tableGrant: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: tableGrantKeys.detail(id),
        });
    },
    /** Remove trigger from cache */ trigger: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: triggerKeys.detail(id),
        });
    },
    /** Remove uniqueConstraint from cache */ uniqueConstraint: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: uniqueConstraintKeys.detail(id),
        });
    },
    /** Remove view from cache */ view: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: viewKeys.detail(id),
        });
    },
    /** Remove viewTable from cache */ viewTable: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: viewTableKeys.detail(id),
        });
    },
    /** Remove viewGrant from cache */ viewGrant: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: viewGrantKeys.detail(id),
        });
    },
    /** Remove viewRule from cache */ viewRule: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: viewRuleKeys.detail(id),
        });
    },
    /** Remove embeddingChunk from cache */ embeddingChunk: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: embeddingChunkKeys.detail(id),
        });
    },
    /** Remove schemaGrant from cache */ schemaGrant: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: schemaGrantKeys.detail(id),
        });
    },
    /** Remove defaultPrivilege from cache */ defaultPrivilege: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: defaultPrivilegeKeys.detail(id),
        });
    },
    /** Remove enum from cache */ enum: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: enumKeys.detail(id),
        });
    },
    /** Remove compositeType from cache */ compositeType: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: compositeTypeKeys.detail(id),
        });
    },
    /** Remove apiSchema from cache */ apiSchema: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: apiSchemaKeys.detail(id),
        });
    },
    /** Remove apiModule from cache */ apiModule: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: apiModuleKeys.detail(id),
        });
    },
    /** Remove domain from cache */ domain: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: domainKeys.detail(id),
        });
    },
    /** Remove siteMetadatum from cache */ siteMetadatum: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: siteMetadatumKeys.detail(id),
        });
    },
    /** Remove siteModule from cache */ siteModule: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: siteModuleKeys.detail(id),
        });
    },
    /** Remove siteTheme from cache */ siteTheme: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: siteThemeKeys.detail(id),
        });
    },
    /** Remove corsSetting from cache */ corsSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: corsSettingKeys.detail(id),
        });
    },
    /** Remove triggerFunction from cache */ triggerFunction: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: triggerFunctionKeys.detail(id),
        });
    },
    /** Remove partition from cache */ partition: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: partitionKeys.detail(id),
        });
    },
    /** Remove databaseTransfer from cache */ databaseTransfer: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: databaseTransferKeys.detail(id),
        });
    },
    /** Remove api from cache */ api: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: apiKeys.detail(id),
        });
    },
    /** Remove site from cache */ site: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: siteKeys.detail(id),
        });
    },
    /** Remove app from cache */ app: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: appKeys.detail(id),
        });
    },
    /** Remove apiSetting from cache */ apiSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: apiSettingKeys.detail(id),
        });
    },
    /** Remove migrateFile from cache */ migrateFile: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: migrateFileKeys.detail(id),
        });
    },
    /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: nodeTypeRegistryKeys.detail(id),
        });
    },
    /** Remove pubkeySetting from cache */ pubkeySetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: pubkeySettingKeys.detail(id),
        });
    },
    /** Remove database from cache */ database: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: databaseKeys.detail(id),
        });
    },
    /** Remove rlsSetting from cache */ rlsSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: rlsSettingKeys.detail(id),
        });
    },
    /** Remove sqlAction from cache */ sqlAction: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: sqlActionKeys.detail(id),
        });
    },
    /** Remove databaseSetting from cache */ databaseSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: databaseSettingKeys.detail(id),
        });
    },
    /** Remove webauthnSetting from cache */ webauthnSetting: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: webauthnSettingKeys.detail(id),
        });
    },
    /** Remove astMigration from cache */ astMigration: (queryClient, id) => {
        queryClient.removeQueries({
            queryKey: astMigrationKeys.detail(id),
        });
    },
};
