UNPKG

@supernovaio/cli

Version:

Supernova.io Command Line Interface

179 lines 5.03 kB
import { z } from "zod"; export declare const TokensSchema: z.ZodObject<{ accessToken: z.ZodString; refreshToken: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { accessToken: string; refreshToken?: string | undefined; }, { accessToken: string; refreshToken?: string | undefined; }>; export declare const StatusTokensSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"Pending">; tokens: z.ZodOptional<z.ZodNever>; }, "strip", z.ZodTypeAny, { status: "Pending"; tokens?: undefined; }, { status: "Pending"; tokens?: undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"Success">; tokens: z.ZodObject<{ accessToken: z.ZodString; refreshToken: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { accessToken: string; refreshToken?: string | undefined; }, { accessToken: string; refreshToken?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Success"; tokens: { accessToken: string; refreshToken?: string | undefined; }; }, { status: "Success"; tokens: { accessToken: string; refreshToken?: string | undefined; }; }>]>; export declare const TokensResponseSchema: z.ZodObject<{ result: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{ status: z.ZodLiteral<"Pending">; tokens: z.ZodOptional<z.ZodNever>; }, "strip", z.ZodTypeAny, { status: "Pending"; tokens?: undefined; }, { status: "Pending"; tokens?: undefined; }>, z.ZodObject<{ status: z.ZodLiteral<"Success">; tokens: z.ZodObject<{ accessToken: z.ZodString; refreshToken: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { accessToken: string; refreshToken?: string | undefined; }, { accessToken: string; refreshToken?: string | undefined; }>; }, "strip", z.ZodTypeAny, { status: "Success"; tokens: { accessToken: string; refreshToken?: string | undefined; }; }, { status: "Success"; tokens: { accessToken: string; refreshToken?: string | undefined; }; }>]>; }, "strip", z.ZodTypeAny, { result: { status: "Pending"; tokens?: undefined; } | { status: "Success"; tokens: { accessToken: string; refreshToken?: string | undefined; }; }; }, { result: { status: "Pending"; tokens?: undefined; } | { status: "Success"; tokens: { accessToken: string; refreshToken?: string | undefined; }; }; }>; export declare const RefreshTokenResponseSchema: z.ZodObject<{ result: z.ZodObject<{ tokens: z.ZodObject<{ accessToken: z.ZodString; refreshToken: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { accessToken: string; refreshToken?: string | undefined; }, { accessToken: string; refreshToken?: string | undefined; }>; }, "strip", z.ZodTypeAny, { tokens: { accessToken: string; refreshToken?: string | undefined; }; }, { tokens: { accessToken: string; refreshToken?: string | undefined; }; }>; }, "strip", z.ZodTypeAny, { result: { tokens: { accessToken: string; refreshToken?: string | undefined; }; }; }, { result: { tokens: { accessToken: string; refreshToken?: string | undefined; }; }; }>; export declare const AuthResponseSchema: z.ZodObject<{ result: z.ZodObject<{ authorizeUrl: z.ZodString; readKey: z.ZodString; }, "strip", z.ZodTypeAny, { authorizeUrl: string; readKey: string; }, { authorizeUrl: string; readKey: string; }>; }, "strip", z.ZodTypeAny, { result: { authorizeUrl: string; readKey: string; }; }, { result: { authorizeUrl: string; readKey: string; }; }>; export declare const EnvTokensSchema: z.ZodRecord<z.ZodEnum<["demo", "development", "local", "production", "staging"]>, z.ZodOptional<z.ZodObject<{ accessToken: z.ZodString; refreshToken: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { accessToken: string; refreshToken?: string | undefined; }, { accessToken: string; refreshToken?: string | undefined; }>>>; export type AuthResponse = z.infer<typeof AuthResponseSchema>; export type Tokens = z.infer<typeof TokensSchema>; export type TokensResponse = z.infer<typeof TokensResponseSchema>; export type RefreshTokenResponse = z.infer<typeof RefreshTokenResponseSchema>; export type EnvTokens = z.infer<typeof EnvTokensSchema>; //# sourceMappingURL=login.d.ts.map