@lazycatcloud/sdk 0.1.488 → 0.1.489

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.
Files changed (60) hide show
  1. package/dist/localdevice/photo.js +38 -9
  2. package/dist/localdevice/photo.js.map +1 -1
  3. package/dist/package.json +2 -2
  4. package/dist/tsconfig.tsbuildinfo +1 -1
  5. package/package.json +1 -1
  6. package/dist/common/apk_shell.d.ts +0 -126
  7. package/dist/common/box.d.ts +0 -1741
  8. package/dist/common/browseronly.d.ts +0 -159
  9. package/dist/common/end_device.d.ts +0 -358
  10. package/dist/common/file_handler.d.ts +0 -2886
  11. package/dist/common/filetrans.d.ts +0 -7197
  12. package/dist/common/gateway.d.ts +0 -249
  13. package/dist/common/iscsi.d.ts +0 -1745
  14. package/dist/common/media_meta.d.ts +0 -310
  15. package/dist/common/message.d.ts +0 -1211
  16. package/dist/common/peripheral_device.d.ts +0 -1576
  17. package/dist/common/security_context.d.ts +0 -241
  18. package/dist/common/users.d.ts +0 -367
  19. package/dist/dlna/dlna.d.ts +0 -344
  20. package/dist/extentions/app_common.d.ts +0 -130
  21. package/dist/extentions/base.d.ts +0 -136
  22. package/dist/extentions/client_authorization.d.ts +0 -19
  23. package/dist/extentions/index.d.ts +0 -24
  24. package/dist/extentions/mediasession/definitions.d.ts +0 -54
  25. package/dist/extentions/mediasession/index.d.ts +0 -8
  26. package/dist/extentions/mediasession/web.d.ts +0 -7
  27. package/dist/extentions/safe_app.d.ts +0 -35
  28. package/dist/extentions/unsafe_app.d.ts +0 -4
  29. package/dist/extentions/vibrate_type.d.ts +0 -10
  30. package/dist/extentions/webview-bridge.d.ts +0 -1
  31. package/dist/google/protobuf/empty.d.ts +0 -20
  32. package/dist/google/protobuf/timestamp.d.ts +0 -242
  33. package/dist/grpcweb.d.ts +0 -27
  34. package/dist/index.d.ts +0 -87
  35. package/dist/localdevice/ble.d.ts +0 -566
  36. package/dist/localdevice/client.d.ts +0 -186
  37. package/dist/localdevice/cloud-driver.d.ts +0 -152
  38. package/dist/localdevice/config.d.ts +0 -150
  39. package/dist/localdevice/contacts.d.ts +0 -524
  40. package/dist/localdevice/device.d.ts +0 -86
  41. package/dist/localdevice/dialog.d.ts +0 -239
  42. package/dist/localdevice/local-launch.d.ts +0 -303
  43. package/dist/localdevice/network.d.ts +0 -84
  44. package/dist/localdevice/oneway-sync.d.ts +0 -274
  45. package/dist/localdevice/permission.d.ts +0 -233
  46. package/dist/localdevice/photo.d.ts +0 -1267
  47. package/dist/localdevice/remote-control.d.ts +0 -1941
  48. package/dist/localdevice/remote-input-method.d.ts +0 -128
  49. package/dist/sys/btled.d.ts +0 -197
  50. package/dist/sys/btrfs.d.ts +0 -546
  51. package/dist/sys/devopt.d.ts +0 -101
  52. package/dist/sys/dirmon.d.ts +0 -136
  53. package/dist/sys/event.d.ts +0 -143
  54. package/dist/sys/hal.d.ts +0 -957
  55. package/dist/sys/ingress.d.ts +0 -315
  56. package/dist/sys/network_manager.d.ts +0 -1083
  57. package/dist/sys/package_manager.d.ts +0 -21026
  58. package/dist/sys/stats/cgroup_metrics.d.ts +0 -17661
  59. package/dist/sys/tvos.d.ts +0 -490
  60. package/dist/sys/version.d.ts +0 -65
@@ -1,54 +0,0 @@
1
- export interface MetadataOptions {
2
- album?: string;
3
- artist?: string;
4
- artwork?: MediaImage[];
5
- title?: string;
6
- }
7
- export interface PlaybackStateOptions {
8
- playbackState: MediaSessionPlaybackState;
9
- }
10
- export interface ActionHandlerOptions {
11
- action: MediaSessionAction;
12
- }
13
- export type ActionHandler = (details: ActionDetails) => void;
14
- interface ActionDetails {
15
- action: MediaSessionAction;
16
- seekTime?: number | null;
17
- }
18
- export interface PositionStateOptions {
19
- duration?: number;
20
- playbackRate?: number;
21
- position?: number;
22
- }
23
- export interface MediaSessionPlugin {
24
- /**
25
- * Sets metadata of the currently playing media. Analogue to setting the
26
- * [metadata property of the MediaSession
27
- * interface](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/metadata)
28
- * when using the Media Session API directly.
29
- */
30
- setMetadata(options: MetadataOptions): Promise<void>;
31
- /**
32
- * Indicate whether media is playing or not. Analogue to setting the
33
- * [playbackState property of the MediaSession
34
- * interface](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/playbackState)
35
- * when using the Media Session API directly.
36
- */
37
- setPlaybackState(options: PlaybackStateOptions): Promise<void>;
38
- /**
39
- * Sets handler for media session actions (e.g. initiated via onscreen media
40
- * controls or physical buttons). Analogue to calling [setActionHandler() of
41
- * the MediaSession
42
- * interface](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setActionHandler)
43
- * when using the Media Session API directly.
44
- */
45
- setActionHandler(options: ActionHandlerOptions, handler: ActionHandler | null): Promise<void>;
46
- /**
47
- * Update current media playback position, duration and speed. Analogue to
48
- * calling [setPositionState() of the MediaSession
49
- * interface](https://developer.mozilla.org/en-US/docs/Web/API/MediaSession/setPositionState)
50
- * when using the Media Session API directly.
51
- */
52
- setPositionState(options: PositionStateOptions): Promise<void>;
53
- }
54
- export {};
@@ -1,8 +0,0 @@
1
- import type { MediaSessionPlugin } from './definitions';
2
- declare global {
3
- const lzc_media_session: any;
4
- }
5
- declare const MediaSession: MediaSessionPlugin;
6
- export * from './definitions';
7
- export declare function isMediaSessionAvailable(): boolean;
8
- export { MediaSession };
@@ -1,7 +0,0 @@
1
- import type { ActionHandler, ActionHandlerOptions, MediaSessionPlugin, MetadataOptions, PlaybackStateOptions, PositionStateOptions } from './definitions';
2
- export declare class MediaSessionWeb implements MediaSessionPlugin {
3
- setMetadata(options: MetadataOptions): Promise<void>;
4
- setPlaybackState(options: PlaybackStateOptions): Promise<void>;
5
- setActionHandler(options: ActionHandlerOptions, handler: ActionHandler | null): Promise<void>;
6
- setPositionState(options: PositionStateOptions): Promise<void>;
7
- }
@@ -1,35 +0,0 @@
1
- export declare const SAFE: {
2
- OpenApp: (url: any, isFullScreen: any) => void;
3
- SetValue: (key: any, value: any) => void;
4
- GetValue: (key: any) => any;
5
- SetScreenOrientation: (ori: any) => void;
6
- SetScreentBrightness(number: any): void;
7
- GetScreenBrightNess(): any;
8
- GetCurrentVolume(): any;
9
- SetVoice(num: any): void;
10
- AddVoice(): void;
11
- SubVoice(): void;
12
- CloseWindow(): void;
13
- Minimize(): void;
14
- /**
15
- * // 仅仅android 实现
16
- * @param dimEnable 是否开启dialog遮罩透明
17
- * @param backgroundDimAmount 透明度 0~1
18
- * @param url dialog显示的地址
19
- * @param callback 回调的callback(),接受结果为CloseDialog中的result 参数
20
- * @constructor
21
- */
22
- OpenDialog(dimEnable: boolean, backgroundDimAmount: number, url: string, callback: string): void;
23
- /**
24
- * 仅仅在打开的dialog中可以使用
25
- * @param result 关闭dialog 的回调结果
26
- * @constructor
27
- */
28
- CloseDialog(result: string): void;
29
- InstallLzcClient(url: string): void;
30
- /**
31
- * 设置状态栏颜色
32
- * @param color 颜色以#开头
33
- */
34
- SetStatusBarColor(color: string): void;
35
- };
@@ -1,4 +0,0 @@
1
- declare global {
2
- const android_ad_blocker: any;
3
- }
4
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * @description: 振动类型
3
- * @return {VibrateType}
4
- */
5
- export declare enum VibrateType {
6
- EFFECT_TICK = 0,
7
- EFFECT_CLICK = 1,
8
- EFFECT_HEAVY_CLICK = 2,
9
- EFFECT_DOUBLE_CLICK = 3
10
- }
@@ -1 +0,0 @@
1
- export declare function warpIosBridge(func: string, argv?: string): Promise<unknown>;
@@ -1,20 +0,0 @@
1
- import _m0 from "protobufjs/minimal";
2
- /**
3
- * A generic empty message that you can re-use to avoid defining duplicated
4
- * empty messages in your APIs. A typical example is to use it as the request
5
- * or the response type of an API method. For instance:
6
- *
7
- * service Foo {
8
- * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
9
- * }
10
- */
11
- export interface Empty {
12
- }
13
- export declare const Empty: {
14
- encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
15
- decode(input: _m0.Reader | Uint8Array, length?: number): Empty;
16
- fromJSON(_: any): Empty;
17
- toJSON(_: Empty): unknown;
18
- create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): Empty;
19
- fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): Empty;
20
- };
@@ -1,242 +0,0 @@
1
- import Long from "long";
2
- import _m0 from "protobufjs/minimal";
3
- /**
4
- * A Timestamp represents a point in time independent of any time zone or local
5
- * calendar, encoded as a count of seconds and fractions of seconds at
6
- * nanosecond resolution. The count is relative to an epoch at UTC midnight on
7
- * January 1, 1970, in the proleptic Gregorian calendar which extends the
8
- * Gregorian calendar backwards to year one.
9
- *
10
- * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
11
- * second table is needed for interpretation, using a [24-hour linear
12
- * smear](https://developers.google.com/time/smear).
13
- *
14
- * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
15
- * restricting to that range, we ensure that we can convert to and from [RFC
16
- * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
17
- *
18
- * # Examples
19
- *
20
- * Example 1: Compute Timestamp from POSIX `time()`.
21
- *
22
- * Timestamp timestamp;
23
- * timestamp.set_seconds(time(NULL));
24
- * timestamp.set_nanos(0);
25
- *
26
- * Example 2: Compute Timestamp from POSIX `gettimeofday()`.
27
- *
28
- * struct timeval tv;
29
- * gettimeofday(&tv, NULL);
30
- *
31
- * Timestamp timestamp;
32
- * timestamp.set_seconds(tv.tv_sec);
33
- * timestamp.set_nanos(tv.tv_usec * 1000);
34
- *
35
- * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
36
- *
37
- * FILETIME ft;
38
- * GetSystemTimeAsFileTime(&ft);
39
- * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
40
- *
41
- * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
42
- * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
43
- * Timestamp timestamp;
44
- * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
45
- * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
46
- *
47
- * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
48
- *
49
- * long millis = System.currentTimeMillis();
50
- *
51
- * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
52
- * .setNanos((int) ((millis % 1000) * 1000000)).build();
53
- *
54
- * Example 5: Compute Timestamp from Java `Instant.now()`.
55
- *
56
- * Instant now = Instant.now();
57
- *
58
- * Timestamp timestamp =
59
- * Timestamp.newBuilder().setSeconds(now.getEpochSecond())
60
- * .setNanos(now.getNano()).build();
61
- *
62
- * Example 6: Compute Timestamp from current time in Python.
63
- *
64
- * timestamp = Timestamp()
65
- * timestamp.GetCurrentTime()
66
- *
67
- * # JSON Mapping
68
- *
69
- * In JSON format, the Timestamp type is encoded as a string in the
70
- * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
71
- * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
72
- * where {year} is always expressed using four digits while {month}, {day},
73
- * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
74
- * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
75
- * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
76
- * is required. A proto3 JSON serializer should always use UTC (as indicated by
77
- * "Z") when printing the Timestamp type and a proto3 JSON parser should be
78
- * able to accept both UTC and other timezones (as indicated by an offset).
79
- *
80
- * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
81
- * 01:30 UTC on January 15, 2017.
82
- *
83
- * In JavaScript, one can convert a Date object to this format using the
84
- * standard
85
- * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
86
- * method. In Python, a standard `datetime.datetime` object can be converted
87
- * to this format using
88
- * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
89
- * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
90
- * the Joda Time's [`ISODateTimeFormat.dateTime()`](
91
- * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
92
- * ) to obtain a formatter capable of generating timestamps in this format.
93
- */
94
- export interface Timestamp {
95
- /**
96
- * Represents seconds of UTC time since Unix epoch
97
- * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
98
- * 9999-12-31T23:59:59Z inclusive.
99
- */
100
- seconds: Long;
101
- /**
102
- * Non-negative fractions of a second at nanosecond resolution. Negative
103
- * second values with fractions must still have non-negative nanos values
104
- * that count forward in time. Must be from 0 to 999,999,999
105
- * inclusive.
106
- */
107
- nanos: number;
108
- }
109
- export declare const Timestamp: {
110
- encode(message: Timestamp, writer?: _m0.Writer): _m0.Writer;
111
- decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp;
112
- fromJSON(object: any): Timestamp;
113
- toJSON(message: Timestamp): unknown;
114
- create<I extends {
115
- seconds?: string | number | Long.Long;
116
- nanos?: number;
117
- } & {
118
- seconds?: string | number | (Long.Long & {
119
- high: number;
120
- low: number;
121
- unsigned: boolean;
122
- add: (addend: string | number | Long.Long) => Long.Long;
123
- and: (other: string | number | Long.Long) => Long.Long;
124
- compare: (other: string | number | Long.Long) => number;
125
- comp: (other: string | number | Long.Long) => number;
126
- divide: (divisor: string | number | Long.Long) => Long.Long;
127
- div: (divisor: string | number | Long.Long) => Long.Long;
128
- equals: (other: string | number | Long.Long) => boolean;
129
- eq: (other: string | number | Long.Long) => boolean;
130
- getHighBits: () => number;
131
- getHighBitsUnsigned: () => number;
132
- getLowBits: () => number;
133
- getLowBitsUnsigned: () => number;
134
- getNumBitsAbs: () => number;
135
- greaterThan: (other: string | number | Long.Long) => boolean;
136
- gt: (other: string | number | Long.Long) => boolean;
137
- greaterThanOrEqual: (other: string | number | Long.Long) => boolean;
138
- gte: (other: string | number | Long.Long) => boolean;
139
- isEven: () => boolean;
140
- isNegative: () => boolean;
141
- isOdd: () => boolean;
142
- isPositive: () => boolean;
143
- isZero: () => boolean;
144
- lessThan: (other: string | number | Long.Long) => boolean;
145
- lt: (other: string | number | Long.Long) => boolean;
146
- lessThanOrEqual: (other: string | number | Long.Long) => boolean;
147
- lte: (other: string | number | Long.Long) => boolean;
148
- modulo: (other: string | number | Long.Long) => Long.Long;
149
- mod: (other: string | number | Long.Long) => Long.Long;
150
- multiply: (multiplier: string | number | Long.Long) => Long.Long;
151
- mul: (multiplier: string | number | Long.Long) => Long.Long;
152
- negate: () => Long.Long;
153
- neg: () => Long.Long;
154
- not: () => Long.Long;
155
- notEquals: (other: string | number | Long.Long) => boolean;
156
- neq: (other: string | number | Long.Long) => boolean;
157
- or: (other: string | number | Long.Long) => Long.Long;
158
- shiftLeft: (numBits: number | Long.Long) => Long.Long;
159
- shl: (numBits: number | Long.Long) => Long.Long;
160
- shiftRight: (numBits: number | Long.Long) => Long.Long;
161
- shr: (numBits: number | Long.Long) => Long.Long;
162
- shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long;
163
- shru: (numBits: number | Long.Long) => Long.Long;
164
- subtract: (subtrahend: string | number | Long.Long) => Long.Long;
165
- sub: (subtrahend: string | number | Long.Long) => Long.Long;
166
- toInt: () => number;
167
- toNumber: () => number;
168
- toBytes: (le?: boolean) => number[];
169
- toBytesLE: () => number[];
170
- toBytesBE: () => number[];
171
- toSigned: () => Long.Long;
172
- toString: (radix?: number) => string;
173
- toUnsigned: () => Long.Long;
174
- xor: (other: string | number | Long.Long) => Long.Long;
175
- } & { [K in Exclude<keyof I["seconds"], keyof Long.Long>]: never; });
176
- nanos?: number;
177
- } & { [K_1 in Exclude<keyof I, keyof Timestamp>]: never; }>(base?: I): Timestamp;
178
- fromPartial<I_1 extends {
179
- seconds?: string | number | Long.Long;
180
- nanos?: number;
181
- } & {
182
- seconds?: string | number | (Long.Long & {
183
- high: number;
184
- low: number;
185
- unsigned: boolean;
186
- add: (addend: string | number | Long.Long) => Long.Long;
187
- and: (other: string | number | Long.Long) => Long.Long;
188
- compare: (other: string | number | Long.Long) => number;
189
- comp: (other: string | number | Long.Long) => number;
190
- divide: (divisor: string | number | Long.Long) => Long.Long;
191
- div: (divisor: string | number | Long.Long) => Long.Long;
192
- equals: (other: string | number | Long.Long) => boolean;
193
- eq: (other: string | number | Long.Long) => boolean;
194
- getHighBits: () => number;
195
- getHighBitsUnsigned: () => number;
196
- getLowBits: () => number;
197
- getLowBitsUnsigned: () => number;
198
- getNumBitsAbs: () => number;
199
- greaterThan: (other: string | number | Long.Long) => boolean;
200
- gt: (other: string | number | Long.Long) => boolean;
201
- greaterThanOrEqual: (other: string | number | Long.Long) => boolean;
202
- gte: (other: string | number | Long.Long) => boolean;
203
- isEven: () => boolean;
204
- isNegative: () => boolean;
205
- isOdd: () => boolean;
206
- isPositive: () => boolean;
207
- isZero: () => boolean;
208
- lessThan: (other: string | number | Long.Long) => boolean;
209
- lt: (other: string | number | Long.Long) => boolean;
210
- lessThanOrEqual: (other: string | number | Long.Long) => boolean;
211
- lte: (other: string | number | Long.Long) => boolean;
212
- modulo: (other: string | number | Long.Long) => Long.Long;
213
- mod: (other: string | number | Long.Long) => Long.Long;
214
- multiply: (multiplier: string | number | Long.Long) => Long.Long;
215
- mul: (multiplier: string | number | Long.Long) => Long.Long;
216
- negate: () => Long.Long;
217
- neg: () => Long.Long;
218
- not: () => Long.Long;
219
- notEquals: (other: string | number | Long.Long) => boolean;
220
- neq: (other: string | number | Long.Long) => boolean;
221
- or: (other: string | number | Long.Long) => Long.Long;
222
- shiftLeft: (numBits: number | Long.Long) => Long.Long;
223
- shl: (numBits: number | Long.Long) => Long.Long;
224
- shiftRight: (numBits: number | Long.Long) => Long.Long;
225
- shr: (numBits: number | Long.Long) => Long.Long;
226
- shiftRightUnsigned: (numBits: number | Long.Long) => Long.Long;
227
- shru: (numBits: number | Long.Long) => Long.Long;
228
- subtract: (subtrahend: string | number | Long.Long) => Long.Long;
229
- sub: (subtrahend: string | number | Long.Long) => Long.Long;
230
- toInt: () => number;
231
- toNumber: () => number;
232
- toBytes: (le?: boolean) => number[];
233
- toBytesLE: () => number[];
234
- toBytesBE: () => number[];
235
- toSigned: () => Long.Long;
236
- toString: (radix?: number) => string;
237
- toUnsigned: () => Long.Long;
238
- xor: (other: string | number | Long.Long) => Long.Long;
239
- } & { [K_2 in Exclude<keyof I_1["seconds"], keyof Long.Long>]: never; });
240
- nanos?: number;
241
- } & { [K_3 in Exclude<keyof I_1, keyof Timestamp>]: never; }>(object: I_1): Timestamp;
242
- };
package/dist/grpcweb.d.ts DELETED
@@ -1,27 +0,0 @@
1
- import { grpc } from "@improbable-eng/grpc-web";
2
- import { Observable } from "rxjs";
3
- interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
4
- requestStream: any;
5
- responseStream: any;
6
- }
7
- type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
8
- export declare class GrpcWebImpl {
9
- private host;
10
- private options;
11
- constructor(host: string, options: {
12
- transport?: grpc.TransportFactory;
13
- streamingTransport?: grpc.TransportFactory;
14
- debug?: boolean;
15
- metadata?: grpc.Metadata;
16
- upStreamRetryCodes?: number[];
17
- });
18
- private addExtHeaders;
19
- unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
20
- invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
21
- }
22
- export declare class GrpcWebError extends globalThis.Error {
23
- code: grpc.Code;
24
- metadata: grpc.Metadata;
25
- constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
26
- }
27
- export {};
package/dist/index.d.ts DELETED
@@ -1,87 +0,0 @@
1
- import { GrpcWebImpl } from "./grpcweb";
2
- import { EndDeviceService } from "./common/end_device";
3
- import { UserManager } from "./common/users";
4
- import { BoxService } from "./common/box";
5
- import { SessionInfo, AppInfo } from "./common/browseronly";
6
- import { PeripheralDeviceService } from "./common/peripheral_device";
7
- import { PackageManager } from "./sys/package_manager";
8
- import { NetworkManager as NM } from "./sys/network_manager";
9
- import { AccessControlerService } from "./sys/ingress";
10
- import { DialogManager } from "./localdevice/dialog";
11
- import { UserConfig } from "./localdevice/config";
12
- import { PhotoLibrary } from "./localdevice/photo";
13
- import { NetworkManager } from "./localdevice/network";
14
- import { ContactsManager, ContactsManagerClientImpl } from "./localdevice/contacts";
15
- import { DeviceService } from "./localdevice/device";
16
- import { PermissionManager as DevicePermissionManager } from "./localdevice/permission";
17
- import { FileHandler } from "./common/file_handler";
18
- import { FileTransferService } from "./common/filetrans";
19
- import { LocalLaunchService } from "./localdevice/local-launch";
20
- import { Client } from "./localdevice/client";
21
- import { Rim } from "./localdevice/remote-input-method";
22
- import { RemoteMediaPlayerService } from "./dlna/dlna";
23
- import { grpc } from "@improbable-eng/grpc-web";
24
- import { DevOptService } from "./sys/devopt";
25
- import { MessageServiceClientImpl } from "./common/message";
26
- import { RemoteControl } from "./localdevice/remote-control";
27
- import { TvOS } from "./sys/tvos";
28
- import { VersionInfoService } from "./sys/version";
29
- import { OnewaySync } from "./localdevice/oneway-sync";
30
- import { CloudDriver } from "./localdevice/cloud-driver";
31
- import { BleManager } from "./localdevice/ble";
32
- import { ISCSIService } from "./common/iscsi";
33
- export declare class lzcAPIGateway {
34
- constructor(host?: string, debug?: boolean);
35
- private bo;
36
- private _currentDevice;
37
- private deviceApiTokenDeadline;
38
- private _session;
39
- host: string;
40
- pd: PeripheralDeviceService;
41
- iscsi: ISCSIService;
42
- nm: NM;
43
- pkgm: PackageManager;
44
- users: UserManager;
45
- box: BoxService;
46
- tvos: TvOS;
47
- ac: AccessControlerService;
48
- appinfo: Promise<AppInfo>;
49
- fileTransfer: FileTransferService;
50
- devopt: DevOptService;
51
- rmp: RemoteMediaPlayerService;
52
- devices: EndDeviceService;
53
- message: MessageServiceClientImpl;
54
- version: VersionInfoService;
55
- contacts: ContactsManagerClientImpl;
56
- openDevices(): Promise<void>;
57
- getDeviceProxy(udid: string, metadata?: grpc.Metadata | undefined): Promise<EndDeviceProxy>;
58
- getDeviceURL(udid: string): Promise<URL>;
59
- currentDeviceURL(gateway?: lzcAPIGateway): Promise<URL | undefined>;
60
- authToken: string;
61
- get session(): Promise<SessionInfo>;
62
- requestAuthToken(cc: lzcAPIGateway, deviceApiUrl: string): Promise<string>;
63
- get currentDevice(): Promise<EndDeviceProxy>;
64
- }
65
- export declare class EndDeviceProxy {
66
- constructor(rpc: GrpcWebImpl);
67
- device: DeviceService;
68
- dialog: DialogManager;
69
- config: UserConfig;
70
- photolibrary: PhotoLibrary;
71
- network: NetworkManager;
72
- fileHandler: FileHandler;
73
- permission: DevicePermissionManager;
74
- localLaunch: LocalLaunchService;
75
- client: Client;
76
- rim: Rim;
77
- remoteControl: RemoteControl;
78
- contact: ContactsManager;
79
- cloudDriver: CloudDriver;
80
- onewaysync: OnewaySync;
81
- ble: BleManager;
82
- }
83
- /**
84
- * 是否是webshell环境
85
- */
86
- export declare function isWebShell(): boolean;
87
- export { grpc };