@lazycatcloud/sdk 0.1.21 → 0.1.22
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/box.d.ts +12 -6
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +22 -39
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +10 -4
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +25 -37
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +13 -7
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +27 -39
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/gateway.d.ts +12 -6
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +23 -37
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +15 -9
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +22 -39
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/security_context.d.ts +15 -9
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +25 -39
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +18 -12
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +33 -47
- package/dist/common/users.js.map +1 -1
- package/dist/google/protobuf/descriptor.d.ts +1644 -1644
- package/dist/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/google/protobuf/descriptor.js +78 -95
- package/dist/google/protobuf/descriptor.js.map +1 -1
- package/dist/google/protobuf/empty.d.ts +2 -2
- package/dist/google/protobuf/empty.d.ts.map +1 -1
- package/dist/google/protobuf/empty.js +5 -25
- package/dist/google/protobuf/empty.js.map +1 -1
- package/dist/google/protobuf/timestamp.d.ts +2 -2
- package/dist/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/google/protobuf/timestamp.js +6 -29
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +11 -5
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +47 -53
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/device.d.ts +8 -2
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +15 -29
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +12 -6
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +23 -37
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/network.d.ts +8 -2
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +15 -29
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/photo.d.ts +25 -19
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +44 -59
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/sys/OS_snapshot.d.ts +26 -20
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +42 -59
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +13 -7
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +22 -39
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +35 -29
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +61 -69
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +17 -11
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +30 -47
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/package_manager.d.ts +34 -19
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +52 -56
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +37 -31
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +71 -83
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/permissions.d.ts +0 -93
- package/dist/common/permissions.d.ts.map +0 -1
- package/dist/common/permissions.js +0 -267
- package/dist/common/permissions.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
2
|
import { Empty } from "../google/protobuf/empty";
|
|
3
|
-
import
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
4
|
export declare enum AppStatus {
|
|
5
5
|
NotInstalled = 0,
|
|
6
6
|
Downloading = 1,
|
|
@@ -71,6 +71,8 @@ export interface AppInfo {
|
|
|
71
71
|
downloadProgress?: AppDownloadProgress | undefined;
|
|
72
72
|
/** 应用是否是预装应用(预装应用不可卸载) */
|
|
73
73
|
builtin?: boolean | undefined;
|
|
74
|
+
/** 如果应用状态为安装失败,失败的原因(如果状态不是失败则为空) */
|
|
75
|
+
errorReason?: string | undefined;
|
|
74
76
|
}
|
|
75
77
|
export interface QueryApplicationRequest {
|
|
76
78
|
/** 需要查询的 AppId 的列表,如果列表为空,则查询所有的应用 */
|
|
@@ -127,7 +129,7 @@ export declare const PkgURL: {
|
|
|
127
129
|
} & {
|
|
128
130
|
url?: string;
|
|
129
131
|
sha256?: string;
|
|
130
|
-
} &
|
|
132
|
+
} & { [K in Exclude<keyof I, keyof PkgURL>]: never; }>(object: I): PkgURL;
|
|
131
133
|
};
|
|
132
134
|
export declare const InstallRequest: {
|
|
133
135
|
encode(message: InstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -144,7 +146,7 @@ export declare const InstallRequest: {
|
|
|
144
146
|
url?: string;
|
|
145
147
|
sha256?: string;
|
|
146
148
|
subdomain?: string | undefined;
|
|
147
|
-
} &
|
|
149
|
+
} & { [K in Exclude<keyof I, keyof InstallRequest>]: never; }>(object: I): InstallRequest;
|
|
148
150
|
};
|
|
149
151
|
export declare const UninstallRequest: {
|
|
150
152
|
encode(message: UninstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -157,7 +159,7 @@ export declare const UninstallRequest: {
|
|
|
157
159
|
} & {
|
|
158
160
|
appid?: string;
|
|
159
161
|
clearData?: boolean;
|
|
160
|
-
} &
|
|
162
|
+
} & { [K in Exclude<keyof I, keyof UninstallRequest>]: never; }>(object: I): UninstallRequest;
|
|
161
163
|
};
|
|
162
164
|
export declare const AppDownloadProgress: {
|
|
163
165
|
encode(message: AppDownloadProgress, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -170,7 +172,7 @@ export declare const AppDownloadProgress: {
|
|
|
170
172
|
} & {
|
|
171
173
|
current?: number;
|
|
172
174
|
total?: number;
|
|
173
|
-
} &
|
|
175
|
+
} & { [K in Exclude<keyof I, keyof AppDownloadProgress>]: never; }>(object: I): AppDownloadProgress;
|
|
174
176
|
};
|
|
175
177
|
export declare const AppInfo: {
|
|
176
178
|
encode(message: AppInfo, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -190,6 +192,7 @@ export declare const AppInfo: {
|
|
|
190
192
|
total?: number;
|
|
191
193
|
};
|
|
192
194
|
builtin?: boolean | undefined;
|
|
195
|
+
errorReason?: string | undefined;
|
|
193
196
|
} & {
|
|
194
197
|
appid?: string;
|
|
195
198
|
status?: AppStatus;
|
|
@@ -204,9 +207,10 @@ export declare const AppInfo: {
|
|
|
204
207
|
} & {
|
|
205
208
|
current?: number;
|
|
206
209
|
total?: number;
|
|
207
|
-
} &
|
|
210
|
+
} & { [K in Exclude<keyof I["downloadProgress"], keyof AppDownloadProgress>]: never; };
|
|
208
211
|
builtin?: boolean | undefined;
|
|
209
|
-
|
|
212
|
+
errorReason?: string | undefined;
|
|
213
|
+
} & { [K_1 in Exclude<keyof I, keyof AppInfo>]: never; }>(object: I): AppInfo;
|
|
210
214
|
};
|
|
211
215
|
export declare const QueryApplicationRequest: {
|
|
212
216
|
encode(message: QueryApplicationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -216,8 +220,8 @@ export declare const QueryApplicationRequest: {
|
|
|
216
220
|
fromPartial<I extends {
|
|
217
221
|
appidList?: string[];
|
|
218
222
|
} & {
|
|
219
|
-
appidList?: string[] & string[] &
|
|
220
|
-
} &
|
|
223
|
+
appidList?: string[] & string[] & { [K in Exclude<keyof I["appidList"], keyof string[]>]: never; };
|
|
224
|
+
} & { [K_1 in Exclude<keyof I, "appidList">]: never; }>(object: I): QueryApplicationRequest;
|
|
221
225
|
};
|
|
222
226
|
export declare const QueryApplicationResponse: {
|
|
223
227
|
encode(message: QueryApplicationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -238,6 +242,7 @@ export declare const QueryApplicationResponse: {
|
|
|
238
242
|
total?: number;
|
|
239
243
|
};
|
|
240
244
|
builtin?: boolean | undefined;
|
|
245
|
+
errorReason?: string | undefined;
|
|
241
246
|
}[];
|
|
242
247
|
} & {
|
|
243
248
|
infoList?: {
|
|
@@ -253,6 +258,7 @@ export declare const QueryApplicationResponse: {
|
|
|
253
258
|
total?: number;
|
|
254
259
|
};
|
|
255
260
|
builtin?: boolean | undefined;
|
|
261
|
+
errorReason?: string | undefined;
|
|
256
262
|
}[] & ({
|
|
257
263
|
appid?: string;
|
|
258
264
|
status?: AppStatus;
|
|
@@ -266,6 +272,7 @@ export declare const QueryApplicationResponse: {
|
|
|
266
272
|
total?: number;
|
|
267
273
|
};
|
|
268
274
|
builtin?: boolean | undefined;
|
|
275
|
+
errorReason?: string | undefined;
|
|
269
276
|
} & {
|
|
270
277
|
appid?: string;
|
|
271
278
|
status?: AppStatus;
|
|
@@ -280,9 +287,10 @@ export declare const QueryApplicationResponse: {
|
|
|
280
287
|
} & {
|
|
281
288
|
current?: number;
|
|
282
289
|
total?: number;
|
|
283
|
-
} &
|
|
290
|
+
} & { [K in Exclude<keyof I["infoList"][number]["downloadProgress"], keyof AppDownloadProgress>]: never; };
|
|
284
291
|
builtin?: boolean | undefined;
|
|
285
|
-
|
|
292
|
+
errorReason?: string | undefined;
|
|
293
|
+
} & { [K_1 in Exclude<keyof I["infoList"][number], keyof AppInfo>]: never; })[] & { [K_2 in Exclude<keyof I["infoList"], keyof {
|
|
286
294
|
appid?: string;
|
|
287
295
|
status?: AppStatus;
|
|
288
296
|
version?: string | undefined;
|
|
@@ -295,8 +303,9 @@ export declare const QueryApplicationResponse: {
|
|
|
295
303
|
total?: number;
|
|
296
304
|
};
|
|
297
305
|
builtin?: boolean | undefined;
|
|
298
|
-
|
|
299
|
-
|
|
306
|
+
errorReason?: string | undefined;
|
|
307
|
+
}[]>]: never; };
|
|
308
|
+
} & { [K_3 in Exclude<keyof I, "infoList">]: never; }>(object: I): QueryApplicationResponse;
|
|
300
309
|
};
|
|
301
310
|
export declare const QueryAppStorageUsageRequest: {
|
|
302
311
|
encode(message: QueryAppStorageUsageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -317,7 +326,7 @@ export declare const QueryAppStorageUsageRequest: {
|
|
|
317
326
|
needCache?: boolean;
|
|
318
327
|
needTmp?: boolean;
|
|
319
328
|
needUserdata?: boolean;
|
|
320
|
-
} &
|
|
329
|
+
} & { [K in Exclude<keyof I, keyof QueryAppStorageUsageRequest>]: never; }>(object: I): QueryAppStorageUsageRequest;
|
|
321
330
|
};
|
|
322
331
|
export declare const AppStorageUsage: {
|
|
323
332
|
encode(message: AppStorageUsage, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -341,8 +350,8 @@ export declare const AppStorageUsage: {
|
|
|
341
350
|
[x: string]: number;
|
|
342
351
|
} & {
|
|
343
352
|
[x: string]: number;
|
|
344
|
-
} &
|
|
345
|
-
} &
|
|
353
|
+
} & { [K in Exclude<keyof I["userdata"], string | number>]: never; };
|
|
354
|
+
} & { [K_1 in Exclude<keyof I, keyof AppStorageUsage>]: never; }>(object: I): AppStorageUsage;
|
|
346
355
|
};
|
|
347
356
|
export declare const AppStorageUsage_UserdataEntry: {
|
|
348
357
|
encode(message: AppStorageUsage_UserdataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -355,7 +364,7 @@ export declare const AppStorageUsage_UserdataEntry: {
|
|
|
355
364
|
} & {
|
|
356
365
|
key?: string;
|
|
357
366
|
value?: number;
|
|
358
|
-
} &
|
|
367
|
+
} & { [K in Exclude<keyof I, keyof AppStorageUsage_UserdataEntry>]: never; }>(object: I): AppStorageUsage_UserdataEntry;
|
|
359
368
|
};
|
|
360
369
|
export declare const SetUserPermissionsRequest: {
|
|
361
370
|
encode(message: SetUserPermissionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -370,7 +379,7 @@ export declare const SetUserPermissionsRequest: {
|
|
|
370
379
|
uid?: string;
|
|
371
380
|
allowInstallApp?: boolean;
|
|
372
381
|
allowUninstallApp?: boolean;
|
|
373
|
-
} &
|
|
382
|
+
} & { [K in Exclude<keyof I, keyof SetUserPermissionsRequest>]: never; }>(object: I): SetUserPermissionsRequest;
|
|
374
383
|
};
|
|
375
384
|
export declare const Appid: {
|
|
376
385
|
encode(message: Appid, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -381,7 +390,7 @@ export declare const Appid: {
|
|
|
381
390
|
appid?: string;
|
|
382
391
|
} & {
|
|
383
392
|
appid?: string;
|
|
384
|
-
} &
|
|
393
|
+
} & { [K in Exclude<keyof I, "appid">]: never; }>(object: I): Appid;
|
|
385
394
|
};
|
|
386
395
|
export interface PackageManager {
|
|
387
396
|
/** 根据 URL 和 校验码(可选),安装应用 */
|
|
@@ -431,6 +440,7 @@ export declare class GrpcWebImpl {
|
|
|
431
440
|
transport?: grpc.TransportFactory;
|
|
432
441
|
debug?: boolean;
|
|
433
442
|
metadata?: grpc.Metadata;
|
|
443
|
+
upStreamRetryCodes?: number[];
|
|
434
444
|
});
|
|
435
445
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
436
446
|
}
|
|
@@ -438,5 +448,10 @@ declare type Builtin = Date | Function | Uint8Array | string | number | boolean
|
|
|
438
448
|
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 {} ? {
|
|
439
449
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
440
450
|
} : Partial<T>;
|
|
451
|
+
export declare class GrpcWebError extends Error {
|
|
452
|
+
code: grpc.Code;
|
|
453
|
+
metadata: grpc.Metadata;
|
|
454
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
455
|
+
}
|
|
441
456
|
export {};
|
|
442
457
|
//# sourceMappingURL=package_manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package_manager.d.ts","sourceRoot":"","sources":["../../sys/package_manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGjD,OAAO,
|
|
1
|
+
{"version":3,"file":"package_manager.d.ts","sourceRoot":"","sources":["../../sys/package_manager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAGjD,OAAO,GAAG,MAAM,oBAAoB,CAAC;AAErC,oBAAY,SAAS;IACnB,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,MAAM,IAAI;IACV,UAAU,IAAI;IACd,SAAS,IAAI;IACb,MAAM,IAAI;IACV,YAAY,KAAK;CAClB;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,GAAG,GAAG,SAAS,CAyBxD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAkBzD;AAED,MAAM,WAAW,MAAM;IACrB;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;O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AC;QAElC,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;QACzB,kBAAkB,CAAC,EAAE,MAAM,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;CA+BhB;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;AA6Bf,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"}
|
|
@@ -1,38 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.GrpcWebImpl = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.Appid = exports.SetUserPermissionsRequest = exports.AppStorageUsage_UserdataEntry = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
6
|
+
exports.GrpcWebError = exports.GrpcWebImpl = exports.PackageManagerPauseAppDownloadDesc = exports.PackageManagerSetUserPermissionsDesc = exports.PackageManagerQueryAppStorageUsageDesc = exports.PackageManagerQueryApplicationDesc = exports.PackageManagerUninstallDesc = exports.PackageManagerInstallDesc = exports.PackageManagerDesc = exports.PackageManagerClientImpl = exports.Appid = exports.SetUserPermissionsRequest = exports.AppStorageUsage_UserdataEntry = exports.AppStorageUsage = exports.QueryAppStorageUsageRequest = exports.QueryApplicationResponse = exports.QueryApplicationRequest = exports.AppInfo = exports.AppDownloadProgress = exports.UninstallRequest = exports.InstallRequest = exports.PkgURL = exports.appStatusToJSON = exports.appStatusFromJSON = exports.AppStatus = void 0;
|
|
30
7
|
/* eslint-disable */
|
|
31
8
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
32
9
|
const empty_1 = require("../google/protobuf/empty");
|
|
33
10
|
const browser_headers_1 = require("browser-headers");
|
|
34
11
|
const long_1 = __importDefault(require("long"));
|
|
35
|
-
const
|
|
12
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
36
13
|
var AppStatus;
|
|
37
14
|
(function (AppStatus) {
|
|
38
15
|
AppStatus[AppStatus["NotInstalled"] = 0] = "NotInstalled";
|
|
@@ -94,7 +71,7 @@ function createBasePkgURL() {
|
|
|
94
71
|
return { url: "", sha256: "" };
|
|
95
72
|
}
|
|
96
73
|
exports.PkgURL = {
|
|
97
|
-
encode(message, writer =
|
|
74
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
98
75
|
if (message.url !== "") {
|
|
99
76
|
writer.uint32(10).string(message.url);
|
|
100
77
|
}
|
|
@@ -104,7 +81,7 @@ exports.PkgURL = {
|
|
|
104
81
|
return writer;
|
|
105
82
|
},
|
|
106
83
|
decode(input, length) {
|
|
107
|
-
const reader = input instanceof
|
|
84
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
108
85
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
109
86
|
const message = createBasePkgURL();
|
|
110
87
|
while (reader.pos < end) {
|
|
@@ -147,7 +124,7 @@ function createBaseInstallRequest() {
|
|
|
147
124
|
return { appid: "", url: "", sha256: "", subdomain: undefined };
|
|
148
125
|
}
|
|
149
126
|
exports.InstallRequest = {
|
|
150
|
-
encode(message, writer =
|
|
127
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
151
128
|
if (message.appid !== "") {
|
|
152
129
|
writer.uint32(10).string(message.appid);
|
|
153
130
|
}
|
|
@@ -163,7 +140,7 @@ exports.InstallRequest = {
|
|
|
163
140
|
return writer;
|
|
164
141
|
},
|
|
165
142
|
decode(input, length) {
|
|
166
|
-
const reader = input instanceof
|
|
143
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
167
144
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
168
145
|
const message = createBaseInstallRequest();
|
|
169
146
|
while (reader.pos < end) {
|
|
@@ -218,7 +195,7 @@ function createBaseUninstallRequest() {
|
|
|
218
195
|
return { appid: "", clearData: false };
|
|
219
196
|
}
|
|
220
197
|
exports.UninstallRequest = {
|
|
221
|
-
encode(message, writer =
|
|
198
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
222
199
|
if (message.appid !== "") {
|
|
223
200
|
writer.uint32(10).string(message.appid);
|
|
224
201
|
}
|
|
@@ -228,7 +205,7 @@ exports.UninstallRequest = {
|
|
|
228
205
|
return writer;
|
|
229
206
|
},
|
|
230
207
|
decode(input, length) {
|
|
231
|
-
const reader = input instanceof
|
|
208
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
232
209
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
210
|
const message = createBaseUninstallRequest();
|
|
234
211
|
while (reader.pos < end) {
|
|
@@ -271,7 +248,7 @@ function createBaseAppDownloadProgress() {
|
|
|
271
248
|
return { current: 0, total: 0 };
|
|
272
249
|
}
|
|
273
250
|
exports.AppDownloadProgress = {
|
|
274
|
-
encode(message, writer =
|
|
251
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
275
252
|
if (message.current !== 0) {
|
|
276
253
|
writer.uint32(8).uint64(message.current);
|
|
277
254
|
}
|
|
@@ -281,7 +258,7 @@ exports.AppDownloadProgress = {
|
|
|
281
258
|
return writer;
|
|
282
259
|
},
|
|
283
260
|
decode(input, length) {
|
|
284
|
-
const reader = input instanceof
|
|
261
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
285
262
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
286
263
|
const message = createBaseAppDownloadProgress();
|
|
287
264
|
while (reader.pos < end) {
|
|
@@ -332,10 +309,11 @@ function createBaseAppInfo() {
|
|
|
332
309
|
domain: undefined,
|
|
333
310
|
downloadProgress: undefined,
|
|
334
311
|
builtin: undefined,
|
|
312
|
+
errorReason: undefined,
|
|
335
313
|
};
|
|
336
314
|
}
|
|
337
315
|
exports.AppInfo = {
|
|
338
|
-
encode(message, writer =
|
|
316
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
339
317
|
if (message.appid !== "") {
|
|
340
318
|
writer.uint32(10).string(message.appid);
|
|
341
319
|
}
|
|
@@ -363,10 +341,13 @@ exports.AppInfo = {
|
|
|
363
341
|
if (message.builtin !== undefined) {
|
|
364
342
|
writer.uint32(72).bool(message.builtin);
|
|
365
343
|
}
|
|
344
|
+
if (message.errorReason !== undefined) {
|
|
345
|
+
writer.uint32(82).string(message.errorReason);
|
|
346
|
+
}
|
|
366
347
|
return writer;
|
|
367
348
|
},
|
|
368
349
|
decode(input, length) {
|
|
369
|
-
const reader = input instanceof
|
|
350
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
370
351
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
371
352
|
const message = createBaseAppInfo();
|
|
372
353
|
while (reader.pos < end) {
|
|
@@ -399,6 +380,9 @@ exports.AppInfo = {
|
|
|
399
380
|
case 9:
|
|
400
381
|
message.builtin = reader.bool();
|
|
401
382
|
break;
|
|
383
|
+
case 10:
|
|
384
|
+
message.errorReason = reader.string();
|
|
385
|
+
break;
|
|
402
386
|
default:
|
|
403
387
|
reader.skipType(tag & 7);
|
|
404
388
|
break;
|
|
@@ -421,6 +405,9 @@ exports.AppInfo = {
|
|
|
421
405
|
? exports.AppDownloadProgress.fromJSON(object.downloadProgress)
|
|
422
406
|
: undefined,
|
|
423
407
|
builtin: isSet(object.builtin) ? Boolean(object.builtin) : undefined,
|
|
408
|
+
errorReason: isSet(object.errorReason)
|
|
409
|
+
? String(object.errorReason)
|
|
410
|
+
: undefined,
|
|
424
411
|
};
|
|
425
412
|
},
|
|
426
413
|
toJSON(message) {
|
|
@@ -439,10 +426,12 @@ exports.AppInfo = {
|
|
|
439
426
|
? exports.AppDownloadProgress.toJSON(message.downloadProgress)
|
|
440
427
|
: undefined);
|
|
441
428
|
message.builtin !== undefined && (obj.builtin = message.builtin);
|
|
429
|
+
message.errorReason !== undefined &&
|
|
430
|
+
(obj.errorReason = message.errorReason);
|
|
442
431
|
return obj;
|
|
443
432
|
},
|
|
444
433
|
fromPartial(object) {
|
|
445
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
434
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
446
435
|
const message = createBaseAppInfo();
|
|
447
436
|
message.appid = (_a = object.appid) !== null && _a !== void 0 ? _a : "";
|
|
448
437
|
message.status = (_b = object.status) !== null && _b !== void 0 ? _b : 0;
|
|
@@ -456,6 +445,7 @@ exports.AppInfo = {
|
|
|
456
445
|
? exports.AppDownloadProgress.fromPartial(object.downloadProgress)
|
|
457
446
|
: undefined;
|
|
458
447
|
message.builtin = (_h = object.builtin) !== null && _h !== void 0 ? _h : undefined;
|
|
448
|
+
message.errorReason = (_j = object.errorReason) !== null && _j !== void 0 ? _j : undefined;
|
|
459
449
|
return message;
|
|
460
450
|
},
|
|
461
451
|
};
|
|
@@ -463,14 +453,14 @@ function createBaseQueryApplicationRequest() {
|
|
|
463
453
|
return { appidList: [] };
|
|
464
454
|
}
|
|
465
455
|
exports.QueryApplicationRequest = {
|
|
466
|
-
encode(message, writer =
|
|
456
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
467
457
|
for (const v of message.appidList) {
|
|
468
458
|
writer.uint32(10).string(v);
|
|
469
459
|
}
|
|
470
460
|
return writer;
|
|
471
461
|
},
|
|
472
462
|
decode(input, length) {
|
|
473
|
-
const reader = input instanceof
|
|
463
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
474
464
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
475
465
|
const message = createBaseQueryApplicationRequest();
|
|
476
466
|
while (reader.pos < end) {
|
|
@@ -514,14 +504,14 @@ function createBaseQueryApplicationResponse() {
|
|
|
514
504
|
return { infoList: [] };
|
|
515
505
|
}
|
|
516
506
|
exports.QueryApplicationResponse = {
|
|
517
|
-
encode(message, writer =
|
|
507
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
518
508
|
for (const v of message.infoList) {
|
|
519
509
|
exports.AppInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
520
510
|
}
|
|
521
511
|
return writer;
|
|
522
512
|
},
|
|
523
513
|
decode(input, length) {
|
|
524
|
-
const reader = input instanceof
|
|
514
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
525
515
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
526
516
|
const message = createBaseQueryApplicationResponse();
|
|
527
517
|
while (reader.pos < end) {
|
|
@@ -573,7 +563,7 @@ function createBaseQueryAppStorageUsageRequest() {
|
|
|
573
563
|
};
|
|
574
564
|
}
|
|
575
565
|
exports.QueryAppStorageUsageRequest = {
|
|
576
|
-
encode(message, writer =
|
|
566
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
577
567
|
if (message.appid !== "") {
|
|
578
568
|
writer.uint32(10).string(message.appid);
|
|
579
569
|
}
|
|
@@ -595,7 +585,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
595
585
|
return writer;
|
|
596
586
|
},
|
|
597
587
|
decode(input, length) {
|
|
598
|
-
const reader = input instanceof
|
|
588
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
599
589
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
600
590
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
601
591
|
while (reader.pos < end) {
|
|
@@ -665,7 +655,7 @@ function createBaseAppStorageUsage() {
|
|
|
665
655
|
return { pkg: 0, data: 0, cache: 0, tmp: 0, userdata: {} };
|
|
666
656
|
}
|
|
667
657
|
exports.AppStorageUsage = {
|
|
668
|
-
encode(message, writer =
|
|
658
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
669
659
|
if (message.pkg !== 0) {
|
|
670
660
|
writer.uint32(8).uint64(message.pkg);
|
|
671
661
|
}
|
|
@@ -684,7 +674,7 @@ exports.AppStorageUsage = {
|
|
|
684
674
|
return writer;
|
|
685
675
|
},
|
|
686
676
|
decode(input, length) {
|
|
687
|
-
const reader = input instanceof
|
|
677
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
688
678
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
689
679
|
const message = createBaseAppStorageUsage();
|
|
690
680
|
while (reader.pos < end) {
|
|
@@ -763,7 +753,7 @@ function createBaseAppStorageUsage_UserdataEntry() {
|
|
|
763
753
|
return { key: "", value: 0 };
|
|
764
754
|
}
|
|
765
755
|
exports.AppStorageUsage_UserdataEntry = {
|
|
766
|
-
encode(message, writer =
|
|
756
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
767
757
|
if (message.key !== "") {
|
|
768
758
|
writer.uint32(10).string(message.key);
|
|
769
759
|
}
|
|
@@ -773,7 +763,7 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
773
763
|
return writer;
|
|
774
764
|
},
|
|
775
765
|
decode(input, length) {
|
|
776
|
-
const reader = input instanceof
|
|
766
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
777
767
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
778
768
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
779
769
|
while (reader.pos < end) {
|
|
@@ -816,7 +806,7 @@ function createBaseSetUserPermissionsRequest() {
|
|
|
816
806
|
return { uid: "", allowInstallApp: false, allowUninstallApp: false };
|
|
817
807
|
}
|
|
818
808
|
exports.SetUserPermissionsRequest = {
|
|
819
|
-
encode(message, writer =
|
|
809
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
820
810
|
if (message.uid !== "") {
|
|
821
811
|
writer.uint32(10).string(message.uid);
|
|
822
812
|
}
|
|
@@ -829,7 +819,7 @@ exports.SetUserPermissionsRequest = {
|
|
|
829
819
|
return writer;
|
|
830
820
|
},
|
|
831
821
|
decode(input, length) {
|
|
832
|
-
const reader = input instanceof
|
|
822
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
833
823
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
834
824
|
const message = createBaseSetUserPermissionsRequest();
|
|
835
825
|
while (reader.pos < end) {
|
|
@@ -884,14 +874,14 @@ function createBaseAppid() {
|
|
|
884
874
|
return { appid: "" };
|
|
885
875
|
}
|
|
886
876
|
exports.Appid = {
|
|
887
|
-
encode(message, writer =
|
|
877
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
888
878
|
if (message.appid !== "") {
|
|
889
879
|
writer.uint32(10).string(message.appid);
|
|
890
880
|
}
|
|
891
881
|
return writer;
|
|
892
882
|
},
|
|
893
883
|
decode(input, length) {
|
|
894
|
-
const reader = input instanceof
|
|
884
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
895
885
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
896
886
|
const message = createBaseAppid();
|
|
897
887
|
while (reader.pos < end) {
|
|
@@ -1088,9 +1078,7 @@ class GrpcWebImpl {
|
|
|
1088
1078
|
resolve(response.message);
|
|
1089
1079
|
}
|
|
1090
1080
|
else {
|
|
1091
|
-
const err = new
|
|
1092
|
-
err.code = response.status;
|
|
1093
|
-
err.metadata = response.trailers;
|
|
1081
|
+
const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
|
|
1094
1082
|
reject(err);
|
|
1095
1083
|
}
|
|
1096
1084
|
},
|
|
@@ -1116,9 +1104,9 @@ function longToNumber(long) {
|
|
|
1116
1104
|
}
|
|
1117
1105
|
return long.toNumber();
|
|
1118
1106
|
}
|
|
1119
|
-
if (
|
|
1120
|
-
|
|
1121
|
-
|
|
1107
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
1108
|
+
minimal_1.default.util.Long = long_1.default;
|
|
1109
|
+
minimal_1.default.configure();
|
|
1122
1110
|
}
|
|
1123
1111
|
function isObject(value) {
|
|
1124
1112
|
return typeof value === "object" && value !== null;
|
|
@@ -1126,4 +1114,12 @@ function isObject(value) {
|
|
|
1126
1114
|
function isSet(value) {
|
|
1127
1115
|
return value !== null && value !== undefined;
|
|
1128
1116
|
}
|
|
1117
|
+
class GrpcWebError extends Error {
|
|
1118
|
+
constructor(message, code, metadata) {
|
|
1119
|
+
super(message);
|
|
1120
|
+
this.code = code;
|
|
1121
|
+
this.metadata = metadata;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
exports.GrpcWebError = GrpcWebError;
|
|
1129
1125
|
//# sourceMappingURL=package_manager.js.map
|