UNPKG

@samepage/backend

Version:

Backend utilities for the apis of SamePage integrations

86 lines (85 loc) 2.48 kB
import { z } from "zod"; export declare const zGetAccessTokenPayload: z.ZodObject<{ authorization: z.ZodString; userId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { authorization: string; userId?: string | undefined; }, { authorization: string; userId?: string | undefined; }>; export type GetAccessTokenPayload = z.infer<typeof zGetAccessTokenPayload>; export declare const zGetAccessTokenResponse: z.ZodObject<{ accessToken: z.ZodString; workspace: z.ZodString; notebookUuid: z.ZodString; token: z.ZodString; }, "strip", z.ZodTypeAny, { workspace: string; notebookUuid: string; token: string; accessToken: string; }, { workspace: string; notebookUuid: string; token: string; accessToken: string; }>; export type GetAccessTokenResponse = z.infer<typeof zGetAccessTokenResponse>; export declare const zGetNotebookCredentialsPayload: z.ZodObject<{ email: z.ZodString; app: z.ZodString; workspace: z.ZodString; }, "strip", z.ZodTypeAny, { workspace: string; app: string; email: string; }, { workspace: string; app: string; email: string; }>; export type GetNotebookCredentialsPayload = z.infer<typeof zGetNotebookCredentialsPayload>; export declare const zGetNotebookCredentialsResponse: z.ZodObject<{ uuid: z.ZodString; token: z.ZodString; }, "strip", z.ZodTypeAny, { uuid: string; token: string; }, { uuid: string; token: string; }>; export type GetNotebookCredentialsResponse = z.infer<typeof zGetNotebookCredentialsResponse>; export declare const zOnboardNotebookPayload: z.ZodObject<{ email: z.ZodString; password: z.ZodString; app: z.ZodUnion<[z.ZodString, z.ZodNumber]>; workspace: z.ZodString; label: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { workspace: string; app: string | number; email: string; password: string; label?: string | undefined; }, { workspace: string; app: string | number; email: string; password: string; label?: string | undefined; }>; export type OnboardNotebookPayload = z.infer<typeof zOnboardNotebookPayload>; export declare const zOnboardNotebookResponse: z.ZodObject<{ notebookUuid: z.ZodString; token: z.ZodString; }, "strip", z.ZodTypeAny, { notebookUuid: string; token: string; }, { notebookUuid: string; token: string; }>; export type OnboardNotebookResponse = z.infer<typeof zOnboardNotebookResponse>;