@guildxyz/types
Version:
Types related to the Guild.xyz API
1,459 lines (1,451 loc) • 1.61 MB
TypeScript
import z$1, { z } from 'zod';
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
type UnionToTuple<U> = UnionToIntersection<U extends any ? (a: U) => U : never> extends (a: infer A) => any ? [...UnionToTuple<Exclude<U, A>>, A] : [];
declare const SocialLinks$1: readonly ["TWITTER", "LENS", "YOUTUBE", "SPOTIFY", "MIRROR", "MEDIUM", "SUBSTACK", "SNAPSHOT", "SOUND", "GITHUB", "WARPCAST", "WEBSITE"];
declare const Visibility$1: readonly ["PUBLIC", "PRIVATE", "HIDDEN"];
declare const ChainIds: {
readonly ETHEREUM: 1;
readonly POLYGON: 137;
readonly BSC: 56;
readonly FANTOM: 250;
readonly ARBITRUM: 42161;
readonly NOVA: 42170;
readonly CELO: 42220;
readonly HARMONY: 1666600000;
readonly GOERLI: 5;
readonly AVALANCHE: 43114;
readonly OPTIMISM: 10;
readonly MOONRIVER: 1285;
readonly MOONBEAM: 1284;
readonly GNOSIS: 100;
readonly METIS: 1088;
readonly CRONOS: 25;
readonly BOBA: 288;
readonly BOBA_AVAX: 43288;
readonly PALM: 11297108109;
readonly BASE_GOERLI: 84531;
readonly BASE_MAINNET: 8453;
readonly EXOSAMA: 2109;
readonly EVMOS: 9001;
readonly POLYGON_MUMBAI: 80001;
readonly ZETACHAIN_ATHENS: 7001;
readonly SCROLL_ALPHA: 534353;
readonly ZORA: 7777777;
readonly SEPOLIA: 11155111;
readonly ZKSYNC_ERA: 324;
readonly POLYGON_ZKEVM: 1101;
readonly NEON_EVM: 245022934;
readonly PGN: 424;
readonly LINEA: 59144;
readonly LUKSO: 42;
readonly MANTLE: 5000;
readonly SCROLL: 534352;
readonly SCROLL_SEPOLIA: 534351;
readonly RONIN: 2020;
readonly SHIMMER: 148;
readonly KAVA: 2222;
readonly BITFINITY_TESTNET: 355113;
readonly X1_TESTNET: 195;
readonly ONTOLOGY: 58;
readonly BERA_TESTNET: 2061;
readonly MANTA: 169;
readonly TAIKO_KATLA: 167008;
readonly OASIS_SAPPHIRE: 23294;
readonly BLAST_SEPOLIA: 168587773;
readonly BASE_SEPOLIA: 84532;
readonly BLAST_MAINNET: 81457;
readonly ASTAR_ZKEVM: 3776;
readonly ZETACHAIN: 7000;
readonly CORE_DAO: 1116;
readonly LISK_SEPOLIA: 4202;
readonly FORM: 478;
readonly METIS_SEPOLIA: 59902;
readonly OP_BNB: 204;
readonly X1: 196;
readonly CYBER: 7560;
readonly TAIKO: 167000;
readonly KLAYTN: 8217;
readonly MINT: 185;
readonly WORLD_CHAIN: 480;
readonly SEI: 1329;
readonly FILECOIN: 314;
readonly ROOTSTOCK: 30;
readonly MODE: 34443;
readonly LISK: 1135;
readonly CRONOS_ZKEVM: 388;
readonly INK_SEPOLIA: 763373;
readonly INK: 57073;
readonly IOTA: 8822;
readonly SONIC: 146;
readonly SOPHON: 50104;
readonly ZERO: 543210;
readonly XDC: 50;
readonly SONEIUM: 1868;
};
declare const Chain$1: (keyof typeof ChainIds)[];
declare const PLATFORM_NAMES_IDS: {
readonly DISCORD: 1;
readonly TELEGRAM: 2;
readonly GITHUB: 3;
readonly GOOGLE: 4;
readonly TWITTER: 5;
readonly CONTRACT_CALL: 7;
readonly TWITTER_V1: 8;
readonly UNIQUE_TEXT: 9;
readonly TEXT: 10;
readonly GUILD_PIN: 11;
readonly POINTS: 13;
readonly POAP: 14;
readonly FORM: 15;
readonly GATHER_TOWN: 16;
readonly ERC20: 17;
readonly WORLD_ID: 18;
readonly FARCASTER_CHANNEL: 19;
};
declare const PlatformName$1: UnionToTuple<keyof typeof PLATFORM_NAMES_IDS>;
declare const Logic$1: readonly ["AND", "OR", "ANY_OF"];
declare const ErrorMessages: {
INVALID_GUILDPLATFORM_INDEX: string;
EMPTY_OBJECT: string;
INVALID_ADDRESS: string;
REQUIRED_PLATFORM_GUILD_DATA: string;
ADMIN_UPDATE_IS_OWNER_FALSE: string;
};
declare const GuildPinAction: readonly ["JOINED_GUILD", "IS_OWNER", "IS_ADMIN"];
declare const XPEventType: readonly ["USER_REFERRAL", "JOIN_GUILD", "GET_ROLE", "SUBMIT_FORM", "COLLECT_PIN", "COLLECT_NFT", "OWN_GUILD_VERIFIED"];
declare const PinSupportedChains: {
[key: number]: (typeof Chain$1)[number] | "FUEL";
};
declare const PinContractAddresses: {
readonly POLYGON: "0xff04820c36759c9f5203021fe051239ad2dcca8a";
readonly BASE_MAINNET: "0x326f14942f8899406e3224bd63e9f250d275a52e";
readonly ZKSYNC_ERA: "0xd1e4254fe7e56f58777ba624e7eeb3644f872b0d";
readonly BSC: "0x807f16eba4a2c51b86cb8ec8be8eab34305c2bfd";
readonly ARBITRUM: "0x0e6a14106497a7de36fba446628860c062e9e302";
readonly CRONOS: "0x4205e56a69a0130a9e0828d45d0c84e45340a196";
readonly OPTIMISM: "0x6c2c223b84724c4b8fd41ae0142c2369dfa7e319";
readonly MANTLE: "0x4205e56a69a0130a9e0828d45d0c84e45340a196";
readonly ONTOLOGY: "0x4205e56a69a0130a9e0828d45d0c84e45340a196";
readonly LINEA: "0x4205e56a69a0130a9e0828d45d0c84e45340a196";
readonly CYBER: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly MINT: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly MODE: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly LISK: "0x73d1a63bce3083be47597E2Ef0646BbFd1907f1C";
readonly FORM: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly INK: "0x73d1a63bce3083be47597E2Ef0646BbFd1907f1C";
readonly IOTA: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly SONIC: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly ZERO: "0x792c4f33cABa7B0631c2B6a3355fEad6D9DCaCC9";
readonly XDC: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly SONEIUM: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly SEPOLIA: "0xac49ee0c3bda5f851eac9a3184a21041e9afe379";
};
declare const NFTRewardSupportedChains: readonly ["ETHEREUM", "BASE_MAINNET", "OPTIMISM", "BSC", "CRONOS", "POLYGON", "MANTLE", "ZKSYNC_ERA", "LINEA", "CYBER", "ARBITRUM", "SCROLL", "TAIKO", "BLAST_MAINNET", "X1", "CORE_DAO", "METIS", "NEON_EVM", "POLYGON_ZKEVM", "ZETACHAIN", "MINT", "MODE", "AVALANCHE", "LISK", "INK", "IOTA", "SONIC", "ZERO", "XDC", "SONEIUM", "SEPOLIA"];
declare const NFTRewardFactoryAddresses: {
readonly ETHEREUM: "0x6ee2dd02fbfb71f518827042b6adca242f1ba0b2";
readonly BASE_MAINNET: "0x4205e56a69a0130a9e0828d45d0c84e45340a196";
readonly OPTIMISM: "0xe6e6b676f94a6207882ac92b6014a391766fa96e";
readonly BSC: "0xa445e7d3af54867d14467b44d5487352403d1e59";
readonly CRONOS: "0x6c2c223b84724c4b8fd41ae0142c2369dfa7e319";
readonly POLYGON: "0xc1c23618110277ffe6d529816eb23de42b24cc33";
readonly MANTLE: "0x326f14942f8899406e3224bd63E9f250D275a52e";
readonly ZKSYNC_ERA: "0x2a1eaf11a9753a871b15e2865d8a47cf17dd9450";
readonly LINEA: "0x326f14942f8899406e3224bd63E9f250D275a52e";
readonly CYBER: "0x097E05f7a194a30A482CC9616460498980bE79d3";
readonly ARBITRUM: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly SCROLL: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly TAIKO: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly BLAST_MAINNET: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly X1: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly CORE_DAO: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly METIS: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly NEON_EVM: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly POLYGON_ZKEVM: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly ZETACHAIN: "0x13ec6B98362E43Add08f7CC4f6befd02fa52eE01";
readonly MINT: "0x097E05f7a194a30A482CC9616460498980bE79d3";
readonly MODE: "0x097E05f7a194a30A482CC9616460498980bE79d3";
readonly AVALANCHE: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly LISK: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly INK: "0x13ec6b98362e43add08f7cc4f6befd02fa52ee01";
readonly SEPOLIA: "0xa9e8e62266d449b766d305075248790bdd46facb";
readonly IOTA: "0x097E05f7a194a30A482CC9616460498980bE79d3";
readonly SONIC: "0x070cD1FD4de1ed0259871B7d0b85C0e237702691";
readonly ZERO: "0x334f5BBDdCD9eAF0ad6B151e8D222f4fA54Fbc95";
readonly XDC: "0x097E05f7a194a30A482CC9616460498980bE79d3";
readonly SONEIUM: "0x097E05f7a194a30A482CC9616460498980bE79d3";
};
declare const GuildSortType: readonly ["NEWEST", "VERIFIED", "FEATURED"];
declare const ContactType: readonly ["EMAIL", "TELEGRAM"];
declare const AuthMethod: {
readonly EOA: "1";
readonly KeyPair: "2";
readonly EIP1271: "3";
};
declare const PARAMS_HEADER_NAME = "x-guild-params";
declare const SIG_HEADER_NAME = "x-guild-sig";
declare const AUTH_HEADER_NAME = "x-guild-auth";
declare const SERVICE_HEADER_NAME = "x-guild-service";
declare const PRIVILEGED_USER_ID_HEADER = "x-guild-privileged-user-id";
declare const CORRELATION_ID_HEADER_NAME = "x-correlation-id";
declare const SDK_VERSION_HEADER_NAME = "x-guild-sdk-version";
declare const SDK_PROJECT_NAME_HEADER_NAME = "x-guild-sdk-project-name";
declare const VISIBILITY_FILTERED_COUNT_HEADER_NAME = "x-guild-visibility-filtered";
declare const unimplementedRequirementTypes: readonly ["ERC721", "ERC1155", "NOUNS", "ERC20", "SOUND_ARTIST_BACKED", "SOUND_COLLECTED", "SOUND_ARTIST", "SOUND_TOP_COLLECTOR", "SOUND_NFTS", "UNLOCK", "NOOX", "YUP"];
declare const UniswapV3PositionsChains: ["ETHEREUM", "ARBITRUM", "OPTIMISM", "POLYGON", "BASE_MAINNET", "BSC", "AVALANCHE", "CELO", "BLAST_MAINNET", "SEPOLIA", "BASE_SEPOLIA"];
declare const UniswapV3PositionsAddresses: {
readonly ETHEREUM: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88";
readonly ARBITRUM: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88";
readonly OPTIMISM: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88";
readonly POLYGON: "0xC36442b4a4522E871399CD717aBDD847Ab11FE88";
readonly CELO: "0x3d79EdAaBC0EaB6F08ED885C05Fc0B014290D95A";
readonly BSC: "0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613";
readonly BASE_MAINNET: "0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1";
readonly SEPOLIA: "0x1238536071E1c677A632429e3655c799b22cDA52";
readonly BASE_SEPOLIA: "0x1238536071E1c677A632429e3655c799b22cDA52";
readonly AVALANCHE: "0x655C406EBFa14EE2006250925e54ec43AD184f8B";
readonly BLAST_MAINNET: "0xB218e4f7cF0533d4696fDfC419A0023D33345F28";
};
declare const UniswapV3FactoryAddresses: {
readonly ETHEREUM: "0x1F98431c8aD98523631AE4a59f267346ea31F984";
readonly SEPOLIA: "0x0227628f3F023bb0B980b67D528571c95c6DaC1c";
readonly ARBITRUM: "0x1F98431c8aD98523631AE4a59f267346ea31F984";
readonly OPTIMISM: "0x1F98431c8aD98523631AE4a59f267346ea31F984";
readonly POLYGON: "0x1F98431c8aD98523631AE4a59f267346ea31F984";
readonly BASE_MAINNET: "0x33128a8fC17869897dcE68Ed026d694621f6FDfD";
readonly BASE_SEPOLIA: "0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24";
readonly BSC: "0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7";
readonly AVALANCHE: "0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD";
readonly CELO: "0xAfE208a311B21f13EF87E33A90049fC17A7acDEc";
readonly BLAST_MAINNET: "0x792edAdE80af5fC680d96a2eD80A44247D2Cf6Fd";
};
declare const PaymentSupportedChains: ["ETHEREUM", "POLYGON", "OPTIMISM", "SEPOLIA"];
declare const FeeCollectorContracts: {
readonly ETHEREUM: "0xe4b4c6a7c6b6396032096c12adf46b7f14a70f4d";
readonly POLYGON: "0xe4b4c6a7c6b6396032096c12adf46b7f14a70f4d";
readonly OPTIMISM: "0xf7c2baa81feb6dd7bda0b3a03afbc1e13f955da5";
readonly SEPOLIA: "0xc3563655d35397b77228c07a7f5301b0e0fa417d";
};
declare const walletTypes: readonly ["EVM", "FUEL"];
declare const consts_AUTH_HEADER_NAME: typeof AUTH_HEADER_NAME;
declare const consts_AuthMethod: typeof AuthMethod;
declare const consts_CORRELATION_ID_HEADER_NAME: typeof CORRELATION_ID_HEADER_NAME;
declare const consts_ChainIds: typeof ChainIds;
declare const consts_ContactType: typeof ContactType;
declare const consts_ErrorMessages: typeof ErrorMessages;
declare const consts_FeeCollectorContracts: typeof FeeCollectorContracts;
declare const consts_GuildPinAction: typeof GuildPinAction;
declare const consts_GuildSortType: typeof GuildSortType;
declare const consts_NFTRewardFactoryAddresses: typeof NFTRewardFactoryAddresses;
declare const consts_NFTRewardSupportedChains: typeof NFTRewardSupportedChains;
declare const consts_PARAMS_HEADER_NAME: typeof PARAMS_HEADER_NAME;
declare const consts_PLATFORM_NAMES_IDS: typeof PLATFORM_NAMES_IDS;
declare const consts_PRIVILEGED_USER_ID_HEADER: typeof PRIVILEGED_USER_ID_HEADER;
declare const consts_PaymentSupportedChains: typeof PaymentSupportedChains;
declare const consts_PinContractAddresses: typeof PinContractAddresses;
declare const consts_PinSupportedChains: typeof PinSupportedChains;
declare const consts_SDK_PROJECT_NAME_HEADER_NAME: typeof SDK_PROJECT_NAME_HEADER_NAME;
declare const consts_SDK_VERSION_HEADER_NAME: typeof SDK_VERSION_HEADER_NAME;
declare const consts_SERVICE_HEADER_NAME: typeof SERVICE_HEADER_NAME;
declare const consts_SIG_HEADER_NAME: typeof SIG_HEADER_NAME;
declare const consts_UniswapV3FactoryAddresses: typeof UniswapV3FactoryAddresses;
declare const consts_UniswapV3PositionsAddresses: typeof UniswapV3PositionsAddresses;
declare const consts_UniswapV3PositionsChains: typeof UniswapV3PositionsChains;
declare const consts_VISIBILITY_FILTERED_COUNT_HEADER_NAME: typeof VISIBILITY_FILTERED_COUNT_HEADER_NAME;
declare const consts_XPEventType: typeof XPEventType;
declare const consts_unimplementedRequirementTypes: typeof unimplementedRequirementTypes;
declare const consts_walletTypes: typeof walletTypes;
declare namespace consts {
export { consts_AUTH_HEADER_NAME as AUTH_HEADER_NAME, consts_AuthMethod as AuthMethod, consts_CORRELATION_ID_HEADER_NAME as CORRELATION_ID_HEADER_NAME, Chain$1 as Chain, consts_ChainIds as ChainIds, consts_ContactType as ContactType, consts_ErrorMessages as ErrorMessages, consts_FeeCollectorContracts as FeeCollectorContracts, consts_GuildPinAction as GuildPinAction, consts_GuildSortType as GuildSortType, Logic$1 as Logic, consts_NFTRewardFactoryAddresses as NFTRewardFactoryAddresses, consts_NFTRewardSupportedChains as NFTRewardSupportedChains, consts_PARAMS_HEADER_NAME as PARAMS_HEADER_NAME, consts_PLATFORM_NAMES_IDS as PLATFORM_NAMES_IDS, consts_PRIVILEGED_USER_ID_HEADER as PRIVILEGED_USER_ID_HEADER, consts_PaymentSupportedChains as PaymentSupportedChains, consts_PinContractAddresses as PinContractAddresses, consts_PinSupportedChains as PinSupportedChains, PlatformName$1 as PlatformName, consts_SDK_PROJECT_NAME_HEADER_NAME as SDK_PROJECT_NAME_HEADER_NAME, consts_SDK_VERSION_HEADER_NAME as SDK_VERSION_HEADER_NAME, consts_SERVICE_HEADER_NAME as SERVICE_HEADER_NAME, consts_SIG_HEADER_NAME as SIG_HEADER_NAME, SocialLinks$1 as SocialLinks, consts_UniswapV3FactoryAddresses as UniswapV3FactoryAddresses, consts_UniswapV3PositionsAddresses as UniswapV3PositionsAddresses, consts_UniswapV3PositionsChains as UniswapV3PositionsChains, consts_VISIBILITY_FILTERED_COUNT_HEADER_NAME as VISIBILITY_FILTERED_COUNT_HEADER_NAME, Visibility$1 as Visibility, consts_XPEventType as XPEventType, consts_unimplementedRequirementTypes as unimplementedRequirementTypes, consts_walletTypes as walletTypes };
}
declare const JoinActionPayloadSchema: z.ZodObject<{
guildId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
guildId: number;
}, {
guildId: number;
}>;
declare const StatusUpdateActionPayloadSchema: z.ZodObject<{
roleIds: z.ZodArray<z.ZodNumber, "many">;
recheckAccess: z.ZodOptional<z.ZodBoolean>;
updateMemberships: z.ZodOptional<z.ZodBoolean>;
manageRewards: z.ZodOptional<z.ZodBoolean>;
forceRewardActions: z.ZodOptional<z.ZodBoolean>;
onlyForThisPlatform: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
roleIds: number[];
recheckAccess?: boolean | undefined;
updateMemberships?: boolean | undefined;
manageRewards?: boolean | undefined;
forceRewardActions?: boolean | undefined;
onlyForThisPlatform?: boolean | undefined;
}, {
roleIds: number[];
recheckAccess?: boolean | undefined;
updateMemberships?: boolean | undefined;
manageRewards?: boolean | undefined;
forceRewardActions?: boolean | undefined;
onlyForThisPlatform?: boolean | undefined;
}>;
declare const AuthenticationParamsSchema: z.ZodIntersection<z.ZodObject<{
addr: z.ZodUnion<[z.ZodString, z.ZodString]>;
nonce: z.ZodString;
msg: z.ZodString;
ts: z.ZodString;
hash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
}, {
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
}>, z.ZodUnion<[z.ZodObject<{
chainId: z.ZodString;
method: z.ZodLiteral<"3">;
}, "strip", z.ZodTypeAny, {
chainId: string;
method: "3";
}, {
chainId: string;
method: "3";
}>, z.ZodObject<{
method: z.ZodLiteral<"1">;
}, "strip", z.ZodTypeAny, {
method: "1";
}, {
method: "1";
}>, z.ZodObject<{
method: z.ZodLiteral<"2">;
}, "strip", z.ZodTypeAny, {
method: "2";
}, {
method: "2";
}>]>>;
declare const AuthenticationSchema: z.ZodObject<{
params: z.ZodIntersection<z.ZodObject<{
addr: z.ZodUnion<[z.ZodString, z.ZodString]>;
nonce: z.ZodString;
msg: z.ZodString;
ts: z.ZodString;
hash: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
}, {
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
}>, z.ZodUnion<[z.ZodObject<{
chainId: z.ZodString;
method: z.ZodLiteral<"3">;
}, "strip", z.ZodTypeAny, {
chainId: string;
method: "3";
}, {
chainId: string;
method: "3";
}>, z.ZodObject<{
method: z.ZodLiteral<"1">;
}, "strip", z.ZodTypeAny, {
method: "1";
}, {
method: "1";
}>, z.ZodObject<{
method: z.ZodLiteral<"2">;
}, "strip", z.ZodTypeAny, {
method: "2";
}, {
method: "2";
}>]>>;
sig: z.ZodString;
}, "strip", z.ZodTypeAny, {
params: ({
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
} & {
chainId: string;
method: "3";
}) | ({
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
} & {
method: "1";
}) | ({
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
} & {
method: "2";
});
sig: string;
}, {
params: ({
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
} & {
chainId: string;
method: "3";
}) | ({
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
} & {
method: "1";
}) | ({
addr: string;
nonce: string;
msg: string;
ts: string;
hash?: string | undefined;
} & {
method: "2";
});
sig: string;
}>;
declare const GuildContactCreationPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"EMAIL">;
contact: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "EMAIL";
contact: string;
}, {
type: "EMAIL";
contact: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"TELEGRAM">;
contact: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "TELEGRAM";
contact: string;
}, {
type: "TELEGRAM";
contact: string;
}>]>;
declare const GuildContactUpdatePayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"EMAIL">;
contact: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "EMAIL";
contact: string;
}, {
type: "EMAIL";
contact: string;
}>, z.ZodObject<{
type: z.ZodLiteral<"TELEGRAM">;
contact: z.ZodString;
}, "strip", z.ZodTypeAny, {
type: "TELEGRAM";
contact: string;
}, {
type: "TELEGRAM";
contact: string;
}>]>;
declare const InputSourceSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_AMOUNT">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_ACCESS">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
value: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"POINTS">;
guildId: z.ZodNumber;
guildPlatformId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"STATIC">;
value: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "STATIC";
value: number;
}, {
type: "STATIC";
value: number;
}>]>;
type InputSource = z.input<typeof InputSourceSchema>;
declare const DynamicAmountSchema: z.ZodObject<{
operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"LINEAR">;
params: z.ZodDefault<z.ZodObject<{
multiplier: z.ZodDefault<z.ZodNumber>;
addition: z.ZodDefault<z.ZodNumber>;
shouldFloorResult: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
multiplier: number;
addition: number;
shouldFloorResult?: boolean | undefined;
}, {
multiplier?: number | undefined;
addition?: number | undefined;
shouldFloorResult?: boolean | undefined;
}>>;
input: z.ZodEffects<z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_AMOUNT">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_ACCESS">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
value: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"POINTS">;
guildId: z.ZodNumber;
guildPlatformId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"STATIC">;
value: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "STATIC";
value: number;
}, {
type: "STATIC";
value: number;
}>]>, z.ZodTuple<[z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_AMOUNT">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_ACCESS">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
value: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"POINTS">;
guildId: z.ZodNumber;
guildPlatformId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"STATIC">;
value: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "STATIC";
value: number;
}, {
type: "STATIC";
value: number;
}>]>], null>]>, [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}], {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
} | [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]>;
}, "strip", z.ZodTypeAny, {
params: {
multiplier: number;
addition: number;
shouldFloorResult?: boolean | undefined;
};
type: "LINEAR";
input: [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}];
}, {
type: "LINEAR";
input: {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
} | [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] | ({
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ({
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ({
guildId: number;
type: "POINTS";
guildPlatformId: number;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ({
type: "STATIC";
value: number;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
}) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
type: "STATIC";
value: number;
});
params?: {
multiplier?: number | undefined;
addition?: number | undefined;
shouldFloorResult?: boolean | undefined;
} | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"SUM">;
input: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_AMOUNT">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"REQUIREMENT_ACCESS">;
roleId: z.ZodNumber;
requirementId: z.ZodNumber;
value: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
}, {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
}>, z.ZodObject<{
type: z.ZodLiteral<"POINTS">;
guildId: z.ZodNumber;
guildPlatformId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}, {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}>, z.ZodObject<{
type: z.ZodLiteral<"STATIC">;
value: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
type: "STATIC";
value: number;
}, {
type: "STATIC";
value: number;
}>]>, "many">;
}, "strip", z.ZodTypeAny, {
type: "SUM";
input: ({
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
})[];
}, {
type: "SUM";
input: ({
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
})[];
}>]>;
}, "strip", z.ZodTypeAny, {
operation: {
params: {
multiplier: number;
addition: number;
shouldFloorResult?: boolean | undefined;
};
type: "LINEAR";
input: [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}];
} | {
type: "SUM";
input: ({
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
value: number;
roleId: number;
requirementId: number;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
})[];
};
}, {
operation: {
type: "LINEAR";
input: {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
} | [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] | ({
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ({
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ({
guildId: number;
type: "POINTS";
guildPlatformId: number;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ({
type: "STATIC";
value: number;
} & [{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}]) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
}) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
}) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
guildId: number;
type: "POINTS";
guildPlatformId: number;
}) | ([{
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
}] & {
type: "STATIC";
value: number;
});
params?: {
multiplier?: number | undefined;
addition?: number | undefined;
shouldFloorResult?: boolean | undefined;
} | undefined;
} | {
type: "SUM";
input: ({
type: "REQUIREMENT_AMOUNT";
roleId: number;
requirementId: number;
} | {
type: "REQUIREMENT_ACCESS";
roleId: number;
requirementId: number;
value?: number | undefined;
} | {
guildId: number;
type: "POINTS";
guildPlatformId: number;
} | {
type: "STATIC";
value: number;
})[];
};
}>;
type DynamicAmountToCreate = z.input<typeof DynamicAmountSchema>;
type DynamicAmount = z.output<typeof DynamicAmountSchema> & {
amount?: number;
};
type DynamicAmountOperations = DynamicAmount["operation"]["type"];
declare const FieldCreationPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["SHORT_TEXT", "LONG_TEXT", "NUMBER"]>;
}, "strip", z.ZodTypeAny, {
type: "SHORT_TEXT" | "LONG_TEXT" | "NUMBER";
question: string;
isRequired: boolean;
id?: string | undefined;
}, {
type: "SHORT_TEXT" | "LONG_TEXT" | "NUMBER";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
}>, z.ZodObject<{
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["SINGLE_CHOICE", "MULTIPLE_CHOICE"]>;
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
options: (string | number)[];
type: "SINGLE_CHOICE" | "MULTIPLE_CHOICE";
question: string;
isRequired: boolean;
allowOther: boolean;
id?: string | undefined;
}, {
options: (string | number)[];
type: "SINGLE_CHOICE" | "MULTIPLE_CHOICE";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
allowOther?: boolean | undefined;
}>, z.ZodObject<{
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["RATE"]>;
worstLabel: z.ZodOptional<z.ZodString>;
bestLabel: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
options: (string | number)[];
type: "RATE";
question: string;
isRequired: boolean;
id?: string | undefined;
worstLabel?: string | undefined;
bestLabel?: string | undefined;
}, {
options: (string | number)[];
type: "RATE";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
worstLabel?: string | undefined;
bestLabel?: string | undefined;
}>]>;
declare const FieldSchema: z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["SHORT_TEXT", "LONG_TEXT", "NUMBER"]>;
}, "strip", z.ZodTypeAny, {
type: "SHORT_TEXT" | "LONG_TEXT" | "NUMBER";
question: string;
isRequired: boolean;
id?: string | undefined;
}, {
type: "SHORT_TEXT" | "LONG_TEXT" | "NUMBER";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
}>, z.ZodObject<{
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["SINGLE_CHOICE", "MULTIPLE_CHOICE"]>;
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
options: (string | number)[];
type: "SINGLE_CHOICE" | "MULTIPLE_CHOICE";
question: string;
isRequired: boolean;
allowOther: boolean;
id?: string | undefined;
}, {
options: (string | number)[];
type: "SINGLE_CHOICE" | "MULTIPLE_CHOICE";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
allowOther?: boolean | undefined;
}>, z.ZodObject<{
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["RATE"]>;
worstLabel: z.ZodOptional<z.ZodString>;
bestLabel: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
options: (string | number)[];
type: "RATE";
question: string;
isRequired: boolean;
id?: string | undefined;
worstLabel?: string | undefined;
bestLabel?: string | undefined;
}, {
options: (string | number)[];
type: "RATE";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
worstLabel?: string | undefined;
bestLabel?: string | undefined;
}>]>, z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
id?: string | undefined;
}, {
id?: string | undefined;
}>>;
declare const FormCreationPayloadSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodString>;
isEditable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
fields: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["SHORT_TEXT", "LONG_TEXT", "NUMBER"]>;
}, "strip", z.ZodTypeAny, {
type: "SHORT_TEXT" | "LONG_TEXT" | "NUMBER";
question: string;
isRequired: boolean;
id?: string | undefined;
}, {
type: "SHORT_TEXT" | "LONG_TEXT" | "NUMBER";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
}>, z.ZodObject<{
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["SINGLE_CHOICE", "MULTIPLE_CHOICE"]>;
allowOther: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
options: (string | number)[];
type: "SINGLE_CHOICE" | "MULTIPLE_CHOICE";
question: string;
isRequired: boolean;
allowOther: boolean;
id?: string | undefined;
}, {
options: (string | number)[];
type: "SINGLE_CHOICE" | "MULTIPLE_CHOICE";
question: string;
id?: string | undefined;
isRequired?: boolean | undefined;
allowOther?: boolean | undefined;
}>, z.ZodObject<{
options: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">;
id: z.ZodOptional<z.ZodString>;
question: z.ZodString;
isRequired: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
type: z.ZodEnum<["RATE"]>;
worstLabel: z.ZodOptional<z.ZodString>;
bestLabel: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
options: (string | number)[];
type: "RATE";
question: string;
isRequired: boolean;
id?: string | undefined;
worstLabel?: string | undefined;
bestLabel?: string | undefined;
}, {
options: (string | number)[];
type: "RATE";
question: string;
id?: string | undefi