import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChatMessage } from "./chatmessage.js"; import { IconConfig } from "./iconconfig.js"; import { ObjectPermissions } from "./objectpermissions.js"; import { Person } from "./person.js"; import { UserRoleSpecification } from "./userrolespecification.js"; /** * A historical representation of a series of chat messages a user had with Glean Assistant. */ export type Chat = { /** * The opaque id of the Chat. */ id?: string | undefined; /** * Server Unix timestamp of the creation time (in seconds since epoch UTC). */ createTime?: number | undefined; createdBy?: Person | undefined; /** * Server Unix timestamp of the update time (in seconds since epoch UTC). */ updateTime?: number | undefined; /** * The name of the Chat. */ name?: string | undefined; /** * The ID of the AI App that this Chat is associated to. */ applicationId?: string | undefined; /** * The display name of the AI App that this Chat is associated to. */ applicationName?: string | undefined; /** * Defines how to render an icon */ icon?: IconConfig | undefined; permissions?: ObjectPermissions | undefined; /** * The chat messages within a Chat. */ messages?: Array | undefined; /** * A list of roles for this Chat. */ roles?: Array | undefined; }; /** @internal */ export declare const Chat$inboundSchema: z.ZodType; export declare function chatFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=chat.d.ts.map