@nnepoch/dtc-sdk 3.0.2 → 3.0.4
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/browser/dtc-sdk-3.0.3.js +2 -0
- package/dist/cjs/index.cjs +3 -3
- package/dist/cjs/index.d.cts +474 -28
- package/dist/esm/index.d.ts +474 -28
- package/dist/esm/index.js +3 -3
- package/package.json +2 -1
- package/dist/browser/dtc-sdk-3.0.1.js +0 -2
package/dist/esm/index.d.ts
CHANGED
|
@@ -92,6 +92,10 @@ interface EngineConfig {
|
|
|
92
92
|
initialSettings?: Record<string, unknown>;
|
|
93
93
|
/** 日志级别,默认值为 info */
|
|
94
94
|
logger?: EngineLogLevel;
|
|
95
|
+
/** 从指定级别开始附加业务调用栈,默认值为 warn;silent 表示关闭 */
|
|
96
|
+
includeStack?: EngineLogLevel;
|
|
97
|
+
/** Pixel Streaming 依赖日志级别,默认值为 warn */
|
|
98
|
+
pixelStreamingLogger?: EngineLogLevel;
|
|
95
99
|
}
|
|
96
100
|
interface ApiRequestEnvelope<T = unknown> {
|
|
97
101
|
AssemblyName: string;
|
|
@@ -130,6 +134,8 @@ interface ResolvedEngineConfig {
|
|
|
130
134
|
freeCheckInterval: number;
|
|
131
135
|
initialSettings: Record<string, unknown>;
|
|
132
136
|
logger: EngineLogLevel;
|
|
137
|
+
includeStack: EngineLogLevel;
|
|
138
|
+
pixelStreamingLogger: EngineLogLevel;
|
|
133
139
|
centerHeartbeatIntervalMs: number;
|
|
134
140
|
centerHeartbeatTimeoutMs: number;
|
|
135
141
|
}
|
|
@@ -2309,6 +2315,104 @@ interface HeatMapConfigRequest {
|
|
|
2309
2315
|
heightScale?: number;
|
|
2310
2316
|
/** 颜色过渡比例,默认 2.5。 */
|
|
2311
2317
|
lerpScale?: number;
|
|
2318
|
+
/**影响范围 */
|
|
2319
|
+
influenceSize?: number;
|
|
2320
|
+
}
|
|
2321
|
+
/**
|
|
2322
|
+
* Navigation.startMeshNav / getMeshNavDistance 参数。
|
|
2323
|
+
*/
|
|
2324
|
+
interface NavigationMeshNavRequest {
|
|
2325
|
+
/** 对象组的父对象,可以为空。 */
|
|
2326
|
+
parentId?: string;
|
|
2327
|
+
/** 对象名称数组集合。 */
|
|
2328
|
+
id: string;
|
|
2329
|
+
/** 路径节点数组集合,与 `targetIds` 二选一。 */
|
|
2330
|
+
nodes?: Vector3Input[];
|
|
2331
|
+
/** 路径节点经过的目标对象名称数组集合,与 `nodes` 二选一;需保证场景中各编号对象唯一存在。 */
|
|
2332
|
+
targetIds?: string[];
|
|
2333
|
+
/** 物体移动的速度,默认 1。 */
|
|
2334
|
+
speed?: number;
|
|
2335
|
+
/** 是否作为导航缓存路径点,默认 `true`;`true` 表示将节点加入缓存路径,下次修改时前置节点仍会经过,`false` 表示按新路径导航。 */
|
|
2336
|
+
isCache?: boolean;
|
|
2337
|
+
/** 导航规划路径颜色。 */
|
|
2338
|
+
planColor?: string;
|
|
2339
|
+
/** 导航已走过的路径颜色。 */
|
|
2340
|
+
passColor?: string;
|
|
2341
|
+
/** 导航规划线的宽度,默认 1。 */
|
|
2342
|
+
lineWidth?: number;
|
|
2343
|
+
/** 是否自动播放,默认 `true`。 */
|
|
2344
|
+
isAutoPlay?: boolean;
|
|
2345
|
+
/** 场景的模型路径,可为空;为空时根据 id 到场景中寻找模型对象。 */
|
|
2346
|
+
assetPath?: string;
|
|
2347
|
+
/** 是否自动清除,默认 `true`。 */
|
|
2348
|
+
isAutoClear?: boolean;
|
|
2349
|
+
offSetZ?: number;
|
|
2350
|
+
}
|
|
2351
|
+
/**
|
|
2352
|
+
* Navigation.pauseMeshNav / resumeMeshNav / stopMeshNav / pauseNavPath / resumeNavPath / stopNavPath 参数。
|
|
2353
|
+
*/
|
|
2354
|
+
interface NavigationNodeRequest {
|
|
2355
|
+
/** 对象组的父对象,可以为空。 */
|
|
2356
|
+
parentId?: string;
|
|
2357
|
+
/** 对象名称数组集合。 */
|
|
2358
|
+
id: string;
|
|
2359
|
+
}
|
|
2360
|
+
/**
|
|
2361
|
+
* Navigation.updateMeshNav 参数。
|
|
2362
|
+
*/
|
|
2363
|
+
interface NavigationUpdateMeshNavRequest {
|
|
2364
|
+
/** 对象组的父对象,可以为空。 */
|
|
2365
|
+
parentId?: string;
|
|
2366
|
+
/** 对象名称数组集合。 */
|
|
2367
|
+
id: string;
|
|
2368
|
+
/** 物体移动的速度,默认 -1(不改变速度)。 */
|
|
2369
|
+
speed?: number;
|
|
2370
|
+
/** 导航规划路径颜色。 */
|
|
2371
|
+
planColor?: string;
|
|
2372
|
+
/** 导航已走过的路径颜色。 */
|
|
2373
|
+
passColor?: string;
|
|
2374
|
+
}
|
|
2375
|
+
interface NavigationUpdateSpeedRequest {
|
|
2376
|
+
/** 对象组的父对象,可以为空。 */
|
|
2377
|
+
parentId?: string;
|
|
2378
|
+
/** 对象名称数组集合。 */
|
|
2379
|
+
id: string;
|
|
2380
|
+
/** 物体移动的速度,默认 -1(不改变速度)。 */
|
|
2381
|
+
speed?: number;
|
|
2382
|
+
}
|
|
2383
|
+
/**
|
|
2384
|
+
* Navigation.startNavByPath 参数。
|
|
2385
|
+
*/
|
|
2386
|
+
interface NavigationNavByPathRequest {
|
|
2387
|
+
/** 对象组的父对象,可以为空。 */
|
|
2388
|
+
parentId?: string;
|
|
2389
|
+
/** 对象名称数组集合。 */
|
|
2390
|
+
id: string[];
|
|
2391
|
+
/** 路径节点数组集合。 */
|
|
2392
|
+
nodes: Vector3Input[];
|
|
2393
|
+
/** 是否作为导航缓存路径点,默认 `true`。 */
|
|
2394
|
+
isCache?: boolean;
|
|
2395
|
+
/** 导航轨迹总时间(秒),默认 10。 */
|
|
2396
|
+
duration?: number;
|
|
2397
|
+
/** 导航规划路径颜色。 */
|
|
2398
|
+
planColor?: string;
|
|
2399
|
+
/** 导航已走过的路径颜色。 */
|
|
2400
|
+
passColor?: string;
|
|
2401
|
+
}
|
|
2402
|
+
/**
|
|
2403
|
+
* Navigation.updateNavPath 参数。
|
|
2404
|
+
*/
|
|
2405
|
+
interface NavigationUpdateNavPathRequest {
|
|
2406
|
+
/** 对象组的父对象,可以为空。 */
|
|
2407
|
+
parentId?: string;
|
|
2408
|
+
/** 对象名称数组集合。 */
|
|
2409
|
+
id: string[];
|
|
2410
|
+
/** 导航轨迹总时间(秒),默认 -1(不改变时长)。 */
|
|
2411
|
+
duration?: number;
|
|
2412
|
+
/** 导航规划路径颜色。 */
|
|
2413
|
+
planColor?: string;
|
|
2414
|
+
/** 导航已走过的路径颜色。 */
|
|
2415
|
+
passColor?: string;
|
|
2312
2416
|
}
|
|
2313
2417
|
//#endregion
|
|
2314
2418
|
//#region src/types/response.d.ts
|
|
@@ -2454,6 +2558,20 @@ interface StreamRequestPromise<TResult> extends Promise<ApiResponseEnvelope<TRes
|
|
|
2454
2558
|
readonly requestId: string;
|
|
2455
2559
|
cancel: (reason?: string) => void;
|
|
2456
2560
|
}
|
|
2561
|
+
/**
|
|
2562
|
+
* 发送失败(UE 交互通道/视频未就绪)时的排队重试配置。
|
|
2563
|
+
*/
|
|
2564
|
+
interface RequestSendRetryOptions {
|
|
2565
|
+
/**
|
|
2566
|
+
* 是否在发送失败时排队重试(底层 Pixel Streaming 在视频 `readyState` 为 0 时会拒绝发送)。
|
|
2567
|
+
* 默认 `true`。
|
|
2568
|
+
*/
|
|
2569
|
+
enabled?: boolean;
|
|
2570
|
+
/** 重试间隔(毫秒),默认 250。 */
|
|
2571
|
+
intervalMs?: number;
|
|
2572
|
+
/** 排队重试的最大等待时长(毫秒),超时仍未发出则 reject,默认 15000。 */
|
|
2573
|
+
maxWaitMs?: number;
|
|
2574
|
+
}
|
|
2457
2575
|
/**
|
|
2458
2576
|
* RequestBridge 的 QoS 生命周期钩子。
|
|
2459
2577
|
*/
|
|
@@ -2482,6 +2600,14 @@ declare class RequestBridge {
|
|
|
2482
2600
|
* 等待 UE 响应的进行中请求集合。
|
|
2483
2601
|
*/
|
|
2484
2602
|
private pending;
|
|
2603
|
+
/**
|
|
2604
|
+
* 因 UE 交互通道未就绪而排队等待重发的请求集合。
|
|
2605
|
+
*/
|
|
2606
|
+
private sendRetries;
|
|
2607
|
+
/**
|
|
2608
|
+
* 发送失败排队重试配置。
|
|
2609
|
+
*/
|
|
2610
|
+
private readonly retryOptions;
|
|
2485
2611
|
/**
|
|
2486
2612
|
* SDK 运行时固定使用的响应事件通道名。
|
|
2487
2613
|
*/
|
|
@@ -2501,7 +2627,7 @@ declare class RequestBridge {
|
|
|
2501
2627
|
/**
|
|
2502
2628
|
* 初始化时立即注册响应监听,确保所有 API 调用共享同一桥接器。
|
|
2503
2629
|
*/
|
|
2504
|
-
constructor(session: PixelStreamingAdapter, logger?: ModuleLogger, hooks?: RequestBridgeHooks);
|
|
2630
|
+
constructor(session: PixelStreamingAdapter, logger?: ModuleLogger, hooks?: RequestBridgeHooks, retryOptions?: RequestSendRetryOptions);
|
|
2505
2631
|
/**
|
|
2506
2632
|
* 向 UE 发送请求信封,并在匹配响应到达后完成 Promise。
|
|
2507
2633
|
*/
|
|
@@ -2512,6 +2638,17 @@ declare class RequestBridge {
|
|
|
2512
2638
|
*/
|
|
2513
2639
|
sendStreamRequest<TPayload, TResult>(module: string, method: string, payload?: TPayload, callback?: StreamRequestCallback<TResult>): StreamRequestPromise<TResult>;
|
|
2514
2640
|
private sendPendingRequest;
|
|
2641
|
+
/**
|
|
2642
|
+
* 处理一次发送尝试:底层通道未就绪导致失败时按配置排队重试,
|
|
2643
|
+
* 避免视频尚未就绪(`readyState === 0`)瞬间的请求被直接丢弃。
|
|
2644
|
+
*/
|
|
2645
|
+
private handleSendAttempt;
|
|
2646
|
+
private scheduleSendRetry;
|
|
2647
|
+
private runSendRetry;
|
|
2648
|
+
/**
|
|
2649
|
+
* 清理指定请求的排队重试状态(取消定时器)。
|
|
2650
|
+
*/
|
|
2651
|
+
private clearSendRetry;
|
|
2515
2652
|
private settlePendingFailure;
|
|
2516
2653
|
private handleResponse;
|
|
2517
2654
|
private createRequestEnvelope;
|
|
@@ -4029,6 +4166,258 @@ declare class ModelTransform extends BaseApi {
|
|
|
4029
4166
|
restoreScale(payload: ModelTransformRestoreRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4030
4167
|
}
|
|
4031
4168
|
//#endregion
|
|
4169
|
+
//#region src/api/Navigation.d.ts
|
|
4170
|
+
/**
|
|
4171
|
+
* 场景对象导航 API,支持两种导航模式:
|
|
4172
|
+
* 1. 在导航网格上寻路,产生导航路径;
|
|
4173
|
+
* 2. 根据设置好的路径节点,进行直线导航。
|
|
4174
|
+
* @agentTitle 对象导航
|
|
4175
|
+
* @agentCapabilities 网格导航寻路, 导航距离查询, 网格导航暂停, 网格导航继续, 网格导航停止, 网格导航属性修改, 路径导航开始, 路径导航暂停, 路径导航继续, 路径导航停止, 路径导航属性修改
|
|
4176
|
+
* @hideconstructor
|
|
4177
|
+
*/
|
|
4178
|
+
declare class Navigation extends BaseApi {
|
|
4179
|
+
constructor(bridge: ApiBridge, runtimeOptions?: BaseApiRuntimeOptions);
|
|
4180
|
+
/**
|
|
4181
|
+
* 网格导航寻路:模型对象根据路过的节点进行导航。
|
|
4182
|
+
* `nodes` 与 `targetIds` 两者必须有一个不为空。
|
|
4183
|
+
* 默认值:`isCache=true`、`speed=1`、`frontWidth=1`、`backWidth=1`、`isAutoPlay=true`。
|
|
4184
|
+
* @param payload - 导航参数。
|
|
4185
|
+
* @param callback - 可选回调函数。
|
|
4186
|
+
* @returns Promise 形式的接口响应。
|
|
4187
|
+
* @agentSideEffects write
|
|
4188
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4189
|
+
* @agentRiskLevel low
|
|
4190
|
+
* @agentExample { parentId: 'Players', id: 'Player1', nodes: [{ x: 114.7985155712282, y: 34.842421780635625, z: 2 }, { x: 114.79789723105696, y: 34.84218433379876, z: 1.5 }], isCache: false, planColor: '#00ff00', passColor: '#e1e1e1' }
|
|
4191
|
+
* @example
|
|
4192
|
+
* ```ts
|
|
4193
|
+
dtcEngine.Navigation.startNav({
|
|
4194
|
+
parentId: 'Players',
|
|
4195
|
+
id: 'Player1',
|
|
4196
|
+
nodes: [
|
|
4197
|
+
new dtcEngine.Type.Vector3(114.7985155712282, 34.842421780635625, 2),
|
|
4198
|
+
new dtcEngine.Type.Vector3(114.79789723105696, 34.84218433379876, 1.5),
|
|
4199
|
+
new dtcEngine.Type.Vector3(114.79790138598447, 34.842529820659664, 2),
|
|
4200
|
+
new dtcEngine.Type.Vector3(114.79799880513536, 34.84259530893161, 1.5),
|
|
4201
|
+
new dtcEngine.Type.Vector3(114.79814201498125, 34.842669768891525, 2),
|
|
4202
|
+
new dtcEngine.Type.Vector3(114.79808229900121, 34.842686310921465, 2)
|
|
4203
|
+
],
|
|
4204
|
+
isCache: false,
|
|
4205
|
+
planColor: '#00ff00',
|
|
4206
|
+
passColor: '#e1e1e1',
|
|
4207
|
+
offSetZ: 0.5,
|
|
4208
|
+
}, (result) => { console.log(result); });
|
|
4209
|
+
* ```
|
|
4210
|
+
*/
|
|
4211
|
+
startNav(payload: NavigationMeshNavRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4212
|
+
/**
|
|
4213
|
+
* 网格导航距离查询:模型对象根据路过的节点进行导航,并返回导航距离信息。
|
|
4214
|
+
* `nodes` 与 `targetIds` 两者必须有一个不为空。
|
|
4215
|
+
* 默认值:`isCache=false`、`speed=1`、`frontWidth=1`、`backWidth=1`、`isAutoPlay=false`。
|
|
4216
|
+
* @param payload - 导航参数。
|
|
4217
|
+
* @param callback - 可选回调函数。
|
|
4218
|
+
* @returns Promise 形式的接口响应。
|
|
4219
|
+
* @agentSideEffects write
|
|
4220
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4221
|
+
* @agentRiskLevel low
|
|
4222
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'], nodes: [{ x: 114.7985155712282, y: 34.842421780635625, z: 2 }, { x: 114.79789723105696, y: 34.84218433379876, z: 1.5 }], isCache: false, planColor: '#00ff00', passColor: '#e1e1e1' }
|
|
4223
|
+
* @example
|
|
4224
|
+
* ```ts
|
|
4225
|
+
* dtcEngine.Navigation.getMeshNavDistance({
|
|
4226
|
+
* parentId: 'Players',
|
|
4227
|
+
* id: ['Player1', 'MyRobut'],
|
|
4228
|
+
* nodes: [
|
|
4229
|
+
* new dtcEngine.Type.Vector3(114.7985155712282, 34.842421780635625, 2),
|
|
4230
|
+
* new dtcEngine.Type.Vector3(114.79789723105696, 34.84218433379876, 1.5)
|
|
4231
|
+
* ],
|
|
4232
|
+
* isCache: false,
|
|
4233
|
+
* planColor: '#00ff00',
|
|
4234
|
+
* passColor: '#e1e1e1'
|
|
4235
|
+
* }, (result) => { console.log(result); });
|
|
4236
|
+
* ```
|
|
4237
|
+
*/
|
|
4238
|
+
getMeshNavDistance(payload: NavigationMeshNavRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4239
|
+
/**
|
|
4240
|
+
* 暂停模型对象网格导航。
|
|
4241
|
+
* @param payload - 导航对象参数。
|
|
4242
|
+
* @param callback - 可选回调函数。
|
|
4243
|
+
* @returns Promise 形式的接口响应。
|
|
4244
|
+
* @agentSideEffects write
|
|
4245
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4246
|
+
* @agentRiskLevel low
|
|
4247
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'] }
|
|
4248
|
+
* @example
|
|
4249
|
+
* ```ts
|
|
4250
|
+
* dtcEngine.Navigation.pauseNav({ parentId: 'Players', id: 'Player1' }, (result) => { console.log(result); });
|
|
4251
|
+
* ```
|
|
4252
|
+
*/
|
|
4253
|
+
pauseNav(payload: NavigationNodeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4254
|
+
/**
|
|
4255
|
+
* 继续模型对象网格导航。
|
|
4256
|
+
* @param payload - 导航对象参数。
|
|
4257
|
+
* @param callback - 可选回调函数。
|
|
4258
|
+
* @returns Promise 形式的接口响应。
|
|
4259
|
+
* @agentSideEffects write
|
|
4260
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4261
|
+
* @agentRiskLevel low
|
|
4262
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'] }
|
|
4263
|
+
* @example
|
|
4264
|
+
* ```ts
|
|
4265
|
+
* dtcEngine.Navigation.resumeNav({ parentId: 'Players', id: ['Player1', 'MyRobut'] }, (result) => { console.log(result); });
|
|
4266
|
+
* ```
|
|
4267
|
+
*/
|
|
4268
|
+
resumeNav(payload: NavigationNodeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4269
|
+
/**
|
|
4270
|
+
* 停止模型对象网格导航。
|
|
4271
|
+
* @param payload - 导航对象参数。
|
|
4272
|
+
* @param callback - 可选回调函数。
|
|
4273
|
+
* @returns Promise 形式的接口响应。
|
|
4274
|
+
* @agentSideEffects write
|
|
4275
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4276
|
+
* @agentRiskLevel low
|
|
4277
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'] }
|
|
4278
|
+
* @example
|
|
4279
|
+
* ```ts
|
|
4280
|
+
* dtcEngine.Navigation.stopNav({ parentId: 'Players', id: ['Player1'] }, (result) => { console.log(result); });
|
|
4281
|
+
* ```
|
|
4282
|
+
*/
|
|
4283
|
+
stopNav(payload: NavigationNodeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4284
|
+
/**
|
|
4285
|
+
* 设置网格导航路径属性。
|
|
4286
|
+
* 默认值:`speed=-1`(不改变速度)。
|
|
4287
|
+
* @param payload - 导航属性参数。
|
|
4288
|
+
* @param callback - 可选回调函数。
|
|
4289
|
+
* @returns Promise 形式的接口响应。
|
|
4290
|
+
* @agentSideEffects write
|
|
4291
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4292
|
+
* @agentRiskLevel low
|
|
4293
|
+
* @agentExample { parentId: 'Players', id: 'Player1', planColor: '#00ff00', passColor: '#e1e1e1', speed: 4 }
|
|
4294
|
+
* @example
|
|
4295
|
+
* ```ts
|
|
4296
|
+
* dtcEngine.Navigation.updateNav({
|
|
4297
|
+
* parentId: 'Players',
|
|
4298
|
+
* id: 'Player1',
|
|
4299
|
+
* planColor: '#00ff00',
|
|
4300
|
+
* passColor: '#e1e1e1',
|
|
4301
|
+
* speed: 4
|
|
4302
|
+
* }, (result) => { console.log(result); });
|
|
4303
|
+
* ```
|
|
4304
|
+
*/
|
|
4305
|
+
updateNav(payload: NavigationUpdateMeshNavRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4306
|
+
/**
|
|
4307
|
+
* 设置网格导航路径属性。
|
|
4308
|
+
* 默认值:`speed=-1`(不改变速度)。
|
|
4309
|
+
* @param payload - 导航属性参数。
|
|
4310
|
+
* @param callback - 可选回调函数。
|
|
4311
|
+
* @returns Promise 形式的接口响应。
|
|
4312
|
+
* @agentSideEffects write
|
|
4313
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4314
|
+
* @agentRiskLevel low
|
|
4315
|
+
* @agentExample { parentId: 'Players', id: 'Player1', speed: 4 }
|
|
4316
|
+
* @example
|
|
4317
|
+
* ```ts
|
|
4318
|
+
dtcEngine.Navigation.updateSpeed({
|
|
4319
|
+
parentId: 'Players',
|
|
4320
|
+
id: 'Player1',
|
|
4321
|
+
speed: 4
|
|
4322
|
+
}, (result) => { console.log(result); });
|
|
4323
|
+
* ```
|
|
4324
|
+
*/
|
|
4325
|
+
updateSpeed(payload: NavigationUpdateSpeedRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4326
|
+
/**
|
|
4327
|
+
* 路径导航开始:根据指定的轨迹节点进行直线导航行走。
|
|
4328
|
+
* 默认值:`isCache=true`、`duration=10`。
|
|
4329
|
+
* @param payload - 路径导航参数。
|
|
4330
|
+
* @param callback - 可选回调函数。
|
|
4331
|
+
* @returns Promise 形式的接口响应。
|
|
4332
|
+
* @agentSideEffects write
|
|
4333
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4334
|
+
* @agentRiskLevel low
|
|
4335
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'], nodes: [{ x: 114.7985155712282, y: 34.842421780635625, z: 2 }, { x: 114.79789723105696, y: 34.84218433379876, z: 1.5 }], isCache: false, duration: 10 }
|
|
4336
|
+
* @example
|
|
4337
|
+
* ```ts
|
|
4338
|
+
* dtcEngine.Navigation.startNavByPath({
|
|
4339
|
+
* parentId: 'Players',
|
|
4340
|
+
* id: ['Player1', 'MyRobut'],
|
|
4341
|
+
* nodes: [
|
|
4342
|
+
* new dtcEngine.Type.Vector3(114.7985155712282, 34.842421780635625, 2),
|
|
4343
|
+
* new dtcEngine.Type.Vector3(114.79789723105696, 34.84218433379876, 1.5),
|
|
4344
|
+
* new dtcEngine.Type.Vector3(114.79790138598447, 34.842529820659664, 2)
|
|
4345
|
+
* ],
|
|
4346
|
+
* isCache: false,
|
|
4347
|
+
* duration: 10
|
|
4348
|
+
* }, (result) => { console.log(result); });
|
|
4349
|
+
* ```
|
|
4350
|
+
*/
|
|
4351
|
+
startNavByPath(payload: NavigationNavByPathRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4352
|
+
/**
|
|
4353
|
+
* 暂停模型对象路径导航。
|
|
4354
|
+
* @param payload - 导航对象参数。
|
|
4355
|
+
* @param callback - 可选回调函数。
|
|
4356
|
+
* @returns Promise 形式的接口响应。
|
|
4357
|
+
* @agentSideEffects write
|
|
4358
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4359
|
+
* @agentRiskLevel low
|
|
4360
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'] }
|
|
4361
|
+
* @example
|
|
4362
|
+
* ```ts
|
|
4363
|
+
* dtcEngine.Navigation.pauseNavPath({ parentId: 'Players', id: ['Player1', 'MyRobut'] }, (result) => { console.log(result); });
|
|
4364
|
+
* ```
|
|
4365
|
+
*/
|
|
4366
|
+
pauseNavPath(payload: NavigationNodeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4367
|
+
/**
|
|
4368
|
+
* 继续模型对象路径导航。
|
|
4369
|
+
* @param payload - 导航对象参数。
|
|
4370
|
+
* @param callback - 可选回调函数。
|
|
4371
|
+
* @returns Promise 形式的接口响应。
|
|
4372
|
+
* @agentSideEffects write
|
|
4373
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4374
|
+
* @agentRiskLevel low
|
|
4375
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'] }
|
|
4376
|
+
* @example
|
|
4377
|
+
* ```ts
|
|
4378
|
+
* dtcEngine.Navigation.resumeNavPath({ parentId: 'Players', id: ['Player1', 'MyRobut'] }, (result) => { console.log(result); });
|
|
4379
|
+
* ```
|
|
4380
|
+
*/
|
|
4381
|
+
resumeNavPath(payload: NavigationNodeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4382
|
+
/**
|
|
4383
|
+
* 停止模型对象路径导航。
|
|
4384
|
+
* @param payload - 导航对象参数。
|
|
4385
|
+
* @param callback - 可选回调函数。
|
|
4386
|
+
* @returns Promise 形式的接口响应。
|
|
4387
|
+
* @agentSideEffects write
|
|
4388
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4389
|
+
* @agentRiskLevel low
|
|
4390
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'] }
|
|
4391
|
+
* @example
|
|
4392
|
+
* ```ts
|
|
4393
|
+
* dtcEngine.Navigation.stopNavPath({ parentId: 'Players', id: ['Player1'] }, (result) => { console.log(result); });
|
|
4394
|
+
* ```
|
|
4395
|
+
*/
|
|
4396
|
+
stopNavPath(payload: NavigationNodeRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4397
|
+
/**
|
|
4398
|
+
* 设置路径导航属性。
|
|
4399
|
+
* 默认值:`duration=-1`(不改变时长)。
|
|
4400
|
+
* @param payload - 路径导航属性参数。
|
|
4401
|
+
* @param callback - 可选回调函数。
|
|
4402
|
+
* @returns Promise 形式的接口响应。
|
|
4403
|
+
* @agentSideEffects write
|
|
4404
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4405
|
+
* @agentRiskLevel low
|
|
4406
|
+
* @agentExample { parentId: 'Players', id: ['Player1', 'MyRobut'], planColor: '#00ff00', passColor: '#e1e1e1', duration: 5 }
|
|
4407
|
+
* @example
|
|
4408
|
+
* ```ts
|
|
4409
|
+
* dtcEngine.Navigation.updateNavPath({
|
|
4410
|
+
* parentId: 'Players',
|
|
4411
|
+
* id: ['Player1', 'MyRobut'],
|
|
4412
|
+
* planColor: '#00ff00',
|
|
4413
|
+
* passColor: '#e1e1e1',
|
|
4414
|
+
* duration: 5
|
|
4415
|
+
* }, (result) => { console.log(result); });
|
|
4416
|
+
* ```
|
|
4417
|
+
*/
|
|
4418
|
+
updateNavPath(payload: NavigationUpdateNavPathRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4419
|
+
}
|
|
4420
|
+
//#endregion
|
|
4032
4421
|
//#region src/api/PathPatrol.d.ts
|
|
4033
4422
|
/**
|
|
4034
4423
|
* 路径巡逻 API,支持巡逻路线添加、样式修改、时间节点设置与巡逻控制。
|
|
@@ -4047,6 +4436,7 @@ declare class PathPatrol extends BaseApi {
|
|
|
4047
4436
|
* @agentSideEffects write
|
|
4048
4437
|
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4049
4438
|
* @agentRiskLevel low
|
|
4439
|
+
* @agentResponseMode stream
|
|
4050
4440
|
* @agentExample { parentId: 'patrolLayer', id: 'patrolMan', assetPath: 'PatrolMan', scale: { x: 2, y: 2, z: 2 }, showPath: true, passedColor: '#ff0013', lineColor: '#0040ef', lineWidth: 2, nodes: [{ x: 114.79234244388735, y: 34.8353249473732, z: 67.76611328125 }, { x: 114.78552975378634, y: 34.84532722646887, z: 67.76627349853516 }], duration: 10 }
|
|
4051
4441
|
* @example
|
|
4052
4442
|
* ```ts
|
|
@@ -4264,24 +4654,24 @@ declare class HeatMap extends BaseApi {
|
|
|
4264
4654
|
*/
|
|
4265
4655
|
clear(callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4266
4656
|
/**
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4657
|
+
* 设置热力图参数(透明度/高度缩放/颜色过渡)。
|
|
4658
|
+
* `id` 非空时作用于该 id 的热力图,否则作用于最近创建的热力图。
|
|
4659
|
+
* 默认值:`opacity=0.7`、`heightScale=2500`、`lerpScale=2.5`。
|
|
4660
|
+
* @param payload - 热力图参数。
|
|
4661
|
+
* @param callback - 可选回调函数。
|
|
4662
|
+
* @returns Promise 形式的接口响应。
|
|
4663
|
+
* @agentSideEffects write
|
|
4664
|
+
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4665
|
+
* @agentRiskLevel low
|
|
4666
|
+
* @agentExample { id: 'heatMap1', opacity: 0.5, heightScale: 3000, lerpScale: 3 }
|
|
4667
|
+
* @example
|
|
4668
|
+
* ```ts
|
|
4669
|
+
dtcEngine.HeatMap.setConfig(
|
|
4670
|
+
{ id: 'heatMap1', opacity: 0.5, heightScale: 3000, lerpScale: 3 },
|
|
4671
|
+
(result) => { console.log(result); }
|
|
4672
|
+
);
|
|
4673
|
+
* ```
|
|
4674
|
+
*/
|
|
4285
4675
|
setConfig(payload: HeatMapConfigRequest, callback?: ApiCallback<ApiResponseEnvelope<unknown>>): Promise<ApiResponseEnvelope<unknown>>;
|
|
4286
4676
|
}
|
|
4287
4677
|
//#endregion
|
|
@@ -4645,6 +5035,7 @@ declare class TimeLine extends BaseApi {
|
|
|
4645
5035
|
* @agentSideEffects write
|
|
4646
5036
|
* @agentPreconditions DTCEngine 已完成鉴权并建立 WebRTC 连接
|
|
4647
5037
|
* @agentRiskLevel low
|
|
5038
|
+
* @agentResponseMode stream
|
|
4648
5039
|
* @agentExample { id: 'Path1', speed: 2 }
|
|
4649
5040
|
* @example
|
|
4650
5041
|
* ```ts
|
|
@@ -5132,6 +5523,7 @@ interface ApiInstanceMap {
|
|
|
5132
5523
|
UIPOI: UIPOI;
|
|
5133
5524
|
ModelPOI: ModelPOI;
|
|
5134
5525
|
ModelTransform: ModelTransform;
|
|
5526
|
+
Navigation: Navigation;
|
|
5135
5527
|
PathPatrol: PathPatrol;
|
|
5136
5528
|
HeatMap: HeatMap;
|
|
5137
5529
|
HighlighterEffect: HighLighterEffect;
|
|
@@ -5200,11 +5592,11 @@ interface AgentBridgeReconnectOptions {
|
|
|
5200
5592
|
interface DTCEngineAgentBridgeOptions {
|
|
5201
5593
|
/** MCP bridge server 地址;缺省连接本机默认 MCP bridge server。 */
|
|
5202
5594
|
serverUrl?: string;
|
|
5203
|
-
/**
|
|
5595
|
+
/** 可选诊断名称,缺省自动使用 EngineConfig.sceneName;项目 Skill 不使用它路由。 */
|
|
5204
5596
|
runtimeName?: string;
|
|
5205
5597
|
/** 是否启用 bridge;只有 `true` 会创建连接。 */
|
|
5206
5598
|
enabled?: boolean;
|
|
5207
|
-
/** API
|
|
5599
|
+
/** 高级安全配置;API 暴露范围缺省为 `all`,普通项目接入无需传入。 */
|
|
5208
5600
|
expose?: AgentBridgeExposeConfig;
|
|
5209
5601
|
/** 心跳间隔,缺省 5000ms。 */
|
|
5210
5602
|
heartbeatIntervalMs?: number;
|
|
@@ -5212,7 +5604,7 @@ interface DTCEngineAgentBridgeOptions {
|
|
|
5212
5604
|
reconnect?: boolean | AgentBridgeReconnectOptions;
|
|
5213
5605
|
/** 仅用于测试/联调:校验通过后不调用真实 UE API,直接返回 mock 成功。 */
|
|
5214
5606
|
mockInvoke?: boolean;
|
|
5215
|
-
/**
|
|
5607
|
+
/** 兼容性扩展字段;项目 Skill 不依赖该字段路由。 */
|
|
5216
5608
|
metadata?: Record<string, string>;
|
|
5217
5609
|
}
|
|
5218
5610
|
interface AgentBridgeRuntimeEngineSnapshot {
|
|
@@ -5240,6 +5632,8 @@ interface AgentBridgeRuntimeSnapshot {
|
|
|
5240
5632
|
}
|
|
5241
5633
|
/** API 方法副作用描述,用于帮助 Agent 判断调用风险。 */
|
|
5242
5634
|
type AgentBridgeMethodSideEffect = 'read' | 'write' | 'connection' | 'stream';
|
|
5635
|
+
/** API 的响应模式;与副作用风险是两个独立维度。 */
|
|
5636
|
+
type AgentBridgeMethodResponseMode = 'single' | 'stream';
|
|
5243
5637
|
/**
|
|
5244
5638
|
* 模块目录项。
|
|
5245
5639
|
*/
|
|
@@ -5259,6 +5653,7 @@ interface AgentBridgeMethodCatalogItem {
|
|
|
5259
5653
|
description: string;
|
|
5260
5654
|
sideEffects: AgentBridgeMethodSideEffect[];
|
|
5261
5655
|
preconditions: string[];
|
|
5656
|
+
responseMode: AgentBridgeMethodResponseMode;
|
|
5262
5657
|
}
|
|
5263
5658
|
/** schema 字段类型。 */
|
|
5264
5659
|
type AgentBridgeSchemaFieldType = 'string' | 'number' | 'boolean' | 'object' | 'array' | 'enum' | 'unknown';
|
|
@@ -5288,9 +5683,10 @@ interface AgentBridgeMethodSchemaMetadata {
|
|
|
5288
5683
|
payloadKind: 'none' | 'object';
|
|
5289
5684
|
fields: AgentBridgeSchemaField[];
|
|
5290
5685
|
examples: unknown[];
|
|
5686
|
+
responseMode: AgentBridgeMethodResponseMode;
|
|
5291
5687
|
}
|
|
5292
5688
|
/** bridge 统一错误码。 */
|
|
5293
|
-
type AgentBridgeErrorCode = 'API_NOT_FOUND' | 'API_NOT_EXPOSED' | 'METHOD_SCHEMA_NOT_FOUND' | 'SDK_NOT_READY' | 'INVALID_PAYLOAD' | 'API_EXECUTION_FAILED' | 'PROTOCOL_ERROR' | 'BRIDGE_NOT_CONNECTED';
|
|
5689
|
+
type AgentBridgeErrorCode = 'API_NOT_FOUND' | 'API_NOT_EXPOSED' | 'METHOD_SCHEMA_NOT_FOUND' | 'SDK_NOT_READY' | 'INVALID_PAYLOAD' | 'API_EXECUTION_FAILED' | 'API_NOT_STREAMING' | 'STREAM_INVOKE_REQUIRED' | 'PROTOCOL_ERROR' | 'BRIDGE_NOT_CONNECTED';
|
|
5294
5690
|
/**
|
|
5295
5691
|
* bridge 结构化错误。
|
|
5296
5692
|
*/
|
|
@@ -5321,6 +5717,42 @@ interface AgentBridgeInvokeRequest {
|
|
|
5321
5717
|
methodName: string;
|
|
5322
5718
|
payload?: unknown;
|
|
5323
5719
|
}
|
|
5720
|
+
/** 启动流式 API 请求。streamId 由 MCP server 创建,用于跨进程关联事件。 */
|
|
5721
|
+
interface AgentBridgeStreamStartRequest extends AgentBridgeInvokeRequest {
|
|
5722
|
+
streamId: string;
|
|
5723
|
+
}
|
|
5724
|
+
/** 主动关闭浏览器侧流监听;这只取消本地回调,不等价于停止 UE 业务。 */
|
|
5725
|
+
interface AgentBridgeStreamCloseRequest {
|
|
5726
|
+
streamId: string;
|
|
5727
|
+
reason?: string;
|
|
5728
|
+
}
|
|
5729
|
+
type AgentBridgeStreamTerminalReason = 'completed' | 'finished' | 'stopped' | 'cancelled' | 'error' | 'bridge-disconnected';
|
|
5730
|
+
interface AgentBridgeStreamEventPayload {
|
|
5731
|
+
streamId: string;
|
|
5732
|
+
requestId: string;
|
|
5733
|
+
moduleName: string;
|
|
5734
|
+
methodName: string;
|
|
5735
|
+
event: {
|
|
5736
|
+
type: StreamRequestEventType;
|
|
5737
|
+
requestId: string;
|
|
5738
|
+
response?: unknown;
|
|
5739
|
+
error?: {
|
|
5740
|
+
name: string;
|
|
5741
|
+
message: string;
|
|
5742
|
+
};
|
|
5743
|
+
};
|
|
5744
|
+
terminal: boolean;
|
|
5745
|
+
terminalReason?: AgentBridgeStreamTerminalReason;
|
|
5746
|
+
}
|
|
5747
|
+
interface AgentBridgeStreamStartResult {
|
|
5748
|
+
streamId: string;
|
|
5749
|
+
requestId: string;
|
|
5750
|
+
}
|
|
5751
|
+
interface AgentBridgeStreamCloseResult {
|
|
5752
|
+
streamId: string;
|
|
5753
|
+
closed: boolean;
|
|
5754
|
+
}
|
|
5755
|
+
type AgentBridgeStreamEventListener = (payload: AgentBridgeStreamEventPayload) => void;
|
|
5324
5756
|
/**
|
|
5325
5757
|
* 面向 WebSocket bridge 的运行时适配接口。
|
|
5326
5758
|
*/
|
|
@@ -5331,6 +5763,15 @@ interface AgentBridgeRuntimeAdapter {
|
|
|
5331
5763
|
listMethods(moduleName: string): AgentBridgeOperationResult<AgentBridgeMethodCatalogItem[]>;
|
|
5332
5764
|
getMethodSchema(moduleName: string, methodName: string): AgentBridgeOperationResult<AgentBridgeMethodSchemaMetadata>;
|
|
5333
5765
|
invoke(request: AgentBridgeInvokeRequest): Promise<AgentBridgeOperationResult<unknown>>;
|
|
5766
|
+
startStream(request: AgentBridgeStreamStartRequest, onEvent: AgentBridgeStreamEventListener): Promise<AgentBridgeOperationResult<AgentBridgeStreamStartResult>>;
|
|
5767
|
+
closeStream(request: AgentBridgeStreamCloseRequest): Promise<AgentBridgeOperationResult<AgentBridgeStreamCloseResult>>;
|
|
5768
|
+
closeAllStreams?(reason?: string): void;
|
|
5769
|
+
}
|
|
5770
|
+
/** createBridgeRuntime 内部保存的浏览器流句柄。 */
|
|
5771
|
+
interface AgentBridgeActiveStream {
|
|
5772
|
+
request: AgentBridgeStreamStartRequest;
|
|
5773
|
+
promise: StreamRequestPromise<unknown>;
|
|
5774
|
+
onEvent: AgentBridgeStreamEventListener;
|
|
5334
5775
|
}
|
|
5335
5776
|
//#endregion
|
|
5336
5777
|
//#region src/agentBridge/protocol.d.ts
|
|
@@ -5339,7 +5780,7 @@ declare const AGENT_BRIDGE_PROTOCOL_VERSION = "sdk3-agent-bridge/v1";
|
|
|
5339
5780
|
/**
|
|
5340
5781
|
* 浏览器侧 bridge 与 MCP 服务端之间的协议消息类型。
|
|
5341
5782
|
*/
|
|
5342
|
-
type AgentBridgeMessageType = 'register' | 'unregister' | 'heartbeat' | 'catalog' | 'schema' | 'invoke' | 'result';
|
|
5783
|
+
type AgentBridgeMessageType = 'register' | 'unregister' | 'heartbeat' | 'catalog' | 'schema' | 'invoke' | 'stream-start' | 'stream-close' | 'stream-event' | 'result';
|
|
5343
5784
|
/**
|
|
5344
5785
|
* 所有协议消息的基础信封。
|
|
5345
5786
|
*/
|
|
@@ -5358,6 +5799,7 @@ interface AgentBridgeRegisterPayload extends AgentBridgeRuntimeSnapshot {
|
|
|
5358
5799
|
catalog: true;
|
|
5359
5800
|
schema: true;
|
|
5360
5801
|
invoke: true;
|
|
5802
|
+
stream: true;
|
|
5361
5803
|
};
|
|
5362
5804
|
}
|
|
5363
5805
|
/** 关闭消息携带的原因。 */
|
|
@@ -5381,13 +5823,16 @@ interface AgentBridgeSchemaRequestPayload {
|
|
|
5381
5823
|
}
|
|
5382
5824
|
/** invoke 请求。 */
|
|
5383
5825
|
type AgentBridgeInvokeRequestPayload = AgentBridgeInvokeRequest;
|
|
5826
|
+
/** 流式 invoke 与关闭请求。 */
|
|
5827
|
+
type AgentBridgeStreamStartRequestPayload = AgentBridgeStreamStartRequest;
|
|
5828
|
+
type AgentBridgeStreamCloseRequestPayload = AgentBridgeStreamCloseRequest;
|
|
5384
5829
|
/** result 消息。 */
|
|
5385
5830
|
interface AgentBridgeResultPayload<TData = unknown> {
|
|
5386
|
-
requestType: 'catalog' | 'schema' | 'invoke';
|
|
5831
|
+
requestType: 'catalog' | 'schema' | 'invoke' | 'stream-start' | 'stream-close';
|
|
5387
5832
|
result: AgentBridgeOperationResult<TData>;
|
|
5388
5833
|
}
|
|
5389
|
-
type AgentBridgeInboundMessage = AgentBridgeMessageEnvelope<AgentBridgeCatalogRequestPayload> | AgentBridgeMessageEnvelope<AgentBridgeSchemaRequestPayload> | AgentBridgeMessageEnvelope<AgentBridgeInvokeRequestPayload>;
|
|
5390
|
-
type AgentBridgeOutboundMessage = AgentBridgeMessageEnvelope<AgentBridgeRegisterPayload> | AgentBridgeMessageEnvelope<AgentBridgeUnregisterPayload> | AgentBridgeMessageEnvelope<AgentBridgeHeartbeatPayload> | AgentBridgeMessageEnvelope<AgentBridgeResultPayload>;
|
|
5834
|
+
type AgentBridgeInboundMessage = AgentBridgeMessageEnvelope<AgentBridgeCatalogRequestPayload> | AgentBridgeMessageEnvelope<AgentBridgeSchemaRequestPayload> | AgentBridgeMessageEnvelope<AgentBridgeInvokeRequestPayload> | AgentBridgeMessageEnvelope<AgentBridgeStreamStartRequestPayload> | AgentBridgeMessageEnvelope<AgentBridgeStreamCloseRequestPayload>;
|
|
5835
|
+
type AgentBridgeOutboundMessage = AgentBridgeMessageEnvelope<AgentBridgeRegisterPayload> | AgentBridgeMessageEnvelope<AgentBridgeUnregisterPayload> | AgentBridgeMessageEnvelope<AgentBridgeHeartbeatPayload> | AgentBridgeMessageEnvelope<AgentBridgeStreamEventPayload> | AgentBridgeMessageEnvelope<AgentBridgeResultPayload>;
|
|
5391
5836
|
//#endregion
|
|
5392
5837
|
//#region src/agentBridge/AgentRuntimeBridge.d.ts
|
|
5393
5838
|
interface AgentBridgeSocket {
|
|
@@ -5438,6 +5883,7 @@ declare class AgentRuntimeBridge {
|
|
|
5438
5883
|
private startHeartbeat;
|
|
5439
5884
|
private clearHeartbeat;
|
|
5440
5885
|
private handleMessage;
|
|
5886
|
+
private sendStreamEvent;
|
|
5441
5887
|
private sendResult;
|
|
5442
5888
|
private send;
|
|
5443
5889
|
private clearSocketHandlers;
|
|
@@ -5872,4 +6318,4 @@ declare class SDKValidationError extends Error {
|
|
|
5872
6318
|
toJSON(): Record<string, unknown>;
|
|
5873
6319
|
}
|
|
5874
6320
|
//#endregion
|
|
5875
|
-
export { AGENT_BRIDGE_API_METADATA, type AGENT_BRIDGE_PROTOCOL_VERSION, API_MODULE_KEYS, type AgentBridgeCatalogRequestPayload, type AgentBridgeErrorCode, type AgentBridgeExposeConfig, type AgentBridgeHeartbeatPayload, type AgentBridgeInboundMessage, type AgentBridgeInvokeRequest, type AgentBridgeInvokeRequestPayload, type AgentBridgeMessageEnvelope, type AgentBridgeMessageType, type AgentBridgeMethodCatalogItem, type AgentBridgeMethodSchemaMetadata, type AgentBridgeMethodSideEffect, type AgentBridgeModuleCatalogItem, type AgentBridgeOperationResult, type AgentBridgeOutboundMessage, type AgentBridgeReconnectOptions, type AgentBridgeRegisterPayload, type AgentBridgeResultPayload, type AgentBridgeRuntimeAdapter, type AgentBridgeRuntimeEngineSnapshot, type AgentBridgeRuntimeFactoryOptions, type AgentBridgeRuntimeSnapshot, type AgentBridgeSchemaEnumOption, type AgentBridgeSchemaField, type AgentBridgeSchemaFieldType, type AgentBridgeSchemaRequestPayload, type AgentBridgeSocket, type AgentBridgeSocketFactory, type AgentBridgeStructuredError, type AgentBridgeUnregisterPayload, AgentRuntimeBridge, type AgentRuntimeBridgeDependencies, Animation, type AnimationGetLengthRequest, type AnimationPlayRequest, type AnimationSetSpeedRequest, type AnimationStartLoopRequest, type AnimationStopLoopRequest, type AnimationStopRequest, type ApiCallback, type ApiFacade, type ApiInstanceMap, type ApiModuleFactory, type ApiModuleKey, type ApiRegistry, type ApiRegistryContext, ApiRegistryError, type ApiRequestEnvelope, type ApiResponseEnvelope, type AuthErrorInfo, type AuthSessionSnapshot, type AuthWorkflowState, Camera, type CameraFlyByPathRequest, type CameraFlyToTargetRequest, type CameraLookAtRequest, type CameraObjFollowRequest, type CameraSetFlySpeedRequest, type CameraSetFovRequest, type CameraSetPositionAndRotationRequest, type CenterConnectResult, type CenterEnvelope, type CenterServiceInfo, type CenterTokenAuthorizeResult, Connect, DTCEngine, type DTCEngineAgentBridgeOptions, Dlss, DlssQuality, type DlssSetEnableRequest, type DlssSetQualityRequest, type EngineConfig, type EngineLogLevel, type EngineStatusInfo, type EngineViewMode, type FeatureToggleRequest, FilterMode, type GetWeatherTypeRequest, HeatMap, type HeatMapConfigRequest, type HeatMapCreateRequest, type HeatMapPointRequest, type HeatMapRemoveRequest, HighLighterEffect, type HighLighterEnableRequest, type HighLighterRemoveHighLightModelRequest, type HighLighterSetHighLightModelRequest, Layer, type LayerAddRequest, type LayerChildElementRequest, LayerEnum, type LayerModelAddRequest, type LayerModelRemoveRequest, type LayerPOIAddRequest, type LayerSelectorRequest, type LayerShowUIPopRequest, type LayerSwitchModelRequest, Model, type ModelAddRequest, type ModelBoundsRequest, ModelPOI, type ModelPOIAddRequest, type ModelPOIDeleteByGroupRequest, type ModelPOIDeleteByIdRequest, type ModelPOIGetInfoRequest, type ModelPOIUpdateRequest, type ModelPOIVisibleByGroupRequest, type ModelRemoveRequest, type ModelSelectorRequest, type ModelSetVisibleByAttributeRequest, type ModelSetVisibleByTagsRequest, type ModelSetVisibleRequest, ModelTransform, type ModelTransformNodeRequest, type ModelTransformRestoreRequest, type ModelTransformRotateByTargetRequest, type ModelTransformRotateRequest, type ModelTransformScaleRequest, type ModelTransformStartMoveRequest, ModelTransformType, type NetworkAdaptationActionResult, type NetworkAdaptationActionStep, type NetworkAdaptationActionType, type NetworkAdaptationLevel, type NetworkAdaptationMode, type NetworkAdaptationState, type NetworkDecisionTrace, type NetworkDiagnosticsSnapshot, type NetworkMetricsSnapshot, PathPatrol, type PathPatrolAddRequest, type PathPatrolNodeRequest, type PathPatrolSetTimeNodeRequest, type PathPatrolUpdateRequest, PendingValidationSchemaMap, Popup, type PopupAddRequest, type PopupDelayRequest, type PopupItemRequest, type PopupRemoveRequest, type PopupShowDistanceRequest, type PopupShowRequest, type PopupSyncInfoRequest, type QOS_EVENT_NAMES, type QosEvent, type QosEventName, type QosLevel, type QosReportingPayload, type QosRuntimeContext, type QosSessionContext, type QosStage, type QosStatus, type QosWarnErrorSummary, type ResolvedEngineConfig, SDKValidationError, Scene, type SceneListenCompassRequest, type SceneSwitchRequest, Screen, ScreenRenderBitratePreset, ScreenRenderBitratePresetOptions, type ScreenRenderBitratePresetValueMap, type ScreenSetSceneFPSRequest, type ScreenSetSceneRenderBitrateRequest, type ScreenSetScreenResolutionRequest, type ScreenSetVideoDecodeRequest, Season, type SignallingAllocateResponse, type StandardResponse, TimeLine, type TimeSerialNode, type TimelineNodeRequest, type TimelinePlayRequest, type TimelineSetSpeedRequest, type TimelineStopRequest, UIPOI, type UIPOIAddRequest, type UIPOIDeleteByGroupRequest, type UIPOIDeleteByIdRequest, type UIPOIEnableOverlapRequest, type UIPOIShowDistanceRequest, type UIPOIUpdateRequest, type UIPOIUpdateStateRequest, type Vector2Input, type Vector2JsonInput, type Vector3Input, type Vector3JsonInput, VideoCodeType, type WeatherChangeSeasonRequest, type WeatherOpenCameraFogRequest, type WeatherSetAnimateTimeOfDayRequest, type WeatherSetDayAndNightRequest, type WeatherSetSceneTimeRequest, type WeatherSetTimeSyncRequest, WeatherSystem, type WeatherTypeRequest, WebView, type WebViewUpdateRequest, apiRegistry, createAgentBridgeMetadata, createApiFacade, createBridgeRuntime, getAgentBridgeMethodSchema, isAgentBridgeMethodExposed, isAgentBridgeModuleExposed, isAgentBridgeModuleName, listAgentBridgeMethods, listAgentBridgeModules, resolveAgentBridgeExposeConfig };
|
|
6321
|
+
export { AGENT_BRIDGE_API_METADATA, type AGENT_BRIDGE_PROTOCOL_VERSION, API_MODULE_KEYS, type AgentBridgeActiveStream, type AgentBridgeCatalogRequestPayload, type AgentBridgeErrorCode, type AgentBridgeExposeConfig, type AgentBridgeHeartbeatPayload, type AgentBridgeInboundMessage, type AgentBridgeInvokeRequest, type AgentBridgeInvokeRequestPayload, type AgentBridgeMessageEnvelope, type AgentBridgeMessageType, type AgentBridgeMethodCatalogItem, type AgentBridgeMethodResponseMode, type AgentBridgeMethodSchemaMetadata, type AgentBridgeMethodSideEffect, type AgentBridgeModuleCatalogItem, type AgentBridgeOperationResult, type AgentBridgeOutboundMessage, type AgentBridgeReconnectOptions, type AgentBridgeRegisterPayload, type AgentBridgeResultPayload, type AgentBridgeRuntimeAdapter, type AgentBridgeRuntimeEngineSnapshot, type AgentBridgeRuntimeFactoryOptions, type AgentBridgeRuntimeSnapshot, type AgentBridgeSchemaEnumOption, type AgentBridgeSchemaField, type AgentBridgeSchemaFieldType, type AgentBridgeSchemaRequestPayload, type AgentBridgeSocket, type AgentBridgeSocketFactory, type AgentBridgeStreamCloseRequest, type AgentBridgeStreamCloseRequestPayload, type AgentBridgeStreamCloseResult, type AgentBridgeStreamEventListener, type AgentBridgeStreamEventPayload, type AgentBridgeStreamStartRequest, type AgentBridgeStreamStartRequestPayload, type AgentBridgeStreamStartResult, type AgentBridgeStreamTerminalReason, type AgentBridgeStructuredError, type AgentBridgeUnregisterPayload, AgentRuntimeBridge, type AgentRuntimeBridgeDependencies, Animation, type AnimationGetLengthRequest, type AnimationPlayRequest, type AnimationSetSpeedRequest, type AnimationStartLoopRequest, type AnimationStopLoopRequest, type AnimationStopRequest, type ApiCallback, type ApiFacade, type ApiInstanceMap, type ApiModuleFactory, type ApiModuleKey, type ApiRegistry, type ApiRegistryContext, ApiRegistryError, type ApiRequestEnvelope, type ApiResponseEnvelope, type AuthErrorInfo, type AuthSessionSnapshot, type AuthWorkflowState, Camera, type CameraFlyByPathRequest, type CameraFlyToTargetRequest, type CameraLookAtRequest, type CameraObjFollowRequest, type CameraSetFlySpeedRequest, type CameraSetFovRequest, type CameraSetPositionAndRotationRequest, type CenterConnectResult, type CenterEnvelope, type CenterServiceInfo, type CenterTokenAuthorizeResult, Connect, DTCEngine, type DTCEngineAgentBridgeOptions, Dlss, DlssQuality, type DlssSetEnableRequest, type DlssSetQualityRequest, type EngineConfig, type EngineLogLevel, type EngineStatusInfo, type EngineViewMode, type FeatureToggleRequest, FilterMode, type GetWeatherTypeRequest, HeatMap, type HeatMapConfigRequest, type HeatMapCreateRequest, type HeatMapPointRequest, type HeatMapRemoveRequest, HighLighterEffect, type HighLighterEnableRequest, type HighLighterRemoveHighLightModelRequest, type HighLighterSetHighLightModelRequest, Layer, type LayerAddRequest, type LayerChildElementRequest, LayerEnum, type LayerModelAddRequest, type LayerModelRemoveRequest, type LayerPOIAddRequest, type LayerSelectorRequest, type LayerShowUIPopRequest, type LayerSwitchModelRequest, Model, type ModelAddRequest, type ModelBoundsRequest, ModelPOI, type ModelPOIAddRequest, type ModelPOIDeleteByGroupRequest, type ModelPOIDeleteByIdRequest, type ModelPOIGetInfoRequest, type ModelPOIUpdateRequest, type ModelPOIVisibleByGroupRequest, type ModelRemoveRequest, type ModelSelectorRequest, type ModelSetVisibleByAttributeRequest, type ModelSetVisibleByTagsRequest, type ModelSetVisibleRequest, ModelTransform, type ModelTransformNodeRequest, type ModelTransformRestoreRequest, type ModelTransformRotateByTargetRequest, type ModelTransformRotateRequest, type ModelTransformScaleRequest, type ModelTransformStartMoveRequest, ModelTransformType, Navigation, type NavigationMeshNavRequest, type NavigationNavByPathRequest, type NavigationNodeRequest, type NavigationUpdateMeshNavRequest, type NavigationUpdateNavPathRequest, type NavigationUpdateSpeedRequest, type NetworkAdaptationActionResult, type NetworkAdaptationActionStep, type NetworkAdaptationActionType, type NetworkAdaptationLevel, type NetworkAdaptationMode, type NetworkAdaptationState, type NetworkDecisionTrace, type NetworkDiagnosticsSnapshot, type NetworkMetricsSnapshot, PathPatrol, type PathPatrolAddRequest, type PathPatrolNodeRequest, type PathPatrolSetTimeNodeRequest, type PathPatrolUpdateRequest, PendingValidationSchemaMap, Popup, type PopupAddRequest, type PopupDelayRequest, type PopupItemRequest, type PopupRemoveRequest, type PopupShowDistanceRequest, type PopupShowRequest, type PopupSyncInfoRequest, type QOS_EVENT_NAMES, type QosEvent, type QosEventName, type QosLevel, type QosReportingPayload, type QosRuntimeContext, type QosSessionContext, type QosStage, type QosStatus, type QosWarnErrorSummary, type ResolvedEngineConfig, SDKValidationError, Scene, type SceneListenCompassRequest, type SceneSwitchRequest, Screen, ScreenRenderBitratePreset, ScreenRenderBitratePresetOptions, type ScreenRenderBitratePresetValueMap, type ScreenSetSceneFPSRequest, type ScreenSetSceneRenderBitrateRequest, type ScreenSetScreenResolutionRequest, type ScreenSetVideoDecodeRequest, Season, type SignallingAllocateResponse, type StandardResponse, TimeLine, type TimeSerialNode, type TimelineNodeRequest, type TimelinePlayRequest, type TimelineSetSpeedRequest, type TimelineStopRequest, UIPOI, type UIPOIAddRequest, type UIPOIDeleteByGroupRequest, type UIPOIDeleteByIdRequest, type UIPOIEnableOverlapRequest, type UIPOIShowDistanceRequest, type UIPOIUpdateRequest, type UIPOIUpdateStateRequest, type Vector2Input, type Vector2JsonInput, type Vector3Input, type Vector3JsonInput, VideoCodeType, type WeatherChangeSeasonRequest, type WeatherOpenCameraFogRequest, type WeatherSetAnimateTimeOfDayRequest, type WeatherSetDayAndNightRequest, type WeatherSetSceneTimeRequest, type WeatherSetTimeSyncRequest, WeatherSystem, type WeatherTypeRequest, WebView, type WebViewUpdateRequest, apiRegistry, createAgentBridgeMetadata, createApiFacade, createBridgeRuntime, getAgentBridgeMethodSchema, isAgentBridgeMethodExposed, isAgentBridgeModuleExposed, isAgentBridgeModuleName, listAgentBridgeMethods, listAgentBridgeModules, resolveAgentBridgeExposeConfig };
|