/**
 * ORM Client - createClient factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from './client';
import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord';
import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord';
import { AppPermissionModel } from './models/appPermission';
import { OrgPermissionModel } from './models/orgPermission';
import { DatabaseModel } from './models/database';
import { SchemaModel } from './models/schema';
import { TableModel } from './models/table';
import { CheckConstraintModel } from './models/checkConstraint';
import { FieldModel } from './models/field';
import { SpatialRelationModel } from './models/spatialRelation';
import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint';
import { FullTextSearchModel } from './models/fullTextSearch';
import { IndexModel } from './models/index';
import { PolicyModel } from './models/policy';
import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint';
import { TableGrantModel } from './models/tableGrant';
import { TriggerModel } from './models/trigger';
import { UniqueConstraintModel } from './models/uniqueConstraint';
import { ViewModel } from './models/view';
import { ViewTableModel } from './models/viewTable';
import { ViewGrantModel } from './models/viewGrant';
import { ViewRuleModel } from './models/viewRule';
import { EmbeddingChunkModel } from './models/embeddingChunk';
import { SecureTableProvisionModel } from './models/secureTableProvision';
import { RelationProvisionModel } from './models/relationProvision';
import { SessionSecretsModuleModel } from './models/sessionSecretsModule';
import { IdentityProvidersModuleModel } from './models/identityProvidersModule';
import { RealtimeModuleModel } from './models/realtimeModule';
import { ConfigSecretsOrgModuleModel } from './models/configSecretsOrgModule';
import { SchemaGrantModel } from './models/schemaGrant';
import { DefaultPrivilegeModel } from './models/defaultPrivilege';
import { EnumModel } from './models/enum';
import { FunctionModel } from './models/function';
import { ApiSchemaModel } from './models/apiSchema';
import { ApiModuleModel } from './models/apiModule';
import { DomainModel } from './models/domain';
import { SiteMetadatumModel } from './models/siteMetadatum';
import { SiteModuleModel } from './models/siteModule';
import { SiteThemeModel } from './models/siteTheme';
import { CorsSettingModel } from './models/corsSetting';
import { MerkleStoreModuleModel } from './models/merkleStoreModule';
import { GraphModuleModel } from './models/graphModule';
import { TriggerFunctionModel } from './models/triggerFunction';
import { PartitionModel } from './models/partition';
import { DatabaseTransferModel } from './models/databaseTransfer';
import { ApiModel } from './models/api';
import { SiteModel } from './models/site';
import { AppModel } from './models/app';
import { ApiSettingModel } from './models/apiSetting';
import { ConnectedAccountsModuleModel } from './models/connectedAccountsModule';
import { CryptoAddressesModuleModel } from './models/cryptoAddressesModule';
import { CryptoAuthModuleModel } from './models/cryptoAuthModule';
import { DefaultIdsModuleModel } from './models/defaultIdsModule';
import { DenormalizedTableFieldModel } from './models/denormalizedTableField';
import { EmailsModuleModel } from './models/emailsModule';
import { ConfigSecretsUserModuleModel } from './models/configSecretsUserModule';
import { InvitesModuleModel } from './models/invitesModule';
import { EventsModuleModel } from './models/eventsModule';
import { LimitsModuleModel } from './models/limitsModule';
import { MembershipTypesModuleModel } from './models/membershipTypesModule';
import { MembershipsModuleModel } from './models/membershipsModule';
import { PermissionsModuleModel } from './models/permissionsModule';
import { PhoneNumbersModuleModel } from './models/phoneNumbersModule';
import { ProfilesModuleModel } from './models/profilesModule';
import { UserStateModuleModel } from './models/userStateModule';
import { SessionsModuleModel } from './models/sessionsModule';
import { UserAuthModuleModel } from './models/userAuthModule';
import { UsersModuleModel } from './models/usersModule';
import { BlueprintModel } from './models/blueprint';
import { BlueprintTemplateModel } from './models/blueprintTemplate';
import { BlueprintConstructionModel } from './models/blueprintConstruction';
import { StorageModuleModel } from './models/storageModule';
import { EntityTypeProvisionModel } from './models/entityTypeProvision';
import { WebauthnCredentialsModuleModel } from './models/webauthnCredentialsModule';
import { WebauthnAuthModuleModel } from './models/webauthnAuthModule';
import { NotificationsModuleModel } from './models/notificationsModule';
import { InferenceLogModuleModel } from './models/inferenceLogModule';
import { ComputeLogModuleModel } from './models/computeLogModule';
import { TransferLogModuleModel } from './models/transferLogModule';
import { StorageLogModuleModel } from './models/storageLogModule';
import { DbUsageModuleModel } from './models/dbUsageModule';
import { AgentModuleModel } from './models/agentModule';
import { NamespaceModuleModel } from './models/namespaceModule';
import { FunctionModuleModel } from './models/functionModule';
import { DatabaseProvisionModuleModel } from './models/databaseProvisionModule';
import { AppAdminGrantModel } from './models/appAdminGrant';
import { AppOwnerGrantModel } from './models/appOwnerGrant';
import { AppGrantModel } from './models/appGrant';
import { OrgMembershipModel } from './models/orgMembership';
import { OrgMemberModel } from './models/orgMember';
import { OrgAdminGrantModel } from './models/orgAdminGrant';
import { OrgOwnerGrantModel } from './models/orgOwnerGrant';
import { OrgMemberProfileModel } from './models/orgMemberProfile';
import { OrgGrantModel } from './models/orgGrant';
import { OrgChartEdgeModel } from './models/orgChartEdge';
import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant';
import { OrgPermissionDefaultModel } from './models/orgPermissionDefault';
import { AppLimitModel } from './models/appLimit';
import { AppLimitCreditModel } from './models/appLimitCredit';
import { AppLimitCreditCodeItemModel } from './models/appLimitCreditCodeItem';
import { AppLimitCreditRedemptionModel } from './models/appLimitCreditRedemption';
import { OrgLimitModel } from './models/orgLimit';
import { OrgLimitCreditModel } from './models/orgLimitCredit';
import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
import { OrgLimitWarningModel } from './models/orgLimitWarning';
import { EmailModel } from './models/email';
import { PhoneNumberModel } from './models/phoneNumber';
import { CryptoAddressModel } from './models/cryptoAddress';
import { WebauthnCredentialModel } from './models/webauthnCredential';
import { AppInviteModel } from './models/appInvite';
import { AppClaimedInviteModel } from './models/appClaimedInvite';
import { OrgInviteModel } from './models/orgInvite';
import { OrgClaimedInviteModel } from './models/orgClaimedInvite';
import { AuditLogAuthModel } from './models/auditLogAuth';
import { IdentityProviderModel } from './models/identityProvider';
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
import { RoleTypeModel } from './models/roleType';
import { MigrateFileModel } from './models/migrateFile';
import { DevicesModuleModel } from './models/devicesModule';
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault';
import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault';
import { AppLimitCapModel } from './models/appLimitCap';
import { OrgLimitCapModel } from './models/orgLimitCap';
import { UserConnectedAccountModel } from './models/userConnectedAccount';
import { AppLimitDefaultModel } from './models/appLimitDefault';
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
import { AppLimitCreditCodeModel } from './models/appLimitCreditCode';
import { AppLimitWarningModel } from './models/appLimitWarning';
import { PubkeySettingModel } from './models/pubkeySetting';
import { RateLimitsModuleModel } from './models/rateLimitsModule';
import { MembershipTypeModel } from './models/membershipType';
import { RlsSettingModel } from './models/rlsSetting';
import { RlsModuleModel } from './models/rlsModule';
import { RateLimitMetersModuleModel } from './models/rateLimitMetersModule';
import { PlansModuleModel } from './models/plansModule';
import { SqlActionModel } from './models/sqlAction';
import { DatabaseSettingModel } from './models/databaseSetting';
import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
import { AppLimitEventModel } from './models/appLimitEvent';
import { OrgLimitEventModel } from './models/orgLimitEvent';
import { AppMembershipModel } from './models/appMembership';
import { UserModel } from './models/user';
import { AstMigrationModel } from './models/astMigration';
import { WebauthnSettingModel } from './models/webauthnSetting';
import { BillingModuleModel } from './models/billingModule';
import { BillingProviderModuleModel } from './models/billingProviderModule';
import { HierarchyModuleModel } from './models/hierarchyModule';
import { createQueryOperations } from './query';
import { createMutationOperations } from './mutation';
export { GraphQLRequestError, FetchAdapter } from './client';
export { QueryBuilder } from './query-builder';
export * from './select-types';
export * from './models';
export { createQueryOperations } from './query';
export { createMutationOperations } from './mutation';
/**
 * Create an ORM client instance
 *
 * @example
 * ```typescript
 * const db = createClient({
 *   endpoint: 'https://api.example.com/graphql',
 *   headers: { Authorization: 'Bearer token' },
 * });
 *
 * // Query users
 * const users = await db.user.findMany({
 *   select: { id: true, name: true },
 *   first: 10,
 * }).execute();
 *
 * // Create a user
 * const newUser = await db.user.create({
 *   data: { name: 'John', email: 'john@example.com' },
 *   select: { id: true },
 * }).execute();
 * ```
 */
export function createClient(config) {
    const client = new OrmClient(config);
    return {
        orgGetManagersRecord: new OrgGetManagersRecordModel(client),
        orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client),
        appPermission: new AppPermissionModel(client),
        orgPermission: new OrgPermissionModel(client),
        database: new DatabaseModel(client),
        schema: new SchemaModel(client),
        table: new TableModel(client),
        checkConstraint: new CheckConstraintModel(client),
        field: new FieldModel(client),
        spatialRelation: new SpatialRelationModel(client),
        foreignKeyConstraint: new ForeignKeyConstraintModel(client),
        fullTextSearch: new FullTextSearchModel(client),
        index: new IndexModel(client),
        policy: new PolicyModel(client),
        primaryKeyConstraint: new PrimaryKeyConstraintModel(client),
        tableGrant: new TableGrantModel(client),
        trigger: new TriggerModel(client),
        uniqueConstraint: new UniqueConstraintModel(client),
        view: new ViewModel(client),
        viewTable: new ViewTableModel(client),
        viewGrant: new ViewGrantModel(client),
        viewRule: new ViewRuleModel(client),
        embeddingChunk: new EmbeddingChunkModel(client),
        secureTableProvision: new SecureTableProvisionModel(client),
        relationProvision: new RelationProvisionModel(client),
        sessionSecretsModule: new SessionSecretsModuleModel(client),
        identityProvidersModule: new IdentityProvidersModuleModel(client),
        realtimeModule: new RealtimeModuleModel(client),
        configSecretsOrgModule: new ConfigSecretsOrgModuleModel(client),
        schemaGrant: new SchemaGrantModel(client),
        defaultPrivilege: new DefaultPrivilegeModel(client),
        enum: new EnumModel(client),
        function: new FunctionModel(client),
        apiSchema: new ApiSchemaModel(client),
        apiModule: new ApiModuleModel(client),
        domain: new DomainModel(client),
        siteMetadatum: new SiteMetadatumModel(client),
        siteModule: new SiteModuleModel(client),
        siteTheme: new SiteThemeModel(client),
        corsSetting: new CorsSettingModel(client),
        merkleStoreModule: new MerkleStoreModuleModel(client),
        graphModule: new GraphModuleModel(client),
        triggerFunction: new TriggerFunctionModel(client),
        partition: new PartitionModel(client),
        databaseTransfer: new DatabaseTransferModel(client),
        api: new ApiModel(client),
        site: new SiteModel(client),
        app: new AppModel(client),
        apiSetting: new ApiSettingModel(client),
        connectedAccountsModule: new ConnectedAccountsModuleModel(client),
        cryptoAddressesModule: new CryptoAddressesModuleModel(client),
        cryptoAuthModule: new CryptoAuthModuleModel(client),
        defaultIdsModule: new DefaultIdsModuleModel(client),
        denormalizedTableField: new DenormalizedTableFieldModel(client),
        emailsModule: new EmailsModuleModel(client),
        configSecretsUserModule: new ConfigSecretsUserModuleModel(client),
        invitesModule: new InvitesModuleModel(client),
        eventsModule: new EventsModuleModel(client),
        limitsModule: new LimitsModuleModel(client),
        membershipTypesModule: new MembershipTypesModuleModel(client),
        membershipsModule: new MembershipsModuleModel(client),
        permissionsModule: new PermissionsModuleModel(client),
        phoneNumbersModule: new PhoneNumbersModuleModel(client),
        profilesModule: new ProfilesModuleModel(client),
        userStateModule: new UserStateModuleModel(client),
        sessionsModule: new SessionsModuleModel(client),
        userAuthModule: new UserAuthModuleModel(client),
        usersModule: new UsersModuleModel(client),
        blueprint: new BlueprintModel(client),
        blueprintTemplate: new BlueprintTemplateModel(client),
        blueprintConstruction: new BlueprintConstructionModel(client),
        storageModule: new StorageModuleModel(client),
        entityTypeProvision: new EntityTypeProvisionModel(client),
        webauthnCredentialsModule: new WebauthnCredentialsModuleModel(client),
        webauthnAuthModule: new WebauthnAuthModuleModel(client),
        notificationsModule: new NotificationsModuleModel(client),
        inferenceLogModule: new InferenceLogModuleModel(client),
        computeLogModule: new ComputeLogModuleModel(client),
        transferLogModule: new TransferLogModuleModel(client),
        storageLogModule: new StorageLogModuleModel(client),
        dbUsageModule: new DbUsageModuleModel(client),
        agentModule: new AgentModuleModel(client),
        namespaceModule: new NamespaceModuleModel(client),
        functionModule: new FunctionModuleModel(client),
        databaseProvisionModule: new DatabaseProvisionModuleModel(client),
        appAdminGrant: new AppAdminGrantModel(client),
        appOwnerGrant: new AppOwnerGrantModel(client),
        appGrant: new AppGrantModel(client),
        orgMembership: new OrgMembershipModel(client),
        orgMember: new OrgMemberModel(client),
        orgAdminGrant: new OrgAdminGrantModel(client),
        orgOwnerGrant: new OrgOwnerGrantModel(client),
        orgMemberProfile: new OrgMemberProfileModel(client),
        orgGrant: new OrgGrantModel(client),
        orgChartEdge: new OrgChartEdgeModel(client),
        orgChartEdgeGrant: new OrgChartEdgeGrantModel(client),
        orgPermissionDefault: new OrgPermissionDefaultModel(client),
        appLimit: new AppLimitModel(client),
        appLimitCredit: new AppLimitCreditModel(client),
        appLimitCreditCodeItem: new AppLimitCreditCodeItemModel(client),
        appLimitCreditRedemption: new AppLimitCreditRedemptionModel(client),
        orgLimit: new OrgLimitModel(client),
        orgLimitCredit: new OrgLimitCreditModel(client),
        orgLimitAggregate: new OrgLimitAggregateModel(client),
        orgLimitWarning: new OrgLimitWarningModel(client),
        email: new EmailModel(client),
        phoneNumber: new PhoneNumberModel(client),
        cryptoAddress: new CryptoAddressModel(client),
        webauthnCredential: new WebauthnCredentialModel(client),
        appInvite: new AppInviteModel(client),
        appClaimedInvite: new AppClaimedInviteModel(client),
        orgInvite: new OrgInviteModel(client),
        orgClaimedInvite: new OrgClaimedInviteModel(client),
        auditLogAuth: new AuditLogAuthModel(client),
        identityProvider: new IdentityProviderModel(client),
        appPermissionDefault: new AppPermissionDefaultModel(client),
        roleType: new RoleTypeModel(client),
        migrateFile: new MigrateFileModel(client),
        devicesModule: new DevicesModuleModel(client),
        appMembershipDefault: new AppMembershipDefaultModel(client),
        orgMembershipDefault: new OrgMembershipDefaultModel(client),
        nodeTypeRegistry: new NodeTypeRegistryModel(client),
        appLimitCapsDefault: new AppLimitCapsDefaultModel(client),
        orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client),
        appLimitCap: new AppLimitCapModel(client),
        orgLimitCap: new OrgLimitCapModel(client),
        userConnectedAccount: new UserConnectedAccountModel(client),
        appLimitDefault: new AppLimitDefaultModel(client),
        orgLimitDefault: new OrgLimitDefaultModel(client),
        appLimitCreditCode: new AppLimitCreditCodeModel(client),
        appLimitWarning: new AppLimitWarningModel(client),
        pubkeySetting: new PubkeySettingModel(client),
        rateLimitsModule: new RateLimitsModuleModel(client),
        membershipType: new MembershipTypeModel(client),
        rlsSetting: new RlsSettingModel(client),
        rlsModule: new RlsModuleModel(client),
        rateLimitMetersModule: new RateLimitMetersModuleModel(client),
        plansModule: new PlansModuleModel(client),
        sqlAction: new SqlActionModel(client),
        databaseSetting: new DatabaseSettingModel(client),
        orgMembershipSetting: new OrgMembershipSettingModel(client),
        appLimitEvent: new AppLimitEventModel(client),
        orgLimitEvent: new OrgLimitEventModel(client),
        appMembership: new AppMembershipModel(client),
        user: new UserModel(client),
        astMigration: new AstMigrationModel(client),
        webauthnSetting: new WebauthnSettingModel(client),
        billingModule: new BillingModuleModel(client),
        billingProviderModule: new BillingProviderModuleModel(client),
        hierarchyModule: new HierarchyModuleModel(client),
        query: createQueryOperations(client),
        mutation: createMutationOperations(client),
    };
}
