/* tslint:disable */
/* eslint-disable */
/**
 * This file was automatically generated by Payload.
 * DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
 * and re-run `payload generate:types` to regenerate this file.
 */

export interface Config {
  auth: {
    users: UserAuthOperations;
  };
  collections: {
    'custom-fields': CustomField;
    'custom-views': CustomView;
    'custom-root-views': CustomRootView;
    users: User;
    'payload-preferences': PayloadPreference;
    'payload-migrations': PayloadMigration;
  };
  db: {
    defaultIDType: string;
  };
  globals: {};
  locale: null;
  user: User & {
    collection: 'users';
  };
}
export interface UserAuthOperations {
  forgotPassword: {
    email: string;
    password: string;
  };
  login: {
    email: string;
    password: string;
  };
  registerFirstUser: {
    email: string;
    password: string;
  };
  unlock: {
    email: string;
    password: string;
  };
}
/**
 * This interface was referenced by `Config`'s JSON-Schema
 * via the `definition` "custom-fields".
 */
export interface CustomField {
  id: string;
  title?: string | null;
  arrayFieldServerComponent?:
    | {
        title?: string | null;
        id?: string | null;
      }[]
    | null;
  arrayFieldClientComponent?:
    | {
        title?: string | null;
        id?: string | null;
      }[]
    | null;
  blocksFieldServerComponent?:
    | {
        content?: string | null;
        id?: string | null;
        blockName?: string | null;
        blockType: 'text';
      }[]
    | null;
  blocksFieldClientComponent?:
    | {
        content?: string | null;
        id?: string | null;
        blockName?: string | null;
        blockType: 'text';
      }[]
    | null;
  checkboxFieldServerComponent?: boolean | null;
  checkboxFieldClientComponent?: boolean | null;
  dateFieldServerComponent?: string | null;
  dateFieldClientComponent?: string | null;
  emailFieldServerComponent?: string | null;
  emailFieldClientComponent?: string | null;
  numberFieldServerComponent?: number | null;
  numberFieldClientComponent?: number | null;
  /**
   * @minItems 2
   * @maxItems 2
   */
  pointFieldServerComponent?: [number, number] | null;
  /**
   * @minItems 2
   * @maxItems 2
   */
  pointFieldClientComponent?: [number, number] | null;
  radioFieldServerComponent?: ('option-1' | 'option-2') | null;
  radioFieldClientComponent?: ('option-1' | 'option-2') | null;
  relationshipFieldServerComponent?: (string | null) | CustomField;
  relationshipFieldClientComponent?: (string | null) | CustomField;
  selectFieldServerComponent?: ('option-1' | 'option-2' | 'option-3') | null;
  selectFieldClientComponent?: ('option-1' | 'option-2' | 'option-3') | null;
  textFieldServerComponent?: string | null;
  textFieldClientComponent?: string | null;
  textareaFieldServerComponent?: string | null;
  textareaFieldClientComponent?: string | null;
  updatedAt: string;
  createdAt: string;
}
/**
 * This interface was referenced by `Config`'s JSON-Schema
 * via the `definition` "custom-views".
 */
export interface CustomView {
  id: string;
  title?: string | null;
  updatedAt: string;
  createdAt: string;
}
/**
 * This interface was referenced by `Config`'s JSON-Schema
 * via the `definition` "custom-root-views".
 */
export interface CustomRootView {
  id: string;
  title?: string | null;
  updatedAt: string;
  createdAt: string;
}
/**
 * This interface was referenced by `Config`'s JSON-Schema
 * via the `definition` "users".
 */
export interface User {
  id: string;
  updatedAt: string;
  createdAt: string;
  email: string;
  resetPasswordToken?: string | null;
  resetPasswordExpiration?: string | null;
  salt?: string | null;
  hash?: string | null;
  loginAttempts?: number | null;
  lockUntil?: string | null;
  password?: string | null;
}
/**
 * This interface was referenced by `Config`'s JSON-Schema
 * via the `definition` "payload-preferences".
 */
export interface PayloadPreference {
  id: string;
  user: {
    relationTo: 'users';
    value: string | User;
  };
  key?: string | null;
  value?:
    | {
        [k: string]: unknown;
      }
    | unknown[]
    | string
    | number
    | boolean
    | null;
  updatedAt: string;
  createdAt: string;
}
/**
 * This interface was referenced by `Config`'s JSON-Schema
 * via the `definition` "payload-migrations".
 */
export interface PayloadMigration {
  id: string;
  name?: string | null;
  batch?: number | null;
  updatedAt: string;
  createdAt: string;
}
/**
 * This interface was referenced by `Config`'s JSON-Schema
 * via the `definition` "auth".
 */
export interface Auth {
  [k: string]: unknown;
}


declare module 'payload' {
  export interface GeneratedTypes extends Config {}
}