@lazycatcloud/sdk 0.1.19 → 0.1.20
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 +7 -13
- package/dist/common/end_device.d.ts.map +1 -1
- package/dist/common/end_device.js +39 -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 +21 -27
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +61 -46
- package/dist/localdevice/photo.js.map +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 +58 -37
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +122 -73
- package/dist/sys/portal-server/portal-server.js.map +1 -1
- 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,
|
|
@@ -127,7 +127,7 @@ export declare const PkgURL: {
|
|
|
127
127
|
} & {
|
|
128
128
|
url?: string;
|
|
129
129
|
sha256?: string;
|
|
130
|
-
} &
|
|
130
|
+
} & Record<Exclude<keyof I, keyof PkgURL>, never>>(object: I): PkgURL;
|
|
131
131
|
};
|
|
132
132
|
export declare const InstallRequest: {
|
|
133
133
|
encode(message: InstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -144,7 +144,7 @@ export declare const InstallRequest: {
|
|
|
144
144
|
url?: string;
|
|
145
145
|
sha256?: string;
|
|
146
146
|
subdomain?: string | undefined;
|
|
147
|
-
} &
|
|
147
|
+
} & Record<Exclude<keyof I, keyof InstallRequest>, never>>(object: I): InstallRequest;
|
|
148
148
|
};
|
|
149
149
|
export declare const UninstallRequest: {
|
|
150
150
|
encode(message: UninstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -157,7 +157,7 @@ export declare const UninstallRequest: {
|
|
|
157
157
|
} & {
|
|
158
158
|
appid?: string;
|
|
159
159
|
clearData?: boolean;
|
|
160
|
-
} &
|
|
160
|
+
} & Record<Exclude<keyof I, keyof UninstallRequest>, never>>(object: I): UninstallRequest;
|
|
161
161
|
};
|
|
162
162
|
export declare const AppDownloadProgress: {
|
|
163
163
|
encode(message: AppDownloadProgress, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -170,7 +170,7 @@ export declare const AppDownloadProgress: {
|
|
|
170
170
|
} & {
|
|
171
171
|
current?: number;
|
|
172
172
|
total?: number;
|
|
173
|
-
} &
|
|
173
|
+
} & Record<Exclude<keyof I, keyof AppDownloadProgress>, never>>(object: I): AppDownloadProgress;
|
|
174
174
|
};
|
|
175
175
|
export declare const AppInfo: {
|
|
176
176
|
encode(message: AppInfo, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -204,9 +204,9 @@ export declare const AppInfo: {
|
|
|
204
204
|
} & {
|
|
205
205
|
current?: number;
|
|
206
206
|
total?: number;
|
|
207
|
-
} &
|
|
207
|
+
} & Record<Exclude<keyof I["downloadProgress"], keyof AppDownloadProgress>, never>;
|
|
208
208
|
builtin?: boolean | undefined;
|
|
209
|
-
} &
|
|
209
|
+
} & Record<Exclude<keyof I, keyof AppInfo>, never>>(object: I): AppInfo;
|
|
210
210
|
};
|
|
211
211
|
export declare const QueryApplicationRequest: {
|
|
212
212
|
encode(message: QueryApplicationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -216,8 +216,8 @@ export declare const QueryApplicationRequest: {
|
|
|
216
216
|
fromPartial<I extends {
|
|
217
217
|
appidList?: string[];
|
|
218
218
|
} & {
|
|
219
|
-
appidList?: string[] & string[] &
|
|
220
|
-
} &
|
|
219
|
+
appidList?: string[] & string[] & Record<Exclude<keyof I["appidList"], keyof string[]>, never>;
|
|
220
|
+
} & Record<Exclude<keyof I, "appidList">, never>>(object: I): QueryApplicationRequest;
|
|
221
221
|
};
|
|
222
222
|
export declare const QueryApplicationResponse: {
|
|
223
223
|
encode(message: QueryApplicationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -280,9 +280,9 @@ export declare const QueryApplicationResponse: {
|
|
|
280
280
|
} & {
|
|
281
281
|
current?: number;
|
|
282
282
|
total?: number;
|
|
283
|
-
} &
|
|
283
|
+
} & Record<Exclude<keyof I["infoList"][number]["downloadProgress"], keyof AppDownloadProgress>, never>;
|
|
284
284
|
builtin?: boolean | undefined;
|
|
285
|
-
} &
|
|
285
|
+
} & Record<Exclude<keyof I["infoList"][number], keyof AppInfo>, never>)[] & Record<Exclude<keyof I["infoList"], keyof {
|
|
286
286
|
appid?: string;
|
|
287
287
|
status?: AppStatus;
|
|
288
288
|
version?: string | undefined;
|
|
@@ -295,8 +295,8 @@ export declare const QueryApplicationResponse: {
|
|
|
295
295
|
total?: number;
|
|
296
296
|
};
|
|
297
297
|
builtin?: boolean | undefined;
|
|
298
|
-
}[]
|
|
299
|
-
} &
|
|
298
|
+
}[]>, never>;
|
|
299
|
+
} & Record<Exclude<keyof I, "infoList">, never>>(object: I): QueryApplicationResponse;
|
|
300
300
|
};
|
|
301
301
|
export declare const QueryAppStorageUsageRequest: {
|
|
302
302
|
encode(message: QueryAppStorageUsageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -317,7 +317,7 @@ export declare const QueryAppStorageUsageRequest: {
|
|
|
317
317
|
needCache?: boolean;
|
|
318
318
|
needTmp?: boolean;
|
|
319
319
|
needUserdata?: boolean;
|
|
320
|
-
} &
|
|
320
|
+
} & Record<Exclude<keyof I, keyof QueryAppStorageUsageRequest>, never>>(object: I): QueryAppStorageUsageRequest;
|
|
321
321
|
};
|
|
322
322
|
export declare const AppStorageUsage: {
|
|
323
323
|
encode(message: AppStorageUsage, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -341,8 +341,8 @@ export declare const AppStorageUsage: {
|
|
|
341
341
|
[x: string]: number;
|
|
342
342
|
} & {
|
|
343
343
|
[x: string]: number;
|
|
344
|
-
} &
|
|
345
|
-
} &
|
|
344
|
+
} & Record<Exclude<keyof I["userdata"], string | number>, never>;
|
|
345
|
+
} & Record<Exclude<keyof I, keyof AppStorageUsage>, never>>(object: I): AppStorageUsage;
|
|
346
346
|
};
|
|
347
347
|
export declare const AppStorageUsage_UserdataEntry: {
|
|
348
348
|
encode(message: AppStorageUsage_UserdataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -355,7 +355,7 @@ export declare const AppStorageUsage_UserdataEntry: {
|
|
|
355
355
|
} & {
|
|
356
356
|
key?: string;
|
|
357
357
|
value?: number;
|
|
358
|
-
} &
|
|
358
|
+
} & Record<Exclude<keyof I, keyof AppStorageUsage_UserdataEntry>, never>>(object: I): AppStorageUsage_UserdataEntry;
|
|
359
359
|
};
|
|
360
360
|
export declare const SetUserPermissionsRequest: {
|
|
361
361
|
encode(message: SetUserPermissionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -370,7 +370,7 @@ export declare const SetUserPermissionsRequest: {
|
|
|
370
370
|
uid?: string;
|
|
371
371
|
allowInstallApp?: boolean;
|
|
372
372
|
allowUninstallApp?: boolean;
|
|
373
|
-
} &
|
|
373
|
+
} & Record<Exclude<keyof I, keyof SetUserPermissionsRequest>, never>>(object: I): SetUserPermissionsRequest;
|
|
374
374
|
};
|
|
375
375
|
export declare const Appid: {
|
|
376
376
|
encode(message: Appid, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -381,7 +381,7 @@ export declare const Appid: {
|
|
|
381
381
|
appid?: string;
|
|
382
382
|
} & {
|
|
383
383
|
appid?: string;
|
|
384
|
-
} &
|
|
384
|
+
} & Record<Exclude<keyof I, "appid">, never>>(object: I): Appid;
|
|
385
385
|
};
|
|
386
386
|
export interface PackageManager {
|
|
387
387
|
/** 根据 URL 和 校验码(可选),安装应用 */
|
|
@@ -431,7 +431,6 @@ export declare class GrpcWebImpl {
|
|
|
431
431
|
transport?: grpc.TransportFactory;
|
|
432
432
|
debug?: boolean;
|
|
433
433
|
metadata?: grpc.Metadata;
|
|
434
|
-
upStreamRetryCodes?: number[];
|
|
435
434
|
});
|
|
436
435
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
437
436
|
}
|
|
@@ -439,10 +438,5 @@ declare type Builtin = Date | Function | Uint8Array | string | number | boolean
|
|
|
439
438
|
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 {} ? {
|
|
440
439
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
441
440
|
} : Partial<T>;
|
|
442
|
-
export declare class GrpcWebError extends Error {
|
|
443
|
-
code: grpc.Code;
|
|
444
|
-
metadata: grpc.Metadata;
|
|
445
|
-
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
446
|
-
}
|
|
447
441
|
export {};
|
|
448
442
|
//# 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;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,EA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AC,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) {
|
|
@@ -312,7 +335,7 @@ function createBaseAppInfo() {
|
|
|
312
335
|
};
|
|
313
336
|
}
|
|
314
337
|
exports.AppInfo = {
|
|
315
|
-
encode(message, writer =
|
|
338
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
316
339
|
if (message.appid !== "") {
|
|
317
340
|
writer.uint32(10).string(message.appid);
|
|
318
341
|
}
|
|
@@ -343,7 +366,7 @@ exports.AppInfo = {
|
|
|
343
366
|
return writer;
|
|
344
367
|
},
|
|
345
368
|
decode(input, length) {
|
|
346
|
-
const reader = input instanceof
|
|
369
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
347
370
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
348
371
|
const message = createBaseAppInfo();
|
|
349
372
|
while (reader.pos < end) {
|
|
@@ -440,14 +463,14 @@ function createBaseQueryApplicationRequest() {
|
|
|
440
463
|
return { appidList: [] };
|
|
441
464
|
}
|
|
442
465
|
exports.QueryApplicationRequest = {
|
|
443
|
-
encode(message, writer =
|
|
466
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
444
467
|
for (const v of message.appidList) {
|
|
445
468
|
writer.uint32(10).string(v);
|
|
446
469
|
}
|
|
447
470
|
return writer;
|
|
448
471
|
},
|
|
449
472
|
decode(input, length) {
|
|
450
|
-
const reader = input instanceof
|
|
473
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
451
474
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
452
475
|
const message = createBaseQueryApplicationRequest();
|
|
453
476
|
while (reader.pos < end) {
|
|
@@ -491,14 +514,14 @@ function createBaseQueryApplicationResponse() {
|
|
|
491
514
|
return { infoList: [] };
|
|
492
515
|
}
|
|
493
516
|
exports.QueryApplicationResponse = {
|
|
494
|
-
encode(message, writer =
|
|
517
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
495
518
|
for (const v of message.infoList) {
|
|
496
519
|
exports.AppInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
497
520
|
}
|
|
498
521
|
return writer;
|
|
499
522
|
},
|
|
500
523
|
decode(input, length) {
|
|
501
|
-
const reader = input instanceof
|
|
524
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
502
525
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
503
526
|
const message = createBaseQueryApplicationResponse();
|
|
504
527
|
while (reader.pos < end) {
|
|
@@ -550,7 +573,7 @@ function createBaseQueryAppStorageUsageRequest() {
|
|
|
550
573
|
};
|
|
551
574
|
}
|
|
552
575
|
exports.QueryAppStorageUsageRequest = {
|
|
553
|
-
encode(message, writer =
|
|
576
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
554
577
|
if (message.appid !== "") {
|
|
555
578
|
writer.uint32(10).string(message.appid);
|
|
556
579
|
}
|
|
@@ -572,7 +595,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
572
595
|
return writer;
|
|
573
596
|
},
|
|
574
597
|
decode(input, length) {
|
|
575
|
-
const reader = input instanceof
|
|
598
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
576
599
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
577
600
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
578
601
|
while (reader.pos < end) {
|
|
@@ -642,7 +665,7 @@ function createBaseAppStorageUsage() {
|
|
|
642
665
|
return { pkg: 0, data: 0, cache: 0, tmp: 0, userdata: {} };
|
|
643
666
|
}
|
|
644
667
|
exports.AppStorageUsage = {
|
|
645
|
-
encode(message, writer =
|
|
668
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
646
669
|
if (message.pkg !== 0) {
|
|
647
670
|
writer.uint32(8).uint64(message.pkg);
|
|
648
671
|
}
|
|
@@ -661,7 +684,7 @@ exports.AppStorageUsage = {
|
|
|
661
684
|
return writer;
|
|
662
685
|
},
|
|
663
686
|
decode(input, length) {
|
|
664
|
-
const reader = input instanceof
|
|
687
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
665
688
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
666
689
|
const message = createBaseAppStorageUsage();
|
|
667
690
|
while (reader.pos < end) {
|
|
@@ -740,7 +763,7 @@ function createBaseAppStorageUsage_UserdataEntry() {
|
|
|
740
763
|
return { key: "", value: 0 };
|
|
741
764
|
}
|
|
742
765
|
exports.AppStorageUsage_UserdataEntry = {
|
|
743
|
-
encode(message, writer =
|
|
766
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
744
767
|
if (message.key !== "") {
|
|
745
768
|
writer.uint32(10).string(message.key);
|
|
746
769
|
}
|
|
@@ -750,7 +773,7 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
750
773
|
return writer;
|
|
751
774
|
},
|
|
752
775
|
decode(input, length) {
|
|
753
|
-
const reader = input instanceof
|
|
776
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
754
777
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
755
778
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
756
779
|
while (reader.pos < end) {
|
|
@@ -793,7 +816,7 @@ function createBaseSetUserPermissionsRequest() {
|
|
|
793
816
|
return { uid: "", allowInstallApp: false, allowUninstallApp: false };
|
|
794
817
|
}
|
|
795
818
|
exports.SetUserPermissionsRequest = {
|
|
796
|
-
encode(message, writer =
|
|
819
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
797
820
|
if (message.uid !== "") {
|
|
798
821
|
writer.uint32(10).string(message.uid);
|
|
799
822
|
}
|
|
@@ -806,7 +829,7 @@ exports.SetUserPermissionsRequest = {
|
|
|
806
829
|
return writer;
|
|
807
830
|
},
|
|
808
831
|
decode(input, length) {
|
|
809
|
-
const reader = input instanceof
|
|
832
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
810
833
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
811
834
|
const message = createBaseSetUserPermissionsRequest();
|
|
812
835
|
while (reader.pos < end) {
|
|
@@ -861,14 +884,14 @@ function createBaseAppid() {
|
|
|
861
884
|
return { appid: "" };
|
|
862
885
|
}
|
|
863
886
|
exports.Appid = {
|
|
864
|
-
encode(message, writer =
|
|
887
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
865
888
|
if (message.appid !== "") {
|
|
866
889
|
writer.uint32(10).string(message.appid);
|
|
867
890
|
}
|
|
868
891
|
return writer;
|
|
869
892
|
},
|
|
870
893
|
decode(input, length) {
|
|
871
|
-
const reader = input instanceof
|
|
894
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
872
895
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
873
896
|
const message = createBaseAppid();
|
|
874
897
|
while (reader.pos < end) {
|
|
@@ -1065,7 +1088,9 @@ class GrpcWebImpl {
|
|
|
1065
1088
|
resolve(response.message);
|
|
1066
1089
|
}
|
|
1067
1090
|
else {
|
|
1068
|
-
const err = new
|
|
1091
|
+
const err = new Error(response.statusMessage);
|
|
1092
|
+
err.code = response.status;
|
|
1093
|
+
err.metadata = response.trailers;
|
|
1069
1094
|
reject(err);
|
|
1070
1095
|
}
|
|
1071
1096
|
},
|
|
@@ -1091,9 +1116,9 @@ function longToNumber(long) {
|
|
|
1091
1116
|
}
|
|
1092
1117
|
return long.toNumber();
|
|
1093
1118
|
}
|
|
1094
|
-
if (
|
|
1095
|
-
|
|
1096
|
-
|
|
1119
|
+
if (_m0.util.Long !== long_1.default) {
|
|
1120
|
+
_m0.util.Long = long_1.default;
|
|
1121
|
+
_m0.configure();
|
|
1097
1122
|
}
|
|
1098
1123
|
function isObject(value) {
|
|
1099
1124
|
return typeof value === "object" && value !== null;
|
|
@@ -1101,12 +1126,4 @@ function isObject(value) {
|
|
|
1101
1126
|
function isSet(value) {
|
|
1102
1127
|
return value !== null && value !== undefined;
|
|
1103
1128
|
}
|
|
1104
|
-
class GrpcWebError extends Error {
|
|
1105
|
-
constructor(message, code, metadata) {
|
|
1106
|
-
super(message);
|
|
1107
|
-
this.code = code;
|
|
1108
|
-
this.metadata = metadata;
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
exports.GrpcWebError = GrpcWebError;
|
|
1112
1129
|
//# sourceMappingURL=package_manager.js.map
|