API ReferenceEvent Referenceclinical.vial.created.v1

clinical.vial.created.v1

Constant

import { EVENT_NAMES } from "@platform/contracts";
 
EVENT_NAMES.CLINICAL_VIAL_CREATED_V1;

Publishers

Subscribers

No service currently subscribes to this event.

Payload schema

z.object({
  vial_id: z.string().uuid(),
  user_id: z.string(),
  brand_id: z.string(),
  peptide_id: z.string(),
  peptide_name: z.string(),
  reconstituted_at: z.string().datetime(),
  expires_at: z.string().datetime(),
}

Delivery semantics

  • At-least-once delivery. Consumers must dedupe by event ID.
  • Fanned out to both NATS (in-cluster) and EventBridge (durable). See Events concept.