@ray-js/api 1.7.79 → 1.7.80
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/@types/AIKit.d.ts +1140 -1009
- package/@types/AVideoKit.d.ts +26 -101
- package/@types/BaseKit.d.ts +234 -210
- package/@types/BizKit.d.ts +271 -296
- package/@types/DeviceKit.d.ts +57 -88
- package/@types/GroupCITestKit.d.ts +1 -3
- package/@types/HealthKit.d.ts +273 -230
- package/@types/HomeKit.d.ts +1062 -891
- package/@types/IPCKit.d.ts +23 -50
- package/@types/LightKit.d.ts +2 -2
- package/@types/MapKit.d.ts +592 -381
- package/@types/MediaPlayerKit.d.ts +4 -28
- package/@types/MiniKit.d.ts +198 -375
- package/@types/P2PKit.d.ts +139 -205
- package/@types/PayKit.d.ts +10 -79
- package/@types/SweeperKit.d.ts +10 -10
- package/@types/ThirdAuthKit.d.ts +28 -252
- package/@types/WearKit.d.ts +630 -1593
- package/@types/api-extend.d.ts +0 -63
- package/lib/AIKit-1.6.0.d.ts +732 -35
- package/lib/AIKit-1.6.0.js +732 -51
- package/lib/BaseKit-3.17.7.d.ts +0 -214
- package/lib/BaseKit-3.17.7.js +1 -227
- package/lib/DeviceKit-4.13.1.d.ts +3666 -0
- package/lib/DeviceKit-4.13.1.js +3666 -0
- package/lib/HealthKit-6.5.0.d.ts +603 -0
- package/lib/HealthKit-6.5.0.js +603 -0
- package/lib/HomeKit-3.1.4.d.ts +4 -0
- package/lib/HomeKit-3.1.4.js +4 -0
- package/lib/IPCKit-6.4.5.d.ts +0 -1
- package/lib/IPCKit-6.4.5.js +0 -1
- package/lib/MapKit-3.4.13.d.ts +251 -0
- package/lib/MapKit-3.4.13.js +251 -0
- package/lib/MediaKit-3.4.1.d.ts +16 -0
- package/lib/MediaKit-3.4.1.js +16 -0
- package/lib/PlayNetKit-1.3.30.d.ts +930 -0
- package/lib/PlayNetKit-1.3.30.js +930 -0
- package/lib/cloud/alarm.d.ts +38 -5
- package/lib/cloud/alarm.js +38 -5
- package/lib/cloud/device.d.ts +42 -6
- package/lib/cloud/device.js +42 -6
- package/lib/cloud/gateway.d.ts +16 -0
- package/lib/cloud/gateway.js +16 -0
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +272 -0
- package/lib/cloud/interface.d.ts +161 -0
- package/lib/cloud/interface.js +18 -0
- package/lib/cloud/statistic.d.ts +112 -26
- package/lib/cloud/statistic.js +112 -26
- package/lib/cloud/timer.d.ts +2 -4
- package/lib/nativeRouters/outdoors.d.ts +2 -0
- package/lib/nativeRouters/outdoors.js +2 -0
- package/lib/nativeRouters/remoteGroup.d.ts +2 -0
- package/lib/nativeRouters/remoteGroup.js +2 -0
- package/lib/panel/publishDps.js +1 -1
- package/package.json +5 -5
package/@types/P2PKit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* P2PKit
|
|
3
3
|
*
|
|
4
|
-
* @version 7.7.
|
|
4
|
+
* @version 7.7.5
|
|
5
5
|
*/
|
|
6
6
|
declare namespace ty.p2p {
|
|
7
7
|
/**
|
|
@@ -16,11 +16,11 @@ declare namespace ty.p2p {
|
|
|
16
16
|
* @since P2PKit 0.0.1
|
|
17
17
|
*/
|
|
18
18
|
userId?: string
|
|
19
|
-
/**
|
|
19
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
20
20
|
complete?: () => void
|
|
21
|
-
/**
|
|
21
|
+
/** success 成功回调 */
|
|
22
22
|
success?: (params: null) => void
|
|
23
|
-
/**
|
|
23
|
+
/** fail 失败回调 */
|
|
24
24
|
fail?: (params: {
|
|
25
25
|
/** 错误信息 */
|
|
26
26
|
errorMsg: string
|
|
@@ -46,25 +46,28 @@ declare namespace ty.p2p {
|
|
|
46
46
|
/**
|
|
47
47
|
* device id
|
|
48
48
|
* @since P2PKit 0.0.1
|
|
49
|
+
* @since P2PKit 2.0.3
|
|
49
50
|
*/
|
|
50
51
|
deviceId: string
|
|
51
52
|
/**
|
|
52
53
|
* connect mode,0:INTERNET 1:LAN
|
|
53
54
|
* @since P2PKit 0.0.1
|
|
55
|
+
* @since P2PKit 2.0.3
|
|
54
56
|
* @defaultValue 0
|
|
55
57
|
*/
|
|
56
58
|
mode?: number
|
|
57
59
|
/**
|
|
58
60
|
* timeout,unit:ms, default as Internet:15000ms,Lan:3000ms
|
|
59
61
|
* @since P2PKit 0.0.1
|
|
62
|
+
* @since P2PKit 2.0.3
|
|
60
63
|
* @defaultValue 0
|
|
61
64
|
*/
|
|
62
65
|
timeout?: number
|
|
63
|
-
/**
|
|
66
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
64
67
|
complete?: () => void
|
|
65
|
-
/**
|
|
68
|
+
/** success 成功回调 */
|
|
66
69
|
success?: (params: null) => void
|
|
67
|
-
/**
|
|
70
|
+
/** fail 失败回调 */
|
|
68
71
|
fail?: (params: {
|
|
69
72
|
/** 错误信息 */
|
|
70
73
|
errorMsg: string
|
|
@@ -89,26 +92,29 @@ declare namespace ty.p2p {
|
|
|
89
92
|
export function isP2PActive(params: {
|
|
90
93
|
/**
|
|
91
94
|
* device id
|
|
95
|
+
* @since P2PKit 0.0.1
|
|
92
96
|
* @since P2PKit 2.0.3
|
|
93
97
|
*/
|
|
94
98
|
deviceId: string
|
|
95
99
|
/**
|
|
96
100
|
* connect mode,0:INTERNET 1:LAN
|
|
101
|
+
* @since P2PKit 0.0.1
|
|
97
102
|
* @since P2PKit 2.0.3
|
|
98
103
|
* @defaultValue 0
|
|
99
104
|
*/
|
|
100
105
|
mode?: number
|
|
101
106
|
/**
|
|
102
107
|
* timeout,unit:ms, default as Internet:15000ms,Lan:3000ms
|
|
108
|
+
* @since P2PKit 0.0.1
|
|
103
109
|
* @since P2PKit 2.0.3
|
|
104
110
|
* @defaultValue 0
|
|
105
111
|
*/
|
|
106
112
|
timeout?: number
|
|
107
|
-
/**
|
|
113
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
108
114
|
complete?: () => void
|
|
109
|
-
/**
|
|
115
|
+
/** success 成功回调 */
|
|
110
116
|
success?: (params: null) => void
|
|
111
|
-
/**
|
|
117
|
+
/** fail 失败回调 */
|
|
112
118
|
fail?: (params: {
|
|
113
119
|
/** 错误信息 */
|
|
114
120
|
errorMsg: string
|
|
@@ -130,7 +136,9 @@ declare namespace ty.p2p {
|
|
|
130
136
|
* @since P2PKit 2.0.3
|
|
131
137
|
* @platform iOS Android
|
|
132
138
|
*/
|
|
133
|
-
export function isP2PActiveSync(
|
|
139
|
+
export function isP2PActiveSync(
|
|
140
|
+
params?: ThingP2PConnectionParams_RLnxyU
|
|
141
|
+
): null
|
|
134
142
|
|
|
135
143
|
/**
|
|
136
144
|
* query device's album file index infos
|
|
@@ -149,9 +157,9 @@ declare namespace ty.p2p {
|
|
|
149
157
|
* @since P2PKit 1.0.0
|
|
150
158
|
*/
|
|
151
159
|
albumName: string
|
|
152
|
-
/**
|
|
160
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
153
161
|
complete?: () => void
|
|
154
|
-
/**
|
|
162
|
+
/** success 成功回调 */
|
|
155
163
|
success?: (params: {
|
|
156
164
|
/**
|
|
157
165
|
* file count
|
|
@@ -162,9 +170,9 @@ declare namespace ty.p2p {
|
|
|
162
170
|
* file index infos
|
|
163
171
|
* @since P2PKit 2.0.2
|
|
164
172
|
*/
|
|
165
|
-
items:
|
|
173
|
+
items: ThingP2PAlbumFileIndex_T9i2P3[]
|
|
166
174
|
}) => void
|
|
167
|
-
/**
|
|
175
|
+
/** fail 失败回调 */
|
|
168
176
|
fail?: (params: {
|
|
169
177
|
/** 错误信息 */
|
|
170
178
|
errorMsg: string
|
|
@@ -212,11 +220,11 @@ declare namespace ty.p2p {
|
|
|
212
220
|
* @since P2PKit 0.0.1
|
|
213
221
|
*/
|
|
214
222
|
extDataLength?: number
|
|
215
|
-
/**
|
|
223
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
216
224
|
complete?: () => void
|
|
217
|
-
/**
|
|
225
|
+
/** success 成功回调 */
|
|
218
226
|
success?: (params: null) => void
|
|
219
|
-
/**
|
|
227
|
+
/** fail 失败回调 */
|
|
220
228
|
fail?: (params: {
|
|
221
229
|
/** 错误信息 */
|
|
222
230
|
errorMsg: string
|
|
@@ -259,11 +267,11 @@ declare namespace ty.p2p {
|
|
|
259
267
|
* @since P2PKit 1.0.0
|
|
260
268
|
*/
|
|
261
269
|
jsonfiles: string
|
|
262
|
-
/**
|
|
270
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
263
271
|
complete?: () => void
|
|
264
|
-
/**
|
|
272
|
+
/** success 成功回调 */
|
|
265
273
|
success?: (params: null) => void
|
|
266
|
-
/**
|
|
274
|
+
/** fail 失败回调 */
|
|
267
275
|
fail?: (params: {
|
|
268
276
|
/** 错误信息 */
|
|
269
277
|
errorMsg: string
|
|
@@ -289,23 +297,26 @@ declare namespace ty.p2p {
|
|
|
289
297
|
/**
|
|
290
298
|
* device id
|
|
291
299
|
* @since P2PKit 2.0.2
|
|
300
|
+
* @since P2PKit 2.1.0
|
|
292
301
|
*/
|
|
293
302
|
deviceId: string
|
|
294
303
|
/**
|
|
295
304
|
* albumName given by the device
|
|
296
305
|
* @since P2PKit 2.0.2
|
|
306
|
+
* @since P2PKit 2.1.0
|
|
297
307
|
*/
|
|
298
308
|
albumName: string
|
|
299
309
|
/**
|
|
300
310
|
* file name jsons,eg: {"files":["filesname1", "filesname2", "filesname3" ]}
|
|
301
311
|
* @since P2PKit 2.0.2
|
|
312
|
+
* @since P2PKit 2.1.0
|
|
302
313
|
*/
|
|
303
314
|
jsonfiles: string
|
|
304
|
-
/**
|
|
315
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
305
316
|
complete?: () => void
|
|
306
|
-
/**
|
|
317
|
+
/** success 成功回调 */
|
|
307
318
|
success?: (params: null) => void
|
|
308
|
-
/**
|
|
319
|
+
/** fail 失败回调 */
|
|
309
320
|
fail?: (params: {
|
|
310
321
|
/** 错误信息 */
|
|
311
322
|
errorMsg: string
|
|
@@ -330,24 +341,27 @@ declare namespace ty.p2p {
|
|
|
330
341
|
export function appendDownloadStream(params: {
|
|
331
342
|
/**
|
|
332
343
|
* device id
|
|
344
|
+
* @since P2PKit 2.0.2
|
|
333
345
|
* @since P2PKit 2.1.0
|
|
334
346
|
*/
|
|
335
347
|
deviceId: string
|
|
336
348
|
/**
|
|
337
349
|
* albumName given by the device
|
|
350
|
+
* @since P2PKit 2.0.2
|
|
338
351
|
* @since P2PKit 2.1.0
|
|
339
352
|
*/
|
|
340
353
|
albumName: string
|
|
341
354
|
/**
|
|
342
355
|
* file name jsons,eg: {"files":["filesname1", "filesname2", "filesname3" ]}
|
|
356
|
+
* @since P2PKit 2.0.2
|
|
343
357
|
* @since P2PKit 2.1.0
|
|
344
358
|
*/
|
|
345
359
|
jsonfiles: string
|
|
346
|
-
/**
|
|
360
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
347
361
|
complete?: () => void
|
|
348
|
-
/**
|
|
362
|
+
/** success 成功回调 */
|
|
349
363
|
success?: (params: null) => void
|
|
350
|
-
/**
|
|
364
|
+
/** fail 失败回调 */
|
|
351
365
|
fail?: (params: {
|
|
352
366
|
/** 错误信息 */
|
|
353
367
|
errorMsg: string
|
|
@@ -375,11 +389,11 @@ declare namespace ty.p2p {
|
|
|
375
389
|
* @since P2PKit 0.0.1
|
|
376
390
|
*/
|
|
377
391
|
deviceId: string
|
|
378
|
-
/**
|
|
392
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
379
393
|
complete?: () => void
|
|
380
|
-
/**
|
|
394
|
+
/** success 成功回调 */
|
|
381
395
|
success?: (params: null) => void
|
|
382
|
-
/**
|
|
396
|
+
/** fail 失败回调 */
|
|
383
397
|
fail?: (params: {
|
|
384
398
|
/** 错误信息 */
|
|
385
399
|
errorMsg: string
|
|
@@ -407,11 +421,11 @@ declare namespace ty.p2p {
|
|
|
407
421
|
* @since P2PKit 1.0.0
|
|
408
422
|
*/
|
|
409
423
|
deviceId: string
|
|
410
|
-
/**
|
|
424
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
411
425
|
complete?: () => void
|
|
412
|
-
/**
|
|
426
|
+
/** success 成功回调 */
|
|
413
427
|
success?: (params: null) => void
|
|
414
|
-
/**
|
|
428
|
+
/** fail 失败回调 */
|
|
415
429
|
fail?: (params: {
|
|
416
430
|
/** 错误信息 */
|
|
417
431
|
errorMsg: string
|
|
@@ -439,11 +453,11 @@ declare namespace ty.p2p {
|
|
|
439
453
|
* @since P2PKit 0.0.1
|
|
440
454
|
*/
|
|
441
455
|
deviceId: string
|
|
442
|
-
/**
|
|
456
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
443
457
|
complete?: () => void
|
|
444
|
-
/**
|
|
458
|
+
/** success 成功回调 */
|
|
445
459
|
success?: (params: null) => void
|
|
446
|
-
/**
|
|
460
|
+
/** fail 失败回调 */
|
|
447
461
|
fail?: (params: {
|
|
448
462
|
/** 错误信息 */
|
|
449
463
|
errorMsg: string
|
|
@@ -466,11 +480,11 @@ declare namespace ty.p2p {
|
|
|
466
480
|
* @platform iOS Android
|
|
467
481
|
*/
|
|
468
482
|
export function deInitSDK(params?: {
|
|
469
|
-
/**
|
|
483
|
+
/** complete 完成回调(成功、失败都会触发) */
|
|
470
484
|
complete?: () => void
|
|
471
|
-
/**
|
|
485
|
+
/** success 成功回调 */
|
|
472
486
|
success?: (params: null) => void
|
|
473
|
-
/**
|
|
487
|
+
/** fail 失败回调 */
|
|
474
488
|
fail?: (params: {
|
|
475
489
|
/** 错误信息 */
|
|
476
490
|
errorMsg: string
|
|
@@ -489,21 +503,21 @@ declare namespace ty.p2p {
|
|
|
489
503
|
/**
|
|
490
504
|
* P2P status changed event
|
|
491
505
|
* @public
|
|
492
|
-
* @since P2PKit
|
|
506
|
+
* @since P2PKit 7.7.5
|
|
493
507
|
* @platform iOS Android
|
|
494
508
|
*/
|
|
495
509
|
export function onSessionStatusChange(
|
|
496
|
-
listener: (params:
|
|
510
|
+
listener: (params: ThingP2PSessionStatus_IFof4A) => void
|
|
497
511
|
): void
|
|
498
512
|
|
|
499
513
|
/**
|
|
500
514
|
* P2P status changed event
|
|
501
515
|
* @public
|
|
502
|
-
* @since P2PKit
|
|
516
|
+
* @since P2PKit 7.7.5
|
|
503
517
|
* @platform iOS Android
|
|
504
518
|
*/
|
|
505
519
|
export function offSessionStatusChange(
|
|
506
|
-
listener: (params:
|
|
520
|
+
listener: (params: ThingP2PSessionStatus_IFof4A) => void
|
|
507
521
|
): void
|
|
508
522
|
|
|
509
523
|
/**
|
|
@@ -513,7 +527,7 @@ declare namespace ty.p2p {
|
|
|
513
527
|
* @platform iOS Android
|
|
514
528
|
*/
|
|
515
529
|
export function onUploadProgressUpdate(
|
|
516
|
-
listener: (params:
|
|
530
|
+
listener: (params: ProgressEvent_pvSOoq) => void
|
|
517
531
|
): void
|
|
518
532
|
|
|
519
533
|
/**
|
|
@@ -523,135 +537,134 @@ declare namespace ty.p2p {
|
|
|
523
537
|
* @platform iOS Android
|
|
524
538
|
*/
|
|
525
539
|
export function offUploadProgressUpdate(
|
|
526
|
-
listener: (params:
|
|
540
|
+
listener: (params: ProgressEvent_pvSOoq) => void
|
|
527
541
|
): void
|
|
528
542
|
|
|
529
543
|
/**
|
|
530
544
|
* single file download progress event
|
|
531
545
|
* @public
|
|
532
|
-
* @since P2PKit
|
|
546
|
+
* @since P2PKit 7.7.5
|
|
533
547
|
* @platform iOS Android
|
|
534
548
|
*/
|
|
535
549
|
export function onDownloadProgressUpdate(
|
|
536
|
-
listener: (params:
|
|
550
|
+
listener: (params: DownloadProgressEvent_QH71Ba) => void
|
|
537
551
|
): void
|
|
538
552
|
|
|
539
553
|
/**
|
|
540
554
|
* single file download progress event
|
|
541
555
|
* @public
|
|
542
|
-
* @since P2PKit
|
|
556
|
+
* @since P2PKit 7.7.5
|
|
543
557
|
* @platform iOS Android
|
|
544
558
|
*/
|
|
545
559
|
export function offDownloadProgressUpdate(
|
|
546
|
-
listener: (params:
|
|
560
|
+
listener: (params: DownloadProgressEvent_QH71Ba) => void
|
|
547
561
|
): void
|
|
548
562
|
|
|
549
563
|
/**
|
|
550
564
|
* total download progress event
|
|
551
565
|
* @public
|
|
552
|
-
* @since P2PKit
|
|
566
|
+
* @since P2PKit 7.7.5
|
|
553
567
|
* @platform iOS Android
|
|
554
568
|
*/
|
|
555
569
|
export function onDownloadTotalProgressUpdate(
|
|
556
|
-
listener: (params:
|
|
570
|
+
listener: (params: DownloadTotalProgressEvent_1Azddl) => void
|
|
557
571
|
): void
|
|
558
572
|
|
|
559
573
|
/**
|
|
560
574
|
* total download progress event
|
|
561
575
|
* @public
|
|
562
|
-
* @since P2PKit
|
|
576
|
+
* @since P2PKit 7.7.5
|
|
563
577
|
* @platform iOS Android
|
|
564
578
|
*/
|
|
565
579
|
export function offDownloadTotalProgressUpdate(
|
|
566
|
-
listener: (params:
|
|
580
|
+
listener: (params: DownloadTotalProgressEvent_1Azddl) => void
|
|
567
581
|
): void
|
|
568
582
|
|
|
569
583
|
/**
|
|
570
584
|
* single file download completed event
|
|
571
585
|
* @public
|
|
572
|
-
* @since P2PKit
|
|
586
|
+
* @since P2PKit 7.7.5
|
|
573
587
|
* @platform iOS Android
|
|
574
588
|
*/
|
|
575
589
|
export function onFileDownloadComplete(
|
|
576
|
-
listener: (params:
|
|
590
|
+
listener: (params: FileDownloadCompletionEvent_GsCY7d) => void
|
|
577
591
|
): void
|
|
578
592
|
|
|
579
593
|
/**
|
|
580
594
|
* single file download completed event
|
|
581
595
|
* @public
|
|
582
|
-
* @since P2PKit
|
|
596
|
+
* @since P2PKit 7.7.5
|
|
583
597
|
* @platform iOS Android
|
|
584
598
|
*/
|
|
585
599
|
export function offFileDownloadComplete(
|
|
586
|
-
listener: (params:
|
|
600
|
+
listener: (params: FileDownloadCompletionEvent_GsCY7d) => void
|
|
587
601
|
): void
|
|
588
602
|
|
|
589
603
|
/**
|
|
590
604
|
* download packet received event
|
|
591
605
|
* @public
|
|
592
|
-
* @since P2PKit
|
|
606
|
+
* @since P2PKit 7.7.5
|
|
593
607
|
* @platform iOS Android
|
|
594
608
|
*/
|
|
595
609
|
export function onStreamPacketReceive(
|
|
596
|
-
listener: (params:
|
|
610
|
+
listener: (params: StreamDownloadPacketReceivedEvent_aZmDrH) => void
|
|
597
611
|
): void
|
|
598
612
|
|
|
599
613
|
/**
|
|
600
614
|
* download packet received event
|
|
601
615
|
* @public
|
|
602
|
-
* @since P2PKit
|
|
616
|
+
* @since P2PKit 7.7.5
|
|
603
617
|
* @platform iOS Android
|
|
604
618
|
*/
|
|
605
619
|
export function offStreamPacketReceive(
|
|
606
|
-
listener: (params:
|
|
620
|
+
listener: (params: StreamDownloadPacketReceivedEvent_aZmDrH) => void
|
|
607
621
|
): void
|
|
608
622
|
|
|
609
|
-
|
|
610
|
-
export interface ThingP2PInitConfigParams {
|
|
623
|
+
export interface ThingP2PInitConfigParams_OSkx6g {
|
|
611
624
|
/**
|
|
612
625
|
* user id
|
|
613
|
-
* @since P2PKit
|
|
626
|
+
* @since P2PKit 0.0.1
|
|
614
627
|
*/
|
|
615
628
|
userId?: string
|
|
616
629
|
}
|
|
617
630
|
|
|
618
|
-
|
|
619
|
-
export interface ThingP2PConnectionParams {
|
|
631
|
+
export interface ThingP2PConnectionParams_RLnxyU {
|
|
620
632
|
/**
|
|
621
633
|
* device id
|
|
634
|
+
* @since P2PKit 0.0.1
|
|
622
635
|
* @since P2PKit 2.0.3
|
|
623
636
|
*/
|
|
624
637
|
deviceId: string
|
|
625
638
|
/**
|
|
626
639
|
* connect mode,0:INTERNET 1:LAN
|
|
640
|
+
* @since P2PKit 0.0.1
|
|
627
641
|
* @since P2PKit 2.0.3
|
|
628
642
|
* @defaultValue 0
|
|
629
643
|
*/
|
|
630
644
|
mode?: number
|
|
631
645
|
/**
|
|
632
646
|
* timeout,unit:ms, default as Internet:15000ms,Lan:3000ms
|
|
647
|
+
* @since P2PKit 0.0.1
|
|
633
648
|
* @since P2PKit 2.0.3
|
|
634
649
|
* @defaultValue 0
|
|
635
650
|
*/
|
|
636
651
|
timeout?: number
|
|
637
652
|
}
|
|
638
653
|
|
|
639
|
-
|
|
640
|
-
export interface ThingP2PAlbum {
|
|
654
|
+
export interface ThingP2PAlbum_ARuQ0z {
|
|
641
655
|
/**
|
|
642
656
|
* device id
|
|
643
|
-
* @since P2PKit
|
|
657
|
+
* @since P2PKit 1.0.0
|
|
644
658
|
*/
|
|
645
659
|
deviceId: string
|
|
646
660
|
/**
|
|
647
661
|
* albumName,given by the device
|
|
648
|
-
* @since P2PKit
|
|
662
|
+
* @since P2PKit 1.0.0
|
|
649
663
|
*/
|
|
650
664
|
albumName: string
|
|
651
665
|
}
|
|
652
666
|
|
|
653
|
-
|
|
654
|
-
export interface ThingP2PAlbumFileIndex {
|
|
667
|
+
export interface ThingP2PAlbumFileIndex_T9i2P3 {
|
|
655
668
|
/**
|
|
656
669
|
* idx,given by the device
|
|
657
670
|
* @since P2PKit 2.0.2
|
|
@@ -689,254 +702,175 @@ declare namespace ty.p2p {
|
|
|
689
702
|
duration: number
|
|
690
703
|
}
|
|
691
704
|
|
|
692
|
-
|
|
693
|
-
export interface ThingP2PAlbumFileIndexs {
|
|
705
|
+
export interface ThingP2PAlbumFileIndexs_F2wjKg {
|
|
694
706
|
/**
|
|
695
707
|
* file count
|
|
696
|
-
* @since P2PKit 2.0.
|
|
708
|
+
* @since P2PKit 2.0.2
|
|
697
709
|
*/
|
|
698
710
|
count: number
|
|
699
711
|
/**
|
|
700
712
|
* file index infos
|
|
701
|
-
* @since P2PKit 2.0.
|
|
713
|
+
* @since P2PKit 2.0.2
|
|
702
714
|
*/
|
|
703
|
-
items:
|
|
715
|
+
items: ThingP2PAlbumFileIndex_T9i2P3[]
|
|
704
716
|
}
|
|
705
717
|
|
|
706
|
-
|
|
707
|
-
export interface ThingP2PUploadFile {
|
|
718
|
+
export interface ThingP2PUploadFile_IuQuKs {
|
|
708
719
|
/**
|
|
709
720
|
* device id
|
|
710
|
-
* @since P2PKit
|
|
721
|
+
* @since P2PKit 0.0.1
|
|
711
722
|
*/
|
|
712
723
|
deviceId: string
|
|
713
724
|
/**
|
|
714
725
|
* albumName given by the device
|
|
715
|
-
* @since P2PKit
|
|
726
|
+
* @since P2PKit 0.0.1
|
|
716
727
|
*/
|
|
717
728
|
albumName: string
|
|
718
729
|
/**
|
|
719
730
|
* local file path
|
|
720
|
-
* @since P2PKit
|
|
731
|
+
* @since P2PKit 0.0.1
|
|
721
732
|
*/
|
|
722
733
|
filePath: string
|
|
723
734
|
/**
|
|
724
735
|
* ext data
|
|
725
|
-
* @since P2PKit
|
|
736
|
+
* @since P2PKit 0.0.1
|
|
726
737
|
*/
|
|
727
738
|
extData?: string
|
|
728
739
|
/**
|
|
729
740
|
* ext data length
|
|
730
|
-
* @since P2PKit
|
|
741
|
+
* @since P2PKit 0.0.1
|
|
731
742
|
*/
|
|
732
743
|
extDataLength?: number
|
|
733
744
|
}
|
|
734
745
|
|
|
735
|
-
|
|
736
|
-
export interface ThingP2PDownloadFile {
|
|
746
|
+
export interface ThingP2PDownloadFile_iUwmoX {
|
|
737
747
|
/**
|
|
738
748
|
* device id
|
|
739
|
-
* @since P2PKit
|
|
749
|
+
* @since P2PKit 1.0.0
|
|
740
750
|
*/
|
|
741
751
|
deviceId: string
|
|
742
752
|
/**
|
|
743
753
|
* albumName given by the device
|
|
744
|
-
* @since P2PKit
|
|
754
|
+
* @since P2PKit 1.0.0
|
|
745
755
|
*/
|
|
746
756
|
albumName: string
|
|
747
757
|
/**
|
|
748
758
|
* local file path
|
|
749
|
-
* @since P2PKit
|
|
759
|
+
* @since P2PKit 1.0.0
|
|
750
760
|
*/
|
|
751
761
|
filePath: string
|
|
752
762
|
/**
|
|
753
763
|
* file name jsons,eg: {"files":["filesname1", "filesname2", "filesname3" ]}
|
|
754
|
-
* @since P2PKit
|
|
764
|
+
* @since P2PKit 1.0.0
|
|
755
765
|
*/
|
|
756
766
|
jsonfiles: string
|
|
757
767
|
}
|
|
758
768
|
|
|
759
|
-
|
|
760
|
-
export interface ThingP2PDownloadStream {
|
|
769
|
+
export interface ThingP2PDownloadStream_kIvS10 {
|
|
761
770
|
/**
|
|
762
771
|
* device id
|
|
763
772
|
* @since P2PKit 2.0.2
|
|
773
|
+
* @since P2PKit 2.1.0
|
|
764
774
|
*/
|
|
765
775
|
deviceId: string
|
|
766
776
|
/**
|
|
767
777
|
* albumName given by the device
|
|
768
778
|
* @since P2PKit 2.0.2
|
|
779
|
+
* @since P2PKit 2.1.0
|
|
769
780
|
*/
|
|
770
781
|
albumName: string
|
|
771
782
|
/**
|
|
772
783
|
* file name jsons,eg: {"files":["filesname1", "filesname2", "filesname3" ]}
|
|
773
784
|
* @since P2PKit 2.0.2
|
|
785
|
+
* @since P2PKit 2.1.0
|
|
774
786
|
*/
|
|
775
787
|
jsonfiles: string
|
|
776
788
|
}
|
|
777
789
|
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
/**
|
|
781
|
-
* device id
|
|
782
|
-
* @since P2PKit 2.0.0
|
|
783
|
-
*/
|
|
790
|
+
export interface ThingP2PSessionStatus_IFof4A {
|
|
791
|
+
/** device id */
|
|
784
792
|
deviceId: string
|
|
785
|
-
/**
|
|
786
|
-
* status, status < 0 means disconnected
|
|
787
|
-
* @since P2PKit 2.0.0
|
|
788
|
-
*/
|
|
793
|
+
/** status, status < 0 means disconnected */
|
|
789
794
|
status: number
|
|
790
795
|
}
|
|
791
796
|
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* device id
|
|
796
|
-
* @since P2PKit 0.0.1
|
|
797
|
-
*/
|
|
797
|
+
export interface ProgressEvent_pvSOoq {
|
|
798
|
+
/** device id */
|
|
798
799
|
deviceId: string
|
|
799
|
-
/**
|
|
800
|
-
* local file path
|
|
801
|
-
* @since P2PKit 0.0.1
|
|
802
|
-
*/
|
|
800
|
+
/** local file path */
|
|
803
801
|
filePath: string
|
|
804
|
-
/**
|
|
805
|
-
* upload/download progress
|
|
806
|
-
* @since P2PKit 0.0.1
|
|
807
|
-
*/
|
|
802
|
+
/** upload/download progress */
|
|
808
803
|
progress: number
|
|
809
804
|
}
|
|
810
805
|
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* device id
|
|
815
|
-
* @since P2PKit 1.0.0
|
|
816
|
-
*/
|
|
806
|
+
export interface DownloadProgressEvent_QH71Ba {
|
|
807
|
+
/** device id */
|
|
817
808
|
deviceId: string
|
|
818
|
-
/**
|
|
819
|
-
* file name on downloading
|
|
820
|
-
* @since P2PKit 1.0.0
|
|
821
|
-
*/
|
|
809
|
+
/** file name on downloading */
|
|
822
810
|
fileName: string
|
|
823
|
-
/**
|
|
824
|
-
* upload/download progress
|
|
825
|
-
* @since P2PKit 1.0.0
|
|
826
|
-
*/
|
|
811
|
+
/** upload/download progress */
|
|
827
812
|
progress: number
|
|
828
813
|
}
|
|
829
814
|
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
/**
|
|
833
|
-
* device id
|
|
834
|
-
* @since P2PKit 1.0.0
|
|
835
|
-
*/
|
|
815
|
+
export interface DownloadTotalProgressEvent_1Azddl {
|
|
816
|
+
/** device id */
|
|
836
817
|
deviceId: string
|
|
837
|
-
/**
|
|
838
|
-
* upload/download progress
|
|
839
|
-
* @since P2PKit 1.0.0
|
|
840
|
-
*/
|
|
818
|
+
/** upload/download progress */
|
|
841
819
|
progress: number
|
|
842
820
|
}
|
|
843
821
|
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* device id
|
|
848
|
-
* @since P2PKit 1.0.0
|
|
849
|
-
*/
|
|
822
|
+
export interface FileDownloadCompletionEvent_GsCY7d {
|
|
823
|
+
/** device id */
|
|
850
824
|
deviceId: string
|
|
851
|
-
/**
|
|
852
|
-
* file name
|
|
853
|
-
* @since P2PKit 1.0.0
|
|
854
|
-
*/
|
|
825
|
+
/** file name */
|
|
855
826
|
fileName: string
|
|
856
|
-
/**
|
|
857
|
-
* index
|
|
858
|
-
* @since P2PKit 1.0.0
|
|
859
|
-
*/
|
|
827
|
+
/** index */
|
|
860
828
|
index: number
|
|
861
829
|
}
|
|
862
830
|
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
/**
|
|
866
|
-
* device id
|
|
867
|
-
* @since P2PKit 2.0.2
|
|
868
|
-
*/
|
|
831
|
+
export interface StreamDownloadPacketReceivedEvent_aZmDrH {
|
|
832
|
+
/** device id */
|
|
869
833
|
deviceId: string
|
|
870
|
-
/**
|
|
871
|
-
* total files count
|
|
872
|
-
* @since P2PKit 2.0.2
|
|
873
|
-
*/
|
|
834
|
+
/** total files count */
|
|
874
835
|
totalFiles: number
|
|
875
|
-
/**
|
|
876
|
-
* file name
|
|
877
|
-
* @since P2PKit 2.0.2
|
|
878
|
-
*/
|
|
836
|
+
/** file name */
|
|
879
837
|
fileName: string
|
|
880
|
-
/**
|
|
881
|
-
* file index, dirty data
|
|
882
|
-
* @since P2PKit 2.0.2
|
|
883
|
-
*/
|
|
838
|
+
/** file index, dirty data */
|
|
884
839
|
fileIndex: number
|
|
885
|
-
/**
|
|
886
|
-
* file length
|
|
887
|
-
* @since P2PKit 2.0.2
|
|
888
|
-
*/
|
|
840
|
+
/** file length */
|
|
889
841
|
fileLength: number
|
|
890
|
-
/**
|
|
891
|
-
* packet data
|
|
892
|
-
* @since P2PKit 2.0.2
|
|
893
|
-
*/
|
|
842
|
+
/** packet data */
|
|
894
843
|
packetData: string
|
|
895
|
-
/**
|
|
896
|
-
* packet data length
|
|
897
|
-
* @since P2PKit 2.0.2
|
|
898
|
-
*/
|
|
844
|
+
/** packet data length */
|
|
899
845
|
packetLength: number
|
|
900
|
-
/**
|
|
901
|
-
* file serial number
|
|
902
|
-
* @since P2PKit 2.0.2
|
|
903
|
-
*/
|
|
846
|
+
/** file serial number */
|
|
904
847
|
fileSerialNumber: number
|
|
905
|
-
/**
|
|
906
|
-
* packet index
|
|
907
|
-
* @since P2PKit 2.0.2
|
|
908
|
-
*/
|
|
848
|
+
/** packet index */
|
|
909
849
|
packetIndex: number
|
|
910
|
-
/**
|
|
911
|
-
* packet header/packet tail 0b00XY Y:packet header X:packet tail
|
|
912
|
-
* @since P2PKit 2.0.2
|
|
913
|
-
*/
|
|
850
|
+
/** packet header/packet tail 0b00XY Y:packet header X:packet tail */
|
|
914
851
|
packetType: number
|
|
915
852
|
}
|
|
916
853
|
|
|
917
|
-
|
|
918
|
-
export interface ThingP2PUploadTask {
|
|
854
|
+
export interface ThingP2PUploadTask_33hECI {
|
|
919
855
|
/**
|
|
920
856
|
* device id
|
|
921
|
-
* @since P2PKit
|
|
857
|
+
* @since P2PKit 0.0.1
|
|
922
858
|
*/
|
|
923
859
|
deviceId: string
|
|
924
860
|
}
|
|
925
861
|
|
|
926
|
-
|
|
927
|
-
export interface ThingP2PDownloadTask {
|
|
862
|
+
export interface ThingP2PDownloadTask_UovyBk {
|
|
928
863
|
/**
|
|
929
864
|
* device id
|
|
930
|
-
* @since P2PKit
|
|
865
|
+
* @since P2PKit 1.0.0
|
|
931
866
|
*/
|
|
932
867
|
deviceId: string
|
|
933
868
|
}
|
|
934
869
|
|
|
935
|
-
|
|
936
|
-
export interface ThingP2PDevice {
|
|
870
|
+
export interface ThingP2PDevice_aYt5Df {
|
|
937
871
|
/**
|
|
938
872
|
* device id
|
|
939
|
-
* @since P2PKit
|
|
873
|
+
* @since P2PKit 0.0.1
|
|
940
874
|
*/
|
|
941
875
|
deviceId: string
|
|
942
876
|
}
|