Socket
Socket
Sign inDemoInstall

@salutejs/scenario

Package Overview
Dependencies
Maintainers
3
Versions
244
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salutejs/scenario - npm Package Compare versions

Comparing version 0.21.0-canary.257.f5255b560cad6ed19a0aa104a969a33e388b0c41.0 to 0.21.0-canary.258.5ceffd1924ffaea18e6da56dd1489bfb92d5e96c.0

6

dist/lib/createSaluteResponse.js

@@ -205,2 +205,8 @@ "use strict";

},
overrideFrontendEndpoint: function (frontendEndpoint) {
if (message.messageName !== 'ANSWER_TO_USER') {
throw new Error('Wrong message type');
}
message.payload.app_info = __assign(__assign({}, payload.app_info), { frontendEndpoint: frontendEndpoint });
},
get message() {

@@ -207,0 +213,0 @@ return message;

3

dist/lib/types/response.d.ts

@@ -1,2 +0,2 @@

import { SystemMessage, SystemMessageName, SystemMessagePayload, AssistantCommand, BubbleCommand, CardCommand, PolicyRunAppComand } from './systemMessage';
import { SystemMessage, SystemMessageName, SystemMessagePayload, AssistantCommand, BubbleCommand, CardCommand, PolicyRunAppComand, AppInfo } from './systemMessage';
export declare type NLPResponseType = Extract<SystemMessageName, 'ANSWER_TO_USER' | 'POLICY_RUN_APP' | 'NOTHING_FOUND' | 'ERROR'> | 'GET_PROFILE_DATA' | 'CHOOSE_PROFILE_DATA' | 'DETAILED_PROFILE_DATA';

@@ -22,2 +22,3 @@ export interface NLPResponseBody<T, P> extends Pick<SystemMessage, 'sessionId' | 'messageId' | 'uuid'> {

finished: boolean;
app_info?: AppInfo;
}

@@ -24,0 +25,0 @@ /** ANSWER_TO_USER Response */

@@ -89,2 +89,3 @@ import { AppInfo, CharacterId, AppState, Message, SmartAppErrorCommand, EmotionId, Card, Bubble, Button, ASRHints, PolicyRunAppComand } from './systemMessage';

openDeepLink: (deepLink: string) => void;
overrideFrontendEndpoint: (frontendEndpoint: string) => void;
readonly message: NLPResponse;

@@ -91,0 +92,0 @@ }

@@ -52,3 +52,3 @@ /**

export declare type EmotionId = 'igrivost' | 'udovolstvie' | 'podavleniye_gneva' | 'smushchennaya_ulibka' | 'simpatiya' | 'oups' | 'laugh' | 'ok_prinyato' | 'bespokoistvo' | 'predvkusheniye' | 'vinovatiy' | 'zhdu_otvet' | 'zadumalsa' | 'neznayu' | 'nedoumenie' | 'nedovolstvo' | 'nesoglasie' | 'pechal' | 'radost' | 'sochuvstvie' | 'strakh' | 'zainteresovannost';
export declare type Action = TextAction | DeepLinkAction | SendContactPhone | ServerAction | StartSmartSearchAction | CopyTextAction;
export declare type Action = TextAction | DeepLinkAction | SendContactPhone | ServerAction | CopyTextAction;
export declare type Card = ListCard | GalleryCard | GridCard | DiscoveryCard | QRCodeCard | WidgetTitleCard | WidgetGallery | WidgetGalleryWithCategories | WidgetSingleCard | WidgetTwoColumns;

@@ -828,25 +828,2 @@ /**

/**
* Запрос поиска от сценария.
*/
export interface StartSmartSearchAction {
/**
* Тип действия.
*/
type: 'start_smart_search';
/**
* Данные запроса.
*/
start_smart_search: {
/**
* Текст запроса, который прислал сценарий.
*/
query: string;
/**
* Время за которое поиск должен ответить.
*/
timeoutMS?: string;
};
[k: string]: unknown;
}
/**
* Закрытие смартапа.

@@ -853,0 +830,0 @@ */

{
"name": "@salutejs/scenario",
"version": "0.21.0-canary.257.f5255b560cad6ed19a0aa104a969a33e388b0c41.0",
"version": "0.21.0-canary.258.5ceffd1924ffaea18e6da56dd1489bfb92d5e96c.0",
"description": "Tiny helpers to make scenario for Salute family",

@@ -39,3 +39,3 @@ "author": "SberDevices Frontend Team <sberdevices.frontend@gmail.com>",

},
"gitHead": "f5255b560cad6ed19a0aa104a969a33e388b0c41"
"gitHead": "5ceffd1924ffaea18e6da56dd1489bfb92d5e96c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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