import { DayInterval, Interval } from "./utils/dates.js"; import { Currency } from "./utils/currency-constants.js"; import { isValidCountryCode, normalizeCountryCode, validateCountryCode } from "./utils/country-codes.js"; import * as yup from "yup"; //#region src/schema-fields.d.ts declare module "yup" { interface StringSchema { nonEmpty(message?: string): StringSchema; empty(): StringSchema; } interface Schema { hasNested>(path: K): boolean; getNested>(path: K): yup.Schema[K], TContext, TDefault, TFlags>; concat(schema: U): yup.Schema, keyof yup.InferType> & yup.InferType | (TType & (null | undefined)), TContext, Omit, keyof U['__default']> & U['__default'] | (TDefault & (null | undefined)), TFlags>; } interface CustomSchemaMetadata { stackSchemaInfo?: { type: "object" | "array" | "string" | "number" | "boolean" | "date" | "mixed" | "never"; } | { type: "tuple"; items: yup.AnySchema[]; } | { type: "union"; items: yup.AnySchema[]; } | { type: "record"; keySchema: yup.StringSchema; valueSchema: yup.AnySchema; }; } } declare function yupValidate>(schema: S, obj: unknown, options?: yup.ValidateOptions & { currentUserId?: string | null; }): Promise>; declare const StackAdaptSentinel: unique symbol; type StackAdaptSentinel = typeof StackAdaptSentinel; declare function yupString = yup.AnyObject>(...args: Parameters>): yup.StringSchema; declare function yupNumber = yup.AnyObject>(...args: Parameters>): yup.NumberSchema; declare function yupBoolean = yup.AnyObject>(...args: Parameters>): yup.BooleanSchema; /** * @deprecated, use number of milliseconds since epoch instead */ declare function yupDate = yup.AnyObject>(...args: Parameters>): yup.DateSchema; declare function yupMixed(...args: Parameters>): yup.MixedSchema; declare function yupArray = yup.AnyObject, B = any>(...args: Parameters>): yup.ArraySchema; declare function yupTuple(schemas: { [K in keyof T]: yup.Schema }): yup.TupleSchema; declare function yupObjectWithAutoDefault, B extends yup.ObjectShape>(...args: Parameters>): yup.ObjectSchema extends infer T ? T extends yup.TypeFromShape ? T extends {} ? { [k in keyof T]: T[k] } : T : never : never, yup.AnyObject, yup.DefaultFromShape extends infer T_1 ? T_1 extends yup.DefaultFromShape ? T_1 extends {} ? { [k_1 in keyof T_1]: T_1[k_1] } : T_1 : never : never, "">; declare function yupObject, B extends yup.ObjectShape>(...args: Parameters>): yup.ObjectSchema extends infer T ? T extends yup.TypeFromShape ? T extends {} ? { [k in keyof T]: T[k] } : T : never : never, yup.AnyObject, yup.DefaultFromShape extends infer T_1 ? T_1 extends yup.DefaultFromShape ? T_1 extends {} ? { [k_1 in keyof T_1]: T_1[k_1] } : T_1 : never : never, "">; declare function yupNever(): yup.MixedSchema; declare function yupUnion(...args: T): yup.MixedSchema>; declare function yupRecord(keySchema: K, valueSchema: T): yup.MixedSchema & string, yup.InferType>>; declare function ensureObjectSchema(schema: yup.Schema): yup.ObjectSchema & typeof schema; declare const adaptSchema: yup.MixedSchema; /** * Yup's URL schema does not recognize some URLs (including `http://localhost`) as a valid URL. This schema is a workaround for that. */ declare const urlSchema: yup.StringSchema; /** * URL schema that supports wildcard patterns in hostnames (e.g., "https://*.example.com", "http://*:8080") */ declare const wildcardUrlSchema: yup.StringSchema; declare const wildcardProtocolAndDomainSchema: yup.StringSchema; declare const jsonSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const jsonStringSchema: yup.StringSchema; declare const jsonStringOrEmptySchema: yup.StringSchema; declare const base64Schema: yup.StringSchema; declare const passwordSchema: yup.StringSchema; declare const countryCodeSchema: yup.StringSchema; declare const intervalSchema: yup.TupleSchema; declare const dayIntervalSchema: yup.TupleSchema; declare const intervalOrNeverSchema: yup.MixedSchema<"never" | Interval, yup.AnyObject, undefined, "">; declare const dayIntervalOrNeverSchema: yup.MixedSchema<"never" | DayInterval, yup.AnyObject, undefined, "">; /** * This schema is useful for fields where the user can specify the ID, such as price IDs. It is particularly common * for IDs in the config schema. * * Valid IDs: * - Must contain only letters, numbers, underscores, and hyphens * - Must not start with a hyphen * - Maximum length of 63 characters */ declare const USER_SPECIFIED_ID_PATTERN: RegExp; declare const USER_SPECIFIED_ID_MAX_LENGTH = 63; /** * Checks if the given string is a valid user-specified ID. */ declare function isValidUserSpecifiedId(id: string): boolean; /** * Gets the error message for an invalid user-specified ID. */ declare function getUserSpecifiedIdErrorMessage(idName: `${string}Id`): string; /** * Sanitizes user input to create a valid user-specified ID. * Converts to lowercase and replaces invalid characters with hyphens. * Strips leading hyphens. */ declare function sanitizeUserSpecifiedId(input: string): string; declare const userSpecifiedIdSchema: (idName: `${string}Id`) => yup.StringSchema; declare const moneyAmountSchema: (currency: Currency) => yup.StringSchema; /** * A stricter email schema that does some additional checks for UX input. (Some emails are allowed by the spec, for * example `test@localhost` or `abc@gmail`, but almost certainly a user input error.) * * Note that some users in the DB have an email that doesn't match this regex, so most of the time you should use * `emailSchema` instead until we do the DB migration. */ declare const strictEmailSchema: (message: string | undefined) => yup.StringSchema; declare const emailSchema: yup.StringSchema; declare const clientOrHigherAuthTypeSchema: yup.StringSchema<"client" | "server" | "admin", yup.AnyObject, undefined, "">; declare const serverOrHigherAuthTypeSchema: yup.StringSchema<"server" | "admin", yup.AnyObject, undefined, "">; declare const adminAuthTypeSchema: yup.StringSchema<"admin", yup.AnyObject, undefined, "">; declare const projectIdSchema: yup.StringSchema; declare const projectBranchIdSchema: yup.StringSchema; declare const projectDisplayNameSchema: yup.StringSchema; declare const projectLogoUrlSchema: yup.StringSchema; declare const projectLogoFullUrlSchema: yup.StringSchema; declare const projectLogoDarkModeUrlSchema: yup.StringSchema; declare const projectLogoFullDarkModeUrlSchema: yup.StringSchema; declare const projectDescriptionSchema: yup.StringSchema; declare const projectCreatedAtMillisSchema: yup.NumberSchema; declare const projectIsProductionModeSchema: yup.BooleanSchema; declare const projectOnboardingStatusValues: readonly ["config_choice", "apps_selection", "auth_setup", "domain_setup", "email_theme_setup", "payments_setup", "completed"]; type ProjectOnboardingStatus = typeof projectOnboardingStatusValues[number]; declare const projectOnboardingStatusSchema: yup.StringSchema<"config_choice" | "apps_selection" | "auth_setup" | "domain_setup" | "email_theme_setup" | "payments_setup" | "completed" | undefined, yup.AnyObject, undefined, "">; declare const projectConfigIdSchema: yup.StringSchema; declare const projectAllowLocalhostSchema: yup.BooleanSchema; declare const projectCreateTeamOnSignUpSchema: yup.BooleanSchema; declare const projectMagicLinkEnabledSchema: yup.BooleanSchema; declare const projectPasskeyEnabledSchema: yup.BooleanSchema; declare const projectClientTeamCreationEnabledSchema: yup.BooleanSchema; declare const projectClientUserDeletionEnabledSchema: yup.BooleanSchema; declare const projectSignUpEnabledSchema: yup.BooleanSchema; declare const projectCredentialEnabledSchema: yup.BooleanSchema; declare const oauthIdSchema: yup.StringSchema<"google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined, yup.AnyObject, undefined, "">; declare const oauthEnabledSchema: yup.BooleanSchema; declare const oauthTypeSchema: yup.StringSchema<"standard" | "shared" | undefined, yup.AnyObject, undefined, "">; declare const oauthClientIdSchema: yup.StringSchema; declare const oauthClientSecretSchema: yup.StringSchema; declare const oauthFacebookConfigIdSchema: yup.StringSchema; declare const oauthMicrosoftTenantIdSchema: yup.StringSchema; declare const oauthAppleBundleIdsSchema: yup.ArraySchema; declare const oauthAppleBundleIdSchema: yup.StringSchema; declare const oauthAccountMergeStrategySchema: yup.StringSchema<"link_method" | "raise_error" | "allow_duplicates" | undefined, yup.AnyObject, undefined, "">; declare const emailTypeSchema: yup.StringSchema<"standard" | "shared" | undefined, yup.AnyObject, undefined, "">; declare const emailSenderNameSchema: yup.StringSchema; declare const emailHostSchema: yup.StringSchema; declare const emailPortSchema: yup.NumberSchema; declare const emailUsernameSchema: yup.StringSchema; declare const emailSenderEmailSchema: yup.StringSchema; declare const emailPasswordSchema: yup.StringSchema; declare const handlerPathSchema: yup.StringSchema; declare const emailThemeSchema: yup.StringSchema; declare const emailThemeListSchema: yup.MixedSchema, yup.AnyObject, undefined, "">; declare const templateThemeIdSchema: yup.MixedSchema; declare const emailTemplateListSchema: yup.MixedSchema, yup.AnyObject, undefined, "">; declare const customDashboardsSchema: yup.MixedSchema, yup.AnyObject, undefined, "">; declare const customerTypeSchema: yup.StringSchema<"user" | "team" | "custom" | undefined, yup.AnyObject, undefined, "">; declare const productPriceSchema: yup.ObjectSchema<{ interval: DayInterval | undefined; serverOnly: boolean | undefined; freeTrial: DayInterval | undefined; USD: string | undefined; EUR: string | undefined; GBP: string | undefined; JPY: string | undefined; INR: string | undefined; AUD: string | undefined; CAD: string | undefined; }, yup.AnyObject, { interval: undefined; serverOnly: undefined; freeTrial: undefined; USD: undefined; EUR: undefined; GBP: undefined; JPY: undefined; INR: undefined; AUD: undefined; CAD: undefined; }, "">; declare const priceOrIncludeByDefaultSchema: yup.MixedSchema<"include-by-default" | Record | undefined, yup.AnyObject, undefined, "">; declare const productSchema: yup.ObjectSchema<{ displayName: string | undefined; productLineId: string | undefined; isAddOnTo: false | Record | undefined; customerType: "user" | "team" | "custom"; freeTrial: DayInterval | undefined; serverOnly: boolean | undefined; stackable: boolean | undefined; prices: "include-by-default" | Record; includedItems: Record; }, yup.AnyObject, { displayName: undefined; productLineId: undefined; isAddOnTo: undefined; customerType: undefined; freeTrial: undefined; serverOnly: undefined; stackable: undefined; prices: undefined; includedItems: undefined; }, "">; declare const productClientMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const productClientReadOnlyMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const productServerMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const productSchemaWithMetadata: yup.ObjectSchema<{ displayName: string | undefined; productLineId: string | undefined; isAddOnTo: false | Record | undefined; customerType: "user" | "team" | "custom"; freeTrial: DayInterval | undefined; serverOnly: boolean | undefined; stackable: boolean | undefined; prices: "include-by-default" | Record; includedItems: Record; } & { clientMetadata: {} | null | undefined; clientReadOnlyMetadata: {} | null | undefined; serverMetadata: {} | null | undefined; }, yup.AnyObject, { displayName: undefined; productLineId: undefined; isAddOnTo: undefined; customerType: undefined; freeTrial: undefined; serverOnly: undefined; stackable: undefined; prices: undefined; includedItems: undefined; clientMetadata: undefined; clientReadOnlyMetadata: undefined; serverMetadata: undefined; }, "">; declare const inlineProductSchema: yup.ObjectSchema<{ display_name: string; customer_type: "user" | "team" | "custom"; free_trial: DayInterval | undefined; server_only: boolean; stackable: boolean; prices: Record; included_items: Record; client_metadata: {} | null | undefined; client_read_only_metadata: {} | null | undefined; server_metadata: {} | null | undefined; }, yup.AnyObject, { display_name: undefined; customer_type: undefined; free_trial: undefined; server_only: true; stackable: false; prices: undefined; included_items: undefined; client_metadata: undefined; client_read_only_metadata: undefined; server_metadata: undefined; }, "">; declare class ReplaceFieldWithOwnUserId extends Error { readonly path: string; constructor(path: string); } declare const userIdOrMeSchema: yup.StringSchema; declare const userIdSchema: yup.StringSchema; declare const primaryEmailSchema: yup.StringSchema; declare const primaryEmailAuthEnabledSchema: yup.BooleanSchema; declare const primaryEmailVerifiedSchema: yup.BooleanSchema; declare const userDisplayNameSchema: yup.StringSchema; declare const selectedTeamIdSchema: yup.StringSchema; declare const profileImageUrlSchema: yup.StringSchema; declare const signedUpAtMillisSchema: yup.NumberSchema; declare const userClientMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const userClientReadOnlyMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const userServerMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const userOAuthProviderSchema: yup.ObjectSchema<{ id: string; type: "google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch"; provider_user_id: string; }, yup.AnyObject, { id: undefined; type: undefined; provider_user_id: undefined; }, "">; declare const userLastActiveAtMillisSchema: yup.NumberSchema; declare const userPasskeyAuthEnabledSchema: yup.BooleanSchema; declare const userOtpAuthEnabledSchema: yup.BooleanSchema; declare const userOtpAuthEnabledMutationSchema: yup.BooleanSchema; declare const userHasPasswordSchema: yup.BooleanSchema; declare const userPasswordMutationSchema: yup.StringSchema; declare const userPasswordHashMutationSchema: yup.StringSchema; declare const userTotpSecretMutationSchema: yup.StringSchema; declare const restrictedReasonTypes: readonly ["anonymous", "email_not_verified", "restricted_by_administrator"]; type RestrictedReasonType = typeof restrictedReasonTypes[number]; declare const restrictedReasonSchema: yup.ObjectSchema<{ type: "anonymous" | "email_not_verified" | "restricted_by_administrator"; }, yup.AnyObject, { type: undefined; }, "">; type RestrictedReason = yup.InferType; declare const accessTokenPayloadSchema: yup.ObjectSchema<{ sub: string; exp: number | undefined; iat: number; iss: string; aud: string; project_id: string; branch_id: string; refresh_token_id: string; role: "authenticated"; name: string | null; email: string | null; email_verified: boolean; selected_team_id: string | null; signed_up_at: number; is_anonymous: boolean; is_restricted: boolean; restricted_reason: { type: "anonymous" | "email_not_verified" | "restricted_by_administrator"; } | null; requires_totp_mfa: boolean; }, yup.AnyObject, { sub: undefined; exp: undefined; iat: undefined; iss: undefined; aud: undefined; project_id: undefined; branch_id: undefined; refresh_token_id: undefined; role: undefined; name: undefined; email: undefined; email_verified: undefined; selected_team_id: undefined; signed_up_at: undefined; is_anonymous: undefined; is_restricted: undefined; restricted_reason: { type: undefined; }; requires_totp_mfa: undefined; }, "">; declare const signInEmailSchema: yup.StringSchema; declare const emailOtpSignInCallbackUrlSchema: yup.StringSchema; declare const emailVerificationCallbackUrlSchema: yup.StringSchema; declare const accessTokenResponseSchema: yup.StringSchema; declare const refreshTokenResponseSchema: yup.StringSchema; declare const signInResponseSchema: yup.ObjectSchema<{ refresh_token: string; access_token: string; is_new_user: boolean; user_id: string; }, yup.AnyObject, { refresh_token: undefined; access_token: undefined; is_new_user: undefined; user_id: undefined; }, "">; declare const teamSystemPermissions: readonly ["$update_team", "$delete_team", "$read_members", "$remove_members", "$invite_members", "$manage_api_keys"]; declare const permissionDefinitionIdSchema: yup.StringSchema; declare const customPermissionDefinitionIdSchema: yup.StringSchema; declare const teamPermissionDescriptionSchema: yup.StringSchema; declare const containedPermissionIdsSchema: yup.ArraySchema; declare const teamIdSchema: yup.StringSchema; declare const teamDisplayNameSchema: yup.StringSchema; declare const teamProfileImageUrlSchema: yup.StringSchema; declare const teamClientMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const teamClientReadOnlyMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const teamServerMetadataSchema: yup.MixedSchema<{} | null, yup.AnyObject, undefined, "">; declare const teamCreatedAtMillisSchema: yup.NumberSchema; declare const teamInvitationEmailSchema: yup.StringSchema; declare const teamInvitationCallbackUrlSchema: yup.StringSchema; declare const teamCreatorUserIdSchema: yup.StringSchema; declare const teamMemberDisplayNameSchema: yup.StringSchema; declare const teamMemberProfileImageUrlSchema: yup.StringSchema; declare const contactChannelIdSchema: yup.StringSchema; declare const contactChannelTypeSchema: yup.StringSchema<"email" | undefined, yup.AnyObject, undefined, "">; declare const contactChannelValueSchema: yup.StringSchema; declare const contactChannelUsedForAuthSchema: yup.BooleanSchema; declare const contactChannelIsVerifiedSchema: yup.BooleanSchema; declare const contactChannelIsPrimarySchema: yup.BooleanSchema; declare const oauthProviderIdSchema: yup.StringSchema; declare const oauthProviderEmailSchema: yup.StringSchema; declare const oauthProviderTypeSchema: yup.StringSchema<"google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined, yup.AnyObject, undefined, "">; declare const oauthProviderAllowSignInSchema: yup.BooleanSchema; declare const oauthProviderAllowConnectedAccountsSchema: yup.BooleanSchema; declare const oauthProviderAccountIdSchema: yup.StringSchema; declare const oauthProviderProviderConfigIdSchema: yup.StringSchema; declare const basicAuthorizationHeaderSchema: yup.StringSchema; declare const neonAuthorizationHeaderSchema: yup.StringSchema; declare function yupDefinedWhen(schema: S, triggers: Record): S; declare function yupDefinedAndNonEmptyWhen(schema: S, triggers: Record): S; declare const branchConfigSourceSchema: yup.MixedSchema<{ type: "pushed-from-github"; owner: string; repo: string; branch: string; commit_hash: string; config_file_path: string; } | { type: "pushed-from-unknown"; } | { type: "unlinked"; }, yup.AnyObject, undefined, "">; //#endregion export { ProjectOnboardingStatus, ReplaceFieldWithOwnUserId, RestrictedReason, RestrictedReasonType, StackAdaptSentinel, USER_SPECIFIED_ID_MAX_LENGTH, USER_SPECIFIED_ID_PATTERN, accessTokenPayloadSchema, accessTokenResponseSchema, adaptSchema, adminAuthTypeSchema, base64Schema, basicAuthorizationHeaderSchema, branchConfigSourceSchema, clientOrHigherAuthTypeSchema, contactChannelIdSchema, contactChannelIsPrimarySchema, contactChannelIsVerifiedSchema, contactChannelTypeSchema, contactChannelUsedForAuthSchema, contactChannelValueSchema, containedPermissionIdsSchema, countryCodeSchema, customDashboardsSchema, customPermissionDefinitionIdSchema, customerTypeSchema, dayIntervalOrNeverSchema, dayIntervalSchema, emailHostSchema, emailOtpSignInCallbackUrlSchema, emailPasswordSchema, emailPortSchema, emailSchema, emailSenderEmailSchema, emailSenderNameSchema, emailTemplateListSchema, emailThemeListSchema, emailThemeSchema, emailTypeSchema, emailUsernameSchema, emailVerificationCallbackUrlSchema, ensureObjectSchema, getUserSpecifiedIdErrorMessage, handlerPathSchema, inlineProductSchema, intervalOrNeverSchema, intervalSchema, isValidCountryCode, isValidUserSpecifiedId, jsonSchema, jsonStringOrEmptySchema, jsonStringSchema, moneyAmountSchema, neonAuthorizationHeaderSchema, normalizeCountryCode, oauthAccountMergeStrategySchema, oauthAppleBundleIdSchema, oauthAppleBundleIdsSchema, oauthClientIdSchema, oauthClientSecretSchema, oauthEnabledSchema, oauthFacebookConfigIdSchema, oauthIdSchema, oauthMicrosoftTenantIdSchema, oauthProviderAccountIdSchema, oauthProviderAllowConnectedAccountsSchema, oauthProviderAllowSignInSchema, oauthProviderEmailSchema, oauthProviderIdSchema, oauthProviderProviderConfigIdSchema, oauthProviderTypeSchema, oauthTypeSchema, passwordSchema, permissionDefinitionIdSchema, priceOrIncludeByDefaultSchema, primaryEmailAuthEnabledSchema, primaryEmailSchema, primaryEmailVerifiedSchema, productClientMetadataSchema, productClientReadOnlyMetadataSchema, productPriceSchema, productSchema, productSchemaWithMetadata, productServerMetadataSchema, profileImageUrlSchema, projectAllowLocalhostSchema, projectBranchIdSchema, projectClientTeamCreationEnabledSchema, projectClientUserDeletionEnabledSchema, projectConfigIdSchema, projectCreateTeamOnSignUpSchema, projectCreatedAtMillisSchema, projectCredentialEnabledSchema, projectDescriptionSchema, projectDisplayNameSchema, projectIdSchema, projectIsProductionModeSchema, projectLogoDarkModeUrlSchema, projectLogoFullDarkModeUrlSchema, projectLogoFullUrlSchema, projectLogoUrlSchema, projectMagicLinkEnabledSchema, projectOnboardingStatusSchema, projectOnboardingStatusValues, projectPasskeyEnabledSchema, projectSignUpEnabledSchema, refreshTokenResponseSchema, restrictedReasonSchema, restrictedReasonTypes, sanitizeUserSpecifiedId, selectedTeamIdSchema, serverOrHigherAuthTypeSchema, signInEmailSchema, signInResponseSchema, signedUpAtMillisSchema, strictEmailSchema, teamClientMetadataSchema, teamClientReadOnlyMetadataSchema, teamCreatedAtMillisSchema, teamCreatorUserIdSchema, teamDisplayNameSchema, teamIdSchema, teamInvitationCallbackUrlSchema, teamInvitationEmailSchema, teamMemberDisplayNameSchema, teamMemberProfileImageUrlSchema, teamPermissionDescriptionSchema, teamProfileImageUrlSchema, teamServerMetadataSchema, teamSystemPermissions, templateThemeIdSchema, urlSchema, userClientMetadataSchema, userClientReadOnlyMetadataSchema, userDisplayNameSchema, userHasPasswordSchema, userIdOrMeSchema, userIdSchema, userLastActiveAtMillisSchema, userOAuthProviderSchema, userOtpAuthEnabledMutationSchema, userOtpAuthEnabledSchema, userPasskeyAuthEnabledSchema, userPasswordHashMutationSchema, userPasswordMutationSchema, userServerMetadataSchema, userSpecifiedIdSchema, userTotpSecretMutationSchema, validateCountryCode, wildcardProtocolAndDomainSchema, wildcardUrlSchema, yupArray, yupBoolean, yupDate, yupDefinedAndNonEmptyWhen, yupDefinedWhen, yupMixed, yupNever, yupNumber, yupObject, yupObjectWithAutoDefault, yupRecord, yupString, yupTuple, yupUnion, yupValidate }; //# sourceMappingURL=schema-fields.d.ts.map