import type { BlipClient } from '../client.ts'; import { type AccessKey, type Account, type ApplicationFlow, type BuilderConfiguration, type BuilderFlow, type BuilderLatestPublication, type BuilderLatestPublications, type Comment, type Contact, type HistoryIndex, type Identity, type PossiblyNode, type Presence, type Publication, type State, type ThreadItem } from '../types/index.ts'; import type { Notification } from '../types/notification.ts'; import { type ODataFilter } from '../utils/odata.ts'; import { type ConsumeOptions, Namespace, type SendCommandOptions } from './namespace.ts'; export declare class AccountNamespace extends Namespace { constructor(blipClient: BlipClient, defaultOptions?: SendCommandOptions); ping(opts?: ConsumeOptions): Promise; getPresence(opts?: ConsumeOptions): Promise; /** If you are initializing a chatbot, it usually is status 'available' with routingRule 'identity' */ setPresence(presence: Omit, opts?: ConsumeOptions): Promise; me(opts?: ConsumeOptions): Promise; getAccount(account: string, opts?: ConsumeOptions): Promise; setAccount(account: Partial> & { password?: string; }, opts?: ConsumeOptions): Promise; getContexts(contact: Identity, opts?: ConsumeOptions): Promise>; /** "fetchall" and "skip" `opts` are not supported for this endpoint, prefer using "take" with a large value */ getContextsWithValues(contact: Identity, opts?: Omit): Promise>; getContext(contact: Identity, key: string, opts?: ConsumeOptions): Promise; setContext(contact: Identity, key: string, value: string, ttlSeconds?: number, opts?: ConsumeOptions): Promise; deleteContext(contact: Identity, key: string, opts?: ConsumeOptions): Promise; getContacts(filter?: ODataFilter, order?: { field: keyof Contact; ascending?: boolean; }, opts?: ConsumeOptions): Promise>; getContactsByIdentity(identities: Array, opts?: ConsumeOptions): Promise>; streamContacts(filter?: ODataFilter, order?: { field: keyof Contact; ascending?: boolean; }, opts?: ConsumeOptions): AsyncIterable; streamContactsInTimeframe(startDate: Date | string, endDate: Date | string, opts?: Omit): AsyncIterable; getContactComments(contact: Identity, opts?: ConsumeOptions): Promise>; addContactComment(contact: Identity, content: string, commenter?: Identity, opts?: ConsumeOptions): Promise; deleteContactComment(contact: Identity, commentId: string, opts?: ConsumeOptions): Promise; getContact(contact: Identity, opts?: ConsumeOptions): Promise; setContact(contact: Contact, opts?: ConsumeOptions): Promise; mergeContact(contact: Partial & Pick, opts?: ConsumeOptions): Promise; deleteContact(contact: Identity, opts?: ConsumeOptions): Promise; getBuckets(opts?: ConsumeOptions): Promise>; getBucket(key: string, opts?: ConsumeOptions): Promise; setBucket(key: string, value: T, ttlSeconds?: number, opts?: ConsumeOptions): Promise; deleteBucket(key: string, opts?: ConsumeOptions): Promise; getCallerConfigurations(opts?: ConsumeOptions): Promise>; getConfigurations(opts?: ConsumeOptions): Promise>; /** * The caller will be the authenticated bot, and the owner can be set on opts.ownerIdentity */ setConfigurations(configuration: Record, opts?: ConsumeOptions): Promise; getThreads(startDate: Date | string, endDate: Date | string, opts?: Omit): Promise<{ ownerIdentity: Identity; identity: Identity; lastMessage: ThreadItem; }[]>; /** * @param query.messageId The message ID to start the thread from * @param query.referenceDate A reference date in ISO 8601 format YYYY-MM-DD to fetch the thread from * @param query.referenceDateDirection The direction to fetch the thread from the reference date (inclusive if after). Can be 'before' or 'after' * @returns The thread items in descending order */ getThread(contact: Identity, query?: { messageId?: string; referenceDate?: string | Date; referenceDateDirection?: 'before' | 'after'; refreshExpiredMedia?: boolean; }, opts?: Omit): Promise>; getNotifications(filter?: { message?: string; }, opts?: ConsumeOptions): Promise>; getTemplateType(opts?: ConsumeOptions): Promise<'master' | 'builder'>; getChildren(opts?: ConsumeOptions): Promise>; getBuilderFlow(state: 'published' | 'working', opts?: ConsumeOptions): Promise | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; })) | undefined; input?: { $cardContent: { document: { id: string; type: "text/plain"; content?: string | undefined; textContent?: string | undefined; }; editable: boolean; editing: boolean; deletable: boolean; position: "right"; }; $invalid: boolean; bypass: boolean; validation?: { rule: "number" | "type" | "text" | "date" | "regex"; error: string; regex?: string | null | undefined; type?: string | null | undefined; } | null | undefined; expiration?: string | null | undefined; variable?: string | null | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; } | undefined; $invalid?: boolean | undefined; }[]; $conditionOutputs: { stateId: string; conditions: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[]; typeOfStateId?: "state" | "variable" | undefined; $id?: string | undefined; $invalid?: boolean | undefined; $connId?: string | undefined; $contentId?: string | undefined; $isDeskOutput?: boolean | undefined; $isDeskCustomOutput?: boolean | undefined; $isDeskDefaultOutput?: boolean | undefined; }[]; $enteringCustomActions: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[]; $leavingCustomActions: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[]; $inputSuggestions: string[]; $defaultOutput: { stateId: string; typeOfStateId?: "state" | "variable" | undefined; $invalid?: boolean | undefined; }; $tags: { id: string; label: string; background: string; canChangeBackground: boolean; }[]; $title: string; $invalidContentActions: boolean; $invalidOutputs: boolean; $invalidCustomActions: boolean; $localCustomActions?: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[] | undefined; isAiGenerated?: boolean | undefined; deskStateVersion?: string | undefined; $afterStateChangedActions?: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[] | undefined; id?: string | undefined; root?: boolean | undefined; $position?: { top: string; left: string; } | undefined; $invalid?: boolean | undefined; $whiteWallIntegration?: unknown; }> | undefined>; getBuilderGlobalActions(state: 'published' | 'working', opts?: ConsumeOptions): Promise<{ $contentActions: { action?: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; })) | undefined; input?: { $cardContent: { document: { id: string; type: "text/plain"; content?: string | undefined; textContent?: string | undefined; }; editable: boolean; editing: boolean; deletable: boolean; position: "right"; }; $invalid: boolean; bypass: boolean; validation?: { rule: "number" | "type" | "text" | "date" | "regex"; error: string; regex?: string | null | undefined; type?: string | null | undefined; } | null | undefined; expiration?: string | null | undefined; variable?: string | null | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; } | undefined; $invalid?: boolean | undefined; }[]; $conditionOutputs: { stateId: string; conditions: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[]; typeOfStateId?: "state" | "variable" | undefined; $id?: string | undefined; $invalid?: boolean | undefined; $connId?: string | undefined; $contentId?: string | undefined; $isDeskOutput?: boolean | undefined; $isDeskCustomOutput?: boolean | undefined; $isDeskDefaultOutput?: boolean | undefined; }[]; $enteringCustomActions: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[]; $leavingCustomActions: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[]; $inputSuggestions: string[]; $defaultOutput: { stateId: string; typeOfStateId?: "state" | "variable" | undefined; $invalid?: boolean | undefined; }; $tags: { id: string; label: string; background: string; canChangeBackground: boolean; }[]; $title: string; $invalidContentActions: boolean; $invalidOutputs: boolean; $invalidCustomActions: boolean; $localCustomActions?: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[] | undefined; isAiGenerated?: boolean | undefined; deskStateVersion?: string | undefined; $afterStateChangedActions?: ({ $id: string; $typeOfContent?: "" | "text" | "select-immediate" | "select" | "media" | "media-audio" | "media-video" | "media-document" | "chat-state" | "web-link" | "raw-content" | undefined; $title?: string | undefined; $invalid?: boolean | undefined; conditions?: { source: "context" | "input"; comparison: "endsWith" | "startsWith" | "equals" | "notEquals" | "contains" | "greaterThan" | "lessThan" | "greaterThanOrEquals" | "lessThanOrEquals" | "matches" | "approximateTo" | "exists" | "notExists"; values: string[]; variable?: string | null | undefined; operator?: "or" | "and" | undefined; }[] | undefined; $cardContent?: { editable: boolean; deletable: boolean; position: "left"; document: { id: string; type: "text/plain" | "application/vnd.lime.media-link+json" | "application/json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json"; content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; textContent?: string | undefined; }; } | null | undefined; continueOnError?: boolean | undefined; } & ({ type: "SendMessage"; settings: { content: string | { state: string; interval?: string | number | undefined; } | { text: string; uri: string; title?: string | null | undefined; target?: "blank" | "self" | "selfCompact" | "selfTall" | null | undefined; } | { text: string; options: string[] | { text: string; }[]; scope?: "immediate" | "persistent" | null | undefined; } | { type: string; uri: string; title?: string | undefined; text?: string | undefined; }; $invalid?: boolean | undefined; type?: "text/plain" | "application/vnd.lime.media-link+json" | "application/vnd.lime.select+json" | "application/vnd.lime.chatstate+json" | "application/vnd.lime.web-link+json" | undefined; id?: string | undefined; metadata?: Record | undefined; }; } | { type: "SendRawMessage"; settings: { rawContent: string; $invalid?: boolean | undefined; type?: "application/json" | undefined; }; } | { type: "TrackEvent"; settings: { category: string; action: string; $invalid?: boolean | undefined; extras?: Record | null | undefined; }; } | { type: "ProcessHttp"; settings: { method: "POST" | "GET" | "PUT" | "DELETE"; uri: string; body: string; responseBodyVariable: string; responseStatusVariable: string; $invalid?: boolean | undefined; headers?: Record | null | undefined; }; } | { type: "MergeContact"; settings: { $invalid?: boolean | undefined; name?: string | null | undefined; email?: string | null | undefined; city?: string | null | undefined; extras?: Record | null | undefined; }; } | { type: "ExecuteScript"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "ExecuteScriptV2"; settings: { source: string; inputVariables: string[]; outputVariable: string; $invalid?: boolean | undefined; function?: "run" | undefined; }; } | { type: "SetVariable"; settings: { variable: string; $invalid?: boolean | undefined; value?: string | number | undefined; expiration?: number | null | undefined; }; } | { type: "ProcessCommand"; settings: { to: string; method: "get" | "set" | "merge" | "delete"; uri: string; variable: string; $invalid?: boolean | undefined; from?: string | undefined; }; } | { type: "ForwardToDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "LeavingFromDesk"; settings: { $invalid?: boolean | undefined; }; } | { type: "Redirect"; settings: { address: string; context: { type: "text/plain"; value: string; }; $invalid?: boolean | undefined; }; }))[] | undefined; id?: string | undefined; root?: boolean | undefined; $position?: { top: string; left: string; } | undefined; $invalid?: boolean | undefined; $whiteWallIntegration?: unknown; } | undefined>; getBuilderConfiguration(state: 'published' | 'working', opts?: ConsumeOptions): Promise; setBuilderFlow(state: 'published' | 'working', value: BuilderFlow, opts?: ConsumeOptions): Promise; setBuilderGlobalActions(state: 'published' | 'working', value: State, opts?: ConsumeOptions): Promise; setBuilderConfiguration(state: 'published' | 'working', value: BuilderConfiguration, opts?: ConsumeOptions): Promise; getBuilderLatestPublications(opts?: ConsumeOptions): Promise; getBuilderLatestPublicationByIndex(index: HistoryIndex, opts?: ConsumeOptions): Promise; setBuilderLatestPublications(publication: Publication, value: BuilderLatestPublication, opts?: ConsumeOptions): Promise; getApplicationPublishedFlowConfiguration(opts?: ConsumeOptions): Promise; setApplicationPublishedFlowConfiguration(value: ApplicationFlow, opts?: ConsumeOptions): Promise; publishBuilderFlow(flowId: string, author: string, flow: BuilderFlow, configuration: BuilderConfiguration, globalActions: State, opts?: ConsumeOptions): Promise; getAccessKeys(opts?: ConsumeOptions): Promise>>; getAccessKey(id: string, opts?: ConsumeOptions): Promise | undefined>; /** * @param key.purpose Optional purpose of the key, can be used to identify * @param key.temporary Indicates if the key must be removed after the first use * @param key.ttl Time to live in milliseconds */ createAccessKey(key?: Partial<{ purpose: string; temporary: boolean; ttl: number; }>, opts?: ConsumeOptions): Promise; deleteAccessKey(id: string, opts?: ConsumeOptions): Promise; emailFromIdentity(possiblyNode: PossiblyNode): string | undefined; } //# sourceMappingURL=account.d.ts.map