import * as v from "@exodus/schemasafe"; import { IRouteMetaInterface } from "./meta/interface"; import { IIdString } from "./../id_string"; import { IRouteMetaCaptchaToken } from "./meta/captcha_token"; export declare type IRouteDeleteAccount = IRouteMetaInterface & { path: { accountId: IIdString; [k: string]: unknown | undefined; }; query?: { /** * Account's login password */ current_password: string; captcha_token: IRouteMetaCaptchaToken; [k: string]: unknown | undefined; }; response: { "200": {}; [k: string]: unknown | undefined; }; }; export declare const RouteDeleteAccountSchema: Readonly<{ readonly $schema: "https://json-schema.org/draft/2020-12/schema"; readonly $id: "route/delete_account"; readonly title: "RouteDeleteAccount"; readonly type: "object"; readonly allOf: readonly [Readonly<{ readonly $schema: "https://json-schema.org/draft/2020-12/schema"; readonly $id: "route/meta/interface"; readonly title: "RouteMetaInterface"; readonly type: "object"; readonly required: readonly ["path", "query", "body", "headers", "response"]; readonly properties: { readonly path: {}; readonly query: {}; readonly body: {}; readonly headers: {}; readonly response: {}; }; }>, { readonly type: "object"; readonly additionalProperties: false; readonly required: readonly ["path", "response"]; readonly properties: { readonly path: { readonly type: "object"; readonly required: readonly ["accountId"]; readonly properties: { readonly accountId: Readonly<{ readonly $schema: "https://json-schema.org/draft/2020-12/schema"; readonly $id: "id_string"; readonly title: "IdString"; readonly type: "string"; readonly format: "objectid"; readonly examples: readonly ["507f1f77bcf86cd799439011"]; }>; }; readonly additionalProperties: true; }; readonly query: { readonly type: "object"; readonly required: readonly ["current_password", "captcha_token"]; readonly properties: { readonly current_password: { readonly type: "string"; readonly format: "any"; readonly minLength: 8; readonly description: "Account's login password"; }; readonly captcha_token: Readonly<{ readonly $schema: "https://json-schema.org/draft/2020-12/schema"; readonly $id: "route/meta/captcha_token"; readonly title: "RouteMetaCaptchaToken"; readonly type: "string"; readonly format: "any"; readonly description: "A security token (used for hCaptcha, reCaptcha, ect)"; }>; }; readonly additionalProperties: true; }; readonly response: { readonly type: "object"; readonly required: readonly ["200"]; readonly properties: { readonly '200': { readonly type: "object"; readonly additionalProperties: false; readonly required: readonly []; }; }; readonly additionalProperties: true; }; }; }]; }>; export declare function validateRouteDeleteAccount(value: unknown, options?: v.ValidatorOptions): v.ParseResult; export declare function assertRouteDeleteAccount(value: unknown): asserts value is IRouteDeleteAccount;