import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
import { OpenAIContentItem, OpenAIContentItem$Outbound } from "./openaicontentitem.js";
import { OpenAIToolCall, OpenAIToolCall$Outbound } from "./openaitoolcall.js";
/**
 * The unique identifier for the user. This value is sent by the inkeep widget.
 */
export type Id = string | number;
/**
 * The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
 */
export type UserId = string | number;
/**
 * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description.
 */
export type UserProperties = {
    /**
     * The unique identifier for the user. This value is sent by the inkeep widget.
     */
    id?: string | number | null | undefined;
    /**
     * The type of identification for the user. This value is sent by the inkeep widget.
     */
    identificationType?: string | null | undefined;
    /**
     * The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
     */
    userId?: string | number | null | undefined;
    /**
     * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
     */
    supportAgentName?: string | null | undefined;
    /**
     * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
     */
    userType?: string | null | undefined;
    additionalProperties?: {
        [k: string]: any;
    } | undefined;
};
export declare const Visibility: {
    readonly Private: "private";
    readonly Public: "public";
};
export type Visibility = ClosedEnum<typeof Visibility>;
export declare const CreateOpenAIConversationRole: {
    readonly System: "system";
    readonly User: "user";
    readonly Assistant: "assistant";
};
export type CreateOpenAIConversationRole = ClosedEnum<typeof CreateOpenAIConversationRole>;
export type CreateOpenAIConversationContent = string | Array<OpenAIContentItem>;
export declare const CreateOpenAIConversationType1: {
    readonly Documentation: "documentation";
    readonly Site: "site";
    readonly DiscoursePost: "discourse_post";
    readonly GithubIssue: "github_issue";
    readonly GithubDiscussion: "github_discussion";
    readonly StackoverflowQuestion: "stackoverflow_question";
    readonly DiscordForumPost: "discord_forum_post";
    readonly DiscordMessage: "discord_message";
    readonly CustomQuestionAnswer: "custom_question_answer";
};
export type CreateOpenAIConversationType1 = ClosedEnum<typeof CreateOpenAIConversationType1>;
export type CreateOpenAIConversationType = CreateOpenAIConversationType1 | string;
export type CreateOpenAIConversationLinks = {
    label?: string | null | undefined;
    url: string;
    title?: string | null | undefined;
    description?: string | null | undefined;
    type?: CreateOpenAIConversationType1 | string | null | undefined;
    breadcrumbs?: Array<string> | null | undefined;
};
/**
 * The unique identifier for the user. This value is sent by the inkeep widget.
 */
export type CreateOpenAIConversationId = string | number;
/**
 * The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
 */
export type CreateOpenAIConversationUserId = string | number;
/**
 * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description.
 */
export type CreateOpenAIConversationUserProperties = {
    /**
     * The unique identifier for the user. This value is sent by the inkeep widget.
     */
    id?: string | number | null | undefined;
    /**
     * The type of identification for the user. This value is sent by the inkeep widget.
     */
    identificationType?: string | null | undefined;
    /**
     * The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
     */
    userId?: string | number | null | undefined;
    /**
     * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
     */
    supportAgentName?: string | null | undefined;
    /**
     * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal.
     */
    userType?: string | null | undefined;
    additionalProperties?: {
        [k: string]: any;
    } | undefined;
};
export type Messages = {
    id?: string | undefined;
    externalId?: string | null | undefined;
    externalUrl?: string | null | undefined;
    /**
     * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used.
     */
    createdAt?: Date | null | undefined;
    /**
     * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used.
     */
    updatedAt?: Date | null | undefined;
    role: CreateOpenAIConversationRole;
    content: string | Array<OpenAIContentItem>;
    name?: string | null | undefined;
    links?: Array<CreateOpenAIConversationLinks> | null | undefined;
    /**
     * A customizable collection of custom properties or attributes.
     */
    properties?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description.
     */
    userProperties?: CreateOpenAIConversationUserProperties | null | undefined;
    toolCalls?: Array<OpenAIToolCall> | null | undefined;
};
export type CreateOpenAIConversation = {
    id?: string | undefined;
    externalId?: string | null | undefined;
    externalUrl?: string | null | undefined;
    type: "openai";
    supportTicketConversationId?: string | null | undefined;
    /**
     * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used.
     */
    createdAt?: Date | null | undefined;
    /**
     * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used.
     */
    updatedAt?: Date | null | undefined;
    projectId?: string | null | undefined;
    integrationId?: string | null | undefined;
    /**
     * A customizable collection of custom properties or attributes.
     */
    properties?: {
        [k: string]: any;
    } | null | undefined;
    /**
     * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description.
     */
    userProperties?: UserProperties | null | undefined;
    tags?: Array<string> | null | undefined;
    visibility?: Visibility | null | undefined;
    /**
     * The messages in the conversation. Must be at least one message.
     */
    messages: Array<Messages>;
};
/** @internal */
export declare const Id$inboundSchema: z.ZodType<Id, z.ZodTypeDef, unknown>;
/** @internal */
export type Id$Outbound = string | number;
/** @internal */
export declare const Id$outboundSchema: z.ZodType<Id$Outbound, z.ZodTypeDef, Id>;
export declare function idToJSON(id: Id): string;
export declare function idFromJSON(jsonString: string): SafeParseResult<Id, SDKValidationError>;
/** @internal */
export declare const UserId$inboundSchema: z.ZodType<UserId, z.ZodTypeDef, unknown>;
/** @internal */
export type UserId$Outbound = string | number;
/** @internal */
export declare const UserId$outboundSchema: z.ZodType<UserId$Outbound, z.ZodTypeDef, UserId>;
export declare function userIdToJSON(userId: UserId): string;
export declare function userIdFromJSON(jsonString: string): SafeParseResult<UserId, SDKValidationError>;
/** @internal */
export declare const UserProperties$inboundSchema: z.ZodType<UserProperties, z.ZodTypeDef, unknown>;
/** @internal */
export type UserProperties$Outbound = {
    id?: string | number | null | undefined;
    identificationType?: string | null | undefined;
    userId?: string | number | null | undefined;
    supportAgentName?: string | null | undefined;
    userType?: string | null | undefined;
    [additionalProperties: string]: unknown;
};
/** @internal */
export declare const UserProperties$outboundSchema: z.ZodType<UserProperties$Outbound, z.ZodTypeDef, UserProperties>;
export declare function userPropertiesToJSON(userProperties: UserProperties): string;
export declare function userPropertiesFromJSON(jsonString: string): SafeParseResult<UserProperties, SDKValidationError>;
/** @internal */
export declare const Visibility$inboundSchema: z.ZodNativeEnum<typeof Visibility>;
/** @internal */
export declare const Visibility$outboundSchema: z.ZodNativeEnum<typeof Visibility>;
/** @internal */
export declare const CreateOpenAIConversationRole$inboundSchema: z.ZodNativeEnum<typeof CreateOpenAIConversationRole>;
/** @internal */
export declare const CreateOpenAIConversationRole$outboundSchema: z.ZodNativeEnum<typeof CreateOpenAIConversationRole>;
/** @internal */
export declare const CreateOpenAIConversationContent$inboundSchema: z.ZodType<CreateOpenAIConversationContent, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateOpenAIConversationContent$Outbound = string | Array<OpenAIContentItem$Outbound>;
/** @internal */
export declare const CreateOpenAIConversationContent$outboundSchema: z.ZodType<CreateOpenAIConversationContent$Outbound, z.ZodTypeDef, CreateOpenAIConversationContent>;
export declare function createOpenAIConversationContentToJSON(createOpenAIConversationContent: CreateOpenAIConversationContent): string;
export declare function createOpenAIConversationContentFromJSON(jsonString: string): SafeParseResult<CreateOpenAIConversationContent, SDKValidationError>;
/** @internal */
export declare const CreateOpenAIConversationType1$inboundSchema: z.ZodNativeEnum<typeof CreateOpenAIConversationType1>;
/** @internal */
export declare const CreateOpenAIConversationType1$outboundSchema: z.ZodNativeEnum<typeof CreateOpenAIConversationType1>;
/** @internal */
export declare const CreateOpenAIConversationType$inboundSchema: z.ZodType<CreateOpenAIConversationType, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateOpenAIConversationType$Outbound = string | string;
/** @internal */
export declare const CreateOpenAIConversationType$outboundSchema: z.ZodType<CreateOpenAIConversationType$Outbound, z.ZodTypeDef, CreateOpenAIConversationType>;
export declare function createOpenAIConversationTypeToJSON(createOpenAIConversationType: CreateOpenAIConversationType): string;
export declare function createOpenAIConversationTypeFromJSON(jsonString: string): SafeParseResult<CreateOpenAIConversationType, SDKValidationError>;
/** @internal */
export declare const CreateOpenAIConversationLinks$inboundSchema: z.ZodType<CreateOpenAIConversationLinks, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateOpenAIConversationLinks$Outbound = {
    label?: string | null | undefined;
    url: string;
    title?: string | null | undefined;
    description?: string | null | undefined;
    type?: string | string | null | undefined;
    breadcrumbs?: Array<string> | null | undefined;
};
/** @internal */
export declare const CreateOpenAIConversationLinks$outboundSchema: z.ZodType<CreateOpenAIConversationLinks$Outbound, z.ZodTypeDef, CreateOpenAIConversationLinks>;
export declare function createOpenAIConversationLinksToJSON(createOpenAIConversationLinks: CreateOpenAIConversationLinks): string;
export declare function createOpenAIConversationLinksFromJSON(jsonString: string): SafeParseResult<CreateOpenAIConversationLinks, SDKValidationError>;
/** @internal */
export declare const CreateOpenAIConversationId$inboundSchema: z.ZodType<CreateOpenAIConversationId, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateOpenAIConversationId$Outbound = string | number;
/** @internal */
export declare const CreateOpenAIConversationId$outboundSchema: z.ZodType<CreateOpenAIConversationId$Outbound, z.ZodTypeDef, CreateOpenAIConversationId>;
export declare function createOpenAIConversationIdToJSON(createOpenAIConversationId: CreateOpenAIConversationId): string;
export declare function createOpenAIConversationIdFromJSON(jsonString: string): SafeParseResult<CreateOpenAIConversationId, SDKValidationError>;
/** @internal */
export declare const CreateOpenAIConversationUserId$inboundSchema: z.ZodType<CreateOpenAIConversationUserId, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateOpenAIConversationUserId$Outbound = string | number;
/** @internal */
export declare const CreateOpenAIConversationUserId$outboundSchema: z.ZodType<CreateOpenAIConversationUserId$Outbound, z.ZodTypeDef, CreateOpenAIConversationUserId>;
export declare function createOpenAIConversationUserIdToJSON(createOpenAIConversationUserId: CreateOpenAIConversationUserId): string;
export declare function createOpenAIConversationUserIdFromJSON(jsonString: string): SafeParseResult<CreateOpenAIConversationUserId, SDKValidationError>;
/** @internal */
export declare const CreateOpenAIConversationUserProperties$inboundSchema: z.ZodType<CreateOpenAIConversationUserProperties, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateOpenAIConversationUserProperties$Outbound = {
    id?: string | number | null | undefined;
    identificationType?: string | null | undefined;
    userId?: string | number | null | undefined;
    supportAgentName?: string | null | undefined;
    userType?: string | null | undefined;
    [additionalProperties: string]: unknown;
};
/** @internal */
export declare const CreateOpenAIConversationUserProperties$outboundSchema: z.ZodType<CreateOpenAIConversationUserProperties$Outbound, z.ZodTypeDef, CreateOpenAIConversationUserProperties>;
export declare function createOpenAIConversationUserPropertiesToJSON(createOpenAIConversationUserProperties: CreateOpenAIConversationUserProperties): string;
export declare function createOpenAIConversationUserPropertiesFromJSON(jsonString: string): SafeParseResult<CreateOpenAIConversationUserProperties, SDKValidationError>;
/** @internal */
export declare const Messages$inboundSchema: z.ZodType<Messages, z.ZodTypeDef, unknown>;
/** @internal */
export type Messages$Outbound = {
    id?: string | undefined;
    externalId?: string | null | undefined;
    externalUrl?: string | null | undefined;
    createdAt?: string | null | undefined;
    updatedAt?: string | null | undefined;
    role: string;
    content: string | Array<OpenAIContentItem$Outbound>;
    name?: string | null | undefined;
    links?: Array<CreateOpenAIConversationLinks$Outbound> | null | undefined;
    properties?: {
        [k: string]: any;
    } | null | undefined;
    userProperties?: CreateOpenAIConversationUserProperties$Outbound | null | undefined;
    tool_calls?: Array<OpenAIToolCall$Outbound> | null | undefined;
};
/** @internal */
export declare const Messages$outboundSchema: z.ZodType<Messages$Outbound, z.ZodTypeDef, Messages>;
export declare function messagesToJSON(messages: Messages): string;
export declare function messagesFromJSON(jsonString: string): SafeParseResult<Messages, SDKValidationError>;
/** @internal */
export declare const CreateOpenAIConversation$inboundSchema: z.ZodType<CreateOpenAIConversation, z.ZodTypeDef, unknown>;
/** @internal */
export type CreateOpenAIConversation$Outbound = {
    id?: string | undefined;
    externalId?: string | null | undefined;
    externalUrl?: string | null | undefined;
    type: "openai";
    supportTicketConversationId?: string | null | undefined;
    createdAt?: string | null | undefined;
    updatedAt?: string | null | undefined;
    projectId?: string | null | undefined;
    integrationId?: string | null | undefined;
    properties?: {
        [k: string]: any;
    } | null | undefined;
    userProperties?: UserProperties$Outbound | null | undefined;
    tags?: Array<string> | null | undefined;
    visibility?: string | null | undefined;
    messages: Array<Messages$Outbound>;
};
/** @internal */
export declare const CreateOpenAIConversation$outboundSchema: z.ZodType<CreateOpenAIConversation$Outbound, z.ZodTypeDef, CreateOpenAIConversation>;
export declare function createOpenAIConversationToJSON(createOpenAIConversation: CreateOpenAIConversation): string;
export declare function createOpenAIConversationFromJSON(jsonString: string): SafeParseResult<CreateOpenAIConversation, SDKValidationError>;
//# sourceMappingURL=createopenaiconversation.d.ts.map