client: {
api: {
workspaces: ClientRequest<{
$post: {
input: {
form: {
image?: ParsedFormValue | ParsedFormValue[];
name: ParsedFormValue | ParsedFormValue[];
};
};
output: {
data: {
$collectionId: string;
$createdAt: string;
$databaseId: string;
$id: string;
$permissions: string[];
$updatedAt: string;
};
};
outputFormat: "json";
status: StatusCode;
};
}>;
};
} & {
api: {
auth: {
current: ClientRequest<{
$get: {
input: {};
output: {
data: {
$createdAt: string;
$id: string;
$updatedAt: string;
accessedAt: string;
email: string;
emailVerification: boolean;
hash?: string;
hashOptions?: {};
labels: string[];
mfa: boolean;
name: string;
password?: string;
passwordUpdate: string;
phone: string;
phoneVerification: boolean;
prefs: {};
registration: string;
status: boolean;
targets: {
$createdAt: ...;
$id: ...;
$updatedAt: ...;
identifier: ...;
name: ...;
providerId?: ...;
providerType: ...;
userId: ...;
}[];
};
};
outputFormat: "json";
status: StatusCode;
};
}>;
};
};
} & {
api: {
auth: {
login: ClientRequest<{
$post: {
input: {
json: {
email: string;
password: string;
};
};
output: {
success: boolean;
};
outputFormat: "json";
status: StatusCode;
};
}>;
};
};
} & {
api: {
auth: {
register: ClientRequest<{
$post: {
input: {
json: {
email: string;
name: string;
password: string;
};
};
output: {
success: boolean;
};
outputFormat: "json";
status: StatusCode;
};
}>;
};
};
} & {
api: {
auth: {
logout: ClientRequest<{
$post: {
input: {};
output: {
success: boolean;
};
outputFormat: "json";
status: StatusCode;
};
}>;
};
};
} = ...