import { SocialProvider as SocialProvider$1, SocialVerification as SocialVerification$1, SocialVerificationMethod as SocialVerificationMethod$1 } from "../../gen/auth/v1/social_verification_pb.js"; import { DecodedEnum } from "../../utils/types.js"; import "./social-verification.codecs.js"; import * as v from "valibot"; //#region src/services/social-verification/social-verification.schemas.d.ts declare const SocialProviderSchema: v.PicklistSchema; type SocialProvider = v.InferInput; declare const SocialVerificationMethodSchema: v.PicklistSchema; type SocialVerificationMethod = v.InferInput; declare const SocialVerificationErrorCodeSchema: v.PicklistSchema; type SocialVerificationErrorCode = v.InferOutput; declare const SocialVerificationStatusSchema: v.PicklistSchema; type SocialVerificationStatus = v.InferOutput; declare const SocialVerificationSchema: v.ObjectSchema<{ readonly id: v.BigintSchema; readonly provider: v.PicklistSchema; readonly method: v.PicklistSchema; readonly handle: v.StringSchema; readonly providerUserId: v.StringSchema; readonly challengeCode: v.StringSchema; readonly status: v.PicklistSchema; readonly requestedAt: v.OptionalSchema; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>; readonly expiresAt: v.OptionalSchema; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>; readonly verifiedAt: v.OptionalSchema; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>; readonly attempts: v.NumberSchema; readonly lastError: v.StringSchema; readonly updatedAt: v.OptionalSchema; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>; }, undefined>; type SocialVerificationBase = v.InferOutput; type SocialVerification = Omit & { provider: DecodedEnum; method: DecodedEnum; status: DecodedEnum; /** * Machine-readable failure for the current state; branch on this, not `lastError`. * `"unspecified"` when no typed failure applies or the code is newer than this SDK. * `"social_account_already_linked"` is non-retryable for this account: send the * user to the account already linked to that identity instead of restarting. */ errorCode: DecodedEnum; }; declare const StartVerificationInputSchema: v.SchemaWithPipe; readonly handle: v.SchemaWithPipe, v.TransformAction, v.MinLengthAction, v.RegexAction]>; readonly method: v.OptionalSchema, undefined>; }, undefined>, v.StrictObjectSchema<{ readonly provider: v.LiteralSchema<"discord", undefined>; readonly method: v.OptionalSchema, undefined>; }, undefined>], undefined>, v.TransformAction<{ provider: "twitter"; handle: string; method?: "profile" | undefined; } | { provider: "discord"; method?: "channel" | "dm" | undefined; }, { provider: SocialProvider$1.TWITTER | SocialProvider$1.DISCORD; method: SocialVerificationMethod$1; handle?: string | undefined; }>]>; type StartVerificationInput = v.InferInput; declare const SocialProviderInputSchema: v.StrictObjectSchema<{ readonly provider: v.SchemaWithPipe, v.TransformAction<"twitter" | "discord", SocialProvider$1.TWITTER | SocialProvider$1.DISCORD>]>; }, undefined>; type SocialProviderInput = v.InferInput; declare const StartVerificationResponseSchema: v.SchemaWithPipe; readonly expiresAt: v.OptionalSchema; readonly nanos: v.OptionalSchema, 0>; }, undefined>, undefined>; readonly verification: v.OptionalSchema, undefined>; }, undefined>, v.TransformAction<{ challengeCode: string; expiresAt?: { seconds: bigint; nanos: number; } | undefined; verification?: SocialVerification$1 | undefined; }, { challengeCode: string; expiresAt: { seconds: bigint; nanos: number; } | undefined; verification: SocialVerification | undefined; }>]>; type StartVerificationResponse = v.InferOutput; declare const VerificationReadyResponseSchema: v.SchemaWithPipe, undefined>; }, undefined>, v.TransformAction<{ verification?: SocialVerification$1 | undefined; }, { verification: SocialVerification | undefined; }>]>; type VerificationReadyResponse = v.InferOutput; declare const GetVerificationResponseSchema: v.SchemaWithPipe, undefined>; }, undefined>, v.TransformAction<{ verification?: SocialVerification$1 | undefined; }, { verification: SocialVerification | undefined; }>]>; type GetVerificationResponse = v.InferOutput; //#endregion export { GetVerificationResponse, GetVerificationResponseSchema, SocialProvider, SocialProviderInput, SocialProviderInputSchema, SocialProviderSchema, SocialVerification, SocialVerificationErrorCode, SocialVerificationErrorCodeSchema, SocialVerificationMethod, SocialVerificationMethodSchema, SocialVerificationSchema, SocialVerificationStatus, SocialVerificationStatusSchema, StartVerificationInput, StartVerificationInputSchema, StartVerificationResponse, StartVerificationResponseSchema, VerificationReadyResponse, VerificationReadyResponseSchema }; //# sourceMappingURL=social-verification.schemas.d.ts.map