MonetizationOS Docs
Workflows ReferenceType Definitions

WorkflowTrait

type WorkflowTrait = {
  key: string;
  validity?: {
     from?: number | null;
     to?: number | null;
  }[];
};

A trait within a trait group assigned to a user.

Properties

key

key: string;

A unique identifier for this trait within the group. Must be a non-empty string up to 128 characters.


validity?

optional validity?: {
  from?: number | null;
  to?: number | null;
}[];

An optional time window during which this trait is considered active. Omit to create a trait with no expiry.

  • from?

    optional from?: number | null;

    Unix timestamp (ms) for when this trait becomes active, or null for no start bound.

  • to?

    optional to?: number | null;

    Unix timestamp (ms) for when this trait expires, or null for no end bound.

On this page