five-on-it / packages/missions/src/schema / Mission
Variable: Mission
constMission:ZodObject<{actors:ZodDefault<ZodArray<ZodDiscriminatedUnion<[ZodObject<{at:ZodString;class:ZodUnion<readonly [ZodString,ZodArray<...>]>;id:ZodString;key:ZodOptional<ZodString>;locked:ZodDefault<ZodBoolean>;owner:ZodDefault<ZodEnum<{mission: ...;nobody: ...;npc: ...; }>>;tags:ZodDefault<ZodArray<ZodString>>;type:ZodLiteral<"vehicle">; },$strict>,ZodObject<{armed:ZodDefault<ZodBoolean>;at:ZodString;class:ZodOptional<ZodString>;count:ZodNumber;crew:ZodDefault<ZodNumber>;id:ZodString;max:ZodOptional<ZodNumber>;mode:ZodEnum<{car:"car";foot:"foot"; }>;profile:ZodEnum<{aggressive:"aggressive";guard:"guard";pursuit:"pursuit";tail:"tail"; }>;tags:ZodDefault<ZodArray<ZodString>>;targets:ZodOptional<ZodObject<{team: ...; },$strict>>;type:ZodLiteral<"chasers">; },$strict>,ZodObject<{at:ZodString;count:ZodDefault<ZodNumber>;id:ZodString;item:ZodString;type:ZodLiteral<"item">; },$strict>],"type">>>;apps:ZodDefault<ZodArray<ZodObject<{id:ZodString;name:ZodString;screens:ZodArray<ZodObject<{buttons:ZodDefault<ZodArray<...>>;form:ZodDefault<ZodArray<...>>;id:ZodString;text:ZodString;title:ZodOptional<ZodString>; },$strict>>; },$strict>>>;blurb:ZodOptional<ZodString>;contacts:ZodDefault<ZodArray<ZodObject<{id:ZodString;name:ZodString; },$strict>>>;counters:ZodDefault<ZodRecord<ZodString,ZodNumber>>;dialogues:ZodDefault<ZodArray<ZodObject<{id:ZodString;nodes:ZodArray<ZodObject<{choices:ZodDefault<ZodArray<...>>;id:ZodString;line:ZodString;next:ZodOptional<ZodString>;speaker:ZodOptional<ZodString>; },$strict>>; },$strict>>>;helpline:ZodOptional<ZodString>;id:ZodString;items:ZodDefault<ZodArray<ZodObject<{actions:ZodDefault<ZodArray<ZodEnum<{drop:"drop";give:"give";use:"use"; }>>>;heal:ZodOptional<ZodNumber>;id:ZodString;name:ZodString;price:ZodOptional<ZodNumber>;stack:ZodDefault<ZodNumber>;tags:ZodDefault<ZodArray<ZodString>>; },$strict>>>;objectives:ZodArray<ZodDiscriminatedUnion<[ZodObject<{checkpoint:ZodOptional<ZodBoolean>;failText:ZodOptional<ZodString>;hint:ZodOptional<ZodString>;id:ZodString;marker:ZodOptional<ZodString>;next:ZodOptional<ZodObject<{done:ZodOptional<...>;failed:ZodOptional<...>; },$strict>>;team:ZodOptional<ZodString>;text:ZodOptional<ZodString>;timeLimit:ZodOptional<ZodNumber>;to:ZodString;verb:ZodLiteral<"goto">; },$strict>,ZodObject<{checkpoint:ZodOptional<ZodBoolean>;failText:ZodOptional<ZodString>;hint:ZodOptional<ZodString>;id:ZodString;marker:ZodOptional<ZodString>;next:ZodOptional<ZodObject<{done:ZodOptional<...>;failed:ZodOptional<...>; },$strict>>;target:ZodString;team:ZodOptional<ZodString>;text:ZodOptional<ZodString>;timeLimit:ZodOptional<ZodNumber>;verb:ZodLiteral<"steal_vehicle">; },$strict>,ZodObject<{checkpoint:ZodOptional<ZodBoolean>;count:ZodOptional<ZodNumber>;failText:ZodOptional<ZodString>;hint:ZodOptional<ZodString>;id:ZodString;item:ZodOptional<ZodString>;marker:ZodOptional<ZodString>;maxDamage:ZodOptional<ZodNumber>;next:ZodOptional<ZodObject<{done:ZodOptional<...>;failed:ZodOptional<...>; },$strict>>;team:ZodOptional<ZodString>;text:ZodOptional<ZodString>;timeLimit:ZodOptional<ZodNumber>;to:ZodString;vehicle:ZodOptional<ZodString>;verb:ZodLiteral<"deliver">; },$strict>],"verb">>;play:ZodOptional<ZodObject<{ambient:ZodOptional<ZodObject<{pedestrians:ZodOptional<ZodNumber>;traffic:ZodOptional<ZodNumber>; },$strict>>;friendlyFire:ZodDefault<ZodBoolean>;joinInProgress:ZodDefault<ZodEnum<{always:"always";never:"never";untilCheckpoint:"untilCheckpoint"; }>>;lives:ZodOptional<ZodObject<{count:ZodNumber;per:ZodEnum<{player:"player";team:"team"; }>; },$strict>>;mode:ZodEnum<{coop:"coop";solo:"solo";versus:"versus"; }>;onDeath:ZodOptional<ZodEnum<{checkpoint:"checkpoint";spectate:"spectate";teamSpawn:"teamSpawn"; }>>;players:ZodOptional<ZodObject<{max:ZodNumber;min:ZodNumber; },$strict>>;respect:ZodOptional<ZodObject<{min:ZodNumber; },$strict>>;retries:ZodOptional<ZodNumber>;teams:ZodOptional<ZodUnion<readonly [ZodArray<ZodObject<{id: ...;name: ...;players: ...;spawn: ...; },$strict>>,ZodLiteral<"each">]>>; },$strict>>;reward:ZodOptional<ZodObject<{cash:ZodDefault<ZodNumber>;rep:ZodDefault<ZodNumber>; },$strict>>;rules:ZodDefault<ZodArray<ZodUnion<readonly [ZodObject<{do:ZodArray<ZodUnion<readonly [..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ..., ...]>>;if:ZodOptional<ZodType<Condition,unknown,$ZodTypeInternals<..., ...>>>;repeat:ZodDefault<ZodBoolean>;when:ZodString; },$strict>,ZodObject<{enter:ZodOptional<ZodArray<ZodUnion<...>>>;every:ZodOptional<ZodObject<{do: ...;if: ...;seconds: ...; },$strict>>;exit:ZodOptional<ZodArray<ZodUnion<...>>>;while:ZodType<Condition,unknown,$ZodTypeInternals<Condition,unknown>>; },$strict>]>>>;start:ZodDefault<ZodUnion<readonly [ZodObject<{on:ZodLiteral<"join">; },$strict>,ZodObject<{on:ZodLiteral<"enter">;zone:ZodString; },$strict>]>>;stealth:ZodOptional<ZodObject<{bonus:ZodOptional<ZodObject<{cash:ZodDefault<ZodNumber>;rep:ZodDefault<ZodNumber>; },$strict>>;unseen:ZodOptional<ZodEnum<{bonus:"bonus";fail:"fail"; }>>;withoutAlerts:ZodOptional<ZodEnum<{bonus:"bonus";fail:"fail"; }>>;withoutKills:ZodOptional<ZodEnum<{bonus:"bonus";fail:"fail"; }>>; },$strict>>;title:ZodString; },$strict>
Defined in: packages/missions/src/schema.ts:1565
A mission. Its helpline is one of its contacts the player can always call: put in the phone when the mission starts, they answer a call (that no dialogue of theirs answers) with the hint of what is under way. Its play says how it is played when it is not solo (Play).