@lazycatcloud/sdk 0.1.130 → 0.1.131
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/API.d.ts +24 -0
- package/dist/API.d.ts.map +1 -0
- package/dist/API.js +117 -0
- package/dist/API.js.map +1 -0
- package/dist/common/box.d.ts +13 -55
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +47 -46
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +12 -40
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +33 -50
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +16 -103
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +49 -59
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/file_handler.d.ts +14 -70
- package/dist/common/file_handler.d.ts.map +1 -1
- package/dist/common/file_handler.js +21 -43
- package/dist/common/file_handler.js.map +1 -1
- package/dist/common/filetrans.d.ts +87 -656
- package/dist/common/filetrans.d.ts.map +1 -1
- package/dist/common/filetrans.js +220 -163
- package/dist/common/filetrans.js.map +1 -1
- package/dist/common/gateway.d.ts +15 -61
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +41 -55
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/message.d.ts +2 -21
- package/dist/common/message.d.ts.map +1 -1
- package/dist/common/message.js +25 -18
- package/dist/common/message.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +20 -143
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +53 -59
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +15 -54
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +39 -52
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +25 -96
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +46 -87
- package/dist/common/users.js.map +1 -1
- package/dist/dlna/dlna.d.ts +20 -102
- package/dist/dlna/dlna.d.ts.map +1 -1
- package/dist/dlna/dlna.js +68 -73
- package/dist/dlna/dlna.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +4866 -55328
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +414 -265
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +1 -2
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +0 -3
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +4 -9
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +8 -14
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/google/protobuf/wrappers.d.ts +182 -0
- package/dist/google/protobuf/wrappers.d.ts.map +1 -0
- package/dist/google/protobuf/wrappers.js +458 -0
- package/dist/google/protobuf/wrappers.js.map +1 -0
- package/dist/grpcweb.d.ts +1 -1
- package/dist/grpcweb.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lanforward/lanforward.d.ts +9 -22
- package/dist/lanforward/lanforward.d.ts.map +1 -1
- package/dist/lanforward/lanforward.js +16 -33
- package/dist/lanforward/lanforward.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +13 -36
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +40 -47
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/config.d.ts +8 -25
- package/dist/localdevice/config.d.ts.map +1 -1
- package/dist/localdevice/config.js +12 -29
- package/dist/localdevice/config.js.map +1 -1
- package/dist/localdevice/device.d.ts +7 -19
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +13 -27
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +19 -69
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +32 -58
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/local-launch.d.ts +39 -81
- package/dist/localdevice/local-launch.d.ts.map +1 -1
- package/dist/localdevice/local-launch.js +72 -104
- package/dist/localdevice/local-launch.js.map +1 -1
- package/dist/localdevice/network.d.ts +7 -15
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +10 -26
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/permission.d.ts +17 -60
- package/dist/localdevice/permission.d.ts.map +1 -1
- package/dist/localdevice/permission.js +52 -57
- package/dist/localdevice/permission.js.map +1 -1
- package/dist/localdevice/photo.d.ts +29 -193
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +172 -122
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/ssdp/ssdp.d.ts +9 -28
- package/dist/ssdp/ssdp.d.ts.map +1 -1
- package/dist/ssdp/ssdp.js +13 -32
- package/dist/ssdp/ssdp.js.map +1 -1
- package/dist/sys/OS_daemon.d.ts +11 -29
- package/dist/sys/OS_daemon.d.ts.map +1 -1
- package/dist/sys/OS_daemon.js +20 -37
- package/dist/sys/OS_daemon.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +33 -181
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +121 -141
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +13 -48
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +63 -68
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/event.d.ts +20 -92
- package/dist/sys/event.d.ts.map +1 -1
- package/dist/sys/event.js +40 -65
- package/dist/sys/event.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +34 -246
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +102 -125
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +27 -97
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +82 -93
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/message.d.ts +186 -0
- package/dist/sys/message.d.ts.map +1 -0
- package/dist/sys/message.js +493 -0
- package/dist/sys/message.js.map +1 -0
- package/dist/sys/network_manager.d.ts +17 -138
- package/dist/sys/network_manager.d.ts.map +1 -1
- package/dist/sys/network_manager.js +78 -72
- package/dist/sys/network_manager.js.map +1 -1
- package/dist/sys/package_manager.d.ts +41 -304
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +95 -121
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +61 -335
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +206 -215
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/settings.d.ts +68 -0
- package/dist/sys/settings.d.ts.map +1 -0
- package/dist/sys/settings.js +183 -0
- package/dist/sys/settings.js.map +1 -0
- package/dist/sys/snapd.d.ts +19 -106
- package/dist/sys/snapd.d.ts.map +1 -1
- package/dist/sys/snapd.js +68 -82
- package/dist/sys/snapd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
2
|
import { Empty } from "../google/protobuf/empty";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import _m0 from "protobufjs/minimal";
|
|
5
5
|
export interface MountArchiveRequest {
|
|
6
6
|
/** 要挂载的压缩文件的相对路径 */
|
|
7
7
|
srcPath: string;
|
|
@@ -38,35 +38,28 @@ export interface MountWebDavRequest {
|
|
|
38
38
|
password: string;
|
|
39
39
|
}
|
|
40
40
|
export interface UmountFilesystemRequest {
|
|
41
|
-
uuid
|
|
42
|
-
mountpoint
|
|
41
|
+
uuid: string | undefined;
|
|
42
|
+
mountpoint: string | undefined;
|
|
43
43
|
}
|
|
44
44
|
export declare const MountArchiveRequest: {
|
|
45
45
|
encode(message: MountArchiveRequest, writer?: _m0.Writer): _m0.Writer;
|
|
46
46
|
decode(input: _m0.Reader | Uint8Array, length?: number): MountArchiveRequest;
|
|
47
47
|
fromJSON(object: any): MountArchiveRequest;
|
|
48
48
|
toJSON(message: MountArchiveRequest): unknown;
|
|
49
|
-
|
|
49
|
+
fromPartial<I extends {
|
|
50
50
|
srcPath?: string;
|
|
51
51
|
mountpoint?: string;
|
|
52
52
|
} & {
|
|
53
53
|
srcPath?: string;
|
|
54
54
|
mountpoint?: string;
|
|
55
|
-
} & { [K in Exclude<keyof I, keyof MountArchiveRequest>]: never; }>(
|
|
56
|
-
fromPartial<I_1 extends {
|
|
57
|
-
srcPath?: string;
|
|
58
|
-
mountpoint?: string;
|
|
59
|
-
} & {
|
|
60
|
-
srcPath?: string;
|
|
61
|
-
mountpoint?: string;
|
|
62
|
-
} & { [K_1 in Exclude<keyof I_1, keyof MountArchiveRequest>]: never; }>(object: I_1): MountArchiveRequest;
|
|
55
|
+
} & { [K in Exclude<keyof I, keyof MountArchiveRequest>]: never; }>(object: I): MountArchiveRequest;
|
|
63
56
|
};
|
|
64
57
|
export declare const ListFilesystemsReply: {
|
|
65
58
|
encode(message: ListFilesystemsReply, writer?: _m0.Writer): _m0.Writer;
|
|
66
59
|
decode(input: _m0.Reader | Uint8Array, length?: number): ListFilesystemsReply;
|
|
67
60
|
fromJSON(object: any): ListFilesystemsReply;
|
|
68
61
|
toJSON(message: ListFilesystemsReply): unknown;
|
|
69
|
-
|
|
62
|
+
fromPartial<I extends {
|
|
70
63
|
umounted?: {
|
|
71
64
|
source?: string;
|
|
72
65
|
fstype?: string;
|
|
@@ -142,91 +135,14 @@ export declare const ListFilesystemsReply: {
|
|
|
142
135
|
uuid?: string | undefined;
|
|
143
136
|
mountpoint?: string | undefined;
|
|
144
137
|
}[]>]: never; };
|
|
145
|
-
} & { [K_4 in Exclude<keyof I, keyof ListFilesystemsReply>]: never; }>(
|
|
146
|
-
fromPartial<I_1 extends {
|
|
147
|
-
umounted?: {
|
|
148
|
-
source?: string;
|
|
149
|
-
fstype?: string;
|
|
150
|
-
name?: string;
|
|
151
|
-
size?: number;
|
|
152
|
-
uuid?: string | undefined;
|
|
153
|
-
mountpoint?: string | undefined;
|
|
154
|
-
}[];
|
|
155
|
-
mounted?: {
|
|
156
|
-
source?: string;
|
|
157
|
-
fstype?: string;
|
|
158
|
-
name?: string;
|
|
159
|
-
size?: number;
|
|
160
|
-
uuid?: string | undefined;
|
|
161
|
-
mountpoint?: string | undefined;
|
|
162
|
-
}[];
|
|
163
|
-
} & {
|
|
164
|
-
umounted?: {
|
|
165
|
-
source?: string;
|
|
166
|
-
fstype?: string;
|
|
167
|
-
name?: string;
|
|
168
|
-
size?: number;
|
|
169
|
-
uuid?: string | undefined;
|
|
170
|
-
mountpoint?: string | undefined;
|
|
171
|
-
}[] & ({
|
|
172
|
-
source?: string;
|
|
173
|
-
fstype?: string;
|
|
174
|
-
name?: string;
|
|
175
|
-
size?: number;
|
|
176
|
-
uuid?: string | undefined;
|
|
177
|
-
mountpoint?: string | undefined;
|
|
178
|
-
} & {
|
|
179
|
-
source?: string;
|
|
180
|
-
fstype?: string;
|
|
181
|
-
name?: string;
|
|
182
|
-
size?: number;
|
|
183
|
-
uuid?: string | undefined;
|
|
184
|
-
mountpoint?: string | undefined;
|
|
185
|
-
} & { [K_5 in Exclude<keyof I_1["umounted"][number], keyof Filesystem>]: never; })[] & { [K_6 in Exclude<keyof I_1["umounted"], keyof {
|
|
186
|
-
source?: string;
|
|
187
|
-
fstype?: string;
|
|
188
|
-
name?: string;
|
|
189
|
-
size?: number;
|
|
190
|
-
uuid?: string | undefined;
|
|
191
|
-
mountpoint?: string | undefined;
|
|
192
|
-
}[]>]: never; };
|
|
193
|
-
mounted?: {
|
|
194
|
-
source?: string;
|
|
195
|
-
fstype?: string;
|
|
196
|
-
name?: string;
|
|
197
|
-
size?: number;
|
|
198
|
-
uuid?: string | undefined;
|
|
199
|
-
mountpoint?: string | undefined;
|
|
200
|
-
}[] & ({
|
|
201
|
-
source?: string;
|
|
202
|
-
fstype?: string;
|
|
203
|
-
name?: string;
|
|
204
|
-
size?: number;
|
|
205
|
-
uuid?: string | undefined;
|
|
206
|
-
mountpoint?: string | undefined;
|
|
207
|
-
} & {
|
|
208
|
-
source?: string;
|
|
209
|
-
fstype?: string;
|
|
210
|
-
name?: string;
|
|
211
|
-
size?: number;
|
|
212
|
-
uuid?: string | undefined;
|
|
213
|
-
mountpoint?: string | undefined;
|
|
214
|
-
} & { [K_7 in Exclude<keyof I_1["mounted"][number], keyof Filesystem>]: never; })[] & { [K_8 in Exclude<keyof I_1["mounted"], keyof {
|
|
215
|
-
source?: string;
|
|
216
|
-
fstype?: string;
|
|
217
|
-
name?: string;
|
|
218
|
-
size?: number;
|
|
219
|
-
uuid?: string | undefined;
|
|
220
|
-
mountpoint?: string | undefined;
|
|
221
|
-
}[]>]: never; };
|
|
222
|
-
} & { [K_9 in Exclude<keyof I_1, keyof ListFilesystemsReply>]: never; }>(object: I_1): ListFilesystemsReply;
|
|
138
|
+
} & { [K_4 in Exclude<keyof I, keyof ListFilesystemsReply>]: never; }>(object: I): ListFilesystemsReply;
|
|
223
139
|
};
|
|
224
140
|
export declare const Filesystem: {
|
|
225
141
|
encode(message: Filesystem, writer?: _m0.Writer): _m0.Writer;
|
|
226
142
|
decode(input: _m0.Reader | Uint8Array, length?: number): Filesystem;
|
|
227
143
|
fromJSON(object: any): Filesystem;
|
|
228
144
|
toJSON(message: Filesystem): unknown;
|
|
229
|
-
|
|
145
|
+
fromPartial<I extends {
|
|
230
146
|
source?: string;
|
|
231
147
|
fstype?: string;
|
|
232
148
|
name?: string;
|
|
@@ -240,45 +156,25 @@ export declare const Filesystem: {
|
|
|
240
156
|
size?: number;
|
|
241
157
|
uuid?: string | undefined;
|
|
242
158
|
mountpoint?: string | undefined;
|
|
243
|
-
} & { [K in Exclude<keyof I, keyof Filesystem>]: never; }>(
|
|
244
|
-
fromPartial<I_1 extends {
|
|
245
|
-
source?: string;
|
|
246
|
-
fstype?: string;
|
|
247
|
-
name?: string;
|
|
248
|
-
size?: number;
|
|
249
|
-
uuid?: string | undefined;
|
|
250
|
-
mountpoint?: string | undefined;
|
|
251
|
-
} & {
|
|
252
|
-
source?: string;
|
|
253
|
-
fstype?: string;
|
|
254
|
-
name?: string;
|
|
255
|
-
size?: number;
|
|
256
|
-
uuid?: string | undefined;
|
|
257
|
-
mountpoint?: string | undefined;
|
|
258
|
-
} & { [K_1 in Exclude<keyof I_1, keyof Filesystem>]: never; }>(object: I_1): Filesystem;
|
|
159
|
+
} & { [K in Exclude<keyof I, keyof Filesystem>]: never; }>(object: I): Filesystem;
|
|
259
160
|
};
|
|
260
161
|
export declare const MountDiskRequest: {
|
|
261
162
|
encode(message: MountDiskRequest, writer?: _m0.Writer): _m0.Writer;
|
|
262
163
|
decode(input: _m0.Reader | Uint8Array, length?: number): MountDiskRequest;
|
|
263
164
|
fromJSON(object: any): MountDiskRequest;
|
|
264
165
|
toJSON(message: MountDiskRequest): unknown;
|
|
265
|
-
|
|
266
|
-
uuid?: string;
|
|
267
|
-
} & {
|
|
268
|
-
uuid?: string;
|
|
269
|
-
} & { [K in Exclude<keyof I, "uuid">]: never; }>(base?: I): MountDiskRequest;
|
|
270
|
-
fromPartial<I_1 extends {
|
|
166
|
+
fromPartial<I extends {
|
|
271
167
|
uuid?: string;
|
|
272
168
|
} & {
|
|
273
169
|
uuid?: string;
|
|
274
|
-
} & { [
|
|
170
|
+
} & { [K in Exclude<keyof I, "uuid">]: never; }>(object: I): MountDiskRequest;
|
|
275
171
|
};
|
|
276
172
|
export declare const MountWebDavRequest: {
|
|
277
173
|
encode(message: MountWebDavRequest, writer?: _m0.Writer): _m0.Writer;
|
|
278
174
|
decode(input: _m0.Reader | Uint8Array, length?: number): MountWebDavRequest;
|
|
279
175
|
fromJSON(object: any): MountWebDavRequest;
|
|
280
176
|
toJSON(message: MountWebDavRequest): unknown;
|
|
281
|
-
|
|
177
|
+
fromPartial<I extends {
|
|
282
178
|
url?: string;
|
|
283
179
|
mountpoint?: string;
|
|
284
180
|
username?: string;
|
|
@@ -288,38 +184,20 @@ export declare const MountWebDavRequest: {
|
|
|
288
184
|
mountpoint?: string;
|
|
289
185
|
username?: string;
|
|
290
186
|
password?: string;
|
|
291
|
-
} & { [K in Exclude<keyof I, keyof MountWebDavRequest>]: never; }>(
|
|
292
|
-
fromPartial<I_1 extends {
|
|
293
|
-
url?: string;
|
|
294
|
-
mountpoint?: string;
|
|
295
|
-
username?: string;
|
|
296
|
-
password?: string;
|
|
297
|
-
} & {
|
|
298
|
-
url?: string;
|
|
299
|
-
mountpoint?: string;
|
|
300
|
-
username?: string;
|
|
301
|
-
password?: string;
|
|
302
|
-
} & { [K_1 in Exclude<keyof I_1, keyof MountWebDavRequest>]: never; }>(object: I_1): MountWebDavRequest;
|
|
187
|
+
} & { [K in Exclude<keyof I, keyof MountWebDavRequest>]: never; }>(object: I): MountWebDavRequest;
|
|
303
188
|
};
|
|
304
189
|
export declare const UmountFilesystemRequest: {
|
|
305
190
|
encode(message: UmountFilesystemRequest, writer?: _m0.Writer): _m0.Writer;
|
|
306
191
|
decode(input: _m0.Reader | Uint8Array, length?: number): UmountFilesystemRequest;
|
|
307
192
|
fromJSON(object: any): UmountFilesystemRequest;
|
|
308
193
|
toJSON(message: UmountFilesystemRequest): unknown;
|
|
309
|
-
|
|
310
|
-
uuid?: string | undefined;
|
|
311
|
-
mountpoint?: string | undefined;
|
|
312
|
-
} & {
|
|
313
|
-
uuid?: string | undefined;
|
|
314
|
-
mountpoint?: string | undefined;
|
|
315
|
-
} & { [K in Exclude<keyof I, keyof UmountFilesystemRequest>]: never; }>(base?: I): UmountFilesystemRequest;
|
|
316
|
-
fromPartial<I_1 extends {
|
|
194
|
+
fromPartial<I extends {
|
|
317
195
|
uuid?: string | undefined;
|
|
318
196
|
mountpoint?: string | undefined;
|
|
319
197
|
} & {
|
|
320
198
|
uuid?: string | undefined;
|
|
321
199
|
mountpoint?: string | undefined;
|
|
322
|
-
} & { [
|
|
200
|
+
} & { [K in Exclude<keyof I, keyof UmountFilesystemRequest>]: never; }>(object: I): UmountFilesystemRequest;
|
|
323
201
|
};
|
|
324
202
|
/** 外围设备管理服务 */
|
|
325
203
|
export interface PeripheralDeviceService {
|
|
@@ -357,7 +235,7 @@ interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any>
|
|
|
357
235
|
requestStream: any;
|
|
358
236
|
responseStream: any;
|
|
359
237
|
}
|
|
360
|
-
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
238
|
+
declare type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
361
239
|
interface Rpc {
|
|
362
240
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
363
241
|
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Observable<any>;
|
|
@@ -375,12 +253,11 @@ export declare class GrpcWebImpl {
|
|
|
375
253
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
376
254
|
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Observable<any>;
|
|
377
255
|
}
|
|
378
|
-
declare
|
|
379
|
-
type
|
|
380
|
-
type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
256
|
+
declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
257
|
+
declare type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
381
258
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
382
259
|
} : Partial<T>;
|
|
383
|
-
export declare class GrpcWebError extends
|
|
260
|
+
export declare class GrpcWebError extends Error {
|
|
384
261
|
code: grpc.Code;
|
|
385
262
|
metadata: grpc.Metadata;
|
|
386
263
|
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"peripheral_device.d.ts","sourceRoot":"","sources":["../../common/peripheral_device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"peripheral_device.d.ts","sourceRoot":"","sources":["../../common/peripheral_device.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAIjD,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,MAAM,WAAW,mBAAmB;IAClC,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,oBAAoB;IACpB,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,qBAAqB;IACrB,OAAO,EAAE,UAAU,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,0BAA0B;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,oEAAoE;IACpE,IAAI,EAAE,MAAM,CAA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,EAAE,CAAC;KAC/B;IAMH,KAAK,CAAC,CAAC,SAAS,wBAAwB,EACtC,UAAU,EAAE,CAAC,EACb,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,SAAS,GAClC,OAAO,CAAC,GAAG,CAAC;IAgCf,MAAM,CAAC,CAAC,SAAS,wBAAwB,EACvC,UAAU,EAAE,CAAC,EACb,QAAQ,EAAE,GAAG,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,SAAS,GAClC,UAAU,CAAC,GAAG,CAAC;CA0CnB;AAaD,aAAK,OAAO,GACR,IAAI,GACJ,QAAQ,GACR,UAAU,GACV,MAAM,GACN,MAAM,GACN,OAAO,GACP,SAAS,CAAC;AAEd,aAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GACnC,CAAC,GACD,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GACxB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACrB,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAChC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC7B,CAAC,SAAS,EAAE,GACZ;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACtC,OAAO,CAAC,CAAC,CAAC,CAAC;AAyBf,qBAAa,YAAa,SAAQ,KAAK;IAG5B,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;gBAF9B,OAAO,EAAE,MAAM,EACR,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;CAIjC"}
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.GrpcWebError = exports.GrpcWebImpl = exports.PeripheralDeviceServiceMountArchiveDesc = exports.PeripheralDeviceServiceUmountFilesystemDesc = exports.PeripheralDeviceServiceMountWebDavDesc = exports.PeripheralDeviceServiceMountDiskDesc = exports.PeripheralDeviceServiceListFilesystemsDesc = exports.PeripheralDeviceServiceDesc = exports.PeripheralDeviceServiceClientImpl = exports.UmountFilesystemRequest = exports.MountWebDavRequest = exports.MountDiskRequest = exports.Filesystem = exports.ListFilesystemsReply = exports.MountArchiveRequest = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
|
+
const empty_1 = require("../google/protobuf/empty");
|
|
9
10
|
const browser_headers_1 = require("browser-headers");
|
|
11
|
+
const operators_1 = require("rxjs/operators");
|
|
10
12
|
const long_1 = __importDefault(require("long"));
|
|
11
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
12
13
|
const rxjs_1 = require("rxjs");
|
|
13
|
-
const
|
|
14
|
-
const empty_1 = require("../google/protobuf/empty");
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
function createBaseMountArchiveRequest() {
|
|
16
16
|
return { srcPath: "", mountpoint: "" };
|
|
17
17
|
}
|
|
@@ -57,9 +57,6 @@ exports.MountArchiveRequest = {
|
|
|
57
57
|
message.mountpoint !== undefined && (obj.mountpoint = message.mountpoint);
|
|
58
58
|
return obj;
|
|
59
59
|
},
|
|
60
|
-
create(base) {
|
|
61
|
-
return exports.MountArchiveRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
62
|
-
},
|
|
63
60
|
fromPartial(object) {
|
|
64
61
|
var _a, _b;
|
|
65
62
|
const message = createBaseMountArchiveRequest();
|
|
@@ -103,8 +100,12 @@ exports.ListFilesystemsReply = {
|
|
|
103
100
|
},
|
|
104
101
|
fromJSON(object) {
|
|
105
102
|
return {
|
|
106
|
-
umounted: Array.isArray(object === null || object === void 0 ? void 0 : object.umounted)
|
|
107
|
-
|
|
103
|
+
umounted: Array.isArray(object === null || object === void 0 ? void 0 : object.umounted)
|
|
104
|
+
? object.umounted.map((e) => exports.Filesystem.fromJSON(e))
|
|
105
|
+
: [],
|
|
106
|
+
mounted: Array.isArray(object === null || object === void 0 ? void 0 : object.mounted)
|
|
107
|
+
? object.mounted.map((e) => exports.Filesystem.fromJSON(e))
|
|
108
|
+
: [],
|
|
108
109
|
};
|
|
109
110
|
},
|
|
110
111
|
toJSON(message) {
|
|
@@ -123,19 +124,25 @@ exports.ListFilesystemsReply = {
|
|
|
123
124
|
}
|
|
124
125
|
return obj;
|
|
125
126
|
},
|
|
126
|
-
create(base) {
|
|
127
|
-
return exports.ListFilesystemsReply.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
128
|
-
},
|
|
129
127
|
fromPartial(object) {
|
|
130
128
|
var _a, _b;
|
|
131
129
|
const message = createBaseListFilesystemsReply();
|
|
132
|
-
message.umounted =
|
|
133
|
-
|
|
130
|
+
message.umounted =
|
|
131
|
+
((_a = object.umounted) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Filesystem.fromPartial(e))) || [];
|
|
132
|
+
message.mounted =
|
|
133
|
+
((_b = object.mounted) === null || _b === void 0 ? void 0 : _b.map((e) => exports.Filesystem.fromPartial(e))) || [];
|
|
134
134
|
return message;
|
|
135
135
|
},
|
|
136
136
|
};
|
|
137
137
|
function createBaseFilesystem() {
|
|
138
|
-
return {
|
|
138
|
+
return {
|
|
139
|
+
source: "",
|
|
140
|
+
fstype: "",
|
|
141
|
+
name: "",
|
|
142
|
+
size: 0,
|
|
143
|
+
uuid: undefined,
|
|
144
|
+
mountpoint: undefined,
|
|
145
|
+
};
|
|
139
146
|
}
|
|
140
147
|
exports.Filesystem = {
|
|
141
148
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -198,7 +205,9 @@ exports.Filesystem = {
|
|
|
198
205
|
name: isSet(object.name) ? String(object.name) : "",
|
|
199
206
|
size: isSet(object.size) ? Number(object.size) : 0,
|
|
200
207
|
uuid: isSet(object.uuid) ? String(object.uuid) : undefined,
|
|
201
|
-
mountpoint: isSet(object.mountpoint)
|
|
208
|
+
mountpoint: isSet(object.mountpoint)
|
|
209
|
+
? String(object.mountpoint)
|
|
210
|
+
: undefined,
|
|
202
211
|
};
|
|
203
212
|
},
|
|
204
213
|
toJSON(message) {
|
|
@@ -211,9 +220,6 @@ exports.Filesystem = {
|
|
|
211
220
|
message.mountpoint !== undefined && (obj.mountpoint = message.mountpoint);
|
|
212
221
|
return obj;
|
|
213
222
|
},
|
|
214
|
-
create(base) {
|
|
215
|
-
return exports.Filesystem.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
216
|
-
},
|
|
217
223
|
fromPartial(object) {
|
|
218
224
|
var _a, _b, _c, _d, _e, _f;
|
|
219
225
|
const message = createBaseFilesystem();
|
|
@@ -254,16 +260,15 @@ exports.MountDiskRequest = {
|
|
|
254
260
|
return message;
|
|
255
261
|
},
|
|
256
262
|
fromJSON(object) {
|
|
257
|
-
return {
|
|
263
|
+
return {
|
|
264
|
+
uuid: isSet(object.uuid) ? String(object.uuid) : "",
|
|
265
|
+
};
|
|
258
266
|
},
|
|
259
267
|
toJSON(message) {
|
|
260
268
|
const obj = {};
|
|
261
269
|
message.uuid !== undefined && (obj.uuid = message.uuid);
|
|
262
270
|
return obj;
|
|
263
271
|
},
|
|
264
|
-
create(base) {
|
|
265
|
-
return exports.MountDiskRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
266
|
-
},
|
|
267
272
|
fromPartial(object) {
|
|
268
273
|
var _a;
|
|
269
274
|
const message = createBaseMountDiskRequest();
|
|
@@ -332,9 +337,6 @@ exports.MountWebDavRequest = {
|
|
|
332
337
|
message.password !== undefined && (obj.password = message.password);
|
|
333
338
|
return obj;
|
|
334
339
|
},
|
|
335
|
-
create(base) {
|
|
336
|
-
return exports.MountWebDavRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
337
|
-
},
|
|
338
340
|
fromPartial(object) {
|
|
339
341
|
var _a, _b, _c, _d;
|
|
340
342
|
const message = createBaseMountWebDavRequest();
|
|
@@ -381,7 +383,9 @@ exports.UmountFilesystemRequest = {
|
|
|
381
383
|
fromJSON(object) {
|
|
382
384
|
return {
|
|
383
385
|
uuid: isSet(object.uuid) ? String(object.uuid) : undefined,
|
|
384
|
-
mountpoint: isSet(object.mountpoint)
|
|
386
|
+
mountpoint: isSet(object.mountpoint)
|
|
387
|
+
? String(object.mountpoint)
|
|
388
|
+
: undefined,
|
|
385
389
|
};
|
|
386
390
|
},
|
|
387
391
|
toJSON(message) {
|
|
@@ -390,9 +394,6 @@ exports.UmountFilesystemRequest = {
|
|
|
390
394
|
message.mountpoint !== undefined && (obj.mountpoint = message.mountpoint);
|
|
391
395
|
return obj;
|
|
392
396
|
},
|
|
393
|
-
create(base) {
|
|
394
|
-
return exports.UmountFilesystemRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
395
|
-
},
|
|
396
397
|
fromPartial(object) {
|
|
397
398
|
var _a, _b;
|
|
398
399
|
const message = createBaseUmountFilesystemRequest();
|
|
@@ -427,7 +428,9 @@ class PeripheralDeviceServiceClientImpl {
|
|
|
427
428
|
}
|
|
428
429
|
}
|
|
429
430
|
exports.PeripheralDeviceServiceClientImpl = PeripheralDeviceServiceClientImpl;
|
|
430
|
-
exports.PeripheralDeviceServiceDesc = {
|
|
431
|
+
exports.PeripheralDeviceServiceDesc = {
|
|
432
|
+
serviceName: "cloud.lazycat.apis.common.PeripheralDeviceService",
|
|
433
|
+
};
|
|
431
434
|
exports.PeripheralDeviceServiceListFilesystemsDesc = {
|
|
432
435
|
methodName: "ListFilesystems",
|
|
433
436
|
service: exports.PeripheralDeviceServiceDesc,
|
|
@@ -440,9 +443,8 @@ exports.PeripheralDeviceServiceListFilesystemsDesc = {
|
|
|
440
443
|
},
|
|
441
444
|
responseType: {
|
|
442
445
|
deserializeBinary(data) {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
return value;
|
|
446
|
+
return Object.assign(Object.assign({}, exports.ListFilesystemsReply.decode(data)), { toObject() {
|
|
447
|
+
return this;
|
|
446
448
|
} });
|
|
447
449
|
},
|
|
448
450
|
},
|
|
@@ -459,9 +461,8 @@ exports.PeripheralDeviceServiceMountDiskDesc = {
|
|
|
459
461
|
},
|
|
460
462
|
responseType: {
|
|
461
463
|
deserializeBinary(data) {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
return value;
|
|
464
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
465
|
+
return this;
|
|
465
466
|
} });
|
|
466
467
|
},
|
|
467
468
|
},
|
|
@@ -478,9 +479,8 @@ exports.PeripheralDeviceServiceMountWebDavDesc = {
|
|
|
478
479
|
},
|
|
479
480
|
responseType: {
|
|
480
481
|
deserializeBinary(data) {
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
return value;
|
|
482
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
483
|
+
return this;
|
|
484
484
|
} });
|
|
485
485
|
},
|
|
486
486
|
},
|
|
@@ -497,9 +497,8 @@ exports.PeripheralDeviceServiceUmountFilesystemDesc = {
|
|
|
497
497
|
},
|
|
498
498
|
responseType: {
|
|
499
499
|
deserializeBinary(data) {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
return value;
|
|
500
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
501
|
+
return this;
|
|
503
502
|
} });
|
|
504
503
|
},
|
|
505
504
|
},
|
|
@@ -516,9 +515,8 @@ exports.PeripheralDeviceServiceMountArchiveDesc = {
|
|
|
516
515
|
},
|
|
517
516
|
responseType: {
|
|
518
517
|
deserializeBinary(data) {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
return value;
|
|
518
|
+
return Object.assign(Object.assign({}, empty_1.Empty.decode(data)), { toObject() {
|
|
519
|
+
return this;
|
|
522
520
|
} });
|
|
523
521
|
},
|
|
524
522
|
},
|
|
@@ -543,7 +541,7 @@ class GrpcWebImpl {
|
|
|
543
541
|
debug: this.options.debug,
|
|
544
542
|
onEnd: function (response) {
|
|
545
543
|
if (response.status === grpc_web_1.grpc.Code.OK) {
|
|
546
|
-
resolve(response.message
|
|
544
|
+
resolve(response.message);
|
|
547
545
|
}
|
|
548
546
|
else {
|
|
549
547
|
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
@@ -562,7 +560,7 @@ class GrpcWebImpl {
|
|
|
562
560
|
? new browser_headers_1.BrowserHeaders(Object.assign(Object.assign({}, (_a = this.options) === null || _a === void 0 ? void 0 : _a.metadata.headersMap), metadata === null || metadata === void 0 ? void 0 : metadata.headersMap))
|
|
563
561
|
: metadata || this.options.metadata;
|
|
564
562
|
return new rxjs_1.Observable((observer) => {
|
|
565
|
-
const upStream = (
|
|
563
|
+
const upStream = () => {
|
|
566
564
|
const client = grpc_web_1.grpc.invoke(methodDesc, {
|
|
567
565
|
host: this.host,
|
|
568
566
|
request,
|
|
@@ -586,30 +584,26 @@ class GrpcWebImpl {
|
|
|
586
584
|
},
|
|
587
585
|
});
|
|
588
586
|
observer.add(() => client.close());
|
|
589
|
-
}
|
|
587
|
+
};
|
|
590
588
|
upStream();
|
|
591
589
|
}).pipe((0, operators_1.share)());
|
|
592
590
|
}
|
|
593
591
|
}
|
|
594
592
|
exports.GrpcWebImpl = GrpcWebImpl;
|
|
595
|
-
var
|
|
596
|
-
if (typeof globalThis !== "undefined")
|
|
593
|
+
var globalThis = (() => {
|
|
594
|
+
if (typeof globalThis !== "undefined")
|
|
597
595
|
return globalThis;
|
|
598
|
-
|
|
599
|
-
if (typeof self !== "undefined") {
|
|
596
|
+
if (typeof self !== "undefined")
|
|
600
597
|
return self;
|
|
601
|
-
|
|
602
|
-
if (typeof window !== "undefined") {
|
|
598
|
+
if (typeof window !== "undefined")
|
|
603
599
|
return window;
|
|
604
|
-
|
|
605
|
-
if (typeof global !== "undefined") {
|
|
600
|
+
if (typeof global !== "undefined")
|
|
606
601
|
return global;
|
|
607
|
-
}
|
|
608
602
|
throw "Unable to locate global object";
|
|
609
603
|
})();
|
|
610
604
|
function longToNumber(long) {
|
|
611
605
|
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
612
|
-
throw new
|
|
606
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
613
607
|
}
|
|
614
608
|
return long.toNumber();
|
|
615
609
|
}
|
|
@@ -620,7 +614,7 @@ if (minimal_1.default.util.Long !== long_1.default) {
|
|
|
620
614
|
function isSet(value) {
|
|
621
615
|
return value !== null && value !== undefined;
|
|
622
616
|
}
|
|
623
|
-
class GrpcWebError extends
|
|
617
|
+
class GrpcWebError extends Error {
|
|
624
618
|
constructor(message, code, metadata) {
|
|
625
619
|
super(message);
|
|
626
620
|
this.code = code;
|