@lazycatcloud/sdk 0.1.489 → 0.1.491
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,1021 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import Long from "long";
|
|
3
|
+
import _m0 from "protobufjs/minimal";
|
|
4
|
+
import { Observable } from "rxjs";
|
|
5
|
+
import { Empty } from "../google/protobuf/empty";
|
|
6
|
+
export declare enum FanType {
|
|
7
|
+
CPU_FAN = 0,
|
|
8
|
+
MEM_FAN = 1,
|
|
9
|
+
UNRECOGNIZED = -1
|
|
10
|
+
}
|
|
11
|
+
export declare function fanTypeFromJSON(object: any): FanType;
|
|
12
|
+
export declare function fanTypeToJSON(object: FanType): string;
|
|
13
|
+
export declare enum HIButtonKind {
|
|
14
|
+
BUTTON_CLICK = 0,
|
|
15
|
+
BUTTON_DOUBLE_CLICK = 1,
|
|
16
|
+
BUTTON_LONG_PRESS = 2,
|
|
17
|
+
UNRECOGNIZED = -1
|
|
18
|
+
}
|
|
19
|
+
export declare function hIButtonKindFromJSON(object: any): HIButtonKind;
|
|
20
|
+
export declare function hIButtonKindToJSON(object: HIButtonKind): string;
|
|
21
|
+
export interface FanStatus {
|
|
22
|
+
type: FanType;
|
|
23
|
+
/** current speed in rotate per min(RPM) */
|
|
24
|
+
currentRpm: number;
|
|
25
|
+
minRpm: number;
|
|
26
|
+
maxRpm: number;
|
|
27
|
+
/** pwm info */
|
|
28
|
+
pwmEnabled: boolean;
|
|
29
|
+
pwmFreq: number;
|
|
30
|
+
currentPwm: number;
|
|
31
|
+
}
|
|
32
|
+
export interface FanInfoResponse {
|
|
33
|
+
status: FanStatus[];
|
|
34
|
+
/** installed fans */
|
|
35
|
+
fansInstalled: number;
|
|
36
|
+
}
|
|
37
|
+
export interface FanConfig {
|
|
38
|
+
percentage: number;
|
|
39
|
+
speedType: FanConfig_SpeedType;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 静音模式:MANUAL , Percentage: 10 (较小值即可) 最低1000转左右
|
|
43
|
+
* 智能模式:SMART , Percentage:100 (不需要),自动调节
|
|
44
|
+
* 全速模式:MANUAL , Percentage:100
|
|
45
|
+
*/
|
|
46
|
+
export declare enum FanConfig_SpeedType {
|
|
47
|
+
UNSPECIFIED = 0,
|
|
48
|
+
/** MANUAL - 手动,固定在百分比的转速 */
|
|
49
|
+
MANUAL = 1,
|
|
50
|
+
/** SMART - 自动,自动调节转速 */
|
|
51
|
+
SMART = 2,
|
|
52
|
+
UNRECOGNIZED = -1
|
|
53
|
+
}
|
|
54
|
+
export declare function fanConfig_SpeedTypeFromJSON(object: any): FanConfig_SpeedType;
|
|
55
|
+
export declare function fanConfig_SpeedTypeToJSON(object: FanConfig_SpeedType): string;
|
|
56
|
+
export interface SetFanConfigReq {
|
|
57
|
+
config: FanConfig | undefined;
|
|
58
|
+
}
|
|
59
|
+
export interface SetFanConfigResp {
|
|
60
|
+
}
|
|
61
|
+
export interface GetFanConfigReq {
|
|
62
|
+
}
|
|
63
|
+
export interface GetFanConfigResp {
|
|
64
|
+
config: FanConfig | undefined;
|
|
65
|
+
fanRpm: number;
|
|
66
|
+
}
|
|
67
|
+
export interface PLedState {
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface SLedState {
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface PLedEffect {
|
|
74
|
+
effect: PLedEffect_Effect;
|
|
75
|
+
/** speed range: [1, 100] */
|
|
76
|
+
speed: Long;
|
|
77
|
+
}
|
|
78
|
+
export declare enum PLedEffect_Effect {
|
|
79
|
+
WAVE = 0,
|
|
80
|
+
SEQUENTIAL_LTR = 1,
|
|
81
|
+
SEQUENTIAL_RTL = 2,
|
|
82
|
+
SWEEPING_LTR = 3,
|
|
83
|
+
SWEEPING_RTL = 4,
|
|
84
|
+
OSCILLATING = 5,
|
|
85
|
+
BLINK = 6,
|
|
86
|
+
UNRECOGNIZED = -1
|
|
87
|
+
}
|
|
88
|
+
export declare function pLedEffect_EffectFromJSON(object: any): PLedEffect_Effect;
|
|
89
|
+
export declare function pLedEffect_EffectToJSON(object: PLedEffect_Effect): string;
|
|
90
|
+
export interface ButtonEventQueue {
|
|
91
|
+
queue: ButtonEventQueue_ButtonEvent[];
|
|
92
|
+
}
|
|
93
|
+
export declare enum ButtonEventQueue_ButtonEventKind {
|
|
94
|
+
/** BUTTON_DOWN - 按钮被按下 */
|
|
95
|
+
BUTTON_DOWN = 0,
|
|
96
|
+
/** BUTTON_UP - 按钮被松开 */
|
|
97
|
+
BUTTON_UP = 1,
|
|
98
|
+
/**
|
|
99
|
+
* BUTTON_CLICK - 按钮被点击(按下后被快速松开,两次点击间隔不超过 500 毫秒)
|
|
100
|
+
* 当按钮被点击时,会先产生 BUTTON_DOWN 事件,然后产生 BUTTON_UP 事件,最后产生 BUTTON_CLICK 事件
|
|
101
|
+
* 如果只需要监听按钮被点击事件,可以忽略 BUTTON_DOWN 和 BUTTON_UP 事件
|
|
102
|
+
* 如果需要判断按钮是单击还是双击,需要自行等待 500 毫秒,如果没有收到 BUTTON_DOUBLE_CLICK 事件,则表示是单击
|
|
103
|
+
*/
|
|
104
|
+
BUTTON_CLICK = 2,
|
|
105
|
+
/**
|
|
106
|
+
* BUTTON_DOUBLE_CLICK - 按钮被双击(两次点击间隔不超过 500 毫秒)
|
|
107
|
+
* 当按钮被双击时,会产生两次 BUTTON_CLICK 事件后才产生 BUTTON_DOUBLE_CLICK 事件
|
|
108
|
+
* 如果只需要监听按钮被双击事件,可以忽略 BUTTON_CLICK、BUTTON_DOWN、BUTTON_UP 事件
|
|
109
|
+
*/
|
|
110
|
+
BUTTON_DOUBLE_CLICK = 3,
|
|
111
|
+
/**
|
|
112
|
+
* BUTTON_LONG_PRESS - 按钮被长按(按下时间超过 2 秒还未松开)
|
|
113
|
+
* 按钮被长按的事件过程:会先产生 BUTTON_DOWN 事件,然后产生 BUTTON_LONG_PRESS 事件,等到按钮被松开时,会产生 BUTTON_UP 事件
|
|
114
|
+
*/
|
|
115
|
+
BUTTON_LONG_PRESS = 4,
|
|
116
|
+
/**
|
|
117
|
+
* BUTTON_LONG_PRESS_10S - 按钮被长按(按下时间超过 10 秒还未松开)
|
|
118
|
+
* 按钮被长按超过10秒的事件过程,会先产生 BUTTON_DOWN 事件,然后2秒后产生 BUTTON_LONG_PRESS 事件,然后8秒后产生 BUTTON_LONG_PRESS_10S 事件,等到按钮被松开时,会产生 BUTTON_UP 事件
|
|
119
|
+
*/
|
|
120
|
+
BUTTON_LONG_PRESS_10S = 5,
|
|
121
|
+
UNRECOGNIZED = -1
|
|
122
|
+
}
|
|
123
|
+
export declare function buttonEventQueue_ButtonEventKindFromJSON(object: any): ButtonEventQueue_ButtonEventKind;
|
|
124
|
+
export declare function buttonEventQueue_ButtonEventKindToJSON(object: ButtonEventQueue_ButtonEventKind): string;
|
|
125
|
+
export interface ButtonEventQueue_ButtonEvent {
|
|
126
|
+
kind: ButtonEventQueue_ButtonEventKind;
|
|
127
|
+
timestamp: Date | undefined;
|
|
128
|
+
}
|
|
129
|
+
export interface GetButtonEventRequest {
|
|
130
|
+
/** 启用状态Led交互 */
|
|
131
|
+
SLedInteraction: boolean;
|
|
132
|
+
/** 启用电源Led交互 */
|
|
133
|
+
PLedInteraction: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface RawButtonEvent {
|
|
136
|
+
kind: RawButtonEvent_RawButtonKind;
|
|
137
|
+
}
|
|
138
|
+
export declare enum RawButtonEvent_RawButtonKind {
|
|
139
|
+
BUTTON_DOWN = 0,
|
|
140
|
+
BUTTON_UP = 1,
|
|
141
|
+
UNRECOGNIZED = -1
|
|
142
|
+
}
|
|
143
|
+
export declare function rawButtonEvent_RawButtonKindFromJSON(object: any): RawButtonEvent_RawButtonKind;
|
|
144
|
+
export declare function rawButtonEvent_RawButtonKindToJSON(object: RawButtonEvent_RawButtonKind): string;
|
|
145
|
+
export interface HIButtonEvent {
|
|
146
|
+
kind: HIButtonKind;
|
|
147
|
+
}
|
|
148
|
+
export interface TriggerBtnRequest {
|
|
149
|
+
kind: HIButtonKind;
|
|
150
|
+
reqOptions: GetButtonEventRequest | undefined;
|
|
151
|
+
}
|
|
152
|
+
export interface FanRpm {
|
|
153
|
+
rpm: Long;
|
|
154
|
+
}
|
|
155
|
+
export declare const FanStatus: {
|
|
156
|
+
encode(message: FanStatus, writer?: _m0.Writer): _m0.Writer;
|
|
157
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FanStatus;
|
|
158
|
+
fromJSON(object: any): FanStatus;
|
|
159
|
+
toJSON(message: FanStatus): unknown;
|
|
160
|
+
create<I extends {
|
|
161
|
+
type?: FanType;
|
|
162
|
+
currentRpm?: number;
|
|
163
|
+
minRpm?: number;
|
|
164
|
+
maxRpm?: number;
|
|
165
|
+
pwmEnabled?: boolean;
|
|
166
|
+
pwmFreq?: number;
|
|
167
|
+
currentPwm?: number;
|
|
168
|
+
} & {
|
|
169
|
+
type?: FanType;
|
|
170
|
+
currentRpm?: number;
|
|
171
|
+
minRpm?: number;
|
|
172
|
+
maxRpm?: number;
|
|
173
|
+
pwmEnabled?: boolean;
|
|
174
|
+
pwmFreq?: number;
|
|
175
|
+
currentPwm?: number;
|
|
176
|
+
} & { [K in Exclude<keyof I, keyof FanStatus>]: never; }>(base?: I): FanStatus;
|
|
177
|
+
fromPartial<I_1 extends {
|
|
178
|
+
type?: FanType;
|
|
179
|
+
currentRpm?: number;
|
|
180
|
+
minRpm?: number;
|
|
181
|
+
maxRpm?: number;
|
|
182
|
+
pwmEnabled?: boolean;
|
|
183
|
+
pwmFreq?: number;
|
|
184
|
+
currentPwm?: number;
|
|
185
|
+
} & {
|
|
186
|
+
type?: FanType;
|
|
187
|
+
currentRpm?: number;
|
|
188
|
+
minRpm?: number;
|
|
189
|
+
maxRpm?: number;
|
|
190
|
+
pwmEnabled?: boolean;
|
|
191
|
+
pwmFreq?: number;
|
|
192
|
+
currentPwm?: number;
|
|
193
|
+
} & { [K_1 in Exclude<keyof I_1, keyof FanStatus>]: never; }>(object: I_1): FanStatus;
|
|
194
|
+
};
|
|
195
|
+
export declare const FanInfoResponse: {
|
|
196
|
+
encode(message: FanInfoResponse, writer?: _m0.Writer): _m0.Writer;
|
|
197
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FanInfoResponse;
|
|
198
|
+
fromJSON(object: any): FanInfoResponse;
|
|
199
|
+
toJSON(message: FanInfoResponse): unknown;
|
|
200
|
+
create<I extends {
|
|
201
|
+
status?: {
|
|
202
|
+
type?: FanType;
|
|
203
|
+
currentRpm?: number;
|
|
204
|
+
minRpm?: number;
|
|
205
|
+
maxRpm?: number;
|
|
206
|
+
pwmEnabled?: boolean;
|
|
207
|
+
pwmFreq?: number;
|
|
208
|
+
currentPwm?: number;
|
|
209
|
+
}[];
|
|
210
|
+
fansInstalled?: number;
|
|
211
|
+
} & {
|
|
212
|
+
status?: {
|
|
213
|
+
type?: FanType;
|
|
214
|
+
currentRpm?: number;
|
|
215
|
+
minRpm?: number;
|
|
216
|
+
maxRpm?: number;
|
|
217
|
+
pwmEnabled?: boolean;
|
|
218
|
+
pwmFreq?: number;
|
|
219
|
+
currentPwm?: number;
|
|
220
|
+
}[] & ({
|
|
221
|
+
type?: FanType;
|
|
222
|
+
currentRpm?: number;
|
|
223
|
+
minRpm?: number;
|
|
224
|
+
maxRpm?: number;
|
|
225
|
+
pwmEnabled?: boolean;
|
|
226
|
+
pwmFreq?: number;
|
|
227
|
+
currentPwm?: number;
|
|
228
|
+
} & {
|
|
229
|
+
type?: FanType;
|
|
230
|
+
currentRpm?: number;
|
|
231
|
+
minRpm?: number;
|
|
232
|
+
maxRpm?: number;
|
|
233
|
+
pwmEnabled?: boolean;
|
|
234
|
+
pwmFreq?: number;
|
|
235
|
+
currentPwm?: number;
|
|
236
|
+
} & { [K in Exclude<keyof I["status"][number], keyof FanStatus>]: never; })[] & { [K_1 in Exclude<keyof I["status"], keyof {
|
|
237
|
+
type?: FanType;
|
|
238
|
+
currentRpm?: number;
|
|
239
|
+
minRpm?: number;
|
|
240
|
+
maxRpm?: number;
|
|
241
|
+
pwmEnabled?: boolean;
|
|
242
|
+
pwmFreq?: number;
|
|
243
|
+
currentPwm?: number;
|
|
244
|
+
}[]>]: never; };
|
|
245
|
+
fansInstalled?: number;
|
|
246
|
+
} & { [K_2 in Exclude<keyof I, keyof FanInfoResponse>]: never; }>(base?: I): FanInfoResponse;
|
|
247
|
+
fromPartial<I_1 extends {
|
|
248
|
+
status?: {
|
|
249
|
+
type?: FanType;
|
|
250
|
+
currentRpm?: number;
|
|
251
|
+
minRpm?: number;
|
|
252
|
+
maxRpm?: number;
|
|
253
|
+
pwmEnabled?: boolean;
|
|
254
|
+
pwmFreq?: number;
|
|
255
|
+
currentPwm?: number;
|
|
256
|
+
}[];
|
|
257
|
+
fansInstalled?: number;
|
|
258
|
+
} & {
|
|
259
|
+
status?: {
|
|
260
|
+
type?: FanType;
|
|
261
|
+
currentRpm?: number;
|
|
262
|
+
minRpm?: number;
|
|
263
|
+
maxRpm?: number;
|
|
264
|
+
pwmEnabled?: boolean;
|
|
265
|
+
pwmFreq?: number;
|
|
266
|
+
currentPwm?: number;
|
|
267
|
+
}[] & ({
|
|
268
|
+
type?: FanType;
|
|
269
|
+
currentRpm?: number;
|
|
270
|
+
minRpm?: number;
|
|
271
|
+
maxRpm?: number;
|
|
272
|
+
pwmEnabled?: boolean;
|
|
273
|
+
pwmFreq?: number;
|
|
274
|
+
currentPwm?: number;
|
|
275
|
+
} & {
|
|
276
|
+
type?: FanType;
|
|
277
|
+
currentRpm?: number;
|
|
278
|
+
minRpm?: number;
|
|
279
|
+
maxRpm?: number;
|
|
280
|
+
pwmEnabled?: boolean;
|
|
281
|
+
pwmFreq?: number;
|
|
282
|
+
currentPwm?: number;
|
|
283
|
+
} & { [K_3 in Exclude<keyof I_1["status"][number], keyof FanStatus>]: never; })[] & { [K_4 in Exclude<keyof I_1["status"], keyof {
|
|
284
|
+
type?: FanType;
|
|
285
|
+
currentRpm?: number;
|
|
286
|
+
minRpm?: number;
|
|
287
|
+
maxRpm?: number;
|
|
288
|
+
pwmEnabled?: boolean;
|
|
289
|
+
pwmFreq?: number;
|
|
290
|
+
currentPwm?: number;
|
|
291
|
+
}[]>]: never; };
|
|
292
|
+
fansInstalled?: number;
|
|
293
|
+
} & { [K_5 in Exclude<keyof I_1, keyof FanInfoResponse>]: never; }>(object: I_1): FanInfoResponse;
|
|
294
|
+
};
|
|
295
|
+
export declare const FanConfig: {
|
|
296
|
+
encode(message: FanConfig, writer?: _m0.Writer): _m0.Writer;
|
|
297
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FanConfig;
|
|
298
|
+
fromJSON(object: any): FanConfig;
|
|
299
|
+
toJSON(message: FanConfig): unknown;
|
|
300
|
+
create<I extends {
|
|
301
|
+
percentage?: number;
|
|
302
|
+
speedType?: FanConfig_SpeedType;
|
|
303
|
+
} & {
|
|
304
|
+
percentage?: number;
|
|
305
|
+
speedType?: FanConfig_SpeedType;
|
|
306
|
+
} & { [K in Exclude<keyof I, keyof FanConfig>]: never; }>(base?: I): FanConfig;
|
|
307
|
+
fromPartial<I_1 extends {
|
|
308
|
+
percentage?: number;
|
|
309
|
+
speedType?: FanConfig_SpeedType;
|
|
310
|
+
} & {
|
|
311
|
+
percentage?: number;
|
|
312
|
+
speedType?: FanConfig_SpeedType;
|
|
313
|
+
} & { [K_1 in Exclude<keyof I_1, keyof FanConfig>]: never; }>(object: I_1): FanConfig;
|
|
314
|
+
};
|
|
315
|
+
export declare const SetFanConfigReq: {
|
|
316
|
+
encode(message: SetFanConfigReq, writer?: _m0.Writer): _m0.Writer;
|
|
317
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SetFanConfigReq;
|
|
318
|
+
fromJSON(object: any): SetFanConfigReq;
|
|
319
|
+
toJSON(message: SetFanConfigReq): unknown;
|
|
320
|
+
create<I extends {
|
|
321
|
+
config?: {
|
|
322
|
+
percentage?: number;
|
|
323
|
+
speedType?: FanConfig_SpeedType;
|
|
324
|
+
};
|
|
325
|
+
} & {
|
|
326
|
+
config?: {
|
|
327
|
+
percentage?: number;
|
|
328
|
+
speedType?: FanConfig_SpeedType;
|
|
329
|
+
} & {
|
|
330
|
+
percentage?: number;
|
|
331
|
+
speedType?: FanConfig_SpeedType;
|
|
332
|
+
} & { [K in Exclude<keyof I["config"], keyof FanConfig>]: never; };
|
|
333
|
+
} & { [K_1 in Exclude<keyof I, "config">]: never; }>(base?: I): SetFanConfigReq;
|
|
334
|
+
fromPartial<I_1 extends {
|
|
335
|
+
config?: {
|
|
336
|
+
percentage?: number;
|
|
337
|
+
speedType?: FanConfig_SpeedType;
|
|
338
|
+
};
|
|
339
|
+
} & {
|
|
340
|
+
config?: {
|
|
341
|
+
percentage?: number;
|
|
342
|
+
speedType?: FanConfig_SpeedType;
|
|
343
|
+
} & {
|
|
344
|
+
percentage?: number;
|
|
345
|
+
speedType?: FanConfig_SpeedType;
|
|
346
|
+
} & { [K_2 in Exclude<keyof I_1["config"], keyof FanConfig>]: never; };
|
|
347
|
+
} & { [K_3 in Exclude<keyof I_1, "config">]: never; }>(object: I_1): SetFanConfigReq;
|
|
348
|
+
};
|
|
349
|
+
export declare const SetFanConfigResp: {
|
|
350
|
+
encode(_: SetFanConfigResp, writer?: _m0.Writer): _m0.Writer;
|
|
351
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SetFanConfigResp;
|
|
352
|
+
fromJSON(_: any): SetFanConfigResp;
|
|
353
|
+
toJSON(_: SetFanConfigResp): unknown;
|
|
354
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): SetFanConfigResp;
|
|
355
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): SetFanConfigResp;
|
|
356
|
+
};
|
|
357
|
+
export declare const GetFanConfigReq: {
|
|
358
|
+
encode(_: GetFanConfigReq, writer?: _m0.Writer): _m0.Writer;
|
|
359
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetFanConfigReq;
|
|
360
|
+
fromJSON(_: any): GetFanConfigReq;
|
|
361
|
+
toJSON(_: GetFanConfigReq): unknown;
|
|
362
|
+
create<I extends {} & {} & { [K in Exclude<keyof I, never>]: never; }>(base?: I): GetFanConfigReq;
|
|
363
|
+
fromPartial<I_1 extends {} & {} & { [K_1 in Exclude<keyof I_1, never>]: never; }>(_: I_1): GetFanConfigReq;
|
|
364
|
+
};
|
|
365
|
+
export declare const GetFanConfigResp: {
|
|
366
|
+
encode(message: GetFanConfigResp, writer?: _m0.Writer): _m0.Writer;
|
|
367
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetFanConfigResp;
|
|
368
|
+
fromJSON(object: any): GetFanConfigResp;
|
|
369
|
+
toJSON(message: GetFanConfigResp): unknown;
|
|
370
|
+
create<I extends {
|
|
371
|
+
config?: {
|
|
372
|
+
percentage?: number;
|
|
373
|
+
speedType?: FanConfig_SpeedType;
|
|
374
|
+
};
|
|
375
|
+
fanRpm?: number;
|
|
376
|
+
} & {
|
|
377
|
+
config?: {
|
|
378
|
+
percentage?: number;
|
|
379
|
+
speedType?: FanConfig_SpeedType;
|
|
380
|
+
} & {
|
|
381
|
+
percentage?: number;
|
|
382
|
+
speedType?: FanConfig_SpeedType;
|
|
383
|
+
} & { [K in Exclude<keyof I["config"], keyof FanConfig>]: never; };
|
|
384
|
+
fanRpm?: number;
|
|
385
|
+
} & { [K_1 in Exclude<keyof I, keyof GetFanConfigResp>]: never; }>(base?: I): GetFanConfigResp;
|
|
386
|
+
fromPartial<I_1 extends {
|
|
387
|
+
config?: {
|
|
388
|
+
percentage?: number;
|
|
389
|
+
speedType?: FanConfig_SpeedType;
|
|
390
|
+
};
|
|
391
|
+
fanRpm?: number;
|
|
392
|
+
} & {
|
|
393
|
+
config?: {
|
|
394
|
+
percentage?: number;
|
|
395
|
+
speedType?: FanConfig_SpeedType;
|
|
396
|
+
} & {
|
|
397
|
+
percentage?: number;
|
|
398
|
+
speedType?: FanConfig_SpeedType;
|
|
399
|
+
} & { [K_2 in Exclude<keyof I_1["config"], keyof FanConfig>]: never; };
|
|
400
|
+
fanRpm?: number;
|
|
401
|
+
} & { [K_3 in Exclude<keyof I_1, keyof GetFanConfigResp>]: never; }>(object: I_1): GetFanConfigResp;
|
|
402
|
+
};
|
|
403
|
+
export declare const PLedState: {
|
|
404
|
+
encode(message: PLedState, writer?: _m0.Writer): _m0.Writer;
|
|
405
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PLedState;
|
|
406
|
+
fromJSON(object: any): PLedState;
|
|
407
|
+
toJSON(message: PLedState): unknown;
|
|
408
|
+
create<I extends {
|
|
409
|
+
enabled?: boolean;
|
|
410
|
+
} & {
|
|
411
|
+
enabled?: boolean;
|
|
412
|
+
} & { [K in Exclude<keyof I, "enabled">]: never; }>(base?: I): PLedState;
|
|
413
|
+
fromPartial<I_1 extends {
|
|
414
|
+
enabled?: boolean;
|
|
415
|
+
} & {
|
|
416
|
+
enabled?: boolean;
|
|
417
|
+
} & { [K_1 in Exclude<keyof I_1, "enabled">]: never; }>(object: I_1): PLedState;
|
|
418
|
+
};
|
|
419
|
+
export declare const SLedState: {
|
|
420
|
+
encode(message: SLedState, writer?: _m0.Writer): _m0.Writer;
|
|
421
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SLedState;
|
|
422
|
+
fromJSON(object: any): SLedState;
|
|
423
|
+
toJSON(message: SLedState): unknown;
|
|
424
|
+
create<I extends {
|
|
425
|
+
enabled?: boolean;
|
|
426
|
+
} & {
|
|
427
|
+
enabled?: boolean;
|
|
428
|
+
} & { [K in Exclude<keyof I, "enabled">]: never; }>(base?: I): SLedState;
|
|
429
|
+
fromPartial<I_1 extends {
|
|
430
|
+
enabled?: boolean;
|
|
431
|
+
} & {
|
|
432
|
+
enabled?: boolean;
|
|
433
|
+
} & { [K_1 in Exclude<keyof I_1, "enabled">]: never; }>(object: I_1): SLedState;
|
|
434
|
+
};
|
|
435
|
+
export declare const PLedEffect: {
|
|
436
|
+
encode(message: PLedEffect, writer?: _m0.Writer): _m0.Writer;
|
|
437
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PLedEffect;
|
|
438
|
+
fromJSON(object: any): PLedEffect;
|
|
439
|
+
toJSON(message: PLedEffect): unknown;
|
|
440
|
+
create<I extends {
|
|
441
|
+
effect?: PLedEffect_Effect;
|
|
442
|
+
speed?: string | number | Long;
|
|
443
|
+
} & {
|
|
444
|
+
effect?: PLedEffect_Effect;
|
|
445
|
+
speed?: string | number | (Long & {
|
|
446
|
+
high: number;
|
|
447
|
+
low: number;
|
|
448
|
+
unsigned: boolean;
|
|
449
|
+
add: (addend: import("long/umd/types").LongLike) => Long;
|
|
450
|
+
and: (other: import("long/umd/types").LongLike) => Long;
|
|
451
|
+
compare: (other: import("long/umd/types").LongLike) => number;
|
|
452
|
+
comp: (other: import("long/umd/types").LongLike) => number;
|
|
453
|
+
divide: (divisor: import("long/umd/types").LongLike) => Long;
|
|
454
|
+
div: (divisor: import("long/umd/types").LongLike) => Long;
|
|
455
|
+
equals: (other: import("long/umd/types").LongLike) => boolean;
|
|
456
|
+
eq: (other: import("long/umd/types").LongLike) => boolean;
|
|
457
|
+
getHighBits: () => number;
|
|
458
|
+
getHighBitsUnsigned: () => number;
|
|
459
|
+
getLowBits: () => number;
|
|
460
|
+
getLowBitsUnsigned: () => number;
|
|
461
|
+
getNumBitsAbs: () => number;
|
|
462
|
+
greaterThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
463
|
+
gt: (other: import("long/umd/types").LongLike) => boolean;
|
|
464
|
+
greaterThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
465
|
+
gte: (other: import("long/umd/types").LongLike) => boolean;
|
|
466
|
+
ge: (other: import("long/umd/types").LongLike) => boolean;
|
|
467
|
+
isEven: () => boolean;
|
|
468
|
+
isNegative: () => boolean;
|
|
469
|
+
isOdd: () => boolean;
|
|
470
|
+
isPositive: () => boolean;
|
|
471
|
+
isSafeInteger: () => boolean;
|
|
472
|
+
isZero: () => boolean;
|
|
473
|
+
eqz: () => boolean;
|
|
474
|
+
lessThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
475
|
+
lt: (other: import("long/umd/types").LongLike) => boolean;
|
|
476
|
+
lessThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
477
|
+
lte: (other: import("long/umd/types").LongLike) => boolean;
|
|
478
|
+
le: (other: import("long/umd/types").LongLike) => boolean;
|
|
479
|
+
modulo: (other: import("long/umd/types").LongLike) => Long;
|
|
480
|
+
mod: (other: import("long/umd/types").LongLike) => Long;
|
|
481
|
+
rem: (other: import("long/umd/types").LongLike) => Long;
|
|
482
|
+
multiply: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
483
|
+
mul: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
484
|
+
negate: () => Long;
|
|
485
|
+
neg: () => Long;
|
|
486
|
+
not: () => Long;
|
|
487
|
+
countLeadingZeros: () => number;
|
|
488
|
+
clz: () => number;
|
|
489
|
+
countTrailingZeros: () => number;
|
|
490
|
+
ctz: () => number;
|
|
491
|
+
notEquals: (other: import("long/umd/types").LongLike) => boolean;
|
|
492
|
+
neq: (other: import("long/umd/types").LongLike) => boolean;
|
|
493
|
+
ne: (other: import("long/umd/types").LongLike) => boolean;
|
|
494
|
+
or: (other: import("long/umd/types").LongLike) => Long;
|
|
495
|
+
shiftLeft: (numBits: number | Long) => Long;
|
|
496
|
+
shl: (numBits: number | Long) => Long;
|
|
497
|
+
shiftRight: (numBits: number | Long) => Long;
|
|
498
|
+
shr: (numBits: number | Long) => Long;
|
|
499
|
+
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
500
|
+
shru: (numBits: number | Long) => Long;
|
|
501
|
+
shr_u: (numBits: number | Long) => Long;
|
|
502
|
+
rotateLeft: (numBits: number | Long) => Long;
|
|
503
|
+
rotl: (numBits: number | Long) => Long;
|
|
504
|
+
rotateRight: (numBits: number | Long) => Long;
|
|
505
|
+
rotr: (numBits: number | Long) => Long;
|
|
506
|
+
subtract: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
507
|
+
sub: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
508
|
+
toBigInt: () => bigint;
|
|
509
|
+
toInt: () => number;
|
|
510
|
+
toNumber: () => number;
|
|
511
|
+
toBytes: (le?: boolean) => number[];
|
|
512
|
+
toBytesLE: () => number[];
|
|
513
|
+
toBytesBE: () => number[];
|
|
514
|
+
toSigned: () => Long;
|
|
515
|
+
toString: (radix?: number) => string;
|
|
516
|
+
toUnsigned: () => Long;
|
|
517
|
+
xor: (other: import("long/umd/types").LongLike) => Long;
|
|
518
|
+
} & { [K in Exclude<keyof I["speed"], keyof Long>]: never; });
|
|
519
|
+
} & { [K_1 in Exclude<keyof I, keyof PLedEffect>]: never; }>(base?: I): PLedEffect;
|
|
520
|
+
fromPartial<I_1 extends {
|
|
521
|
+
effect?: PLedEffect_Effect;
|
|
522
|
+
speed?: string | number | Long;
|
|
523
|
+
} & {
|
|
524
|
+
effect?: PLedEffect_Effect;
|
|
525
|
+
speed?: string | number | (Long & {
|
|
526
|
+
high: number;
|
|
527
|
+
low: number;
|
|
528
|
+
unsigned: boolean;
|
|
529
|
+
add: (addend: import("long/umd/types").LongLike) => Long;
|
|
530
|
+
and: (other: import("long/umd/types").LongLike) => Long;
|
|
531
|
+
compare: (other: import("long/umd/types").LongLike) => number;
|
|
532
|
+
comp: (other: import("long/umd/types").LongLike) => number;
|
|
533
|
+
divide: (divisor: import("long/umd/types").LongLike) => Long;
|
|
534
|
+
div: (divisor: import("long/umd/types").LongLike) => Long;
|
|
535
|
+
equals: (other: import("long/umd/types").LongLike) => boolean;
|
|
536
|
+
eq: (other: import("long/umd/types").LongLike) => boolean;
|
|
537
|
+
getHighBits: () => number;
|
|
538
|
+
getHighBitsUnsigned: () => number;
|
|
539
|
+
getLowBits: () => number;
|
|
540
|
+
getLowBitsUnsigned: () => number;
|
|
541
|
+
getNumBitsAbs: () => number;
|
|
542
|
+
greaterThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
543
|
+
gt: (other: import("long/umd/types").LongLike) => boolean;
|
|
544
|
+
greaterThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
545
|
+
gte: (other: import("long/umd/types").LongLike) => boolean;
|
|
546
|
+
ge: (other: import("long/umd/types").LongLike) => boolean;
|
|
547
|
+
isEven: () => boolean;
|
|
548
|
+
isNegative: () => boolean;
|
|
549
|
+
isOdd: () => boolean;
|
|
550
|
+
isPositive: () => boolean;
|
|
551
|
+
isSafeInteger: () => boolean;
|
|
552
|
+
isZero: () => boolean;
|
|
553
|
+
eqz: () => boolean;
|
|
554
|
+
lessThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
555
|
+
lt: (other: import("long/umd/types").LongLike) => boolean;
|
|
556
|
+
lessThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
557
|
+
lte: (other: import("long/umd/types").LongLike) => boolean;
|
|
558
|
+
le: (other: import("long/umd/types").LongLike) => boolean;
|
|
559
|
+
modulo: (other: import("long/umd/types").LongLike) => Long;
|
|
560
|
+
mod: (other: import("long/umd/types").LongLike) => Long;
|
|
561
|
+
rem: (other: import("long/umd/types").LongLike) => Long;
|
|
562
|
+
multiply: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
563
|
+
mul: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
564
|
+
negate: () => Long;
|
|
565
|
+
neg: () => Long;
|
|
566
|
+
not: () => Long;
|
|
567
|
+
countLeadingZeros: () => number;
|
|
568
|
+
clz: () => number;
|
|
569
|
+
countTrailingZeros: () => number;
|
|
570
|
+
ctz: () => number;
|
|
571
|
+
notEquals: (other: import("long/umd/types").LongLike) => boolean;
|
|
572
|
+
neq: (other: import("long/umd/types").LongLike) => boolean;
|
|
573
|
+
ne: (other: import("long/umd/types").LongLike) => boolean;
|
|
574
|
+
or: (other: import("long/umd/types").LongLike) => Long;
|
|
575
|
+
shiftLeft: (numBits: number | Long) => Long;
|
|
576
|
+
shl: (numBits: number | Long) => Long;
|
|
577
|
+
shiftRight: (numBits: number | Long) => Long;
|
|
578
|
+
shr: (numBits: number | Long) => Long;
|
|
579
|
+
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
580
|
+
shru: (numBits: number | Long) => Long;
|
|
581
|
+
shr_u: (numBits: number | Long) => Long;
|
|
582
|
+
rotateLeft: (numBits: number | Long) => Long;
|
|
583
|
+
rotl: (numBits: number | Long) => Long;
|
|
584
|
+
rotateRight: (numBits: number | Long) => Long;
|
|
585
|
+
rotr: (numBits: number | Long) => Long;
|
|
586
|
+
subtract: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
587
|
+
sub: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
588
|
+
toBigInt: () => bigint;
|
|
589
|
+
toInt: () => number;
|
|
590
|
+
toNumber: () => number;
|
|
591
|
+
toBytes: (le?: boolean) => number[];
|
|
592
|
+
toBytesLE: () => number[];
|
|
593
|
+
toBytesBE: () => number[];
|
|
594
|
+
toSigned: () => Long;
|
|
595
|
+
toString: (radix?: number) => string;
|
|
596
|
+
toUnsigned: () => Long;
|
|
597
|
+
xor: (other: import("long/umd/types").LongLike) => Long;
|
|
598
|
+
} & { [K_2 in Exclude<keyof I_1["speed"], keyof Long>]: never; });
|
|
599
|
+
} & { [K_3 in Exclude<keyof I_1, keyof PLedEffect>]: never; }>(object: I_1): PLedEffect;
|
|
600
|
+
};
|
|
601
|
+
export declare const ButtonEventQueue: {
|
|
602
|
+
encode(message: ButtonEventQueue, writer?: _m0.Writer): _m0.Writer;
|
|
603
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ButtonEventQueue;
|
|
604
|
+
fromJSON(object: any): ButtonEventQueue;
|
|
605
|
+
toJSON(message: ButtonEventQueue): unknown;
|
|
606
|
+
create<I extends {
|
|
607
|
+
queue?: {
|
|
608
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
609
|
+
timestamp?: Date | undefined;
|
|
610
|
+
}[];
|
|
611
|
+
} & {
|
|
612
|
+
queue?: {
|
|
613
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
614
|
+
timestamp?: Date | undefined;
|
|
615
|
+
}[] & ({
|
|
616
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
617
|
+
timestamp?: Date | undefined;
|
|
618
|
+
} & {
|
|
619
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
620
|
+
timestamp?: Date | undefined;
|
|
621
|
+
} & { [K in Exclude<keyof I["queue"][number], keyof ButtonEventQueue_ButtonEvent>]: never; })[] & { [K_1 in Exclude<keyof I["queue"], keyof {
|
|
622
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
623
|
+
timestamp?: Date | undefined;
|
|
624
|
+
}[]>]: never; };
|
|
625
|
+
} & { [K_2 in Exclude<keyof I, "queue">]: never; }>(base?: I): ButtonEventQueue;
|
|
626
|
+
fromPartial<I_1 extends {
|
|
627
|
+
queue?: {
|
|
628
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
629
|
+
timestamp?: Date | undefined;
|
|
630
|
+
}[];
|
|
631
|
+
} & {
|
|
632
|
+
queue?: {
|
|
633
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
634
|
+
timestamp?: Date | undefined;
|
|
635
|
+
}[] & ({
|
|
636
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
637
|
+
timestamp?: Date | undefined;
|
|
638
|
+
} & {
|
|
639
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
640
|
+
timestamp?: Date | undefined;
|
|
641
|
+
} & { [K_3 in Exclude<keyof I_1["queue"][number], keyof ButtonEventQueue_ButtonEvent>]: never; })[] & { [K_4 in Exclude<keyof I_1["queue"], keyof {
|
|
642
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
643
|
+
timestamp?: Date | undefined;
|
|
644
|
+
}[]>]: never; };
|
|
645
|
+
} & { [K_5 in Exclude<keyof I_1, "queue">]: never; }>(object: I_1): ButtonEventQueue;
|
|
646
|
+
};
|
|
647
|
+
export declare const ButtonEventQueue_ButtonEvent: {
|
|
648
|
+
encode(message: ButtonEventQueue_ButtonEvent, writer?: _m0.Writer): _m0.Writer;
|
|
649
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ButtonEventQueue_ButtonEvent;
|
|
650
|
+
fromJSON(object: any): ButtonEventQueue_ButtonEvent;
|
|
651
|
+
toJSON(message: ButtonEventQueue_ButtonEvent): unknown;
|
|
652
|
+
create<I extends {
|
|
653
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
654
|
+
timestamp?: Date | undefined;
|
|
655
|
+
} & {
|
|
656
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
657
|
+
timestamp?: Date | undefined;
|
|
658
|
+
} & { [K in Exclude<keyof I, keyof ButtonEventQueue_ButtonEvent>]: never; }>(base?: I): ButtonEventQueue_ButtonEvent;
|
|
659
|
+
fromPartial<I_1 extends {
|
|
660
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
661
|
+
timestamp?: Date | undefined;
|
|
662
|
+
} & {
|
|
663
|
+
kind?: ButtonEventQueue_ButtonEventKind;
|
|
664
|
+
timestamp?: Date | undefined;
|
|
665
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ButtonEventQueue_ButtonEvent>]: never; }>(object: I_1): ButtonEventQueue_ButtonEvent;
|
|
666
|
+
};
|
|
667
|
+
export declare const GetButtonEventRequest: {
|
|
668
|
+
encode(message: GetButtonEventRequest, writer?: _m0.Writer): _m0.Writer;
|
|
669
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): GetButtonEventRequest;
|
|
670
|
+
fromJSON(object: any): GetButtonEventRequest;
|
|
671
|
+
toJSON(message: GetButtonEventRequest): unknown;
|
|
672
|
+
create<I extends {
|
|
673
|
+
SLedInteraction?: boolean;
|
|
674
|
+
PLedInteraction?: boolean;
|
|
675
|
+
} & {
|
|
676
|
+
SLedInteraction?: boolean;
|
|
677
|
+
PLedInteraction?: boolean;
|
|
678
|
+
} & { [K in Exclude<keyof I, keyof GetButtonEventRequest>]: never; }>(base?: I): GetButtonEventRequest;
|
|
679
|
+
fromPartial<I_1 extends {
|
|
680
|
+
SLedInteraction?: boolean;
|
|
681
|
+
PLedInteraction?: boolean;
|
|
682
|
+
} & {
|
|
683
|
+
SLedInteraction?: boolean;
|
|
684
|
+
PLedInteraction?: boolean;
|
|
685
|
+
} & { [K_1 in Exclude<keyof I_1, keyof GetButtonEventRequest>]: never; }>(object: I_1): GetButtonEventRequest;
|
|
686
|
+
};
|
|
687
|
+
export declare const RawButtonEvent: {
|
|
688
|
+
encode(message: RawButtonEvent, writer?: _m0.Writer): _m0.Writer;
|
|
689
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): RawButtonEvent;
|
|
690
|
+
fromJSON(object: any): RawButtonEvent;
|
|
691
|
+
toJSON(message: RawButtonEvent): unknown;
|
|
692
|
+
create<I extends {
|
|
693
|
+
kind?: RawButtonEvent_RawButtonKind;
|
|
694
|
+
} & {
|
|
695
|
+
kind?: RawButtonEvent_RawButtonKind;
|
|
696
|
+
} & { [K in Exclude<keyof I, "kind">]: never; }>(base?: I): RawButtonEvent;
|
|
697
|
+
fromPartial<I_1 extends {
|
|
698
|
+
kind?: RawButtonEvent_RawButtonKind;
|
|
699
|
+
} & {
|
|
700
|
+
kind?: RawButtonEvent_RawButtonKind;
|
|
701
|
+
} & { [K_1 in Exclude<keyof I_1, "kind">]: never; }>(object: I_1): RawButtonEvent;
|
|
702
|
+
};
|
|
703
|
+
export declare const HIButtonEvent: {
|
|
704
|
+
encode(message: HIButtonEvent, writer?: _m0.Writer): _m0.Writer;
|
|
705
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HIButtonEvent;
|
|
706
|
+
fromJSON(object: any): HIButtonEvent;
|
|
707
|
+
toJSON(message: HIButtonEvent): unknown;
|
|
708
|
+
create<I extends {
|
|
709
|
+
kind?: HIButtonKind;
|
|
710
|
+
} & {
|
|
711
|
+
kind?: HIButtonKind;
|
|
712
|
+
} & { [K in Exclude<keyof I, "kind">]: never; }>(base?: I): HIButtonEvent;
|
|
713
|
+
fromPartial<I_1 extends {
|
|
714
|
+
kind?: HIButtonKind;
|
|
715
|
+
} & {
|
|
716
|
+
kind?: HIButtonKind;
|
|
717
|
+
} & { [K_1 in Exclude<keyof I_1, "kind">]: never; }>(object: I_1): HIButtonEvent;
|
|
718
|
+
};
|
|
719
|
+
export declare const TriggerBtnRequest: {
|
|
720
|
+
encode(message: TriggerBtnRequest, writer?: _m0.Writer): _m0.Writer;
|
|
721
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TriggerBtnRequest;
|
|
722
|
+
fromJSON(object: any): TriggerBtnRequest;
|
|
723
|
+
toJSON(message: TriggerBtnRequest): unknown;
|
|
724
|
+
create<I extends {
|
|
725
|
+
kind?: HIButtonKind;
|
|
726
|
+
reqOptions?: {
|
|
727
|
+
SLedInteraction?: boolean;
|
|
728
|
+
PLedInteraction?: boolean;
|
|
729
|
+
};
|
|
730
|
+
} & {
|
|
731
|
+
kind?: HIButtonKind;
|
|
732
|
+
reqOptions?: {
|
|
733
|
+
SLedInteraction?: boolean;
|
|
734
|
+
PLedInteraction?: boolean;
|
|
735
|
+
} & {
|
|
736
|
+
SLedInteraction?: boolean;
|
|
737
|
+
PLedInteraction?: boolean;
|
|
738
|
+
} & { [K in Exclude<keyof I["reqOptions"], keyof GetButtonEventRequest>]: never; };
|
|
739
|
+
} & { [K_1 in Exclude<keyof I, keyof TriggerBtnRequest>]: never; }>(base?: I): TriggerBtnRequest;
|
|
740
|
+
fromPartial<I_1 extends {
|
|
741
|
+
kind?: HIButtonKind;
|
|
742
|
+
reqOptions?: {
|
|
743
|
+
SLedInteraction?: boolean;
|
|
744
|
+
PLedInteraction?: boolean;
|
|
745
|
+
};
|
|
746
|
+
} & {
|
|
747
|
+
kind?: HIButtonKind;
|
|
748
|
+
reqOptions?: {
|
|
749
|
+
SLedInteraction?: boolean;
|
|
750
|
+
PLedInteraction?: boolean;
|
|
751
|
+
} & {
|
|
752
|
+
SLedInteraction?: boolean;
|
|
753
|
+
PLedInteraction?: boolean;
|
|
754
|
+
} & { [K_2 in Exclude<keyof I_1["reqOptions"], keyof GetButtonEventRequest>]: never; };
|
|
755
|
+
} & { [K_3 in Exclude<keyof I_1, keyof TriggerBtnRequest>]: never; }>(object: I_1): TriggerBtnRequest;
|
|
756
|
+
};
|
|
757
|
+
export declare const FanRpm: {
|
|
758
|
+
encode(message: FanRpm, writer?: _m0.Writer): _m0.Writer;
|
|
759
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): FanRpm;
|
|
760
|
+
fromJSON(object: any): FanRpm;
|
|
761
|
+
toJSON(message: FanRpm): unknown;
|
|
762
|
+
create<I extends {
|
|
763
|
+
rpm?: string | number | Long;
|
|
764
|
+
} & {
|
|
765
|
+
rpm?: string | number | (Long & {
|
|
766
|
+
high: number;
|
|
767
|
+
low: number;
|
|
768
|
+
unsigned: boolean;
|
|
769
|
+
add: (addend: import("long/umd/types").LongLike) => Long;
|
|
770
|
+
and: (other: import("long/umd/types").LongLike) => Long;
|
|
771
|
+
compare: (other: import("long/umd/types").LongLike) => number;
|
|
772
|
+
comp: (other: import("long/umd/types").LongLike) => number;
|
|
773
|
+
divide: (divisor: import("long/umd/types").LongLike) => Long;
|
|
774
|
+
div: (divisor: import("long/umd/types").LongLike) => Long;
|
|
775
|
+
equals: (other: import("long/umd/types").LongLike) => boolean;
|
|
776
|
+
eq: (other: import("long/umd/types").LongLike) => boolean;
|
|
777
|
+
getHighBits: () => number;
|
|
778
|
+
getHighBitsUnsigned: () => number;
|
|
779
|
+
getLowBits: () => number;
|
|
780
|
+
getLowBitsUnsigned: () => number;
|
|
781
|
+
getNumBitsAbs: () => number;
|
|
782
|
+
greaterThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
783
|
+
gt: (other: import("long/umd/types").LongLike) => boolean;
|
|
784
|
+
greaterThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
785
|
+
gte: (other: import("long/umd/types").LongLike) => boolean;
|
|
786
|
+
ge: (other: import("long/umd/types").LongLike) => boolean;
|
|
787
|
+
isEven: () => boolean;
|
|
788
|
+
isNegative: () => boolean;
|
|
789
|
+
isOdd: () => boolean;
|
|
790
|
+
isPositive: () => boolean;
|
|
791
|
+
isSafeInteger: () => boolean;
|
|
792
|
+
isZero: () => boolean;
|
|
793
|
+
eqz: () => boolean;
|
|
794
|
+
lessThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
795
|
+
lt: (other: import("long/umd/types").LongLike) => boolean;
|
|
796
|
+
lessThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
797
|
+
lte: (other: import("long/umd/types").LongLike) => boolean;
|
|
798
|
+
le: (other: import("long/umd/types").LongLike) => boolean;
|
|
799
|
+
modulo: (other: import("long/umd/types").LongLike) => Long;
|
|
800
|
+
mod: (other: import("long/umd/types").LongLike) => Long;
|
|
801
|
+
rem: (other: import("long/umd/types").LongLike) => Long;
|
|
802
|
+
multiply: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
803
|
+
mul: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
804
|
+
negate: () => Long;
|
|
805
|
+
neg: () => Long;
|
|
806
|
+
not: () => Long;
|
|
807
|
+
countLeadingZeros: () => number;
|
|
808
|
+
clz: () => number;
|
|
809
|
+
countTrailingZeros: () => number;
|
|
810
|
+
ctz: () => number;
|
|
811
|
+
notEquals: (other: import("long/umd/types").LongLike) => boolean;
|
|
812
|
+
neq: (other: import("long/umd/types").LongLike) => boolean;
|
|
813
|
+
ne: (other: import("long/umd/types").LongLike) => boolean;
|
|
814
|
+
or: (other: import("long/umd/types").LongLike) => Long;
|
|
815
|
+
shiftLeft: (numBits: number | Long) => Long;
|
|
816
|
+
shl: (numBits: number | Long) => Long;
|
|
817
|
+
shiftRight: (numBits: number | Long) => Long;
|
|
818
|
+
shr: (numBits: number | Long) => Long;
|
|
819
|
+
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
820
|
+
shru: (numBits: number | Long) => Long;
|
|
821
|
+
shr_u: (numBits: number | Long) => Long;
|
|
822
|
+
rotateLeft: (numBits: number | Long) => Long;
|
|
823
|
+
rotl: (numBits: number | Long) => Long;
|
|
824
|
+
rotateRight: (numBits: number | Long) => Long;
|
|
825
|
+
rotr: (numBits: number | Long) => Long;
|
|
826
|
+
subtract: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
827
|
+
sub: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
828
|
+
toBigInt: () => bigint;
|
|
829
|
+
toInt: () => number;
|
|
830
|
+
toNumber: () => number;
|
|
831
|
+
toBytes: (le?: boolean) => number[];
|
|
832
|
+
toBytesLE: () => number[];
|
|
833
|
+
toBytesBE: () => number[];
|
|
834
|
+
toSigned: () => Long;
|
|
835
|
+
toString: (radix?: number) => string;
|
|
836
|
+
toUnsigned: () => Long;
|
|
837
|
+
xor: (other: import("long/umd/types").LongLike) => Long;
|
|
838
|
+
} & { [K in Exclude<keyof I["rpm"], keyof Long>]: never; });
|
|
839
|
+
} & { [K_1 in Exclude<keyof I, "rpm">]: never; }>(base?: I): FanRpm;
|
|
840
|
+
fromPartial<I_1 extends {
|
|
841
|
+
rpm?: string | number | Long;
|
|
842
|
+
} & {
|
|
843
|
+
rpm?: string | number | (Long & {
|
|
844
|
+
high: number;
|
|
845
|
+
low: number;
|
|
846
|
+
unsigned: boolean;
|
|
847
|
+
add: (addend: import("long/umd/types").LongLike) => Long;
|
|
848
|
+
and: (other: import("long/umd/types").LongLike) => Long;
|
|
849
|
+
compare: (other: import("long/umd/types").LongLike) => number;
|
|
850
|
+
comp: (other: import("long/umd/types").LongLike) => number;
|
|
851
|
+
divide: (divisor: import("long/umd/types").LongLike) => Long;
|
|
852
|
+
div: (divisor: import("long/umd/types").LongLike) => Long;
|
|
853
|
+
equals: (other: import("long/umd/types").LongLike) => boolean;
|
|
854
|
+
eq: (other: import("long/umd/types").LongLike) => boolean;
|
|
855
|
+
getHighBits: () => number;
|
|
856
|
+
getHighBitsUnsigned: () => number;
|
|
857
|
+
getLowBits: () => number;
|
|
858
|
+
getLowBitsUnsigned: () => number;
|
|
859
|
+
getNumBitsAbs: () => number;
|
|
860
|
+
greaterThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
861
|
+
gt: (other: import("long/umd/types").LongLike) => boolean;
|
|
862
|
+
greaterThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
863
|
+
gte: (other: import("long/umd/types").LongLike) => boolean;
|
|
864
|
+
ge: (other: import("long/umd/types").LongLike) => boolean;
|
|
865
|
+
isEven: () => boolean;
|
|
866
|
+
isNegative: () => boolean;
|
|
867
|
+
isOdd: () => boolean;
|
|
868
|
+
isPositive: () => boolean;
|
|
869
|
+
isSafeInteger: () => boolean;
|
|
870
|
+
isZero: () => boolean;
|
|
871
|
+
eqz: () => boolean;
|
|
872
|
+
lessThan: (other: import("long/umd/types").LongLike) => boolean;
|
|
873
|
+
lt: (other: import("long/umd/types").LongLike) => boolean;
|
|
874
|
+
lessThanOrEqual: (other: import("long/umd/types").LongLike) => boolean;
|
|
875
|
+
lte: (other: import("long/umd/types").LongLike) => boolean;
|
|
876
|
+
le: (other: import("long/umd/types").LongLike) => boolean;
|
|
877
|
+
modulo: (other: import("long/umd/types").LongLike) => Long;
|
|
878
|
+
mod: (other: import("long/umd/types").LongLike) => Long;
|
|
879
|
+
rem: (other: import("long/umd/types").LongLike) => Long;
|
|
880
|
+
multiply: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
881
|
+
mul: (multiplier: import("long/umd/types").LongLike) => Long;
|
|
882
|
+
negate: () => Long;
|
|
883
|
+
neg: () => Long;
|
|
884
|
+
not: () => Long;
|
|
885
|
+
countLeadingZeros: () => number;
|
|
886
|
+
clz: () => number;
|
|
887
|
+
countTrailingZeros: () => number;
|
|
888
|
+
ctz: () => number;
|
|
889
|
+
notEquals: (other: import("long/umd/types").LongLike) => boolean;
|
|
890
|
+
neq: (other: import("long/umd/types").LongLike) => boolean;
|
|
891
|
+
ne: (other: import("long/umd/types").LongLike) => boolean;
|
|
892
|
+
or: (other: import("long/umd/types").LongLike) => Long;
|
|
893
|
+
shiftLeft: (numBits: number | Long) => Long;
|
|
894
|
+
shl: (numBits: number | Long) => Long;
|
|
895
|
+
shiftRight: (numBits: number | Long) => Long;
|
|
896
|
+
shr: (numBits: number | Long) => Long;
|
|
897
|
+
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
898
|
+
shru: (numBits: number | Long) => Long;
|
|
899
|
+
shr_u: (numBits: number | Long) => Long;
|
|
900
|
+
rotateLeft: (numBits: number | Long) => Long;
|
|
901
|
+
rotl: (numBits: number | Long) => Long;
|
|
902
|
+
rotateRight: (numBits: number | Long) => Long;
|
|
903
|
+
rotr: (numBits: number | Long) => Long;
|
|
904
|
+
subtract: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
905
|
+
sub: (subtrahend: import("long/umd/types").LongLike) => Long;
|
|
906
|
+
toBigInt: () => bigint;
|
|
907
|
+
toInt: () => number;
|
|
908
|
+
toNumber: () => number;
|
|
909
|
+
toBytes: (le?: boolean) => number[];
|
|
910
|
+
toBytesLE: () => number[];
|
|
911
|
+
toBytesBE: () => number[];
|
|
912
|
+
toSigned: () => Long;
|
|
913
|
+
toString: (radix?: number) => string;
|
|
914
|
+
toUnsigned: () => Long;
|
|
915
|
+
xor: (other: import("long/umd/types").LongLike) => Long;
|
|
916
|
+
} & { [K_2 in Exclude<keyof I_1["rpm"], keyof Long>]: never; });
|
|
917
|
+
} & { [K_3 in Exclude<keyof I_1, "rpm">]: never; }>(object: I_1): FanRpm;
|
|
918
|
+
};
|
|
919
|
+
export interface HalService {
|
|
920
|
+
/** Set 电源 LED (在 前面板上的 大个的 一条的 白色的) */
|
|
921
|
+
SetPLed(request: DeepPartial<PLedState>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
922
|
+
/** Get 电源 LED (在 前面板上的 大个的 一条的 白色的) */
|
|
923
|
+
GetPLed(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PLedState>;
|
|
924
|
+
/** Set 状态 LED (在 IO 面板上的 电源按钮边上的 小个的 红色的) */
|
|
925
|
+
SetSLed(request: DeepPartial<SLedState>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
926
|
+
/** 最近 30s 内 Button 事件队列。同时 续命 Button 监测 到 当前时间 +5s */
|
|
927
|
+
GetButtonEventQueue(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ButtonEventQueue>;
|
|
928
|
+
/** 返回当前按钮按下或弹起事件, 不会判断按钮是否为单击或长按 */
|
|
929
|
+
GetRawButtonEvent(request: DeepPartial<GetButtonEventRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<RawButtonEvent>;
|
|
930
|
+
/** 当指定的按钮事件发生时返回对应的事件 */
|
|
931
|
+
TriggerWithButtonEvent(request: DeepPartial<TriggerBtnRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<HIButtonEvent>;
|
|
932
|
+
/** 设置电源灯灯效, 当客户端stream主动取消时终止灯效, 还原为初始状态 */
|
|
933
|
+
SetPLedEffect(request: DeepPartial<PLedEffect>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<Empty>;
|
|
934
|
+
/** 获取系统风扇详细信息 */
|
|
935
|
+
GetFanInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<FanInfoResponse>;
|
|
936
|
+
/** 风扇转速 */
|
|
937
|
+
GetFanRpm(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<FanRpm>;
|
|
938
|
+
/** 设置风扇配置 */
|
|
939
|
+
SetFanConfig(request: DeepPartial<SetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<SetFanConfigResp>;
|
|
940
|
+
/** 获取风扇配置 */
|
|
941
|
+
GetFanConfig(request: DeepPartial<GetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetFanConfigResp>;
|
|
942
|
+
}
|
|
943
|
+
export declare class HalServiceClientImpl implements HalService {
|
|
944
|
+
private readonly rpc;
|
|
945
|
+
constructor(rpc: Rpc);
|
|
946
|
+
SetPLed(request: DeepPartial<PLedState>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
947
|
+
GetPLed(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<PLedState>;
|
|
948
|
+
SetSLed(request: DeepPartial<SLedState>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<Empty>;
|
|
949
|
+
GetButtonEventQueue(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ButtonEventQueue>;
|
|
950
|
+
GetRawButtonEvent(request: DeepPartial<GetButtonEventRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<RawButtonEvent>;
|
|
951
|
+
TriggerWithButtonEvent(request: DeepPartial<TriggerBtnRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<HIButtonEvent>;
|
|
952
|
+
SetPLedEffect(request: DeepPartial<PLedEffect>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<Empty>;
|
|
953
|
+
GetFanInfo(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<FanInfoResponse>;
|
|
954
|
+
GetFanRpm(request: DeepPartial<Empty>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<FanRpm>;
|
|
955
|
+
SetFanConfig(request: DeepPartial<SetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<SetFanConfigResp>;
|
|
956
|
+
GetFanConfig(request: DeepPartial<GetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetFanConfigResp>;
|
|
957
|
+
}
|
|
958
|
+
export declare const HalServiceDesc: {
|
|
959
|
+
serviceName: string;
|
|
960
|
+
};
|
|
961
|
+
export declare const HalServiceSetPLedDesc: UnaryMethodDefinitionish;
|
|
962
|
+
export declare const HalServiceGetPLedDesc: UnaryMethodDefinitionish;
|
|
963
|
+
export declare const HalServiceSetSLedDesc: UnaryMethodDefinitionish;
|
|
964
|
+
export declare const HalServiceGetButtonEventQueueDesc: UnaryMethodDefinitionish;
|
|
965
|
+
export declare const HalServiceGetRawButtonEventDesc: UnaryMethodDefinitionish;
|
|
966
|
+
export declare const HalServiceTriggerWithButtonEventDesc: UnaryMethodDefinitionish;
|
|
967
|
+
export declare const HalServiceSetPLedEffectDesc: UnaryMethodDefinitionish;
|
|
968
|
+
export declare const HalServiceGetFanInfoDesc: UnaryMethodDefinitionish;
|
|
969
|
+
export declare const HalServiceGetFanRpmDesc: UnaryMethodDefinitionish;
|
|
970
|
+
export declare const HalServiceSetFanConfigDesc: UnaryMethodDefinitionish;
|
|
971
|
+
export declare const HalServiceGetFanConfigDesc: UnaryMethodDefinitionish;
|
|
972
|
+
export interface FanService {
|
|
973
|
+
/** 设置风扇配置 */
|
|
974
|
+
SetFanConfig(request: DeepPartial<SetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<SetFanConfigResp>;
|
|
975
|
+
/** 获取风扇配置 */
|
|
976
|
+
GetFanConfig(request: DeepPartial<GetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetFanConfigResp>;
|
|
977
|
+
}
|
|
978
|
+
export declare class FanServiceClientImpl implements FanService {
|
|
979
|
+
private readonly rpc;
|
|
980
|
+
constructor(rpc: Rpc);
|
|
981
|
+
SetFanConfig(request: DeepPartial<SetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<SetFanConfigResp>;
|
|
982
|
+
GetFanConfig(request: DeepPartial<GetFanConfigReq>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<GetFanConfigResp>;
|
|
983
|
+
}
|
|
984
|
+
export declare const FanServiceDesc: {
|
|
985
|
+
serviceName: string;
|
|
986
|
+
};
|
|
987
|
+
export declare const FanServiceSetFanConfigDesc: UnaryMethodDefinitionish;
|
|
988
|
+
export declare const FanServiceGetFanConfigDesc: UnaryMethodDefinitionish;
|
|
989
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
990
|
+
requestStream: any;
|
|
991
|
+
responseStream: any;
|
|
992
|
+
}
|
|
993
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
994
|
+
interface Rpc {
|
|
995
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
996
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
997
|
+
}
|
|
998
|
+
export declare class GrpcWebImpl {
|
|
999
|
+
private host;
|
|
1000
|
+
private options;
|
|
1001
|
+
constructor(host: string, options: {
|
|
1002
|
+
transport?: grpc.TransportFactory;
|
|
1003
|
+
streamingTransport?: grpc.TransportFactory;
|
|
1004
|
+
debug?: boolean;
|
|
1005
|
+
metadata?: grpc.Metadata;
|
|
1006
|
+
upStreamRetryCodes?: number[];
|
|
1007
|
+
});
|
|
1008
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
1009
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
1010
|
+
}
|
|
1011
|
+
declare const tsProtoGlobalThis: any;
|
|
1012
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1013
|
+
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 {} ? {
|
|
1014
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1015
|
+
} : Partial<T>;
|
|
1016
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
1017
|
+
code: grpc.Code;
|
|
1018
|
+
metadata: grpc.Metadata;
|
|
1019
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
1020
|
+
}
|
|
1021
|
+
export {};
|