@lazycatcloud/sdk 0.1.489 → 0.1.490
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/apk_shell.d.ts +126 -0
- package/dist/common/box.d.ts +2061 -0
- package/dist/common/browseronly.d.ts +159 -0
- package/dist/common/end_device.d.ts +358 -0
- package/dist/common/file_handler.d.ts +3398 -0
- package/dist/common/filetrans.d.ts +8541 -0
- package/dist/common/gateway.d.ts +249 -0
- package/dist/common/iscsi.d.ts +1841 -0
- package/dist/common/media_meta.d.ts +342 -0
- package/dist/common/message.d.ts +1435 -0
- package/dist/common/peripheral_device.d.ts +1768 -0
- package/dist/common/security_context.d.ts +241 -0
- package/dist/common/users.d.ts +367 -0
- package/dist/dlna/dlna.d.ts +344 -0
- package/dist/extentions/app_common.d.ts +130 -0
- package/dist/extentions/base.d.ts +136 -0
- package/dist/extentions/client_authorization.d.ts +19 -0
- package/dist/extentions/index.d.ts +24 -0
- package/dist/extentions/mediasession/definitions.d.ts +54 -0
- package/dist/extentions/mediasession/index.d.ts +8 -0
- package/dist/extentions/mediasession/web.d.ts +7 -0
- package/dist/extentions/safe_app.d.ts +35 -0
- package/dist/extentions/unsafe_app.d.ts +4 -0
- package/dist/extentions/vibrate_type.d.ts +10 -0
- package/dist/extentions/webview-bridge.d.ts +1 -0
- package/dist/google/protobuf/empty.d.ts +20 -0
- package/dist/google/protobuf/timestamp.d.ts +274 -0
- package/dist/grpcweb.d.ts +27 -0
- package/dist/index.d.ts +87 -0
- package/dist/localdevice/ble.d.ts +566 -0
- package/dist/localdevice/client.d.ts +218 -0
- package/dist/localdevice/cloud-driver.d.ts +152 -0
- package/dist/localdevice/config.d.ts +150 -0
- package/dist/localdevice/contacts.d.ts +556 -0
- package/dist/localdevice/device.d.ts +86 -0
- package/dist/localdevice/dialog.d.ts +239 -0
- package/dist/localdevice/local-launch.d.ts +303 -0
- package/dist/localdevice/network.d.ts +84 -0
- package/dist/localdevice/oneway-sync.d.ts +274 -0
- package/dist/localdevice/permission.d.ts +233 -0
- package/dist/localdevice/photo.d.ts +1408 -0
- package/dist/localdevice/photo.js.map +1 -1
- package/dist/localdevice/remote-control.d.ts +1941 -0
- package/dist/localdevice/remote-input-method.d.ts +128 -0
- package/dist/package.json +1 -1
- package/dist/sys/btled.d.ts +197 -0
- package/dist/sys/btrfs.d.ts +642 -0
- package/dist/sys/devopt.d.ts +101 -0
- package/dist/sys/dirmon.d.ts +136 -0
- package/dist/sys/event.d.ts +143 -0
- package/dist/sys/hal.d.ts +1021 -0
- package/dist/sys/ingress.d.ts +347 -0
- package/dist/sys/network_manager.d.ts +1179 -0
- package/dist/sys/package_manager.d.ts +25666 -0
- package/dist/sys/stats/cgroup_metrics.d.ts +22045 -0
- package/dist/sys/tvos.d.ts +490 -0
- package/dist/sys/version.d.ts +65 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Empty } from "../google/protobuf/empty";
|
|
5
|
+
export interface GetClientInfoResponse {
|
|
6
|
+
/** 设备客户端版本名字 */
|
|
7
|
+
versionName: string;
|
|
8
|
+
/** 设备版本编码 */
|
|
9
|
+
clientCode: Long;
|
|
10
|
+
}
|
|
11
|
+
export declare const GetClientInfoResponse: {
|
|
12
|
+
encode(message: GetClientInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetClientInfoResponse;
|
|
14
|
+
fromJSON(object: any): GetClientInfoResponse;
|
|
15
|
+
toJSON(message: GetClientInfoResponse): unknown;
|
|
16
|
+
create<I extends {
|
|
17
|
+
versionName?: string;
|
|
18
|
+
clientCode?: string | number | Long;
|
|
19
|
+
} & {
|
|
20
|
+
versionName?: string;
|
|
21
|
+
clientCode?: string | number | (Long & {
|
|
22
|
+
high: number;
|
|
23
|
+
low: number;
|
|
24
|
+
unsigned: boolean;
|
|
25
|
+
add: (addend: import("long/umd/types").LongLike) => Long;
|
|
26
|
+
and: (other: import("long/umd/types").LongLike) => Long;
|
|
27
|
+
compare: (other: import("long/umd/types").LongLike) => number;
|
|
28
|
+
comp: (other: import("long/umd/types").LongLike) => number;
|
|
29
|
+
divide: (divisor: import("long/umd/types").LongLike) => Long;
|
|
30
|
+
div: (divisor: import("long/umd/types").LongLike) => Long;
|
|
31
|
+
equals: (other: import("long/umd/types").LongLike) => boolean;
|
|
32
|
+
eq: (other: import("long/umd/types").LongLike) => boolean;
|
|
33
|
+
getHighBits: () => number;
|
|
34
|
+
getHighBitsUnsigned: () => number;
|
|
35
|
+
getLowBits: () => number;
|
|
36
|
+
getLowBitsUnsigned: () => number;
|
|
37
|
+
getNumBitsAbs: () => number;
|
|
38
|
+
greaterThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
39
|
+
gt: (other: import("long/umd/types").LongLike) => boolean;
|
|
40
|
+
greaterThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
41
|
+
gte: (other: import("long/umd/types").LongLike) => boolean;
|
|
42
|
+
ge: (other: import("long/umd/types").LongLike) => boolean;
|
|
43
|
+
isEven: () => boolean;
|
|
44
|
+
isNegative: () => boolean;
|
|
45
|
+
isOdd: () => boolean;
|
|
46
|
+
isPositive: () => boolean;
|
|
47
|
+
isSafeInteger: () => boolean;
|
|
48
|
+
isZero: () => boolean;
|
|
49
|
+
eqz: () => boolean;
|
|
50
|
+
lessThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
51
|
+
lt: (other: import("long/umd/types").LongLike) => boolean;
|
|
52
|
+
lessThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
53
|
+
lte: (other: import("long/umd/types").LongLike) => boolean;
|
|
54
|
+
le: (other: import("long/umd/types").LongLike) => boolean;
|
|
55
|
+
modulo: (other: import("long/umd/types").LongLike) => Long;
|
|
56
|
+
mod: (other: import("long/umd/types").LongLike) => Long;
|
|
57
|
+
rem: (other: import("long/umd/types").LongLike) => Long;
|
|
58
|
+
multiply: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
59
|
+
mul: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
60
|
+
negate: () => Long;
|
|
61
|
+
neg: () => Long;
|
|
62
|
+
not: () => Long;
|
|
63
|
+
countLeadingZeros: () => number;
|
|
64
|
+
clz: () => number;
|
|
65
|
+
countTrailingZeros: () => number;
|
|
66
|
+
ctz: () => number;
|
|
67
|
+
notEquals: (other: import("long/umd/types").LongLike) => boolean;
|
|
68
|
+
neq: (other: import("long/umd/types").LongLike) => boolean;
|
|
69
|
+
ne: (other: import("long/umd/types").LongLike) => boolean;
|
|
70
|
+
or: (other: import("long/umd/types").LongLike) => Long;
|
|
71
|
+
shiftLeft: (numBits: number | Long) => Long;
|
|
72
|
+
shl: (numBits: number | Long) => Long;
|
|
73
|
+
shiftRight: (numBits: number | Long) => Long;
|
|
74
|
+
shr: (numBits: number | Long) => Long;
|
|
75
|
+
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
76
|
+
shru: (numBits: number | Long) => Long;
|
|
77
|
+
shr_u: (numBits: number | Long) => Long;
|
|
78
|
+
rotateLeft: (numBits: number | Long) => Long;
|
|
79
|
+
rotl: (numBits: number | Long) => Long;
|
|
80
|
+
rotateRight: (numBits: number | Long) => Long;
|
|
81
|
+
rotr: (numBits: number | Long) => Long;
|
|
82
|
+
subtract: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
83
|
+
sub: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
84
|
+
toBigInt: () => bigint;
|
|
85
|
+
toInt: () => number;
|
|
86
|
+
toNumber: () => number;
|
|
87
|
+
toBytes: (le?: boolean) => number[];
|
|
88
|
+
toBytesLE: () => number[];
|
|
89
|
+
toBytesBE: () => number[];
|
|
90
|
+
toSigned: () => Long;
|
|
91
|
+
toString: (radix?: number) => string;
|
|
92
|
+
toUnsigned: () => Long;
|
|
93
|
+
xor: (other: import("long/umd/types").LongLike) => Long;
|
|
94
|
+
} & { [K in Exclude<keyof I["clientCode"], keyof Long>]: never; });
|
|
95
|
+
} & { [K_1 in Exclude<keyof I, keyof GetClientInfoResponse>]: never; }>(base?: I): GetClientInfoResponse;
|
|
96
|
+
fromPartial<I_1 extends {
|
|
97
|
+
versionName?: string;
|
|
98
|
+
clientCode?: string | number | Long;
|
|
99
|
+
} & {
|
|
100
|
+
versionName?: string;
|
|
101
|
+
clientCode?: string | number | (Long & {
|
|
102
|
+
high: number;
|
|
103
|
+
low: number;
|
|
104
|
+
unsigned: boolean;
|
|
105
|
+
add: (addend: import("long/umd/types").LongLike) => Long;
|
|
106
|
+
and: (other: import("long/umd/types").LongLike) => Long;
|
|
107
|
+
compare: (other: import("long/umd/types").LongLike) => number;
|
|
108
|
+
comp: (other: import("long/umd/types").LongLike) => number;
|
|
109
|
+
divide: (divisor: import("long/umd/types").LongLike) => Long;
|
|
110
|
+
div: (divisor: import("long/umd/types").LongLike) => Long;
|
|
111
|
+
equals: (other: import("long/umd/types").LongLike) => boolean;
|
|
112
|
+
eq: (other: import("long/umd/types").LongLike) => boolean;
|
|
113
|
+
getHighBits: () => number;
|
|
114
|
+
getHighBitsUnsigned: () => number;
|
|
115
|
+
getLowBits: () => number;
|
|
116
|
+
getLowBitsUnsigned: () => number;
|
|
117
|
+
getNumBitsAbs: () => number;
|
|
118
|
+
greaterThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
119
|
+
gt: (other: import("long/umd/types").LongLike) => boolean;
|
|
120
|
+
greaterThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
121
|
+
gte: (other: import("long/umd/types").LongLike) => boolean;
|
|
122
|
+
ge: (other: import("long/umd/types").LongLike) => boolean;
|
|
123
|
+
isEven: () => boolean;
|
|
124
|
+
isNegative: () => boolean;
|
|
125
|
+
isOdd: () => boolean;
|
|
126
|
+
isPositive: () => boolean;
|
|
127
|
+
isSafeInteger: () => boolean;
|
|
128
|
+
isZero: () => boolean;
|
|
129
|
+
eqz: () => boolean;
|
|
130
|
+
lessThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
131
|
+
lt: (other: import("long/umd/types").LongLike) => boolean;
|
|
132
|
+
lessThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
133
|
+
lte: (other: import("long/umd/types").LongLike) => boolean;
|
|
134
|
+
le: (other: import("long/umd/types").LongLike) => boolean;
|
|
135
|
+
modulo: (other: import("long/umd/types").LongLike) => Long;
|
|
136
|
+
mod: (other: import("long/umd/types").LongLike) => Long;
|
|
137
|
+
rem: (other: import("long/umd/types").LongLike) => Long;
|
|
138
|
+
multiply: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
139
|
+
mul: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
140
|
+
negate: () => Long;
|
|
141
|
+
neg: () => Long;
|
|
142
|
+
not: () => Long;
|
|
143
|
+
countLeadingZeros: () => number;
|
|
144
|
+
clz: () => number;
|
|
145
|
+
countTrailingZeros: () => number;
|
|
146
|
+
ctz: () => number;
|
|
147
|
+
notEquals: (other: import("long/umd/types").LongLike) => boolean;
|
|
148
|
+
neq: (other: import("long/umd/types").LongLike) => boolean;
|
|
149
|
+
ne: (other: import("long/umd/types").LongLike) => boolean;
|
|
150
|
+
or: (other: import("long/umd/types").LongLike) => Long;
|
|
151
|
+
shiftLeft: (numBits: number | Long) => Long;
|
|
152
|
+
shl: (numBits: number | Long) => Long;
|
|
153
|
+
shiftRight: (numBits: number | Long) => Long;
|
|
154
|
+
shr: (numBits: number | Long) => Long;
|
|
155
|
+
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
156
|
+
shru: (numBits: number | Long) => Long;
|
|
157
|
+
shr_u: (numBits: number | Long) => Long;
|
|
158
|
+
rotateLeft: (numBits: number | Long) => Long;
|
|
159
|
+
rotl: (numBits: number | Long) => Long;
|
|
160
|
+
rotateRight: (numBits: number | Long) => Long;
|
|
161
|
+
rotr: (numBits: number | Long) => Long;
|
|
162
|
+
subtract: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
163
|
+
sub: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
164
|
+
toBigInt: () => bigint;
|
|
165
|
+
toInt: () => number;
|
|
166
|
+
toNumber: () => number;
|
|
167
|
+
toBytes: (le?: boolean) => number[];
|
|
168
|
+
toBytesLE: () => number[];
|
|
169
|
+
toBytesBE: () => number[];
|
|
170
|
+
toSigned: () => Long;
|
|
171
|
+
toString: (radix?: number) => string;
|
|
172
|
+
toUnsigned: () => Long;
|
|
173
|
+
xor: (other: import("long/umd/types").LongLike) => Long;
|
|
174
|
+
} & { [K_2 in Exclude<keyof I_1["clientCode"], keyof Long>]: never; });
|
|
175
|
+
} & { [K_3 in Exclude<keyof I_1, keyof GetClientInfoResponse>]: never; }>(object: I_1): GetClientInfoResponse;
|
|
176
|
+
};
|
|
177
|
+
export interface Client {
|
|
178
|
+
GetClientInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetClientInfoResponse>;
|
|
179
|
+
}
|
|
180
|
+
export declare class ClientClientImpl implements Client {
|
|
181
|
+
private readonly rpc;
|
|
182
|
+
constructor(rpc: Rpc);
|
|
183
|
+
GetClientInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetClientInfoResponse>;
|
|
184
|
+
}
|
|
185
|
+
export declare const ClientDesc: {
|
|
186
|
+
serviceName: string;
|
|
187
|
+
};
|
|
188
|
+
export declare const ClientGetClientInfoDesc: UnaryMethodDefinitionish;
|
|
189
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
190
|
+
requestStream: any;
|
|
191
|
+
responseStream: any;
|
|
192
|
+
}
|
|
193
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
194
|
+
interface Rpc {
|
|
195
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
196
|
+
}
|
|
197
|
+
export declare class GrpcWebImpl {
|
|
198
|
+
private host;
|
|
199
|
+
private options;
|
|
200
|
+
constructor(host: string, options: {
|
|
201
|
+
transport?: grpc.TransportFactory;
|
|
202
|
+
debug?: boolean;
|
|
203
|
+
metadata?: grpc.Metadata;
|
|
204
|
+
upStreamRetryCodes?: number[];
|
|
205
|
+
});
|
|
206
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
207
|
+
}
|
|
208
|
+
declare const tsProtoGlobalThis: any;
|
|
209
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
210
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
211
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
212
|
+
} : Partial<T>;
|
|
213
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
214
|
+
code: grpc.Code;
|
|
215
|
+
metadata: grpc.Metadata;
|
|
216
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
217
|
+
}
|
|
218
|
+
export {};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export interface OpenFileRequest {
|
|
5
|
+
boxName: string;
|
|
6
|
+
filePath: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OpenFileReply {
|
|
9
|
+
}
|
|
10
|
+
export interface EnableAutoMountRequest {
|
|
11
|
+
boxName: string;
|
|
12
|
+
}
|
|
13
|
+
export interface EnableAutoMountReply {
|
|
14
|
+
}
|
|
15
|
+
export interface IsEnableAutoMountRequest {
|
|
16
|
+
boxName: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IsEnableAutoMountReply {
|
|
19
|
+
enable: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const OpenFileRequest: {
|
|
22
|
+
encode(message: OpenFileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenFileRequest;
|
|
24
|
+
fromJSON(object: any): OpenFileRequest;
|
|
25
|
+
toJSON(message: OpenFileRequest): unknown;
|
|
26
|
+
create<I extends {
|
|
27
|
+
boxName?: string;
|
|
28
|
+
filePath?: string;
|
|
29
|
+
} & {
|
|
30
|
+
boxName?: string;
|
|
31
|
+
filePath?: string;
|
|
32
|
+
} & { [K in Exclude<keyof I, keyof OpenFileRequest>]: never; }>(base?: I): OpenFileRequest;
|
|
33
|
+
fromPartial<I_1 extends {
|
|
34
|
+
boxName?: string;
|
|
35
|
+
filePath?: string;
|
|
36
|
+
} & {
|
|
37
|
+
boxName?: string;
|
|
38
|
+
filePath?: string;
|
|
39
|
+
} & { [K_1 in Exclude<keyof I_1, keyof OpenFileRequest>]: never; }>(object: I_1): OpenFileRequest;
|
|
40
|
+
};
|
|
41
|
+
export declare const OpenFileReply: {
|
|
42
|
+
encode(_: OpenFileReply, writer?: _m0.Writer): _m0.Writer;
|
|
43
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): OpenFileReply;
|
|
44
|
+
fromJSON(_: any): OpenFileReply;
|
|
45
|
+
toJSON(_: OpenFileReply): unknown;
|
|
46
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): OpenFileReply;
|
|
47
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): OpenFileReply;
|
|
48
|
+
};
|
|
49
|
+
export declare const EnableAutoMountRequest: {
|
|
50
|
+
encode(message: EnableAutoMountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
51
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnableAutoMountRequest;
|
|
52
|
+
fromJSON(object: any): EnableAutoMountRequest;
|
|
53
|
+
toJSON(message: EnableAutoMountRequest): unknown;
|
|
54
|
+
create<I extends {
|
|
55
|
+
boxName?: string;
|
|
56
|
+
} & {
|
|
57
|
+
boxName?: string;
|
|
58
|
+
} & { [K in Exclude<keyof I, "boxName">]: never; }>(base?: I): EnableAutoMountRequest;
|
|
59
|
+
fromPartial<I_1 extends {
|
|
60
|
+
boxName?: string;
|
|
61
|
+
} & {
|
|
62
|
+
boxName?: string;
|
|
63
|
+
} & { [K_1 in Exclude<keyof I_1, "boxName">]: never; }>(object: I_1): EnableAutoMountRequest;
|
|
64
|
+
};
|
|
65
|
+
export declare const EnableAutoMountReply: {
|
|
66
|
+
encode(_: EnableAutoMountReply, writer?: _m0.Writer): _m0.Writer;
|
|
67
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): EnableAutoMountReply;
|
|
68
|
+
fromJSON(_: any): EnableAutoMountReply;
|
|
69
|
+
toJSON(_: EnableAutoMountReply): unknown;
|
|
70
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): EnableAutoMountReply;
|
|
71
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): EnableAutoMountReply;
|
|
72
|
+
};
|
|
73
|
+
export declare const IsEnableAutoMountRequest: {
|
|
74
|
+
encode(message: IsEnableAutoMountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
75
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IsEnableAutoMountRequest;
|
|
76
|
+
fromJSON(object: any): IsEnableAutoMountRequest;
|
|
77
|
+
toJSON(message: IsEnableAutoMountRequest): unknown;
|
|
78
|
+
create<I extends {
|
|
79
|
+
boxName?: string;
|
|
80
|
+
} & {
|
|
81
|
+
boxName?: string;
|
|
82
|
+
} & { [K in Exclude<keyof I, "boxName">]: never; }>(base?: I): IsEnableAutoMountRequest;
|
|
83
|
+
fromPartial<I_1 extends {
|
|
84
|
+
boxName?: string;
|
|
85
|
+
} & {
|
|
86
|
+
boxName?: string;
|
|
87
|
+
} & { [K_1 in Exclude<keyof I_1, "boxName">]: never; }>(object: I_1): IsEnableAutoMountRequest;
|
|
88
|
+
};
|
|
89
|
+
export declare const IsEnableAutoMountReply: {
|
|
90
|
+
encode(message: IsEnableAutoMountReply, writer?: _m0.Writer): _m0.Writer;
|
|
91
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): IsEnableAutoMountReply;
|
|
92
|
+
fromJSON(object: any): IsEnableAutoMountReply;
|
|
93
|
+
toJSON(message: IsEnableAutoMountReply): unknown;
|
|
94
|
+
create<I extends {
|
|
95
|
+
enable?: boolean;
|
|
96
|
+
} & {
|
|
97
|
+
enable?: boolean;
|
|
98
|
+
} & { [K in Exclude<keyof I, "enable">]: never; }>(base?: I): IsEnableAutoMountReply;
|
|
99
|
+
fromPartial<I_1 extends {
|
|
100
|
+
enable?: boolean;
|
|
101
|
+
} & {
|
|
102
|
+
enable?: boolean;
|
|
103
|
+
} & { [K_1 in Exclude<keyof I_1, "enable">]: never; }>(object: I_1): IsEnableAutoMountReply;
|
|
104
|
+
};
|
|
105
|
+
export interface CloudDriver {
|
|
106
|
+
EnableAutoMount(request: DeepPartial<EnableAutoMountRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<EnableAutoMountReply>;
|
|
107
|
+
IsEnableAutoMount(request: DeepPartial<IsEnableAutoMountRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<IsEnableAutoMountReply>;
|
|
108
|
+
OpenFile(request: DeepPartial<OpenFileRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenFileReply>;
|
|
109
|
+
}
|
|
110
|
+
export declare class CloudDriverClientImpl implements CloudDriver {
|
|
111
|
+
private readonly rpc;
|
|
112
|
+
constructor(rpc: Rpc);
|
|
113
|
+
EnableAutoMount(request: DeepPartial<EnableAutoMountRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<EnableAutoMountReply>;
|
|
114
|
+
IsEnableAutoMount(request: DeepPartial<IsEnableAutoMountRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<IsEnableAutoMountReply>;
|
|
115
|
+
OpenFile(request: DeepPartial<OpenFileRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<OpenFileReply>;
|
|
116
|
+
}
|
|
117
|
+
export declare const CloudDriverDesc: {
|
|
118
|
+
serviceName: string;
|
|
119
|
+
};
|
|
120
|
+
export declare const CloudDriverEnableAutoMountDesc: UnaryMethodDefinitionish;
|
|
121
|
+
export declare const CloudDriverIsEnableAutoMountDesc: UnaryMethodDefinitionish;
|
|
122
|
+
export declare const CloudDriverOpenFileDesc: UnaryMethodDefinitionish;
|
|
123
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
124
|
+
requestStream: any;
|
|
125
|
+
responseStream: any;
|
|
126
|
+
}
|
|
127
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
128
|
+
interface Rpc {
|
|
129
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
130
|
+
}
|
|
131
|
+
export declare class GrpcWebImpl {
|
|
132
|
+
private host;
|
|
133
|
+
private options;
|
|
134
|
+
constructor(host: string, options: {
|
|
135
|
+
transport?: grpc.TransportFactory;
|
|
136
|
+
debug?: boolean;
|
|
137
|
+
metadata?: grpc.Metadata;
|
|
138
|
+
upStreamRetryCodes?: number[];
|
|
139
|
+
});
|
|
140
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
141
|
+
}
|
|
142
|
+
declare const tsProtoGlobalThis: any;
|
|
143
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
144
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
145
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
146
|
+
} : Partial<T>;
|
|
147
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
148
|
+
code: grpc.Code;
|
|
149
|
+
metadata: grpc.Metadata;
|
|
150
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
151
|
+
}
|
|
152
|
+
export {};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
export interface SetUserConfigRequest {
|
|
5
|
+
boxId: string;
|
|
6
|
+
userId: string;
|
|
7
|
+
appId: string;
|
|
8
|
+
configKey: string;
|
|
9
|
+
configValue: string;
|
|
10
|
+
}
|
|
11
|
+
export interface SetUserConfigResponse {
|
|
12
|
+
}
|
|
13
|
+
export interface GetUserConfigRequest {
|
|
14
|
+
boxId: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
appId: string;
|
|
17
|
+
configKey: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GetUserConfigResponse {
|
|
20
|
+
configValue: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const SetUserConfigRequest: {
|
|
23
|
+
encode(message: SetUserConfigRequest, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SetUserConfigRequest;
|
|
25
|
+
fromJSON(object: any): SetUserConfigRequest;
|
|
26
|
+
toJSON(message: SetUserConfigRequest): unknown;
|
|
27
|
+
create<I extends {
|
|
28
|
+
boxId?: string;
|
|
29
|
+
userId?: string;
|
|
30
|
+
appId?: string;
|
|
31
|
+
configKey?: string;
|
|
32
|
+
configValue?: string;
|
|
33
|
+
} & {
|
|
34
|
+
boxId?: string;
|
|
35
|
+
userId?: string;
|
|
36
|
+
appId?: string;
|
|
37
|
+
configKey?: string;
|
|
38
|
+
configValue?: string;
|
|
39
|
+
} & { [K in Exclude<keyof I, keyof SetUserConfigRequest>]: never; }>(base?: I): SetUserConfigRequest;
|
|
40
|
+
fromPartial<I_1 extends {
|
|
41
|
+
boxId?: string;
|
|
42
|
+
userId?: string;
|
|
43
|
+
appId?: string;
|
|
44
|
+
configKey?: string;
|
|
45
|
+
configValue?: string;
|
|
46
|
+
} & {
|
|
47
|
+
boxId?: string;
|
|
48
|
+
userId?: string;
|
|
49
|
+
appId?: string;
|
|
50
|
+
configKey?: string;
|
|
51
|
+
configValue?: string;
|
|
52
|
+
} & { [K_1 in Exclude<keyof I_1, keyof SetUserConfigRequest>]: never; }>(object: I_1): SetUserConfigRequest;
|
|
53
|
+
};
|
|
54
|
+
export declare const SetUserConfigResponse: {
|
|
55
|
+
encode(_: SetUserConfigResponse, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SetUserConfigResponse;
|
|
57
|
+
fromJSON(_: any): SetUserConfigResponse;
|
|
58
|
+
toJSON(_: SetUserConfigResponse): unknown;
|
|
59
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): SetUserConfigResponse;
|
|
60
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): SetUserConfigResponse;
|
|
61
|
+
};
|
|
62
|
+
export declare const GetUserConfigRequest: {
|
|
63
|
+
encode(message: GetUserConfigRequest, writer?: _m0.Writer): _m0.Writer;
|
|
64
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetUserConfigRequest;
|
|
65
|
+
fromJSON(object: any): GetUserConfigRequest;
|
|
66
|
+
toJSON(message: GetUserConfigRequest): unknown;
|
|
67
|
+
create<I extends {
|
|
68
|
+
boxId?: string;
|
|
69
|
+
userId?: string;
|
|
70
|
+
appId?: string;
|
|
71
|
+
configKey?: string;
|
|
72
|
+
} & {
|
|
73
|
+
boxId?: string;
|
|
74
|
+
userId?: string;
|
|
75
|
+
appId?: string;
|
|
76
|
+
configKey?: string;
|
|
77
|
+
} & { [K in Exclude<keyof I, keyof GetUserConfigRequest>]: never; }>(base?: I): GetUserConfigRequest;
|
|
78
|
+
fromPartial<I_1 extends {
|
|
79
|
+
boxId?: string;
|
|
80
|
+
userId?: string;
|
|
81
|
+
appId?: string;
|
|
82
|
+
configKey?: string;
|
|
83
|
+
} & {
|
|
84
|
+
boxId?: string;
|
|
85
|
+
userId?: string;
|
|
86
|
+
appId?: string;
|
|
87
|
+
configKey?: string;
|
|
88
|
+
} & { [K_1 in Exclude<keyof I_1, keyof GetUserConfigRequest>]: never; }>(object: I_1): GetUserConfigRequest;
|
|
89
|
+
};
|
|
90
|
+
export declare const GetUserConfigResponse: {
|
|
91
|
+
encode(message: GetUserConfigResponse, writer?: _m0.Writer): _m0.Writer;
|
|
92
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetUserConfigResponse;
|
|
93
|
+
fromJSON(object: any): GetUserConfigResponse;
|
|
94
|
+
toJSON(message: GetUserConfigResponse): unknown;
|
|
95
|
+
create<I extends {
|
|
96
|
+
configValue?: string;
|
|
97
|
+
} & {
|
|
98
|
+
configValue?: string;
|
|
99
|
+
} & { [K in Exclude<keyof I, "configValue">]: never; }>(base?: I): GetUserConfigResponse;
|
|
100
|
+
fromPartial<I_1 extends {
|
|
101
|
+
configValue?: string;
|
|
102
|
+
} & {
|
|
103
|
+
configValue?: string;
|
|
104
|
+
} & { [K_1 in Exclude<keyof I_1, "configValue">]: never; }>(object: I_1): GetUserConfigResponse;
|
|
105
|
+
};
|
|
106
|
+
export interface UserConfig {
|
|
107
|
+
GetUserConfig(request: DeepPartial<GetUserConfigRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetUserConfigResponse>;
|
|
108
|
+
SetUserConfig(request: DeepPartial<SetUserConfigRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<SetUserConfigResponse>;
|
|
109
|
+
}
|
|
110
|
+
export declare class UserConfigClientImpl implements UserConfig {
|
|
111
|
+
private readonly rpc;
|
|
112
|
+
constructor(rpc: Rpc);
|
|
113
|
+
GetUserConfig(request: DeepPartial<GetUserConfigRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetUserConfigResponse>;
|
|
114
|
+
SetUserConfig(request: DeepPartial<SetUserConfigRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<SetUserConfigResponse>;
|
|
115
|
+
}
|
|
116
|
+
export declare const UserConfigDesc: {
|
|
117
|
+
serviceName: string;
|
|
118
|
+
};
|
|
119
|
+
export declare const UserConfigGetUserConfigDesc: UnaryMethodDefinitionish;
|
|
120
|
+
export declare const UserConfigSetUserConfigDesc: UnaryMethodDefinitionish;
|
|
121
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
122
|
+
requestStream: any;
|
|
123
|
+
responseStream: any;
|
|
124
|
+
}
|
|
125
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
126
|
+
interface Rpc {
|
|
127
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
128
|
+
}
|
|
129
|
+
export declare class GrpcWebImpl {
|
|
130
|
+
private host;
|
|
131
|
+
private options;
|
|
132
|
+
constructor(host: string, options: {
|
|
133
|
+
transport?: grpc.TransportFactory;
|
|
134
|
+
debug?: boolean;
|
|
135
|
+
metadata?: grpc.Metadata;
|
|
136
|
+
upStreamRetryCodes?: number[];
|
|
137
|
+
});
|
|
138
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
139
|
+
}
|
|
140
|
+
declare const tsProtoGlobalThis: any;
|
|
141
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
142
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
143
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
144
|
+
} : Partial<T>;
|
|
145
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
146
|
+
code: grpc.Code;
|
|
147
|
+
metadata: grpc.Metadata;
|
|
148
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
149
|
+
}
|
|
150
|
+
export {};
|