import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { BulkCreateMessagesOptions, BulkCreateMessagesResponse, BulkCreateMessagesApplicationErrors, Message, CreateMessageStreamResponse, CreateMessageStreamApplicationErrors, ListMessagesOptions, ListMessagesResponse, ListMessagesApplicationErrors, MediaAttachmentUploadUrlOptions, MediaAttachmentUploadUrlResponse, MediaAttachmentUploadUrlApplicationErrors, BulkGetByInboxMessagesOptions, BulkGetByInboxMessagesResponse, BulkGetByInboxMessagesApplicationErrors } from './index.typings.js'; export { AccountInfo, ActionEvent, AllocationResultType, AllocationResultTypeWithLiterals, ApplicationError, Asset, Body, BulkActionMetadata, BulkCreateMessagesRequest, BulkGetByInboxMessagesRequest, BulkGetByInboxMessagesResult, CancelCreateInsightsRequest, CancelCreateInsightsResponse, ChatHandler, ChatHandlerWithLiterals, CommunicationsChannelsMessageReceived, ConversationContactForm, CreateMessageStreamRequest, CreateMessageStreamResponseFrameOneOf, CursorPaging, Cursors, DeleteContext, DeleteStatus, DeleteStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, EditorlessAssigned, EditorlessUnassigned, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, GetConversationContactFormRequest, GetConversationContactFormResponse, IdentificationData, IdentificationDataIdOneOf, ItemMetadata, ListMessagesRequest, MediaAttachmentUploadUrlRequest, MessageEnvelope, MessageType, MessageTypeWithLiterals, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, NamespaceWithLiterals, OdeditorAssigned, OdeditorUnassigned, PagingMetadataV2, PicassoAssigned, PicassoUnassigned, RestoreInfo, ScheduleCreateInsightsRequest, ScheduleCreateInsightsResponse, Sender, SenderWithLiterals, ServiceProvisioned, ServiceRemoved, SetupRequest, SetupResponse, SiteCreated, SiteCreatedContext, SiteCreatedContextWithLiterals, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, State, StateWithLiterals, StudioAssigned, StudioTwoAssigned, StudioTwoUnassigned, StudioUnassigned, TeardownRequest, TeardownResponse, UserDomainMediaDisabled, UserDomainMediaEnabled, VisitorMappedToContact, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixelAssigned, WixelUnassigned } from './index.typings.js'; declare function bulkCreateMessages$1(httpClient: HttpClient): BulkCreateMessagesSignature; interface BulkCreateMessagesSignature { /** * Bulk creates messages. * * This method must be called using the [site visitor or site member identity](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities) to identify the site visitor that is creating the messages. * @param - Options to use when creating messages. */ (options?: NonNullablePaths): Promise & { __applicationErrorsType?: BulkCreateMessagesApplicationErrors; }>; } declare function createMessageStream$1(httpClient: HttpClient): CreateMessageStreamSignature; interface CreateMessageStreamSignature { /** * Creates a message and streams the assistant's response back in real time. * * Use this method to send a site visitor's question and receive the assistant's answer as a stream of frames, so you can display the answer as it's generated instead of waiting for the complete response. * * This method must be called using the [site visitor or site member identity](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities) to identify the site visitor sending the message. The conversation is resolved automatically from the visitor's identity, so you don't need to provide a conversation ID. * * Set the message's `messageType` to `QUESTION` and provide the question text in `body.mainText`. * * Each frame in the response stream contains one of the following: * - `inputMessage`: The message you sent, persisted with its server-assigned `id`, `conversationId`, and creation timestamp. Sent as the first frame. * - `answerChunk`: A part of the assistant's answer text, streamed as it's generated. Each chunk is additive, so concatenate the chunks in the order received to build the full answer. Sent zero or more times. * - `answerMessage`: The complete, persisted assistant answer. Sent as the final frame before the stream completes. * * The message and the assistant's answer are persisted regardless of whether the stream completes. If the connection drops or times out, retrieve both by calling [List Messages](https://dev.wix.com/docs/api-reference/business-management/ai-site-chat/messages/list-messages). * * If the conversation has reached its quota, the answer is a message with `messageType` `OUT_OF_QUOTA`. Behavior outside the assistant's active hours depends on the site's widget settings. * @param - Message to send. Set `messageType` to `QUESTION` and provide the question text in `body.mainText`. The `conversationId` and other read-only fields are assigned by the server. */ (message: Message): Promise & { __applicationErrorsType?: CreateMessageStreamApplicationErrors; }>; } declare function listMessages$1(httpClient: HttpClient): ListMessagesSignature; interface ListMessagesSignature { /** * Retrieves a list of messages. * * Up to 100 Messages can be returned per request. * * This method must be called using the [site visitor or site member identity](https://dev.wix.com/docs/api-reference/articles/authentication/about-identities) to identify the site visitor that is retrieving the messages. * @param - Options to use when listing messages. */ (options?: ListMessagesOptions): Promise & { __applicationErrorsType?: ListMessagesApplicationErrors; }>; } declare function mediaAttachmentUploadUrl$1(httpClient: HttpClient): MediaAttachmentUploadUrlSignature; interface MediaAttachmentUploadUrlSignature { /** * Allows site visitor to create upload url to use for uploading a file. * @param - File type e.g. "image/png". */ (mimeType: string, options?: MediaAttachmentUploadUrlOptions): Promise & { __applicationErrorsType?: MediaAttachmentUploadUrlApplicationErrors; }>; } declare function bulkGetByInboxMessages$1(httpClient: HttpClient): BulkGetByInboxMessagesSignature; interface BulkGetByInboxMessagesSignature { /** * Retrieves messages by inbox conversation ID. * * Up to 100 Messages can be returned per request. * @param - conversationId of the conversation in inbox. * * Can be found in [Message.conversationId](https://dev.wix.com/docs/api-reference/crm/communication/inbox/messages/message-object) * @deprecated */ (inboxConversationId: string, options?: BulkGetByInboxMessagesOptions): Promise & { __applicationErrorsType?: BulkGetByInboxMessagesApplicationErrors; }>; } declare const bulkCreateMessages: MaybeContext & typeof bulkCreateMessages$1>; declare const createMessageStream: MaybeContext & typeof createMessageStream$1>; declare const listMessages: MaybeContext & typeof listMessages$1>; declare const mediaAttachmentUploadUrl: MaybeContext & typeof mediaAttachmentUploadUrl$1>; declare const bulkGetByInboxMessages: MaybeContext & typeof bulkGetByInboxMessages$1>; export { BulkCreateMessagesApplicationErrors, BulkCreateMessagesOptions, BulkCreateMessagesResponse, BulkGetByInboxMessagesApplicationErrors, BulkGetByInboxMessagesOptions, BulkGetByInboxMessagesResponse, CreateMessageStreamApplicationErrors, CreateMessageStreamResponse, ListMessagesApplicationErrors, ListMessagesOptions, ListMessagesResponse, MediaAttachmentUploadUrlApplicationErrors, MediaAttachmentUploadUrlOptions, MediaAttachmentUploadUrlResponse, Message, bulkCreateMessages, bulkGetByInboxMessages, createMessageStream, listMessages, mediaAttachmentUploadUrl };