/**
 * 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 { GetAllRecordModel } from './models/getAllRecord';
import { AppPermissionModel } from './models/appPermission';
import { OrgPermissionModel } from './models/orgPermission';
import { ObjectModel } from './models/object';
import { AppLevelRequirementModel } from './models/appLevelRequirement';
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 { 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 { TriggerFunctionModel } from './models/triggerFunction';
import { DatabaseTransferModel } from './models/databaseTransfer';
import { PartitionModel } from './models/partition';
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 { EncryptedSecretsModuleModel } from './models/encryptedSecretsModule';
import { InvitesModuleModel } from './models/invitesModule';
import { LevelsModuleModel } from './models/levelsModule';
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 { SecretsModuleModel } from './models/secretsModule';
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 { 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 { AppStepModel } from './models/appStep';
import { AppAchievementModel } from './models/appAchievement';
import { AppLevelModel } from './models/appLevel';
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 { AuditLogModel } from './models/auditLog';
import { AgentThreadModel } from './models/agentThread';
import { AgentMessageModel } from './models/agentMessage';
import { AgentTaskModel } from './models/agentTask';
import { RoleTypeModel } from './models/roleType';
import { IdentityProviderModel } from './models/identityProvider';
import { RefModel } from './models/ref';
import { StoreModel } from './models/store';
import { AppPermissionDefaultModel } from './models/appPermissionDefault';
import { AppLimitCreditCodeModel } from './models/appLimitCreditCode';
import { AppLimitCapsDefaultModel } from './models/appLimitCapsDefault';
import { OrgLimitCapsDefaultModel } from './models/orgLimitCapsDefault';
import { AppLimitCapModel } from './models/appLimitCap';
import { OrgLimitCapModel } from './models/orgLimitCap';
import { MembershipTypeModel } from './models/membershipType';
import { MigrateFileModel } from './models/migrateFile';
import { DevicesModuleModel } from './models/devicesModule';
import { NodeTypeRegistryModel } from './models/nodeTypeRegistry';
import { AppLimitDefaultModel } from './models/appLimitDefault';
import { OrgLimitDefaultModel } from './models/orgLimitDefault';
import { UserConnectedAccountModel } from './models/userConnectedAccount';
import { CommitModel } from './models/commit';
import { PubkeySettingModel } from './models/pubkeySetting';
import { RateLimitsModuleModel } from './models/rateLimitsModule';
import { UsageSnapshotModel } from './models/usageSnapshot';
import { AppMembershipDefaultModel } from './models/appMembershipDefault';
import { OrgMembershipDefaultModel } from './models/orgMembershipDefault';
import { RlsSettingModel } from './models/rlsSetting';
import { AppLimitEventModel } from './models/appLimitEvent';
import { OrgLimitEventModel } from './models/orgLimitEvent';
import { RlsModuleModel } from './models/rlsModule';
import { PlansModuleModel } from './models/plansModule';
import { SqlActionModel } from './models/sqlAction';
import { DatabaseSettingModel } from './models/databaseSetting';
import { BillingModuleModel } from './models/billingModule';
import { AstMigrationModel } from './models/astMigration';
import { UserModel } from './models/user';
import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
import { WebauthnSettingModel } from './models/webauthnSetting';
import { AppMembershipModel } from './models/appMembership';
import { BillingProviderModuleModel } from './models/billingProviderModule';
import { HierarchyModuleModel } from './models/hierarchyModule';
import { createQueryOperations } from './query';
import { createMutationOperations } from './mutation';
export { GraphQLRequestError } 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),
        getAllRecord: new GetAllRecordModel(client),
        appPermission: new AppPermissionModel(client),
        orgPermission: new OrgPermissionModel(client),
        object: new ObjectModel(client),
        appLevelRequirement: new AppLevelRequirementModel(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),
        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),
        triggerFunction: new TriggerFunctionModel(client),
        databaseTransfer: new DatabaseTransferModel(client),
        partition: new PartitionModel(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),
        encryptedSecretsModule: new EncryptedSecretsModuleModel(client),
        invitesModule: new InvitesModuleModel(client),
        levelsModule: new LevelsModuleModel(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),
        secretsModule: new SecretsModuleModel(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),
        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),
        appStep: new AppStepModel(client),
        appAchievement: new AppAchievementModel(client),
        appLevel: new AppLevelModel(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),
        auditLog: new AuditLogModel(client),
        agentThread: new AgentThreadModel(client),
        agentMessage: new AgentMessageModel(client),
        agentTask: new AgentTaskModel(client),
        roleType: new RoleTypeModel(client),
        identityProvider: new IdentityProviderModel(client),
        ref: new RefModel(client),
        store: new StoreModel(client),
        appPermissionDefault: new AppPermissionDefaultModel(client),
        appLimitCreditCode: new AppLimitCreditCodeModel(client),
        appLimitCapsDefault: new AppLimitCapsDefaultModel(client),
        orgLimitCapsDefault: new OrgLimitCapsDefaultModel(client),
        appLimitCap: new AppLimitCapModel(client),
        orgLimitCap: new OrgLimitCapModel(client),
        membershipType: new MembershipTypeModel(client),
        migrateFile: new MigrateFileModel(client),
        devicesModule: new DevicesModuleModel(client),
        nodeTypeRegistry: new NodeTypeRegistryModel(client),
        appLimitDefault: new AppLimitDefaultModel(client),
        orgLimitDefault: new OrgLimitDefaultModel(client),
        userConnectedAccount: new UserConnectedAccountModel(client),
        commit: new CommitModel(client),
        pubkeySetting: new PubkeySettingModel(client),
        rateLimitsModule: new RateLimitsModuleModel(client),
        usageSnapshot: new UsageSnapshotModel(client),
        appMembershipDefault: new AppMembershipDefaultModel(client),
        orgMembershipDefault: new OrgMembershipDefaultModel(client),
        rlsSetting: new RlsSettingModel(client),
        appLimitEvent: new AppLimitEventModel(client),
        orgLimitEvent: new OrgLimitEventModel(client),
        rlsModule: new RlsModuleModel(client),
        plansModule: new PlansModuleModel(client),
        sqlAction: new SqlActionModel(client),
        databaseSetting: new DatabaseSettingModel(client),
        billingModule: new BillingModuleModel(client),
        astMigration: new AstMigrationModel(client),
        user: new UserModel(client),
        orgMembershipSetting: new OrgMembershipSettingModel(client),
        webauthnSetting: new WebauthnSettingModel(client),
        appMembership: new AppMembershipModel(client),
        billingProviderModule: new BillingProviderModuleModel(client),
        hierarchyModule: new HierarchyModuleModel(client),
        query: createQueryOperations(client),
        mutation: createMutationOperations(client),
    };
}
