guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
52 lines (51 loc) • 2.76 kB
TypeScript
import { z } from 'zod';
/**
* /v2/characters/:id/buildtabs definition
*/
export declare const CharacterBuildTabsDTO: z.ZodArray<z.ZodObject<{
/** Tab position. */
tab: z.ZodNumber;
/** Whether this is the tab selected on the character currently. */
is_active: z.ZodBoolean;
/** Detailed information about the build. */
build: z.ZodObject<{
/** Name given to the build */
name: z.ZodString;
/** The characters' profession. Can be resolved against /v2/professions. */
profession: z.ZodString;
/** Three objects providing information about the characters selected specializations. */
specializations: z.ZodArray<z.ZodObject<{
id: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
traits: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
}, z.core.$strict>>;
skills: z.ZodObject<{
/** The id of the heal skill or null if none is selected. */
heal: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
/** Three utility skill ids or null in places where none is selected. */
utilities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>>;
/** The id of the elite skill or null if none is selected. */
elite: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
}, z.core.$strict>;
aquatic_skills: z.ZodObject<{
/** The id of the heal skill or null if none is selected. */
heal: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
/** Three utility skill ids or null in places where none is selected. */
utilities: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>>;
/** The id of the elite skill or null if none is selected. */
elite: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>;
}, z.core.$strict>;
legends: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>>;
/** Included for revenants only. The structure is the same as the one of legends above. */
aquatic_legends: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>>;
/**
* Included for rangers only. Containers information about the characters selected pets.
* Can be resolved against /v2/pets.
*/
pets: z.ZodOptional<z.ZodObject<{
/** Contains the two pet ids the ranger has equipped for terrestrial combat. */
terrestrial: z.ZodArray<z.ZodNumber>;
/** Contains the two pet ids the ranger has equipped for aquatic combat. */
aquatic: z.ZodArray<z.ZodNumber>;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>>;