Files
orionprotocol-sdk/src/services/ReferralSystem/schemas/inviteCodeLinkSchema.ts
2024-01-30 12:13:44 +03:00

24 lines
435 B
TypeScript

import { z } from 'zod';
const inviteCodeLinkSchema = z.object({
link: z
.object({
referer: z.string(),
ref_link: z.string(),
})
.nullable(),
invite: z
.object({
code: z.string(),
data: z.null(),
limits: z.object({
tag: z.string(),
max_invites: z.number(),
max_ref_depth: z.number(),
}),
})
.nullable(),
});
export default inviteCodeLinkSchema;