Skip to content

Variable: NoteLifecycleSchema ​

ts
const NoteLifecycleSchema: 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">;

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

Four-variant discriminated union governing when a type: 'note' record is lazily drained.

Released under the MIT License.