ysyt-agent-sdk 1.0.120 → 1.0.122

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ declare class YSYTAgentSdk {
22
22
  * @param enableBrowserAlert 是否开启浏览器通知
23
23
  * @param logBuiltinEnabled 是否开启日志
24
24
  */
25
- init({ actionNodeParams, enableBrowserAlert, logBuiltinEnabled, browserAlertTime }: InitInfoType): Promise<void>;
25
+ init({ actionNodeParams, enableBrowserAlert, logBuiltinEnabled, browserAlertTime, initialState, initDevice, }: InitInfoType): Promise<void>;
26
26
  on<K extends keyof Events>(event: K, handler: (data: Events[K]) => void): this;
27
27
  off<K extends keyof Events>(event: K, listener: (msg: Events[K]) => void): void;
28
28
  offAll(): void;
@@ -46,6 +46,8 @@ export interface InitInfoType {
46
46
  enableBrowserAlert?: boolean;
47
47
  browserAlertTime?: number;
48
48
  logBuiltinEnabled?: boolean;
49
+ initialState?: AgentStatus.IDLE | AgentStatus.BUSY;
50
+ initDevice?: 1 | 3;
49
51
  actionNodeParams?: {
50
52
  viewHtmlElement?: HTMLElement;
51
53
  rttHTML?: HTMLElement;
@@ -1,5 +1,4 @@
1
1
  import { DeviceType, StateType } from '@/types';
2
- export declare const queryPing: () => Promise<any>;
3
2
  export declare const agentLogin: (params: {
4
3
  agent_no: string;
5
4
  }) => Promise<any>;