@vivocha/public-types
Advanced tools
Comparing version 1.1.1-gaia.3 to 1.1.1-gaia.4
@@ -31,3 +31,3 @@ import { Encryptable } from './encryptable'; | ||
id?: string; | ||
code: 'message' | 'join' | 'leave' | 'transfer' | 'data' | 'ping' | 'event'; | ||
code: 'message' | 'join' | 'leave' | 'transfer' | 'data' | 'ping' | 'event' | 'ai'; | ||
ts?: string | Date; | ||
@@ -47,2 +47,27 @@ api?: boolean; | ||
} | ||
export declare namespace Ai { | ||
interface Base extends VvcRawMessage { | ||
code: 'ai'; | ||
lang?: string; | ||
payload?: string; | ||
} | ||
namespace Request { | ||
interface Start extends Base { | ||
type: 'start'; | ||
config: any; | ||
} | ||
interface End extends Base { | ||
type: 'end'; | ||
} | ||
interface Message extends Base { | ||
type: 'message'; | ||
payload: string; | ||
} | ||
} | ||
type Request = Ai.Request.Start | Ai.Request.End | Ai.Request.Message; | ||
interface Response extends Base { | ||
type: /*'usage' |*/ 'kpi' | 'insight' | 'summary' | 'customerInfo' | 'cannedAnswer' | string; | ||
payload: any; | ||
} | ||
} | ||
export interface GenericMessage extends VvcRawMessage { | ||
@@ -173,3 +198,3 @@ code: 'message'; | ||
} | ||
export declare type Message = TextMessage | LinkMessage | ActionMessage | IsWritingMessage | AckMessage | MediaChangeMessage | AttachmentMessage | PostbackMessage | LocationMessage | TimePickerMessage; | ||
export declare type Message = TextMessage | LinkMessage | ActionMessage | IsWritingMessage | AckMessage | MediaChangeMessage | AttachmentMessage | PostbackMessage | LocationMessage | TimePickerMessage | Ai.Request | Ai.Response; | ||
export declare type MessageExt = Message | JoinRawMessage | LeaveRawMessage | TransferRawMessage | DataRawMessage | PingRawMessage | EventRawMessage; | ||
@@ -176,0 +201,0 @@ export interface GenericEvent { |
{ | ||
"name": "@vivocha/public-types", | ||
"version": "1.1.1-gaia.3", | ||
"version": "1.1.1-gaia.4", | ||
"description": "Vivocha public types", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "1cdd68eac61363a2942e1ae8e14bb862af2e181c" | ||
"gitHead": "f3e3bb85bd1be13921f1091b1d2d64983dcd957e" | ||
} |
31854
1025