@ray-js/api 1.7.70 → 1.7.71

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 (154) hide show
  1. package/@types/AIKit.d.ts +5509 -610
  2. package/@types/AIStreamKit.d.ts +2641 -0
  3. package/@types/AVideoKit.d.ts +1827 -0
  4. package/@types/BaseKit.d.ts +8682 -1893
  5. package/@types/BizKit.d.ts +6639 -1038
  6. package/@types/CategoryCommonBizKit.d.ts +1459 -0
  7. package/@types/CommunityKit.d.ts +154 -0
  8. package/@types/DeviceKit.d.ts +18475 -5662
  9. package/@types/GroupCITestKit.d.ts +651 -0
  10. package/@types/HealthKit.d.ts +2290 -357
  11. package/@types/HomeKit.d.ts +4068 -182
  12. package/@types/IPCKit.d.ts +4327 -1227
  13. package/@types/LightKit.d.ts +125 -0
  14. package/@types/MapKit.d.ts +1560 -204
  15. package/@types/MediaKit.d.ts +136 -16
  16. package/@types/MediaPlayerKit.d.ts +47 -0
  17. package/@types/MiniKit.d.ts +2976 -628
  18. package/@types/OutdoorKit.d.ts +1337 -24
  19. package/@types/P2PKit.d.ts +622 -103
  20. package/@types/PayKit.d.ts +115 -0
  21. package/@types/PlayNetKit.d.ts +3454 -1309
  22. package/@types/SweeperKit.d.ts +154 -0
  23. package/@types/ThirdAuthKit.d.ts +324 -0
  24. package/@types/ThirdPartyDeviceKit.d.ts +410 -0
  25. package/@types/WearKit.d.ts +10177 -375
  26. package/@types/gateway.d.ts +349 -61
  27. package/@types/health.d.ts +486 -304
  28. package/lib/AIKit-1.6.0.d.ts +265 -41
  29. package/lib/AIKit-1.6.0.js +374 -120
  30. package/lib/BaseKit-3.17.7.d.ts +704 -0
  31. package/lib/BaseKit-3.17.7.js +720 -1
  32. package/lib/BizKit-4.10.4.d.ts +336 -0
  33. package/lib/BizKit-4.10.4.js +342 -5
  34. package/lib/DeviceKit-4.13.1.d.ts +996 -0
  35. package/lib/DeviceKit-4.13.1.js +1247 -249
  36. package/lib/HealthKit-6.5.0.d.ts +210 -44
  37. package/lib/HealthKit-6.5.0.js +295 -128
  38. package/lib/HomeKit-3.1.4.d.ts +20 -6
  39. package/lib/HomeKit-3.1.4.js +29 -14
  40. package/lib/IPCKit-6.4.5.d.ts +375 -77
  41. package/lib/IPCKit-6.4.5.js +525 -228
  42. package/lib/MapKit-3.4.13.d.ts +70 -16
  43. package/lib/MapKit-3.4.13.js +98 -47
  44. package/lib/MediaKit-3.4.1.d.ts +5 -3
  45. package/lib/MediaKit-3.4.1.js +7 -6
  46. package/lib/MiniKit-3.14.1.d.ts +300 -0
  47. package/lib/MiniKit-3.14.1.js +302 -0
  48. package/lib/OutdoorKit-1.0.4.d.ts +55 -13
  49. package/lib/OutdoorKit-1.0.4.js +78 -35
  50. package/lib/P2PKit-2.0.3.d.ts +125 -27
  51. package/lib/P2PKit-2.0.3.js +175 -78
  52. package/lib/PlayNetKit-1.3.30.d.ts +290 -60
  53. package/lib/PlayNetKit-1.3.30.js +407 -176
  54. package/lib/WearKit-1.1.6.d.ts +125 -27
  55. package/lib/WearKit-1.1.6.js +176 -77
  56. package/lib/all-kits.d.ts +10 -10
  57. package/lib/all-kits.js +10 -10
  58. package/lib/cloud/core.d.ts +31 -1
  59. package/lib/cloud/core.js +31 -1
  60. package/lib/cloud/device.d.ts +155 -24
  61. package/lib/cloud/device.js +153 -22
  62. package/lib/cloud/gateway.d.ts +254 -0
  63. package/lib/cloud/gateway.js +269 -9
  64. package/lib/cloud/health.d.ts +1 -0
  65. package/lib/cloud/health.js +121 -0
  66. package/lib/cloud/interface.d.ts +222 -44
  67. package/lib/cloud/interface.js +15 -2
  68. package/lib/cloud/laser-clean/deleteCleaningRecord/index.d.ts +27 -0
  69. package/lib/cloud/laser-clean/deleteCleaningRecord/index.js +28 -0
  70. package/lib/cloud/laser-clean/deleteCleaningRecord/type.d.ts +7 -0
  71. package/lib/cloud/laser-clean/deleteCleaningRecord/type.js +1 -0
  72. package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.d.ts +27 -0
  73. package/lib/cloud/laser-clean/deleteGyroCleanRecord/index.js +28 -0
  74. package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.d.ts +7 -0
  75. package/lib/cloud/laser-clean/deleteGyroCleanRecord/type.js +1 -0
  76. package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.d.ts +27 -0
  77. package/lib/cloud/laser-clean/deleteMultipleMapFiles/index.js +28 -0
  78. package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.d.ts +7 -0
  79. package/lib/cloud/laser-clean/deleteMultipleMapFiles/type.js +1 -0
  80. package/lib/cloud/laser-clean/getCleaningRecords/index.d.ts +30 -0
  81. package/lib/cloud/laser-clean/getCleaningRecords/index.js +31 -0
  82. package/lib/cloud/laser-clean/getCleaningRecords/type.d.ts +39 -0
  83. package/lib/cloud/laser-clean/getCleaningRecords/type.js +1 -0
  84. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.d.ts +29 -0
  85. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/index.js +30 -0
  86. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.d.ts +30 -0
  87. package/lib/cloud/laser-clean/getGyroCleanRecordDetail/type.js +1 -0
  88. package/lib/cloud/laser-clean/getGyroCleanRecords/index.d.ts +29 -0
  89. package/lib/cloud/laser-clean/getGyroCleanRecords/index.js +30 -0
  90. package/lib/cloud/laser-clean/getGyroCleanRecords/type.d.ts +35 -0
  91. package/lib/cloud/laser-clean/getGyroCleanRecords/type.js +1 -0
  92. package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.d.ts +28 -0
  93. package/lib/cloud/laser-clean/getGyroLatestCleanMap/index.js +29 -0
  94. package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.d.ts +28 -0
  95. package/lib/cloud/laser-clean/getGyroLatestCleanMap/type.js +1 -0
  96. package/lib/cloud/laser-clean/getMultipleMapFiles/index.d.ts +24 -0
  97. package/lib/cloud/laser-clean/getMultipleMapFiles/index.js +25 -0
  98. package/lib/cloud/laser-clean/getMultipleMapFiles/type.d.ts +29 -0
  99. package/lib/cloud/laser-clean/getMultipleMapFiles/type.js +1 -0
  100. package/lib/cloud/laser-clean/getSweeperStorageConfig/index.d.ts +24 -0
  101. package/lib/cloud/laser-clean/getSweeperStorageConfig/index.js +25 -0
  102. package/lib/cloud/laser-clean/getSweeperStorageConfig/type.d.ts +26 -0
  103. package/lib/cloud/laser-clean/getSweeperStorageConfig/type.js +1 -0
  104. package/lib/cloud/laser-clean/getVoiceList/index.d.ts +28 -0
  105. package/lib/cloud/laser-clean/getVoiceList/index.js +29 -0
  106. package/lib/cloud/laser-clean/getVoiceList/type.d.ts +48 -0
  107. package/lib/cloud/laser-clean/getVoiceList/type.js +1 -0
  108. package/lib/cloud/laser-clean/index.d.ts +1 -1
  109. package/lib/cloud/laser-clean/index.js +1 -1
  110. package/lib/cloud/laser-clean/map.d.ts +5 -7
  111. package/lib/cloud/laser-clean/map.js +5 -9
  112. package/lib/cloud/laser-clean/record.d.ts +5 -6
  113. package/lib/cloud/laser-clean/record.js +5 -7
  114. package/lib/cloud/laser-clean/renameHistoryMap/index.d.ts +28 -0
  115. package/lib/cloud/laser-clean/renameHistoryMap/index.js +29 -0
  116. package/lib/cloud/laser-clean/renameHistoryMap/type.d.ts +9 -0
  117. package/lib/cloud/laser-clean/renameHistoryMap/type.js +1 -0
  118. package/lib/cloud/laser-clean/voice.d.ts +1 -3
  119. package/lib/cloud/laser-clean/voice.js +1 -4
  120. package/lib/cloud/linkage.d.ts +271 -53
  121. package/lib/cloud/linkage.js +256 -51
  122. package/lib/cloud/remoteGroup.d.ts +37 -0
  123. package/lib/cloud/remoteGroup.js +37 -0
  124. package/lib/cloud/timer.d.ts +104 -26
  125. package/lib/cloud/timer.js +104 -26
  126. package/lib/getApp/index.thing.d.ts +47 -1
  127. package/lib/getApp/index.thing.js +40 -2
  128. package/lib/getBoundingClientRect/index.thing.d.ts +101 -1
  129. package/lib/getBoundingClientRect/index.thing.js +59 -0
  130. package/lib/getCurrentPages/index.thing.d.ts +40 -15
  131. package/lib/getCurrentPages/index.thing.js +36 -15
  132. package/lib/getCustomConfig/index.d.ts +5 -2
  133. package/lib/getCustomConfig/index.thing.d.ts +68 -2
  134. package/lib/getCustomConfig/index.thing.js +62 -0
  135. package/lib/getCustomConfig/index.wechat.d.ts +5 -2
  136. package/lib/getCustomConfig/type.d.ts +26 -15
  137. package/lib/getElementById/index.thing.d.ts +42 -1
  138. package/lib/getElementById/index.thing.js +40 -0
  139. package/lib/index.d.ts +3 -0
  140. package/lib/index.js +4 -2
  141. package/lib/nativeRouters/common.d.ts +8 -0
  142. package/lib/nativeRouters/device.d.ts +137 -5
  143. package/lib/nativeRouters/device.js +138 -6
  144. package/lib/nativeRouters/gw.d.ts +58 -8
  145. package/lib/nativeRouters/gw.js +57 -8
  146. package/lib/nativeRouters/outdoors.d.ts +16 -3
  147. package/lib/nativeRouters/outdoors.js +16 -3
  148. package/lib/nativeRouters/remoteGroup.d.ts +23 -0
  149. package/lib/nativeRouters/remoteGroup.js +23 -0
  150. package/lib/nativeRouters/root.d.ts +19 -0
  151. package/lib/nativeRouters/root.js +17 -0
  152. package/lib/openGroupCreate/index.d.ts +45 -0
  153. package/lib/openGroupCreate/index.js +32 -0
  154. package/package.json +5 -5
@@ -0,0 +1,651 @@
1
+ /**
2
+ * GroupCITestKit
3
+ *
4
+ * @version 1.2.109
5
+ */
6
+ declare namespace ty.groupcitest {
7
+ /**
8
+ * 富文档方法,覆盖公开注释、多语言、示例、错误码和外链文本。
9
+ * @description.en Public method case with multilingual docs and file-backed assets.
10
+ * @public
11
+ * @since @ray-js/smart-ui 1.0.0
12
+ * @since GroupCITestKit 1.2.101
13
+ * @remarks 这个方法用于验证 method 级别的 decorator 文档字段。
14
+ * @remarksEn This is the English remarks content.
15
+ * It verifies `@remarksEn` file loading and final rendering.
16
+ * @example 基础一点的
17
+ * ```tsx
18
+ * ty.richDocMethod({ mode: "basic" });
19
+ * ```
20
+ * @example 完整一点的
21
+ * ```tsx
22
+ * ty.richDocMethod({
23
+ * mode: "basic",
24
+ * enabled: true,
25
+ * success(data) {
26
+ * console.log(data.resultCode);
27
+ * },
28
+ * fail(err) {
29
+ * console.error(err);
30
+ * },
31
+ * });
32
+ * ```
33
+ * @see https://developer.tuya.com/
34
+ * @platform iOS Android
35
+ * @error {DEMO_ERROR} 演示错误码描述,验证 `@error` 的 `file:` 外链文本会进入最终产物。
36
+ * @error {DEMO_TIMEOUT} 调用超时,请稍后重试。
37
+ */
38
+ export function richDocMethod(params: {
39
+ /**
40
+ * 模式字段。
41
+ * @description.en Mode field.
42
+ * @since GroupCITestKit 1.2.101
43
+ */
44
+ mode: string;
45
+ /**
46
+ * 是否启用默认行为。
47
+ * @description.en Whether to enable the default behavior.
48
+ * @since GroupCITestKit 1.2.101
49
+ * @defaultValue true
50
+ */
51
+ enabled?: boolean;
52
+ /**
53
+ * 旧文本字段。
54
+ * @description.en Legacy text field.
55
+ * @since GroupCITestKit 1.2.101
56
+ * @defaultValue "legacy"
57
+ * @deprecated 请改用 richDocMethod 或新的默认字段,旧字段将在后续版本移除。
58
+ */
59
+ legacyText?: string;
60
+ /** complete 完成回调(成功、失败都会触发) */
61
+ complete?: () => void;
62
+ /** success 成功回调 */
63
+ success?: (params: {
64
+ /**
65
+ * 结果码。
66
+ * @description.en Result code.
67
+ * @since GroupCITestKit 1.2.101
68
+ */
69
+ resultCode: string;
70
+ }) => void;
71
+ /** fail 失败回调 */
72
+ fail?: (params: {
73
+ /** 错误信息 */
74
+ errorMsg: string;
75
+ /** 错误码 */
76
+ errorCode: string | number;
77
+ /** 错误扩展 */
78
+ innerError: {
79
+ /** 错误扩展码 */
80
+ errorCode: string | number;
81
+ /** 错误扩展信息 */
82
+ errorMsg: string;
83
+ };
84
+ }) => void;
85
+ }): void;
86
+
87
+ /**
88
+ * 历史方法案例,用于验证英文描述外链、示例文件外链和动态 since 推断。
89
+ * @description.en This type verifies file-backed English descriptions.
90
+ * The same text should appear in metadata and declaration output.
91
+ * @public
92
+ * @since GroupCITestKit 1.0.0
93
+ * @remarks 这个历史方法不写版本标签,用于验证方法级动态 since。
94
+ * @remarksEn This existing method intentionally omits an explicit version tag so the generator can infer it from history.
95
+ * @example Demo
96
+ * ```tsx
97
+ * ty.hasParamsMethod({
98
+ * paramsBean: {
99
+ * testDeviceID: 123,
100
+ * },
101
+ * success(data) {
102
+ * console.log("advanced", data.testDeviceID);
103
+ * },
104
+ * fail(err) {
105
+ * console.error("advanced", err);
106
+ * },
107
+ * });
108
+ * ```
109
+ * @see https://developer.tuya.com/cn/docs/iot
110
+ * @platform iOS Android Harmony
111
+ */
112
+ export function hasParamsMethod(params: {
113
+ /**
114
+ * deviceID,ConstantsBean中的类型均可定义。
115
+ * @description.en Device ID used for history since verification.
116
+ * @since GroupCITestKit 1.0.0
117
+ */
118
+ testDeviceID: number;
119
+ /** complete 完成回调(成功、失败都会触发) */
120
+ complete?: () => void;
121
+ /** success 成功回调 */
122
+ success?: (params: {
123
+ /**
124
+ * deviceID,ConstantsBean中的类型均可定义。
125
+ * @description.en Device ID returned from callback.
126
+ * @since GroupCITestKit 1.0.0
127
+ */
128
+ testDeviceID: number;
129
+ }) => void;
130
+ /** fail 失败回调 */
131
+ fail?: (params: {
132
+ /** 错误信息 */
133
+ errorMsg: string;
134
+ /** 错误码 */
135
+ errorCode: string | number;
136
+ /** 错误扩展 */
137
+ innerError: {
138
+ /** 错误扩展码 */
139
+ errorCode: string | number;
140
+ /** 错误扩展信息 */
141
+ errorMsg: string;
142
+ };
143
+ }) => void;
144
+ }): void;
145
+
146
+ /**
147
+ * 有入参有回调(无数据模型返回)的方法声明。
148
+ * @public
149
+ * @since GroupCITestKit 1.0.0
150
+ * @platform iOS Android Harmony
151
+ */
152
+ export function hasParamsNoCallbackModelMethod(params: {
153
+ /**
154
+ * deviceID,ConstantsBean中的类型均可定义。
155
+ * @description.en Device ID used for history since verification.
156
+ * @since GroupCITestKit 1.0.0
157
+ */
158
+ testDeviceID: number;
159
+ /** complete 完成回调(成功、失败都会触发) */
160
+ complete?: () => void;
161
+ /** success 成功回调 */
162
+ success?: (params: null) => void;
163
+ /** fail 失败回调 */
164
+ fail?: (params: {
165
+ /** 错误信息 */
166
+ errorMsg: string;
167
+ /** 错误码 */
168
+ errorCode: string | number;
169
+ /** 错误扩展 */
170
+ innerError: {
171
+ /** 错误扩展码 */
172
+ errorCode: string | number;
173
+ /** 错误扩展信息 */
174
+ errorMsg: string;
175
+ };
176
+ }) => void;
177
+ }): void;
178
+
179
+ /**
180
+ * 有入参有回调(boolean返回)的方法声明。
181
+ * @public
182
+ * @since GroupCITestKit 1.0.0
183
+ * @platform iOS Android
184
+ */
185
+ export function hasParamsBooleanModelMethod(params: {
186
+ /**
187
+ * deviceID,ConstantsBean中的类型均可定义。
188
+ * @description.en Device ID used for history since verification.
189
+ * @since GroupCITestKit 1.0.0
190
+ */
191
+ testDeviceID: number;
192
+ /** complete 完成回调(成功、失败都会触发) */
193
+ complete?: () => void;
194
+ /** success 成功回调 */
195
+ success?: (params: boolean) => void;
196
+ /** fail 失败回调 */
197
+ fail?: (params: {
198
+ /** 错误信息 */
199
+ errorMsg: string;
200
+ /** 错误码 */
201
+ errorCode: string | number;
202
+ /** 错误扩展 */
203
+ innerError: {
204
+ /** 错误扩展码 */
205
+ errorCode: string | number;
206
+ /** 错误扩展信息 */
207
+ errorMsg: string;
208
+ };
209
+ }) => void;
210
+ }): void;
211
+
212
+ /**
213
+ * 有入参有回调(string返回)的方法声明。
214
+ * @public
215
+ * @since GroupCITestKit 1.0.0
216
+ * @platform iOS Android Harmony
217
+ */
218
+ export function hasParamsStringModelMethod(params: {
219
+ /**
220
+ * deviceID,ConstantsBean中的类型均可定义。
221
+ * @description.en Device ID used for history since verification.
222
+ * @since GroupCITestKit 1.0.0
223
+ */
224
+ testDeviceID: number;
225
+ /** complete 完成回调(成功、失败都会触发) */
226
+ complete?: () => void;
227
+ /** success 成功回调 */
228
+ success?: (params: string) => void;
229
+ /** fail 失败回调 */
230
+ fail?: (params: {
231
+ /** 错误信息 */
232
+ errorMsg: string;
233
+ /** 错误码 */
234
+ errorCode: string | number;
235
+ /** 错误扩展 */
236
+ innerError: {
237
+ /** 错误扩展码 */
238
+ errorCode: string | number;
239
+ /** 错误扩展信息 */
240
+ errorMsg: string;
241
+ };
242
+ }) => void;
243
+ }): void;
244
+
245
+ /**
246
+ * 有入参有回调(Integer返回)的方法声明。
247
+ * @public
248
+ * @since GroupCITestKit 1.0.0
249
+ * @platform iOS Android
250
+ */
251
+ export function hasParamsIntegerModelMethod(params: {
252
+ /**
253
+ * deviceID,ConstantsBean中的类型均可定义。
254
+ * @description.en Device ID used for history since verification.
255
+ * @since GroupCITestKit 1.0.0
256
+ */
257
+ testDeviceID: number;
258
+ /** complete 完成回调(成功、失败都会触发) */
259
+ complete?: () => void;
260
+ /** success 成功回调 */
261
+ success?: (params: number) => void;
262
+ /** fail 失败回调 */
263
+ fail?: (params: {
264
+ /** 错误信息 */
265
+ errorMsg: string;
266
+ /** 错误码 */
267
+ errorCode: string | number;
268
+ /** 错误扩展 */
269
+ innerError: {
270
+ /** 错误扩展码 */
271
+ errorCode: string | number;
272
+ /** 错误扩展信息 */
273
+ errorMsg: string;
274
+ };
275
+ }) => void;
276
+ }): void;
277
+
278
+ /**
279
+ * 有入参有回调(Float返回)的方法声明。
280
+ * @public
281
+ * @since GroupCITestKit 1.0.0
282
+ * @platform iOS Android Harmony
283
+ */
284
+ export function hasParamsFloatModelMethod(params: {
285
+ /**
286
+ * deviceID,ConstantsBean中的类型均可定义。
287
+ * @description.en Device ID used for history since verification.
288
+ * @since GroupCITestKit 1.0.0
289
+ */
290
+ testDeviceID: number;
291
+ /** complete 完成回调(成功、失败都会触发) */
292
+ complete?: () => void;
293
+ /** success 成功回调 */
294
+ success?: (params: number) => void;
295
+ /** fail 失败回调 */
296
+ fail?: (params: {
297
+ /** 错误信息 */
298
+ errorMsg: string;
299
+ /** 错误码 */
300
+ errorCode: string | number;
301
+ /** 错误扩展 */
302
+ innerError: {
303
+ /** 错误扩展码 */
304
+ errorCode: string | number;
305
+ /** 错误扩展信息 */
306
+ errorMsg: string;
307
+ };
308
+ }) => void;
309
+ }): void;
310
+
311
+ /**
312
+ * 无入参有回调(有数据模型返回)的方法声明。
313
+ * @public
314
+ * @since GroupCITestKit 1.0.0
315
+ * @platform iOS Android
316
+ * @deprecated 请改用 richDocMethod 或新的默认字段,旧字段将在后续版本移除。
317
+ */
318
+ export function noParamsMethod(params?: {
319
+ /** complete 完成回调(成功、失败都会触发) */
320
+ complete?: () => void;
321
+ /** success 成功回调 */
322
+ success?: (params: {
323
+ /**
324
+ * deviceID,ConstantsBean中的类型均可定义。
325
+ * @description.en Device ID returned from callback.
326
+ * @since GroupCITestKit 1.0.0
327
+ */
328
+ testDeviceID: number;
329
+ }) => void;
330
+ /** fail 失败回调 */
331
+ fail?: (params: {
332
+ /** 错误信息 */
333
+ errorMsg: string;
334
+ /** 错误码 */
335
+ errorCode: string | number;
336
+ /** 错误扩展 */
337
+ innerError: {
338
+ /** 错误扩展码 */
339
+ errorCode: string | number;
340
+ /** 错误扩展信息 */
341
+ errorMsg: string;
342
+ };
343
+ }) => void;
344
+ }): void;
345
+
346
+ /**
347
+ * 无入参有回调(无数据模型返回)的方法声明。
348
+ * @public
349
+ * @since GroupCITestKit 1.0.0
350
+ * @platform iOS Android Harmony
351
+ */
352
+ export function noParamsNoCallbackModelMethod(params?: {
353
+ /** complete 完成回调(成功、失败都会触发) */
354
+ complete?: () => void;
355
+ /** success 成功回调 */
356
+ success?: (params: {
357
+ /**
358
+ * deviceID,ConstantsBean中的类型均可定义。
359
+ * @description.en Device ID returned from callback.
360
+ * @since GroupCITestKit 1.0.0
361
+ */
362
+ testDeviceID: number;
363
+ }) => void;
364
+ /** fail 失败回调 */
365
+ fail?: (params: {
366
+ /** 错误信息 */
367
+ errorMsg: string;
368
+ /** 错误码 */
369
+ errorCode: string | number;
370
+ /** 错误扩展 */
371
+ innerError: {
372
+ /** 错误扩展码 */
373
+ errorCode: string | number;
374
+ /** 错误扩展信息 */
375
+ errorMsg: string;
376
+ };
377
+ }) => void;
378
+ }): void;
379
+
380
+ /**
381
+ * Event事件声明,Event事件命名均已on开头。
382
+ * @public
383
+ * @since GroupCITestKit 1.2.100
384
+ * @platform iOS Android Harmony
385
+ */
386
+ export function onTestEvent(listener: (params: EventBodyBean_jEOOSU) => void): void;
387
+
388
+ /**
389
+ * Event事件声明,Event事件命名均已on开头。
390
+ * @public
391
+ * @since GroupCITestKit 1.2.100
392
+ * @platform iOS Android Harmony
393
+ */
394
+ export function offTestEvent(listener: (params: EventBodyBean_jEOOSU) => void): void;
395
+
396
+ /**
397
+ * RegisterEvent事件声明,RegisterEvent事件声明由两个方法组成。
398
+ * @public
399
+ * @since GroupCITestKit 1.2.100
400
+ * @platform iOS Android Harmony
401
+ */
402
+ export function onTestRegisterEventMethod(
403
+ listener: (params: {
404
+ /** url */
405
+ url: string;
406
+ }) => void,
407
+ ): void;
408
+
409
+ /**
410
+ * 历史入参模型,用于验证属性级动态 since。
411
+ * @description.en Historical params bean used to verify inferred property since.
412
+ */
413
+ export interface ParamsBean_k1LFBO {
414
+ /**
415
+ * deviceID,ConstantsBean中的类型均可定义。
416
+ * @description.en Device ID used for history since verification.
417
+ * @since GroupCITestKit 1.0.0
418
+ */
419
+ testDeviceID: number;
420
+ }
421
+
422
+ /** 常量定义集合。 */
423
+ export interface ConstantsBean_z1PxNj {
424
+ /** Integer 类型,属性版本号 d.Variable('2.0.0')。 */
425
+ testInt: number;
426
+ /**
427
+ * Integer 类型。
428
+ * @defaultValue 9
429
+ */
430
+ testInt2?: number;
431
+ /** Long 类型。 */
432
+ testLong: number;
433
+ /**
434
+ * Long 类型。
435
+ * @defaultValue 123
436
+ */
437
+ testLong2?: number;
438
+ /** Float 类型。 */
439
+ testFloat: number;
440
+ /**
441
+ * Float 类型。
442
+ * @defaultValue 1.02
443
+ */
444
+ testFloat2?: number;
445
+ /** Double 类型。 */
446
+ testDouble: number;
447
+ /**
448
+ * Double 类型。
449
+ * @defaultValue 1.02123213
450
+ */
451
+ testDouble2?: number;
452
+ /** Array 类型。 */
453
+ testArray: string[];
454
+ /**
455
+ * Array 类型。
456
+ * @defaultValue ["abc", "def", "123"]
457
+ */
458
+ testArray2?: string[];
459
+ /** Array 类型。 */
460
+ testArray3: ParamsBean_k1LFBO[];
461
+ /** Map 类型。 */
462
+ testMap: Record<string, string>;
463
+ /** Map 类型。 */
464
+ testMap2: Record<string, any>;
465
+ /** 自定义对象类型。 */
466
+ testBean: ParamsBean_k1LFBO;
467
+ /**
468
+ * 默认开关,验证 defaultValue 自动提取。
469
+ * @defaultValue false
470
+ */
471
+ testEnabled?: boolean;
472
+ /**
473
+ * 已废弃字段。
474
+ * @defaultValue "legacy"
475
+ * @deprecated 请改用 richDocMethod 或新的默认字段,旧字段将在后续版本移除。
476
+ */
477
+ legacyField?: string;
478
+ }
479
+
480
+ /**
481
+ * 富文档入参模型,用于验证类型级别的别名、版本和外链备注。
482
+ * @description.en This type verifies file-backed English descriptions.
483
+ * The same text should appear in metadata and declaration output.
484
+ * @alias HarmonyRichDocParams
485
+ * @since @ray-js/ray 3.0.0
486
+ * @example Demo
487
+ * ```tsx
488
+ * ty.richDocMethod({
489
+ * mode: "basic",
490
+ * enabled: true,
491
+ * success(data) {
492
+ * console.log(data.resultCode);
493
+ * },
494
+ * fail(err) {
495
+ * console.error(err);
496
+ * },
497
+ * });
498
+ * ```
499
+ * @see https://developer.tuya.com/cn/docs/iot
500
+ */
501
+ export interface RichDocParamsBean_Vlyd29 {
502
+ /**
503
+ * 模式字段。
504
+ * @description.en Mode field.
505
+ * @since GroupCITestKit 1.2.101
506
+ */
507
+ mode: string;
508
+ /**
509
+ * 是否启用默认行为。
510
+ * @description.en Whether to enable the default behavior.
511
+ * @since GroupCITestKit 1.2.101
512
+ * @defaultValue true
513
+ */
514
+ enabled?: boolean;
515
+ /**
516
+ * 旧文本字段。
517
+ * @description.en Legacy text field.
518
+ * @since GroupCITestKit 1.2.101
519
+ * @defaultValue "legacy"
520
+ * @deprecated 请改用 richDocMethod 或新的默认字段,旧字段将在后续版本移除。
521
+ */
522
+ legacyText?: string;
523
+ }
524
+
525
+ /**
526
+ * 富文档方法返回值。
527
+ * @description.en Rich documented callback bean.
528
+ */
529
+ export interface RichDocCallbackBean_b47MEv {
530
+ /**
531
+ * 结果码。
532
+ * @description.en Result code.
533
+ * @since GroupCITestKit 1.2.101
534
+ */
535
+ resultCode: string;
536
+ }
537
+
538
+ /**
539
+ * 历史返回模型,用于验证出参属性级动态 since。
540
+ * @description.en Historical callback bean used to verify inferred return property since.
541
+ */
542
+ export interface CallbackBean_EdSC0o {
543
+ /**
544
+ * deviceID,ConstantsBean中的类型均可定义。
545
+ * @description.en Device ID returned from callback.
546
+ * @since GroupCITestKit 1.0.0
547
+ */
548
+ testDeviceID: number;
549
+ }
550
+
551
+ export interface EventBodyBean_jEOOSU {
552
+ /** url */
553
+ url: string;
554
+ }
555
+
556
+ export interface TaskBean_UukM2C {
557
+ /** taskId */
558
+ taskId: string;
559
+ /**
560
+ * taskParam
561
+ * @since GroupCITestKit 1.2.107
562
+ */
563
+ taskParam: string;
564
+ }
565
+
566
+ export interface RegisterEventBean_kgUrAO {
567
+ /** url */
568
+ url: string;
569
+ }
570
+
571
+ export interface RegisterTaskEventBean_VX1QZa {
572
+ /** taskid */
573
+ taskId: string;
574
+ /** url */
575
+ url: string;
576
+ }
577
+
578
+ interface CreateDemoTask {
579
+ /**
580
+ * Task 普通方法声明。
581
+ * @public
582
+ * @since GroupCITestKit 1.2.107
583
+ * @platform iOS Android
584
+ */
585
+ taskPingMethod(params?: {
586
+ /** complete 完成回调(成功、失败都会触发) */
587
+ complete?: () => void;
588
+ /** success 成功回调 */
589
+ success?: (params: null) => void;
590
+ /** fail 失败回调 */
591
+ fail?: (params: {
592
+ /** 错误信息 */
593
+ errorMsg: string;
594
+ /** 错误码 */
595
+ errorCode: string | number;
596
+ /** 错误扩展 */
597
+ innerError: {
598
+ /** 错误扩展码 */
599
+ errorCode: string | number;
600
+ /** 错误扩展信息 */
601
+ errorMsg: string;
602
+ };
603
+ }) => void;
604
+ }): void;
605
+
606
+ /**
607
+ * Task RegisterEvent 事件声明。
608
+ * @public
609
+ * @platform iOS Android Harmony
610
+ */
611
+ onTaskRegisterEventMethod(
612
+ listener: (params: {
613
+ /** taskid */
614
+ taskId: string;
615
+ /** url */
616
+ url: string;
617
+ }) => void,
618
+ ): void;
619
+ }
620
+ /**
621
+ * 创建task对象。
622
+ * @public
623
+ * @since GroupCITestKit 1.0.0
624
+ * @platform iOS Android
625
+ */
626
+ export function createDemo(params: {
627
+ /**
628
+ * taskParam
629
+ * @since GroupCITestKit 1.2.107
630
+ */
631
+ taskParam: string;
632
+ /** complete 完成回调(成功、失败都会触发) */
633
+ complete?: () => void;
634
+ /** success 成功回调 */
635
+ success?: (params: null) => void;
636
+ /** fail 失败回调 */
637
+ fail?: (params: {
638
+ /** 错误信息 */
639
+ errorMsg: string;
640
+ /** 错误码 */
641
+ errorCode: string | number;
642
+ /** 错误扩展 */
643
+ innerError: {
644
+ /** 错误扩展码 */
645
+ errorCode: string | number;
646
+ /** 错误扩展信息 */
647
+ errorMsg: string;
648
+ };
649
+ }) => void;
650
+ }): CreateDemoTask;
651
+ }