guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
25 lines (24 loc) • 1.02 kB
TypeScript
import { z } from 'zod';
/**
* /v2/guild/:id/stash definition
*/
export declare const GuildStashDTO: z.ZodArray<z.ZodObject<{
/** ID of the guild upgrade that granted access to this section of the guild vault. */
upgrade_id: z.ZodNumber;
/** The number of slots in this section of the guild vault. */
size: z.ZodNumber;
/** The number of coins deposited in this section of the guild vault. */
coins: z.ZodNumber;
/** The description set for this section of the guild's vault. */
note: z.ZodString;
/**
* An array of objects describing the items in the guild stash of exactly size length.
* Each object either contains the following properties if an item is present, or is null if the slot is empty.
*/
inventory: z.ZodArray<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
/** ID of the item in this slot. */
id: z.ZodNumber;
/** Amount of items in this slot. */
count: z.ZodNumber;
}, z.core.$strict>]>>;
}, z.core.$strict>>;