import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ApplicationScope } from "./applicationscope.js"; import { CapabilityID } from "./capabilityid.js"; import { CreateAccount, CreateAccount$Outbound } from "./createaccount.js"; import { OnboardingPartnerAccount, OnboardingPartnerAccount$Outbound } from "./onboardingpartneraccount.js"; export type OnboardingInvite = { /** * A unique code that identifies an onboarding invite. */ code: string; /** * A unique URL, including the invite code, that the recipient can follow to redeem the invitation. */ link: string; /** * The scopes requested by the inviter. */ returnURL?: string | undefined; /** * The terms of service URL set by the inviter. */ termsOfServiceURL?: string | undefined; /** * List of [scopes](https://docs.moov.io/api/authentication/scopes/) you request to use on this * * @remarks * account. These values are used to determine what can be done with the account onboarded. */ scopes: Array; /** * List of [scopes](https://docs.moov.io/api/authentication/scopes/) you grant to allow being used * * @remarks * by the new account on yourself. These values are used to determine what the account onboarded can do. */ grantScopes?: Array | undefined; /** * List of [capabilities](https://docs.moov.io/guides/accounts/capabilities/) you intend to request for this * * @remarks * account. These values are used to determine what information to collect from the user during onboarding. */ capabilities: Array; /** * List of fee plan codes to assign the account created by the invitee. */ feePlanCodes: Array; /** * The account ID of the account that redeemed the invite. */ redeemedAccountID?: string | undefined; prefill?: CreateAccount | undefined; /** * The account that created the onboarding invite. */ partner?: OnboardingPartnerAccount | undefined; createdOn: Date; revokedOn?: Date | undefined; redeemedOn?: Date | undefined; }; /** @internal */ export declare const OnboardingInvite$inboundSchema: z.ZodType; /** @internal */ export type OnboardingInvite$Outbound = { code: string; link: string; returnURL?: string | undefined; termsOfServiceURL?: string | undefined; scopes: Array; grantScopes?: Array | undefined; capabilities: Array; feePlanCodes: Array; redeemedAccountID?: string | undefined; prefill?: CreateAccount$Outbound | undefined; partner?: OnboardingPartnerAccount$Outbound | undefined; createdOn: string; revokedOn?: string | undefined; redeemedOn?: string | undefined; }; /** @internal */ export declare const OnboardingInvite$outboundSchema: z.ZodType; export declare function onboardingInviteToJSON(onboardingInvite: OnboardingInvite): string; export declare function onboardingInviteFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=onboardinginvite.d.ts.map