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

export type ClientOptions = {
  baseUrl: `${string}://${string}/console/api` | (string & {})
}

export type RemoteFileUploadPayload = {
  url: string
}

export type FileWithSignedUrl = {
  created_at: number | null
  created_by: string | null
  extension: string | null
  id: string
  mime_type: string | null
  name: string
  size: number
  url: string | null
}

export type RemoteFileInfo = {
  file_length: number
  file_type: string
}

export type PostRemoteFilesUploadData = {
  body: RemoteFileUploadPayload
  path?: never
  query?: never
  url: '/remote-files/upload'
}

export type PostRemoteFilesUploadResponses = {
  201: FileWithSignedUrl
}

export type PostRemoteFilesUploadResponse
  = PostRemoteFilesUploadResponses[keyof PostRemoteFilesUploadResponses]

export type GetRemoteFilesByUrlData = {
  body?: never
  path: {
    url: string
  }
  query?: never
  url: '/remote-files/{url}'
}

export type GetRemoteFilesByUrlResponses = {
  200: RemoteFileInfo
}

export type GetRemoteFilesByUrlResponse
  = GetRemoteFilesByUrlResponses[keyof GetRemoteFilesByUrlResponses]
