;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ groupsBrandingLogoRemove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ groupId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ groupsCommonEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ groupId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["GroupCommonUpdate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ groupsUsersAdd: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ groupId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["GroupUserCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 201: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["GroupUser"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ groupsUsersEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ groupId: string;
+ groupUserId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["GroupUserEdit"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ groupsUsersRemove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ groupId: string;
+ groupUserId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobs: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Jobs"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsRemoveCompleted: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsFilesCopy: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobCopy"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Nothing to do. This can occur when all items have conflict and the conflict resolution is SKIP. */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Invalid request data */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Some job items failed checks */
+ 409: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobFileDestErrors"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsFilesImportLink: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobCopy"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Invalid request data, Link not found or Invalid password */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsFilesMove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobCopy"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Nothing to do. This can occur when all items have conflict and the conflict resolution is SKIP. */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Invalid request data */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Some job items failed checks */
+ 409: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobFileDestErrors"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsFilesRemove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobRemove"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsFilesRestoreSnapshot: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobCopy"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Invalid request data */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsDetails: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ jobId: number;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsRemove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ jobId: number;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ jobsAbort: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ jobId: number;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksAll: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinksBundle"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mounts: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Mounts"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsDetails: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Mount"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Mount not found */
+ 404: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountEdit"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Invalid request body */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Mount not found */
+ 404: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsDelete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Mount not found */
+ 404: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ bundle: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Bundle"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ comments: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Comments"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ commentsNew: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["CommentCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Comment"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ commentsRange: {
+ parameters: {
+ query: {
+ from: number;
+ limit: number;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Comments"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ commentsDetails: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ commentId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Comment"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ commentsDelete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ commentId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesCopy: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesCopy"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesCopyResult"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesCreate: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ template: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesCreateResult"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesGetLink: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesGetLink"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesExternal: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Redirect */
+ 303: {
+ headers: {
+ /** @description Redirect location */
+ Location?: string;
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesExternalStatus: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesExternalStatus"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesFolderNew: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesFolderCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesGet: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Redirect */
+ 303: {
+ headers: {
+ /** @description Redirect location */
+ Location?: string;
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesInfo: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesFile"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesList: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Files"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesMove: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesMove"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesMoveResult"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesRemove: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesRemove"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesRename: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesRename"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesTagsAdd: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesTagsAdd"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesTagsRemove: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesTagsRemove"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesTagsSet: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesTagsSet"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesUpload: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesUploadLink"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesVersions: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesVersions"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesChangeVersion: {
+ parameters: {
+ query: {
+ path: string;
+ version: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesVersionsRecover: {
+ parameters: {
+ query: {
+ path: string;
+ version: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesVersionsRecover"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsGroupsAdd: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ mountGroupId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountGroupCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Invalid request body or mount or group does not exist */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsGroupsRemove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ mountGroupId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Mount or user does not exist */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ links: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Links"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksCreate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinkCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 201: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksDetails: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksDelete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksCounter: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinkCounter"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksSetDownloadable: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinkSetDownloadable"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksSetMessage: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinkMessage"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksRemovePassword: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksResetPassword: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksSetPassword: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinkSetPassword"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksQr: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksSetUrlHash: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinkSetHash"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ linksSetValidity: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ linkId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["LinkValidity"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Link"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsReauth: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Redirect */
+ 303: {
+ headers: {
+ /** @description Redirect location */
+ Location?: string;
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Mount does not exist or not mount owner */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receivers: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receivers"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversCreate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ReceiverCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 201: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversDetails: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversDelete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversSetAlert: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ReceiverSetAlert"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversSetMessage: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ReceiverMessage"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversRemovePassword: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversResetPassword: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversSetPassword: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ReceiverSetPassword"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversQr: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversSetUrlHash: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ReceiverSetHash"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversSetValidity: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ receiverId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ReceiverValidity"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Receiver"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Limit exceeded */
+ 429: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsSubmountsCreate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 201: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Mount"];
+ };
+ };
+ /** @description Invalid request body, mount or path does not exist */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsUsersAdd: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountUserCreate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 201: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountUser"];
+ };
+ };
+ /** @description Invalid request body or mount does not exist */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Multiple users with same email found */
+ 409: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountCandidate"][];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsUsersEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ mountUserId: string;
+ };
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountUserEdit"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Invalid request body or mount or user does not exist */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ mountsUsersRemove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ mountUserId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Mount or user does not exist */
+ 400: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ places: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Places"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ receiversAll: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ReceiversBundle"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ search: {
+ parameters: {
+ query?: {
+ /**
+ * @description Search query term
+ * @example lorem ipsum
+ */
+ query?: string;
+ /**
+ * @description Pagination offset (default: 0)
+ * @example 0
+ */
+ offset?: number;
+ /**
+ * @description Max number of search results (default: 256, max: 1000)
+ * @example 256
+ */
+ limit?: number;
+ /**
+ * @description Sort field name
+ * @example name
+ */
+ sortField?: "name" | "type" | "size" | "modified" | "contentType";
+ /**
+ * @description Sort direction (default: asc)
+ * @example asc
+ */
+ sortDir?: "asc" | "desc";
+ /**
+ * @description Filter by mount ID
+ * @example 12341234-1234-1234-1234-123412341234
+ */
+ mountId?: string;
+ /**
+ * @description Filter by path (`mountId` is required if `path` is specified)
+ * @example /example/path
+ */
+ path?: string;
+ /**
+ * @description Filter by content type / mime type
+ * @example text/plain
+ */
+ contentType?: string;
+ /**
+ * @description Filter by file type
+ * @example file
+ */
+ fileType?:
+ | "file"
+ | "folder"
+ | "pdf"
+ | "document"
+ | "sheet"
+ | "presentation"
+ | "archive"
+ | "code"
+ | "text"
+ | "audio"
+ | "video"
+ | "image";
+ /**
+ * @description Filter by tag value (key=value pairs)
+ * @example priority=low
+ */
+ tag?: string[];
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SearchResult"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ shared: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Shared"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ sharedDetails: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SharedFile"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ snapshots: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["MountsSnapshots"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ trash: {
+ parameters: {
+ query?: {
+ /** @description Page cursor */
+ cursor?: string;
+ /**
+ * @description Max number of items per page
+ * @example 256
+ */
+ pageSize?: number;
+ /**
+ * @description Sort field name
+ * @example name
+ */
+ sortField?: "name" | "path" | "size" | "deleted";
+ /**
+ * @description Sort direction (default: asc)
+ * @example asc
+ */
+ sortDir?: "asc" | "desc";
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Trash"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ trashEmpty: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ trashUndelete: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description Specific files can be undeleted by providing their mount ID and paths. If the files list is empty, all files will be undeleted. */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["JobUndelete"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Job"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ user: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["User"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description New user's info */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["UserEdit"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ activity: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Activity"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userAppConfig: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["AppConfig"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ appPasswordsList: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["AppPasswords"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ appPasswordsGenerate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["AppPasswordGenerate"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["AppPassword"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ appPasswordsRevoke: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ apwId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userAttributes: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["UserAttributes"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userAuthenticated: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ bookmarks: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Bookmarks"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ bookmarksEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Bookmarks"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Bookmarks"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ bookmarksCreate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Bookmark"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 201: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ bookmarksRemove: {
+ parameters: {
+ query: {
+ mountId: string;
+ path: string;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Bookmark not found */
+ 404: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userChangeEmail: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["UserChangeEmail"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ connections: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Connections"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userChangePassword: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description TODO */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["UserChangePassword"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ brandingLogoRemove: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsLanguage: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsLanguage"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsLanguageEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description New settings */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsLanguage"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsNotifications: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsNotifications"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsNotificationsEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description New settings */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsNotifications"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsSecurity: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsSecurity"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsSecurityEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description New settings */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsSecurity"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsSeen: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsSeen"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ settingsSeenEdit: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description New settings */
+ requestBody?: {
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["SettingsSeen"];
+ };
+ };
+ responses: {
+ /** @description Success */
+ 204: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesGetMulti: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description A list of mountId:path pairs of the files to be included in the ZIP archive. Max body size is 10 MB. */
+ requestBody?: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /**
+ * @description A list of `mountId:path` pairs
+ * @example [
+ * "11111111-1111-1111-1111-111111111111:/example/path1",
+ * "22222222-2222-2222-2222-222222222222:/example/path2"
+ * ]
+ */
+ files?: string[];
+ };
+ };
+ };
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesGetMultiName: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ name: string;
+ };
+ cookie?: never;
+ };
+ /** @description A list of `mountId:path` pairs of the files to be included in the ZIP archive. Max body size is 10 MB. */
+ requestBody?: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /**
+ * @description A list of `mountId:path` pairs
+ * @example [
+ * "11111111-1111-1111-1111-111111111111:/example/path1",
+ * "22222222-2222-2222-2222-222222222222:/example/path2"
+ * ]
+ */
+ files?: string[];
+ };
+ };
+ };
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ groupsContentGroupsBrandingLogo: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ groupId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ groupsContentGroupsBrandingLogoUpdate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path: {
+ groupId: string;
+ };
+ cookie?: never;
+ };
+ /** @description New branding logo file */
+ requestBody?: {
+ content: {
+ "application/octet-stream": string;
+ "multipart/form-data": {
+ /** Format: binary */
+ file?: string;
+ };
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesFile"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesGet: {
+ parameters: {
+ query: {
+ path: string;
+ /**
+ * @description Forces the web browsers to download the file. Adds the `Content-Disposition: attachment; filename="file.txt"; filename*=UTF-8''file.txt` header.
+ * @example true
+ */
+ force?: boolean;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesGetPost: {
+ parameters: {
+ query: {
+ path: string;
+ /**
+ * @description Forces the web browsers to download the file. Adds the `Content-Disposition: attachment; filename="file.txt"; filename*=UTF-8''file.txt` header.
+ * @example true
+ */
+ force?: boolean;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description A list of names of the files to be included in the ZIP archive. Filtered folders will include their children. Max body size is 10 MB. */
+ requestBody?: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /**
+ * @description A list of names to include
+ * @example [
+ * "file.txt",
+ * "folder1",
+ * "folder2"
+ * ]
+ */
+ files?: string[];
+ };
+ };
+ };
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesGetName: {
+ parameters: {
+ query: {
+ path: string;
+ /**
+ * @description Forces the web browsers to download the file. Adds the `Content-Disposition: attachment; filename="file.txt"; filename*=UTF-8''file.txt` header.
+ * @example true
+ */
+ force?: boolean;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ name: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesGetNamePost: {
+ parameters: {
+ query: {
+ path: string;
+ /**
+ * @description Forces the web browsers to download the file. Adds the `Content-Disposition: attachment; filename="file.txt"; filename*=UTF-8''file.txt` header.
+ * @example true
+ */
+ force?: boolean;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ name: string;
+ };
+ cookie?: never;
+ };
+ /** @description A list of names of the files to be included in the ZIP archive. Filtered folders will include their children. Max body size is 10 MB. */
+ requestBody?: {
+ content: {
+ "application/x-www-form-urlencoded": {
+ /**
+ * @description A list of names to include
+ * @example [
+ * "file.txt",
+ * "folder1",
+ * "folder2"
+ * ]
+ */
+ files?: string[];
+ };
+ };
+ };
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesListRecursive: {
+ parameters: {
+ query: {
+ path: string;
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Newline-delimited JSON files */
+ 200: {
+ headers: {
+ /** @description Chunked encoding */
+ "Transfer-Encoding"?: "chunked";
+ [name: string]: unknown;
+ };
+ content: {
+ "application/x-ndjson; charset=utf-8": components["schemas"]["FilesListRecursiveItem"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ filesContentFilesPut: {
+ parameters: {
+ query: {
+ path: string;
+ /**
+ * @description Name of the uploaded file. If this parameter is not set and multipart body is used, the file name from the multipart body will be used (this parameter takes precedence). If raw request body is used this parameter is required.
+ * @example file.txt
+ */
+ filename?: string;
+ /**
+ * @description Return full file info (`FilesFile`) in the response.
+ * @example true
+ */
+ info?: boolean;
+ /**
+ * @description Overwrite an existing file.
+ * @example false
+ */
+ overwrite?: boolean;
+ /**
+ * @description Overwrite an existing file if modified matches.
+ * @example 1614877008000
+ */
+ overwriteIfModified?: number;
+ /**
+ * @description Overwrite an existing file if size matches.
+ * @example 42
+ */
+ overwriteIfSize?: number;
+ /**
+ * @description Overwrite an existing file if hash matches.
+ * @example 1a79a4d60de6718e8e5b326e338ae533
+ */
+ overwriteIfHash?: string;
+ /**
+ * @description Overwrite an existing file if other parameters match (e.g. overWriteIfModified) but create a new file if the old one does not exist.
+ * @example false
+ */
+ overwriteIgnoreNonexistent?: boolean;
+ /**
+ * @description Overwrite an existing file.
+ * @example false
+ */
+ autorename?: boolean;
+ /**
+ * @description Set custom value for modified. Current time by default.
+ * @example 1614877008000
+ */
+ modified?: number;
+ /**
+ * @description Tags for the new file. Format: key=value
+ * @example description=File description
+ */
+ tags?: string[];
+ };
+ header?: never;
+ path: {
+ mountId: string;
+ };
+ cookie?: never;
+ };
+ /** @description File */
+ requestBody?: {
+ content: {
+ "application/octet-stream": string;
+ "multipart/form-data": {
+ /** Format: binary */
+ file?: string;
+ };
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesFile"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userProfilePictureContentProfilePicture: {
+ parameters: {
+ query?: {
+ /**
+ * @description Controls whether the response contains the default profile picture or 404 not found in case the user does not have a custom profile picture set.
+ * @example true
+ */
+ nodefault?: boolean;
+ };
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ userProfilePictureContentProfilePictureUpdate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description New profile picture file */
+ requestBody?: {
+ content: {
+ "application/octet-stream": string;
+ "multipart/form-data": {
+ /** Format: binary */
+ file?: string;
+ };
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesFile"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ brandingContentBrandingLogo: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ brandingContentBrandingLogoUpdate: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ /** @description New branding logo file */
+ requestBody?: {
+ content: {
+ "application/octet-stream": string;
+ "multipart/form-data": {
+ /** Format: binary */
+ file?: string;
+ };
+ };
+ };
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["FilesFile"];
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ usersProfilePictureContentProfilePicture: {
+ parameters: {
+ query?: {
+ /**
+ * @description Controls whether the response contains the default profile picture or 404 not found in case the user does not have a custom profile picture set.
+ * @example true
+ */
+ nodefault?: boolean;
+ };
+ header?: never;
+ path: {
+ userId: string;
+ };
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description File */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/octet-stream": string;
+ };
+ };
+ /** @description Unauthorized */
+ 401: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ clientIp: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Client's IP address (without trailing new line) */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content?: never;
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ oauth2DeviceCode: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ oauth2Token: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+ profile: {
+ parameters: {
+ query?: never;
+ header?: never;
+ path?: never;
+ cookie?: never;
+ };
+ requestBody?: never;
+ responses: {
+ /** @description Success */
+ 200: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["Profile"];
+ };
+ };
+ /** @description Internal server error */
+ 500: {
+ headers: {
+ [name: string]: unknown;
+ };
+ content: {
+ "application/json; charset=utf-8": components["schemas"]["ApiError"];
+ };
+ };
+ };
+ };
+}
diff --git a/pro/src/langs/en.json b/pro/src/langs/en.json
index 9159b83..da83a52 100644
--- a/pro/src/langs/en.json
+++ b/pro/src/langs/en.json
@@ -22,6 +22,11 @@
"protocol_yandexdisk_connect_fail": "Something went wrong from response from Yandex Disk website. Maybe the network connection is not good. Maybe you rejected the auth?",
"protocol_yandexdisk_connect_succ_revoke": "You've connected. If you want to disconnect, click this button.",
+ "protocol_koofr_connecting": "Connectting",
+ "protocol_koofr_connect_manualinput_succ": "You've connected",
+ "protocol_koofr_connect_fail": "Something went wrong from response from Koofr website. Maybe the network connection is not good. Maybe you rejected the auth?",
+ "protocol_koofr_connect_succ_revoke": "You've connected. If you want to disconnect, click this button.",
+
"modal_googledriveauth_tutorial": "Please firstly go to the address, then go on the auth flow. In the end, you will see a code, please paste that code here and submit.
",
"modal_googledriveauth_copybutton": "Click to copy the auth url",
"modal_googledriveauth_copynotice": "The auth url is copied to the clipboard!",
@@ -76,6 +81,17 @@
"modal_yandexdiskrevokeauth_clean_notice": "Cleaned!",
"modal_yandexdiskrevokeauth_clean_fail": "Something goes wrong while revoking.",
+ "modal_koofrauth_tutorial": "Please firstly go to the address, then go on the auth flow. In the end, you will be redirected to here.
",
+ "modal_koofrauth_copybutton": "Click to copy the auth url",
+ "modal_koofrauth_copynotice": "The auth url is copied to the clipboard!",
+ "modal_koofrrevokeauth_step1": "Step 1: Go to the following address, you can remove the connection there.",
+ "modal_koofrrevokeauth_step2": "Step 2: Click the button below, to clean the locally-saved login credentials.",
+ "modal_koofrrevokeauth_clean": "Clean Locally-Saved Login Credentials",
+ "modal_koofrrevokeauth_clean_desc": "You need to click the button.",
+ "modal_koofrrevokeauth_clean_button": "Clean",
+ "modal_koofrrevokeauth_clean_notice": "Cleaned!",
+ "modal_koofrrevokeauth_clean_fail": "Something goes wrong while revoking.",
+
"modal_prorevokeauth": "Revoke auth by clicking here and follow the steps.",
"modal_prorevokeauth_clean": "Clean",
"modal_prorevokeauth_clean_desc": "Clean local auth record",
@@ -165,10 +181,29 @@
"settings_yandexdisk_connect_succ": "Great! We can connect to Yandex Disk!",
"settings_yandexdisk_connect_fail": "We cannot connect to Yandex Disk.",
+ "settings_koofr": "Koofr (PRO) (beta)",
+ "settings_chooseservice_koofr": "Koofr (PRO) (beta)",
+ "settings_koofr_disclaimer1": "Disclaimer: This app is NOT an official Koofr product. The app just uses Koofr's public api.",
+ "settings_koofr_disclaimer2": "Disclaimer: The information is stored locally. Other malicious/harmful/faulty plugins could read the info. If you see any unintentional access to your Koofr, please immediately disconnect this app on https://app.koofr.net/app/admin/preferences/security .",
+ "settings_koofr_pro_desc": "!!It's a PRO feature of Remotely Save! You need a Remotely Save online account for this feature!!(scroll down for more info about PRO account.)
",
+ "settings_koofr_notshowuphint": "Koofr Settings Not Available",
+ "settings_koofr_notshowuphint_desc": "Koofr settings are not available, because you haven't subscribed to the PRO feature in your Remotely Save account.",
+ "settings_koofr_notshowuphint_view_pro": "View PRO Settings",
+ "settings_koofr_folder": "We will create and sync inside the folder {{remoteBaseDir}} on your Koofr. DO NOT create this folder by yourself manually.",
+ "settings_koofr_revoke": "Revoke Auth",
+ "settings_koofr_revoke_desc": "You've connected. If you want to disconnect, click this button.",
+ "settings_koofr_revoke_button": "Revoke Auth",
+ "settings_koofr_auth": "Auth",
+ "settings_koofr_auth_desc": "Auth.",
+ "settings_koofr_auth_button": "Auth",
+ "settings_koofr_connect_succ": "Great! We can connect to Koofr!",
+ "settings_koofr_connect_fail": "We cannot connect to Koofr.",
+
"settings_export_googledrive_button": "Export Google Drive Part",
"settings_export_box_button": "Export Box Part",
"settings_export_pcloud_button": "Export pCloud Part",
"settings_export_yandexdisk_button": "Export Yandex Disk Part",
+ "settings_export_koofr_button": "Export Koofr Part",
"settings_pro": "Account (for PRO features)",
"settings_pro_tutorial": "Using basic features of Remotely Save is FREE and do NOT need an account.
However, you will need an online account and PAY for the PRO features such as smart conflict.
Firstly please click the button to sign up and sign in to the website: https://remotelysave.com. Notice: It's different from, and NOT affiliated with Obsidian account.
Secondly please \"connect\" your local device to your online account.",
diff --git a/pro/src/langs/zh_cn.json b/pro/src/langs/zh_cn.json
index 57c1d8a..022406f 100644
--- a/pro/src/langs/zh_cn.json
+++ b/pro/src/langs/zh_cn.json
@@ -22,6 +22,11 @@
"protocol_yandexdisk_connect_fail": "Yandex Disk 官网返回错误。可能是网络连接不稳定。也可能是您拒绝了授权?",
"protocol_yandexdisk_connect_succ_revoke": "您已连接上账号。如果要取消连接,请点击此按钮。",
+ "protocol_koofr_connecting": "正在连接",
+ "protocol_koofr_connect_manualinput_succ": "连接成功",
+ "protocol_koofr_connect_fail": "Yandex Disk 官网返回错误。可能是网络连接不稳定。也可能是您拒绝了授权?",
+ "protocol_koofr_connect_succ_revoke": "您已连接上账号。如果要取消连接,请点击此按钮。",
+
"modal_googledriveauth_tutorial": "
请访问此网址,然后会进入授权流程。最后,您会看到一个码,请复制粘贴到这里然后提交。
",
"modal_googledriveauth_copybutton": "点击以复制网址",
"modal_googledriveauth_copynotice": "网址已复制!",
@@ -81,6 +86,22 @@
"modal_yandexdiskrevokeauth_clean_notice": "已清理!",
"modal_yandexdiskrevokeauth_clean_fail": "清理授权时候发生了错误。",
+ "modal_koofrauth_tutorial": "请访问此网址,然后会进入授权流程。最后,您会被重定向回来。
",
+ "modal_koofrauth_copybutton": "点击以复制网址",
+ "modal_koofrauth_copynotice": "网址已复制!",
+ "modal_koofr_maualinput": "网站上的码",
+ "modal_koofr_maualinput_desc": "请粘贴授权流程最后的那个码,然后点击确认。",
+ "modal_koofr_maualinput_notice": "正在尝试连接 Yandex Disk 并更新授权信息......",
+ "modal_koofr_maualinput_succ_notice": "很好!授权信息已更新!",
+ "modal_koofr_maualinput_fail_notice": "更新授权信息失败。请稍后重试。",
+ "modal_koofrrevokeauth_step1": "第 1 步:访问以下网址,可以删除连接。",
+ "modal_koofrrevokeauth_step2": "第 2 步:点击以下按钮,从而清理本地的登录信息。",
+ "modal_koofrrevokeauth_clean": "清理本地登录信息",
+ "modal_koofrrevokeauth_clean_desc": "您需要点击此按钮。",
+ "modal_koofrrevokeauth_clean_button": "清理",
+ "modal_koofrrevokeauth_clean_notice": "已清理!",
+ "modal_koofrrevokeauth_clean_fail": "清理授权时候发生了错误。",
+
"modal_prorevokeauth": "点击这里和按照步骤取消授权。",
"modal_prorevokeauth_clean": "清理",
"modal_prorevokeauth_clean_desc": "清理本地授权记录",
@@ -170,10 +191,29 @@
"settings_yandexdisk_connect_succ": "很好!我们可连接上 Yandex Disk!",
"settings_yandexdisk_connect_fail": "我们未能连接上 Yandex Disk。",
+ "settings_koofr": "Koofr (PRO) (beta)",
+ "settings_chooseservice_koofr": "Koofr (PRO) (beta)",
+ "settings_koofr_disclaimer1": "声明:本插件不是 Koofr 的官方产品。只是用到了它的公开 API。",
+ "settings_koofr_disclaimer2": "声明:您所输入的信息存储于本地。其它有害的或者出错的插件,是有可能读取到这些信息的。如果您发现任何不符合预期的 Koofr 访问,请立刻在以下网站操作断开连接: https://app.koofr.net/app/admin/preferences/security 。",
+ "settings_koofr_pro_desc": "!!这是 PRO(付费)功能! 您需要在线账号来使用此功能!!(向下滑可以看到 PRO 账号的更多信息。)
",
+ "settings_koofr_notshowuphint": "Koofr 设置不可用",
+ "settings_koofr_notshowuphint_desc": "Koofr 设置不可用,因为您没有在 Remotely Save 账号里开启这个 PRO 功能。",
+ "settings_koofr_notshowuphint_view_pro": "查看 PRO 相关设置",
+ "settings_koofr_folder": "我们会在 Koofr 创建此文件夹并同步内容进去: {{remoteBaseDir}} 。请不要手动在网站上创建。",
+ "settings_koofr_revoke": "撤回鉴权",
+ "settings_koofr_revoke_desc": "您现在已连接。如果想取消连接,请点击此按钮。",
+ "settings_koofr_revoke_button": "撤回鉴权",
+ "settings_koofr_auth": "鉴权",
+ "settings_koofr_auth_desc": "鉴权.",
+ "settings_koofr_auth_button": "鉴权",
+ "settings_koofr_connect_succ": "很好!我们可连接上 Koofr!",
+ "settings_koofr_connect_fail": "我们未能连接上 Koofr。",
+
"settings_export_googledrive_button": "导出 Google Drive 部分",
"settings_export_box_button": "导出 Box 部分",
"settings_export_pcloud_button": "导出 pCloud 部分",
"settings_export_yandexdisk_button": "导出 Yandex Disk 部分",
+ "settings_export_koofr_button": "导出 Koofr 部分",
"settings_pro": "账号(PRO 付费功能)",
"settings_pro_tutorial": "使用 Remotely Save 的基本功能是免费的,而且不需要注册对应账号。
但是,您需要注册账号和对PRO功能付费使用,如智能处理冲突功能。
第一步:点击按钮从而注册和登录网站:https://remotelysave.com。注意:这和 Obsidian 官方账号无关,是不同的账号。
第二部:点击“连接”按钮,从而连接本设备和在线账号。",
diff --git a/pro/src/langs/zh_tw.json b/pro/src/langs/zh_tw.json
index ed86616..6a43572 100644
--- a/pro/src/langs/zh_tw.json
+++ b/pro/src/langs/zh_tw.json
@@ -22,6 +22,11 @@
"protocol_yandexdisk_connect_fail": "Yandex Disk 官網返回錯誤。可能是網路連線不穩定。也可能是您拒絕了授權?",
"protocol_yandexdisk_connect_succ_revoke": "您已連線上賬號。如果要取消連線,請點選此按鈕。",
+ "protocol_koofr_connecting": "正在連線",
+ "protocol_koofr_connect_manualinput_succ": "連線成功",
+ "protocol_koofr_connect_fail": "Yandex Disk 官網返回錯誤。可能是網路連線不穩定。也可能是您拒絕了授權?",
+ "protocol_koofr_connect_succ_revoke": "您已連線上賬號。如果要取消連線,請點選此按鈕。",
+
"modal_googledriveauth_tutorial": "
請訪問此網址,然後會進入授權流程。最後,您會看到一個碼,請複製貼上到這裡然後提交。
",
"modal_googledriveauth_copybutton": "點選以複製網址",
"modal_googledriveauth_copynotice": "網址已複製!",
@@ -81,6 +86,22 @@
"modal_yandexdiskrevokeauth_clean_notice": "已清理!",
"modal_yandexdiskrevokeauth_clean_fail": "清理授權時候發生了錯誤。",
+ "modal_koofrauth_tutorial": "請訪問此網址,然後會進入授權流程。最後,您會被重定向回來。
",
+ "modal_koofrauth_copybutton": "點選以複製網址",
+ "modal_koofrauth_copynotice": "網址已複製!",
+ "modal_koofr_maualinput": "網站上的碼",
+ "modal_koofr_maualinput_desc": "請貼上授權流程最後的那個碼,然後點選確認。",
+ "modal_koofr_maualinput_notice": "正在嘗試連線 Yandex Disk 並更新授權資訊......",
+ "modal_koofr_maualinput_succ_notice": "很好!授權資訊已更新!",
+ "modal_koofr_maualinput_fail_notice": "更新授權資訊失敗。請稍後重試。",
+ "modal_koofrrevokeauth_step1": "第 1 步:訪問以下網址,可以刪除連線。",
+ "modal_koofrrevokeauth_step2": "第 2 步:點選以下按鈕,從而清理本地的登入資訊。",
+ "modal_koofrrevokeauth_clean": "清理本地登入資訊",
+ "modal_koofrrevokeauth_clean_desc": "您需要點選此按鈕。",
+ "modal_koofrrevokeauth_clean_button": "清理",
+ "modal_koofrrevokeauth_clean_notice": "已清理!",
+ "modal_koofrrevokeauth_clean_fail": "清理授權時候發生了錯誤。",
+
"modal_prorevokeauth": "點選這裡和按照步驟取消授權。",
"modal_prorevokeauth_clean": "清理",
"modal_prorevokeauth_clean_desc": "清理本地授權記錄",
@@ -170,10 +191,29 @@
"settings_yandexdisk_connect_succ": "很好!我們可連線上 Yandex Disk!",
"settings_yandexdisk_connect_fail": "我們未能連線上 Yandex Disk。",
+ "settings_koofr": "Koofr (PRO) (beta)",
+ "settings_chooseservice_koofr": "Koofr (PRO) (beta)",
+ "settings_koofr_disclaimer1": "宣告:本外掛不是 Koofr 的官方產品。只是用到了它的公開 API。",
+ "settings_koofr_disclaimer2": "宣告:您所輸入的資訊儲存於本地。其它有害的或者出錯的外掛,是有可能讀取到這些資訊的。如果您發現任何不符合預期的 Koofr 訪問,請立刻在以下網站操作斷開連線: https://app.koofr.net/app/admin/preferences/security 。",
+ "settings_koofr_pro_desc": "!!這是 PRO(付費)功能! 您需要線上賬號來使用此功能!!(向下滑可以看到 PRO 賬號的更多資訊。)
",
+ "settings_koofr_notshowuphint": "Koofr 設定不可用",
+ "settings_koofr_notshowuphint_desc": "Koofr 設定不可用,因為您沒有在 Remotely Save 賬號裡開啟這個 PRO 功能。",
+ "settings_koofr_notshowuphint_view_pro": "檢視 PRO 相關設定",
+ "settings_koofr_folder": "我們會在 Koofr 建立此資料夾並同步內容進去: {{remoteBaseDir}} 。請不要手動在網站上建立。",
+ "settings_koofr_revoke": "撤回鑑權",
+ "settings_koofr_revoke_desc": "您現在已連線。如果想取消連線,請點選此按鈕。",
+ "settings_koofr_revoke_button": "撤回鑑權",
+ "settings_koofr_auth": "鑑權",
+ "settings_koofr_auth_desc": "鑑權.",
+ "settings_koofr_auth_button": "鑑權",
+ "settings_koofr_connect_succ": "很好!我們可連線上 Koofr!",
+ "settings_koofr_connect_fail": "我們未能連線上 Koofr。",
+
"settings_export_googledrive_button": "匯出 Google Drive 部分",
"settings_export_box_button": "匯出 Box 部分",
"settings_export_pcloud_button": "匯出 pCloud 部分",
"settings_export_yandexdisk_button": "匯出 Yandex Disk 部分",
+ "settings_export_koofr_button": "匯出 Koofr 部分",
"settings_pro": "賬號(PRO 付費功能)",
"settings_pro_tutorial": "使用 Remotely Save 的基本功能是免費的,而且不需要註冊對應賬號。
但是,您需要註冊賬號和對PRO功能付費使用,如智慧處理衝突功能。
第一步:點選按鈕從而註冊和登入網站:https://remotelysave.com。注意:這和 Obsidian 官方賬號無關,是不同的賬號。
第二部:點選“連線”按鈕,從而連線本裝置和線上賬號。",
diff --git a/pro/src/settingsKoofr.ts b/pro/src/settingsKoofr.ts
new file mode 100644
index 0000000..de2617b
--- /dev/null
+++ b/pro/src/settingsKoofr.ts
@@ -0,0 +1,367 @@
+import cloneDeep from "lodash/cloneDeep";
+import { type App, Modal, Notice, Setting } from "obsidian";
+import { getClient } from "../../src/fsGetter";
+import type { TransItemType } from "../../src/i18n";
+import type RemotelySavePlugin from "../../src/main";
+import { stringToFragment } from "../../src/misc";
+import { ChangeRemoteBaseDirModal } from "../../src/settings";
+import {
+ DEFAULT_KOOFR_CONFIG,
+ generateAuthUrl,
+ sendRefreshTokenReq,
+} from "./fsKoofr";
+
+class KoofrAuthModal extends Modal {
+ readonly plugin: RemotelySavePlugin;
+ readonly authDiv: HTMLDivElement;
+ readonly revokeAuthDiv: HTMLDivElement;
+ readonly revokeAuthSetting: Setting;
+ readonly t: (x: TransItemType, vars?: any) => string;
+ constructor(
+ app: App,
+ plugin: RemotelySavePlugin,
+ authDiv: HTMLDivElement,
+ revokeAuthDiv: HTMLDivElement,
+ revokeAuthSetting: Setting,
+ t: (x: TransItemType, vars?: any) => string
+ ) {
+ super(app);
+ this.plugin = plugin;
+ this.authDiv = authDiv;
+ this.revokeAuthDiv = revokeAuthDiv;
+ this.revokeAuthSetting = revokeAuthSetting;
+ this.t = t;
+ }
+
+ async onOpen() {
+ const { contentEl } = this;
+ const t = this.t;
+
+ const authUrl = generateAuthUrl(this.plugin.settings.koofr.api, true);
+ const div2 = contentEl.createDiv();
+ div2.createDiv({
+ text: stringToFragment(t("modal_koofrauth_tutorial")),
+ });
+ div2.createEl(
+ "button",
+ {
+ text: t("modal_koofrauth_copybutton"),
+ },
+ (el) => {
+ el.onclick = async () => {
+ await navigator.clipboard.writeText(authUrl);
+ new Notice(t("modal_koofrauth_copynotice"));
+ };
+ }
+ );
+
+ contentEl.createEl("p").createEl("a", {
+ href: authUrl,
+ text: authUrl,
+ });
+
+ // let refreshToken = "";
+ // new Setting(contentEl)
+ // .setName(t("modal_koofr_maualinput"))
+ // .setDesc(t("modal_koofr_maualinput_desc"))
+ // .addText((text) =>
+ // text
+ // .setPlaceholder("")
+ // .setValue("")
+ // .onChange((val) => {
+ // refreshToken = val.trim();
+ // })
+ // )
+ // .addButton(async (button) => {
+ // button.setButtonText(t("submit"));
+ // button.onClick(async () => {
+ // new Notice(t("modal_koofr_maualinput_notice"));
+
+ // try {
+ // if (this.plugin.settings.koofr === undefined) {
+ // this.plugin.settings.koofr = cloneDeep(
+ // DEFAULT_KOOFR_CONFIG
+ // );
+ // }
+ // this.plugin.settings.koofr.refreshToken = refreshToken;
+ // this.plugin.settings.koofr.accessToken = "access";
+ // this.plugin.settings.koofr.accessTokenExpiresAtTimeMs = 1;
+ // this.plugin.settings.koofr.accessTokenExpiresInMs = 1;
+
+ // // TODO: abstraction leaking now, how to fix?
+ // const k = await sendRefreshTokenReq(refreshToken);
+ // const ts = Date.now();
+ // this.plugin.settings.koofr.accessToken = k.access_token;
+ // this.plugin.settings.koofr.accessTokenExpiresInMs =
+ // k.expires_in * 1000;
+ // this.plugin.settings.koofr.accessTokenExpiresAtTimeMs =
+ // ts + k.expires_in * 1000 - 60 * 2 * 1000;
+ // await this.plugin.saveSettings();
+
+ // // try to remove data in clipboard
+ // await navigator.clipboard.writeText("");
+
+ // new Notice(t("modal_koofr_maualinput_succ_notice"));
+ // } catch (e) {
+ // console.error(e);
+ // new Notice(t("modal_koofr_maualinput_fail_notice"));
+ // } finally {
+ // this.authDiv.toggleClass(
+ // "koofr-auth-button-hide",
+ // this.plugin.settings.koofr.refreshToken !== ""
+ // );
+ // this.revokeAuthDiv.toggleClass(
+ // "koofr-revoke-auth-button-hide",
+ // this.plugin.settings.koofr.refreshToken === ""
+ // );
+ // this.close();
+ // }
+ // });
+ // });
+ }
+
+ onClose() {
+ const { contentEl } = this;
+ contentEl.empty();
+ }
+}
+
+class KoofrRevokeAuthModal extends Modal {
+ readonly plugin: RemotelySavePlugin;
+ readonly authDiv: HTMLDivElement;
+ readonly revokeAuthDiv: HTMLDivElement;
+ readonly t: (x: TransItemType, vars?: any) => string;
+ constructor(
+ app: App,
+ plugin: RemotelySavePlugin,
+ authDiv: HTMLDivElement,
+ revokeAuthDiv: HTMLDivElement,
+ t: (x: TransItemType, vars?: any) => string
+ ) {
+ super(app);
+ this.plugin = plugin;
+ this.authDiv = authDiv;
+ this.revokeAuthDiv = revokeAuthDiv;
+ this.t = t;
+ }
+
+ async onOpen() {
+ const t = this.t;
+ const { contentEl } = this;
+
+ contentEl.createEl("p", {
+ text: t("modal_koofrrevokeauth_step1"),
+ });
+ const consentUrl = "https://app.koofr.net/app/admin/preferences/security";
+ contentEl.createEl("p").createEl("a", {
+ href: consentUrl,
+ text: consentUrl,
+ });
+
+ contentEl.createEl("p", {
+ text: t("modal_koofrrevokeauth_step2"),
+ });
+
+ new Setting(contentEl)
+ .setName(t("modal_koofrrevokeauth_clean"))
+ .setDesc(t("modal_koofrrevokeauth_clean_desc"))
+ .addButton(async (button) => {
+ button.setButtonText(t("modal_koofrrevokeauth_clean_button"));
+ button.onClick(async () => {
+ try {
+ this.plugin.settings.koofr = cloneDeep(DEFAULT_KOOFR_CONFIG);
+
+ await this.plugin.saveSettings();
+ this.authDiv.toggleClass(
+ "koofr-auth-button-hide",
+ this.plugin.settings.koofr.refreshToken !== ""
+ );
+ this.revokeAuthDiv.toggleClass(
+ "koofr-revoke-auth-button-hide",
+ this.plugin.settings.koofr.refreshToken === ""
+ );
+ new Notice(t("modal_koofrrevokeauth_clean_notice"));
+ this.close();
+ } catch (err) {
+ console.error(err);
+ new Notice(t("modal_koofrrevokeauth_clean_fail"));
+ }
+ });
+ });
+ }
+
+ onClose() {
+ const { contentEl } = this;
+ contentEl.empty();
+ }
+}
+
+export const generateKoofrSettingsPart = (
+ containerEl: HTMLElement,
+ t: (x: TransItemType, vars?: any) => string,
+ app: App,
+ plugin: RemotelySavePlugin,
+ saveUpdatedConfigFunc: () => Promise | undefined
+) => {
+ const koofrDiv = containerEl.createEl("div", {
+ cls: "koofr-hide",
+ });
+ koofrDiv.toggleClass("koofr-hide", plugin.settings.serviceType !== "koofr");
+ koofrDiv.createEl("h2", { text: t("settings_koofr") });
+
+ const koofrLongDescDiv = koofrDiv.createEl("div", {
+ cls: "settings-long-desc",
+ });
+ for (const c of [
+ t("settings_koofr_disclaimer1"),
+ t("settings_koofr_disclaimer2"),
+ ]) {
+ koofrLongDescDiv.createEl("p", {
+ text: c,
+ cls: "koofr-disclaimer",
+ });
+ }
+
+ koofrLongDescDiv.createEl("p", {
+ text: t("settings_koofr_folder", {
+ remoteBaseDir: plugin.settings.koofr.remoteBaseDir || app.vault.getName(),
+ }),
+ });
+
+ koofrLongDescDiv.createDiv({
+ text: stringToFragment(t("settings_koofr_pro_desc")),
+ cls: "koofr-disclaimer",
+ });
+
+ const koofrNotShowUpHintSetting = new Setting(koofrDiv)
+ .setName(t("settings_koofr_notshowuphint"))
+ .setDesc(t("settings_koofr_notshowuphint_desc"))
+ .addButton(async (button) => {
+ button.setButtonText(t("settings_koofr_notshowuphint_view_pro"));
+ button.onClick(async () => {
+ window.location.href = "#settings-pro";
+ });
+ });
+
+ const koofrAllowedToUsedDiv = koofrDiv.createDiv();
+ // if pro enabled, show up; otherwise hide.
+ const allowKoofr =
+ plugin.settings.pro?.enabledProFeatures.filter(
+ (x) => x.featureName === "feature-koofr"
+ ).length === 1;
+ console.debug(`allow to show up koofr settings? ${allowKoofr}`);
+ if (allowKoofr) {
+ koofrAllowedToUsedDiv.removeClass("koofr-allow-to-use-hide");
+ koofrNotShowUpHintSetting.settingEl.addClass("koofr-allow-to-use-hide");
+ } else {
+ koofrAllowedToUsedDiv.addClass("koofr-allow-to-use-hide");
+ koofrNotShowUpHintSetting.settingEl.removeClass("koofr-allow-to-use-hide");
+ }
+
+ const koofrSelectAuthDiv = koofrAllowedToUsedDiv.createDiv();
+ const koofrAuthDiv = koofrSelectAuthDiv.createDiv({
+ cls: "koofr-auth-button-hide settings-auth-related",
+ });
+ const koofrRevokeAuthDiv = koofrSelectAuthDiv.createDiv({
+ cls: "koofr-revoke-auth-button-hide settings-auth-related",
+ });
+
+ const koofrRevokeAuthSetting = new Setting(koofrRevokeAuthDiv)
+ .setName(t("settings_koofr_revoke"))
+ .setDesc(t("settings_koofr_revoke_desc"))
+ .addButton(async (button) => {
+ button.setButtonText(t("settings_koofr_revoke_button"));
+ button.onClick(async () => {
+ new KoofrRevokeAuthModal(
+ app,
+ plugin,
+ koofrAuthDiv,
+ koofrRevokeAuthDiv,
+ t
+ ).open();
+ });
+ });
+
+ new Setting(koofrAuthDiv)
+ .setName(t("settings_koofr_auth"))
+ .setDesc(t("settings_koofr_auth_desc"))
+ .addButton(async (button) => {
+ button.setButtonText(t("settings_koofr_auth_button"));
+ button.onClick(async () => {
+ const modal = new KoofrAuthModal(
+ app,
+ plugin,
+ koofrAuthDiv,
+ koofrRevokeAuthDiv,
+ koofrRevokeAuthSetting,
+ t
+ );
+ plugin.oauth2Info.helperModal = modal;
+ plugin.oauth2Info.authDiv = koofrAuthDiv;
+ plugin.oauth2Info.revokeDiv = koofrRevokeAuthDiv;
+ plugin.oauth2Info.revokeAuthSetting = koofrRevokeAuthSetting;
+ modal.open();
+ });
+ });
+
+ koofrAuthDiv.toggleClass(
+ "koofr-auth-button-hide",
+ plugin.settings.koofr.refreshToken !== ""
+ );
+ koofrRevokeAuthDiv.toggleClass(
+ "koofr-revoke-auth-button-hide",
+ plugin.settings.koofr.refreshToken === ""
+ );
+
+ let newkoofrRemoteBaseDir = plugin.settings.koofr.remoteBaseDir || "";
+ new Setting(koofrAllowedToUsedDiv)
+ .setName(t("settings_remotebasedir"))
+ .setDesc(t("settings_remotebasedir_desc"))
+ .addText((text) =>
+ text
+ .setPlaceholder(app.vault.getName())
+ .setValue(newkoofrRemoteBaseDir)
+ .onChange((value) => {
+ newkoofrRemoteBaseDir = value.trim();
+ })
+ )
+ .addButton((button) => {
+ button.setButtonText(t("confirm"));
+ button.onClick(() => {
+ new ChangeRemoteBaseDirModal(
+ app,
+ plugin,
+ newkoofrRemoteBaseDir,
+ "koofr"
+ ).open();
+ });
+ });
+ new Setting(koofrAllowedToUsedDiv)
+ .setName(t("settings_checkonnectivity"))
+ .setDesc(t("settings_checkonnectivity_desc"))
+ .addButton(async (button) => {
+ button.setButtonText(t("settings_checkonnectivity_button"));
+ button.onClick(async () => {
+ new Notice(t("settings_checkonnectivity_checking"));
+ const client = getClient(plugin.settings, app.vault.getName(), () =>
+ plugin.saveSettings()
+ );
+ const errors = { msg: "" };
+ const res = await client.checkConnect((err: any) => {
+ errors.msg = `${err}`;
+ });
+ if (res) {
+ new Notice(t("settings_koofr_connect_succ"));
+ } else {
+ new Notice(t("settings_koofr_connect_fail"));
+ new Notice(errors.msg);
+ }
+ });
+ });
+
+ return {
+ koofrDiv: koofrDiv,
+ koofrAllowedToUsedDiv: koofrAllowedToUsedDiv,
+ koofrNotShowUpHintSetting: koofrNotShowUpHintSetting,
+ };
+};
diff --git a/pro/src/settingsPro.ts b/pro/src/settingsPro.ts
index 794f3cd..d6e61b3 100644
--- a/pro/src/settingsPro.ts
+++ b/pro/src/settingsPro.ts
@@ -255,7 +255,9 @@ export const generateProSettingsPart = (
pCloudAllowedToUsedDiv: HTMLDivElement,
pCloudNotShowUpHintSetting: Setting,
yandexDiskAllowedToUsedDiv: HTMLDivElement,
- yandexDiskNotShowUpHintSetting: Setting
+ yandexDiskNotShowUpHintSetting: Setting,
+ koofrAllowedToUsedDiv: HTMLDivElement,
+ koofrNotShowUpHintSetting: Setting
) => {
proDiv
.createEl("h2", { text: t("settings_pro") })
@@ -372,6 +374,21 @@ export const generateProSettingsPart = (
);
}
+ const allowKoofr =
+ plugin.settings.pro?.enabledProFeatures.filter(
+ (x) => x.featureName === "feature-koofr"
+ ).length === 1;
+ console.debug(`allow to show up Koofr settings? ${allowKoofr}`);
+ if (allowKoofr) {
+ koofrAllowedToUsedDiv.removeClass("koofr-allow-to-use-hide");
+ koofrNotShowUpHintSetting.settingEl.addClass("koofr-allow-to-use-hide");
+ } else {
+ koofrAllowedToUsedDiv.addClass("koofr-allow-to-use-hide");
+ koofrNotShowUpHintSetting.settingEl.removeClass(
+ "koofr-allow-to-use-hide"
+ );
+ }
+
new Notice(t("settings_pro_features_refresh_succ"));
});
});
diff --git a/src/baseTypes.ts b/src/baseTypes.ts
index c473e5e..e37f233 100644
--- a/src/baseTypes.ts
+++ b/src/baseTypes.ts
@@ -6,6 +6,7 @@
import type {
BoxConfig,
GoogleDriveConfig,
+ KoofrConfig,
PCloudConfig,
ProConfig,
YandexDiskConfig,
@@ -23,7 +24,8 @@ export type SUPPORTED_SERVICES_TYPE =
| "googledrive"
| "box"
| "pcloud"
- | "yandexdisk";
+ | "yandexdisk"
+ | "koofr";
export type SUPPORTED_SERVICES_TYPE_WITH_REMOTE_BASE_DIR =
| "webdav"
@@ -33,7 +35,8 @@ export type SUPPORTED_SERVICES_TYPE_WITH_REMOTE_BASE_DIR =
| "googledrive"
| "box"
| "pcloud"
- | "yandexdisk";
+ | "yandexdisk"
+ | "koofr";
export interface S3Config {
s3Endpoint: string;
@@ -131,7 +134,8 @@ export type QRExportType =
| "googledrive"
| "box"
| "pcloud"
- | "yandexdisk";
+ | "yandexdisk"
+ | "koofr";
export interface ProfilerConfig {
enablePrinting?: boolean;
@@ -148,6 +152,8 @@ export interface RemotelySavePluginSettings {
box: BoxConfig;
pcloud: PCloudConfig;
yandexdisk: YandexDiskConfig;
+ koofr: KoofrConfig;
+
password: string;
serviceType: SUPPORTED_SERVICES_TYPE;
currLogLevel?: string;
diff --git a/src/fsGetter.ts b/src/fsGetter.ts
index 6c17ba5..15ad1fb 100644
--- a/src/fsGetter.ts
+++ b/src/fsGetter.ts
@@ -1,5 +1,6 @@
import { FakeFsBox } from "../pro/src/fsBox";
import { FakeFsGoogleDrive } from "../pro/src/fsGoogleDrive";
+import { FakeFsKoofr } from "../pro/src/fsKoofr";
import { FakeFsPCloud } from "../pro/src/fsPCloud";
import { FakeFsYandexDisk } from "../pro/src/fsYandexDisk";
import type { RemotelySavePluginSettings } from "./baseTypes";
@@ -65,6 +66,8 @@ export function getClient(
vaultName,
saveUpdatedConfigFunc
);
+ case "koofr":
+ return new FakeFsKoofr(settings.koofr, vaultName, saveUpdatedConfigFunc);
default:
throw Error(`cannot init client for serviceType=${settings.serviceType}`);
}
diff --git a/src/importExport.ts b/src/importExport.ts
index ff123b8..a6aa4c3 100644
--- a/src/importExport.ts
+++ b/src/importExport.ts
@@ -28,6 +28,7 @@ export const exportQrCodeUri = async (
delete settings2.box;
delete settings2.pcloud;
delete settings2.yandexdisk;
+ delete settings2.koofr;
delete settings2.pro;
} else if (exportFields === "s3") {
settings2 = { s3: cloneDeep(settings.s3) };
@@ -47,6 +48,8 @@ export const exportQrCodeUri = async (
settings2 = { pcloud: cloneDeep(settings.pcloud) };
} else if (exportFields === "yandexdisk") {
settings2 = { yandexdisk: cloneDeep(settings.yandexdisk) };
+ } else if (exportFields === "koofr") {
+ settings2 = { koofr: cloneDeep(settings.koofr) };
}
delete settings2.vaultRandomID;
diff --git a/src/main.ts b/src/main.ts
index 548a7e8..a798bfd 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -25,6 +25,7 @@ import {
} from "../pro/src/account";
import {
COMMAND_CALLBACK_BOX,
+ COMMAND_CALLBACK_KOOFR,
COMMAND_CALLBACK_PCLOUD,
COMMAND_CALLBACK_PRO,
COMMAND_CALLBACK_YANDEXDISK,
@@ -36,6 +37,11 @@ import {
setConfigBySuccessfullAuthInplace as setConfigBySuccessfullAuthInplaceBox,
} from "../pro/src/fsBox";
import { DEFAULT_GOOGLEDRIVE_CONFIG } from "../pro/src/fsGoogleDrive";
+import {
+ DEFAULT_KOOFR_CONFIG,
+ sendAuthReq as sendAuthReqKoofr,
+ setConfigBySuccessfullAuthInplace as setConfigBySuccessfullAuthInplaceKoofr,
+} from "../pro/src/fsKoofr";
import {
type AuthAllowFirstRes as AuthAllowFirstResPCloud,
DEFAULT_PCLOUD_CONFIG,
@@ -106,6 +112,7 @@ const DEFAULT_SETTINGS: RemotelySavePluginSettings = {
box: DEFAULT_BOX_CONFIG,
pcloud: DEFAULT_PCLOUD_CONFIG,
yandexdisk: DEFAULT_YANDEXDISK_CONFIG,
+ koofr: DEFAULT_KOOFR_CONFIG,
password: "",
serviceType: "s3",
currLogLevel: "info",
@@ -977,6 +984,64 @@ export default class RemotelySavePlugin extends Plugin {
}
);
+ this.registerObsidianProtocolHandler(
+ COMMAND_CALLBACK_KOOFR,
+ async (inputParams) => {
+ if (this.oauth2Info.helperModal !== undefined) {
+ const k = this.oauth2Info.helperModal.contentEl;
+ k.empty();
+
+ t("protocol_koofr_connecting")
+ .split("\n")
+ .forEach((val) => {
+ k.createEl("p", {
+ text: val,
+ });
+ });
+ }
+
+ console.debug(inputParams);
+ const authRes = await sendAuthReqKoofr(
+ this.settings.koofr.api,
+ inputParams.code,
+ async (e: any) => {
+ new Notice(t("protocol_koofr_connect_fail"));
+ new Notice(`${e}`);
+ throw e;
+ },
+ true
+ );
+ console.debug(authRes);
+
+ const self = this;
+ await setConfigBySuccessfullAuthInplaceKoofr(
+ this.settings.koofr!,
+ authRes!,
+ () => self.saveSettings()
+ );
+
+ this.oauth2Info.verifier = ""; // reset it
+ this.oauth2Info.helperModal?.close(); // close it
+ this.oauth2Info.helperModal = undefined;
+
+ this.oauth2Info.authDiv?.toggleClass(
+ "koofr-auth-button-hide",
+ this.settings.koofr?.refreshToken !== ""
+ );
+ this.oauth2Info.authDiv = undefined;
+
+ this.oauth2Info.revokeAuthSetting?.setDesc(
+ t("protocol_koofr_connect_succ_revoke")
+ );
+ this.oauth2Info.revokeAuthSetting = undefined;
+ this.oauth2Info.revokeDiv?.toggleClass(
+ "koofr-revoke-auth-button-hide",
+ this.settings.koofr?.refreshToken === ""
+ );
+ this.oauth2Info.revokeDiv = undefined;
+ }
+ );
+
this.syncRibbon = this.addRibbonIcon(
iconNameSyncWait,
`${this.manifest.name}`,
@@ -1275,6 +1340,10 @@ export default class RemotelySavePlugin extends Plugin {
this.settings.yandexdisk = DEFAULT_YANDEXDISK_CONFIG;
}
+ if (this.settings.koofr === undefined) {
+ this.settings.koofr = DEFAULT_KOOFR_CONFIG;
+ }
+
await this.saveSettings();
}
@@ -1383,6 +1452,16 @@ export default class RemotelySavePlugin extends Plugin {
needSave = true;
}
+ let koofrExpired = false;
+ if (
+ this.settings.koofr.refreshToken !== "" &&
+ current >= this.settings!.koofr!.credentialsShouldBeDeletedAtTimeMs!
+ ) {
+ koofrExpired = true;
+ this.settings.koofr = cloneDeep(DEFAULT_KOOFR_CONFIG);
+ needSave = true;
+ }
+
if (this.settings.pro === undefined) {
this.settings.pro = cloneDeep(DEFAULT_PRO_CONFIG);
}
@@ -1429,6 +1508,12 @@ export default class RemotelySavePlugin extends Plugin {
6000
);
}
+ if (koofrExpired) {
+ new Notice(
+ `${this.manifest.name}: You haven't manually auth koofr for many days, you need to re-auth it again.`,
+ 6000
+ );
+ }
}
async getVaultRandomIDFromOldConfigFile() {
diff --git a/src/settings.ts b/src/settings.ts
index 036687a..cf47d51 100644
--- a/src/settings.ts
+++ b/src/settings.ts
@@ -23,6 +23,7 @@ import type {
import cloneDeep from "lodash/cloneDeep";
import { generateBoxSettingsPart } from "../pro/src/settingsBox";
import { generateGoogleDriveSettingsPart } from "../pro/src/settingsGoogleDrive";
+import { generateKoofrSettingsPart } from "../pro/src/settingsKoofr";
import { generatePCloudSettingsPart } from "../pro/src/settingsPCloud";
import { generateProSettingsPart } from "../pro/src/settingsPro";
import { generateYandexDiskSettingsPart } from "../pro/src/settingsYandexDisk";
@@ -1862,6 +1863,15 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
() => this.plugin.saveSettings()
);
+ //////////////////////////////////////////////////
+ // below for koofr
+ //////////////////////////////////////////////////
+
+ const { koofrDiv, koofrAllowedToUsedDiv, koofrNotShowUpHintSetting } =
+ generateKoofrSettingsPart(containerEl, t, this.app, this.plugin, () =>
+ this.plugin.saveSettings()
+ );
+
//////////////////////////////////////////////////
// below for general chooser (part 2/2)
//////////////////////////////////////////////////
@@ -1887,6 +1897,7 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
"yandexdisk",
t("settings_chooseservice_yandexdisk")
);
+ dropdown.addOption("koofr", t("settings_chooseservice_koofr"));
dropdown
.setValue(this.plugin.settings.serviceType)
@@ -1928,6 +1939,10 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
"yandexdisk-hide",
this.plugin.settings.serviceType !== "yandexdisk"
);
+ koofrDiv.toggleClass(
+ "koofr-hide",
+ this.plugin.settings.serviceType !== "koofr"
+ );
await this.plugin.saveSettings();
});
});
@@ -2507,6 +2522,12 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
"yandexdisk"
).open();
});
+ })
+ .addButton(async (button) => {
+ button.setButtonText(t("settings_export_koofr_button"));
+ button.onClick(async () => {
+ new ExportSettingsQrCodeModal(this.app, this.plugin, "koofr").open();
+ });
});
let importSettingVal = "";
@@ -2579,7 +2600,9 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
pCloudAllowedToUsedDiv,
pCloudNotShowUpHintSetting,
yandexDiskAllowedToUsedDiv,
- yandexDiskNotShowUpHintSetting
+ yandexDiskNotShowUpHintSetting,
+ koofrAllowedToUsedDiv,
+ koofrNotShowUpHintSetting
);
//////////////////////////////////////////////////
diff --git a/styles.css b/styles.css
index 93222c2..f5f23d3 100644
--- a/styles.css
+++ b/styles.css
@@ -152,6 +152,25 @@
display: none;
}
+.koofr-disclaimer {
+ font-weight: bold;
+}
+.koofr-hide {
+ display: none;
+}
+
+.koofr-allow-to-use-hide {
+ display: none;
+}
+
+.koofr-auth-button-hide {
+ display: none;
+}
+
+.koofr-revoke-auth-button-hide {
+ display: none;
+}
+
.qrcode-img {
width: 350px;
height: 350px;
diff --git a/tests/configPersist.test.ts b/tests/configPersist.test.ts
index 77bee79..a357fc7 100644
--- a/tests/configPersist.test.ts
+++ b/tests/configPersist.test.ts
@@ -31,6 +31,9 @@ const DEFAULT_SETTINGS: RemotelySavePluginSettings = {
yandexdisk: {
refreshToken: "xxx",
} as any,
+ koofr: {
+ refreshToken: "xxx",
+ } as any,
password: "password",
serviceType: "s3",
currLogLevel: "info",
diff --git a/webpack.config.js b/webpack.config.js
index d4065df..28267c6 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -18,6 +18,8 @@ const DEFAULT_PCLOUD_CLIENT_SECRET = process.env.PCLOUD_CLIENT_SECRET || "";
const DEFAULT_YANDEXDISK_CLIENT_ID = process.env.YANDEXDISK_CLIENT_ID || "";
const DEFAULT_YANDEXDISK_CLIENT_SECRET =
process.env.YANDEXDISK_CLIENT_SECRET || "";
+const DEFAULT_KOOFR_CLIENT_ID = process.env.KOOFR_CLIENT_ID || "";
+const DEFAULT_KOOFR_CLIENT_SECRET = process.env.KOOFR_CLIENT_SECRET || "";
module.exports = {
entry: "./src/main.ts",
@@ -42,6 +44,8 @@ module.exports = {
"process.env.DEFAULT_PCLOUD_CLIENT_SECRET": `"${DEFAULT_PCLOUD_CLIENT_SECRET}"`,
"process.env.DEFAULT_YANDEXDISK_CLIENT_ID": `"${DEFAULT_YANDEXDISK_CLIENT_ID}"`,
"process.env.DEFAULT_YANDEXDISK_CLIENT_SECRET": `"${DEFAULT_YANDEXDISK_CLIENT_SECRET}"`,
+ "process.env.DEFAULT_KOOFR_CLIENT_ID": `"${DEFAULT_KOOFR_CLIENT_ID}"`,
+ "process.env.DEFAULT_KOOFR_CLIENT_SECRET": `"${DEFAULT_KOOFR_CLIENT_SECRET}"`,
}),
// Work around for Buffer is undefined:
// https://github.com/webpack/changelog-v5/issues/10