@nnepoch/dtc-sdk 3.0.0

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 (172) hide show
  1. package/README.md +298 -0
  2. package/dist/browser/dtc-sdk-3.0.0.js +2 -0
  3. package/dist/cjs/index.cjs +38 -0
  4. package/dist/cjs/index.d.cts +5600 -0
  5. package/dist/esm/index.d.ts +5600 -0
  6. package/dist/esm/index.js +38 -0
  7. package/docs/api/api/classes/Animation.md +280 -0
  8. package/docs/api/api/classes/ApiRegistryError.md +60 -0
  9. package/docs/api/api/classes/Camera.md +601 -0
  10. package/docs/api/api/classes/Connect.md +257 -0
  11. package/docs/api/api/classes/Dlss.md +67 -0
  12. package/docs/api/api/classes/HighLighterEffect.md +173 -0
  13. package/docs/api/api/classes/Layer.md +444 -0
  14. package/docs/api/api/classes/Model.md +193 -0
  15. package/docs/api/api/classes/ModelPOI.md +279 -0
  16. package/docs/api/api/classes/ModelTransform.md +579 -0
  17. package/docs/api/api/classes/PathPatrol.md +337 -0
  18. package/docs/api/api/classes/Popup.md +323 -0
  19. package/docs/api/api/classes/Scene.md +272 -0
  20. package/docs/api/api/classes/Screen.md +157 -0
  21. package/docs/api/api/classes/TimeLine.md +274 -0
  22. package/docs/api/api/classes/UIPOI.md +318 -0
  23. package/docs/api/api/classes/WeatherSystem.md +581 -0
  24. package/docs/api/api/functions/createApiFacade.md +20 -0
  25. package/docs/api/api/index.md +45 -0
  26. package/docs/api/api/interfaces/ApiInstanceMap.md +107 -0
  27. package/docs/api/api/interfaces/ApiRegistryContext.md +47 -0
  28. package/docs/api/api/type-aliases/ApiFacade.md +7 -0
  29. package/docs/api/api/type-aliases/ApiModuleFactory.md +23 -0
  30. package/docs/api/api/type-aliases/ApiModuleKey.md +5 -0
  31. package/docs/api/api/type-aliases/ApiRegistry.md +7 -0
  32. package/docs/api/api/variables/API_MODULE_KEYS.md +5 -0
  33. package/docs/api/api/variables/PendingValidationSchemaMap.md +9 -0
  34. package/docs/api/api/variables/apiRegistry.md +7 -0
  35. package/docs/api/application/DTCEngine/classes/DTCEngine.md +738 -0
  36. package/docs/api/application/DTCEngine/index.md +11 -0
  37. package/docs/api/application/DTCEngine/interfaces/DTCEngineOptions.md +22 -0
  38. package/docs/api/index.md +7 -0
  39. package/docs/api/typedoc-sidebar.json +735 -0
  40. package/docs/api/types/enumerations/LayerEnum.md +21 -0
  41. package/docs/api/types/enumerations/ModelTransformType.md +251 -0
  42. package/docs/api/types/enumerations/VideoCodeType.md +37 -0
  43. package/docs/api/types/index.md +146 -0
  44. package/docs/api/types/interfaces/AnimationGetLengthRequest.md +29 -0
  45. package/docs/api/types/interfaces/AnimationPlayRequest.md +61 -0
  46. package/docs/api/types/interfaces/AnimationSetSpeedRequest.md +29 -0
  47. package/docs/api/types/interfaces/AnimationStartLoopRequest.md +53 -0
  48. package/docs/api/types/interfaces/AnimationStopLoopRequest.md +21 -0
  49. package/docs/api/types/interfaces/AnimationStopRequest.md +21 -0
  50. package/docs/api/types/interfaces/ApiRequestEnvelope.md +45 -0
  51. package/docs/api/types/interfaces/ApiResponseEnvelope.md +57 -0
  52. package/docs/api/types/interfaces/AuthErrorInfo.md +21 -0
  53. package/docs/api/types/interfaces/AuthSessionSnapshot.md +45 -0
  54. package/docs/api/types/interfaces/CameraFlyByPathRequest.md +37 -0
  55. package/docs/api/types/interfaces/CameraFlyToTargetRequest.md +29 -0
  56. package/docs/api/types/interfaces/CameraLookAtRequest.md +69 -0
  57. package/docs/api/types/interfaces/CameraObjFollowRequest.md +37 -0
  58. package/docs/api/types/interfaces/CameraSetFlySpeedRequest.md +13 -0
  59. package/docs/api/types/interfaces/CameraSetFovRequest.md +13 -0
  60. package/docs/api/types/interfaces/CameraSetPositionAndRotationRequest.md +21 -0
  61. package/docs/api/types/interfaces/CenterConnectResult.md +27 -0
  62. package/docs/api/types/interfaces/CenterEnvelope.md +33 -0
  63. package/docs/api/types/interfaces/CenterServiceInfo.md +33 -0
  64. package/docs/api/types/interfaces/CenterTokenAuthorizeResult.md +9 -0
  65. package/docs/api/types/interfaces/DlssSetEnableRequest.md +23 -0
  66. package/docs/api/types/interfaces/DlssSetQualityRequest.md +14 -0
  67. package/docs/api/types/interfaces/EngineConfig.md +127 -0
  68. package/docs/api/types/interfaces/EngineStatusInfo.md +59 -0
  69. package/docs/api/types/interfaces/FeatureToggleRequest.md +21 -0
  70. package/docs/api/types/interfaces/HighLighterEnableRequest.md +11 -0
  71. package/docs/api/types/interfaces/HighLighterRemoveHighLightModelRequest.md +21 -0
  72. package/docs/api/types/interfaces/HighLighterSetHighLightModelRequest.md +29 -0
  73. package/docs/api/types/interfaces/LayerAddRequest.md +61 -0
  74. package/docs/api/types/interfaces/LayerChildElementRequest.md +21 -0
  75. package/docs/api/types/interfaces/LayerModelAddRequest.md +75 -0
  76. package/docs/api/types/interfaces/LayerModelRemoveRequest.md +21 -0
  77. package/docs/api/types/interfaces/LayerPOIAddRequest.md +117 -0
  78. package/docs/api/types/interfaces/LayerSelectorRequest.md +21 -0
  79. package/docs/api/types/interfaces/LayerShowUIPopRequest.md +51 -0
  80. package/docs/api/types/interfaces/LayerSwitchModelRequest.md +29 -0
  81. package/docs/api/types/interfaces/ModelAddRequest.md +61 -0
  82. package/docs/api/types/interfaces/ModelBoundsRequest.md +21 -0
  83. package/docs/api/types/interfaces/ModelPOIAddRequest.md +53 -0
  84. package/docs/api/types/interfaces/ModelPOIDeleteByGroupRequest.md +13 -0
  85. package/docs/api/types/interfaces/ModelPOIDeleteByIdRequest.md +21 -0
  86. package/docs/api/types/interfaces/ModelPOIGetInfoRequest.md +21 -0
  87. package/docs/api/types/interfaces/ModelPOIUpdateRequest.md +53 -0
  88. package/docs/api/types/interfaces/ModelPOIVisibleByGroupRequest.md +21 -0
  89. package/docs/api/types/interfaces/ModelRemoveRequest.md +21 -0
  90. package/docs/api/types/interfaces/ModelSelectorRequest.md +21 -0
  91. package/docs/api/types/interfaces/ModelSetVisibleByTagsRequest.md +21 -0
  92. package/docs/api/types/interfaces/ModelSetVisibleRequest.md +29 -0
  93. package/docs/api/types/interfaces/ModelTransformNodeRequest.md +21 -0
  94. package/docs/api/types/interfaces/ModelTransformRestoreRequest.md +21 -0
  95. package/docs/api/types/interfaces/ModelTransformRotateByTargetRequest.md +85 -0
  96. package/docs/api/types/interfaces/ModelTransformRotateRequest.md +29 -0
  97. package/docs/api/types/interfaces/ModelTransformScaleRequest.md +37 -0
  98. package/docs/api/types/interfaces/ModelTransformStartMoveRequest.md +61 -0
  99. package/docs/api/types/interfaces/NetworkAdaptationActionResult.md +47 -0
  100. package/docs/api/types/interfaces/NetworkAdaptationActionStep.md +29 -0
  101. package/docs/api/types/interfaces/NetworkAdaptationState.md +41 -0
  102. package/docs/api/types/interfaces/NetworkDecisionTrace.md +53 -0
  103. package/docs/api/types/interfaces/NetworkDiagnosticsSnapshot.md +53 -0
  104. package/docs/api/types/interfaces/NetworkMetricsSnapshot.md +59 -0
  105. package/docs/api/types/interfaces/PathPatrolAddRequest.md +109 -0
  106. package/docs/api/types/interfaces/PathPatrolNodeRequest.md +21 -0
  107. package/docs/api/types/interfaces/PathPatrolSetTimeNodeRequest.md +37 -0
  108. package/docs/api/types/interfaces/PathPatrolUpdateRequest.md +53 -0
  109. package/docs/api/types/interfaces/PopupAddRequest.md +21 -0
  110. package/docs/api/types/interfaces/PopupDelayRequest.md +13 -0
  111. package/docs/api/types/interfaces/PopupItemRequest.md +61 -0
  112. package/docs/api/types/interfaces/PopupRemoveRequest.md +21 -0
  113. package/docs/api/types/interfaces/PopupShowDistanceRequest.md +13 -0
  114. package/docs/api/types/interfaces/PopupShowRequest.md +29 -0
  115. package/docs/api/types/interfaces/PopupSyncInfoRequest.md +37 -0
  116. package/docs/api/types/interfaces/QosEvent.md +65 -0
  117. package/docs/api/types/interfaces/QosReportingPayload.md +47 -0
  118. package/docs/api/types/interfaces/QosRuntimeContext.md +29 -0
  119. package/docs/api/types/interfaces/QosSessionContext.md +29 -0
  120. package/docs/api/types/interfaces/QosWarnErrorSummary.md +37 -0
  121. package/docs/api/types/interfaces/ResolvedEngineConfig.md +123 -0
  122. package/docs/api/types/interfaces/SceneListenCompassRequest.md +13 -0
  123. package/docs/api/types/interfaces/SceneSwitchRequest.md +13 -0
  124. package/docs/api/types/interfaces/ScreenSetSceneFPSRequest.md +14 -0
  125. package/docs/api/types/interfaces/ScreenSetSceneRenderBitrateRequest.md +15 -0
  126. package/docs/api/types/interfaces/ScreenSetScreenResolutionRequest.md +23 -0
  127. package/docs/api/types/interfaces/ScreenSetVideoDecodeRequest.md +13 -0
  128. package/docs/api/types/interfaces/SignallingAllocateResponse.md +27 -0
  129. package/docs/api/types/interfaces/StandardResponse.md +33 -0
  130. package/docs/api/types/interfaces/TimeSerialNode.md +21 -0
  131. package/docs/api/types/interfaces/TimelineNodeRequest.md +21 -0
  132. package/docs/api/types/interfaces/TimelinePlayRequest.md +53 -0
  133. package/docs/api/types/interfaces/TimelineSetSpeedRequest.md +37 -0
  134. package/docs/api/types/interfaces/TimelineStopRequest.md +45 -0
  135. package/docs/api/types/interfaces/UIPOIAddRequest.md +21 -0
  136. package/docs/api/types/interfaces/UIPOIDeleteByGroupRequest.md +13 -0
  137. package/docs/api/types/interfaces/UIPOIDeleteByIdRequest.md +21 -0
  138. package/docs/api/types/interfaces/UIPOIEnableOverlapRequest.md +13 -0
  139. package/docs/api/types/interfaces/UIPOIShowDistanceRequest.md +13 -0
  140. package/docs/api/types/interfaces/UIPOIUpdateRequest.md +21 -0
  141. package/docs/api/types/interfaces/UIPOIUpdateStateRequest.md +21 -0
  142. package/docs/api/types/interfaces/Vector3JsonInput.md +27 -0
  143. package/docs/api/types/interfaces/WeatherChangeSeasonRequest.md +21 -0
  144. package/docs/api/types/interfaces/WeatherOpenCameraFogRequest.md +69 -0
  145. package/docs/api/types/interfaces/WeatherSetAnimateTimeOfDayRequest.md +29 -0
  146. package/docs/api/types/interfaces/WeatherSetDayAndNightRequest.md +13 -0
  147. package/docs/api/types/interfaces/WeatherSetSceneTimeRequest.md +21 -0
  148. package/docs/api/types/interfaces/WeatherSetTimeSyncRequest.md +13 -0
  149. package/docs/api/types/interfaces/WeatherTypeRequest.md +27 -0
  150. package/docs/api/types/type-aliases/ApiCallback.md +21 -0
  151. package/docs/api/types/type-aliases/AuthWorkflowState.md +5 -0
  152. package/docs/api/types/type-aliases/DlssQuality.md +7 -0
  153. package/docs/api/types/type-aliases/EngineLogLevel.md +5 -0
  154. package/docs/api/types/type-aliases/EngineViewMode.md +5 -0
  155. package/docs/api/types/type-aliases/GetWeatherTypeRequest.md +7 -0
  156. package/docs/api/types/type-aliases/NetworkAdaptationActionType.md +7 -0
  157. package/docs/api/types/type-aliases/NetworkAdaptationLevel.md +7 -0
  158. package/docs/api/types/type-aliases/NetworkAdaptationMode.md +9 -0
  159. package/docs/api/types/type-aliases/QosEventName.md +9 -0
  160. package/docs/api/types/type-aliases/QosLevel.md +7 -0
  161. package/docs/api/types/type-aliases/QosStage.md +7 -0
  162. package/docs/api/types/type-aliases/QosStatus.md +7 -0
  163. package/docs/api/types/type-aliases/ScreenRenderBitratePreset.md +7 -0
  164. package/docs/api/types/type-aliases/Season.md +7 -0
  165. package/docs/api/types/type-aliases/Vector3Input.md +5 -0
  166. package/docs/api/types/variables/DlssQuality.md +57 -0
  167. package/docs/api/types/variables/QOS_EVENT_NAMES.md +7 -0
  168. package/docs/api/types/variables/ScreenRenderBitratePreset.md +39 -0
  169. package/docs/api/types/variables/ScreenRenderBitratePresetOptions.md +5 -0
  170. package/docs/api/types/variables/ScreenRenderBitratePresetValueMap.md +27 -0
  171. package/docs/api/types/variables/Season.md +33 -0
  172. package/package.json +86 -0
@@ -0,0 +1,280 @@
1
+ [@nnepoch/dtc-sdk](../../index.md) / [api](../index.md) / Animation
2
+
3
+ # Class: Animation
4
+
5
+ 控制模型 Animator 和循环动画。
6
+
7
+ ## Agent Title
8
+
9
+ 模型动画
10
+
11
+ ## Agent Capabilities
12
+
13
+ 循环动画播放, 循环动画停止, Animator 播放, Animator 停止, 动画速度控制, 动画长度查询
14
+
15
+ ## Extends
16
+
17
+ - `BaseApi`
18
+
19
+ ## Methods
20
+
21
+ ### startLoopAnimation()
22
+
23
+ > **startLoopAnimation**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
24
+
25
+ 播放循环动画片段。
26
+ 默认值:`speed=1`。
27
+
28
+ #### Parameters
29
+
30
+ | Parameter | Type | Description |
31
+ | ------ | ------ | ------ |
32
+ | `payload` | [`AnimationStartLoopRequest`](../../types/interfaces/AnimationStartLoopRequest.md) | 循环动画参数。 |
33
+ | `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
34
+
35
+ #### Returns
36
+
37
+ `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
38
+
39
+ Promise 形式的接口响应。
40
+
41
+ #### Agent Side Effects
42
+
43
+ write
44
+
45
+ #### Agent Preconditions
46
+
47
+ DTCEngine 已完成鉴权并建立 WebRTC 连接
48
+
49
+ #### Agent Risk Level
50
+
51
+ low
52
+
53
+ #### Agent Example
54
+
55
+ #### Example
56
+
57
+ ```ts
58
+ dtcEngine.Animation.startLoopAnimation(
59
+ { parentId: 'AnimatorTest', id: 'rotateObj', stateName: 'door_open', loopStartTime: 0, loopEndTime: 3, speed: 1 },
60
+ (result) => { console.log(result); }
61
+ );
62
+ ```
63
+
64
+ ***
65
+
66
+ ### stopLoopAnimation()
67
+
68
+ > **stopLoopAnimation**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
69
+
70
+ 停止循环动画片段。
71
+
72
+ #### Parameters
73
+
74
+ | Parameter | Type | Description |
75
+ | ------ | ------ | ------ |
76
+ | `payload` | [`AnimationStopLoopRequest`](../../types/interfaces/AnimationStopLoopRequest.md) | 停止参数。 |
77
+ | `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
78
+
79
+ #### Returns
80
+
81
+ `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
82
+
83
+ Promise 形式的接口响应。
84
+
85
+ #### Agent Side Effects
86
+
87
+ write
88
+
89
+ #### Agent Preconditions
90
+
91
+ DTCEngine 已完成鉴权并建立 WebRTC 连接
92
+
93
+ #### Agent Risk Level
94
+
95
+ low
96
+
97
+ #### Agent Example
98
+
99
+ #### Example
100
+
101
+ ```ts
102
+ dtcEngine.Animation.stopLoopAnimation({ parentId: 'AnimatorTest', id: 'rotateObj' }, (result) => {
103
+ console.log(result);
104
+ });
105
+ ```
106
+
107
+ ***
108
+
109
+ ### playAnimator()
110
+
111
+ > **playAnimator**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
112
+
113
+ 播放 Animator 动画片段。
114
+ 默认值:`speed=1`、`startTime=0`、`endTime=1`、`isStop=false`。
115
+
116
+ #### Parameters
117
+
118
+ | Parameter | Type | Description |
119
+ | ------ | ------ | ------ |
120
+ | `payload` | [`AnimationPlayRequest`](../../types/interfaces/AnimationPlayRequest.md) | 播放参数。 |
121
+ | `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
122
+
123
+ #### Returns
124
+
125
+ `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
126
+
127
+ Promise 形式的接口响应。
128
+
129
+ #### Agent Side Effects
130
+
131
+ write
132
+
133
+ #### Agent Preconditions
134
+
135
+ DTCEngine 已完成鉴权并建立 WebRTC 连接
136
+
137
+ #### Agent Risk Level
138
+
139
+ low
140
+
141
+ #### Agent Example
142
+
143
+ #### Example
144
+
145
+ ```ts
146
+ dtcEngine.Animation.playAnimator(
147
+ { parentId: 'AnimatorTest', id: 'rotateObj', stateName: 'door_open', speed: 1, startTime: 0, endTime: 1, isStop: false },
148
+ (result) => { console.log(result); }
149
+ );
150
+ ```
151
+
152
+ ***
153
+
154
+ ### setAnimatorSpeed()
155
+
156
+ > **setAnimatorSpeed**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
157
+
158
+ 设置 Animator 动画播放速度。
159
+
160
+ #### Parameters
161
+
162
+ | Parameter | Type | Description |
163
+ | ------ | ------ | ------ |
164
+ | `payload` | [`AnimationSetSpeedRequest`](../../types/interfaces/AnimationSetSpeedRequest.md) | 速度参数。 |
165
+ | `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
166
+
167
+ #### Returns
168
+
169
+ `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
170
+
171
+ Promise 形式的接口响应。
172
+
173
+ #### Agent Side Effects
174
+
175
+ write
176
+
177
+ #### Agent Preconditions
178
+
179
+ DTCEngine 已完成鉴权并建立 WebRTC 连接
180
+
181
+ #### Agent Risk Level
182
+
183
+ low
184
+
185
+ #### Agent Example
186
+
187
+ #### Example
188
+
189
+ ```ts
190
+ dtcEngine.Animation.setAnimatorSpeed({ parentId: 'AnimatorTest', id: 'rotateObj', speed: 1.5 }, (result) => {
191
+ console.log(result);
192
+ });
193
+ ```
194
+
195
+ ***
196
+
197
+ ### getAnimationLength()
198
+
199
+ > **getAnimationLength**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
200
+
201
+ 获取动画片段长度。
202
+
203
+ #### Parameters
204
+
205
+ | Parameter | Type | Description |
206
+ | ------ | ------ | ------ |
207
+ | `payload` | [`AnimationGetLengthRequest`](../../types/interfaces/AnimationGetLengthRequest.md) | 查询参数。 |
208
+ | `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
209
+
210
+ #### Returns
211
+
212
+ `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
213
+
214
+ Promise 形式的接口响应。
215
+
216
+ #### Agent Side Effects
217
+
218
+ read
219
+
220
+ #### Agent Preconditions
221
+
222
+ DTCEngine 已完成鉴权并建立 WebRTC 连接
223
+
224
+ #### Agent Risk Level
225
+
226
+ low
227
+
228
+ #### Agent Example
229
+
230
+ #### Example
231
+
232
+ ```ts
233
+ dtcEngine.Animation.getAnimationLength(
234
+ { parentId: 'AnimatorTest', id: 'rotateObj', stateName: 'door_open' },
235
+ (result) => { console.log(result); }
236
+ );
237
+ ```
238
+
239
+ ***
240
+
241
+ ### stopAnimator()
242
+
243
+ > **stopAnimator**(`payload`, `callback?`): `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
244
+
245
+ 停止指定对象的 Animator 播放。
246
+
247
+ #### Parameters
248
+
249
+ | Parameter | Type | Description |
250
+ | ------ | ------ | ------ |
251
+ | `payload` | [`AnimationStopRequest`](../../types/interfaces/AnimationStopRequest.md) | 停止参数。 |
252
+ | `callback?` | [`ApiCallback`](../../types/type-aliases/ApiCallback.md)\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\> | 可选回调函数。 |
253
+
254
+ #### Returns
255
+
256
+ `Promise`\<[`ApiResponseEnvelope`](../../types/interfaces/ApiResponseEnvelope.md)\<`unknown`\>\>
257
+
258
+ Promise 形式的接口响应。
259
+
260
+ #### Agent Side Effects
261
+
262
+ write
263
+
264
+ #### Agent Preconditions
265
+
266
+ DTCEngine 已完成鉴权并建立 WebRTC 连接
267
+
268
+ #### Agent Risk Level
269
+
270
+ low
271
+
272
+ #### Agent Example
273
+
274
+ #### Example
275
+
276
+ ```ts
277
+ dtcEngine.Animation.stopAnimator({ parentId: 'AnimatorTest', id: 'rotateObj' }, (result) => {
278
+ console.log(result);
279
+ });
280
+ ```
@@ -0,0 +1,60 @@
1
+ [@nnepoch/dtc-sdk](../../index.md) / [api](../index.md) / ApiRegistryError
2
+
3
+ # Class: ApiRegistryError
4
+
5
+ API 注册表运行时校验错误。
6
+
7
+ ## Extends
8
+
9
+ - `Error`
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new ApiRegistryError**(`code`, `message`, `moduleName?`, `dependencyName?`): `ApiRegistryError`
16
+
17
+ #### Parameters
18
+
19
+ | Parameter | Type |
20
+ | ------ | ------ |
21
+ | `code` | `"CONTEXT_INVALID"` \| `"REGISTRY_INVALID"` \| `"REGISTRY_INCOMPLETE"` \| `"REGISTRY_UNKNOWN_MODULE"` \| `"FACTORY_INVALID"` \| `"FACTORY_FAILED"` \| `"FACTORY_EMPTY_RESULT"` |
22
+ | `message` | `string` |
23
+ | `moduleName?` | `string` |
24
+ | `dependencyName?` | `string` |
25
+
26
+ #### Returns
27
+
28
+ `ApiRegistryError`
29
+
30
+ #### Overrides
31
+
32
+ `Error.constructor`
33
+
34
+ ## Properties
35
+
36
+ ### name
37
+
38
+ > `readonly` **name**: `"ApiRegistryError"` = `'ApiRegistryError'`
39
+
40
+ #### Overrides
41
+
42
+ `Error.name`
43
+
44
+ ***
45
+
46
+ ### code
47
+
48
+ > `readonly` **code**: `"CONTEXT_INVALID"` \| `"REGISTRY_INVALID"` \| `"REGISTRY_INCOMPLETE"` \| `"REGISTRY_UNKNOWN_MODULE"` \| `"FACTORY_INVALID"` \| `"FACTORY_FAILED"` \| `"FACTORY_EMPTY_RESULT"`
49
+
50
+ ***
51
+
52
+ ### moduleName?
53
+
54
+ > `readonly` `optional` **moduleName**: `string`
55
+
56
+ ***
57
+
58
+ ### dependencyName?
59
+
60
+ > `readonly` `optional` **dependencyName**: `string`