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

@sberdevices/assistant-client

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sberdevices/assistant-client - npm Package Compare versions

Comparing version 4.20.0--canary.275.93acba31430653fbcdb3646c34fb8fab29cdf935.0 to 4.20.0--canary.276.0b86ed74d732ebec78a690d6b83de6791a456581.0

import { ActionCommand } from '@salutejs/scenario';
import { AppInfo, AssistantAppState, AssistantSmartAppData, AssistantStartSmartSearch, VpsConfiguration, EmotionId, OriginalMessageType, SystemMessageDataType, CharacterId, AssistantBackgroundApp } from '../typings';
import { AppInfo, AssistantAppState, AssistantSmartAppData, AssistantStartSmartSearch, VpsConfiguration, EmotionId, OriginalMessageType, SystemMessageDataType, CharacterId, AssistantBackgroundApp, AssistantCommand } from '../typings';
import { ProtocolError } from './client/protocol';

@@ -55,2 +55,3 @@ export interface AssistantSettings {

actionCommand: (event: ActionCommandEvent) => void;
command: (command: AssistantCommand) => void;
status: (status: OriginalMessageType['status']) => void;

@@ -74,8 +75,2 @@ error: (error: AssistantError) => void;

sendServerAction: (serverAction: unknown, messageName?: string, requestId?: string | undefined, actionApp?: AppInfo) => void;
getChatHistory: (data?: {
userId?: string | undefined;
userChannel?: string | undefined;
device?: import("../proto").IDevice | undefined;
historyParams?: import("../proto").IGetHistoryRequest | undefined;
} | undefined) => void;
sendText: (text: string, shouldSendDisableDubbing?: boolean) => void;

@@ -91,4 +86,4 @@ start: ({ disableGreetings, initPhrase, isFirstSession, }?: {

stopVoice: () => void;
emit: <K extends "error" | "status" | "assistant" | "app" | "vps" | "actionCommand">(event: K, ...args: Parameters<AssistantEvents[K]>) => void;
on: <K_1 extends "error" | "status" | "assistant" | "app" | "vps" | "actionCommand">(event: K_1, cb: AssistantEvents[K_1]) => () => void;
emit: <K extends "command" | "error" | "status" | "assistant" | "app" | "vps" | "actionCommand">(event: K, ...args: Parameters<AssistantEvents[K]>) => void;
on: <K_1 extends "command" | "error" | "status" | "assistant" | "app" | "vps" | "actionCommand">(event: K_1, cb: AssistantEvents[K_1]) => () => void;
changeConfiguration: (obj: Pick<Partial<{

@@ -115,8 +110,2 @@ userId: string;

on: <K_2 extends "incoming" | "outcoming" | "ready" | "error">(event: K_2, cb: import("./client/protocol").ProtocolEvents[K_2]) => () => void;
getChatHistory: (data?: {
userId?: string | undefined;
userChannel?: string | undefined;
device?: import("../proto").IDevice | undefined;
historyParams?: import("../proto").IGetHistoryRequest | undefined;
} | undefined) => void;
getMessageId: () => number;

@@ -123,0 +112,0 @@ sendCancel: (data: import("../proto").ICancel, last?: boolean, messageId?: number) => void;

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

import { IDevice, ISettings, ILegacyDevice, IInitialSettings, ICancel, IMessage, IGetHistoryRequest, IChatHistoryRequest } from '../../proto';
import { IDevice, ISettings, ILegacyDevice, IInitialSettings, ICancel, IMessage } from '../../proto';
import { VpsVersion } from '../../typings';

@@ -43,5 +43,2 @@ export declare type BatchableMethods = {

}) => void;
getChatHistory: (data: Pick<IChatHistoryRequest, "device" | "uuid"> & {
historyParams?: IGetHistoryRequest | undefined;
}, last?: boolean, messageId?: number) => void;
sendCancel: (data: ICancel, last?: boolean, messageId?: number) => void;

@@ -48,0 +45,0 @@ sendLegacyDevice: (data: ILegacyDevice, last?: boolean, messageId?: number) => void;

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

import { IDevice, ILegacyDevice, IMessage, IGetHistoryRequest } from '../../proto';
import { IDevice, ILegacyDevice, IMessage } from '../../proto';
import { VpsConfiguration, OriginalMessageType, VpsVersion } from '../../typings';

@@ -21,8 +21,2 @@ import { createTransport } from './transport';

on: <K extends "incoming" | "outcoming" | "ready" | "error">(event: K, cb: ProtocolEvents[K]) => () => void;
getChatHistory: (data?: {
userId?: string | undefined;
userChannel?: string | undefined;
device?: IDevice | undefined;
historyParams?: IGetHistoryRequest | undefined;
} | undefined) => void;
getMessageId: () => number;

@@ -29,0 +23,0 @@ sendCancel: (data: import("../../proto").ICancel, last?: boolean, messageId?: number) => void;

@@ -231,7 +231,8 @@ /// <reference types="long" />

export declare type ItemType = Partial<BubbleCommand> & Partial<CardCommand> & Partial<ActionCommand> & {
command?: Omit<AssistantSmartAppData, 'sdk_meta'> | Omit<AssistantStartSmartSearch, 'sdk_meta'> | Omit<AssistantSystemCommand, 'sdk_meta'> | Omit<AssistantNavigationCommand, 'sdk_meta'> | {
type: string;
[k: string]: unknown;
};
command?: AssistantCommand;
};
export declare type AssistantCommand = Omit<AssistantSmartAppData, 'sdk_meta'> | Omit<AssistantStartSmartSearch, 'sdk_meta'> | Omit<AssistantSystemCommand, 'sdk_meta'> | Omit<AssistantNavigationCommand, 'sdk_meta'> | {
type: string;
[k: string]: unknown;
};
export declare type EmotionId = 'bespokoistvo' | 'idle' | 'igrivost' | 'laugh' | 'listen' | 'load' | 'neznayu' | 'ok_prinyato' | 'oups' | 'podavleniye_gneva' | 'predvkusheniye' | 'simpatiya' | 'smushchennaya_ulibka' | 'talk' | 'udovolstvie' | 'vinovatiy' | 'zadumalsa' | 'zhdu_otvet';

@@ -426,3 +427,5 @@ export declare type SystemMessageDataType = {

payload: unknown;
} | {
type: 'onBack';
};
//# sourceMappingURL=typings.d.ts.map

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

import './typings-f1e6f92a.js';
export { c as createAssistant } from './assistant-e7266356.js';
import './typings-4aa98dc6.js';
export { c as createAssistant } from './assistant-006fa3bb.js';

@@ -1,4 +0,4 @@

import { p as proto } from './typings-f1e6f92a.js';
export { M as MessageNames, V as VpsVersion } from './typings-f1e6f92a.js';
export { c as createAssistant } from './createAssistant-4232298e.js';
import { p as proto } from './typings-4aa98dc6.js';
export { M as MessageNames, V as VpsVersion } from './typings-4aa98dc6.js';
export { c as createAssistant } from './createAssistant-ae4170ff.js';

@@ -5,0 +5,0 @@

@@ -1,5 +0,5 @@

import { p as proto } from './typings-f1e6f92a.js';
export { M as MessageNames, V as VpsVersion } from './typings-f1e6f92a.js';
export { c as createAssistant } from './createAssistant-4232298e.js';
export { c as createAssistantClient, b as createNavigatorAudioProvider } from './assistant-e7266356.js';
import { p as proto } from './typings-4aa98dc6.js';
export { M as MessageNames, V as VpsVersion } from './typings-4aa98dc6.js';
export { c as createAssistant } from './createAssistant-ae4170ff.js';
export { c as createAssistantClient, b as createNavigatorAudioProvider } from './assistant-006fa3bb.js';
import 'react';

@@ -6,0 +6,0 @@ import 'react-dom';

{
"name": "@sberdevices/assistant-client",
"version": "4.20.0--canary.275.93acba31430653fbcdb3646c34fb8fab29cdf935.0",
"version": "4.20.0--canary.276.0b86ed74d732ebec78a690d6b83de6791a456581.0",
"description": "Модуль взаимодействия с виртуальным ассистентом",

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

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

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

Sorry, the diff of this file is too big to display