Template
1
0

feat: add currency assertion to account creation

This commit is contained in:
2025-12-06 05:01:01 +01:00
parent be9b8e9e55
commit ce4d5ba013
8 changed files with 77 additions and 49 deletions

View File

@@ -14,7 +14,7 @@ import { CurrencySchema } from "./currency.ts";
export const LedgerSchema = z.strictObject({
_id: z.uuid().describe("Primary identifier of the ledger"),
beneficiaryId: z.uuid().describe("Identifier of the beneficiary this ledger belongs to"),
label: z.string().optional().describe("Human-readable identifier for the ledger"),
label: z.string().nullable().optional().describe("Human-readable identifier for the ledger"),
currencies: z.array(CurrencySchema).describe("Currency this ledger trades in"),
createdAt: z.coerce.date().describe("Timestamp the ledger was created"),
});