@salutejs/client
Advanced tools
Comparing version 1.5.1 to 1.6.0--canary.30.1bbf482a1f84c059d70c35ae71e73af1926d94f2.0
@@ -13,3 +13,3 @@ import { SystemMessageDataType, OriginalMessageType, AppInfo, HistoryMessages } from '../../typings'; | ||
}; | ||
export declare const createClient: (protocol: ReturnType<typeof createProtocol>, provideMeta?: (() => Promise<Partial<Pick<SystemMessageDataType, 'app_info' | 'meta'>>>) | undefined) => { | ||
export declare const createClient: (protocol: ReturnType<typeof createProtocol>, provideMeta?: (() => Promise<SystemMessageDataType['meta']>) | undefined) => { | ||
destroy: () => void; | ||
@@ -19,7 +19,9 @@ createVoiceStream: (callback: ({ messageId, sendVoice, onMessage, }: Pick<BatchableMethods, "messageId" | "sendVoice"> & { | ||
}) => Promise<void>) => Promise<void>; | ||
sendData: (data: Record<string, unknown>, messageName?: string) => number | Long; | ||
sendData: (data: Record<string, unknown>, messageName?: string, meta?: Record<string, unknown> | undefined) => number | Long; | ||
sendMeta: (sendSystemMessage: (data: { | ||
data: Record<string, unknown>; | ||
messageName?: string | undefined; | ||
}, last: boolean) => void) => Promise<void>; | ||
}, last: boolean, params?: { | ||
meta?: Record<string, string> | undefined; | ||
} | undefined) => void, legacyMeta?: boolean) => Promise<void>; | ||
sendOpenAssistant: ({ isFirstSession }?: { | ||
@@ -26,0 +28,0 @@ isFirstSession: boolean; |
@@ -1,5 +0,25 @@ | ||
import { AppInfo, Meta, PermissionType, SystemMessageDataType } from '../typings'; | ||
export declare const getCurrentLocation: () => Promise<Meta['location']>; | ||
/// <reference types="long" /> | ||
import { AppInfo, Meta, PermissionStatus, PermissionType, SystemMessageDataType } from '../typings'; | ||
export declare type Permission = Record<PermissionType, PermissionStatus>; | ||
export declare type CommandResponse = Required<Pick<SystemMessageDataType, 'app_info'>> & { | ||
meta: { | ||
time: Meta['time']; | ||
permissions: Meta['permissions']; | ||
location?: Meta['location']; | ||
}; | ||
server_action: { | ||
action_id: 'command_response'; | ||
request_message_id: number | Long; | ||
command_response: { | ||
request_permissions?: { | ||
permissions: Array<{ | ||
type: PermissionType; | ||
status: PermissionStatus; | ||
}>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
export declare const getTime: () => Meta['time']; | ||
export declare const getAnswerForRequestPermissions: (requestMessageId: number | Long, appInfo: AppInfo, items: PermissionType[]) => Promise<SystemMessageDataType>; | ||
export declare const getAnswerForRequestPermissions: (requestMessageId: number | Long, appInfo: AppInfo, items: PermissionType[]) => Promise<CommandResponse>; | ||
//# sourceMappingURL=meta.d.ts.map |
@@ -265,3 +265,3 @@ /// <reference types="long" /> | ||
}[]; | ||
} | Meta; | ||
} & Meta; | ||
sdk_meta?: SdkMeta; | ||
@@ -268,0 +268,0 @@ }; |
import './typings-56926c74.js'; | ||
export { c as createAssistant } from './assistant-96088a0b.js'; | ||
export { c as createAssistant } from './assistant-c53f1814.js'; |
@@ -478,3 +478,3 @@ import { c as createNanoEvents, _ as __spreadArrays, a as __rest, b as __assign, p as proto } from './typings-56926c74.js'; | ||
// eslint-disable-next-line no-underscore-dangle | ||
window.__ASSISTANT_CLIENT__ = { version: '1.5.1' }; | ||
window.__ASSISTANT_CLIENT__ = { version: '1.6.0--canary.30.1bbf482a1f84c059d70c35ae71e73af1926d94f2.0' }; | ||
} | ||
@@ -481,0 +481,0 @@ |
import { p as proto } from './typings-56926c74.js'; | ||
export { M as MessageNames, V as VpsVersion } from './typings-56926c74.js'; | ||
export { createAssistant } from './createAssistant.js'; | ||
export { c as createAssistantClient, b as createNavigatorAudioProvider } from './assistant-96088a0b.js'; | ||
export { c as createAssistantClient, b as createNavigatorAudioProvider } from './assistant-c53f1814.js'; | ||
import 'react'; | ||
@@ -6,0 +6,0 @@ import 'react-dom'; |
{ | ||
"name": "@salutejs/client", | ||
"version": "1.5.1", | ||
"version": "1.6.0--canary.30.1bbf482a1f84c059d70c35ae71e73af1926d94f2.0", | ||
"description": "Модуль взаимодействия с виртуальным ассистентом", | ||
@@ -5,0 +5,0 @@ "author": "Salute Frontend Team <salute.developers@gmail.com>", |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2367825
41433
3