import type { Context, ContractToFunction } from '@aeriajs/types'; import { description } from './description.js'; export declare const editProfileContract: { readonly payload: { readonly type: "object"; readonly required: readonly []; readonly properties: { readonly picture_file: { readonly type: "string"; readonly format: "objectid"; }; readonly name: { readonly type: "string"; readonly minLength: 1; }; readonly given_name: { readonly type: "getter"; readonly getter: (doc: object) => string | undefined; }; readonly family_name: { readonly type: "getter"; readonly getter: (doc: object) => string | undefined; }; readonly active: { readonly type: "boolean"; }; readonly roles: { readonly type: "array"; readonly items: { readonly type: "string"; }; readonly uniqueItems: true; readonly minItems: 1; }; readonly email: { readonly type: "string"; readonly inputType: "email"; readonly minLength: 3; }; readonly password: { readonly type: "string"; readonly inputType: "password"; readonly hidden: true; }; readonly phone_number: { readonly type: "string"; readonly mask: "(##) #####-####"; }; readonly picture: { readonly type: "getter"; readonly getter: (doc: object) => Promise | undefined; }; readonly self_registered: { readonly type: "boolean"; readonly readOnly: true; }; readonly updated_at: { readonly type: "string"; readonly format: "date-time"; }; }; }; readonly response: [{ readonly type: "object"; readonly properties: { readonly _tag: { readonly const: "Error"; }; readonly result: { readonly const: undefined; readonly isConstUndefined: true; }; readonly error: { readonly type: "object"; readonly required: readonly ["httpStatus", "code"]; readonly properties: { readonly httpStatus: { readonly enum: [403, 404, 422, 400, 500]; }; readonly code: { readonly enum: ["INSECURE_OPERATOR", "OWNERSHIP_ERROR", "RESOURCE_NOT_FOUND", "TARGET_IMMUTABLE", "MALFORMED_INPUT", "UNIQUENESS_VIOLATED", "EMPTY_TARGET", "INVALID_PROPERTIES", "MISSING_PROPERTIES", "INVALID_DOCUMENT_ID", "INVALID_TEMPFILE"]; }; readonly message: { readonly type: "string"; }; readonly details: { readonly type: "object"; readonly additionalProperties: true; }; }; }; }; }, { readonly type: "object"; readonly properties: { readonly _tag: { readonly const: "Result"; }; readonly error: { readonly const: undefined; readonly isConstUndefined: true; }; readonly result: { readonly $ref: "user"; }; }; }]; }; export declare const editProfile: ContractToFunction>;