@lazycatcloud/sdk 0.1.13 → 0.1.16
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 -121
- package/dist/localdevice/photo.d.ts.map +1 -1
- package/dist/localdevice/photo.js +61 -98
- 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 +20 -26
- 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 +31 -37
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
- package/dist/sys/portal-server/portal-server.js +83 -71
- 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,
|
|
@@ -62,7 +62,7 @@ export interface AppInfo {
|
|
|
62
62
|
version?: string | undefined;
|
|
63
63
|
title?: string | undefined;
|
|
64
64
|
description?: string | undefined;
|
|
65
|
-
/** 应用图标所在的 url,如 https://apis.$boxdomain/
|
|
65
|
+
/** 应用图标所在的 url,如 https://apis.$boxdomain/icons/$appid.png */
|
|
66
66
|
icon?: string | undefined;
|
|
67
67
|
/** 应用所在的域名,如 app.box.heiyu.space */
|
|
68
68
|
domain?: string | undefined;
|
|
@@ -126,7 +126,7 @@ export declare const PkgURL: {
|
|
|
126
126
|
} & {
|
|
127
127
|
url?: string;
|
|
128
128
|
sha256?: string;
|
|
129
|
-
} &
|
|
129
|
+
} & Record<Exclude<keyof I, keyof PkgURL>, never>>(object: I): PkgURL;
|
|
130
130
|
};
|
|
131
131
|
export declare const InstallRequest: {
|
|
132
132
|
encode(message: InstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -141,7 +141,7 @@ export declare const InstallRequest: {
|
|
|
141
141
|
appid?: string;
|
|
142
142
|
url?: string;
|
|
143
143
|
sha256?: string;
|
|
144
|
-
} &
|
|
144
|
+
} & Record<Exclude<keyof I, keyof InstallRequest>, never>>(object: I): InstallRequest;
|
|
145
145
|
};
|
|
146
146
|
export declare const UninstallRequest: {
|
|
147
147
|
encode(message: UninstallRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -154,7 +154,7 @@ export declare const UninstallRequest: {
|
|
|
154
154
|
} & {
|
|
155
155
|
appid?: string;
|
|
156
156
|
clearData?: boolean;
|
|
157
|
-
} &
|
|
157
|
+
} & Record<Exclude<keyof I, keyof UninstallRequest>, never>>(object: I): UninstallRequest;
|
|
158
158
|
};
|
|
159
159
|
export declare const AppDownloadProgress: {
|
|
160
160
|
encode(message: AppDownloadProgress, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -167,7 +167,7 @@ export declare const AppDownloadProgress: {
|
|
|
167
167
|
} & {
|
|
168
168
|
current?: number;
|
|
169
169
|
total?: number;
|
|
170
|
-
} &
|
|
170
|
+
} & Record<Exclude<keyof I, keyof AppDownloadProgress>, never>>(object: I): AppDownloadProgress;
|
|
171
171
|
};
|
|
172
172
|
export declare const AppInfo: {
|
|
173
173
|
encode(message: AppInfo, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -201,9 +201,9 @@ export declare const AppInfo: {
|
|
|
201
201
|
} & {
|
|
202
202
|
current?: number;
|
|
203
203
|
total?: number;
|
|
204
|
-
} &
|
|
204
|
+
} & Record<Exclude<keyof I["downloadProgress"], keyof AppDownloadProgress>, never>;
|
|
205
205
|
uninstallable?: boolean | undefined;
|
|
206
|
-
} &
|
|
206
|
+
} & Record<Exclude<keyof I, keyof AppInfo>, never>>(object: I): AppInfo;
|
|
207
207
|
};
|
|
208
208
|
export declare const QueryApplicationRequest: {
|
|
209
209
|
encode(message: QueryApplicationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -213,8 +213,8 @@ export declare const QueryApplicationRequest: {
|
|
|
213
213
|
fromPartial<I extends {
|
|
214
214
|
appidList?: string[];
|
|
215
215
|
} & {
|
|
216
|
-
appidList?: string[] & string[] &
|
|
217
|
-
} &
|
|
216
|
+
appidList?: string[] & string[] & Record<Exclude<keyof I["appidList"], keyof string[]>, never>;
|
|
217
|
+
} & Record<Exclude<keyof I, "appidList">, never>>(object: I): QueryApplicationRequest;
|
|
218
218
|
};
|
|
219
219
|
export declare const QueryApplicationResponse: {
|
|
220
220
|
encode(message: QueryApplicationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -277,9 +277,9 @@ export declare const QueryApplicationResponse: {
|
|
|
277
277
|
} & {
|
|
278
278
|
current?: number;
|
|
279
279
|
total?: number;
|
|
280
|
-
} &
|
|
280
|
+
} & Record<Exclude<keyof I["infoList"][number]["downloadProgress"], keyof AppDownloadProgress>, never>;
|
|
281
281
|
uninstallable?: boolean | undefined;
|
|
282
|
-
} &
|
|
282
|
+
} & Record<Exclude<keyof I["infoList"][number], keyof AppInfo>, never>)[] & Record<Exclude<keyof I["infoList"], keyof {
|
|
283
283
|
appid?: string;
|
|
284
284
|
status?: AppStatus;
|
|
285
285
|
version?: string | undefined;
|
|
@@ -292,8 +292,8 @@ export declare const QueryApplicationResponse: {
|
|
|
292
292
|
total?: number;
|
|
293
293
|
};
|
|
294
294
|
uninstallable?: boolean | undefined;
|
|
295
|
-
}[]
|
|
296
|
-
} &
|
|
295
|
+
}[]>, never>;
|
|
296
|
+
} & Record<Exclude<keyof I, "infoList">, never>>(object: I): QueryApplicationResponse;
|
|
297
297
|
};
|
|
298
298
|
export declare const QueryAppStorageUsageRequest: {
|
|
299
299
|
encode(message: QueryAppStorageUsageRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -314,7 +314,7 @@ export declare const QueryAppStorageUsageRequest: {
|
|
|
314
314
|
needCache?: boolean;
|
|
315
315
|
needTmp?: boolean;
|
|
316
316
|
needUserdata?: boolean;
|
|
317
|
-
} &
|
|
317
|
+
} & Record<Exclude<keyof I, keyof QueryAppStorageUsageRequest>, never>>(object: I): QueryAppStorageUsageRequest;
|
|
318
318
|
};
|
|
319
319
|
export declare const AppStorageUsage: {
|
|
320
320
|
encode(message: AppStorageUsage, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -338,8 +338,8 @@ export declare const AppStorageUsage: {
|
|
|
338
338
|
[x: string]: number;
|
|
339
339
|
} & {
|
|
340
340
|
[x: string]: number;
|
|
341
|
-
} &
|
|
342
|
-
} &
|
|
341
|
+
} & Record<Exclude<keyof I["userdata"], string | number>, never>;
|
|
342
|
+
} & Record<Exclude<keyof I, keyof AppStorageUsage>, never>>(object: I): AppStorageUsage;
|
|
343
343
|
};
|
|
344
344
|
export declare const AppStorageUsage_UserdataEntry: {
|
|
345
345
|
encode(message: AppStorageUsage_UserdataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -352,7 +352,7 @@ export declare const AppStorageUsage_UserdataEntry: {
|
|
|
352
352
|
} & {
|
|
353
353
|
key?: string;
|
|
354
354
|
value?: number;
|
|
355
|
-
} &
|
|
355
|
+
} & Record<Exclude<keyof I, keyof AppStorageUsage_UserdataEntry>, never>>(object: I): AppStorageUsage_UserdataEntry;
|
|
356
356
|
};
|
|
357
357
|
export declare const SetUserPermissionsRequest: {
|
|
358
358
|
encode(message: SetUserPermissionsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -367,7 +367,7 @@ export declare const SetUserPermissionsRequest: {
|
|
|
367
367
|
uid?: string;
|
|
368
368
|
allowInstallApp?: boolean;
|
|
369
369
|
allowUninstallApp?: boolean;
|
|
370
|
-
} &
|
|
370
|
+
} & Record<Exclude<keyof I, keyof SetUserPermissionsRequest>, never>>(object: I): SetUserPermissionsRequest;
|
|
371
371
|
};
|
|
372
372
|
export declare const Appid: {
|
|
373
373
|
encode(message: Appid, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -378,7 +378,7 @@ export declare const Appid: {
|
|
|
378
378
|
appid?: string;
|
|
379
379
|
} & {
|
|
380
380
|
appid?: string;
|
|
381
|
-
} &
|
|
381
|
+
} & Record<Exclude<keyof I, "appid">, never>>(object: I): Appid;
|
|
382
382
|
};
|
|
383
383
|
export interface PackageManager {
|
|
384
384
|
/** 根据 URL 和 校验码(可选),安装应用 */
|
|
@@ -428,7 +428,6 @@ export declare class GrpcWebImpl {
|
|
|
428
428
|
transport?: grpc.TransportFactory;
|
|
429
429
|
debug?: boolean;
|
|
430
430
|
metadata?: grpc.Metadata;
|
|
431
|
-
upStreamRetryCodes?: number[];
|
|
432
431
|
});
|
|
433
432
|
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise<any>;
|
|
434
433
|
}
|
|
@@ -436,10 +435,5 @@ declare type Builtin = Date | Function | Uint8Array | string | number | boolean
|
|
|
436
435
|
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 {} ? {
|
|
437
436
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
438
437
|
} : Partial<T>;
|
|
439
|
-
export declare class GrpcWebError extends Error {
|
|
440
|
-
code: grpc.Code;
|
|
441
|
-
metadata: grpc.Metadata;
|
|
442
|
-
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
443
|
-
}
|
|
444
438
|
export {};
|
|
445
439
|
//# 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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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: "" };
|
|
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
|
}
|
|
@@ -137,7 +160,7 @@ exports.InstallRequest = {
|
|
|
137
160
|
return writer;
|
|
138
161
|
},
|
|
139
162
|
decode(input, length) {
|
|
140
|
-
const reader = input instanceof
|
|
163
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
141
164
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
142
165
|
const message = createBaseInstallRequest();
|
|
143
166
|
while (reader.pos < end) {
|
|
@@ -186,7 +209,7 @@ function createBaseUninstallRequest() {
|
|
|
186
209
|
return { appid: "", clearData: false };
|
|
187
210
|
}
|
|
188
211
|
exports.UninstallRequest = {
|
|
189
|
-
encode(message, writer =
|
|
212
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
190
213
|
if (message.appid !== "") {
|
|
191
214
|
writer.uint32(10).string(message.appid);
|
|
192
215
|
}
|
|
@@ -196,7 +219,7 @@ exports.UninstallRequest = {
|
|
|
196
219
|
return writer;
|
|
197
220
|
},
|
|
198
221
|
decode(input, length) {
|
|
199
|
-
const reader = input instanceof
|
|
222
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
200
223
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
201
224
|
const message = createBaseUninstallRequest();
|
|
202
225
|
while (reader.pos < end) {
|
|
@@ -239,7 +262,7 @@ function createBaseAppDownloadProgress() {
|
|
|
239
262
|
return { current: 0, total: 0 };
|
|
240
263
|
}
|
|
241
264
|
exports.AppDownloadProgress = {
|
|
242
|
-
encode(message, writer =
|
|
265
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
243
266
|
if (message.current !== 0) {
|
|
244
267
|
writer.uint32(8).uint64(message.current);
|
|
245
268
|
}
|
|
@@ -249,7 +272,7 @@ exports.AppDownloadProgress = {
|
|
|
249
272
|
return writer;
|
|
250
273
|
},
|
|
251
274
|
decode(input, length) {
|
|
252
|
-
const reader = input instanceof
|
|
275
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
253
276
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
254
277
|
const message = createBaseAppDownloadProgress();
|
|
255
278
|
while (reader.pos < end) {
|
|
@@ -303,7 +326,7 @@ function createBaseAppInfo() {
|
|
|
303
326
|
};
|
|
304
327
|
}
|
|
305
328
|
exports.AppInfo = {
|
|
306
|
-
encode(message, writer =
|
|
329
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
307
330
|
if (message.appid !== "") {
|
|
308
331
|
writer.uint32(10).string(message.appid);
|
|
309
332
|
}
|
|
@@ -334,7 +357,7 @@ exports.AppInfo = {
|
|
|
334
357
|
return writer;
|
|
335
358
|
},
|
|
336
359
|
decode(input, length) {
|
|
337
|
-
const reader = input instanceof
|
|
360
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
338
361
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
339
362
|
const message = createBaseAppInfo();
|
|
340
363
|
while (reader.pos < end) {
|
|
@@ -434,14 +457,14 @@ function createBaseQueryApplicationRequest() {
|
|
|
434
457
|
return { appidList: [] };
|
|
435
458
|
}
|
|
436
459
|
exports.QueryApplicationRequest = {
|
|
437
|
-
encode(message, writer =
|
|
460
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
438
461
|
for (const v of message.appidList) {
|
|
439
462
|
writer.uint32(10).string(v);
|
|
440
463
|
}
|
|
441
464
|
return writer;
|
|
442
465
|
},
|
|
443
466
|
decode(input, length) {
|
|
444
|
-
const reader = input instanceof
|
|
467
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
445
468
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
446
469
|
const message = createBaseQueryApplicationRequest();
|
|
447
470
|
while (reader.pos < end) {
|
|
@@ -485,14 +508,14 @@ function createBaseQueryApplicationResponse() {
|
|
|
485
508
|
return { infoList: [] };
|
|
486
509
|
}
|
|
487
510
|
exports.QueryApplicationResponse = {
|
|
488
|
-
encode(message, writer =
|
|
511
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
489
512
|
for (const v of message.infoList) {
|
|
490
513
|
exports.AppInfo.encode(v, writer.uint32(10).fork()).ldelim();
|
|
491
514
|
}
|
|
492
515
|
return writer;
|
|
493
516
|
},
|
|
494
517
|
decode(input, length) {
|
|
495
|
-
const reader = input instanceof
|
|
518
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
496
519
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
497
520
|
const message = createBaseQueryApplicationResponse();
|
|
498
521
|
while (reader.pos < end) {
|
|
@@ -544,7 +567,7 @@ function createBaseQueryAppStorageUsageRequest() {
|
|
|
544
567
|
};
|
|
545
568
|
}
|
|
546
569
|
exports.QueryAppStorageUsageRequest = {
|
|
547
|
-
encode(message, writer =
|
|
570
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
548
571
|
if (message.appid !== "") {
|
|
549
572
|
writer.uint32(10).string(message.appid);
|
|
550
573
|
}
|
|
@@ -566,7 +589,7 @@ exports.QueryAppStorageUsageRequest = {
|
|
|
566
589
|
return writer;
|
|
567
590
|
},
|
|
568
591
|
decode(input, length) {
|
|
569
|
-
const reader = input instanceof
|
|
592
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
570
593
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
571
594
|
const message = createBaseQueryAppStorageUsageRequest();
|
|
572
595
|
while (reader.pos < end) {
|
|
@@ -636,7 +659,7 @@ function createBaseAppStorageUsage() {
|
|
|
636
659
|
return { pkg: 0, data: 0, cache: 0, tmp: 0, userdata: {} };
|
|
637
660
|
}
|
|
638
661
|
exports.AppStorageUsage = {
|
|
639
|
-
encode(message, writer =
|
|
662
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
640
663
|
if (message.pkg !== 0) {
|
|
641
664
|
writer.uint32(8).uint64(message.pkg);
|
|
642
665
|
}
|
|
@@ -655,7 +678,7 @@ exports.AppStorageUsage = {
|
|
|
655
678
|
return writer;
|
|
656
679
|
},
|
|
657
680
|
decode(input, length) {
|
|
658
|
-
const reader = input instanceof
|
|
681
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
659
682
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
660
683
|
const message = createBaseAppStorageUsage();
|
|
661
684
|
while (reader.pos < end) {
|
|
@@ -734,7 +757,7 @@ function createBaseAppStorageUsage_UserdataEntry() {
|
|
|
734
757
|
return { key: "", value: 0 };
|
|
735
758
|
}
|
|
736
759
|
exports.AppStorageUsage_UserdataEntry = {
|
|
737
|
-
encode(message, writer =
|
|
760
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
738
761
|
if (message.key !== "") {
|
|
739
762
|
writer.uint32(10).string(message.key);
|
|
740
763
|
}
|
|
@@ -744,7 +767,7 @@ exports.AppStorageUsage_UserdataEntry = {
|
|
|
744
767
|
return writer;
|
|
745
768
|
},
|
|
746
769
|
decode(input, length) {
|
|
747
|
-
const reader = input instanceof
|
|
770
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
748
771
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
749
772
|
const message = createBaseAppStorageUsage_UserdataEntry();
|
|
750
773
|
while (reader.pos < end) {
|
|
@@ -787,7 +810,7 @@ function createBaseSetUserPermissionsRequest() {
|
|
|
787
810
|
return { uid: "", allowInstallApp: false, allowUninstallApp: false };
|
|
788
811
|
}
|
|
789
812
|
exports.SetUserPermissionsRequest = {
|
|
790
|
-
encode(message, writer =
|
|
813
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
791
814
|
if (message.uid !== "") {
|
|
792
815
|
writer.uint32(10).string(message.uid);
|
|
793
816
|
}
|
|
@@ -800,7 +823,7 @@ exports.SetUserPermissionsRequest = {
|
|
|
800
823
|
return writer;
|
|
801
824
|
},
|
|
802
825
|
decode(input, length) {
|
|
803
|
-
const reader = input instanceof
|
|
826
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
804
827
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
805
828
|
const message = createBaseSetUserPermissionsRequest();
|
|
806
829
|
while (reader.pos < end) {
|
|
@@ -855,14 +878,14 @@ function createBaseAppid() {
|
|
|
855
878
|
return { appid: "" };
|
|
856
879
|
}
|
|
857
880
|
exports.Appid = {
|
|
858
|
-
encode(message, writer =
|
|
881
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
859
882
|
if (message.appid !== "") {
|
|
860
883
|
writer.uint32(10).string(message.appid);
|
|
861
884
|
}
|
|
862
885
|
return writer;
|
|
863
886
|
},
|
|
864
887
|
decode(input, length) {
|
|
865
|
-
const reader = input instanceof
|
|
888
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
866
889
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
867
890
|
const message = createBaseAppid();
|
|
868
891
|
while (reader.pos < end) {
|
|
@@ -1059,7 +1082,9 @@ class GrpcWebImpl {
|
|
|
1059
1082
|
resolve(response.message);
|
|
1060
1083
|
}
|
|
1061
1084
|
else {
|
|
1062
|
-
const err = new
|
|
1085
|
+
const err = new Error(response.statusMessage);
|
|
1086
|
+
err.code = response.status;
|
|
1087
|
+
err.metadata = response.trailers;
|
|
1063
1088
|
reject(err);
|
|
1064
1089
|
}
|
|
1065
1090
|
},
|
|
@@ -1085,9 +1110,9 @@ function longToNumber(long) {
|
|
|
1085
1110
|
}
|
|
1086
1111
|
return long.toNumber();
|
|
1087
1112
|
}
|
|
1088
|
-
if (
|
|
1089
|
-
|
|
1090
|
-
|
|
1113
|
+
if (_m0.util.Long !== long_1.default) {
|
|
1114
|
+
_m0.util.Long = long_1.default;
|
|
1115
|
+
_m0.configure();
|
|
1091
1116
|
}
|
|
1092
1117
|
function isObject(value) {
|
|
1093
1118
|
return typeof value === "object" && value !== null;
|
|
@@ -1095,12 +1120,4 @@ function isObject(value) {
|
|
|
1095
1120
|
function isSet(value) {
|
|
1096
1121
|
return value !== null && value !== undefined;
|
|
1097
1122
|
}
|
|
1098
|
-
class GrpcWebError extends Error {
|
|
1099
|
-
constructor(message, code, metadata) {
|
|
1100
|
-
super(message);
|
|
1101
|
-
this.code = code;
|
|
1102
|
-
this.metadata = metadata;
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
exports.GrpcWebError = GrpcWebError;
|
|
1106
1123
|
//# sourceMappingURL=package_manager.js.map
|