/**
 * Centralized query key factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
// ============================================================================
// This file provides a centralized, type-safe query key factory following
// the lukemorales query-key-factory pattern for React Query.
//
// Benefits:
// - Single source of truth for all query keys
// - Type-safe key access with autocomplete
// - Hierarchical invalidation (invalidate all 'user.*' queries)
// - Scoped keys for parent-child relationships
// ============================================================================
// ============================================================================
// Entity Query Keys
// ============================================================================
export const functionKeys = {
    /** All function queries */ all: ['function'],
    /** List query keys */ lists: () => [...functionKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...functionKeys.lists(), variables],
    /** Detail query keys */ details: () => [...functionKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...functionKeys.details(), id],
};
export const schemaKeys = {
    /** All schema queries */ all: ['schema'],
    /** List query keys */ lists: () => [...schemaKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...schemaKeys.lists(), variables],
    /** Detail query keys */ details: () => [...schemaKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...schemaKeys.details(), id],
};
export const tableKeys = {
    /** All table queries */ all: ['table'],
    /** List query keys */ lists: () => [...tableKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...tableKeys.lists(), variables],
    /** Detail query keys */ details: () => [...tableKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...tableKeys.details(), id],
};
export const checkConstraintKeys = {
    /** All checkConstraint queries */ all: ['checkconstraint'],
    /** List query keys */ lists: () => [...checkConstraintKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...checkConstraintKeys.lists(), variables],
    /** Detail query keys */ details: () => [...checkConstraintKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...checkConstraintKeys.details(), id],
};
export const fieldKeys = {
    /** All field queries */ all: ['field'],
    /** List query keys */ lists: () => [...fieldKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...fieldKeys.lists(), variables],
    /** Detail query keys */ details: () => [...fieldKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...fieldKeys.details(), id],
};
export const spatialRelationKeys = {
    /** All spatialRelation queries */ all: ['spatialrelation'],
    /** List query keys */ lists: () => [...spatialRelationKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...spatialRelationKeys.lists(), variables],
    /** Detail query keys */ details: () => [...spatialRelationKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...spatialRelationKeys.details(), id],
};
export const foreignKeyConstraintKeys = {
    /** All foreignKeyConstraint queries */ all: ['foreignkeyconstraint'],
    /** List query keys */ lists: () => [...foreignKeyConstraintKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...foreignKeyConstraintKeys.lists(), variables],
    /** Detail query keys */ details: () => [...foreignKeyConstraintKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...foreignKeyConstraintKeys.details(), id],
};
export const fullTextSearchKeys = {
    /** All fullTextSearch queries */ all: ['fulltextsearch'],
    /** List query keys */ lists: () => [...fullTextSearchKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...fullTextSearchKeys.lists(), variables],
    /** Detail query keys */ details: () => [...fullTextSearchKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...fullTextSearchKeys.details(), id],
};
export const indexKeys = {
    /** All index queries */ all: ['index'],
    /** List query keys */ lists: () => [...indexKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...indexKeys.lists(), variables],
    /** Detail query keys */ details: () => [...indexKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...indexKeys.details(), id],
};
export const policyKeys = {
    /** All policy queries */ all: ['policy'],
    /** List query keys */ lists: () => [...policyKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...policyKeys.lists(), variables],
    /** Detail query keys */ details: () => [...policyKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...policyKeys.details(), id],
};
export const primaryKeyConstraintKeys = {
    /** All primaryKeyConstraint queries */ all: ['primarykeyconstraint'],
    /** List query keys */ lists: () => [...primaryKeyConstraintKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...primaryKeyConstraintKeys.lists(), variables],
    /** Detail query keys */ details: () => [...primaryKeyConstraintKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...primaryKeyConstraintKeys.details(), id],
};
export const tableGrantKeys = {
    /** All tableGrant queries */ all: ['tablegrant'],
    /** List query keys */ lists: () => [...tableGrantKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...tableGrantKeys.lists(), variables],
    /** Detail query keys */ details: () => [...tableGrantKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...tableGrantKeys.details(), id],
};
export const triggerKeys = {
    /** All trigger queries */ all: ['trigger'],
    /** List query keys */ lists: () => [...triggerKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...triggerKeys.lists(), variables],
    /** Detail query keys */ details: () => [...triggerKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...triggerKeys.details(), id],
};
export const uniqueConstraintKeys = {
    /** All uniqueConstraint queries */ all: ['uniqueconstraint'],
    /** List query keys */ lists: () => [...uniqueConstraintKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...uniqueConstraintKeys.lists(), variables],
    /** Detail query keys */ details: () => [...uniqueConstraintKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...uniqueConstraintKeys.details(), id],
};
export const viewKeys = {
    /** All view queries */ all: ['view'],
    /** List query keys */ lists: () => [...viewKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...viewKeys.lists(), variables],
    /** Detail query keys */ details: () => [...viewKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...viewKeys.details(), id],
};
export const viewTableKeys = {
    /** All viewTable queries */ all: ['viewtable'],
    /** List query keys */ lists: () => [...viewTableKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...viewTableKeys.lists(), variables],
    /** Detail query keys */ details: () => [...viewTableKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...viewTableKeys.details(), id],
};
export const viewGrantKeys = {
    /** All viewGrant queries */ all: ['viewgrant'],
    /** List query keys */ lists: () => [...viewGrantKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...viewGrantKeys.lists(), variables],
    /** Detail query keys */ details: () => [...viewGrantKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...viewGrantKeys.details(), id],
};
export const viewRuleKeys = {
    /** All viewRule queries */ all: ['viewrule'],
    /** List query keys */ lists: () => [...viewRuleKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...viewRuleKeys.lists(), variables],
    /** Detail query keys */ details: () => [...viewRuleKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...viewRuleKeys.details(), id],
};
export const embeddingChunkKeys = {
    /** All embeddingChunk queries */ all: ['embeddingchunk'],
    /** List query keys */ lists: () => [...embeddingChunkKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...embeddingChunkKeys.lists(), variables],
    /** Detail query keys */ details: () => [...embeddingChunkKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...embeddingChunkKeys.details(), id],
};
export const schemaGrantKeys = {
    /** All schemaGrant queries */ all: ['schemagrant'],
    /** List query keys */ lists: () => [...schemaGrantKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...schemaGrantKeys.lists(), variables],
    /** Detail query keys */ details: () => [...schemaGrantKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...schemaGrantKeys.details(), id],
};
export const defaultPrivilegeKeys = {
    /** All defaultPrivilege queries */ all: ['defaultprivilege'],
    /** List query keys */ lists: () => [...defaultPrivilegeKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...defaultPrivilegeKeys.lists(), variables],
    /** Detail query keys */ details: () => [...defaultPrivilegeKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...defaultPrivilegeKeys.details(), id],
};
export const enumKeys = {
    /** All enum queries */ all: ['enum'],
    /** List query keys */ lists: () => [...enumKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...enumKeys.lists(), variables],
    /** Detail query keys */ details: () => [...enumKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...enumKeys.details(), id],
};
export const compositeTypeKeys = {
    /** All compositeType queries */ all: ['compositetype'],
    /** List query keys */ lists: () => [...compositeTypeKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...compositeTypeKeys.lists(), variables],
    /** Detail query keys */ details: () => [...compositeTypeKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...compositeTypeKeys.details(), id],
};
export const apiSchemaKeys = {
    /** All apiSchema queries */ all: ['apischema'],
    /** List query keys */ lists: () => [...apiSchemaKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...apiSchemaKeys.lists(), variables],
    /** Detail query keys */ details: () => [...apiSchemaKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...apiSchemaKeys.details(), id],
};
export const apiModuleKeys = {
    /** All apiModule queries */ all: ['apimodule'],
    /** List query keys */ lists: () => [...apiModuleKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...apiModuleKeys.lists(), variables],
    /** Detail query keys */ details: () => [...apiModuleKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...apiModuleKeys.details(), id],
};
export const domainKeys = {
    /** All domain queries */ all: ['domain'],
    /** List query keys */ lists: () => [...domainKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...domainKeys.lists(), variables],
    /** Detail query keys */ details: () => [...domainKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...domainKeys.details(), id],
};
export const siteMetadatumKeys = {
    /** All siteMetadatum queries */ all: ['sitemetadatum'],
    /** List query keys */ lists: () => [...siteMetadatumKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...siteMetadatumKeys.lists(), variables],
    /** Detail query keys */ details: () => [...siteMetadatumKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...siteMetadatumKeys.details(), id],
};
export const siteModuleKeys = {
    /** All siteModule queries */ all: ['sitemodule'],
    /** List query keys */ lists: () => [...siteModuleKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...siteModuleKeys.lists(), variables],
    /** Detail query keys */ details: () => [...siteModuleKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...siteModuleKeys.details(), id],
};
export const siteThemeKeys = {
    /** All siteTheme queries */ all: ['sitetheme'],
    /** List query keys */ lists: () => [...siteThemeKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...siteThemeKeys.lists(), variables],
    /** Detail query keys */ details: () => [...siteThemeKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...siteThemeKeys.details(), id],
};
export const corsSettingKeys = {
    /** All corsSetting queries */ all: ['corssetting'],
    /** List query keys */ lists: () => [...corsSettingKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...corsSettingKeys.lists(), variables],
    /** Detail query keys */ details: () => [...corsSettingKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...corsSettingKeys.details(), id],
};
export const triggerFunctionKeys = {
    /** All triggerFunction queries */ all: ['triggerfunction'],
    /** List query keys */ lists: () => [...triggerFunctionKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...triggerFunctionKeys.lists(), variables],
    /** Detail query keys */ details: () => [...triggerFunctionKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...triggerFunctionKeys.details(), id],
};
export const partitionKeys = {
    /** All partition queries */ all: ['partition'],
    /** List query keys */ lists: () => [...partitionKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...partitionKeys.lists(), variables],
    /** Detail query keys */ details: () => [...partitionKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...partitionKeys.details(), id],
};
export const databaseTransferKeys = {
    /** All databaseTransfer queries */ all: ['databasetransfer'],
    /** List query keys */ lists: () => [...databaseTransferKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...databaseTransferKeys.lists(), variables],
    /** Detail query keys */ details: () => [...databaseTransferKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...databaseTransferKeys.details(), id],
};
export const apiKeys = {
    /** All api queries */ all: ['api'],
    /** List query keys */ lists: () => [...apiKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...apiKeys.lists(), variables],
    /** Detail query keys */ details: () => [...apiKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...apiKeys.details(), id],
};
export const siteKeys = {
    /** All site queries */ all: ['site'],
    /** List query keys */ lists: () => [...siteKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...siteKeys.lists(), variables],
    /** Detail query keys */ details: () => [...siteKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...siteKeys.details(), id],
};
export const appKeys = {
    /** All app queries */ all: ['app'],
    /** List query keys */ lists: () => [...appKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...appKeys.lists(), variables],
    /** Detail query keys */ details: () => [...appKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...appKeys.details(), id],
};
export const apiSettingKeys = {
    /** All apiSetting queries */ all: ['apisetting'],
    /** List query keys */ lists: () => [...apiSettingKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...apiSettingKeys.lists(), variables],
    /** Detail query keys */ details: () => [...apiSettingKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...apiSettingKeys.details(), id],
};
export const migrateFileKeys = {
    /** All migrateFile queries */ all: ['migratefile'],
    /** List query keys */ lists: () => [...migrateFileKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...migrateFileKeys.lists(), variables],
    /** Detail query keys */ details: () => [...migrateFileKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...migrateFileKeys.details(), id],
};
export const nodeTypeRegistryKeys = {
    /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'],
    /** List query keys */ lists: () => [...nodeTypeRegistryKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...nodeTypeRegistryKeys.lists(), variables],
    /** Detail query keys */ details: () => [...nodeTypeRegistryKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...nodeTypeRegistryKeys.details(), id],
};
export const pubkeySettingKeys = {
    /** All pubkeySetting queries */ all: ['pubkeysetting'],
    /** List query keys */ lists: () => [...pubkeySettingKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...pubkeySettingKeys.lists(), variables],
    /** Detail query keys */ details: () => [...pubkeySettingKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...pubkeySettingKeys.details(), id],
};
export const databaseKeys = {
    /** All database queries */ all: ['database'],
    /** List query keys */ lists: () => [...databaseKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...databaseKeys.lists(), variables],
    /** Detail query keys */ details: () => [...databaseKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...databaseKeys.details(), id],
};
export const rlsSettingKeys = {
    /** All rlsSetting queries */ all: ['rlssetting'],
    /** List query keys */ lists: () => [...rlsSettingKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...rlsSettingKeys.lists(), variables],
    /** Detail query keys */ details: () => [...rlsSettingKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...rlsSettingKeys.details(), id],
};
export const sqlActionKeys = {
    /** All sqlAction queries */ all: ['sqlaction'],
    /** List query keys */ lists: () => [...sqlActionKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...sqlActionKeys.lists(), variables],
    /** Detail query keys */ details: () => [...sqlActionKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...sqlActionKeys.details(), id],
};
export const databaseSettingKeys = {
    /** All databaseSetting queries */ all: ['databasesetting'],
    /** List query keys */ lists: () => [...databaseSettingKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...databaseSettingKeys.lists(), variables],
    /** Detail query keys */ details: () => [...databaseSettingKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...databaseSettingKeys.details(), id],
};
export const astMigrationKeys = {
    /** All astMigration queries */ all: ['astmigration'],
    /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...astMigrationKeys.lists(), variables],
    /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...astMigrationKeys.details(), id],
};
export const webauthnSettingKeys = {
    /** All webauthnSetting queries */ all: ['webauthnsetting'],
    /** List query keys */ lists: () => [...webauthnSettingKeys.all, 'list'],
    /** List query key with variables */ list: (variables) => [...webauthnSettingKeys.lists(), variables],
    /** Detail query keys */ details: () => [...webauthnSettingKeys.all, 'detail'],
    /** Detail query key for specific item */ detail: (id) => [...webauthnSettingKeys.details(), id],
};
// ============================================================================
// Custom Query Keys
// ============================================================================
export const customQueryKeys = {
    /** Query key for applyRegistryDefaults */ applyRegistryDefaults: (variables) => ['applyRegistryDefaults', variables],
};
/**

// ============================================================================
// Unified Query Key Store
// ============================================================================

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