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"; import { Collection, Collection$Outbound } from "./collection.js"; import { Document, Document$Outbound } from "./document.js"; import { Person, Person$Outbound } from "./person.js"; import { Shortcut, Shortcut$Outbound } from "./shortcut.js"; export declare const CollectionItemItemType: { readonly Document: "DOCUMENT"; readonly Text: "TEXT"; readonly Url: "URL"; readonly Collection: "COLLECTION"; }; export type CollectionItemItemType = OpenEnum; export type CollectionItem = { /** * The optional name of the Collection item. */ name?: string | undefined; /** * A helpful description of why this CollectionItem is in the Collection that it's in. */ description?: string | undefined; /** * The emoji icon for this CollectionItem. Only used for Text type items. */ icon?: string | undefined; /** * The Collection ID of the Collection that this CollectionItem belongs in. */ collectionId: number; /** * If this CollectionItem is indexed, the Glean Document ID of that document. */ documentId?: string | undefined; /** * The URL of this CollectionItem. */ url?: string | undefined; /** * Unique identifier for the item within the Collection it belongs to. */ itemId?: string | undefined; createdBy?: Person | undefined; /** * Unix timestamp for when the item was first added (in seconds since epoch UTC). */ createdAt?: Date | undefined; document?: Document | undefined; shortcut?: Shortcut | undefined; collection?: Collection | undefined; itemType: CollectionItemItemType; }; /** @internal */ export declare const CollectionItemItemType$inboundSchema: z.ZodType; /** @internal */ export declare const CollectionItemItemType$outboundSchema: z.ZodType; /** @internal */ export declare const CollectionItem$inboundSchema: z.ZodType; /** @internal */ export type CollectionItem$Outbound = { name?: string | undefined; description?: string | undefined; icon?: string | undefined; collectionId: number; documentId?: string | undefined; url?: string | undefined; itemId?: string | undefined; createdBy?: Person$Outbound | undefined; createdAt?: string | undefined; document?: Document$Outbound | undefined; shortcut?: Shortcut$Outbound | undefined; collection?: Collection$Outbound | undefined; itemType: string; }; /** @internal */ export declare const CollectionItem$outboundSchema: z.ZodType; export declare function collectionItemToJSON(collectionItem: CollectionItem): string; export declare function collectionItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=collectionitem.d.ts.map