@vivocha/public-types
Advanced tools
Comparing version 1.1.1-gaia.4 to 1.1.1-gaia.5
@@ -71,2 +71,6 @@ import { Encryptable } from './encryptable'; | ||
} | ||
export declare type MessageMetadata = { | ||
can_create?: boolean; | ||
[key: string]: any; | ||
}; | ||
export interface GenericMessage extends VvcRawMessage { | ||
@@ -85,12 +89,13 @@ code: 'message'; | ||
modal?: boolean; | ||
meta?: MessageMetadata; | ||
} | ||
export interface SpeechToTextMessage extends GenericMessage { | ||
export interface SpeechToTextMessage extends TextMessage { | ||
type: 'text'; | ||
body: string; | ||
meta?: any; | ||
meta?: MessageMetadata; | ||
} | ||
export interface TextToSpeechMessage extends GenericMessage { | ||
export interface TextToSpeechMessage extends TextMessage { | ||
type: 'text'; | ||
body: string; | ||
meta?: any; | ||
meta?: MessageMetadata; | ||
} | ||
@@ -198,3 +203,3 @@ export interface TemplateType { | ||
} | ||
export declare type Message = TextMessage | LinkMessage | ActionMessage | IsWritingMessage | AckMessage | MediaChangeMessage | AttachmentMessage | PostbackMessage | LocationMessage | TimePickerMessage | Ai.Request | Ai.Response; | ||
export declare type Message = TextMessage | TextToSpeechMessage | SpeechToTextMessage | LinkMessage | ActionMessage | IsWritingMessage | AckMessage | MediaChangeMessage | AttachmentMessage | PostbackMessage | LocationMessage | TimePickerMessage | Ai.Request | Ai.Response; | ||
export declare type MessageExt = Message | JoinRawMessage | LeaveRawMessage | TransferRawMessage | DataRawMessage | PingRawMessage | EventRawMessage; | ||
@@ -201,0 +206,0 @@ export interface GenericEvent { |
{ | ||
"name": "@vivocha/public-types", | ||
"version": "1.1.1-gaia.4", | ||
"version": "1.1.1-gaia.5", | ||
"description": "Vivocha public types", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "f3e3bb85bd1be13921f1091b1d2d64983dcd957e" | ||
"gitHead": "5816cca1ac5387cd9ee19b0bb227a1ddc938e4ad" | ||
} |
32037
1030