/**
 * ORM Client - createClient factory
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from './client';
import { AuditLogAuthModel } from './models/auditLogAuth';
import { CryptoAddressModel } from './models/cryptoAddress';
import { EmailModel } from './models/email';
import { IdentityProviderModel } from './models/identityProvider';
import { OrgApiKeyListModel } from './models/orgApiKeyList';
import { PhoneNumberModel } from './models/phoneNumber';
import { PrincipalModel } from './models/principal';
import { PrincipalEntityModel } from './models/principalEntity';
import { PrincipalScopeOverrideModel } from './models/principalScopeOverride';
import { RoleTypeModel } from './models/roleType';
import { UserConnectedAccountModel } from './models/userConnectedAccount';
import { UserModel } from './models/user';
import { WebauthnCredentialModel } from './models/webauthnCredential';
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 {
        auditLogAuth: new AuditLogAuthModel(client),
        cryptoAddress: new CryptoAddressModel(client),
        email: new EmailModel(client),
        identityProvider: new IdentityProviderModel(client),
        orgApiKeyList: new OrgApiKeyListModel(client),
        phoneNumber: new PhoneNumberModel(client),
        principal: new PrincipalModel(client),
        principalEntity: new PrincipalEntityModel(client),
        principalScopeOverride: new PrincipalScopeOverrideModel(client),
        roleType: new RoleTypeModel(client),
        userConnectedAccount: new UserConnectedAccountModel(client),
        user: new UserModel(client),
        webauthnCredential: new WebauthnCredentialModel(client),
        query: createQueryOperations(client),
        mutation: createMutationOperations(client),
    };
}
