@ray-js/api 1.7.78 → 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.
Files changed (56) hide show
  1. package/@types/AIKit.d.ts +1140 -1009
  2. package/@types/AVideoKit.d.ts +26 -101
  3. package/@types/BaseKit.d.ts +234 -210
  4. package/@types/BizKit.d.ts +271 -296
  5. package/@types/DeviceKit.d.ts +57 -88
  6. package/@types/GroupCITestKit.d.ts +1 -3
  7. package/@types/HealthKit.d.ts +273 -230
  8. package/@types/HomeKit.d.ts +1062 -891
  9. package/@types/IPCKit.d.ts +23 -50
  10. package/@types/LightKit.d.ts +2 -2
  11. package/@types/MapKit.d.ts +592 -381
  12. package/@types/MediaPlayerKit.d.ts +4 -28
  13. package/@types/MiniKit.d.ts +198 -375
  14. package/@types/P2PKit.d.ts +139 -205
  15. package/@types/PayKit.d.ts +10 -79
  16. package/@types/SweeperKit.d.ts +10 -10
  17. package/@types/ThirdAuthKit.d.ts +28 -252
  18. package/@types/WearKit.d.ts +630 -1593
  19. package/@types/api-extend.d.ts +15 -63
  20. package/lib/AIKit-1.6.0.d.ts +732 -35
  21. package/lib/AIKit-1.6.0.js +732 -51
  22. package/lib/BaseKit-3.17.7.d.ts +0 -214
  23. package/lib/BaseKit-3.17.7.js +1 -227
  24. package/lib/DeviceKit-4.13.1.d.ts +3666 -0
  25. package/lib/DeviceKit-4.13.1.js +3666 -0
  26. package/lib/HealthKit-6.5.0.d.ts +603 -0
  27. package/lib/HealthKit-6.5.0.js +603 -0
  28. package/lib/HomeKit-3.1.4.d.ts +4 -0
  29. package/lib/HomeKit-3.1.4.js +4 -0
  30. package/lib/IPCKit-6.4.5.d.ts +0 -1
  31. package/lib/IPCKit-6.4.5.js +0 -1
  32. package/lib/MapKit-3.4.13.d.ts +251 -0
  33. package/lib/MapKit-3.4.13.js +251 -0
  34. package/lib/MediaKit-3.4.1.d.ts +16 -0
  35. package/lib/MediaKit-3.4.1.js +16 -0
  36. package/lib/PlayNetKit-1.3.30.d.ts +930 -0
  37. package/lib/PlayNetKit-1.3.30.js +930 -0
  38. package/lib/cloud/alarm.d.ts +38 -5
  39. package/lib/cloud/alarm.js +38 -5
  40. package/lib/cloud/device.d.ts +42 -6
  41. package/lib/cloud/device.js +42 -6
  42. package/lib/cloud/gateway.d.ts +16 -0
  43. package/lib/cloud/gateway.js +16 -0
  44. package/lib/cloud/health.d.ts +1 -0
  45. package/lib/cloud/health.js +272 -0
  46. package/lib/cloud/interface.d.ts +161 -0
  47. package/lib/cloud/interface.js +18 -0
  48. package/lib/cloud/statistic.d.ts +112 -26
  49. package/lib/cloud/statistic.js +112 -26
  50. package/lib/cloud/timer.d.ts +2 -4
  51. package/lib/nativeRouters/outdoors.d.ts +2 -0
  52. package/lib/nativeRouters/outdoors.js +2 -0
  53. package/lib/nativeRouters/remoteGroup.d.ts +2 -0
  54. package/lib/nativeRouters/remoteGroup.js +2 -0
  55. package/lib/panel/publishDps.js +1 -1
  56. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * DeviceKit
3
3
  *
4
- * @version 7.8.1
4
+ * @version 7.7.0
5
5
  */
6
6
  declare namespace ty.device {
7
7
  /**
@@ -3550,18 +3550,7 @@ declare namespace ty.device {
3550
3550
  /** 接口调用成功的回调函数 */
3551
3551
  success?: (params: {
3552
3552
  /**
3553
- * 设备网络在线类型,位运算方式表示,可使用位运算方式进行判断。
3554
- * 使用方式:(onlineType & (1 << bit)),例如:(onlineType & (1 << 0)) == true 表示设备 Wi-Fi 在线,(onlineType & (1 << 2)) == true 表示设备蓝牙在线
3555
- * 定义如下:
3556
- * bit 0 (1 << 0): Wi-Fi online,(云端在线 || 局域网在线),若只想判断云端在线,建议使用 bit:7
3557
- * bit 1 (1 << 1): Local online,局域网在线
3558
- * bit 2 (1 << 2): BLE online,蓝牙在线
3559
- * bit 3 (1 << 3): BLEMesh online,蓝牙mesh在线
3560
- * bit 4 (1 << 4): beacon online,beacon在线
3561
- * bit 5 (1 << 5): Dayu online,大禹在线
3562
- * bit 6 (1 << 6): System BT Online,系统蓝牙在线
3563
- * bit 7 (1 << 7): Cloud online,云端在线
3564
- * bit 8 (1 << 8): Matter online,Matter 本地在线
3553
+ * 设备网络在线类型
3565
3554
  * @since DeviceKit 3.3.0
3566
3555
  */
3567
3556
  onlineType: number
@@ -4490,16 +4479,14 @@ declare namespace ty.device {
4490
4479
  */
4491
4480
  deviceId: string
4492
4481
  /**
4493
- * 设备网络在线类型,位运算方式表示,多种在线状态复合,定义如下:
4494
- * bit 0 (1 << 0): Wi-Fi online,(云端在线 || 局域网在线),若只想判断云端在线,建议使用 bit:7
4495
- * bit 1 (1 << 1): Local online,局域网在线
4496
- * bit 2 (1 << 2): BLE online,蓝牙在线
4497
- * bit 3 (1 << 3): BLEMesh online,蓝牙mesh在线
4498
- * bit 4 (1 << 4): beacon online,beacon在线
4499
- * bit 5 (1 << 5): Dayu online,大禹在线
4500
- * bit 6 (1 << 6): System BT Online,系统蓝牙在线
4501
- * bit 7 (1 << 7): Cloud online,云端在线
4502
- * bit 8 (1 << 8): Matter online,Matter 本地在线
4482
+ * 设备网络在线类型
4483
+ * 设备在线类型,
4484
+ * Wi-Fi online 1 << 0
4485
+ * Local online 1 << 1
4486
+ * Bluetooth LE online 1 << 2
4487
+ * Bluetooth LE mesh online 1 << 3
4488
+ * beacon online 1 << 4
4489
+ * System BT Online 1<<6 (3.2.0新增类型 )
4503
4490
  * @since DeviceKit 1.2.6
4504
4491
  */
4505
4492
  onlineType: number
@@ -11159,7 +11146,8 @@ declare namespace ty.device {
11159
11146
  */
11160
11147
  export function checkOTAUpgradeStatus(params: {
11161
11148
  /**
11162
- * 设备id
11149
+ * deviceId
11150
+ * 设备 id
11163
11151
  * @since DeviceKit 2.2.0
11164
11152
  */
11165
11153
  deviceId: string
@@ -11168,7 +11156,8 @@ declare namespace ty.device {
11168
11156
  /** 接口调用成功的回调函数 */
11169
11157
  success?: (params: {
11170
11158
  /**
11171
- * 固件版本状态:0-已是最新版本、1-有待升级的固件、2-正在升级
11159
+ * status
11160
+ * 设备的固件版本状态 0已是最新版本、1有待升级的固件、2正在升级
11172
11161
  * @since DeviceKit 3.3.0
11173
11162
  */
11174
11163
  status: number
@@ -11197,7 +11186,8 @@ declare namespace ty.device {
11197
11186
  */
11198
11187
  export function otaStatus(params: {
11199
11188
  /**
11200
- * 设备id
11189
+ * deviceId
11190
+ * 设备 id
11201
11191
  * @since DeviceKit 4.2.0
11202
11192
  */
11203
11193
  deviceId: string
@@ -11206,7 +11196,8 @@ declare namespace ty.device {
11206
11196
  /** 接口调用成功的回调函数 */
11207
11197
  success?: (params: {
11208
11198
  /**
11209
- * 固件版本状态:0-已是最新版本、1-有待升级的固件、2-正在升级、3-成功、4-失败、5-等待唤醒、6-下载、7-超时、13-排队中、100-准备中
11199
+ * status
11200
+ * 设备的固件版本状态 0已是最新版本、1有待升级的固件、2正在升级、3成功、4失败、5等待唤醒、6下载、7超时、13排队中、100准备中
11210
11201
  * @since DeviceKit 4.2.0
11211
11202
  */
11212
11203
  status: number
@@ -11235,7 +11226,8 @@ declare namespace ty.device {
11235
11226
  */
11236
11227
  export function openOTAUpgrade(params: {
11237
11228
  /**
11238
- * 设备id
11229
+ * deviceId
11230
+ * 设备 id
11239
11231
  * @since DeviceKit 2.2.0
11240
11232
  */
11241
11233
  deviceId: string
@@ -12682,8 +12674,8 @@ declare namespace ty.device {
12682
12674
  */
12683
12675
  dpName: string
12684
12676
  /**
12677
+ * 状态
12685
12678
  * status
12686
- * 设备在多控组中的状态
12687
12679
  * @since DeviceKit 4.14.0
12688
12680
  */
12689
12681
  status: number
@@ -12756,19 +12748,16 @@ declare namespace ty.device {
12756
12748
  export interface MultiControlGroupParentRule {
12757
12749
  /**
12758
12750
  * ruleId
12759
- * 自动化规则ID
12760
12751
  * @since DeviceKit 4.14.0
12761
12752
  */
12762
12753
  ruleId: string
12763
12754
  /**
12764
12755
  * name
12765
- * 自动化规则名称
12766
12756
  * @since DeviceKit 4.14.0
12767
12757
  */
12768
12758
  name: string
12769
12759
  /**
12770
12760
  * dpList
12771
- * 规则关联的dp点列表
12772
12761
  * @since DeviceKit 4.14.0
12773
12762
  */
12774
12763
  dpList: MultiControlGroupParentRuleDpInfo[]
@@ -12790,7 +12779,6 @@ declare namespace ty.device {
12790
12779
  multiGroup?: MultiControlGroup
12791
12780
  /**
12792
12781
  * parentRules
12793
- * 关联的自动化规则列表
12794
12782
  * @since DeviceKit 4.14.0
12795
12783
  */
12796
12784
  parentRules: MultiControlGroupParentRule[]
@@ -12870,7 +12858,6 @@ declare namespace ty.device {
12870
12858
  iconUrl: string
12871
12859
  /**
12872
12860
  * inRule
12873
- * 是否在自动化规则中
12874
12861
  * @since DeviceKit 4.14.0
12875
12862
  */
12876
12863
  inRule: boolean
@@ -12948,19 +12935,16 @@ declare namespace ty.device {
12948
12935
  bindMaxValue: number
12949
12936
  /**
12950
12937
  * datapoints
12951
- * 设备dp点信息列表
12952
12938
  * @since DeviceKit 4.14.0
12953
12939
  */
12954
12940
  datapoints: MultiControlGroupDeviceDp[]
12955
12941
  /**
12956
12942
  * mcGroups
12957
- * 多控组列表
12958
12943
  * @since DeviceKit 4.14.0
12959
12944
  */
12960
12945
  mcGroups: MultiControlGroup[]
12961
12946
  /**
12962
12947
  * parentRules
12963
- * 关联的自动化规则列表
12964
12948
  * @since DeviceKit 4.14.0
12965
12949
  */
12966
12950
  parentRules: MultiControlGroupParentRule[]
@@ -12980,12 +12964,10 @@ declare namespace ty.device {
12980
12964
  export interface UpdateMultiControlDPInfo {
12981
12965
  /**
12982
12966
  * dpId
12983
- * dp点ID
12984
12967
  * @since DeviceKit 4.14.0
12985
12968
  */
12986
12969
  dpId: number
12987
12970
  /**
12988
- * devId
12989
12971
  * 设备id
12990
12972
  * @since DeviceKit 4.14.0
12991
12973
  */
@@ -13269,8 +13251,7 @@ declare namespace ty.device {
13269
13251
  */
13270
13252
  name: string
13271
13253
  /**
13272
- * schemaId
13273
- * dp点的schema标识
13254
+ * schema id
13274
13255
  * @since DeviceKit 4.14.0
13275
13256
  */
13276
13257
  schemaId: string
@@ -14562,18 +14543,7 @@ declare namespace ty.device {
14562
14543
  /** @since DeviceKit 2.1.4 */
14563
14544
  export interface DeviceOnlineTypeResponse {
14564
14545
  /**
14565
- * 设备网络在线类型,位运算方式表示,可使用位运算方式进行判断。
14566
- * 使用方式:(onlineType & (1 << bit)),例如:(onlineType & (1 << 0)) == true 表示设备 Wi-Fi 在线,(onlineType & (1 << 2)) == true 表示设备蓝牙在线
14567
- * 定义如下:
14568
- * bit 0 (1 << 0): Wi-Fi online,(云端在线 || 局域网在线),若只想判断云端在线,建议使用 bit:7
14569
- * bit 1 (1 << 1): Local online,局域网在线
14570
- * bit 2 (1 << 2): BLE online,蓝牙在线
14571
- * bit 3 (1 << 3): BLEMesh online,蓝牙mesh在线
14572
- * bit 4 (1 << 4): beacon online,beacon在线
14573
- * bit 5 (1 << 5): Dayu online,大禹在线
14574
- * bit 6 (1 << 6): System BT Online,系统蓝牙在线
14575
- * bit 7 (1 << 7): Cloud online,云端在线
14576
- * bit 8 (1 << 8): Matter online,Matter 本地在线
14546
+ * 设备网络在线类型
14577
14547
  * @since DeviceKit 2.1.4
14578
14548
  */
14579
14549
  onlineType: number
@@ -14819,16 +14789,14 @@ declare namespace ty.device {
14819
14789
  */
14820
14790
  deviceId: string
14821
14791
  /**
14822
- * 设备网络在线类型,位运算方式表示,多种在线状态复合,定义如下:
14823
- * bit 0 (1 << 0): Wi-Fi online,(云端在线 || 局域网在线),若只想判断云端在线,建议使用 bit:7
14824
- * bit 1 (1 << 1): Local online,局域网在线
14825
- * bit 2 (1 << 2): BLE online,蓝牙在线
14826
- * bit 3 (1 << 3): BLEMesh online,蓝牙mesh在线
14827
- * bit 4 (1 << 4): beacon online,beacon在线
14828
- * bit 5 (1 << 5): Dayu online,大禹在线
14829
- * bit 6 (1 << 6): System BT Online,系统蓝牙在线
14830
- * bit 7 (1 << 7): Cloud online,云端在线
14831
- * bit 8 (1 << 8): Matter online,Matter 本地在线
14792
+ * 设备网络在线类型
14793
+ * 设备在线类型,
14794
+ * Wi-Fi online 1 << 0
14795
+ * Local online 1 << 1
14796
+ * Bluetooth LE online 1 << 2
14797
+ * Bluetooth LE mesh online 1 << 3
14798
+ * beacon online 1 << 4
14799
+ * System BT Online 1<<6 (3.2.0新增类型 )
14832
14800
  * @since DeviceKit 1.2.6
14833
14801
  */
14834
14802
  onlineType: number
@@ -15126,16 +15094,11 @@ declare namespace ty.device {
15126
15094
  */
15127
15095
  deviceId: string
15128
15096
  /**
15129
- * 设备网络在线类型,位运算方式表示,多种在线状态复合,定义如下:
15130
- * bit 0 (1 << 0): Wi-Fi online,(云端在线 || 局域网在线),若只想判断云端在线,建议使用 bit:7
15131
- * bit 1 (1 << 1): Local online,局域网在线
15132
- * bit 2 (1 << 2): BLE online,蓝牙在线
15133
- * bit 3 (1 << 3): BLEMesh online,蓝牙mesh在线
15134
- * bit 4 (1 << 4): beacon online,beacon在线
15135
- * bit 5 (1 << 5): Dayu online,大禹在线
15136
- * bit 6 (1 << 6): System BT Online,系统蓝牙在线
15137
- * bit 7 (1 << 7): Cloud online,云端在线
15138
- * bit 8 (1 << 8): Matter online,Matter 本地在线
15097
+ * 设备在线类型(预留,后期使用)
15098
+ * Wi-Fi online 1 << 0
15099
+ * Local online 1 << 1
15100
+ * Bluetooth LE online 1 << 2
15101
+ * Bluetooth LE mesh online 1 << 3
15139
15102
  * @since DeviceKit 1.2.6
15140
15103
  */
15141
15104
  onlineType: number
@@ -19671,7 +19634,8 @@ declare namespace ty.device {
19671
19634
  /** @since DeviceKit 2.2.0 */
19672
19635
  export interface CheckOTAUpgradeStatusParams {
19673
19636
  /**
19674
- * 设备id
19637
+ * deviceId
19638
+ * 设备 id
19675
19639
  * @since DeviceKit 2.2.0
19676
19640
  */
19677
19641
  deviceId: string
@@ -19680,7 +19644,8 @@ declare namespace ty.device {
19680
19644
  /** @since DeviceKit 2.2.0 */
19681
19645
  export interface CheckOTAUpgradeStatusResponse {
19682
19646
  /**
19683
- * 固件版本状态:0-已是最新版本、1-有待升级的固件、2-正在升级
19647
+ * status
19648
+ * 设备的固件版本状态 0已是最新版本、1有待升级的固件、2正在升级
19684
19649
  * @since DeviceKit 2.2.0
19685
19650
  */
19686
19651
  status: number
@@ -19689,7 +19654,8 @@ declare namespace ty.device {
19689
19654
  /** @since DeviceKit 4.2.0 */
19690
19655
  export interface OtaStatusResponse {
19691
19656
  /**
19692
- * 固件版本状态:0-已是最新版本、1-有待升级的固件、2-正在升级、3-成功、4-失败、5-等待唤醒、6-下载、7-超时、13-排队中、100-准备中
19657
+ * status
19658
+ * 设备的固件版本状态 0已是最新版本、1有待升级的固件、2正在升级、3成功、4失败、5等待唤醒、6下载、7超时、13排队中、100准备中
19693
19659
  * @since DeviceKit 4.2.0
19694
19660
  */
19695
19661
  status: number
@@ -19698,7 +19664,8 @@ declare namespace ty.device {
19698
19664
  /** @since DeviceKit 2.2.0 */
19699
19665
  export interface OpenOTAUpgradeParams {
19700
19666
  /**
19701
- * 设备id
19667
+ * deviceId
19668
+ * 设备 id
19702
19669
  * @since DeviceKit 2.2.0
19703
19670
  */
19704
19671
  deviceId: string
@@ -19707,12 +19674,14 @@ declare namespace ty.device {
19707
19674
  /** @since DeviceKit 4.2.0 */
19708
19675
  export interface OtaCompletedParams {
19709
19676
  /**
19710
- * 设备id
19677
+ * deviceId
19678
+ * 设备 id
19711
19679
  * @since DeviceKit 4.2.0
19712
19680
  */
19713
19681
  deviceId: string
19714
19682
  /**
19715
- * 升级结果:0-成功、1-失败、2-超时
19683
+ * result
19684
+ * 结果 0成功、1失败、2超时
19716
19685
  * @since DeviceKit 4.2.0
19717
19686
  */
19718
19687
  result: number
@@ -19744,7 +19713,7 @@ declare namespace ty.device {
19744
19713
  /** @since DeviceKit 4.20.1 */
19745
19714
  export interface CheckRebootAbilityResponse {
19746
19715
  /**
19747
- * 是否支持远程重启
19716
+ * 是否支持
19748
19717
  * @since DeviceKit 4.20.1
19749
19718
  */
19750
19719
  result: boolean
@@ -19787,7 +19756,7 @@ declare namespace ty.device {
19787
19756
  */
19788
19757
  contextId: string
19789
19758
  /**
19790
- * 需要添加的定时重启配置
19759
+ * 定时
19791
19760
  * @since DeviceKit 4.20.1
19792
19761
  */
19793
19762
  timer: AddTimer
@@ -19835,7 +19804,7 @@ declare namespace ty.device {
19835
19804
  */
19836
19805
  contextId: string
19837
19806
  /**
19838
- * 需要更新的定时重启配置
19807
+ * 定时
19839
19808
  * @since DeviceKit 4.20.1
19840
19809
  */
19841
19810
  timer: UpdateTimer
@@ -19878,7 +19847,7 @@ declare namespace ty.device {
19878
19847
  /** @since DeviceKit 4.20.1 */
19879
19848
  export interface GetRebootTimerResponse {
19880
19849
  /**
19881
- * 定时重启配置信息
19850
+ * 定时
19882
19851
  * @since DeviceKit 4.20.1
19883
19852
  */
19884
19853
  timer: Timer
@@ -20462,7 +20431,7 @@ declare namespace ty.device {
20462
20431
  /** 接口调用成功的回调函数 */
20463
20432
  success?: (params: {
20464
20433
  /**
20465
- * 是否支持远程重启
20434
+ * 是否支持
20466
20435
  * @since DeviceKit 4.20.1
20467
20436
  */
20468
20437
  result: boolean
@@ -20518,7 +20487,7 @@ declare namespace ty.device {
20518
20487
  */
20519
20488
  addRebootTimer(params: {
20520
20489
  /**
20521
- * 需要添加的定时重启配置
20490
+ * 定时
20522
20491
  * @since DeviceKit 4.20.1
20523
20492
  */
20524
20493
  timer: AddTimer
@@ -20556,7 +20525,7 @@ declare namespace ty.device {
20556
20525
  */
20557
20526
  updateRebootTimer(params: {
20558
20527
  /**
20559
- * 需要更新的定时重启配置
20528
+ * 定时
20560
20529
  * @since DeviceKit 4.20.1
20561
20530
  */
20562
20531
  timer: UpdateTimer
@@ -20581,7 +20550,7 @@ declare namespace ty.device {
20581
20550
  }): void
20582
20551
 
20583
20552
  /**
20584
- * 获取定时重启信息
20553
+ * 更新定时重启
20585
20554
  * @public
20586
20555
  * @since DeviceKit 4.20.1
20587
20556
  * @platform iOS Android
@@ -20592,7 +20561,7 @@ declare namespace ty.device {
20592
20561
  /** 接口调用成功的回调函数 */
20593
20562
  success?: (params: {
20594
20563
  /**
20595
- * 定时重启配置信息
20564
+ * 定时
20596
20565
  * @since DeviceKit 4.20.1
20597
20566
  */
20598
20567
  timer: Timer
@@ -95,9 +95,7 @@ declare namespace ty.groupcitest {
95
95
  * @example Demo
96
96
  * ```tsx
97
97
  * ty.hasParamsMethod({
98
- * paramsBean: {
99
- * testDeviceID: 123,
100
- * },
98
+ * testDeviceID: 123,
101
99
  * success(data) {
102
100
  * console.log("advanced", data.testDeviceID);
103
101
  * },