Socket
Socket
Sign inDemoInstall

@salutejs/scenario

Package Overview
Dependencies
8
Maintainers
4
Versions
239
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0-canary.138.8816233485.0 to 1.2.0-canary.138.8859042676.0

dist/lib/types/systemMessageOriginal.d.ts

2

dist/lib/createSaluteRequest.d.ts
import { NLPRequest } from './types/request';
import { SaluteRequest } from './types/salute';
export declare const createSaluteRequest: <Rq extends SaluteRequest<Record<string, string | string[] | undefined>, import("..").AppState, unknown> = SaluteRequest<Record<string, string | string[] | undefined>, import("..").AppState, unknown>>(request: NLPRequest) => Rq;
export declare const createSaluteRequest: <Rq extends SaluteRequest<Record<string, string | string[] | undefined>, import("./types/systemMessage").AppState, unknown> = SaluteRequest<Record<string, string | string[] | undefined>, import("./types/systemMessage").AppState, unknown>>(request: NLPRequest) => Rq;
//# sourceMappingURL=createSaluteRequest.d.ts.map

@@ -13,4 +13,20 @@ import { IntentsDict, SaluteRequest } from './types/salute';

state: (expected: Partial<R['state']>) => (req: R) => any;
selectItem: (expected: AppState) => (req: R) => any;
selectItems: (expected: AppState) => (req: R) => any;
selectItem: (expected: AppState) => (req: R) => {
[k: string]: unknown;
number?: number | undefined;
id?: string | undefined;
title?: string | undefined;
aliases?: string[] | undefined;
server_action?: unknown;
action?: unknown;
} | undefined;
selectItems: (expected: AppState) => (req: R) => {
[k: string]: unknown;
number?: number | undefined;
id?: string | undefined;
title?: string | undefined;
aliases?: string[] | undefined;
server_action?: unknown;
action?: unknown;
}[] | undefined;
action: (expected: string) => (req: R) => boolean;

@@ -17,0 +33,0 @@ regexp: (re: RegExp, { normalized }?: {

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

import { DeprecatedServerAction, ServerAction } from './salute';
import { SystemMessage, SystemMessageName, SystemMessagePayload } from './systemMessage';
import { SystemMessage, SystemMessageName, SystemMessagePayload, ServerAction, DeprecatedServerAction } from './systemMessage';
export declare type NLPRequestType = Extract<SystemMessageName, 'MESSAGE_TO_SKILL' | 'SERVER_ACTION' | 'RUN_APP' | 'CLOSE_APP'> | 'TAKE_PROFILE_DATA';

@@ -4,0 +3,0 @@ export interface NLPRequestBody<T, P> extends Pick<SystemMessage, 'sessionId' | 'messageId' | 'uuid'> {

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

import { AppInfo, CharacterId, AppState, Message, SmartAppErrorCommand, EmotionId, Card, Bubble, Button, ASRHints, PolicyRunAppComand } from './systemMessage';
import { AppInfo, CharacterId, AppState, Message, SmartAppErrorCommand, EmotionId, Card, Bubble, Button, ASRHints, PolicyRunAppComand, ServerAction, DeprecatedServerAction } from './systemMessage';
import { NLPRequest, NLPRequestTPD } from './request';

@@ -39,14 +39,2 @@ import { NLPResponse, NLPResponseATU, NLPResponseCPD, NLPResponseType } from './response';

export declare type SaluteRequestVariable = Record<string, string | string[] | undefined>;
/**
* @deprecated
* Такой формат экшенов устарел, используй ServerAction
*/
export interface DeprecatedServerAction {
payload: unknown;
type: string;
}
export interface ServerAction {
action_id: string;
parameters?: unknown;
}
export interface SaluteRequest<V = SaluteRequestVariable, S = AppState, A extends DeprecatedServerAction | ServerAction | unknown = unknown> {

@@ -53,0 +41,0 @@ readonly character: CharacterId;

"use strict";
/* eslint-disable max-len */
/* eslint-disable no-use-before-define */
/* tslint:disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
// SystemMessagePayload – убрали feature_launcher
// ContentColorSchemeImage – убрали placeholder
// Message – убрали human_normalized_text, human_normalized_text_with_anaphora
// TextAction – убрали should_send_to_backend
// OperatorCardCommand – теперь message_id === number
// FixedContentHeight – убрали required
// AspectRatio – убрали required
// IconAndValueView – убрали required
// RightCellArrayView – убрали log_id
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
// `eva` должна быть заменена на `athena`
__exportStar(require("./systemMessageOriginal"), exports);
{
"name": "@salutejs/scenario",
"version": "1.2.0-canary.138.8816233485.0",
"version": "1.2.0-canary.138.8859042676.0",
"description": "Tiny helpers to make scenario for Salute family",

@@ -40,3 +40,3 @@ "author": "Salute Frontend Team <salute.developers@gmail.com>",

},
"gitHead": "47fcc03082a2e6eeeee53f2a48b9541c654ed9a5"
"gitHead": "e2ff1dceb594e14c9ddc1092caeac6ea861c0768"
}

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

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 too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc