New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vivocha/public-entities

Package Overview
Dependencies
Maintainers
9
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vivocha/public-entities - npm Package Compare versions

Comparing version 5.9.42 to 5.9.43

schemas/postback_message.json

23

dist/bot.d.ts

@@ -0,1 +1,3 @@

import { TextMessage, TemplateMessage, PostbackMessage } from './message';
export declare type BotMessageBody = TextMessage | TemplateMessage | PostbackMessage;
export interface BotAgent {

@@ -10,28 +12,17 @@ (request: BotRequest): Promise<BotResponse>;

}
export interface BotAgentSettings {
type: string;
url?: string;
auth?: {
type: 'basic' | 'bearer';
user?: string;
secret: string;
};
settings: any;
}
export interface BotMessageEngineSettings extends BotAgentSettings {
context?: any;
}
export interface BotMessage {
data?: any;
language?: string;
engine?: BotMessageEngineSettings;
settings?: any;
context?: any;
tempContext?: any;
}
export interface BotRequest extends BotMessage {
event: 'start' | 'continue' | 'end' | string;
message?: string;
message?: BotMessageBody;
}
export interface BotResponse extends BotMessage {
event: 'continue' | 'end';
message?: string[];
messages?: BotMessageBody[];
raw?: any;
}
{
"name": "@vivocha/public-entities",
"version": "5.9.42",
"version": "5.9.43",
"description": "Vivocha public entities and types",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -9,7 +9,13 @@ {

"allOf": [
{ "$ref": "bot_message" }
{
"$ref": "bot_message"
}
],
"definitions": {
"standardEvent": {
"enum": [ "start", "continue", "end" ]
"enum": [
"start",
"continue",
"end"
]
},

@@ -28,10 +34,21 @@ "customEvent": {

"anyOf": [
{ "$ref": "#/definitions/standardEvent" },
{ "$ref": "#/definitions/customEvent" }
{
"$ref": "#/definitions/standardEvent"
},
{
"$ref": "#/definitions/customEvent"
}
]
},
"message": {
"$ref": "#/definitions/message"
"anyOf": [
{
"$ref": "text_message"
},
{
"$ref": "postback_message"
}
]
}
}
}

@@ -9,21 +9,39 @@ {

"allOf": [
{ "$ref": "bot_message" }
{
"$ref": "bot_message"
}
],
"definitions": {
"standardEvent": {
"enum": [ "continue", "end" ]
"enum": [
"continue",
"end"
]
},
"message": {
"description": "Text message to send to the Bot platform",
"type": "string"
"description": "Messages sent by the Bot platform",
"anyOf": [
{
"$ref": "text_message"
},
{
"$ref": "postback_message"
}
]
}
},
"properties": {
"event": { "$ref": "#/definitions/standardEvent" },
"event": {
"$ref": "#/definitions/standardEvent"
},
"message": {
"oneOf": [
{ "$ref": "#/definitions/message" },
{
"$ref": "#/definitions/message"
},
{
"type": "array",
"items": { "$ref": "#/definitions/message" }
"items": {
"$ref": "#/definitions/message"
}
}

@@ -30,0 +48,0 @@ ]

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc