@lazycatcloud/sdk 0.1.22 → 0.1.23
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 +6 -12
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +39 -22
- package/dist/common/box.js.map +1 -1
- package/dist/common/browseronly.d.ts +4 -10
- package/dist/common/browseronly.d.ts.map +1 -1
- package/dist/common/browseronly.js +37 -25
- package/dist/common/browseronly.js.map +1 -1
- package/dist/common/end_device.d.ts +28 -13
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +117 -27
- package/dist/common/end_device.js.map +1 -1
- package/dist/common/gateway.d.ts +6 -12
- package/dist/common/gateway.d.ts.map +1 -1
- package/dist/common/gateway.js +37 -23
- package/dist/common/gateway.js.map +1 -1
- package/dist/common/peripheral_device.d.ts +9 -15
- package/dist/common/peripheral_device.d.ts.map +1 -1
- package/dist/common/peripheral_device.js +39 -22
- package/dist/common/peripheral_device.js.map +1 -1
- package/dist/common/permissions.d.ts +93 -0
- package/dist/common/permissions.d.ts.map +1 -0
- package/dist/common/permissions.js +267 -0
- package/dist/common/permissions.js.map +1 -0
- package/dist/common/security_context.d.ts +9 -15
- package/dist/common/security_context.d.ts.map +1 -1
- package/dist/common/security_context.js +39 -25
- package/dist/common/security_context.js.map +1 -1
- package/dist/common/users.d.ts +12 -18
- package/dist/common/users.d.ts.map +1 -1
- package/dist/common/users.js +47 -33
- 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 +95 -78
- 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 +25 -5
- 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 +29 -6
- package/dist/google/protobuf/timestamp.js.map +1 -1
- package/dist/localdevice/clipboard.d.ts +5 -11
- package/dist/localdevice/clipboard.d.ts.map +1 -1
- package/dist/localdevice/clipboard.js +53 -47
- package/dist/localdevice/clipboard.js.map +1 -1
- package/dist/localdevice/device.d.ts +2 -8
- package/dist/localdevice/device.d.ts.map +1 -1
- package/dist/localdevice/device.js +29 -15
- package/dist/localdevice/device.js.map +1 -1
- package/dist/localdevice/dialog.d.ts +6 -12
- package/dist/localdevice/dialog.d.ts.map +1 -1
- package/dist/localdevice/dialog.js +37 -23
- package/dist/localdevice/dialog.js.map +1 -1
- package/dist/localdevice/network.d.ts +2 -8
- package/dist/localdevice/network.d.ts.map +1 -1
- package/dist/localdevice/network.js +29 -15
- package/dist/localdevice/network.js.map +1 -1
- package/dist/localdevice/photo.d.ts +19 -25
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +59 -44
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_snapshot.d.ts +20 -26
- package/dist/sys/OS_snapshot.d.ts.map +1 -1
- package/dist/sys/OS_snapshot.js +59 -42
- package/dist/sys/OS_snapshot.js.map +1 -1
- package/dist/sys/OS_upgrader.d.ts +7 -13
- package/dist/sys/OS_upgrader.d.ts.map +1 -1
- package/dist/sys/OS_upgrader.js +39 -22
- package/dist/sys/OS_upgrader.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +29 -35
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
- package/dist/sys/hc-core/hc-core.js +69 -61
- package/dist/sys/hc-core/hc-core.js.map +1 -1
- package/dist/sys/ingress.d.ts +11 -17
- package/dist/sys/ingress.d.ts.map +1 -1
- package/dist/sys/ingress.js +47 -30
- package/dist/sys/ingress.js.map +1 -1
- package/dist/sys/package_manager.d.ts +19 -25
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +55 -38
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +64 -64
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +209 -110
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- package/dist/sys/snapd.d.ts +324 -0
- package/dist/sys/snapd.d.ts.map +1 -0
- package/dist/sys/snapd.js +882 -0
- package/dist/sys/snapd.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
2
|
import { Empty } from "../google/protobuf/empty";
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import * as _m0 from "protobufjs/minimal";
|
|
4
4
|
export declare enum AppStatus {
|
|
5
5
|
NotInstalled = 0,
|
|
6
6
|
Downloading = 1,
|
|
@@ -129,7 +129,7 @@ export declare const PkgURL: {
|
|
|
129
129
|
} & {
|
|
130
130
|
url?: string;
|
|
131
131
|
sha256?: string;
|
|
132
|
-
} &
|
|
132
|
+
} & Record<Exclude<keyof I, keyof PkgURL>, never>>(object: I): PkgURL;
|
|
133
133
|
};
|
|
134
134
|
export declare const InstallRequest: {
|
|
135
135
|
encode(message: InstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -146,7 +146,7 @@ export declare const InstallRequest: {
|
|
|
146
146
|
url?: string;
|
|
147
147
|
sha256?: string;
|
|
148
148
|
subdomain?: string | undefined;
|
|
149
|
-
} &
|
|
149
|
+
} & Record<Exclude<keyof I, keyof InstallRequest>, never>>(object: I): InstallRequest;
|
|
150
150
|
};
|
|
151
151
|
export declare const UninstallRequest: {
|
|
152
152
|
encode(message: UninstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -159,7 +159,7 @@ export declare const UninstallRequest: {
|
|
|
159
159
|
} & {
|
|
160
160
|
appid?: string;
|
|
161
161
|
clearData?: boolean;
|
|
162
|
-
} &
|
|
162
|
+
} & Record<Exclude<keyof I, keyof UninstallRequest>, never>>(object: I): UninstallRequest;
|
|
163
163
|
};
|
|
164
164
|
export declare const AppDownloadProgress: {
|
|
165
165
|
encode(message: AppDownloadProgress, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -172,7 +172,7 @@ export declare const AppDownloadProgress: {
|
|
|
172
172
|
} & {
|
|
173
173
|
current?: number;
|
|
174
174
|
total?: number;
|
|
175
|
-
} &
|
|
175
|
+
} & Record<Exclude<keyof I, keyof AppDownloadProgress>, never>>(object: I): AppDownloadProgress;
|
|
176
176
|
};
|
|
177
177
|
export declare const AppInfo: {
|
|
178
178
|
encode(message: AppInfo, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -207,10 +207,10 @@ export declare const AppInfo: {
|
|
|
207
207
|
} & {
|
|
208
208
|
current?: number;
|
|
209
209
|
total?: number;
|
|
210
|
-
} &
|
|
210
|
+
} & Record<Exclude<keyof I["downloadProgress"], keyof AppDownloadProgress>, never>;
|
|
211
211
|
builtin?: boolean | undefined;
|
|
212
212
|
errorReason?: string | undefined;
|
|
213
|
-
} &
|
|
213
|
+
} & Record<Exclude<keyof I, keyof AppInfo>, never>>(object: I): AppInfo;
|
|
214
214
|
};
|
|
215
215
|
export declare const QueryApplicationRequest: {
|
|
216
216
|
encode(message: QueryApplicationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -220,8 +220,8 @@ export declare const QueryApplicationRequest: {
|
|
|
220
220
|
fromPartial<I extends {
|
|
221
221
|
appidList?: string[];
|
|
222
222
|
} & {
|
|
223
|
-
appidList?: string[] & string[] &
|
|
224
|
-
} &
|
|
223
|
+
appidList?: string[] & string[] & Record<Exclude<keyof I["appidList"], keyof string[]>, never>;
|
|
224
|
+
} & Record<Exclude<keyof I, "appidList">, never>>(object: I): QueryApplicationRequest;
|
|
225
225
|
};
|
|
226
226
|
export declare const QueryApplicationResponse: {
|
|
227
227
|
encode(message: QueryApplicationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -287,10 +287,10 @@ export declare const QueryApplicationResponse: {
|
|
|
287
287
|
} & {
|
|
288
288
|
current?: number;
|
|
289
289
|
total?: number;
|
|
290
|
-
} &
|
|
290
|
+
} & Record<Exclude<keyof I["infoList"][number]["downloadProgress"], keyof AppDownloadProgress>, never>;
|
|
291
291
|
builtin?: boolean | undefined;
|
|
292
292
|
errorReason?: string | undefined;
|
|
293
|
-
} &
|
|
293
|
+
} & Record<Exclude<keyof I["infoList"][number], keyof AppInfo>, never>)[] & Record<Exclude<keyof I["infoList"], keyof {
|
|
294
294
|
appid?: string;
|
|
295
295
|
status?: AppStatus;
|
|
296
296
|
version?: string | undefined;
|
|
@@ -304,8 +304,8 @@ export declare const QueryApplicationResponse: {
|
|
|
304
304
|
};
|
|
305
305
|
builtin?: boolean | undefined;
|
|
306
306
|
errorReason?: string | undefined;
|
|
307
|
-
}[]
|
|
308
|
-
} &
|
|
307
|
+
}[]>, never>;
|
|
308
|
+
} & Record<Exclude<keyof I, "infoList">, never>>(object: I): QueryApplicationResponse;
|
|
309
309
|
};
|
|
310
310
|
export declare const QueryAppStorageUsageRequest: {
|
|
311
311
|
encode(message: QueryAppStorageUsageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -326,7 +326,7 @@ export declare const QueryAppStorageUsageRequest: {
|
|
|
326
326
|
needCache?: boolean;
|
|
327
327
|
needTmp?: boolean;
|
|
328
328
|
needUserdata?: boolean;
|
|
329
|
-
} &
|
|
329
|
+
} & Record<Exclude<keyof I, keyof QueryAppStorageUsageRequest>, never>>(object: I): QueryAppStorageUsageRequest;
|
|
330
330
|
};
|
|
331
331
|
export declare const AppStorageUsage: {
|
|
332
332
|
encode(message: AppStorageUsage, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -350,8 +350,8 @@ export declare const AppStorageUsage: {
|
|
|
350
350
|
[x: string]: number;
|
|
351
351
|
} & {
|
|
352
352
|
[x: string]: number;
|
|
353
|
-
} &
|
|
354
|
-
} &
|
|
353
|
+
} & Record<Exclude<keyof I["userdata"], string | number>, never>;
|
|
354
|
+
} & Record<Exclude<keyof I, keyof AppStorageUsage>, never>>(object: I): AppStorageUsage;
|
|
355
355
|
};
|
|
356
356
|
export declare const AppStorageUsage_UserdataEntry: {
|
|
357
357
|
encode(message: AppStorageUsage_UserdataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -364,7 +364,7 @@ export declare const AppStorageUsage_UserdataEntry: {
|
|
|
364
364
|
} & {
|
|
365
365
|
key?: string;
|
|
366
366
|
value?: number;
|
|
367
|
-
} &
|
|
367
|
+
} & Record<Exclude<keyof I, keyof AppStorageUsage_UserdataEntry>, never>>(object: I): AppStorageUsage_UserdataEntry;
|
|
368
368
|
};
|
|
369
369
|
export declare const SetUserPermissionsRequest: {
|
|
370
370
|
encode(message: SetUserPermissionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -379,7 +379,7 @@ export declare const SetUserPermissionsRequest: {
|
|
|
379
379
|
uid?: string;
|
|
380
380
|
allowInstallApp?: boolean;
|
|
381
381
|
allowUninstallApp?: boolean;
|
|
382
|
-
} &
|
|
382
|
+
} & Record<Exclude<keyof I, keyof SetUserPermissionsRequest>, never>>(object: I): SetUserPermissionsRequest;
|
|
383
383
|
};
|
|
384
384
|
export declare const Appid: {
|
|
385
385
|
encode(message: Appid, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -390,7 +390,7 @@ export declare const Appid: {
|
|
|
390
390
|
appid?: string;
|
|
391
391
|
} & {
|
|
392
392
|
appid?: string;
|
|
393
|
-
} &
|
|
393
|
+
} & Record<Exclude<keyof I, "appid">, never>>(object: I): Appid;
|
|
394
394
|
};
|
|
395
395
|
export interface PackageManager {
|
|
396
396
|
/** 根据 URL 和 校验码(可选),安装应用 */
|
|
@@ -440,7 +440,6 @@ export declare class GrpcWebImpl {
|
|
|
440
440
|
transport?: grpc.TransportFactory;
|
|
441
441
|
debug?: boolean;
|
|
442
442
|
metadata?: grpc.Metadata;
|
|
443
|
-
upStreamRetryCodes?: number[];
|
|
444
443
|
});
|
|
445
444
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
446
445
|
}
|
|
@@ -448,10 +447,5 @@ declare type Builtin = Date | Function | Uint8Array | string | number | boolean
|
|
|
448
447
|
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 {} ? {
|
|
449
448
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
450
449
|
} : 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
|
-
}
|
|
456
450
|
export {};
|
|
457
451
|
//# 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,GAAG,MAAM,oBAAoB,CAAC;
|
|
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,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAE1C,oBAAY,SAAS;IACnB,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,MAAM,IAAI;IACV,UAAU,IAAI;IACd,SAAS,IAAI;IACb,MAAM,IAAI;IACV,YAAY,KAAK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,SAAS,GAClC,OAAO,CAAC,GAAG,CAAC,CAAC;CACjB;AAED,qBAAa,WAAW;IACtB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,OAAO,CAKb;gBAGA,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE;QACP,SAAS,CAAC,EAAE,IAAI,CAAC,gBAAgB,CAAC;QAElC,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC1B;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;CA6BhB;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"}
|
|
@@ -1,15 +1,38 @@
|
|
|
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
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
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;
|
|
7
30
|
/* eslint-disable */
|
|
8
31
|
const grpc_web_1 = require("@improbable-eng/grpc-web");
|
|
9
32
|
const empty_1 = require("../google/protobuf/empty");
|
|
10
33
|
const browser_headers_1 = require("browser-headers");
|
|
11
34
|
const long_1 = __importDefault(require("long"));
|
|
12
|
-
const
|
|
35
|
+
const _m0 = __importStar(require("protobufjs/minimal"));
|
|
13
36
|
var AppStatus;
|
|
14
37
|
(function (AppStatus) {
|
|
15
38
|
AppStatus[AppStatus["NotInstalled"] = 0] = "NotInstalled";
|
|
@@ -71,7 +94,7 @@ function createBasePkgURL() {
|
|
|
71
94
|
return { url: "", sha256: "" };
|
|
72
95
|
}
|
|
73
96
|
exports.PkgURL = {
|
|
74
|
-
encode(message, writer =
|
|
97
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
75
98
|
if (message.url !== "") {
|
|
76
99
|
writer.uint32(10).string(message.url);
|
|
77
100
|
}
|
|
@@ -81,7 +104,7 @@ exports.PkgURL = {
|
|
|
81
104
|
return writer;
|
|
82
105
|
},
|
|
83
106
|
decode(input, length) {
|
|
84
|
-
const reader = input instanceof
|
|
107
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
85
108
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
86
109
|
const message = createBasePkgURL();
|
|
87
110
|
while (reader.pos < end) {
|
|
@@ -124,7 +147,7 @@ function createBaseInstallRequest() {
|
|
|
124
147
|
return { appid: "", url: "", sha256: "", subdomain: undefined };
|
|
125
148
|
}
|
|
126
149
|
exports.InstallRequest = {
|
|
127
|
-
encode(message, writer =
|
|
150
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
128
151
|
if (message.appid !== "") {
|
|
129
152
|
writer.uint32(10).string(message.appid);
|
|
130
153
|
}
|
|
@@ -140,7 +163,7 @@ exports.InstallRequest = {
|
|
|
140
163
|
return writer;
|
|
141
164
|
},
|
|
142
165
|
decode(input, length) {
|
|
143
|
-
const reader = input instanceof
|
|
166
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
144
167
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
145
168
|
const message = createBaseInstallRequest();
|
|
146
169
|
while (reader.pos < end) {
|
|
@@ -195,7 +218,7 @@ function createBaseUninstallRequest() {
|
|
|
195
218
|
return { appid: "", clearData: false };
|
|
196
219
|
}
|
|
197
220
|
exports.UninstallRequest = {
|
|
198
|
-
encode(message, writer =
|
|
221
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
199
222
|
if (message.appid !== "") {
|
|
200
223
|
writer.uint32(10).string(message.appid);
|
|
201
224
|
}
|
|
@@ -205,7 +228,7 @@ exports.UninstallRequest = {
|
|
|
205
228
|
return writer;
|
|
206
229
|
},
|
|
207
230
|
decode(input, length) {
|
|
208
|
-
const reader = input instanceof
|
|
231
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
209
232
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
210
233
|
const message = createBaseUninstallRequest();
|
|
211
234
|
while (reader.pos < end) {
|
|
@@ -248,7 +271,7 @@ function createBaseAppDownloadProgress() {
|
|
|
248
271
|
return { current: 0, total: 0 };
|
|
249
272
|
}
|
|
250
273
|
exports.AppDownloadProgress = {
|
|
251
|
-
encode(message, writer =
|
|
274
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
252
275
|
if (message.current !== 0) {
|
|
253
276
|
writer.uint32(8).uint64(message.current);
|
|
254
277
|
}
|
|
@@ -258,7 +281,7 @@ exports.AppDownloadProgress = {
|
|
|
258
281
|
return writer;
|
|
259
282
|
},
|
|
260
283
|
decode(input, length) {
|
|
261
|
-
const reader = input instanceof
|
|
284
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
262
285
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
263
286
|
const message = createBaseAppDownloadProgress();
|
|
264
287
|
while (reader.pos < end) {
|
|
@@ -313,7 +336,7 @@ function createBaseAppInfo() {
|
|
|
313
336
|
};
|
|
314
337
|
}
|
|
315
338
|
exports.AppInfo = {
|
|
316
|
-
encode(message, writer =
|
|
339
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
317
340
|
if (message.appid !== "") {
|
|
318
341
|
writer.uint32(10).string(message.appid);
|
|
319
342
|
}
|
|
@@ -347,7 +370,7 @@ exports.AppInfo = {
|
|
|
347
370
|
return writer;
|
|
348
371
|
},
|
|
349
372
|
decode(input, length) {
|
|
350
|
-
const reader = input instanceof
|
|
373
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
351
374
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
352
375
|
const message = createBaseAppInfo();
|
|
353
376
|
while (reader.pos < end) {
|
|
@@ -453,14 +476,14 @@ function createBaseQueryApplicationRequest() {
|
|
|
453
476
|
return { appidList: [] };
|
|
454
477
|
}
|
|
455
478
|
exports.QueryApplicationRequest = {
|
|
456
|
-
encode(message, writer =
|
|
479
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
457
480
|
for (const v of message.appidList) {
|
|
458
481
|
writer.uint32(10).string(v);
|
|
459
482
|
}
|
|
460
483
|
return writer;
|
|
461
484
|
},
|
|
462
485
|
decode(input, length) {
|
|
463
|
-
const reader = input instanceof
|
|
486
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
464
487
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
465
488
|
const message = createBaseQueryApplicationRequest();
|
|
466
489
|
while (reader.pos < end) {
|
|
@@ -504,14 +527,14 @@ function createBaseQueryApplicationResponse() {
|
|
|
504
527
|
return { infoList: [] };
|
|
505
528
|
}
|
|
506
529
|
exports.QueryApplicationResponse = {
|
|
507
|
-
encode(message, writer =
|
|
530
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
508
531
|
for (const v of message.infoList) {
|
|
509
532
|
exports.AppInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
510
533
|
}
|
|
511
534
|
return writer;
|
|
512
535
|
},
|
|
513
536
|
decode(input, length) {
|
|
514
|
-
const reader = input instanceof
|
|
537
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
515
538
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
516
539
|
const message = createBaseQueryApplicationResponse();
|
|
517
540
|
while (reader.pos < end) {
|
|
@@ -563,7 +586,7 @@ function createBaseQueryAppStorageUsageRequest() {
|
|
|
563
586
|
};
|
|
564
587
|
}
|
|
565
588
|
exports.QueryAppStorageUsageRequest = {
|
|
566
|
-
encode(message, writer =
|
|
589
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
567
590
|
if (message.appid !== "") {
|
|
568
591
|
writer.uint32(10).string(message.appid);
|
|
569
592
|
}
|
|
@@ -585,7 +608,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
585
608
|
return writer;
|
|
586
609
|
},
|
|
587
610
|
decode(input, length) {
|
|
588
|
-
const reader = input instanceof
|
|
611
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
589
612
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
590
613
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
591
614
|
while (reader.pos < end) {
|
|
@@ -655,7 +678,7 @@ function createBaseAppStorageUsage() {
|
|
|
655
678
|
return { pkg: 0, data: 0, cache: 0, tmp: 0, userdata: {} };
|
|
656
679
|
}
|
|
657
680
|
exports.AppStorageUsage = {
|
|
658
|
-
encode(message, writer =
|
|
681
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
659
682
|
if (message.pkg !== 0) {
|
|
660
683
|
writer.uint32(8).uint64(message.pkg);
|
|
661
684
|
}
|
|
@@ -674,7 +697,7 @@ exports.AppStorageUsage = {
|
|
|
674
697
|
return writer;
|
|
675
698
|
},
|
|
676
699
|
decode(input, length) {
|
|
677
|
-
const reader = input instanceof
|
|
700
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
678
701
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
679
702
|
const message = createBaseAppStorageUsage();
|
|
680
703
|
while (reader.pos < end) {
|
|
@@ -753,7 +776,7 @@ function createBaseAppStorageUsage_UserdataEntry() {
|
|
|
753
776
|
return { key: "", value: 0 };
|
|
754
777
|
}
|
|
755
778
|
exports.AppStorageUsage_UserdataEntry = {
|
|
756
|
-
encode(message, writer =
|
|
779
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
757
780
|
if (message.key !== "") {
|
|
758
781
|
writer.uint32(10).string(message.key);
|
|
759
782
|
}
|
|
@@ -763,7 +786,7 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
763
786
|
return writer;
|
|
764
787
|
},
|
|
765
788
|
decode(input, length) {
|
|
766
|
-
const reader = input instanceof
|
|
789
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
767
790
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
768
791
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
769
792
|
while (reader.pos < end) {
|
|
@@ -806,7 +829,7 @@ function createBaseSetUserPermissionsRequest() {
|
|
|
806
829
|
return { uid: "", allowInstallApp: false, allowUninstallApp: false };
|
|
807
830
|
}
|
|
808
831
|
exports.SetUserPermissionsRequest = {
|
|
809
|
-
encode(message, writer =
|
|
832
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
810
833
|
if (message.uid !== "") {
|
|
811
834
|
writer.uint32(10).string(message.uid);
|
|
812
835
|
}
|
|
@@ -819,7 +842,7 @@ exports.SetUserPermissionsRequest = {
|
|
|
819
842
|
return writer;
|
|
820
843
|
},
|
|
821
844
|
decode(input, length) {
|
|
822
|
-
const reader = input instanceof
|
|
845
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
823
846
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
824
847
|
const message = createBaseSetUserPermissionsRequest();
|
|
825
848
|
while (reader.pos < end) {
|
|
@@ -874,14 +897,14 @@ function createBaseAppid() {
|
|
|
874
897
|
return { appid: "" };
|
|
875
898
|
}
|
|
876
899
|
exports.Appid = {
|
|
877
|
-
encode(message, writer =
|
|
900
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
878
901
|
if (message.appid !== "") {
|
|
879
902
|
writer.uint32(10).string(message.appid);
|
|
880
903
|
}
|
|
881
904
|
return writer;
|
|
882
905
|
},
|
|
883
906
|
decode(input, length) {
|
|
884
|
-
const reader = input instanceof
|
|
907
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
885
908
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
886
909
|
const message = createBaseAppid();
|
|
887
910
|
while (reader.pos < end) {
|
|
@@ -1078,7 +1101,9 @@ class GrpcWebImpl {
|
|
|
1078
1101
|
resolve(response.message);
|
|
1079
1102
|
}
|
|
1080
1103
|
else {
|
|
1081
|
-
const err = new
|
|
1104
|
+
const err = new Error(response.statusMessage);
|
|
1105
|
+
err.code = response.status;
|
|
1106
|
+
err.metadata = response.trailers;
|
|
1082
1107
|
reject(err);
|
|
1083
1108
|
}
|
|
1084
1109
|
},
|
|
@@ -1104,9 +1129,9 @@ function longToNumber(long) {
|
|
|
1104
1129
|
}
|
|
1105
1130
|
return long.toNumber();
|
|
1106
1131
|
}
|
|
1107
|
-
if (
|
|
1108
|
-
|
|
1109
|
-
|
|
1132
|
+
if (_m0.util.Long !== long_1.default) {
|
|
1133
|
+
_m0.util.Long = long_1.default;
|
|
1134
|
+
_m0.configure();
|
|
1110
1135
|
}
|
|
1111
1136
|
function isObject(value) {
|
|
1112
1137
|
return typeof value === "object" && value !== null;
|
|
@@ -1114,12 +1139,4 @@ function isObject(value) {
|
|
|
1114
1139
|
function isSet(value) {
|
|
1115
1140
|
return value !== null && value !== undefined;
|
|
1116
1141
|
}
|
|
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;
|
|
1125
1142
|
//# sourceMappingURL=package_manager.js.map
|