@lazycatcloud/sdk 0.1.489 → 0.1.490
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.
- package/dist/common/apk_shell.d.ts +126 -0
- package/dist/common/box.d.ts +2061 -0
- package/dist/common/browseronly.d.ts +159 -0
- package/dist/common/end_device.d.ts +358 -0
- package/dist/common/file_handler.d.ts +3398 -0
- package/dist/common/filetrans.d.ts +8541 -0
- package/dist/common/gateway.d.ts +249 -0
- package/dist/common/iscsi.d.ts +1841 -0
- package/dist/common/media_meta.d.ts +342 -0
- package/dist/common/message.d.ts +1435 -0
- package/dist/common/peripheral_device.d.ts +1768 -0
- package/dist/common/security_context.d.ts +241 -0
- package/dist/common/users.d.ts +367 -0
- package/dist/dlna/dlna.d.ts +344 -0
- package/dist/extentions/app_common.d.ts +130 -0
- package/dist/extentions/base.d.ts +136 -0
- package/dist/extentions/client_authorization.d.ts +19 -0
- package/dist/extentions/index.d.ts +24 -0
- package/dist/extentions/mediasession/definitions.d.ts +54 -0
- package/dist/extentions/mediasession/index.d.ts +8 -0
- package/dist/extentions/mediasession/web.d.ts +7 -0
- package/dist/extentions/safe_app.d.ts +35 -0
- package/dist/extentions/unsafe_app.d.ts +4 -0
- package/dist/extentions/vibrate_type.d.ts +10 -0
- package/dist/extentions/webview-bridge.d.ts +1 -0
- package/dist/google/protobuf/empty.d.ts +20 -0
- package/dist/google/protobuf/timestamp.d.ts +274 -0
- package/dist/grpcweb.d.ts +27 -0
- package/dist/index.d.ts +87 -0
- package/dist/localdevice/ble.d.ts +566 -0
- package/dist/localdevice/client.d.ts +218 -0
- package/dist/localdevice/cloud-driver.d.ts +152 -0
- package/dist/localdevice/config.d.ts +150 -0
- package/dist/localdevice/contacts.d.ts +556 -0
- package/dist/localdevice/device.d.ts +86 -0
- package/dist/localdevice/dialog.d.ts +239 -0
- package/dist/localdevice/local-launch.d.ts +303 -0
- package/dist/localdevice/network.d.ts +84 -0
- package/dist/localdevice/oneway-sync.d.ts +274 -0
- package/dist/localdevice/permission.d.ts +233 -0
- package/dist/localdevice/photo.d.ts +1408 -0
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/localdevice/remote-control.d.ts +1941 -0
- package/dist/localdevice/remote-input-method.d.ts +128 -0
- package/dist/package.json +1 -1
- package/dist/sys/btled.d.ts +197 -0
- package/dist/sys/btrfs.d.ts +642 -0
- package/dist/sys/devopt.d.ts +101 -0
- package/dist/sys/dirmon.d.ts +136 -0
- package/dist/sys/event.d.ts +143 -0
- package/dist/sys/hal.d.ts +1021 -0
- package/dist/sys/ingress.d.ts +347 -0
- package/dist/sys/network_manager.d.ts +1179 -0
- package/dist/sys/package_manager.d.ts +25666 -0
- package/dist/sys/stats/cgroup_metrics.d.ts +22045 -0
- package/dist/sys/tvos.d.ts +490 -0
- package/dist/sys/version.d.ts +65 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Empty } from "../google/protobuf/empty";
|
|
5
|
+
export interface QuestionRequest {
|
|
6
|
+
title: string;
|
|
7
|
+
text: string;
|
|
8
|
+
defaultCancel: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface QuestionResult {
|
|
11
|
+
yes: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface MessageBoxRequest {
|
|
14
|
+
title: string;
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
17
|
+
export interface PasswordRequest {
|
|
18
|
+
title: string;
|
|
19
|
+
text: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PasswordResult {
|
|
22
|
+
password: string;
|
|
23
|
+
ok: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface OpenFileSeletorRequest {
|
|
26
|
+
/** 选择类型 */
|
|
27
|
+
type: OpenFileSeletorRequest_SelectType;
|
|
28
|
+
/** 是否多选(多选在SelectType 为Dir时无效) */
|
|
29
|
+
isSingle: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* 文件后缀过滤器
|
|
32
|
+
* 使用2种类型
|
|
33
|
+
* 第一种 jpb,png,mp3,指定文件的后缀名,使用,分割
|
|
34
|
+
* 支持的大类型有必须 image/* , 或者image/*,audio/*,video/*,document/*, 四种大类可以写在一起,也可以分开写,使用,分割。 如何该字段为空,则不过滤
|
|
35
|
+
*/
|
|
36
|
+
filter: string;
|
|
37
|
+
}
|
|
38
|
+
export declare enum OpenFileSeletorRequest_SelectType {
|
|
39
|
+
Dir = 0,
|
|
40
|
+
File = 1,
|
|
41
|
+
UNRECOGNIZED = -1
|
|
42
|
+
}
|
|
43
|
+
export declare function openFileSeletorRequest_SelectTypeFromJSON(object: any): OpenFileSeletorRequest_SelectType;
|
|
44
|
+
export declare function openFileSeletorRequest_SelectTypeToJSON(object: OpenFileSeletorRequest_SelectType): string;
|
|
45
|
+
export interface OpenFileSeletorResult {
|
|
46
|
+
/** 文件或者目录的路径, 如果是文件就是文件的全路径 比如 /home/lnks/1.jpg ,如果是目录就是目录的全路径,并且末尾以/结尾, 比如/home/lnks/ */
|
|
47
|
+
path: string[];
|
|
48
|
+
}
|
|
49
|
+
export declare const QuestionRequest: {
|
|
50
|
+
encode(message: QuestionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuestionRequest;
|
|
52
|
+
fromJSON(object: any): QuestionRequest;
|
|
53
|
+
toJSON(message: QuestionRequest): unknown;
|
|
54
|
+
create<I extends {
|
|
55
|
+
title?: string;
|
|
56
|
+
text?: string;
|
|
57
|
+
defaultCancel?: boolean;
|
|
58
|
+
} & {
|
|
59
|
+
title?: string;
|
|
60
|
+
text?: string;
|
|
61
|
+
defaultCancel?: boolean;
|
|
62
|
+
} & { [K in Exclude<keyof I, keyof QuestionRequest>]: never; }>(base?: I): QuestionRequest;
|
|
63
|
+
fromPartial<I_1 extends {
|
|
64
|
+
title?: string;
|
|
65
|
+
text?: string;
|
|
66
|
+
defaultCancel?: boolean;
|
|
67
|
+
} & {
|
|
68
|
+
title?: string;
|
|
69
|
+
text?: string;
|
|
70
|
+
defaultCancel?: boolean;
|
|
71
|
+
} & { [K_1 in Exclude<keyof I_1, keyof QuestionRequest>]: never; }>(object: I_1): QuestionRequest;
|
|
72
|
+
};
|
|
73
|
+
export declare const QuestionResult: {
|
|
74
|
+
encode(message: QuestionResult, writer?: _m0.Writer): _m0.Writer;
|
|
75
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): QuestionResult;
|
|
76
|
+
fromJSON(object: any): QuestionResult;
|
|
77
|
+
toJSON(message: QuestionResult): unknown;
|
|
78
|
+
create<I extends {
|
|
79
|
+
yes?: boolean;
|
|
80
|
+
} & {
|
|
81
|
+
yes?: boolean;
|
|
82
|
+
} & { [K in Exclude<keyof I, "yes">]: never; }>(base?: I): QuestionResult;
|
|
83
|
+
fromPartial<I_1 extends {
|
|
84
|
+
yes?: boolean;
|
|
85
|
+
} & {
|
|
86
|
+
yes?: boolean;
|
|
87
|
+
} & { [K_1 in Exclude<keyof I_1, "yes">]: never; }>(object: I_1): QuestionResult;
|
|
88
|
+
};
|
|
89
|
+
export declare const MessageBoxRequest: {
|
|
90
|
+
encode(message: MessageBoxRequest, writer?: _m0.Writer): _m0.Writer;
|
|
91
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MessageBoxRequest;
|
|
92
|
+
fromJSON(object: any): MessageBoxRequest;
|
|
93
|
+
toJSON(message: MessageBoxRequest): unknown;
|
|
94
|
+
create<I extends {
|
|
95
|
+
title?: string;
|
|
96
|
+
text?: string;
|
|
97
|
+
} & {
|
|
98
|
+
title?: string;
|
|
99
|
+
text?: string;
|
|
100
|
+
} & { [K in Exclude<keyof I, keyof MessageBoxRequest>]: never; }>(base?: I): MessageBoxRequest;
|
|
101
|
+
fromPartial<I_1 extends {
|
|
102
|
+
title?: string;
|
|
103
|
+
text?: string;
|
|
104
|
+
} & {
|
|
105
|
+
title?: string;
|
|
106
|
+
text?: string;
|
|
107
|
+
} & { [K_1 in Exclude<keyof I_1, keyof MessageBoxRequest>]: never; }>(object: I_1): MessageBoxRequest;
|
|
108
|
+
};
|
|
109
|
+
export declare const PasswordRequest: {
|
|
110
|
+
encode(message: PasswordRequest, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PasswordRequest;
|
|
112
|
+
fromJSON(object: any): PasswordRequest;
|
|
113
|
+
toJSON(message: PasswordRequest): unknown;
|
|
114
|
+
create<I extends {
|
|
115
|
+
title?: string;
|
|
116
|
+
text?: string;
|
|
117
|
+
} & {
|
|
118
|
+
title?: string;
|
|
119
|
+
text?: string;
|
|
120
|
+
} & { [K in Exclude<keyof I, keyof PasswordRequest>]: never; }>(base?: I): PasswordRequest;
|
|
121
|
+
fromPartial<I_1 extends {
|
|
122
|
+
title?: string;
|
|
123
|
+
text?: string;
|
|
124
|
+
} & {
|
|
125
|
+
title?: string;
|
|
126
|
+
text?: string;
|
|
127
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PasswordRequest>]: never; }>(object: I_1): PasswordRequest;
|
|
128
|
+
};
|
|
129
|
+
export declare const PasswordResult: {
|
|
130
|
+
encode(message: PasswordResult, writer?: _m0.Writer): _m0.Writer;
|
|
131
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PasswordResult;
|
|
132
|
+
fromJSON(object: any): PasswordResult;
|
|
133
|
+
toJSON(message: PasswordResult): unknown;
|
|
134
|
+
create<I extends {
|
|
135
|
+
password?: string;
|
|
136
|
+
ok?: boolean;
|
|
137
|
+
} & {
|
|
138
|
+
password?: string;
|
|
139
|
+
ok?: boolean;
|
|
140
|
+
} & { [K in Exclude<keyof I, keyof PasswordResult>]: never; }>(base?: I): PasswordResult;
|
|
141
|
+
fromPartial<I_1 extends {
|
|
142
|
+
password?: string;
|
|
143
|
+
ok?: boolean;
|
|
144
|
+
} & {
|
|
145
|
+
password?: string;
|
|
146
|
+
ok?: boolean;
|
|
147
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PasswordResult>]: never; }>(object: I_1): PasswordResult;
|
|
148
|
+
};
|
|
149
|
+
export declare const OpenFileSeletorRequest: {
|
|
150
|
+
encode(message: OpenFileSeletorRequest, writer?: _m0.Writer): _m0.Writer;
|
|
151
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenFileSeletorRequest;
|
|
152
|
+
fromJSON(object: any): OpenFileSeletorRequest;
|
|
153
|
+
toJSON(message: OpenFileSeletorRequest): unknown;
|
|
154
|
+
create<I extends {
|
|
155
|
+
type?: OpenFileSeletorRequest_SelectType;
|
|
156
|
+
isSingle?: boolean;
|
|
157
|
+
filter?: string;
|
|
158
|
+
} & {
|
|
159
|
+
type?: OpenFileSeletorRequest_SelectType;
|
|
160
|
+
isSingle?: boolean;
|
|
161
|
+
filter?: string;
|
|
162
|
+
} & { [K in Exclude<keyof I, keyof OpenFileSeletorRequest>]: never; }>(base?: I): OpenFileSeletorRequest;
|
|
163
|
+
fromPartial<I_1 extends {
|
|
164
|
+
type?: OpenFileSeletorRequest_SelectType;
|
|
165
|
+
isSingle?: boolean;
|
|
166
|
+
filter?: string;
|
|
167
|
+
} & {
|
|
168
|
+
type?: OpenFileSeletorRequest_SelectType;
|
|
169
|
+
isSingle?: boolean;
|
|
170
|
+
filter?: string;
|
|
171
|
+
} & { [K_1 in Exclude<keyof I_1, keyof OpenFileSeletorRequest>]: never; }>(object: I_1): OpenFileSeletorRequest;
|
|
172
|
+
};
|
|
173
|
+
export declare const OpenFileSeletorResult: {
|
|
174
|
+
encode(message: OpenFileSeletorResult, writer?: _m0.Writer): _m0.Writer;
|
|
175
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenFileSeletorResult;
|
|
176
|
+
fromJSON(object: any): OpenFileSeletorResult;
|
|
177
|
+
toJSON(message: OpenFileSeletorResult): unknown;
|
|
178
|
+
create<I extends {
|
|
179
|
+
path?: string[];
|
|
180
|
+
} & {
|
|
181
|
+
path?: string[] & string[] & { [K in Exclude<keyof I["path"], keyof string[]>]: never; };
|
|
182
|
+
} & { [K_1 in Exclude<keyof I, "path">]: never; }>(base?: I): OpenFileSeletorResult;
|
|
183
|
+
fromPartial<I_1 extends {
|
|
184
|
+
path?: string[];
|
|
185
|
+
} & {
|
|
186
|
+
path?: string[] & string[] & { [K_2 in Exclude<keyof I_1["path"], keyof string[]>]: never; };
|
|
187
|
+
} & { [K_3 in Exclude<keyof I_1, "path">]: never; }>(object: I_1): OpenFileSeletorResult;
|
|
188
|
+
};
|
|
189
|
+
export interface DialogManager {
|
|
190
|
+
Question(request: DeepPartial<QuestionRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<QuestionResult>;
|
|
191
|
+
MessageBox(request: DeepPartial<MessageBoxRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
192
|
+
Password(request: DeepPartial<PasswordRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PasswordResult>;
|
|
193
|
+
OpenFileSeletor(request: DeepPartial<OpenFileSeletorRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenFileSeletorResult>;
|
|
194
|
+
}
|
|
195
|
+
export declare class DialogManagerClientImpl implements DialogManager {
|
|
196
|
+
private readonly rpc;
|
|
197
|
+
constructor(rpc: Rpc);
|
|
198
|
+
Question(request: DeepPartial<QuestionRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<QuestionResult>;
|
|
199
|
+
MessageBox(request: DeepPartial<MessageBoxRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
200
|
+
Password(request: DeepPartial<PasswordRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PasswordResult>;
|
|
201
|
+
OpenFileSeletor(request: DeepPartial<OpenFileSeletorRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenFileSeletorResult>;
|
|
202
|
+
}
|
|
203
|
+
export declare const DialogManagerDesc: {
|
|
204
|
+
serviceName: string;
|
|
205
|
+
};
|
|
206
|
+
export declare const DialogManagerQuestionDesc: UnaryMethodDefinitionish;
|
|
207
|
+
export declare const DialogManagerMessageBoxDesc: UnaryMethodDefinitionish;
|
|
208
|
+
export declare const DialogManagerPasswordDesc: UnaryMethodDefinitionish;
|
|
209
|
+
export declare const DialogManagerOpenFileSeletorDesc: UnaryMethodDefinitionish;
|
|
210
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
211
|
+
requestStream: any;
|
|
212
|
+
responseStream: any;
|
|
213
|
+
}
|
|
214
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
215
|
+
interface Rpc {
|
|
216
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
217
|
+
}
|
|
218
|
+
export declare class GrpcWebImpl {
|
|
219
|
+
private host;
|
|
220
|
+
private options;
|
|
221
|
+
constructor(host: string, options: {
|
|
222
|
+
transport?: grpc.TransportFactory;
|
|
223
|
+
debug?: boolean;
|
|
224
|
+
metadata?: grpc.Metadata;
|
|
225
|
+
upStreamRetryCodes?: number[];
|
|
226
|
+
});
|
|
227
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
228
|
+
}
|
|
229
|
+
declare const tsProtoGlobalThis: any;
|
|
230
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
231
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
232
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
233
|
+
} : Partial<T>;
|
|
234
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
235
|
+
code: grpc.Code;
|
|
236
|
+
metadata: grpc.Metadata;
|
|
237
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
238
|
+
}
|
|
239
|
+
export {};
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export interface PinAppRequest {
|
|
5
|
+
url: string;
|
|
6
|
+
appName: string;
|
|
7
|
+
/** icon地址允许是http类型或者base64类型,如果为空将尝试获取网站的favicon.ico */
|
|
8
|
+
iconUrl: string;
|
|
9
|
+
}
|
|
10
|
+
export interface PinAppReply {
|
|
11
|
+
}
|
|
12
|
+
export interface UnPinAppRequest {
|
|
13
|
+
url: string;
|
|
14
|
+
}
|
|
15
|
+
export interface UnPinAppReply {
|
|
16
|
+
}
|
|
17
|
+
export interface OpenAppRequest {
|
|
18
|
+
url: string;
|
|
19
|
+
isFullScreen: boolean;
|
|
20
|
+
appid: string;
|
|
21
|
+
version: string;
|
|
22
|
+
title: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
/**
|
|
25
|
+
* 当已经存在当前地址的窗口的时候,是否要求使用该地址强制打开。
|
|
26
|
+
* 使用场景,比如播放器存在已经存在,这个时候需要使用过新的链接打开,然后覆盖上一次的播放界面,然后指定forceOpen=true即可.
|
|
27
|
+
*/
|
|
28
|
+
forceOpen: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface OpenAppReply {
|
|
31
|
+
}
|
|
32
|
+
export interface OpenUnsafeAppRequest {
|
|
33
|
+
/** control-view的地址 */
|
|
34
|
+
url: string;
|
|
35
|
+
/** control-view的位置 */
|
|
36
|
+
position: OpenUnsafeAppRequest_Position;
|
|
37
|
+
/** control-view的高度(当control-view 在左右的时候表示宽度, 上下表示高度) */
|
|
38
|
+
height: string;
|
|
39
|
+
/**
|
|
40
|
+
* 此外control-view会接收以下特殊事件, 所有事件均统一以post-message形式发送, msg格式为`{ type: string, msg: string }`
|
|
41
|
+
* control-view需要自行调用addEventListener('message'), 并过滤type==lzc_control_api类型的message.
|
|
42
|
+
*
|
|
43
|
+
* 1. OnURLChange(new_url)
|
|
44
|
+
* 2. OnNewLinkClick(url)
|
|
45
|
+
* 3. OnDownloadLinkRequest(url)
|
|
46
|
+
* 4. OnNewResourceLink(url) 将所有的content-view请求的url通知给control-view
|
|
47
|
+
* 5. OnContentMessage(msg string) //在content-view中调用post-message发送的任何消息
|
|
48
|
+
*/
|
|
49
|
+
features: OpenUnsafeAppRequest_Feature[];
|
|
50
|
+
}
|
|
51
|
+
export declare enum OpenUnsafeAppRequest_Position {
|
|
52
|
+
Left = 0,
|
|
53
|
+
Right = 1,
|
|
54
|
+
Top = 2,
|
|
55
|
+
Bottom = 3,
|
|
56
|
+
UNRECOGNIZED = -1
|
|
57
|
+
}
|
|
58
|
+
export declare function openUnsafeAppRequest_PositionFromJSON(object: any): OpenUnsafeAppRequest_Position;
|
|
59
|
+
export declare function openUnsafeAppRequest_PositionToJSON(object: OpenUnsafeAppRequest_Position): string;
|
|
60
|
+
/** 所有的功能都通过 window.lzc_control_api对象注入. (后面以$API代指) */
|
|
61
|
+
export declare enum OpenUnsafeAppRequest_Feature {
|
|
62
|
+
/** InjectJS - $API.InjectContentJS(jscontent,callback) content-view 执行的jscontent, 如果有结果,会将结果通过callback(result:Boolean): 通知给control-view */
|
|
63
|
+
InjectJS = 0,
|
|
64
|
+
/** ReadCookie - $API.ReadCookie(domain) -> string 读取content-view cookie */
|
|
65
|
+
ReadCookie = 1,
|
|
66
|
+
UNRECOGNIZED = -1
|
|
67
|
+
}
|
|
68
|
+
export declare function openUnsafeAppRequest_FeatureFromJSON(object: any): OpenUnsafeAppRequest_Feature;
|
|
69
|
+
export declare function openUnsafeAppRequest_FeatureToJSON(object: OpenUnsafeAppRequest_Feature): string;
|
|
70
|
+
export interface OpenAppMethodRequest {
|
|
71
|
+
}
|
|
72
|
+
export interface OpenAppMethodReply {
|
|
73
|
+
/** 当前设备支持的应用打开方式 */
|
|
74
|
+
support: OpenAppMethodReply_Mode;
|
|
75
|
+
}
|
|
76
|
+
export declare enum OpenAppMethodReply_Mode {
|
|
77
|
+
All = 0,
|
|
78
|
+
AllNot = 1,
|
|
79
|
+
Browser = 2,
|
|
80
|
+
Client = 3,
|
|
81
|
+
UNRECOGNIZED = -1
|
|
82
|
+
}
|
|
83
|
+
export declare function openAppMethodReply_ModeFromJSON(object: any): OpenAppMethodReply_Mode;
|
|
84
|
+
export declare function openAppMethodReply_ModeToJSON(object: OpenAppMethodReply_Mode): string;
|
|
85
|
+
export declare const PinAppRequest: {
|
|
86
|
+
encode(message: PinAppRequest, writer?: _m0.Writer): _m0.Writer;
|
|
87
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinAppRequest;
|
|
88
|
+
fromJSON(object: any): PinAppRequest;
|
|
89
|
+
toJSON(message: PinAppRequest): unknown;
|
|
90
|
+
create<I extends {
|
|
91
|
+
url?: string;
|
|
92
|
+
appName?: string;
|
|
93
|
+
iconUrl?: string;
|
|
94
|
+
} & {
|
|
95
|
+
url?: string;
|
|
96
|
+
appName?: string;
|
|
97
|
+
iconUrl?: string;
|
|
98
|
+
} & { [K in Exclude<keyof I, keyof PinAppRequest>]: never; }>(base?: I): PinAppRequest;
|
|
99
|
+
fromPartial<I_1 extends {
|
|
100
|
+
url?: string;
|
|
101
|
+
appName?: string;
|
|
102
|
+
iconUrl?: string;
|
|
103
|
+
} & {
|
|
104
|
+
url?: string;
|
|
105
|
+
appName?: string;
|
|
106
|
+
iconUrl?: string;
|
|
107
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PinAppRequest>]: never; }>(object: I_1): PinAppRequest;
|
|
108
|
+
};
|
|
109
|
+
export declare const PinAppReply: {
|
|
110
|
+
encode(_: PinAppReply, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PinAppReply;
|
|
112
|
+
fromJSON(_: any): PinAppReply;
|
|
113
|
+
toJSON(_: PinAppReply): unknown;
|
|
114
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): PinAppReply;
|
|
115
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): PinAppReply;
|
|
116
|
+
};
|
|
117
|
+
export declare const UnPinAppRequest: {
|
|
118
|
+
encode(message: UnPinAppRequest, writer?: _m0.Writer): _m0.Writer;
|
|
119
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UnPinAppRequest;
|
|
120
|
+
fromJSON(object: any): UnPinAppRequest;
|
|
121
|
+
toJSON(message: UnPinAppRequest): unknown;
|
|
122
|
+
create<I extends {
|
|
123
|
+
url?: string;
|
|
124
|
+
} & {
|
|
125
|
+
url?: string;
|
|
126
|
+
} & { [K in Exclude<keyof I, "url">]: never; }>(base?: I): UnPinAppRequest;
|
|
127
|
+
fromPartial<I_1 extends {
|
|
128
|
+
url?: string;
|
|
129
|
+
} & {
|
|
130
|
+
url?: string;
|
|
131
|
+
} & { [K_1 in Exclude<keyof I_1, "url">]: never; }>(object: I_1): UnPinAppRequest;
|
|
132
|
+
};
|
|
133
|
+
export declare const UnPinAppReply: {
|
|
134
|
+
encode(_: UnPinAppReply, writer?: _m0.Writer): _m0.Writer;
|
|
135
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UnPinAppReply;
|
|
136
|
+
fromJSON(_: any): UnPinAppReply;
|
|
137
|
+
toJSON(_: UnPinAppReply): unknown;
|
|
138
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): UnPinAppReply;
|
|
139
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): UnPinAppReply;
|
|
140
|
+
};
|
|
141
|
+
export declare const OpenAppRequest: {
|
|
142
|
+
encode(message: OpenAppRequest, writer?: _m0.Writer): _m0.Writer;
|
|
143
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenAppRequest;
|
|
144
|
+
fromJSON(object: any): OpenAppRequest;
|
|
145
|
+
toJSON(message: OpenAppRequest): unknown;
|
|
146
|
+
create<I extends {
|
|
147
|
+
url?: string;
|
|
148
|
+
isFullScreen?: boolean;
|
|
149
|
+
appid?: string;
|
|
150
|
+
version?: string;
|
|
151
|
+
title?: string;
|
|
152
|
+
icon?: string;
|
|
153
|
+
forceOpen?: boolean;
|
|
154
|
+
} & {
|
|
155
|
+
url?: string;
|
|
156
|
+
isFullScreen?: boolean;
|
|
157
|
+
appid?: string;
|
|
158
|
+
version?: string;
|
|
159
|
+
title?: string;
|
|
160
|
+
icon?: string;
|
|
161
|
+
forceOpen?: boolean;
|
|
162
|
+
} & { [K in Exclude<keyof I, keyof OpenAppRequest>]: never; }>(base?: I): OpenAppRequest;
|
|
163
|
+
fromPartial<I_1 extends {
|
|
164
|
+
url?: string;
|
|
165
|
+
isFullScreen?: boolean;
|
|
166
|
+
appid?: string;
|
|
167
|
+
version?: string;
|
|
168
|
+
title?: string;
|
|
169
|
+
icon?: string;
|
|
170
|
+
forceOpen?: boolean;
|
|
171
|
+
} & {
|
|
172
|
+
url?: string;
|
|
173
|
+
isFullScreen?: boolean;
|
|
174
|
+
appid?: string;
|
|
175
|
+
version?: string;
|
|
176
|
+
title?: string;
|
|
177
|
+
icon?: string;
|
|
178
|
+
forceOpen?: boolean;
|
|
179
|
+
} & { [K_1 in Exclude<keyof I_1, keyof OpenAppRequest>]: never; }>(object: I_1): OpenAppRequest;
|
|
180
|
+
};
|
|
181
|
+
export declare const OpenAppReply: {
|
|
182
|
+
encode(_: OpenAppReply, writer?: _m0.Writer): _m0.Writer;
|
|
183
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenAppReply;
|
|
184
|
+
fromJSON(_: any): OpenAppReply;
|
|
185
|
+
toJSON(_: OpenAppReply): unknown;
|
|
186
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): OpenAppReply;
|
|
187
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): OpenAppReply;
|
|
188
|
+
};
|
|
189
|
+
export declare const OpenUnsafeAppRequest: {
|
|
190
|
+
encode(message: OpenUnsafeAppRequest, writer?: _m0.Writer): _m0.Writer;
|
|
191
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenUnsafeAppRequest;
|
|
192
|
+
fromJSON(object: any): OpenUnsafeAppRequest;
|
|
193
|
+
toJSON(message: OpenUnsafeAppRequest): unknown;
|
|
194
|
+
create<I extends {
|
|
195
|
+
url?: string;
|
|
196
|
+
position?: OpenUnsafeAppRequest_Position;
|
|
197
|
+
height?: string;
|
|
198
|
+
features?: OpenUnsafeAppRequest_Feature[];
|
|
199
|
+
} & {
|
|
200
|
+
url?: string;
|
|
201
|
+
position?: OpenUnsafeAppRequest_Position;
|
|
202
|
+
height?: string;
|
|
203
|
+
features?: OpenUnsafeAppRequest_Feature[] & OpenUnsafeAppRequest_Feature[] & { [K in Exclude<keyof I["features"], keyof OpenUnsafeAppRequest_Feature[]>]: never; };
|
|
204
|
+
} & { [K_1 in Exclude<keyof I, keyof OpenUnsafeAppRequest>]: never; }>(base?: I): OpenUnsafeAppRequest;
|
|
205
|
+
fromPartial<I_1 extends {
|
|
206
|
+
url?: string;
|
|
207
|
+
position?: OpenUnsafeAppRequest_Position;
|
|
208
|
+
height?: string;
|
|
209
|
+
features?: OpenUnsafeAppRequest_Feature[];
|
|
210
|
+
} & {
|
|
211
|
+
url?: string;
|
|
212
|
+
position?: OpenUnsafeAppRequest_Position;
|
|
213
|
+
height?: string;
|
|
214
|
+
features?: OpenUnsafeAppRequest_Feature[] & OpenUnsafeAppRequest_Feature[] & { [K_2 in Exclude<keyof I_1["features"], keyof OpenUnsafeAppRequest_Feature[]>]: never; };
|
|
215
|
+
} & { [K_3 in Exclude<keyof I_1, keyof OpenUnsafeAppRequest>]: never; }>(object: I_1): OpenUnsafeAppRequest;
|
|
216
|
+
};
|
|
217
|
+
export declare const OpenAppMethodRequest: {
|
|
218
|
+
encode(_: OpenAppMethodRequest, writer?: _m0.Writer): _m0.Writer;
|
|
219
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenAppMethodRequest;
|
|
220
|
+
fromJSON(_: any): OpenAppMethodRequest;
|
|
221
|
+
toJSON(_: OpenAppMethodRequest): unknown;
|
|
222
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): OpenAppMethodRequest;
|
|
223
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): OpenAppMethodRequest;
|
|
224
|
+
};
|
|
225
|
+
export declare const OpenAppMethodReply: {
|
|
226
|
+
encode(message: OpenAppMethodReply, writer?: _m0.Writer): _m0.Writer;
|
|
227
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenAppMethodReply;
|
|
228
|
+
fromJSON(object: any): OpenAppMethodReply;
|
|
229
|
+
toJSON(message: OpenAppMethodReply): unknown;
|
|
230
|
+
create<I extends {
|
|
231
|
+
support?: OpenAppMethodReply_Mode;
|
|
232
|
+
} & {
|
|
233
|
+
support?: OpenAppMethodReply_Mode;
|
|
234
|
+
} & { [K in Exclude<keyof I, "support">]: never; }>(base?: I): OpenAppMethodReply;
|
|
235
|
+
fromPartial<I_1 extends {
|
|
236
|
+
support?: OpenAppMethodReply_Mode;
|
|
237
|
+
} & {
|
|
238
|
+
support?: OpenAppMethodReply_Mode;
|
|
239
|
+
} & { [K_1 in Exclude<keyof I_1, "support">]: never; }>(object: I_1): OpenAppMethodReply;
|
|
240
|
+
};
|
|
241
|
+
export interface LocalLaunchService {
|
|
242
|
+
/** 创建快捷方式 */
|
|
243
|
+
PinApp(request: DeepPartial<PinAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PinAppReply>;
|
|
244
|
+
/** 删除快捷方式 */
|
|
245
|
+
UnPinApp(request: DeepPartial<UnPinAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<UnPinAppReply>;
|
|
246
|
+
/** 打开指定的懒猫云应用 */
|
|
247
|
+
OpenApp(request: DeepPartial<OpenAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenAppReply>;
|
|
248
|
+
/**
|
|
249
|
+
* 使用不安全模式打开指定APP
|
|
250
|
+
* App页面由两个webview组成:一个control-view,一个content-view
|
|
251
|
+
* 其中app渲染在control-view中,content-view的内容由App代码控制
|
|
252
|
+
*/
|
|
253
|
+
OpenUnsafeApp(request: DeepPartial<OpenUnsafeAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenAppReply>;
|
|
254
|
+
/** 当前设备支持的应用打开方式 */
|
|
255
|
+
OpenAppMethod(request: DeepPartial<OpenAppMethodRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenAppMethodReply>;
|
|
256
|
+
}
|
|
257
|
+
export declare class LocalLaunchServiceClientImpl implements LocalLaunchService {
|
|
258
|
+
private readonly rpc;
|
|
259
|
+
constructor(rpc: Rpc);
|
|
260
|
+
PinApp(request: DeepPartial<PinAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PinAppReply>;
|
|
261
|
+
UnPinApp(request: DeepPartial<UnPinAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<UnPinAppReply>;
|
|
262
|
+
OpenApp(request: DeepPartial<OpenAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenAppReply>;
|
|
263
|
+
OpenUnsafeApp(request: DeepPartial<OpenUnsafeAppRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenAppReply>;
|
|
264
|
+
OpenAppMethod(request: DeepPartial<OpenAppMethodRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenAppMethodReply>;
|
|
265
|
+
}
|
|
266
|
+
export declare const LocalLaunchServiceDesc: {
|
|
267
|
+
serviceName: string;
|
|
268
|
+
};
|
|
269
|
+
export declare const LocalLaunchServicePinAppDesc: UnaryMethodDefinitionish;
|
|
270
|
+
export declare const LocalLaunchServiceUnPinAppDesc: UnaryMethodDefinitionish;
|
|
271
|
+
export declare const LocalLaunchServiceOpenAppDesc: UnaryMethodDefinitionish;
|
|
272
|
+
export declare const LocalLaunchServiceOpenUnsafeAppDesc: UnaryMethodDefinitionish;
|
|
273
|
+
export declare const LocalLaunchServiceOpenAppMethodDesc: UnaryMethodDefinitionish;
|
|
274
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
275
|
+
requestStream: any;
|
|
276
|
+
responseStream: any;
|
|
277
|
+
}
|
|
278
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
279
|
+
interface Rpc {
|
|
280
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
281
|
+
}
|
|
282
|
+
export declare class GrpcWebImpl {
|
|
283
|
+
private host;
|
|
284
|
+
private options;
|
|
285
|
+
constructor(host: string, options: {
|
|
286
|
+
transport?: grpc.TransportFactory;
|
|
287
|
+
debug?: boolean;
|
|
288
|
+
metadata?: grpc.Metadata;
|
|
289
|
+
upStreamRetryCodes?: number[];
|
|
290
|
+
});
|
|
291
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
292
|
+
}
|
|
293
|
+
declare const tsProtoGlobalThis: any;
|
|
294
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
295
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
296
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
297
|
+
} : Partial<T>;
|
|
298
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
299
|
+
code: grpc.Code;
|
|
300
|
+
metadata: grpc.Metadata;
|
|
301
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
302
|
+
}
|
|
303
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Empty } from "../google/protobuf/empty";
|
|
5
|
+
export declare enum ConnectionType {
|
|
6
|
+
Unknown = 0,
|
|
7
|
+
CELL_NONE = 1,
|
|
8
|
+
ETHERNET = 2,
|
|
9
|
+
WIFI = 3,
|
|
10
|
+
CELL = 4,
|
|
11
|
+
CELL_2G = 5,
|
|
12
|
+
CELL_3G = 6,
|
|
13
|
+
CELL_4G = 7,
|
|
14
|
+
CELL_5G = 8,
|
|
15
|
+
UNRECOGNIZED = -1
|
|
16
|
+
}
|
|
17
|
+
export declare function connectionTypeFromJSON(object: any): ConnectionType;
|
|
18
|
+
export declare function connectionTypeToJSON(object: ConnectionType): string;
|
|
19
|
+
export interface NetworkInformation {
|
|
20
|
+
ctype: ConnectionType;
|
|
21
|
+
IsOnline: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const NetworkInformation: {
|
|
24
|
+
encode(message: NetworkInformation, writer?: _m0.Writer): _m0.Writer;
|
|
25
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): NetworkInformation;
|
|
26
|
+
fromJSON(object: any): NetworkInformation;
|
|
27
|
+
toJSON(message: NetworkInformation): unknown;
|
|
28
|
+
create<I extends {
|
|
29
|
+
ctype?: ConnectionType;
|
|
30
|
+
IsOnline?: boolean;
|
|
31
|
+
} & {
|
|
32
|
+
ctype?: ConnectionType;
|
|
33
|
+
IsOnline?: boolean;
|
|
34
|
+
} & { [K in Exclude<keyof I, keyof NetworkInformation>]: never; }>(base?: I): NetworkInformation;
|
|
35
|
+
fromPartial<I_1 extends {
|
|
36
|
+
ctype?: ConnectionType;
|
|
37
|
+
IsOnline?: boolean;
|
|
38
|
+
} & {
|
|
39
|
+
ctype?: ConnectionType;
|
|
40
|
+
IsOnline?: boolean;
|
|
41
|
+
} & { [K_1 in Exclude<keyof I_1, keyof NetworkInformation>]: never; }>(object: I_1): NetworkInformation;
|
|
42
|
+
};
|
|
43
|
+
export interface NetworkManager {
|
|
44
|
+
Query(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<NetworkInformation>;
|
|
45
|
+
}
|
|
46
|
+
export declare class NetworkManagerClientImpl implements NetworkManager {
|
|
47
|
+
private readonly rpc;
|
|
48
|
+
constructor(rpc: Rpc);
|
|
49
|
+
Query(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<NetworkInformation>;
|
|
50
|
+
}
|
|
51
|
+
export declare const NetworkManagerDesc: {
|
|
52
|
+
serviceName: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const NetworkManagerQueryDesc: UnaryMethodDefinitionish;
|
|
55
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
56
|
+
requestStream: any;
|
|
57
|
+
responseStream: any;
|
|
58
|
+
}
|
|
59
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
60
|
+
interface Rpc {
|
|
61
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
62
|
+
}
|
|
63
|
+
export declare class GrpcWebImpl {
|
|
64
|
+
private host;
|
|
65
|
+
private options;
|
|
66
|
+
constructor(host: string, options: {
|
|
67
|
+
transport?: grpc.TransportFactory;
|
|
68
|
+
debug?: boolean;
|
|
69
|
+
metadata?: grpc.Metadata;
|
|
70
|
+
upStreamRetryCodes?: number[];
|
|
71
|
+
});
|
|
72
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
73
|
+
}
|
|
74
|
+
declare const tsProtoGlobalThis: any;
|
|
75
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
76
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
77
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
78
|
+
} : Partial<T>;
|
|
79
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
80
|
+
code: grpc.Code;
|
|
81
|
+
metadata: grpc.Metadata;
|
|
82
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
83
|
+
}
|
|
84
|
+
export {};
|