// This file is auto-generated by @hey-api/openapi-ts

/**
 * HTTPException Model used for error response.
 */
export type HTTPExceptionResponse = {
  detail:
    | string
    | {
        [key: string]: unknown;
      };
};

export type HTTPValidationError = {
  detail?: Array<ValidationError>;
};

/**
 * Login serializer for post bodies.
 */
export type LoginBody = {
  username: string;
  password: string;
};

/**
 * Login serializer for responses.
 */
export type LoginResponse = {
  access_token: string;
};

export type ValidationError = {
  loc: Array<string | number>;
  msg: string;
  type: string;
  input?: unknown;
  ctx?: {
    [key: string]: unknown;
  };
};

export type CreateTokenData = {
  body: LoginBody;
  headers?: {
    /**
     * Content-Type of the request body
     */
    "Content-Type"?: "application/json" | "application/x-www-form-urlencoded";
  };
};

export type CreateTokenResponse = LoginResponse;

export type CreateTokenError = HTTPExceptionResponse | HTTPValidationError;

export type CreateTokenAllAdminsResponse = LoginResponse;

export type CreateTokenAllAdminsError = HTTPExceptionResponse;

export type CreateTokenCliData = {
  body: LoginBody;
};

export type CreateTokenCliResponse = LoginResponse;

export type CreateTokenCliError = HTTPExceptionResponse | HTTPValidationError;
