Skip to content

Variable: MemoryNoteRecordSchema ​

ts
const MemoryNoteRecordSchema: ZodObject<{
  context: ZodOptional<ZodArray<ZodString>>;
  createdAt: ZodISODateTime;
  id: ZodString;
  lifecycle: ZodDiscriminatedUnion<[ZodObject<{
     mode: ZodLiteral<"persistent">;
   }, $strip>, ZodObject<{
     mode: ZodLiteral<"read-count">;
     remainingReads: ZodNumber;
   }, $strip>, ZodObject<{
     expiresAt: ZodISODateTime;
     mode: ZodLiteral<"hard-expiry">;
   }, $strip>, ZodObject<{
     expiresAt: ZodISODateTime;
     mode: ZodLiteral<"soft-expiry">;
  }, $strip>], "mode">;
  repos: ZodOptional<ZodArray<ZodString>>;
  role: ZodString;
  text: ZodString;
  type: ZodLiteral<"note">;
  updatedAt: ZodOptional<ZodISODateTime>;
}, $strip>;

Defined in: schemas/memory-record.schema.ts:97

Operational or design decision note record (N1, N2, ...) with mandatory lifecycle.

Released under the MIT License.