import * as z from "zod/v3"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The type of the user generated content (UGC datasource). */ export declare const DocumentSpecUgcType2: { readonly Announcements: "ANNOUNCEMENTS"; readonly Answers: "ANSWERS"; readonly Artifacts: "ARTIFACTS"; readonly Collections: "COLLECTIONS"; readonly Shortcuts: "SHORTCUTS"; readonly Chats: "CHATS"; }; /** * The type of the user generated content (UGC datasource). */ export type DocumentSpecUgcType2 = OpenEnum; export type DocumentSpec4 = { /** * The type of the user generated content (UGC datasource). */ ugcType: DocumentSpecUgcType2; /** * The string id for user generated content. Used for CHATS. */ ugcId: string; /** * The specific type of the user generated content type. */ docType?: string | undefined; }; /** * The type of the user generated content (UGC datasource). */ export declare const DocumentSpecUgcType1: { readonly Announcements: "ANNOUNCEMENTS"; readonly Answers: "ANSWERS"; readonly Collections: "COLLECTIONS"; readonly Shortcuts: "SHORTCUTS"; readonly Chats: "CHATS"; }; /** * The type of the user generated content (UGC datasource). */ export type DocumentSpecUgcType1 = OpenEnum; export type DocumentSpec3 = { /** * The type of the user generated content (UGC datasource). */ ugcType: DocumentSpecUgcType1; /** * The numeric id for user generated content. Used for ANNOUNCEMENTS, ANSWERS, COLLECTIONS, SHORTCUTS. */ contentId: number; /** * The specific type of the user generated content type. */ docType?: string | undefined; }; export type DocumentSpec2 = { /** * The ID of the document. */ id: string; }; export type DocumentSpec1 = { /** * The URL of the document. */ url: string; }; export type DocumentSpecUnion = DocumentSpec3 | DocumentSpec4 | DocumentSpec1 | DocumentSpec2; /** @internal */ export declare const DocumentSpecUgcType2$inboundSchema: z.ZodType; /** @internal */ export declare const DocumentSpecUgcType2$outboundSchema: z.ZodType; /** @internal */ export declare const DocumentSpec4$inboundSchema: z.ZodType; /** @internal */ export type DocumentSpec4$Outbound = { ugcType: string; ugcId: string; docType?: string | undefined; }; /** @internal */ export declare const DocumentSpec4$outboundSchema: z.ZodType; export declare function documentSpec4ToJSON(documentSpec4: DocumentSpec4): string; export declare function documentSpec4FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DocumentSpecUgcType1$inboundSchema: z.ZodType; /** @internal */ export declare const DocumentSpecUgcType1$outboundSchema: z.ZodType; /** @internal */ export declare const DocumentSpec3$inboundSchema: z.ZodType; /** @internal */ export type DocumentSpec3$Outbound = { ugcType: string; contentId: number; docType?: string | undefined; }; /** @internal */ export declare const DocumentSpec3$outboundSchema: z.ZodType; export declare function documentSpec3ToJSON(documentSpec3: DocumentSpec3): string; export declare function documentSpec3FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DocumentSpec2$inboundSchema: z.ZodType; /** @internal */ export type DocumentSpec2$Outbound = { id: string; }; /** @internal */ export declare const DocumentSpec2$outboundSchema: z.ZodType; export declare function documentSpec2ToJSON(documentSpec2: DocumentSpec2): string; export declare function documentSpec2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DocumentSpec1$inboundSchema: z.ZodType; /** @internal */ export type DocumentSpec1$Outbound = { url: string; }; /** @internal */ export declare const DocumentSpec1$outboundSchema: z.ZodType; export declare function documentSpec1ToJSON(documentSpec1: DocumentSpec1): string; export declare function documentSpec1FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DocumentSpecUnion$inboundSchema: z.ZodType; /** @internal */ export type DocumentSpecUnion$Outbound = DocumentSpec3$Outbound | DocumentSpec4$Outbound | DocumentSpec1$Outbound | DocumentSpec2$Outbound; /** @internal */ export declare const DocumentSpecUnion$outboundSchema: z.ZodType; export declare function documentSpecUnionToJSON(documentSpecUnion: DocumentSpecUnion): string; export declare function documentSpecUnionFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=documentspecunion.d.ts.map