// Code generated by protoc-gen-typescript-http. DO NOT EDIT. /* eslint-disable camelcase */ // @ts-nocheck export type Empty = { }; /** authorization_identity 用户识别identity 由上下文传递 */ /** user_identity 用于鉴权 */ export type ListRequest = { /** 文件夹唯一标识,获取顶级的不传 */ identity?: string; /** 根据文件名称模糊查找,当该字段不为空时identity的限定失效 */ name?: string; }; export type ListResponse = { list?: UserFile[]; }; export type UserFile = { /** 唯一标识 */ identity?: string; /** 文件/文件夹名称 */ name?: string; /** 后缀,文件夹时为空 */ ext?: string; /** 父级文件夹序列,按文件名称查询时候生效 */ parent?: string[]; /** 文件信息 */ file?: File; createdAt?: string; updatedAt?: string; /** 子文件夹 */ children?: UserFile[]; }; export type File = { /** 唯一标识 */ identity?: string; /** 文件路径 */ path?: string; /** 文件大小,单位:B */ size?: number; }; export type DirTreeRequest = { /** 文件夹唯一标识,获取顶级的不传 */ identity?: string; }; export type DirTreeResponse = { /** 只返回文件夹 */ list?: UserFile[]; }; export type DownloadRequest = { /** identity列表,必传 */ list?: string[]; }; export type MakeRequest = { /** 文件/文件夹名称,必传 */ name?: string; /** 后缀,文件夹传空即可 */ ext?: string; /** 父文件夹标识,选填 */ parentIdentity?: string; /** 文件大小,非文件夹时必传,单位:B */ size?: number; /** 文件hash值,非文件夹时必传 */ hash?: string; /** 文件地址,非文件夹时必传 */ path?: string; }; export type MakeResponse = { identity?: string; }; /** 同级下,名称必须唯一 */ export type RenameRequest = { /** 必传 */ identity?: string; /** 文件/文件夹名称,必传 */ name?: string; /** 后缀,文件夹传空即可 */ ext?: string; }; export type RemoveRequest = { /** identity列表 */ list?: string[]; }; export type MoveRequest = { /** identity列表 */ list?: string[]; /** 目标文件夹标识,如果是顶级则不填 */ targetIdentity?: string; }; export type CopyRequest = { /** identity列表 */ list?: string[]; /** 目标文件夹标识,如果是顶级则不填 */ targetIdentity?: string; }; export type ShareRequest = { /** identity列表 */ list?: string[]; /** 有效天数,默认永久 */ days?: number; }; export type ShareResponse = { /** 解析分享内容关键key */ key?: string; }; export type ParseShareRequest = { /** 解析分享内容关键key */ key?: string; }; export type ParseShareResponse = { list?: UserFile[]; }; /** 全都需要登录 */ export interface Disk { } type RequestType = { path: string; method: string; body: string | null; }; type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise; export function createDiskClient( handler: RequestHandler ): Disk { return { }; } // @@protoc_insertion_point(typescript-http-eof)