import z from 'zod'; export interface EmailService { sendSourceCreated(request: SendSourceCreatedEmailRequest): Promise; sendSourceImported(request: SendSourceImportedEmailRequest): Promise; sendInviteToOrganization(request: SendInviteToOrganizationEmailRequest): Promise; } /** ****************************************************************************** * Send Source Created Email ******************************************************************************* */ export declare const sendSourceCreatedEmailParams: z.ZodObject<{ toAddress: z.ZodString; source: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; syncId: z.ZodOptional; /** ****************************************************************************** * Send Source Created Email ******************************************************************************* */ title: z.ZodString; description: z.ZodOptional; imageFileId: z.ZodOptional>; type: z.ZodEnum<["YouTube", "RSS", "SiteMap", "Files", "WARC"]>; importUrl: z.ZodOptional; transcribe: z.ZodOptional; regex: z.ZodOptional>; durationSeconds: z.ZodOptional; documentCount: z.ZodNumber; archived: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }>; export declare const sendSourceCreatedEmailRequest: z.ZodObject<{ params: z.ZodObject<{ toAddress: z.ZodString; source: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; syncId: z.ZodOptional; /** ****************************************************************************** * Send Source Created Email ******************************************************************************* */ title: z.ZodString; description: z.ZodOptional; imageFileId: z.ZodOptional>; type: z.ZodEnum<["YouTube", "RSS", "SiteMap", "Files", "WARC"]>; importUrl: z.ZodOptional; transcribe: z.ZodOptional; regex: z.ZodOptional>; durationSeconds: z.ZodOptional; documentCount: z.ZodNumber; archived: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }>; }, "strip", z.ZodTypeAny, { params: { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }; }, { params: { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }; }>; export declare const sendSourceCreatedEmailResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; success: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; success?: boolean | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; success?: boolean | undefined; }>; export type SendSourceCreatedEmailParams = z.infer; export type SendSourceCreatedEmailRequest = z.infer; export type SendSourceCreatedEmailResponse = z.infer; /** ****************************************************************************** * Send Source Imported Email ******************************************************************************* */ export declare const sendSourceImportedEmailParams: z.ZodObject<{ toAddress: z.ZodString; source: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; syncId: z.ZodOptional; /** ****************************************************************************** * Send Source Created Email ******************************************************************************* */ title: z.ZodString; description: z.ZodOptional; imageFileId: z.ZodOptional>; type: z.ZodEnum<["YouTube", "RSS", "SiteMap", "Files", "WARC"]>; importUrl: z.ZodOptional; transcribe: z.ZodOptional; regex: z.ZodOptional>; durationSeconds: z.ZodOptional; documentCount: z.ZodNumber; archived: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }>; export declare const sendSourceImportedEmailRequest: z.ZodObject<{ params: z.ZodObject<{ toAddress: z.ZodString; source: z.ZodObject<{ _id: z.ZodString; organizationId: z.ZodString; syncId: z.ZodOptional; /** ****************************************************************************** * Send Source Created Email ******************************************************************************* */ title: z.ZodString; description: z.ZodOptional; imageFileId: z.ZodOptional>; type: z.ZodEnum<["YouTube", "RSS", "SiteMap", "Files", "WARC"]>; importUrl: z.ZodOptional; transcribe: z.ZodOptional; regex: z.ZodOptional>; durationSeconds: z.ZodOptional; documentCount: z.ZodNumber; archived: z.ZodOptional; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }, { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }>; }, "strip", z.ZodTypeAny, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }, { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }>; }, "strip", z.ZodTypeAny, { params: { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }; }, { params: { source: { type: "YouTube" | "RSS" | "SiteMap" | "Files" | "WARC"; _id: string; organizationId: string; title: string; documentCount: number; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; syncId?: string | undefined; description?: string | undefined; imageFileId?: string | null | undefined; importUrl?: string | undefined; transcribe?: boolean | undefined; regex?: string | null | undefined; durationSeconds?: number | undefined; archived?: boolean | undefined; }; toAddress: string; }; }>; export declare const sendSourceImportedEmailResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; success: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; success?: boolean | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; success?: boolean | undefined; }>; export type SendSourceImportedEmailParams = z.infer; export type SendSourceImportedEmailRequest = z.infer; export type SendSourceImportedEmailResponse = z.infer; /** ****************************************************************************** * Send Invite to Organization ******************************************************************************* */ export declare const sendInviteToOrganizationEmailParams: z.ZodObject<{ toAddress: z.ZodString; inviteeExists: z.ZodBoolean; inviterFirstName: z.ZodString; inviterLastName: z.ZodString; organization: z.ZodObject<{ _id: z.ZodString; stripeCustomerId: z.ZodString; userId: z.ZodString; name: z.ZodString; imageFileId: z.ZodNullable; description: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }, { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }>; }, "strip", z.ZodTypeAny, { toAddress: string; inviteeExists: boolean; inviterFirstName: string; inviterLastName: string; organization: { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }; }, { toAddress: string; inviteeExists: boolean; inviterFirstName: string; inviterLastName: string; organization: { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }; }>; export declare const sendInviteToOrganizationEmailRequest: z.ZodObject<{ params: z.ZodObject<{ toAddress: z.ZodString; inviteeExists: z.ZodBoolean; inviterFirstName: z.ZodString; inviterLastName: z.ZodString; organization: z.ZodObject<{ _id: z.ZodString; stripeCustomerId: z.ZodString; userId: z.ZodString; name: z.ZodString; imageFileId: z.ZodNullable; description: z.ZodNullable; meta: z.ZodObject<{ createdAt: z.ZodOptional; createdBy: z.ZodOptional; lastUpdatedAt: z.ZodOptional; lastUpdatedBy: z.ZodOptional; }, "strip", z.ZodTypeAny, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }, { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }>; }, "strip", z.ZodTypeAny, { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }, { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }>; }, "strip", z.ZodTypeAny, { toAddress: string; inviteeExists: boolean; inviterFirstName: string; inviterLastName: string; organization: { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }; }, { toAddress: string; inviteeExists: boolean; inviterFirstName: string; inviterLastName: string; organization: { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }; }>; }, "strip", z.ZodTypeAny, { params: { toAddress: string; inviteeExists: boolean; inviterFirstName: string; inviterLastName: string; organization: { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }; }; }, { params: { toAddress: string; inviteeExists: boolean; inviterFirstName: string; inviterLastName: string; organization: { _id: string; description: string | null; imageFileId: string | null; meta: { createdAt?: number | undefined; createdBy?: string | undefined; lastUpdatedAt?: number | undefined; lastUpdatedBy?: string | undefined; }; name: string; userId: string; stripeCustomerId: string; }; }; }>; export declare const sendInviteToOrganizationEmailResponse: z.ZodObject<{ status: z.ZodEnum<[string, ...string[]]>; error: z.ZodOptional>; }, "strip", z.ZodTypeAny, { message: string; fields?: Record | undefined; }, { message: string; fields?: Record | undefined; }>>; success: z.ZodOptional; }, "strip", z.ZodTypeAny, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; success?: boolean | undefined; }, { status: string; error?: { message: string; fields?: Record | undefined; } | undefined; success?: boolean | undefined; }>; export type SendInviteToOrganizationEmailParams = z.infer; export type SendInviteToOrganizationEmailRequest = z.infer; export type SendInviteToOrganizationEmailResponse = z.infer;