guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
33 lines (32 loc) • 1.27 kB
TypeScript
import { z } from 'zod';
/**
* /v2/stories definition
*/
export declare const StoriesDTO: z.ZodArray<z.ZodObject<{
/** The id of the story. */
id: z.ZodNumber;
/**
* The id for the story season.
* Can be resolved against /v2/stories/seasons.
*/
season: z.ZodString;
/** The name of the story. */
name: z.ZodString;
/** The description of the story. */
description: z.ZodString;
/** The (in-game, not real-world) date of the story. */
timeline: z.ZodString;
/** The minimum level required for a character to begin this story. */
level: z.ZodNumber;
/** The order in which this story is displayed in the Story Journal. */
order: z.ZodNumber;
/** An array of chapter objects providing details about the chapters for this story. */
chapters: z.ZodArray<z.ZodObject<{
/** The name of the chapter. */
name: z.ZodString;
}, z.core.$strict>>;
/** When present, provides a list of races that are eligible to participate in this story. */
races: z.ZodOptional<z.ZodArray<z.ZodString>>;
/** When present, provides a list of additional requirements for a character to participate in this story. */
flags: z.ZodOptional<z.ZodArray<z.ZodString>>;
}, z.core.$strict>>;