@lazycatcloud/sdk 0.1.456 → 0.1.458
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 +542 -0
- package/dist/common/box.d.ts.map +1 -1
- package/dist/common/box.js +870 -53
- package/dist/common/box.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/localdevice/ble.d.ts +414 -0
- package/dist/localdevice/ble.d.ts.map +1 -0
- package/dist/localdevice/ble.js +859 -0
- package/dist/localdevice/ble.js.map +1 -0
- package/dist/localdevice/clipboard.d.ts +137 -0
- package/dist/localdevice/clipboard.d.ts.map +1 -0
- package/dist/localdevice/clipboard.js +433 -0
- package/dist/localdevice/clipboard.js.map +1 -0
- package/dist/localdevice/contacts.d.ts +29 -0
- package/dist/localdevice/contacts.d.ts.map +1 -1
- package/dist/localdevice/contacts.js +118 -1
- package/dist/localdevice/contacts.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/sys/OS_daemon.d.ts +133 -0
- package/dist/sys/OS_daemon.d.ts.map +1 -0
- package/dist/sys/OS_daemon.js +364 -0
- package/dist/sys/OS_daemon.js.map +1 -0
- package/dist/sys/OS_snapshot.d.ts +585 -0
- package/dist/sys/OS_snapshot.d.ts.map +1 -0
- package/dist/sys/OS_snapshot.js +1495 -0
- package/dist/sys/OS_snapshot.js.map +1 -0
- package/dist/sys/OS_upgrader.d.ts +202 -0
- package/dist/sys/OS_upgrader.d.ts.map +1 -0
- package/dist/sys/OS_upgrader.js +623 -0
- package/dist/sys/OS_upgrader.js.map +1 -0
- package/dist/sys/box-status.d.ts +603 -0
- package/dist/sys/box-status.d.ts.map +1 -0
- package/dist/sys/box-status.js +1004 -0
- package/dist/sys/box-status.js.map +1 -0
- package/dist/sys/hal.d.ts +174 -0
- package/dist/sys/hal.d.ts.map +1 -1
- package/dist/sys/hal.js +553 -1
- package/dist/sys/hal.js.map +1 -1
- package/dist/sys/hc-core/hc-core.d.ts +696 -0
- package/dist/sys/hc-core/hc-core.d.ts.map +1 -0
- package/dist/sys/hc-core/hc-core.js +1514 -0
- package/dist/sys/hc-core/hc-core.js.map +1 -0
- package/dist/sys/installer.d.ts +277 -0
- package/dist/sys/installer.d.ts.map +1 -0
- package/dist/sys/installer.js +773 -0
- package/dist/sys/installer.js.map +1 -0
- package/dist/sys/package_manager.d.ts +79 -69
- package/dist/sys/package_manager.d.ts.map +1 -1
- package/dist/sys/package_manager.js +86 -121
- package/dist/sys/package_manager.js.map +1 -1
- package/dist/sys/portal-server/portal-server.d.ts +849 -0
- package/dist/sys/portal-server/portal-server.d.ts.map +1 -0
- package/dist/sys/portal-server/portal-server.js +2350 -0
- package/dist/sys/portal-server/portal-server.js.map +1 -0
- package/dist/sys/snapd.d.ts +343 -0
- package/dist/sys/snapd.d.ts.map +1 -0
- package/dist/sys/snapd.js +776 -0
- package/dist/sys/snapd.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/test.d.mts +0 -2
- package/dist/test.d.mts.map +0 -1
- package/dist/test.mjs +0 -10
- package/dist/test.mjs.map +0 -1
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
import { grpc } from "@improbable-eng/grpc-web";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
export interface ScanBleRequest {
|
|
5
|
+
/** 扫描带指定uuid服务的蓝牙设备 */
|
|
6
|
+
serviceUuid?: string | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface BluetoothDevice {
|
|
9
|
+
/** 蓝牙名称 */
|
|
10
|
+
deviceName: string;
|
|
11
|
+
/** 设备地址(mac) */
|
|
12
|
+
deviceAddress: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ConnectBleRequest {
|
|
15
|
+
/** 设备地址(mac) */
|
|
16
|
+
deviceAddress: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ConnectBleReply {
|
|
19
|
+
services: BleService[];
|
|
20
|
+
}
|
|
21
|
+
export interface BleService {
|
|
22
|
+
/** 服务uuid */
|
|
23
|
+
uuid: string;
|
|
24
|
+
/** 服务类型 */
|
|
25
|
+
serviceType: number;
|
|
26
|
+
/** 特征 */
|
|
27
|
+
gattCharacteristics: BluetoothGattCharacteristic[];
|
|
28
|
+
}
|
|
29
|
+
export interface BluetoothGattCharacteristic {
|
|
30
|
+
/** 特征uuid */
|
|
31
|
+
uuid: string;
|
|
32
|
+
/** 特征属性 */
|
|
33
|
+
properties: number;
|
|
34
|
+
}
|
|
35
|
+
export interface WriteRequest {
|
|
36
|
+
/** ble 地址 */
|
|
37
|
+
deviceAddress: string;
|
|
38
|
+
/** BluetoothGattCharacteristic 的uuid */
|
|
39
|
+
gattCharacteristicUuid: string;
|
|
40
|
+
message: Uint8Array;
|
|
41
|
+
}
|
|
42
|
+
export interface WriteReply {
|
|
43
|
+
success: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface ReadRequest {
|
|
46
|
+
/** ble 地址 */
|
|
47
|
+
deviceAddress: string;
|
|
48
|
+
/** BluetoothGattCharacteristic 的uuid */
|
|
49
|
+
gattCharacteristicUuid: string;
|
|
50
|
+
}
|
|
51
|
+
export interface ReadReply {
|
|
52
|
+
message: Uint8Array;
|
|
53
|
+
}
|
|
54
|
+
export declare const ScanBleRequest: {
|
|
55
|
+
encode(message: ScanBleRequest, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ScanBleRequest;
|
|
57
|
+
fromJSON(object: any): ScanBleRequest;
|
|
58
|
+
toJSON(message: ScanBleRequest): unknown;
|
|
59
|
+
create<I extends {
|
|
60
|
+
serviceUuid?: string | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
serviceUuid?: string | undefined;
|
|
63
|
+
} & { [K in Exclude<keyof I, "serviceUuid">]: never; }>(base?: I): ScanBleRequest;
|
|
64
|
+
fromPartial<I_1 extends {
|
|
65
|
+
serviceUuid?: string | undefined;
|
|
66
|
+
} & {
|
|
67
|
+
serviceUuid?: string | undefined;
|
|
68
|
+
} & { [K_1 in Exclude<keyof I_1, "serviceUuid">]: never; }>(object: I_1): ScanBleRequest;
|
|
69
|
+
};
|
|
70
|
+
export declare const BluetoothDevice: {
|
|
71
|
+
encode(message: BluetoothDevice, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BluetoothDevice;
|
|
73
|
+
fromJSON(object: any): BluetoothDevice;
|
|
74
|
+
toJSON(message: BluetoothDevice): unknown;
|
|
75
|
+
create<I extends {
|
|
76
|
+
deviceName?: string;
|
|
77
|
+
deviceAddress?: string;
|
|
78
|
+
} & {
|
|
79
|
+
deviceName?: string;
|
|
80
|
+
deviceAddress?: string;
|
|
81
|
+
} & { [K in Exclude<keyof I, keyof BluetoothDevice>]: never; }>(base?: I): BluetoothDevice;
|
|
82
|
+
fromPartial<I_1 extends {
|
|
83
|
+
deviceName?: string;
|
|
84
|
+
deviceAddress?: string;
|
|
85
|
+
} & {
|
|
86
|
+
deviceName?: string;
|
|
87
|
+
deviceAddress?: string;
|
|
88
|
+
} & { [K_1 in Exclude<keyof I_1, keyof BluetoothDevice>]: never; }>(object: I_1): BluetoothDevice;
|
|
89
|
+
};
|
|
90
|
+
export declare const ConnectBleRequest: {
|
|
91
|
+
encode(message: ConnectBleRequest, writer?: _m0.Writer): _m0.Writer;
|
|
92
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ConnectBleRequest;
|
|
93
|
+
fromJSON(object: any): ConnectBleRequest;
|
|
94
|
+
toJSON(message: ConnectBleRequest): unknown;
|
|
95
|
+
create<I extends {
|
|
96
|
+
deviceAddress?: string;
|
|
97
|
+
} & {
|
|
98
|
+
deviceAddress?: string;
|
|
99
|
+
} & { [K in Exclude<keyof I, "deviceAddress">]: never; }>(base?: I): ConnectBleRequest;
|
|
100
|
+
fromPartial<I_1 extends {
|
|
101
|
+
deviceAddress?: string;
|
|
102
|
+
} & {
|
|
103
|
+
deviceAddress?: string;
|
|
104
|
+
} & { [K_1 in Exclude<keyof I_1, "deviceAddress">]: never; }>(object: I_1): ConnectBleRequest;
|
|
105
|
+
};
|
|
106
|
+
export declare const ConnectBleReply: {
|
|
107
|
+
encode(message: ConnectBleReply, writer?: _m0.Writer): _m0.Writer;
|
|
108
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ConnectBleReply;
|
|
109
|
+
fromJSON(object: any): ConnectBleReply;
|
|
110
|
+
toJSON(message: ConnectBleReply): unknown;
|
|
111
|
+
create<I extends {
|
|
112
|
+
services?: {
|
|
113
|
+
uuid?: string;
|
|
114
|
+
serviceType?: number;
|
|
115
|
+
gattCharacteristics?: {
|
|
116
|
+
uuid?: string;
|
|
117
|
+
properties?: number;
|
|
118
|
+
}[];
|
|
119
|
+
}[];
|
|
120
|
+
} & {
|
|
121
|
+
services?: {
|
|
122
|
+
uuid?: string;
|
|
123
|
+
serviceType?: number;
|
|
124
|
+
gattCharacteristics?: {
|
|
125
|
+
uuid?: string;
|
|
126
|
+
properties?: number;
|
|
127
|
+
}[];
|
|
128
|
+
}[] & ({
|
|
129
|
+
uuid?: string;
|
|
130
|
+
serviceType?: number;
|
|
131
|
+
gattCharacteristics?: {
|
|
132
|
+
uuid?: string;
|
|
133
|
+
properties?: number;
|
|
134
|
+
}[];
|
|
135
|
+
} & {
|
|
136
|
+
uuid?: string;
|
|
137
|
+
serviceType?: number;
|
|
138
|
+
gattCharacteristics?: {
|
|
139
|
+
uuid?: string;
|
|
140
|
+
properties?: number;
|
|
141
|
+
}[] & ({
|
|
142
|
+
uuid?: string;
|
|
143
|
+
properties?: number;
|
|
144
|
+
} & {
|
|
145
|
+
uuid?: string;
|
|
146
|
+
properties?: number;
|
|
147
|
+
} & { [K in Exclude<keyof I["services"][number]["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_1 in Exclude<keyof I["services"][number]["gattCharacteristics"], keyof {
|
|
148
|
+
uuid?: string;
|
|
149
|
+
properties?: number;
|
|
150
|
+
}[]>]: never; };
|
|
151
|
+
} & { [K_2 in Exclude<keyof I["services"][number], keyof BleService>]: never; })[] & { [K_3 in Exclude<keyof I["services"], keyof {
|
|
152
|
+
uuid?: string;
|
|
153
|
+
serviceType?: number;
|
|
154
|
+
gattCharacteristics?: {
|
|
155
|
+
uuid?: string;
|
|
156
|
+
properties?: number;
|
|
157
|
+
}[];
|
|
158
|
+
}[]>]: never; };
|
|
159
|
+
} & { [K_4 in Exclude<keyof I, "services">]: never; }>(base?: I): ConnectBleReply;
|
|
160
|
+
fromPartial<I_1 extends {
|
|
161
|
+
services?: {
|
|
162
|
+
uuid?: string;
|
|
163
|
+
serviceType?: number;
|
|
164
|
+
gattCharacteristics?: {
|
|
165
|
+
uuid?: string;
|
|
166
|
+
properties?: number;
|
|
167
|
+
}[];
|
|
168
|
+
}[];
|
|
169
|
+
} & {
|
|
170
|
+
services?: {
|
|
171
|
+
uuid?: string;
|
|
172
|
+
serviceType?: number;
|
|
173
|
+
gattCharacteristics?: {
|
|
174
|
+
uuid?: string;
|
|
175
|
+
properties?: number;
|
|
176
|
+
}[];
|
|
177
|
+
}[] & ({
|
|
178
|
+
uuid?: string;
|
|
179
|
+
serviceType?: number;
|
|
180
|
+
gattCharacteristics?: {
|
|
181
|
+
uuid?: string;
|
|
182
|
+
properties?: number;
|
|
183
|
+
}[];
|
|
184
|
+
} & {
|
|
185
|
+
uuid?: string;
|
|
186
|
+
serviceType?: number;
|
|
187
|
+
gattCharacteristics?: {
|
|
188
|
+
uuid?: string;
|
|
189
|
+
properties?: number;
|
|
190
|
+
}[] & ({
|
|
191
|
+
uuid?: string;
|
|
192
|
+
properties?: number;
|
|
193
|
+
} & {
|
|
194
|
+
uuid?: string;
|
|
195
|
+
properties?: number;
|
|
196
|
+
} & { [K_5 in Exclude<keyof I_1["services"][number]["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_6 in Exclude<keyof I_1["services"][number]["gattCharacteristics"], keyof {
|
|
197
|
+
uuid?: string;
|
|
198
|
+
properties?: number;
|
|
199
|
+
}[]>]: never; };
|
|
200
|
+
} & { [K_7 in Exclude<keyof I_1["services"][number], keyof BleService>]: never; })[] & { [K_8 in Exclude<keyof I_1["services"], keyof {
|
|
201
|
+
uuid?: string;
|
|
202
|
+
serviceType?: number;
|
|
203
|
+
gattCharacteristics?: {
|
|
204
|
+
uuid?: string;
|
|
205
|
+
properties?: number;
|
|
206
|
+
}[];
|
|
207
|
+
}[]>]: never; };
|
|
208
|
+
} & { [K_9 in Exclude<keyof I_1, "services">]: never; }>(object: I_1): ConnectBleReply;
|
|
209
|
+
};
|
|
210
|
+
export declare const BleService: {
|
|
211
|
+
encode(message: BleService, writer?: _m0.Writer): _m0.Writer;
|
|
212
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BleService;
|
|
213
|
+
fromJSON(object: any): BleService;
|
|
214
|
+
toJSON(message: BleService): unknown;
|
|
215
|
+
create<I extends {
|
|
216
|
+
uuid?: string;
|
|
217
|
+
serviceType?: number;
|
|
218
|
+
gattCharacteristics?: {
|
|
219
|
+
uuid?: string;
|
|
220
|
+
properties?: number;
|
|
221
|
+
}[];
|
|
222
|
+
} & {
|
|
223
|
+
uuid?: string;
|
|
224
|
+
serviceType?: number;
|
|
225
|
+
gattCharacteristics?: {
|
|
226
|
+
uuid?: string;
|
|
227
|
+
properties?: number;
|
|
228
|
+
}[] & ({
|
|
229
|
+
uuid?: string;
|
|
230
|
+
properties?: number;
|
|
231
|
+
} & {
|
|
232
|
+
uuid?: string;
|
|
233
|
+
properties?: number;
|
|
234
|
+
} & { [K in Exclude<keyof I["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_1 in Exclude<keyof I["gattCharacteristics"], keyof {
|
|
235
|
+
uuid?: string;
|
|
236
|
+
properties?: number;
|
|
237
|
+
}[]>]: never; };
|
|
238
|
+
} & { [K_2 in Exclude<keyof I, keyof BleService>]: never; }>(base?: I): BleService;
|
|
239
|
+
fromPartial<I_1 extends {
|
|
240
|
+
uuid?: string;
|
|
241
|
+
serviceType?: number;
|
|
242
|
+
gattCharacteristics?: {
|
|
243
|
+
uuid?: string;
|
|
244
|
+
properties?: number;
|
|
245
|
+
}[];
|
|
246
|
+
} & {
|
|
247
|
+
uuid?: string;
|
|
248
|
+
serviceType?: number;
|
|
249
|
+
gattCharacteristics?: {
|
|
250
|
+
uuid?: string;
|
|
251
|
+
properties?: number;
|
|
252
|
+
}[] & ({
|
|
253
|
+
uuid?: string;
|
|
254
|
+
properties?: number;
|
|
255
|
+
} & {
|
|
256
|
+
uuid?: string;
|
|
257
|
+
properties?: number;
|
|
258
|
+
} & { [K_3 in Exclude<keyof I_1["gattCharacteristics"][number], keyof BluetoothGattCharacteristic>]: never; })[] & { [K_4 in Exclude<keyof I_1["gattCharacteristics"], keyof {
|
|
259
|
+
uuid?: string;
|
|
260
|
+
properties?: number;
|
|
261
|
+
}[]>]: never; };
|
|
262
|
+
} & { [K_5 in Exclude<keyof I_1, keyof BleService>]: never; }>(object: I_1): BleService;
|
|
263
|
+
};
|
|
264
|
+
export declare const BluetoothGattCharacteristic: {
|
|
265
|
+
encode(message: BluetoothGattCharacteristic, writer?: _m0.Writer): _m0.Writer;
|
|
266
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BluetoothGattCharacteristic;
|
|
267
|
+
fromJSON(object: any): BluetoothGattCharacteristic;
|
|
268
|
+
toJSON(message: BluetoothGattCharacteristic): unknown;
|
|
269
|
+
create<I extends {
|
|
270
|
+
uuid?: string;
|
|
271
|
+
properties?: number;
|
|
272
|
+
} & {
|
|
273
|
+
uuid?: string;
|
|
274
|
+
properties?: number;
|
|
275
|
+
} & { [K in Exclude<keyof I, keyof BluetoothGattCharacteristic>]: never; }>(base?: I): BluetoothGattCharacteristic;
|
|
276
|
+
fromPartial<I_1 extends {
|
|
277
|
+
uuid?: string;
|
|
278
|
+
properties?: number;
|
|
279
|
+
} & {
|
|
280
|
+
uuid?: string;
|
|
281
|
+
properties?: number;
|
|
282
|
+
} & { [K_1 in Exclude<keyof I_1, keyof BluetoothGattCharacteristic>]: never; }>(object: I_1): BluetoothGattCharacteristic;
|
|
283
|
+
};
|
|
284
|
+
export declare const WriteRequest: {
|
|
285
|
+
encode(message: WriteRequest, writer?: _m0.Writer): _m0.Writer;
|
|
286
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WriteRequest;
|
|
287
|
+
fromJSON(object: any): WriteRequest;
|
|
288
|
+
toJSON(message: WriteRequest): unknown;
|
|
289
|
+
create<I extends {
|
|
290
|
+
deviceAddress?: string;
|
|
291
|
+
gattCharacteristicUuid?: string;
|
|
292
|
+
message?: Uint8Array;
|
|
293
|
+
} & {
|
|
294
|
+
deviceAddress?: string;
|
|
295
|
+
gattCharacteristicUuid?: string;
|
|
296
|
+
message?: Uint8Array;
|
|
297
|
+
} & { [K in Exclude<keyof I, keyof WriteRequest>]: never; }>(base?: I): WriteRequest;
|
|
298
|
+
fromPartial<I_1 extends {
|
|
299
|
+
deviceAddress?: string;
|
|
300
|
+
gattCharacteristicUuid?: string;
|
|
301
|
+
message?: Uint8Array;
|
|
302
|
+
} & {
|
|
303
|
+
deviceAddress?: string;
|
|
304
|
+
gattCharacteristicUuid?: string;
|
|
305
|
+
message?: Uint8Array;
|
|
306
|
+
} & { [K_1 in Exclude<keyof I_1, keyof WriteRequest>]: never; }>(object: I_1): WriteRequest;
|
|
307
|
+
};
|
|
308
|
+
export declare const WriteReply: {
|
|
309
|
+
encode(message: WriteReply, writer?: _m0.Writer): _m0.Writer;
|
|
310
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): WriteReply;
|
|
311
|
+
fromJSON(object: any): WriteReply;
|
|
312
|
+
toJSON(message: WriteReply): unknown;
|
|
313
|
+
create<I extends {
|
|
314
|
+
success?: boolean;
|
|
315
|
+
} & {
|
|
316
|
+
success?: boolean;
|
|
317
|
+
} & { [K in Exclude<keyof I, "success">]: never; }>(base?: I): WriteReply;
|
|
318
|
+
fromPartial<I_1 extends {
|
|
319
|
+
success?: boolean;
|
|
320
|
+
} & {
|
|
321
|
+
success?: boolean;
|
|
322
|
+
} & { [K_1 in Exclude<keyof I_1, "success">]: never; }>(object: I_1): WriteReply;
|
|
323
|
+
};
|
|
324
|
+
export declare const ReadRequest: {
|
|
325
|
+
encode(message: ReadRequest, writer?: _m0.Writer): _m0.Writer;
|
|
326
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReadRequest;
|
|
327
|
+
fromJSON(object: any): ReadRequest;
|
|
328
|
+
toJSON(message: ReadRequest): unknown;
|
|
329
|
+
create<I extends {
|
|
330
|
+
deviceAddress?: string;
|
|
331
|
+
gattCharacteristicUuid?: string;
|
|
332
|
+
} & {
|
|
333
|
+
deviceAddress?: string;
|
|
334
|
+
gattCharacteristicUuid?: string;
|
|
335
|
+
} & { [K in Exclude<keyof I, keyof ReadRequest>]: never; }>(base?: I): ReadRequest;
|
|
336
|
+
fromPartial<I_1 extends {
|
|
337
|
+
deviceAddress?: string;
|
|
338
|
+
gattCharacteristicUuid?: string;
|
|
339
|
+
} & {
|
|
340
|
+
deviceAddress?: string;
|
|
341
|
+
gattCharacteristicUuid?: string;
|
|
342
|
+
} & { [K_1 in Exclude<keyof I_1, keyof ReadRequest>]: never; }>(object: I_1): ReadRequest;
|
|
343
|
+
};
|
|
344
|
+
export declare const ReadReply: {
|
|
345
|
+
encode(message: ReadReply, writer?: _m0.Writer): _m0.Writer;
|
|
346
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ReadReply;
|
|
347
|
+
fromJSON(object: any): ReadReply;
|
|
348
|
+
toJSON(message: ReadReply): unknown;
|
|
349
|
+
create<I extends {
|
|
350
|
+
message?: Uint8Array;
|
|
351
|
+
} & {
|
|
352
|
+
message?: Uint8Array;
|
|
353
|
+
} & { [K in Exclude<keyof I, "message">]: never; }>(base?: I): ReadReply;
|
|
354
|
+
fromPartial<I_1 extends {
|
|
355
|
+
message?: Uint8Array;
|
|
356
|
+
} & {
|
|
357
|
+
message?: Uint8Array;
|
|
358
|
+
} & { [K_1 in Exclude<keyof I_1, "message">]: never; }>(object: I_1): ReadReply;
|
|
359
|
+
};
|
|
360
|
+
export interface BleManager {
|
|
361
|
+
ScanBle(request: DeepPartial<ScanBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<BluetoothDevice>;
|
|
362
|
+
ConnectBle(request: DeepPartial<ConnectBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ConnectBleReply>;
|
|
363
|
+
Write(request: DeepPartial<WriteRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<WriteReply>;
|
|
364
|
+
Read(request: DeepPartial<ReadRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ReadReply>;
|
|
365
|
+
}
|
|
366
|
+
export declare class BleManagerClientImpl implements BleManager {
|
|
367
|
+
private readonly rpc;
|
|
368
|
+
constructor(rpc: Rpc);
|
|
369
|
+
ScanBle(request: DeepPartial<ScanBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Observable<BluetoothDevice>;
|
|
370
|
+
ConnectBle(request: DeepPartial<ConnectBleRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ConnectBleReply>;
|
|
371
|
+
Write(request: DeepPartial<WriteRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<WriteReply>;
|
|
372
|
+
Read(request: DeepPartial<ReadRequest>, metadata?: grpc.Metadata, abortSignal?: AbortSignal): Promise<ReadReply>;
|
|
373
|
+
}
|
|
374
|
+
export declare const BleManagerDesc: {
|
|
375
|
+
serviceName: string;
|
|
376
|
+
};
|
|
377
|
+
export declare const BleManagerScanBleDesc: UnaryMethodDefinitionish;
|
|
378
|
+
export declare const BleManagerConnectBleDesc: UnaryMethodDefinitionish;
|
|
379
|
+
export declare const BleManagerWriteDesc: UnaryMethodDefinitionish;
|
|
380
|
+
export declare const BleManagerReadDesc: UnaryMethodDefinitionish;
|
|
381
|
+
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> {
|
|
382
|
+
requestStream: any;
|
|
383
|
+
responseStream: any;
|
|
384
|
+
}
|
|
385
|
+
type UnaryMethodDefinitionish = UnaryMethodDefinitionishR;
|
|
386
|
+
interface Rpc {
|
|
387
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
388
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
389
|
+
}
|
|
390
|
+
export declare class GrpcWebImpl {
|
|
391
|
+
private host;
|
|
392
|
+
private options;
|
|
393
|
+
constructor(host: string, options: {
|
|
394
|
+
transport?: grpc.TransportFactory;
|
|
395
|
+
streamingTransport?: grpc.TransportFactory;
|
|
396
|
+
debug?: boolean;
|
|
397
|
+
metadata?: grpc.Metadata;
|
|
398
|
+
upStreamRetryCodes?: number[];
|
|
399
|
+
});
|
|
400
|
+
unary<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Promise<any>;
|
|
401
|
+
invoke<T extends UnaryMethodDefinitionish>(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined, abortSignal?: AbortSignal): Observable<any>;
|
|
402
|
+
}
|
|
403
|
+
declare const tsProtoGlobalThis: any;
|
|
404
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
405
|
+
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 {} ? {
|
|
406
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
407
|
+
} : Partial<T>;
|
|
408
|
+
export declare class GrpcWebError extends tsProtoGlobalThis.Error {
|
|
409
|
+
code: grpc.Code;
|
|
410
|
+
metadata: grpc.Metadata;
|
|
411
|
+
constructor(message: string, code: grpc.Code, metadata: grpc.Metadata);
|
|
412
|
+
}
|
|
413
|
+
export {};
|
|
414
|
+
//# sourceMappingURL=ble.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ble.d.ts","sourceRoot":"","sources":["../../localdevice/ble.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAEhD,OAAO,GAAG,MAAM,oBAAoB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,MAAM,WAAW,cAAc;IAC7B,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,gBAAgB;IAChB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,aAAa;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS;IACT,mBAAmB,EAAE,2BAA2B,EAAE,CAAC;CACpD;AAED,MAAM,WAAW,2BAA2B;IAC1C,aAAa;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW;IACX,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,UAAU,CAAC;CACrB;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