@world-engines/protocol-ts 0.1.0-alpha.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.
- package/LICENSE +46 -0
- package/dist/entity-prop-envelope.d.ts +36 -0
- package/dist/entity-prop-envelope.js +50 -0
- package/dist/gen/v1/auth.d.ts +46 -0
- package/dist/gen/v1/auth.js +278 -0
- package/dist/gen/v1/billing.d.ts +71 -0
- package/dist/gen/v1/billing.js +521 -0
- package/dist/gen/v1/common.d.ts +65 -0
- package/dist/gen/v1/common.js +387 -0
- package/dist/gen/v1/llm.d.ts +317 -0
- package/dist/gen/v1/llm.js +3557 -0
- package/dist/gen/v1/mcp.d.ts +373 -0
- package/dist/gen/v1/mcp.js +3190 -0
- package/dist/gen/v1/moderation.d.ts +51 -0
- package/dist/gen/v1/moderation.js +368 -0
- package/dist/gen/v1/neutral_scenario_source.d.ts +80 -0
- package/dist/gen/v1/neutral_scenario_source.js +569 -0
- package/dist/gen/v1/relation_kind.d.ts +105 -0
- package/dist/gen/v1/relation_kind.js +562 -0
- package/dist/gen/v1/rest/admin.d.ts +432 -0
- package/dist/gen/v1/rest/admin.js +4957 -0
- package/dist/gen/v1/rest/asset.d.ts +205 -0
- package/dist/gen/v1/rest/asset.js +2200 -0
- package/dist/gen/v1/rest/auth.d.ts +275 -0
- package/dist/gen/v1/rest/auth.js +2896 -0
- package/dist/gen/v1/rest/billing.d.ts +101 -0
- package/dist/gen/v1/rest/billing.js +866 -0
- package/dist/gen/v1/rest/common.d.ts +179 -0
- package/dist/gen/v1/rest/common.js +1358 -0
- package/dist/gen/v1/rest/creator.d.ts +354 -0
- package/dist/gen/v1/rest/creator.js +4169 -0
- package/dist/gen/v1/rest/messaging.d.ts +190 -0
- package/dist/gen/v1/rest/messaging.js +2017 -0
- package/dist/gen/v1/rest/moderation.d.ts +61 -0
- package/dist/gen/v1/rest/moderation.js +569 -0
- package/dist/gen/v1/rest/pet.d.ts +98 -0
- package/dist/gen/v1/rest/pet.js +698 -0
- package/dist/gen/v1/rest/project_transfer.d.ts +470 -0
- package/dist/gen/v1/rest/project_transfer.js +5266 -0
- package/dist/gen/v1/rest/scenario.d.ts +756 -0
- package/dist/gen/v1/rest/scenario.js +8768 -0
- package/dist/gen/v1/rest/stock_bounty.d.ts +154 -0
- package/dist/gen/v1/rest/stock_bounty.js +1547 -0
- package/dist/gen/v1/rest/stocks.d.ts +465 -0
- package/dist/gen/v1/rest/stocks.js +5200 -0
- package/dist/gen/v1/rest/support_ticket.d.ts +61 -0
- package/dist/gen/v1/rest/support_ticket.js +511 -0
- package/dist/gen/v1/rest/users.d.ts +292 -0
- package/dist/gen/v1/rest/users.js +2879 -0
- package/dist/gen/v1/rest/violations.d.ts +52 -0
- package/dist/gen/v1/rest/violations.js +338 -0
- package/dist/gen/v1/sav.d.ts +987 -0
- package/dist/gen/v1/sav.js +12327 -0
- package/dist/gen/v1/save.d.ts +68 -0
- package/dist/gen/v1/save.js +595 -0
- package/dist/gen/v1/scenario_part_source.d.ts +94 -0
- package/dist/gen/v1/scenario_part_source.js +913 -0
- package/dist/gen/v1/session.d.ts +49 -0
- package/dist/gen/v1/session.js +311 -0
- package/dist/gen/v1/view_state.d.ts +267 -0
- package/dist/gen/v1/view_state.js +3239 -0
- package/dist/gen/v1/world.d.ts +82 -0
- package/dist/gen/v1/world.js +707 -0
- package/dist/gen/v1/world_memory.d.ts +545 -0
- package/dist/gen/v1/world_memory.js +5816 -0
- package/dist/gen/v1/world_memory_privacy.d.ts +96 -0
- package/dist/gen/v1/world_memory_privacy.js +994 -0
- package/dist/gen/v1/ws_frame.d.ts +1626 -0
- package/dist/gen/v1/ws_frame.js +18253 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/ladybug-extraction.d.ts +36 -0
- package/dist/ladybug-extraction.js +1 -0
- package/package.json +65 -0
|
@@ -0,0 +1,1626 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { AttachmentRef } from "./common.js";
|
|
3
|
+
import { McpSessionCapabilities, McpSessionCapabilityAck } from "./mcp.js";
|
|
4
|
+
import { ActionProposal } from "./world.js";
|
|
5
|
+
import { WorldMemoryChangeProposal, WorldMemoryChangeReceipt, WorldRevision } from "./world_memory.js";
|
|
6
|
+
export declare enum PartyAuthorityOperationKind {
|
|
7
|
+
PARTY_AUTHORITY_OPERATION_KIND_UNSPECIFIED = 0,
|
|
8
|
+
PARTY_AUTHORITY_OPERATION_KIND_TURN_COMMIT = 1,
|
|
9
|
+
PARTY_AUTHORITY_OPERATION_KIND_WORLD_CLOCK_ADVANCE = 2,
|
|
10
|
+
PARTY_AUTHORITY_OPERATION_KIND_GLOBAL_EVENT = 3,
|
|
11
|
+
PARTY_AUTHORITY_OPERATION_KIND_TRIGGER_EXECUTION = 4,
|
|
12
|
+
UNRECOGNIZED = -1
|
|
13
|
+
}
|
|
14
|
+
export declare function partyAuthorityOperationKindFromJSON(object: any): PartyAuthorityOperationKind;
|
|
15
|
+
export declare function partyAuthorityOperationKindToJSON(object: PartyAuthorityOperationKind): string;
|
|
16
|
+
/**
|
|
17
|
+
* 统一 ws 帧 每帧加密 (chacha20poly1305 AEAD) session_key 来自 SessionInit
|
|
18
|
+
* nonce 单调递增 防重放 mac 由 AEAD 自带 与 ciphertext 一同验签
|
|
19
|
+
*/
|
|
20
|
+
export interface WsFrame {
|
|
21
|
+
frame_id: string;
|
|
22
|
+
nonce: string;
|
|
23
|
+
ciphertext: Uint8Array;
|
|
24
|
+
mac: Uint8Array;
|
|
25
|
+
_unknownFields?: {
|
|
26
|
+
[key: number]: Uint8Array[];
|
|
27
|
+
} | undefined;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* PartyWorldAuthority v1. These messages are additive and are only emitted to
|
|
31
|
+
* clients that explicitly send PartyAuthorityRequest.protocol_version=1.
|
|
32
|
+
* Legacy StateIntent/StateCommit clients never receive these effects.
|
|
33
|
+
*/
|
|
34
|
+
export interface PartyAuthorityScope {
|
|
35
|
+
room_id: string;
|
|
36
|
+
scenario_session_id: string;
|
|
37
|
+
scenario_id: string;
|
|
38
|
+
scenario_artifact_sha256: string;
|
|
39
|
+
world_save_id: string;
|
|
40
|
+
worldline_id: string;
|
|
41
|
+
worldline_head_sha256: string;
|
|
42
|
+
scope_sha256: string;
|
|
43
|
+
initial_world_state_sha256: string;
|
|
44
|
+
_unknownFields?: {
|
|
45
|
+
[key: number]: Uint8Array[];
|
|
46
|
+
} | undefined;
|
|
47
|
+
}
|
|
48
|
+
export interface PartyAuthorityCapability {
|
|
49
|
+
lease_id: string;
|
|
50
|
+
capability_sha256: string;
|
|
51
|
+
scope_sha256: string;
|
|
52
|
+
connection_id: string;
|
|
53
|
+
account_id: string;
|
|
54
|
+
connection_epoch: string;
|
|
55
|
+
admission_sequence: string;
|
|
56
|
+
issued_host_epoch: string;
|
|
57
|
+
expires_at_ms: string;
|
|
58
|
+
_unknownFields?: {
|
|
59
|
+
[key: number]: Uint8Array[];
|
|
60
|
+
} | undefined;
|
|
61
|
+
}
|
|
62
|
+
export interface PartyAuthorityHead {
|
|
63
|
+
generation: string;
|
|
64
|
+
event_sequence: string;
|
|
65
|
+
world_state_sha256: string;
|
|
66
|
+
worldline_id: string;
|
|
67
|
+
worldline_head_sha256: string;
|
|
68
|
+
latest_checkpoint_id: string;
|
|
69
|
+
_unknownFields?: {
|
|
70
|
+
[key: number]: Uint8Array[];
|
|
71
|
+
} | undefined;
|
|
72
|
+
}
|
|
73
|
+
export interface PartyAuthorityAdmission {
|
|
74
|
+
scope?: PartyAuthorityScope | undefined;
|
|
75
|
+
connection_id: string;
|
|
76
|
+
connection_epoch: string;
|
|
77
|
+
proof_id: string;
|
|
78
|
+
proof_sha256: string;
|
|
79
|
+
_unknownFields?: {
|
|
80
|
+
[key: number]: Uint8Array[];
|
|
81
|
+
} | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface PartyAuthorityIntent {
|
|
84
|
+
capability?: PartyAuthorityCapability | undefined;
|
|
85
|
+
intent_id: string;
|
|
86
|
+
actor_sequence: string;
|
|
87
|
+
payload_sha256: string;
|
|
88
|
+
operation_kind: PartyAuthorityOperationKind;
|
|
89
|
+
sealed_operation_sha256: string;
|
|
90
|
+
world_clock_seconds: string;
|
|
91
|
+
event_id: string;
|
|
92
|
+
event_definition_sha256: string;
|
|
93
|
+
trigger_envelope_sha256: string;
|
|
94
|
+
causal_turn_receipt_sha256: string;
|
|
95
|
+
_unknownFields?: {
|
|
96
|
+
[key: number]: Uint8Array[];
|
|
97
|
+
} | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface PartyTurnCommitReceipt {
|
|
100
|
+
receipt_sha256: string;
|
|
101
|
+
world_state_sha256: string;
|
|
102
|
+
mutation_count: string;
|
|
103
|
+
durable: boolean;
|
|
104
|
+
_unknownFields?: {
|
|
105
|
+
[key: number]: Uint8Array[];
|
|
106
|
+
} | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface PartyTriggerExecutionReceipt {
|
|
109
|
+
receipt_sha256: string;
|
|
110
|
+
program_sha256: string;
|
|
111
|
+
action_count: string;
|
|
112
|
+
durable: boolean;
|
|
113
|
+
_unknownFields?: {
|
|
114
|
+
[key: number]: Uint8Array[];
|
|
115
|
+
} | undefined;
|
|
116
|
+
}
|
|
117
|
+
export interface PartySavCommitReceipt {
|
|
118
|
+
receipt_sha256: string;
|
|
119
|
+
generation: string;
|
|
120
|
+
manifest_sha256: string;
|
|
121
|
+
immutable_readback_sha256: string;
|
|
122
|
+
durable: boolean;
|
|
123
|
+
_unknownFields?: {
|
|
124
|
+
[key: number]: Uint8Array[];
|
|
125
|
+
} | undefined;
|
|
126
|
+
}
|
|
127
|
+
export interface PartyAuthorityCommit {
|
|
128
|
+
capability?: PartyAuthorityCapability | undefined;
|
|
129
|
+
intent_id: string;
|
|
130
|
+
base_generation: string;
|
|
131
|
+
next_generation: string;
|
|
132
|
+
next_world_state_sha256: string;
|
|
133
|
+
next_worldline_id: string;
|
|
134
|
+
next_worldline_head_sha256: string;
|
|
135
|
+
sealed_operation_sha256: string;
|
|
136
|
+
turn_commit?: PartyTurnCommitReceipt | undefined;
|
|
137
|
+
trigger_execution?: PartyTriggerExecutionReceipt | undefined;
|
|
138
|
+
sav_commit?: PartySavCommitReceipt | undefined;
|
|
139
|
+
commit_receipt_sha256: string;
|
|
140
|
+
_unknownFields?: {
|
|
141
|
+
[key: number]: Uint8Array[];
|
|
142
|
+
} | undefined;
|
|
143
|
+
}
|
|
144
|
+
export interface PartyAuthoritySyncRequest {
|
|
145
|
+
capability?: PartyAuthorityCapability | undefined;
|
|
146
|
+
cursor?: PartyAuthorityHead | undefined;
|
|
147
|
+
host_connection_id: string;
|
|
148
|
+
host_epoch: string;
|
|
149
|
+
_unknownFields?: {
|
|
150
|
+
[key: number]: Uint8Array[];
|
|
151
|
+
} | undefined;
|
|
152
|
+
}
|
|
153
|
+
export interface PartyAuthorityRelease {
|
|
154
|
+
capability?: PartyAuthorityCapability | undefined;
|
|
155
|
+
_unknownFields?: {
|
|
156
|
+
[key: number]: Uint8Array[];
|
|
157
|
+
} | undefined;
|
|
158
|
+
}
|
|
159
|
+
export interface PartyAuthorityRequest {
|
|
160
|
+
request_id: string;
|
|
161
|
+
protocol_version: number;
|
|
162
|
+
expected_authority_revision: string;
|
|
163
|
+
admission?: PartyAuthorityAdmission | undefined;
|
|
164
|
+
submit_intent?: PartyAuthorityIntent | undefined;
|
|
165
|
+
commit_intent?: PartyAuthorityCommit | undefined;
|
|
166
|
+
sync?: PartyAuthoritySyncRequest | undefined;
|
|
167
|
+
release?: PartyAuthorityRelease | undefined;
|
|
168
|
+
_unknownFields?: {
|
|
169
|
+
[key: number]: Uint8Array[];
|
|
170
|
+
} | undefined;
|
|
171
|
+
}
|
|
172
|
+
export interface PartyAuthorityAdmitted {
|
|
173
|
+
capability?: PartyAuthorityCapability | undefined;
|
|
174
|
+
host_connection_id: string;
|
|
175
|
+
host_epoch: string;
|
|
176
|
+
head?: PartyAuthorityHead | undefined;
|
|
177
|
+
_unknownFields?: {
|
|
178
|
+
[key: number]: Uint8Array[];
|
|
179
|
+
} | undefined;
|
|
180
|
+
}
|
|
181
|
+
export interface PartyAuthorityIntentAccepted {
|
|
182
|
+
intent_id: string;
|
|
183
|
+
accepted_event_sequence: string;
|
|
184
|
+
_unknownFields?: {
|
|
185
|
+
[key: number]: Uint8Array[];
|
|
186
|
+
} | undefined;
|
|
187
|
+
}
|
|
188
|
+
export interface PartyAuthorityIntentCommitted {
|
|
189
|
+
intent_id: string;
|
|
190
|
+
head?: PartyAuthorityHead | undefined;
|
|
191
|
+
turn_commit_receipt_sha256: string;
|
|
192
|
+
trigger_receipt_sha256: string;
|
|
193
|
+
sav_receipt_sha256: string;
|
|
194
|
+
commit_receipt_sha256: string;
|
|
195
|
+
_unknownFields?: {
|
|
196
|
+
[key: number]: Uint8Array[];
|
|
197
|
+
} | undefined;
|
|
198
|
+
}
|
|
199
|
+
export interface PartyAuthoritySyncState {
|
|
200
|
+
mode: string;
|
|
201
|
+
head?: PartyAuthorityHead | undefined;
|
|
202
|
+
host_connection_id: string;
|
|
203
|
+
host_epoch: string;
|
|
204
|
+
pending_intent_ids: string[];
|
|
205
|
+
checkpoint_id: string;
|
|
206
|
+
event_count: string;
|
|
207
|
+
has_more: boolean;
|
|
208
|
+
_unknownFields?: {
|
|
209
|
+
[key: number]: Uint8Array[];
|
|
210
|
+
} | undefined;
|
|
211
|
+
}
|
|
212
|
+
export interface PartyAuthorityReleased {
|
|
213
|
+
connection_id: string;
|
|
214
|
+
released: boolean;
|
|
215
|
+
next_host_connection_id: string;
|
|
216
|
+
host_epoch: string;
|
|
217
|
+
_unknownFields?: {
|
|
218
|
+
[key: number]: Uint8Array[];
|
|
219
|
+
} | undefined;
|
|
220
|
+
}
|
|
221
|
+
export interface PartyAuthorityError {
|
|
222
|
+
code: string;
|
|
223
|
+
message: string;
|
|
224
|
+
current_authority_revision: string;
|
|
225
|
+
retryable: boolean;
|
|
226
|
+
_unknownFields?: {
|
|
227
|
+
[key: number]: Uint8Array[];
|
|
228
|
+
} | undefined;
|
|
229
|
+
}
|
|
230
|
+
export interface PartyAuthorityResponse {
|
|
231
|
+
request_id: string;
|
|
232
|
+
protocol_version: number;
|
|
233
|
+
previous_authority_revision: string;
|
|
234
|
+
committed_authority_revision: string;
|
|
235
|
+
snapshot_sha256: string;
|
|
236
|
+
replayed: boolean;
|
|
237
|
+
admitted?: PartyAuthorityAdmitted | undefined;
|
|
238
|
+
intent_accepted?: PartyAuthorityIntentAccepted | undefined;
|
|
239
|
+
intent_committed?: PartyAuthorityIntentCommitted | undefined;
|
|
240
|
+
sync?: PartyAuthoritySyncState | undefined;
|
|
241
|
+
released?: PartyAuthorityReleased | undefined;
|
|
242
|
+
error?: PartyAuthorityError | undefined;
|
|
243
|
+
_unknownFields?: {
|
|
244
|
+
[key: number]: Uint8Array[];
|
|
245
|
+
} | undefined;
|
|
246
|
+
}
|
|
247
|
+
/** 客户端 -> 服务端 frame plaintext 解密后内容 */
|
|
248
|
+
export interface ClientPayload {
|
|
249
|
+
hello?: ClientPayload_Hello | undefined;
|
|
250
|
+
chat?: ClientPayload_Chat | undefined;
|
|
251
|
+
clear?: ClientPayload_Clear | undefined;
|
|
252
|
+
ping?: ClientPayload_Ping | undefined;
|
|
253
|
+
tool_result?: ClientPayload_ToolResult | undefined;
|
|
254
|
+
party_join?: ClientPayload_PartyJoin | undefined;
|
|
255
|
+
party_leave?: ClientPayload_PartyLeave | undefined;
|
|
256
|
+
world_save_commit?: ClientPayload_WorldSaveCommit | undefined;
|
|
257
|
+
/** 单设备 edit lock + 单会话 running lock (issue 06) */
|
|
258
|
+
acquire_edit_lock?: ClientPayload_AcquireEditLock | undefined;
|
|
259
|
+
release_edit_lock?: ClientPayload_ReleaseEditLock | undefined;
|
|
260
|
+
force_take_lock?: ClientPayload_ForceTakeLock | undefined;
|
|
261
|
+
set_running_session?: ClientPayload_SetRunningSession | undefined;
|
|
262
|
+
/** ADR-0076 extraction rollback ack */
|
|
263
|
+
extraction_rollback_ack?: ClientPayload_ExtractionRollbackAck | undefined;
|
|
264
|
+
extraction_only?: ClientPayload_ExtractionOnly | undefined;
|
|
265
|
+
/** ADR-0058 多人协调线 客户端帧 (Phase 2 as-built tag 顺延 main 0067/0076 后) */
|
|
266
|
+
scene_claim_request?: ClientPayload_SceneClaimRequest | undefined;
|
|
267
|
+
scene_claim_release?: ClientPayload_SceneClaimRelease | undefined;
|
|
268
|
+
turn_claim?: ClientPayload_TurnClaim | undefined;
|
|
269
|
+
action_resolution?: ClientPayload_ActionResolution | undefined;
|
|
270
|
+
/** ADR-0133 权威世界时钟 客户端上报推进值 (tag 19 预留第一条线 PresencePing 本线取 20 branch-merger 可 renumber) */
|
|
271
|
+
world_clock_advance?: ClientPayload_WorldClockAdvance | undefined;
|
|
272
|
+
/** ADR-0133 决策三 LLM 声明全图事件 (tag 19 预留第一条线 Presence 本线取 21 branch-merger 可 renumber) */
|
|
273
|
+
global_event_declare?: ClientPayload_GlobalEventDeclare | undefined;
|
|
274
|
+
/**
|
|
275
|
+
* recall-mechanism-redesign M1-06 客户端在 embedding-queue.drain(turnId) 完成 + wasm.applyWorldEvent 全部 resolve 后主动发出
|
|
276
|
+
* 服务端 30s 内回 ServerCommitDone → barrier done 超时追发 ServerCommitError ETIMEOUT → barrier failed
|
|
277
|
+
*/
|
|
278
|
+
commit_ack?: ClientPayload_CommitAck | undefined;
|
|
279
|
+
web_rtc_signal?: ClientPayload_WebRtcSignal | undefined;
|
|
280
|
+
host_metrics_report?: ClientPayload_HostMetricsReport | undefined;
|
|
281
|
+
state_intent?: ClientPayload_StateIntent | undefined;
|
|
282
|
+
state_commit?: ClientPayload_StateCommit | undefined;
|
|
283
|
+
snapshot_applied?: ClientPayload_SnapshotApplied | undefined;
|
|
284
|
+
relay_envelope?: ClientPayload_RelayEnvelope | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* L0 ReliableWsTransport:按 operation request_id 取消服务端工作。
|
|
287
|
+
* scope 是服务端校验的闭合域标识:chat / extraction / commit / creator_agent / mcp,不得为空。
|
|
288
|
+
*/
|
|
289
|
+
cancel_request?: ClientPayload_CancelRequest | undefined;
|
|
290
|
+
party_authority_request?: PartyAuthorityRequest | undefined;
|
|
291
|
+
/**
|
|
292
|
+
* Typed terminal receipt for a host-issued WorldMemory change proposal.
|
|
293
|
+
* The legacy ToolResult/world_event_emit path is compatibility-only.
|
|
294
|
+
*/
|
|
295
|
+
world_memory_change_receipt?: WorldMemoryChangeReceipt | undefined;
|
|
296
|
+
presentation_plan_ack?: ClientPayload_PresentationPlanAck | undefined;
|
|
297
|
+
_unknownFields?: {
|
|
298
|
+
[key: number]: Uint8Array[];
|
|
299
|
+
} | undefined;
|
|
300
|
+
}
|
|
301
|
+
export interface ClientPayload_Hello {
|
|
302
|
+
resume: boolean;
|
|
303
|
+
/**
|
|
304
|
+
* codec v2 only creator 入口范围 "scenario" / "view" 缺省按 scenario 兜底
|
|
305
|
+
* 决定 supervisor handoff 工具集与拒绝话术 见 agent_entry_routing.rs
|
|
306
|
+
*/
|
|
307
|
+
entry_scope: string;
|
|
308
|
+
/** 缺省表示 legacy 客户端:仅允许当前固定只读/既有工具,不得下发新增 effect 工具。 */
|
|
309
|
+
mcp_capabilities?: McpSessionCapabilities | undefined;
|
|
310
|
+
_unknownFields?: {
|
|
311
|
+
[key: number]: Uint8Array[];
|
|
312
|
+
} | undefined;
|
|
313
|
+
}
|
|
314
|
+
export interface ClientPayload_CancelRequest {
|
|
315
|
+
request_id: string;
|
|
316
|
+
/**
|
|
317
|
+
* canonical: chat | extraction | commit | creator_agent | mcp
|
|
318
|
+
* scope=mcp 时 request_id 必须等于 McpToolCall.call_id。
|
|
319
|
+
*/
|
|
320
|
+
scope: string;
|
|
321
|
+
_unknownFields?: {
|
|
322
|
+
[key: number]: Uint8Array[];
|
|
323
|
+
} | undefined;
|
|
324
|
+
}
|
|
325
|
+
export interface ClientPayload_Chat {
|
|
326
|
+
prompt: string;
|
|
327
|
+
model_id: string;
|
|
328
|
+
script_id: string;
|
|
329
|
+
save_id: string;
|
|
330
|
+
meta_json: Uint8Array;
|
|
331
|
+
/** codec v2 only 用于 SSE shim 关联 chunk/done/handoff/tool_call 帧 v1 编码留空 */
|
|
332
|
+
request_id: string;
|
|
333
|
+
attachments: AttachmentRef[];
|
|
334
|
+
/** codec v2 only DeepSeek V4 thinking 模式开关 None 表客户端未指定 v1 编码留空 */
|
|
335
|
+
thinking_enabled?: boolean | undefined;
|
|
336
|
+
/** codec v2 only DeepSeek V4 reasoning_effort 取值 "high" | "max" 缺省留空 */
|
|
337
|
+
reasoning_effort?: string | undefined;
|
|
338
|
+
/** codec v2 only DeepSeek max_tokens 硬上限 预算功能 None 表未设 v1 编码留空 */
|
|
339
|
+
max_tokens?: number | undefined;
|
|
340
|
+
/** 多人 director 协调用 scenario_session_id 关联 DoParty DO None 表单人 v1 编码留空 */
|
|
341
|
+
scenario_session_id?: string | undefined;
|
|
342
|
+
/** 客户端召回/提取管线模型 override 缺省走服务端 env 默认值 None/空表未指定 v1 编码留空 */
|
|
343
|
+
recall_model_id?: string | undefined;
|
|
344
|
+
/**
|
|
345
|
+
* 剧本作者系统提示词全文 (JSON 数组 [{kind,name,content}]) 客户端 wasm 解密后每帧携带
|
|
346
|
+
* 后端拼进 director system prompt 见 PRD scenario-author-system-prompts §5
|
|
347
|
+
* v1 编码留空 空串表未设/旧客户端
|
|
348
|
+
*/
|
|
349
|
+
author_system_prompts_json?: string | undefined;
|
|
350
|
+
/** 玩家侧召回上限设置 (issue 04) best-effort 收窄 subagent 循环 vector_search/graph_rag_search 的 top_k */
|
|
351
|
+
recall_top_k_cap?: number | undefined;
|
|
352
|
+
/** 玩家侧回复风格设置 (issue 09) best-effort 查 D1 reply_style_versions 注入 director system prompt */
|
|
353
|
+
reply_style_id?: string | undefined;
|
|
354
|
+
/** ADR-0128 issue 09 摄影氛围 agent 门控 玩家 modal ScopeBucket.autoCgEnabled 上传 None/false 表关 不派摄影 */
|
|
355
|
+
auto_cg_enabled?: boolean | undefined;
|
|
356
|
+
/** ADR-0128 issue 09 摄影出图模型 override 玩家 modal ScopeBucket.cgModelId 空表用服务端默认 CF_AI_IMAGE_MODEL */
|
|
357
|
+
cg_model_id?: string | undefined;
|
|
358
|
+
/** ADR-0128 issue 10 台词氛围 agent 门控 玩家 modal ScopeBucket.autoTtsEnabled 上传 (issue 10 消费 本 issue 仅占位) */
|
|
359
|
+
auto_tts_enabled?: boolean | undefined;
|
|
360
|
+
/** ADR-0128 issue 10 台词配音模型 override 玩家 modal ScopeBucket.ttsModelId (issue 10 消费 本 issue 仅占位) */
|
|
361
|
+
tts_model_id?: string | undefined;
|
|
362
|
+
cg_lora_urns: ClientPayload_LoraRef[];
|
|
363
|
+
/**
|
|
364
|
+
* media-gen-settings-completion issue 01 CG 玩家基础正/负提示词 (追加式 DEC-1)
|
|
365
|
+
* 空/缺省表未设 后端 merge_player_base_prompt 前置追加到 LLM 场景 tag 拼接后过 POSITIVE_MAX
|
|
366
|
+
*/
|
|
367
|
+
cg_base_positive?: string | undefined;
|
|
368
|
+
cg_base_negative?: string | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* media-gen-settings-completion issue 01 CG 分辨率/步数 (覆盖式 DEC-2) 0/缺省=跟随 AI 不覆盖
|
|
371
|
+
* 宽高需成对 >0 才覆盖 (过 snap_dimension) 步数 >0 覆盖 (clamp STEPS_MIN/MAX)
|
|
372
|
+
*/
|
|
373
|
+
cg_width?: number | undefined;
|
|
374
|
+
cg_height?: number | undefined;
|
|
375
|
+
cg_steps?: number | undefined;
|
|
376
|
+
/**
|
|
377
|
+
* media-gen-settings-completion issue 04 TTS 单轮语音段数上限 (1-10 默认 3 DEC-5)
|
|
378
|
+
* 后端 effective_segment_limit clamp 后作合成段数真实上限 缺省=默认 3
|
|
379
|
+
*/
|
|
380
|
+
tts_max_segments?: number | undefined;
|
|
381
|
+
tts_voice_overrides: ClientPayload_TtsVoiceOverride[];
|
|
382
|
+
/**
|
|
383
|
+
* 剧本作者预定义事件列表 (JSON 数组 [{event_id,label,description}]) 客户端 wasm 解密后每帧携带 供 extraction LLM 匹配 event_id
|
|
384
|
+
* WTE-05a v1 编码留空 空串表未设/旧客户端 顺延占用 28 (原分支内为 20 因与 media-gen-settings-completion 撞号顺延)
|
|
385
|
+
*/
|
|
386
|
+
event_defs_json?: string | undefined;
|
|
387
|
+
/**
|
|
388
|
+
* 当前作者视图已绑定且 target=llm/both 的 Director 工具,以及宿主只读状态投影。
|
|
389
|
+
* 服务端只把经限额和冲突校验后的 schema 追加给玩家 Director;其他 agent 不消费。
|
|
390
|
+
*/
|
|
391
|
+
director_tools_json?: string | undefined;
|
|
392
|
+
/** 玩家/编辑器试玩 Agent completion 温度,合法范围 0..2;缺省兼容旧客户端。 */
|
|
393
|
+
temperature?: number | undefined;
|
|
394
|
+
/** 宿主为本轮聊天绑定的当前世界线。旧客户端可缺省;生产入口会在后续校验该作用域。 */
|
|
395
|
+
active_worldline_id?: string | undefined;
|
|
396
|
+
/** 宿主当前加载的已审核剧本产物身份 canonical_digest。旧客户端可缺省;生产入口会在后续校验该作用域。 */
|
|
397
|
+
scenario_artifact_sha256?: string | undefined;
|
|
398
|
+
/** Player 为每个 Chat request 仅捕获一次本地世界修订号。 */
|
|
399
|
+
base_world_revision?: string | undefined;
|
|
400
|
+
/** base_world_revision 对应的 canonical 小写 SHA-256;两项必须成对出现。 */
|
|
401
|
+
base_world_sha256?: string | undefined;
|
|
402
|
+
/**
|
|
403
|
+
* ADR-0119 玩家界面语言;仅允许 en/de/fr/et/zh-CN/zh-TW/ja/ko/ru/es,缺失或空串按旧客户端语义处理。
|
|
404
|
+
* 消费端必须按上述固定白名单校验,任意其他文本不得拼入 prompt 或系统提示词。
|
|
405
|
+
*/
|
|
406
|
+
user_locale?: string | undefined;
|
|
407
|
+
_unknownFields?: {
|
|
408
|
+
[key: number]: Uint8Array[];
|
|
409
|
+
} | undefined;
|
|
410
|
+
}
|
|
411
|
+
export interface ClientPayload_LoraRef {
|
|
412
|
+
urn: string;
|
|
413
|
+
strength_milli: number;
|
|
414
|
+
_unknownFields?: {
|
|
415
|
+
[key: number]: Uint8Array[];
|
|
416
|
+
} | undefined;
|
|
417
|
+
}
|
|
418
|
+
export interface ClientPayload_TtsVoiceOverride {
|
|
419
|
+
speaker_name: string;
|
|
420
|
+
fish_model_id: string;
|
|
421
|
+
_unknownFields?: {
|
|
422
|
+
[key: number]: Uint8Array[];
|
|
423
|
+
} | undefined;
|
|
424
|
+
}
|
|
425
|
+
export interface ClientPayload_Clear {
|
|
426
|
+
_unknownFields?: {
|
|
427
|
+
[key: number]: Uint8Array[];
|
|
428
|
+
} | undefined;
|
|
429
|
+
}
|
|
430
|
+
export interface ClientPayload_Ping {
|
|
431
|
+
ts: string;
|
|
432
|
+
_unknownFields?: {
|
|
433
|
+
[key: number]: Uint8Array[];
|
|
434
|
+
} | undefined;
|
|
435
|
+
}
|
|
436
|
+
export interface ClientPayload_ToolResult {
|
|
437
|
+
call_id: string;
|
|
438
|
+
ok: boolean;
|
|
439
|
+
content_json: Uint8Array;
|
|
440
|
+
error: string;
|
|
441
|
+
/** codec v2 only 关联跨多 agent tool 调用循环 v1 编码留空 */
|
|
442
|
+
request_id: string;
|
|
443
|
+
_unknownFields?: {
|
|
444
|
+
[key: number]: Uint8Array[];
|
|
445
|
+
} | undefined;
|
|
446
|
+
}
|
|
447
|
+
export interface ClientPayload_PartyJoin {
|
|
448
|
+
scenario_session_id: string;
|
|
449
|
+
scenario_id: string;
|
|
450
|
+
last_generation: string;
|
|
451
|
+
last_sha256: string;
|
|
452
|
+
pending_intent_ids: string[];
|
|
453
|
+
_unknownFields?: {
|
|
454
|
+
[key: number]: Uint8Array[];
|
|
455
|
+
} | undefined;
|
|
456
|
+
}
|
|
457
|
+
export interface ClientPayload_PartyLeave {
|
|
458
|
+
scenario_session_id: string;
|
|
459
|
+
_unknownFields?: {
|
|
460
|
+
[key: number]: Uint8Array[];
|
|
461
|
+
} | undefined;
|
|
462
|
+
}
|
|
463
|
+
export interface ClientPayload_WorldSaveCommit {
|
|
464
|
+
world_save_bin: Uint8Array;
|
|
465
|
+
sha256: string;
|
|
466
|
+
entity_count: string;
|
|
467
|
+
relation_count: string;
|
|
468
|
+
_unknownFields?: {
|
|
469
|
+
[key: number]: Uint8Array[];
|
|
470
|
+
} | undefined;
|
|
471
|
+
}
|
|
472
|
+
/** WebRTC 信令只经 PartyDo 定向中继,不参与房间数据面。 */
|
|
473
|
+
export interface ClientPayload_WebRtcSignal {
|
|
474
|
+
kind: string;
|
|
475
|
+
to_user_id: string;
|
|
476
|
+
sdp: string;
|
|
477
|
+
candidate: string;
|
|
478
|
+
sdp_mid: string;
|
|
479
|
+
sdp_m_line_index: number;
|
|
480
|
+
_unknownFields?: {
|
|
481
|
+
[key: number]: Uint8Array[];
|
|
482
|
+
} | undefined;
|
|
483
|
+
}
|
|
484
|
+
/** 客户端完成全连接测量后上报自身候选得分;PartyDo 只接受覆盖全体在线成员的报告。 */
|
|
485
|
+
export interface ClientPayload_HostMetricsReport {
|
|
486
|
+
score_millis: string;
|
|
487
|
+
measured_member_ids: string[];
|
|
488
|
+
observed_host_epoch: string;
|
|
489
|
+
_unknownFields?: {
|
|
490
|
+
[key: number]: Uint8Array[];
|
|
491
|
+
} | undefined;
|
|
492
|
+
}
|
|
493
|
+
export interface ClientPayload_StateIntent {
|
|
494
|
+
intent_id: string;
|
|
495
|
+
host_epoch: string;
|
|
496
|
+
base_generation: string;
|
|
497
|
+
scene_id: string;
|
|
498
|
+
conflict_keys: string[];
|
|
499
|
+
action: string;
|
|
500
|
+
payload_json: Uint8Array;
|
|
501
|
+
_unknownFields?: {
|
|
502
|
+
[key: number]: Uint8Array[];
|
|
503
|
+
} | undefined;
|
|
504
|
+
}
|
|
505
|
+
/** 只有当前 hostEpoch 的房主可提交;patches_json 是所有客户端应用的同一确定性变更。 */
|
|
506
|
+
export interface ClientPayload_StateCommit {
|
|
507
|
+
commit_id: string;
|
|
508
|
+
host_epoch: string;
|
|
509
|
+
base_generation: string;
|
|
510
|
+
generation: string;
|
|
511
|
+
event_seq: string;
|
|
512
|
+
intent_ids: string[];
|
|
513
|
+
patches_json: Uint8Array;
|
|
514
|
+
resulting_sha256: string;
|
|
515
|
+
source: string;
|
|
516
|
+
checkpoint_bytes: Uint8Array;
|
|
517
|
+
_unknownFields?: {
|
|
518
|
+
[key: number]: Uint8Array[];
|
|
519
|
+
} | undefined;
|
|
520
|
+
}
|
|
521
|
+
export interface ClientPayload_SnapshotApplied {
|
|
522
|
+
generation: string;
|
|
523
|
+
sha256: string;
|
|
524
|
+
_unknownFields?: {
|
|
525
|
+
[key: number]: Uint8Array[];
|
|
526
|
+
} | undefined;
|
|
527
|
+
}
|
|
528
|
+
/** WebRTC/TURN 均不可用时复用相同的上层协议走 PartyDo WebSocket relay。 */
|
|
529
|
+
export interface ClientPayload_RelayEnvelope {
|
|
530
|
+
to_user_id: string;
|
|
531
|
+
channel: string;
|
|
532
|
+
message_id: string;
|
|
533
|
+
payload: Uint8Array;
|
|
534
|
+
_unknownFields?: {
|
|
535
|
+
[key: number]: Uint8Array[];
|
|
536
|
+
} | undefined;
|
|
537
|
+
}
|
|
538
|
+
/** 申请单设备 edit lock 同账号空 holder 直接获得 否则收到 LockHeld */
|
|
539
|
+
export interface ClientPayload_AcquireEditLock {
|
|
540
|
+
request_id: string;
|
|
541
|
+
device_id: string;
|
|
542
|
+
device_label: string;
|
|
543
|
+
_unknownFields?: {
|
|
544
|
+
[key: number]: Uint8Array[];
|
|
545
|
+
} | undefined;
|
|
546
|
+
}
|
|
547
|
+
/** 主动释放 edit lock 仅持有者发送 让出 holder 槽 同账号其他设备可立即接管 */
|
|
548
|
+
export interface ClientPayload_ReleaseEditLock {
|
|
549
|
+
request_id: string;
|
|
550
|
+
device_id: string;
|
|
551
|
+
_unknownFields?: {
|
|
552
|
+
[key: number]: Uint8Array[];
|
|
553
|
+
} | undefined;
|
|
554
|
+
}
|
|
555
|
+
/** 强夺 edit lock 同账号 异设备 用户确认接管时发 旧持有者收到 LockLost */
|
|
556
|
+
export interface ClientPayload_ForceTakeLock {
|
|
557
|
+
request_id: string;
|
|
558
|
+
device_id: string;
|
|
559
|
+
device_label: string;
|
|
560
|
+
_unknownFields?: {
|
|
561
|
+
[key: number]: Uint8Array[];
|
|
562
|
+
} | undefined;
|
|
563
|
+
}
|
|
564
|
+
/** 设置/清除单会话 running 锁 session_id 空表 stream 结束 */
|
|
565
|
+
export interface ClientPayload_SetRunningSession {
|
|
566
|
+
request_id: string;
|
|
567
|
+
session_id: string;
|
|
568
|
+
device_id: string;
|
|
569
|
+
_unknownFields?: {
|
|
570
|
+
[key: number]: Uint8Array[];
|
|
571
|
+
} | undefined;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* ADR-0076 extraction rollback ack 玩家端 wasm.rollbackByMessage 返回结果
|
|
575
|
+
* v1 编码留空
|
|
576
|
+
*/
|
|
577
|
+
export interface ClientPayload_ExtractionRollbackAck {
|
|
578
|
+
request_id: string;
|
|
579
|
+
deleted_entities: string;
|
|
580
|
+
deleted_relations: string;
|
|
581
|
+
error: string;
|
|
582
|
+
_unknownFields?: {
|
|
583
|
+
[key: number]: Uint8Array[];
|
|
584
|
+
} | undefined;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* ADR-0076 Phase 2 编辑 assistant 消息触发 extraction-only 流式回写
|
|
588
|
+
* 不调主 LLM 仅基于已有 user 上文 + 编辑后 assistant 内容重新抽取 entity/relation/event
|
|
589
|
+
* turn_id / extraction_message_id 由客户端生成 server 透传给 ExtractionPipeline
|
|
590
|
+
* v1 编码留空 (player codec v2 才会发)
|
|
591
|
+
*/
|
|
592
|
+
export interface ClientPayload_ExtractionOnly {
|
|
593
|
+
text: string;
|
|
594
|
+
script_id: string;
|
|
595
|
+
save_id: string;
|
|
596
|
+
assistant_message_id: string;
|
|
597
|
+
extraction_message_id: string;
|
|
598
|
+
turn_id: string;
|
|
599
|
+
request_id: string;
|
|
600
|
+
_unknownFields?: {
|
|
601
|
+
[key: number]: Uint8Array[];
|
|
602
|
+
} | undefined;
|
|
603
|
+
}
|
|
604
|
+
/** 多人 同场景独占占用申请 deadline_ts 为客户端期望 lease 截止 (ADR-0058 协调线) */
|
|
605
|
+
export interface ClientPayload_SceneClaimRequest {
|
|
606
|
+
scene_id: string;
|
|
607
|
+
deadline_ts: string;
|
|
608
|
+
_unknownFields?: {
|
|
609
|
+
[key: number]: Uint8Array[];
|
|
610
|
+
} | undefined;
|
|
611
|
+
}
|
|
612
|
+
/** 主动释放 scene claim 仅当前 lease 持有者发送 */
|
|
613
|
+
export interface ClientPayload_SceneClaimRelease {
|
|
614
|
+
scene_id: string;
|
|
615
|
+
lease: string;
|
|
616
|
+
_unknownFields?: {
|
|
617
|
+
[key: number]: Uint8Array[];
|
|
618
|
+
} | undefined;
|
|
619
|
+
}
|
|
620
|
+
/** 回合发起申请 deadline_ts 为客户端期望回合截止 */
|
|
621
|
+
export interface ClientPayload_TurnClaim {
|
|
622
|
+
scene_id: string;
|
|
623
|
+
deadline_ts: string;
|
|
624
|
+
_unknownFields?: {
|
|
625
|
+
[key: number]: Uint8Array[];
|
|
626
|
+
} | undefined;
|
|
627
|
+
}
|
|
628
|
+
/** 玩家对 ActionConflict 仲裁结果的人工裁决 choice 取胜出方 actor_user_id */
|
|
629
|
+
export interface ClientPayload_ActionResolution {
|
|
630
|
+
conflict_id: string;
|
|
631
|
+
choice: string;
|
|
632
|
+
_unknownFields?: {
|
|
633
|
+
[key: number]: Uint8Array[];
|
|
634
|
+
} | undefined;
|
|
635
|
+
}
|
|
636
|
+
/** ADR-0133 决策一 客户端 parseAndAdvance 本地算出的世界时钟推进值上报 PartyDo 仲裁 (max 单调收敛) */
|
|
637
|
+
export interface ClientPayload_WorldClockAdvance {
|
|
638
|
+
proposed_seconds: string;
|
|
639
|
+
delta_seconds: string;
|
|
640
|
+
message_id: string;
|
|
641
|
+
_unknownFields?: {
|
|
642
|
+
[key: number]: Uint8Array[];
|
|
643
|
+
} | undefined;
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* ADR-0133 决策三 全图事件世界时间线事件 (地震/陨石等强制全员同步)
|
|
647
|
+
* trigger_at_seconds 世界时钟到此点触发 close_at_seconds 到此点自动结束 (必填 > trigger_at 防无限期)
|
|
648
|
+
*/
|
|
649
|
+
export interface ClientPayload_GlobalEvent {
|
|
650
|
+
event_id: string;
|
|
651
|
+
trigger_at_seconds: string;
|
|
652
|
+
close_at_seconds: string;
|
|
653
|
+
label: string;
|
|
654
|
+
_unknownFields?: {
|
|
655
|
+
[key: number]: Uint8Array[];
|
|
656
|
+
} | undefined;
|
|
657
|
+
}
|
|
658
|
+
/** ADR-0133 决策三 LLM 声明全图事件 经 PartyDo 校验 close_at > trigger_at 后调度 */
|
|
659
|
+
export interface ClientPayload_GlobalEventDeclare {
|
|
660
|
+
event?: ClientPayload_GlobalEvent | undefined;
|
|
661
|
+
_unknownFields?: {
|
|
662
|
+
[key: number]: Uint8Array[];
|
|
663
|
+
} | undefined;
|
|
664
|
+
}
|
|
665
|
+
export interface ClientPayload_PresentationPlanAck {
|
|
666
|
+
request_id: string;
|
|
667
|
+
assistant_message_id: string;
|
|
668
|
+
plan_sha256: Uint8Array;
|
|
669
|
+
ok: boolean;
|
|
670
|
+
_unknownFields?: {
|
|
671
|
+
[key: number]: Uint8Array[];
|
|
672
|
+
} | undefined;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* recall-mechanism-redesign M1-06 client → server barrier commit 完成回执
|
|
676
|
+
* extraction_message_id 关联本轮 ExtractionDone ok=false 时 error_code/error_message 说明客户端侧 commit 失败原因
|
|
677
|
+
*/
|
|
678
|
+
export interface ClientPayload_CommitAck {
|
|
679
|
+
turn_id: string;
|
|
680
|
+
extraction_message_id: string;
|
|
681
|
+
ok: boolean;
|
|
682
|
+
error_code: string;
|
|
683
|
+
error_message: string;
|
|
684
|
+
proposal_id: string;
|
|
685
|
+
failure_kind: ClientPayload_CommitAck_FailureKind;
|
|
686
|
+
observed_revision?: WorldRevision | undefined;
|
|
687
|
+
receipt_sha256: Uint8Array;
|
|
688
|
+
_unknownFields?: {
|
|
689
|
+
[key: number]: Uint8Array[];
|
|
690
|
+
} | undefined;
|
|
691
|
+
}
|
|
692
|
+
export declare enum ClientPayload_CommitAck_FailureKind {
|
|
693
|
+
FAILURE_KIND_UNSPECIFIED = 0,
|
|
694
|
+
FAILURE_KIND_REVISION_CONFLICT = 1,
|
|
695
|
+
FAILURE_KIND_VALIDATION = 2,
|
|
696
|
+
FAILURE_KIND_AUTHORITY = 3,
|
|
697
|
+
FAILURE_KIND_DURABILITY = 4,
|
|
698
|
+
FAILURE_KIND_INTEGRITY = 5,
|
|
699
|
+
FAILURE_KIND_SESSION_POISONED = 6,
|
|
700
|
+
FAILURE_KIND_FORWARD_RECOVERY_PENDING = 7,
|
|
701
|
+
UNRECOGNIZED = -1
|
|
702
|
+
}
|
|
703
|
+
export declare function clientPayload_CommitAck_FailureKindFromJSON(object: any): ClientPayload_CommitAck_FailureKind;
|
|
704
|
+
export declare function clientPayload_CommitAck_FailureKindToJSON(object: ClientPayload_CommitAck_FailureKind): string;
|
|
705
|
+
/** 服务端 -> 客户端 frame plaintext 解密后内容 */
|
|
706
|
+
export interface ServerPayload {
|
|
707
|
+
hello_ack?: ServerPayload_HelloAck | undefined;
|
|
708
|
+
chunk?: ServerPayload_Chunk | undefined;
|
|
709
|
+
done?: ServerPayload_Done | undefined;
|
|
710
|
+
error?: ServerPayload_Error | undefined;
|
|
711
|
+
pong?: ServerPayload_Pong | undefined;
|
|
712
|
+
cleared?: ServerPayload_Cleared | undefined;
|
|
713
|
+
tool_call?: ServerPayload_ToolCall | undefined;
|
|
714
|
+
ping?: ServerPayload_Ping | undefined;
|
|
715
|
+
party_joined?: ServerPayload_PartyJoined | undefined;
|
|
716
|
+
party_member_joined?: ServerPayload_PartyMemberJoined | undefined;
|
|
717
|
+
party_member_left?: ServerPayload_PartyMemberLeft | undefined;
|
|
718
|
+
world_save_accepted?: ServerPayload_WorldSaveAccepted | undefined;
|
|
719
|
+
world_save_conflict?: ServerPayload_WorldSaveConflict | undefined;
|
|
720
|
+
world_event?: ServerPayload_WorldEvent | undefined;
|
|
721
|
+
inbox_update?: ServerPayload_InboxUpdate | undefined;
|
|
722
|
+
/** codec v2 only creator 多 agent handoff 事件 player codec v1 不发送 */
|
|
723
|
+
handoff?: ServerPayload_Handoff | undefined;
|
|
724
|
+
/** 单设备 edit lock + 单会话 running lock 应答 (issue 06) */
|
|
725
|
+
lock_acquired?: ServerPayload_LockAcquired | undefined;
|
|
726
|
+
lock_held?: ServerPayload_LockHeld | undefined;
|
|
727
|
+
lock_lost?: ServerPayload_LockLost | undefined;
|
|
728
|
+
running_session_set?: ServerPayload_RunningSessionSet | undefined;
|
|
729
|
+
view_build_complete?: ServerPayload_ViewBuildComplete | undefined;
|
|
730
|
+
/** ADR-0076 extraction 二次抽取 4 个 notify topic */
|
|
731
|
+
extraction_start?: ServerPayload_ExtractionStart | undefined;
|
|
732
|
+
extraction_done?: ServerPayload_ExtractionDone | undefined;
|
|
733
|
+
extraction_error?: ServerPayload_ExtractionError | undefined;
|
|
734
|
+
extraction_rollback?: ServerPayload_ExtractionRollback | undefined;
|
|
735
|
+
/** director 子代理探索进度旁路 独立于 Chunk delta 不混入未蒸馏文本 (ADR-0054 / ADR-0058) */
|
|
736
|
+
sub_agent_status?: ServerPayload_SubAgentStatus | undefined;
|
|
737
|
+
/** ADR-0067 信任设备调试豁免信封 三因子握手全过后 DO 首帧下发 客户端 Ed25519 验签 */
|
|
738
|
+
debug_exemption_grant?: ServerPayload_DebugExemptionGrant | undefined;
|
|
739
|
+
/** ADR-0058 多人协调线 服务端帧 (Phase 2 as-built tag 顺延 main 0067/0076 后) */
|
|
740
|
+
scene_claim_granted?: ServerPayload_SceneClaimGranted | undefined;
|
|
741
|
+
scene_claim_denied?: ServerPayload_SceneClaimDenied | undefined;
|
|
742
|
+
turn_granted?: ServerPayload_TurnGranted | undefined;
|
|
743
|
+
turn_expired?: ServerPayload_TurnExpired | undefined;
|
|
744
|
+
action_conflict?: ServerPayload_ActionConflict | undefined;
|
|
745
|
+
action_resolved?: ServerPayload_ActionResolved | undefined;
|
|
746
|
+
/** ADR-0075 联机大厅 RoomDo 房间状态变化广播 (玩家加入/退出/状态切换) */
|
|
747
|
+
room_state_changed?: ServerPayload_RoomStateChanged | undefined;
|
|
748
|
+
/**
|
|
749
|
+
* media-library-revamp 删媒体级联 disable 图谱对象广播 (决策B)
|
|
750
|
+
* 注: issue 文档写 tag=24 系基于陈旧 proto 快照 实际 oneof 已到 34 此处取下一空闲 35
|
|
751
|
+
*/
|
|
752
|
+
graph_disabled_broadcast?: ServerPayload_GraphDisabledBroadcast | undefined;
|
|
753
|
+
/**
|
|
754
|
+
* ADR-0128 issue 09 氛围 agent 出图/媒体旁路 与导演 write_scene Chunk 并行 不阻塞主聊天流
|
|
755
|
+
* 注: 与 media-library-revamp graph_disabled_broadcast=35 合并冲突 顺延占用 36
|
|
756
|
+
*/
|
|
757
|
+
ambience_media?: ServerPayload_AmbienceMedia | undefined;
|
|
758
|
+
/**
|
|
759
|
+
* ADR-0128 issue 11 场景 agent 人偶状态覆盖 直接映射 PngtuberState 可演出子集 客户端应用到正在渲染的人偶
|
|
760
|
+
* 注: 顺延占用 37 (原 issue 分支内为 36 因与 graph_disabled_broadcast 撞号顺延)
|
|
761
|
+
*/
|
|
762
|
+
scene_state?: ServerPayload_SceneState | undefined;
|
|
763
|
+
/** ADR-0133 权威世界时钟 broadcast (tag 38 预留第一条线 PresenceList 本线取 39 branch-merger 可 renumber) */
|
|
764
|
+
world_clock_tick?: ServerPayload_WorldClockTick | undefined;
|
|
765
|
+
/** ADR-0133 决策三 全图事件生命周期广播 (tag 38 预留第一条线 本线取 40-42 branch-merger 可 renumber) */
|
|
766
|
+
global_event_scheduled?: ServerPayload_GlobalEventScheduled | undefined;
|
|
767
|
+
global_event_activated?: ServerPayload_GlobalEventActivated | undefined;
|
|
768
|
+
global_event_closed?: ServerPayload_GlobalEventClosed | undefined;
|
|
769
|
+
/**
|
|
770
|
+
* recall-mechanism-redesign M1-06 barrier commit 双帧
|
|
771
|
+
* ServerCommitDone 客户端收 CommitAck 30s 内回发 → barrier done
|
|
772
|
+
* ServerCommitError 30s 未收 CommitAck 或 CommitAck.ok=false → barrier failed (stage=commit_ack | ack_timeout)
|
|
773
|
+
*/
|
|
774
|
+
commit_done?: ServerPayload_CommitDone | undefined;
|
|
775
|
+
commit_error?: ServerPayload_CommitError | undefined;
|
|
776
|
+
web_rtc_signal?: ServerPayload_WebRtcSignal | undefined;
|
|
777
|
+
host_changed?: ServerPayload_HostChanged | undefined;
|
|
778
|
+
party_sync?: ServerPayload_PartySync | undefined;
|
|
779
|
+
state_committed?: ServerPayload_StateCommitted | undefined;
|
|
780
|
+
intent_rejected?: ServerPayload_IntentRejected | undefined;
|
|
781
|
+
relay_envelope?: ServerPayload_RelayEnvelope | undefined;
|
|
782
|
+
/**
|
|
783
|
+
* codec v2 only creator provider HTTP 2xx acceptance receipt.
|
|
784
|
+
* The Edge computes counts and the ordered-name digest from its parsed
|
|
785
|
+
* request, so the Editor can detect silent truncation or reordering.
|
|
786
|
+
*/
|
|
787
|
+
provider_receipt?: ServerPayload_ProviderReceipt | undefined;
|
|
788
|
+
party_authority_response?: PartyAuthorityResponse | undefined;
|
|
789
|
+
/**
|
|
790
|
+
* Single typed mutation proposal. New clients must not receive a sequence
|
|
791
|
+
* of world_event_emit effect calls for the same logical operation.
|
|
792
|
+
*/
|
|
793
|
+
world_memory_change_proposal?: WorldMemoryChangeProposal | undefined;
|
|
794
|
+
presentation_plan_stage?: ServerPayload_PresentationPlanStage | undefined;
|
|
795
|
+
_unknownFields?: {
|
|
796
|
+
[key: number]: Uint8Array[];
|
|
797
|
+
} | undefined;
|
|
798
|
+
}
|
|
799
|
+
export interface ServerPayload_PresentationPlanStage {
|
|
800
|
+
request_id: string;
|
|
801
|
+
assistant_message_id: string;
|
|
802
|
+
plan: Uint8Array;
|
|
803
|
+
cue_plan: Uint8Array;
|
|
804
|
+
_unknownFields?: {
|
|
805
|
+
[key: number]: Uint8Array[];
|
|
806
|
+
} | undefined;
|
|
807
|
+
}
|
|
808
|
+
export interface ServerPayload_HistoryEntry {
|
|
809
|
+
role: string;
|
|
810
|
+
content: string;
|
|
811
|
+
created_at: string;
|
|
812
|
+
model_id: string;
|
|
813
|
+
_unknownFields?: {
|
|
814
|
+
[key: number]: Uint8Array[];
|
|
815
|
+
} | undefined;
|
|
816
|
+
}
|
|
817
|
+
export interface ServerPayload_HelloAck {
|
|
818
|
+
history: ServerPayload_HistoryEntry[];
|
|
819
|
+
server_ts: string;
|
|
820
|
+
/** codec v2 only 镜像 url query codec_version v1 编码为 0 */
|
|
821
|
+
codec_version: number;
|
|
822
|
+
/** codec v2 only 当前活跃 agent 名 player 单 agent 模式不写 */
|
|
823
|
+
active_agent: string;
|
|
824
|
+
/** 缺省仅用于兼容尚未升级的服务端;新版服务端对无 manifest 客户端返回 legacy=true。 */
|
|
825
|
+
mcp_capability_ack?: McpSessionCapabilityAck | undefined;
|
|
826
|
+
_unknownFields?: {
|
|
827
|
+
[key: number]: Uint8Array[];
|
|
828
|
+
} | undefined;
|
|
829
|
+
}
|
|
830
|
+
export interface ServerPayload_Chunk {
|
|
831
|
+
delta: string;
|
|
832
|
+
/** codec v2 only 关联 SSE chunk 与发起 request_id v1 编码留空 */
|
|
833
|
+
request_id: string;
|
|
834
|
+
_unknownFields?: {
|
|
835
|
+
[key: number]: Uint8Array[];
|
|
836
|
+
} | undefined;
|
|
837
|
+
}
|
|
838
|
+
export interface ServerPayload_Done {
|
|
839
|
+
input_tokens: string;
|
|
840
|
+
output_tokens: string;
|
|
841
|
+
charged_units: string;
|
|
842
|
+
finish_reason: string;
|
|
843
|
+
/** codec v2 only 关联 SSE 流终止 request_id v1 编码留空 */
|
|
844
|
+
request_id: string;
|
|
845
|
+
/** codec v2 only Done 时仍持有的 agent 名 v1 编码留空 */
|
|
846
|
+
active_agent: string;
|
|
847
|
+
/** DeepSeek V4 缓存命中 token 数 cost-meter 透传 default 0 */
|
|
848
|
+
cache_hit_tokens: string;
|
|
849
|
+
/** DeepSeek V4 推理(reasoning) token 数 cost-meter 透传 default 0 */
|
|
850
|
+
reasoning_tokens: string;
|
|
851
|
+
/**
|
|
852
|
+
* 扣费货币 取值 "CNY" / "USD" / "credit" 与 wallets.currency / token_usage.currency 对齐
|
|
853
|
+
* 由服务端从 wallet 真实读取 v1 编码留空 客户端按空字符串 fallback 默认显示货币
|
|
854
|
+
*/
|
|
855
|
+
currency: string;
|
|
856
|
+
_unknownFields?: {
|
|
857
|
+
[key: number]: Uint8Array[];
|
|
858
|
+
} | undefined;
|
|
859
|
+
}
|
|
860
|
+
export interface ServerPayload_ProviderReceipt {
|
|
861
|
+
request_id: string;
|
|
862
|
+
provider: string;
|
|
863
|
+
model: string;
|
|
864
|
+
http_status: number;
|
|
865
|
+
tools_count: number;
|
|
866
|
+
tool_names_sha256: string;
|
|
867
|
+
messages_count: number;
|
|
868
|
+
_unknownFields?: {
|
|
869
|
+
[key: number]: Uint8Array[];
|
|
870
|
+
} | undefined;
|
|
871
|
+
}
|
|
872
|
+
export interface ServerPayload_Error {
|
|
873
|
+
code: string;
|
|
874
|
+
message: string;
|
|
875
|
+
/** codec v2 only Error 关联的发起 request_id 可空 v1 编码留空 */
|
|
876
|
+
request_id: string;
|
|
877
|
+
_unknownFields?: {
|
|
878
|
+
[key: number]: Uint8Array[];
|
|
879
|
+
} | undefined;
|
|
880
|
+
}
|
|
881
|
+
export interface ServerPayload_Pong {
|
|
882
|
+
client_ts: string;
|
|
883
|
+
server_ts: string;
|
|
884
|
+
_unknownFields?: {
|
|
885
|
+
[key: number]: Uint8Array[];
|
|
886
|
+
} | undefined;
|
|
887
|
+
}
|
|
888
|
+
export interface ServerPayload_Cleared {
|
|
889
|
+
_unknownFields?: {
|
|
890
|
+
[key: number]: Uint8Array[];
|
|
891
|
+
} | undefined;
|
|
892
|
+
}
|
|
893
|
+
export interface ServerPayload_ToolCall {
|
|
894
|
+
call_id: string;
|
|
895
|
+
tool_name: string;
|
|
896
|
+
arguments_json: Uint8Array;
|
|
897
|
+
/** codec v2 only 发出 tool_call 的 agent 角色名 (solo / director / specialist 等) v1 默认空 */
|
|
898
|
+
agent_role: string;
|
|
899
|
+
/** codec v2 only 关联 SSE 流 v1 编码留空 */
|
|
900
|
+
request_id: string;
|
|
901
|
+
/**
|
|
902
|
+
* ADR-0076 codec v2 only ladybug entity/relation 写入时的 messageId (主 LLM = assistantMsgId / extraction = extractionMsgId)
|
|
903
|
+
* v1 编码留空 用 string "" 兜底 (proto3 无 optional)
|
|
904
|
+
*/
|
|
905
|
+
message_id: string;
|
|
906
|
+
/**
|
|
907
|
+
* ADR-0076 codec v2 only 本轮 turnId 主 LLM 与 extraction tool_call 共享
|
|
908
|
+
* v1 编码留空 用 string "" 兜底
|
|
909
|
+
*/
|
|
910
|
+
turn_id: string;
|
|
911
|
+
_unknownFields?: {
|
|
912
|
+
[key: number]: Uint8Array[];
|
|
913
|
+
} | undefined;
|
|
914
|
+
}
|
|
915
|
+
export interface ServerPayload_Ping {
|
|
916
|
+
ts: string;
|
|
917
|
+
_unknownFields?: {
|
|
918
|
+
[key: number]: Uint8Array[];
|
|
919
|
+
} | undefined;
|
|
920
|
+
}
|
|
921
|
+
export interface ServerPayload_PartyJoined {
|
|
922
|
+
scenario_session_id: string;
|
|
923
|
+
member_user_ids: string[];
|
|
924
|
+
world_snapshot: Uint8Array;
|
|
925
|
+
generation: string;
|
|
926
|
+
sha256: string;
|
|
927
|
+
host_epoch: string;
|
|
928
|
+
host_user_id: string;
|
|
929
|
+
_unknownFields?: {
|
|
930
|
+
[key: number]: Uint8Array[];
|
|
931
|
+
} | undefined;
|
|
932
|
+
}
|
|
933
|
+
export interface ServerPayload_PartyMemberJoined {
|
|
934
|
+
user_id: string;
|
|
935
|
+
_unknownFields?: {
|
|
936
|
+
[key: number]: Uint8Array[];
|
|
937
|
+
} | undefined;
|
|
938
|
+
}
|
|
939
|
+
export interface ServerPayload_PartyMemberLeft {
|
|
940
|
+
user_id: string;
|
|
941
|
+
_unknownFields?: {
|
|
942
|
+
[key: number]: Uint8Array[];
|
|
943
|
+
} | undefined;
|
|
944
|
+
}
|
|
945
|
+
export interface ServerPayload_WorldSaveAccepted {
|
|
946
|
+
sha256: string;
|
|
947
|
+
server_ts: string;
|
|
948
|
+
_unknownFields?: {
|
|
949
|
+
[key: number]: Uint8Array[];
|
|
950
|
+
} | undefined;
|
|
951
|
+
}
|
|
952
|
+
export interface ServerPayload_WorldSaveConflict {
|
|
953
|
+
ai_proposal_json: Uint8Array;
|
|
954
|
+
conflict_id: string;
|
|
955
|
+
_unknownFields?: {
|
|
956
|
+
[key: number]: Uint8Array[];
|
|
957
|
+
} | undefined;
|
|
958
|
+
}
|
|
959
|
+
export interface ServerPayload_WorldEvent {
|
|
960
|
+
actor_user_id: string;
|
|
961
|
+
payload: Uint8Array;
|
|
962
|
+
ts: string;
|
|
963
|
+
_unknownFields?: {
|
|
964
|
+
[key: number]: Uint8Array[];
|
|
965
|
+
} | undefined;
|
|
966
|
+
}
|
|
967
|
+
export interface ServerPayload_WebRtcSignal {
|
|
968
|
+
kind: string;
|
|
969
|
+
from_user_id: string;
|
|
970
|
+
sdp: string;
|
|
971
|
+
candidate: string;
|
|
972
|
+
sdp_mid: string;
|
|
973
|
+
sdp_m_line_index: number;
|
|
974
|
+
_unknownFields?: {
|
|
975
|
+
[key: number]: Uint8Array[];
|
|
976
|
+
} | undefined;
|
|
977
|
+
}
|
|
978
|
+
export interface ServerPayload_HostChanged {
|
|
979
|
+
host_user_id: string;
|
|
980
|
+
host_epoch: string;
|
|
981
|
+
reason: string;
|
|
982
|
+
_unknownFields?: {
|
|
983
|
+
[key: number]: Uint8Array[];
|
|
984
|
+
} | undefined;
|
|
985
|
+
}
|
|
986
|
+
/** mode: ok | snapshot。event tail 在 v1 由后续 StateCommitted 顺序补发。 */
|
|
987
|
+
export interface ServerPayload_PartySync {
|
|
988
|
+
mode: string;
|
|
989
|
+
generation: string;
|
|
990
|
+
sha256: string;
|
|
991
|
+
snapshot: Uint8Array;
|
|
992
|
+
event_seq: string;
|
|
993
|
+
_unknownFields?: {
|
|
994
|
+
[key: number]: Uint8Array[];
|
|
995
|
+
} | undefined;
|
|
996
|
+
}
|
|
997
|
+
export interface ServerPayload_StateCommitted {
|
|
998
|
+
commit_id: string;
|
|
999
|
+
host_epoch: string;
|
|
1000
|
+
base_generation: string;
|
|
1001
|
+
generation: string;
|
|
1002
|
+
event_seq: string;
|
|
1003
|
+
intent_ids: string[];
|
|
1004
|
+
patches_json: Uint8Array;
|
|
1005
|
+
resulting_sha256: string;
|
|
1006
|
+
source: string;
|
|
1007
|
+
_unknownFields?: {
|
|
1008
|
+
[key: number]: Uint8Array[];
|
|
1009
|
+
} | undefined;
|
|
1010
|
+
}
|
|
1011
|
+
export interface ServerPayload_IntentRejected {
|
|
1012
|
+
intent_id: string;
|
|
1013
|
+
code: string;
|
|
1014
|
+
message: string;
|
|
1015
|
+
current_generation: string;
|
|
1016
|
+
host_epoch: string;
|
|
1017
|
+
_unknownFields?: {
|
|
1018
|
+
[key: number]: Uint8Array[];
|
|
1019
|
+
} | undefined;
|
|
1020
|
+
}
|
|
1021
|
+
export interface ServerPayload_RelayEnvelope {
|
|
1022
|
+
from_user_id: string;
|
|
1023
|
+
channel: string;
|
|
1024
|
+
message_id: string;
|
|
1025
|
+
payload: Uint8Array;
|
|
1026
|
+
_unknownFields?: {
|
|
1027
|
+
[key: number]: Uint8Array[];
|
|
1028
|
+
} | undefined;
|
|
1029
|
+
}
|
|
1030
|
+
export interface ServerPayload_InboxUpdate {
|
|
1031
|
+
unread_count: number;
|
|
1032
|
+
_unknownFields?: {
|
|
1033
|
+
[key: number]: Uint8Array[];
|
|
1034
|
+
} | undefined;
|
|
1035
|
+
}
|
|
1036
|
+
/** codec v2 only creator agent 切换通告 player 不发送 */
|
|
1037
|
+
export interface ServerPayload_Handoff {
|
|
1038
|
+
from_agent: string;
|
|
1039
|
+
to_agent: string;
|
|
1040
|
+
reason: string;
|
|
1041
|
+
request_id: string;
|
|
1042
|
+
_unknownFields?: {
|
|
1043
|
+
[key: number]: Uint8Array[];
|
|
1044
|
+
} | undefined;
|
|
1045
|
+
}
|
|
1046
|
+
/** edit lock 获取/重续成功 当前持有者必收到 */
|
|
1047
|
+
export interface ServerPayload_LockAcquired {
|
|
1048
|
+
request_id: string;
|
|
1049
|
+
holder_device_id: string;
|
|
1050
|
+
holder_device_label: string;
|
|
1051
|
+
acquired_at_ms: string;
|
|
1052
|
+
_unknownFields?: {
|
|
1053
|
+
[key: number]: Uint8Array[];
|
|
1054
|
+
} | undefined;
|
|
1055
|
+
}
|
|
1056
|
+
/** edit lock 已被其他设备占用 申请方收到 holder 元数据用于显示 banner */
|
|
1057
|
+
export interface ServerPayload_LockHeld {
|
|
1058
|
+
request_id: string;
|
|
1059
|
+
holder_device_id: string;
|
|
1060
|
+
holder_device_label: string;
|
|
1061
|
+
acquired_at_ms: string;
|
|
1062
|
+
_unknownFields?: {
|
|
1063
|
+
[key: number]: Uint8Array[];
|
|
1064
|
+
} | undefined;
|
|
1065
|
+
}
|
|
1066
|
+
/** 自己被强夺权 通知旧持有者切只读 不带 request_id 因不是响应 */
|
|
1067
|
+
export interface ServerPayload_LockLost {
|
|
1068
|
+
new_holder_device_id: string;
|
|
1069
|
+
new_holder_device_label: string;
|
|
1070
|
+
_unknownFields?: {
|
|
1071
|
+
[key: number]: Uint8Array[];
|
|
1072
|
+
} | undefined;
|
|
1073
|
+
}
|
|
1074
|
+
/** 单会话 running 状态广播 session_id 空表当前无 session 在跑 */
|
|
1075
|
+
export interface ServerPayload_RunningSessionSet {
|
|
1076
|
+
session_id: string;
|
|
1077
|
+
holder_device_id: string;
|
|
1078
|
+
_unknownFields?: {
|
|
1079
|
+
[key: number]: Uint8Array[];
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
}
|
|
1082
|
+
export interface ServerPayload_ViewBuildComplete {
|
|
1083
|
+
build_id: string;
|
|
1084
|
+
scenario_id: string;
|
|
1085
|
+
view_id: string;
|
|
1086
|
+
version: number;
|
|
1087
|
+
status: string;
|
|
1088
|
+
html_b64: string;
|
|
1089
|
+
sha256: string;
|
|
1090
|
+
html_size: string;
|
|
1091
|
+
error_code: string;
|
|
1092
|
+
error_message: string;
|
|
1093
|
+
_unknownFields?: {
|
|
1094
|
+
[key: number]: Uint8Array[];
|
|
1095
|
+
} | undefined;
|
|
1096
|
+
}
|
|
1097
|
+
/** ADR-0076 extraction 二次抽取启动通告 */
|
|
1098
|
+
export interface ServerPayload_ExtractionStart {
|
|
1099
|
+
extraction_id: string;
|
|
1100
|
+
turn_id: string;
|
|
1101
|
+
assistant_message_id: string;
|
|
1102
|
+
extraction_message_id: string;
|
|
1103
|
+
_unknownFields?: {
|
|
1104
|
+
[key: number]: Uint8Array[];
|
|
1105
|
+
} | undefined;
|
|
1106
|
+
}
|
|
1107
|
+
/** ADR-0076 extraction 二次抽取完成 entity/relation/event 摘要 + 用量 */
|
|
1108
|
+
export interface ServerPayload_ExtractionEntityResultPb {
|
|
1109
|
+
id: string;
|
|
1110
|
+
kind: string;
|
|
1111
|
+
is_new: boolean;
|
|
1112
|
+
_unknownFields?: {
|
|
1113
|
+
[key: number]: Uint8Array[];
|
|
1114
|
+
} | undefined;
|
|
1115
|
+
}
|
|
1116
|
+
export interface ServerPayload_ExtractionRelationResultPb {
|
|
1117
|
+
src: string;
|
|
1118
|
+
dst: string;
|
|
1119
|
+
kind: string;
|
|
1120
|
+
is_new: boolean;
|
|
1121
|
+
_unknownFields?: {
|
|
1122
|
+
[key: number]: Uint8Array[];
|
|
1123
|
+
} | undefined;
|
|
1124
|
+
}
|
|
1125
|
+
export interface ServerPayload_ExtractionEventResultPb {
|
|
1126
|
+
id: string;
|
|
1127
|
+
event_type: string;
|
|
1128
|
+
_unknownFields?: {
|
|
1129
|
+
[key: number]: Uint8Array[];
|
|
1130
|
+
} | undefined;
|
|
1131
|
+
}
|
|
1132
|
+
export interface ServerPayload_ExtractionUsagePb {
|
|
1133
|
+
input_tokens: string;
|
|
1134
|
+
output_tokens: string;
|
|
1135
|
+
charged_units: string;
|
|
1136
|
+
model_id: string;
|
|
1137
|
+
_unknownFields?: {
|
|
1138
|
+
[key: number]: Uint8Array[];
|
|
1139
|
+
} | undefined;
|
|
1140
|
+
}
|
|
1141
|
+
export interface ServerPayload_ExtractionDone {
|
|
1142
|
+
extraction_id: string;
|
|
1143
|
+
turn_id: string;
|
|
1144
|
+
assistant_message_id: string;
|
|
1145
|
+
extraction_message_id: string;
|
|
1146
|
+
entities: ServerPayload_ExtractionEntityResultPb[];
|
|
1147
|
+
relations: ServerPayload_ExtractionRelationResultPb[];
|
|
1148
|
+
events: ServerPayload_ExtractionEventResultPb[];
|
|
1149
|
+
usage?: ServerPayload_ExtractionUsagePb | undefined;
|
|
1150
|
+
duration_ms: string;
|
|
1151
|
+
_unknownFields?: {
|
|
1152
|
+
[key: number]: Uint8Array[];
|
|
1153
|
+
} | undefined;
|
|
1154
|
+
}
|
|
1155
|
+
/** ADR-0076 extraction 二次抽取失败 stage 区分阶段 主 stream.done 已发不影响玩家可见 ack */
|
|
1156
|
+
export interface ServerPayload_ExtractionError {
|
|
1157
|
+
extraction_id: string;
|
|
1158
|
+
turn_id: string;
|
|
1159
|
+
assistant_message_id: string;
|
|
1160
|
+
code: string;
|
|
1161
|
+
message: string;
|
|
1162
|
+
/** "llm" | "parse" | "apply" | "rollback" */
|
|
1163
|
+
stage: string;
|
|
1164
|
+
recoverable: boolean;
|
|
1165
|
+
_unknownFields?: {
|
|
1166
|
+
[key: number]: Uint8Array[];
|
|
1167
|
+
} | undefined;
|
|
1168
|
+
}
|
|
1169
|
+
/** ADR-0076 extraction 写穿前置 ui-shell 收到后调 wasm.rollbackByMessage 然后 ack */
|
|
1170
|
+
export interface ServerPayload_ExtractionRollback {
|
|
1171
|
+
request_id: string;
|
|
1172
|
+
extraction_message_id: string;
|
|
1173
|
+
_unknownFields?: {
|
|
1174
|
+
[key: number]: Uint8Array[];
|
|
1175
|
+
} | undefined;
|
|
1176
|
+
}
|
|
1177
|
+
/** 子代理探索进度 phase 取 start/exploring/distilled 一类 query_summary 是意图一句话摘要 非原始 db 行 */
|
|
1178
|
+
export interface ServerPayload_SubAgentStatus {
|
|
1179
|
+
agent_name: string;
|
|
1180
|
+
phase: string;
|
|
1181
|
+
query_summary: string;
|
|
1182
|
+
_unknownFields?: {
|
|
1183
|
+
[key: number]: Uint8Array[];
|
|
1184
|
+
} | undefined;
|
|
1185
|
+
}
|
|
1186
|
+
/**
|
|
1187
|
+
* ADR-0067 豁免信封 payload_json 为 canonical JSON 字节 (签名覆盖的确切字节)
|
|
1188
|
+
* sig 为 Ed25519(payload_json) 的 base64 客户端按 payload_json 原字节验签 不重序列化
|
|
1189
|
+
*/
|
|
1190
|
+
export interface ServerPayload_DebugExemptionGrant {
|
|
1191
|
+
payload_json: Uint8Array;
|
|
1192
|
+
sig: string;
|
|
1193
|
+
_unknownFields?: {
|
|
1194
|
+
[key: number]: Uint8Array[];
|
|
1195
|
+
} | undefined;
|
|
1196
|
+
}
|
|
1197
|
+
/** scene claim 授予 lease 为独占凭据 lease_until_ts 为服务端权威截止 (ADR-0058 协调线) */
|
|
1198
|
+
export interface ServerPayload_SceneClaimGranted {
|
|
1199
|
+
scene_id: string;
|
|
1200
|
+
lease: string;
|
|
1201
|
+
lease_until_ts: string;
|
|
1202
|
+
_unknownFields?: {
|
|
1203
|
+
[key: number]: Uint8Array[];
|
|
1204
|
+
} | undefined;
|
|
1205
|
+
}
|
|
1206
|
+
/** scene claim 被拒 holder_user_id 为当前占用者用于显示 */
|
|
1207
|
+
export interface ServerPayload_SceneClaimDenied {
|
|
1208
|
+
scene_id: string;
|
|
1209
|
+
holder_user_id: string;
|
|
1210
|
+
_unknownFields?: {
|
|
1211
|
+
[key: number]: Uint8Array[];
|
|
1212
|
+
} | undefined;
|
|
1213
|
+
}
|
|
1214
|
+
/** 回合授予 turn_id 为权威回合标识 deadline_ts 为服务端截止 */
|
|
1215
|
+
export interface ServerPayload_TurnGranted {
|
|
1216
|
+
turn_id: string;
|
|
1217
|
+
scene_id: string;
|
|
1218
|
+
deadline_ts: string;
|
|
1219
|
+
_unknownFields?: {
|
|
1220
|
+
[key: number]: Uint8Array[];
|
|
1221
|
+
} | undefined;
|
|
1222
|
+
}
|
|
1223
|
+
/** 回合超时作废 turn_id 关联已授予回合 */
|
|
1224
|
+
export interface ServerPayload_TurnExpired {
|
|
1225
|
+
turn_id: string;
|
|
1226
|
+
_unknownFields?: {
|
|
1227
|
+
[key: number]: Uint8Array[];
|
|
1228
|
+
} | undefined;
|
|
1229
|
+
}
|
|
1230
|
+
/** 同场景行动冲突 proposals 类型化 ai_ruling_json 为 LLM 仲裁建议 玩家可覆盖 */
|
|
1231
|
+
export interface ServerPayload_ActionConflict {
|
|
1232
|
+
conflict_id: string;
|
|
1233
|
+
proposals: ActionProposal[];
|
|
1234
|
+
ai_ruling_json: string;
|
|
1235
|
+
_unknownFields?: {
|
|
1236
|
+
[key: number]: Uint8Array[];
|
|
1237
|
+
} | undefined;
|
|
1238
|
+
}
|
|
1239
|
+
/** 冲突已仲裁 winning_actor_user_id 为胜出方 ruling_json 为最终裁决 */
|
|
1240
|
+
export interface ServerPayload_ActionResolved {
|
|
1241
|
+
conflict_id: string;
|
|
1242
|
+
winning_actor_user_id: string;
|
|
1243
|
+
ruling_json: string;
|
|
1244
|
+
ts: string;
|
|
1245
|
+
_unknownFields?: {
|
|
1246
|
+
[key: number]: Uint8Array[];
|
|
1247
|
+
} | undefined;
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* ADR-0075 联机大厅 RoomDo 状态变更广播 玩家加入/退出/状态切换(lobby↔playing↔paused) 均广播
|
|
1251
|
+
* members 为当前在线名册 (RoomDo storage append/remove transactional)
|
|
1252
|
+
* transition_reason 取 "joined" | "left" | "state_change" | "heartbeat_timeout"
|
|
1253
|
+
*/
|
|
1254
|
+
export interface ServerPayload_RoomStateChanged {
|
|
1255
|
+
room_id: string;
|
|
1256
|
+
state: string;
|
|
1257
|
+
members: string[];
|
|
1258
|
+
transition_reason: string;
|
|
1259
|
+
ts: string;
|
|
1260
|
+
_unknownFields?: {
|
|
1261
|
+
[key: number]: Uint8Array[];
|
|
1262
|
+
} | undefined;
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* media-library-revamp 决策B 删媒体级联 disable 图谱对象
|
|
1266
|
+
* 编辑器收到后把对应 entity/relation/attr 标 props._disabled=true
|
|
1267
|
+
* node_ids=entity_id / edge_ids=relation_id / attr_refs=(entity_id, attr_key)
|
|
1268
|
+
* *_count 冗余便于世界tab统计条红字直接展示
|
|
1269
|
+
*/
|
|
1270
|
+
export interface ServerPayload_GraphDisabledBroadcast {
|
|
1271
|
+
node_ids: string[];
|
|
1272
|
+
edge_ids: string[];
|
|
1273
|
+
attr_refs: ServerPayload_AttrRef[];
|
|
1274
|
+
node_count: number;
|
|
1275
|
+
edge_count: number;
|
|
1276
|
+
attr_count: number;
|
|
1277
|
+
_unknownFields?: {
|
|
1278
|
+
[key: number]: Uint8Array[];
|
|
1279
|
+
} | undefined;
|
|
1280
|
+
}
|
|
1281
|
+
export interface ServerPayload_AttrRef {
|
|
1282
|
+
node_id: string;
|
|
1283
|
+
attr_key: string;
|
|
1284
|
+
_unknownFields?: {
|
|
1285
|
+
[key: number]: Uint8Array[];
|
|
1286
|
+
} | undefined;
|
|
1287
|
+
}
|
|
1288
|
+
/** ADR-0133 决策一 权威世界时钟 broadcast 给全体成员 (含上报者自己 用于确认权威值) */
|
|
1289
|
+
export interface ServerPayload_WorldClockTick {
|
|
1290
|
+
world_clock_seconds: string;
|
|
1291
|
+
updated_by: string;
|
|
1292
|
+
_unknownFields?: {
|
|
1293
|
+
[key: number]: Uint8Array[];
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
}
|
|
1296
|
+
/** ADR-0133 决策三 全图事件已调度 (PartyDo 校验通过 push pending 后广播 各 client 建本地镜像) */
|
|
1297
|
+
export interface ServerPayload_GlobalEventScheduled {
|
|
1298
|
+
event?: ClientPayload_GlobalEvent | undefined;
|
|
1299
|
+
_unknownFields?: {
|
|
1300
|
+
[key: number]: Uint8Array[];
|
|
1301
|
+
} | undefined;
|
|
1302
|
+
}
|
|
1303
|
+
/** ADR-0133 决策三 全图事件已激活 (权威时钟越过 trigger_at 后广播 override compute_copresence_groups 全员一组) */
|
|
1304
|
+
export interface ServerPayload_GlobalEventActivated {
|
|
1305
|
+
event_id: string;
|
|
1306
|
+
_unknownFields?: {
|
|
1307
|
+
[key: number]: Uint8Array[];
|
|
1308
|
+
} | undefined;
|
|
1309
|
+
}
|
|
1310
|
+
/** ADR-0133 决策三 全图事件已结束 (权威时钟越过 close_at 后广播 回落正常 reach 分组) */
|
|
1311
|
+
export interface ServerPayload_GlobalEventClosed {
|
|
1312
|
+
event_id: string;
|
|
1313
|
+
_unknownFields?: {
|
|
1314
|
+
[key: number]: Uint8Array[];
|
|
1315
|
+
} | undefined;
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* ADR-0128 issue 09 氛围媒体 kind 取 "photographer" 摄影出图 (台词/场景后续 issue 复用同帧)
|
|
1319
|
+
* url 与 data_base64 互斥 大图走 R2 url 小图内联 base64 mime 如 "image/png"
|
|
1320
|
+
* request_id 关联发起本轮 write_scene 的 chat 请求 客户端按 kind 渲染 不阻塞主聊天流
|
|
1321
|
+
*/
|
|
1322
|
+
export interface ServerPayload_AmbienceMedia {
|
|
1323
|
+
kind: string;
|
|
1324
|
+
mime: string;
|
|
1325
|
+
url: string;
|
|
1326
|
+
data_base64: string;
|
|
1327
|
+
width: number;
|
|
1328
|
+
height: number;
|
|
1329
|
+
request_id: string;
|
|
1330
|
+
_unknownFields?: {
|
|
1331
|
+
[key: number]: Uint8Array[];
|
|
1332
|
+
} | undefined;
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* ScenePerformancePlanV1 是 SceneState 的受控 sidecar:它只携带已冻结
|
|
1336
|
+
* scene/presentation revision 中的稳定 ID 和时间语义,正文、URL、路径与
|
|
1337
|
+
* Cubism 参数曲线均不允许进入 wire。
|
|
1338
|
+
*/
|
|
1339
|
+
export interface ServerPayload_ScenePerformancePlanV1 {
|
|
1340
|
+
schema_version: number;
|
|
1341
|
+
request_id: string;
|
|
1342
|
+
scene_revision: string;
|
|
1343
|
+
presentation_revision: string;
|
|
1344
|
+
seed: string;
|
|
1345
|
+
cast: ServerPayload_ScenePerformancePlanV1_Cast[];
|
|
1346
|
+
beats: ServerPayload_ScenePerformancePlanV1_Beat[];
|
|
1347
|
+
_unknownFields?: {
|
|
1348
|
+
[key: number]: Uint8Array[];
|
|
1349
|
+
} | undefined;
|
|
1350
|
+
}
|
|
1351
|
+
export declare enum ServerPayload_ScenePerformancePlanV1_StageSlot {
|
|
1352
|
+
STAGE_SLOT_UNSPECIFIED = 0,
|
|
1353
|
+
STAGE_SLOT_LEFT = 1,
|
|
1354
|
+
STAGE_SLOT_CENTER = 2,
|
|
1355
|
+
STAGE_SLOT_RIGHT = 3,
|
|
1356
|
+
UNRECOGNIZED = -1
|
|
1357
|
+
}
|
|
1358
|
+
export declare function serverPayload_ScenePerformancePlanV1_StageSlotFromJSON(object: any): ServerPayload_ScenePerformancePlanV1_StageSlot;
|
|
1359
|
+
export declare function serverPayload_ScenePerformancePlanV1_StageSlotToJSON(object: ServerPayload_ScenePerformancePlanV1_StageSlot): string;
|
|
1360
|
+
export declare enum ServerPayload_ScenePerformancePlanV1_GazeTarget {
|
|
1361
|
+
GAZE_TARGET_UNSPECIFIED = 0,
|
|
1362
|
+
GAZE_TARGET_SPEAKER = 1,
|
|
1363
|
+
GAZE_TARGET_LISTENER = 2,
|
|
1364
|
+
GAZE_TARGET_CAMERA = 3,
|
|
1365
|
+
GAZE_TARGET_LEFT = 4,
|
|
1366
|
+
GAZE_TARGET_RIGHT = 5,
|
|
1367
|
+
GAZE_TARGET_DOWN = 6,
|
|
1368
|
+
UNRECOGNIZED = -1
|
|
1369
|
+
}
|
|
1370
|
+
export declare function serverPayload_ScenePerformancePlanV1_GazeTargetFromJSON(object: any): ServerPayload_ScenePerformancePlanV1_GazeTarget;
|
|
1371
|
+
export declare function serverPayload_ScenePerformancePlanV1_GazeTargetToJSON(object: ServerPayload_ScenePerformancePlanV1_GazeTarget): string;
|
|
1372
|
+
export interface ServerPayload_ScenePerformancePlanV1_Cast {
|
|
1373
|
+
actor_id: string;
|
|
1374
|
+
avatar_asset_id: string;
|
|
1375
|
+
outfit_id: string;
|
|
1376
|
+
stage_slot: ServerPayload_ScenePerformancePlanV1_StageSlot;
|
|
1377
|
+
visible: boolean;
|
|
1378
|
+
_unknownFields?: {
|
|
1379
|
+
[key: number]: Uint8Array[];
|
|
1380
|
+
} | undefined;
|
|
1381
|
+
}
|
|
1382
|
+
export interface ServerPayload_ScenePerformancePlanV1_Expression {
|
|
1383
|
+
expression_id: string;
|
|
1384
|
+
intensity: number;
|
|
1385
|
+
_unknownFields?: {
|
|
1386
|
+
[key: number]: Uint8Array[];
|
|
1387
|
+
} | undefined;
|
|
1388
|
+
}
|
|
1389
|
+
export interface ServerPayload_ScenePerformancePlanV1_Action {
|
|
1390
|
+
action_id: string;
|
|
1391
|
+
intensity: number;
|
|
1392
|
+
_unknownFields?: {
|
|
1393
|
+
[key: number]: Uint8Array[];
|
|
1394
|
+
} | undefined;
|
|
1395
|
+
}
|
|
1396
|
+
export interface ServerPayload_ScenePerformancePlanV1_Beat {
|
|
1397
|
+
at_ms: string;
|
|
1398
|
+
duration_ms: string;
|
|
1399
|
+
actor_id: string;
|
|
1400
|
+
expression?: ServerPayload_ScenePerformancePlanV1_Expression | undefined;
|
|
1401
|
+
action?: ServerPayload_ScenePerformancePlanV1_Action | undefined;
|
|
1402
|
+
gaze_target: ServerPayload_ScenePerformancePlanV1_GazeTarget;
|
|
1403
|
+
priority: number;
|
|
1404
|
+
_unknownFields?: {
|
|
1405
|
+
[key: number]: Uint8Array[];
|
|
1406
|
+
} | undefined;
|
|
1407
|
+
}
|
|
1408
|
+
/**
|
|
1409
|
+
* ADR-0128 issue 11 场景 agent emit_scene_state 输出的 PngtuberState 可演出子集
|
|
1410
|
+
* 全部 optional 语义 未设字段客户端保留人偶当前值 (只改需要变化的字段 不整块重置)
|
|
1411
|
+
* 字段名对齐 ui-shell PngtuberState (proto snake_case 客户端映射回 camelCase)
|
|
1412
|
+
* sprite_id 未设时应用到当前渲染的根人偶 物理引擎字段 (xFrq/dragSpeed 等) 不归场景 agent 不进本帧
|
|
1413
|
+
*/
|
|
1414
|
+
export interface ServerPayload_SceneState {
|
|
1415
|
+
sprite_id?: number | undefined;
|
|
1416
|
+
visible?: boolean | undefined;
|
|
1417
|
+
scale_x?: number | undefined;
|
|
1418
|
+
scale_y?: number | undefined;
|
|
1419
|
+
position_x?: number | undefined;
|
|
1420
|
+
position_y?: number | undefined;
|
|
1421
|
+
offset_x?: number | undefined;
|
|
1422
|
+
offset_y?: number | undefined;
|
|
1423
|
+
rotation?: number | undefined;
|
|
1424
|
+
flip_h?: boolean | undefined;
|
|
1425
|
+
flip_v?: boolean | undefined;
|
|
1426
|
+
blend_mode: string;
|
|
1427
|
+
tint_r?: number | undefined;
|
|
1428
|
+
tint_g?: number | undefined;
|
|
1429
|
+
tint_b?: number | undefined;
|
|
1430
|
+
tint_a?: number | undefined;
|
|
1431
|
+
colored_r?: number | undefined;
|
|
1432
|
+
colored_g?: number | undefined;
|
|
1433
|
+
colored_b?: number | undefined;
|
|
1434
|
+
colored_a?: number | undefined;
|
|
1435
|
+
z_index?: number | undefined;
|
|
1436
|
+
request_id: string;
|
|
1437
|
+
performance_plan?: ServerPayload_ScenePerformancePlanV1 | undefined;
|
|
1438
|
+
_unknownFields?: {
|
|
1439
|
+
[key: number]: Uint8Array[];
|
|
1440
|
+
} | undefined;
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* recall-mechanism-redesign M1-06 barrier commit 用量汇总 extraction+recall+chat 三段合并
|
|
1444
|
+
* 当前 (M1) 只填 extraction 三值 recall/chat 后续 milestone 接入
|
|
1445
|
+
*/
|
|
1446
|
+
export interface ServerPayload_UsageSummary {
|
|
1447
|
+
extraction_input_tokens: string;
|
|
1448
|
+
extraction_output_tokens: string;
|
|
1449
|
+
extraction_charged_units: string;
|
|
1450
|
+
extraction_model_id: string;
|
|
1451
|
+
recall_input_tokens: string;
|
|
1452
|
+
recall_output_tokens: string;
|
|
1453
|
+
recall_charged_units: string;
|
|
1454
|
+
chat_input_tokens: string;
|
|
1455
|
+
chat_output_tokens: string;
|
|
1456
|
+
chat_charged_units: string;
|
|
1457
|
+
total_charged_units: string;
|
|
1458
|
+
_unknownFields?: {
|
|
1459
|
+
[key: number]: Uint8Array[];
|
|
1460
|
+
} | undefined;
|
|
1461
|
+
}
|
|
1462
|
+
/**
|
|
1463
|
+
* recall-mechanism-redesign M1-06 barrier commit 完成回执
|
|
1464
|
+
* 客户端收到后 barrier state: awaiting_embedding → done
|
|
1465
|
+
*/
|
|
1466
|
+
export interface ServerPayload_CommitDone {
|
|
1467
|
+
turn_id: string;
|
|
1468
|
+
extraction_message_id: string;
|
|
1469
|
+
usage_summary?: ServerPayload_UsageSummary | undefined;
|
|
1470
|
+
total_duration_ms: string;
|
|
1471
|
+
_unknownFields?: {
|
|
1472
|
+
[key: number]: Uint8Array[];
|
|
1473
|
+
} | undefined;
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* recall-mechanism-redesign M1-06 barrier commit 失败
|
|
1477
|
+
* stage=commit_ack 客户端明示失败 (CommitAck.ok=false)
|
|
1478
|
+
* stage=ack_timeout 服务端 30s 未收 CommitAck (hard timeout 用户决策)
|
|
1479
|
+
* stage=usage_reconcile 用量合并失败 (M2+ 保留 M1 不触发)
|
|
1480
|
+
*/
|
|
1481
|
+
export interface ServerPayload_CommitError {
|
|
1482
|
+
turn_id: string;
|
|
1483
|
+
code: string;
|
|
1484
|
+
message: string;
|
|
1485
|
+
recoverable: boolean;
|
|
1486
|
+
stage: string;
|
|
1487
|
+
_unknownFields?: {
|
|
1488
|
+
[key: number]: Uint8Array[];
|
|
1489
|
+
} | undefined;
|
|
1490
|
+
}
|
|
1491
|
+
export declare const WsFrame: MessageFns<WsFrame>;
|
|
1492
|
+
export declare const PartyAuthorityScope: MessageFns<PartyAuthorityScope>;
|
|
1493
|
+
export declare const PartyAuthorityCapability: MessageFns<PartyAuthorityCapability>;
|
|
1494
|
+
export declare const PartyAuthorityHead: MessageFns<PartyAuthorityHead>;
|
|
1495
|
+
export declare const PartyAuthorityAdmission: MessageFns<PartyAuthorityAdmission>;
|
|
1496
|
+
export declare const PartyAuthorityIntent: MessageFns<PartyAuthorityIntent>;
|
|
1497
|
+
export declare const PartyTurnCommitReceipt: MessageFns<PartyTurnCommitReceipt>;
|
|
1498
|
+
export declare const PartyTriggerExecutionReceipt: MessageFns<PartyTriggerExecutionReceipt>;
|
|
1499
|
+
export declare const PartySavCommitReceipt: MessageFns<PartySavCommitReceipt>;
|
|
1500
|
+
export declare const PartyAuthorityCommit: MessageFns<PartyAuthorityCommit>;
|
|
1501
|
+
export declare const PartyAuthoritySyncRequest: MessageFns<PartyAuthoritySyncRequest>;
|
|
1502
|
+
export declare const PartyAuthorityRelease: MessageFns<PartyAuthorityRelease>;
|
|
1503
|
+
export declare const PartyAuthorityRequest: MessageFns<PartyAuthorityRequest>;
|
|
1504
|
+
export declare const PartyAuthorityAdmitted: MessageFns<PartyAuthorityAdmitted>;
|
|
1505
|
+
export declare const PartyAuthorityIntentAccepted: MessageFns<PartyAuthorityIntentAccepted>;
|
|
1506
|
+
export declare const PartyAuthorityIntentCommitted: MessageFns<PartyAuthorityIntentCommitted>;
|
|
1507
|
+
export declare const PartyAuthoritySyncState: MessageFns<PartyAuthoritySyncState>;
|
|
1508
|
+
export declare const PartyAuthorityReleased: MessageFns<PartyAuthorityReleased>;
|
|
1509
|
+
export declare const PartyAuthorityError: MessageFns<PartyAuthorityError>;
|
|
1510
|
+
export declare const PartyAuthorityResponse: MessageFns<PartyAuthorityResponse>;
|
|
1511
|
+
export declare const ClientPayload: MessageFns<ClientPayload>;
|
|
1512
|
+
export declare const ClientPayload_Hello: MessageFns<ClientPayload_Hello>;
|
|
1513
|
+
export declare const ClientPayload_CancelRequest: MessageFns<ClientPayload_CancelRequest>;
|
|
1514
|
+
export declare const ClientPayload_Chat: MessageFns<ClientPayload_Chat>;
|
|
1515
|
+
export declare const ClientPayload_LoraRef: MessageFns<ClientPayload_LoraRef>;
|
|
1516
|
+
export declare const ClientPayload_TtsVoiceOverride: MessageFns<ClientPayload_TtsVoiceOverride>;
|
|
1517
|
+
export declare const ClientPayload_Clear: MessageFns<ClientPayload_Clear>;
|
|
1518
|
+
export declare const ClientPayload_Ping: MessageFns<ClientPayload_Ping>;
|
|
1519
|
+
export declare const ClientPayload_ToolResult: MessageFns<ClientPayload_ToolResult>;
|
|
1520
|
+
export declare const ClientPayload_PartyJoin: MessageFns<ClientPayload_PartyJoin>;
|
|
1521
|
+
export declare const ClientPayload_PartyLeave: MessageFns<ClientPayload_PartyLeave>;
|
|
1522
|
+
export declare const ClientPayload_WorldSaveCommit: MessageFns<ClientPayload_WorldSaveCommit>;
|
|
1523
|
+
export declare const ClientPayload_WebRtcSignal: MessageFns<ClientPayload_WebRtcSignal>;
|
|
1524
|
+
export declare const ClientPayload_HostMetricsReport: MessageFns<ClientPayload_HostMetricsReport>;
|
|
1525
|
+
export declare const ClientPayload_StateIntent: MessageFns<ClientPayload_StateIntent>;
|
|
1526
|
+
export declare const ClientPayload_StateCommit: MessageFns<ClientPayload_StateCommit>;
|
|
1527
|
+
export declare const ClientPayload_SnapshotApplied: MessageFns<ClientPayload_SnapshotApplied>;
|
|
1528
|
+
export declare const ClientPayload_RelayEnvelope: MessageFns<ClientPayload_RelayEnvelope>;
|
|
1529
|
+
export declare const ClientPayload_AcquireEditLock: MessageFns<ClientPayload_AcquireEditLock>;
|
|
1530
|
+
export declare const ClientPayload_ReleaseEditLock: MessageFns<ClientPayload_ReleaseEditLock>;
|
|
1531
|
+
export declare const ClientPayload_ForceTakeLock: MessageFns<ClientPayload_ForceTakeLock>;
|
|
1532
|
+
export declare const ClientPayload_SetRunningSession: MessageFns<ClientPayload_SetRunningSession>;
|
|
1533
|
+
export declare const ClientPayload_ExtractionRollbackAck: MessageFns<ClientPayload_ExtractionRollbackAck>;
|
|
1534
|
+
export declare const ClientPayload_ExtractionOnly: MessageFns<ClientPayload_ExtractionOnly>;
|
|
1535
|
+
export declare const ClientPayload_SceneClaimRequest: MessageFns<ClientPayload_SceneClaimRequest>;
|
|
1536
|
+
export declare const ClientPayload_SceneClaimRelease: MessageFns<ClientPayload_SceneClaimRelease>;
|
|
1537
|
+
export declare const ClientPayload_TurnClaim: MessageFns<ClientPayload_TurnClaim>;
|
|
1538
|
+
export declare const ClientPayload_ActionResolution: MessageFns<ClientPayload_ActionResolution>;
|
|
1539
|
+
export declare const ClientPayload_WorldClockAdvance: MessageFns<ClientPayload_WorldClockAdvance>;
|
|
1540
|
+
export declare const ClientPayload_GlobalEvent: MessageFns<ClientPayload_GlobalEvent>;
|
|
1541
|
+
export declare const ClientPayload_GlobalEventDeclare: MessageFns<ClientPayload_GlobalEventDeclare>;
|
|
1542
|
+
export declare const ClientPayload_PresentationPlanAck: MessageFns<ClientPayload_PresentationPlanAck>;
|
|
1543
|
+
export declare const ClientPayload_CommitAck: MessageFns<ClientPayload_CommitAck>;
|
|
1544
|
+
export declare const ServerPayload: MessageFns<ServerPayload>;
|
|
1545
|
+
export declare const ServerPayload_PresentationPlanStage: MessageFns<ServerPayload_PresentationPlanStage>;
|
|
1546
|
+
export declare const ServerPayload_HistoryEntry: MessageFns<ServerPayload_HistoryEntry>;
|
|
1547
|
+
export declare const ServerPayload_HelloAck: MessageFns<ServerPayload_HelloAck>;
|
|
1548
|
+
export declare const ServerPayload_Chunk: MessageFns<ServerPayload_Chunk>;
|
|
1549
|
+
export declare const ServerPayload_Done: MessageFns<ServerPayload_Done>;
|
|
1550
|
+
export declare const ServerPayload_ProviderReceipt: MessageFns<ServerPayload_ProviderReceipt>;
|
|
1551
|
+
export declare const ServerPayload_Error: MessageFns<ServerPayload_Error>;
|
|
1552
|
+
export declare const ServerPayload_Pong: MessageFns<ServerPayload_Pong>;
|
|
1553
|
+
export declare const ServerPayload_Cleared: MessageFns<ServerPayload_Cleared>;
|
|
1554
|
+
export declare const ServerPayload_ToolCall: MessageFns<ServerPayload_ToolCall>;
|
|
1555
|
+
export declare const ServerPayload_Ping: MessageFns<ServerPayload_Ping>;
|
|
1556
|
+
export declare const ServerPayload_PartyJoined: MessageFns<ServerPayload_PartyJoined>;
|
|
1557
|
+
export declare const ServerPayload_PartyMemberJoined: MessageFns<ServerPayload_PartyMemberJoined>;
|
|
1558
|
+
export declare const ServerPayload_PartyMemberLeft: MessageFns<ServerPayload_PartyMemberLeft>;
|
|
1559
|
+
export declare const ServerPayload_WorldSaveAccepted: MessageFns<ServerPayload_WorldSaveAccepted>;
|
|
1560
|
+
export declare const ServerPayload_WorldSaveConflict: MessageFns<ServerPayload_WorldSaveConflict>;
|
|
1561
|
+
export declare const ServerPayload_WorldEvent: MessageFns<ServerPayload_WorldEvent>;
|
|
1562
|
+
export declare const ServerPayload_WebRtcSignal: MessageFns<ServerPayload_WebRtcSignal>;
|
|
1563
|
+
export declare const ServerPayload_HostChanged: MessageFns<ServerPayload_HostChanged>;
|
|
1564
|
+
export declare const ServerPayload_PartySync: MessageFns<ServerPayload_PartySync>;
|
|
1565
|
+
export declare const ServerPayload_StateCommitted: MessageFns<ServerPayload_StateCommitted>;
|
|
1566
|
+
export declare const ServerPayload_IntentRejected: MessageFns<ServerPayload_IntentRejected>;
|
|
1567
|
+
export declare const ServerPayload_RelayEnvelope: MessageFns<ServerPayload_RelayEnvelope>;
|
|
1568
|
+
export declare const ServerPayload_InboxUpdate: MessageFns<ServerPayload_InboxUpdate>;
|
|
1569
|
+
export declare const ServerPayload_Handoff: MessageFns<ServerPayload_Handoff>;
|
|
1570
|
+
export declare const ServerPayload_LockAcquired: MessageFns<ServerPayload_LockAcquired>;
|
|
1571
|
+
export declare const ServerPayload_LockHeld: MessageFns<ServerPayload_LockHeld>;
|
|
1572
|
+
export declare const ServerPayload_LockLost: MessageFns<ServerPayload_LockLost>;
|
|
1573
|
+
export declare const ServerPayload_RunningSessionSet: MessageFns<ServerPayload_RunningSessionSet>;
|
|
1574
|
+
export declare const ServerPayload_ViewBuildComplete: MessageFns<ServerPayload_ViewBuildComplete>;
|
|
1575
|
+
export declare const ServerPayload_ExtractionStart: MessageFns<ServerPayload_ExtractionStart>;
|
|
1576
|
+
export declare const ServerPayload_ExtractionEntityResultPb: MessageFns<ServerPayload_ExtractionEntityResultPb>;
|
|
1577
|
+
export declare const ServerPayload_ExtractionRelationResultPb: MessageFns<ServerPayload_ExtractionRelationResultPb>;
|
|
1578
|
+
export declare const ServerPayload_ExtractionEventResultPb: MessageFns<ServerPayload_ExtractionEventResultPb>;
|
|
1579
|
+
export declare const ServerPayload_ExtractionUsagePb: MessageFns<ServerPayload_ExtractionUsagePb>;
|
|
1580
|
+
export declare const ServerPayload_ExtractionDone: MessageFns<ServerPayload_ExtractionDone>;
|
|
1581
|
+
export declare const ServerPayload_ExtractionError: MessageFns<ServerPayload_ExtractionError>;
|
|
1582
|
+
export declare const ServerPayload_ExtractionRollback: MessageFns<ServerPayload_ExtractionRollback>;
|
|
1583
|
+
export declare const ServerPayload_SubAgentStatus: MessageFns<ServerPayload_SubAgentStatus>;
|
|
1584
|
+
export declare const ServerPayload_DebugExemptionGrant: MessageFns<ServerPayload_DebugExemptionGrant>;
|
|
1585
|
+
export declare const ServerPayload_SceneClaimGranted: MessageFns<ServerPayload_SceneClaimGranted>;
|
|
1586
|
+
export declare const ServerPayload_SceneClaimDenied: MessageFns<ServerPayload_SceneClaimDenied>;
|
|
1587
|
+
export declare const ServerPayload_TurnGranted: MessageFns<ServerPayload_TurnGranted>;
|
|
1588
|
+
export declare const ServerPayload_TurnExpired: MessageFns<ServerPayload_TurnExpired>;
|
|
1589
|
+
export declare const ServerPayload_ActionConflict: MessageFns<ServerPayload_ActionConflict>;
|
|
1590
|
+
export declare const ServerPayload_ActionResolved: MessageFns<ServerPayload_ActionResolved>;
|
|
1591
|
+
export declare const ServerPayload_RoomStateChanged: MessageFns<ServerPayload_RoomStateChanged>;
|
|
1592
|
+
export declare const ServerPayload_GraphDisabledBroadcast: MessageFns<ServerPayload_GraphDisabledBroadcast>;
|
|
1593
|
+
export declare const ServerPayload_AttrRef: MessageFns<ServerPayload_AttrRef>;
|
|
1594
|
+
export declare const ServerPayload_WorldClockTick: MessageFns<ServerPayload_WorldClockTick>;
|
|
1595
|
+
export declare const ServerPayload_GlobalEventScheduled: MessageFns<ServerPayload_GlobalEventScheduled>;
|
|
1596
|
+
export declare const ServerPayload_GlobalEventActivated: MessageFns<ServerPayload_GlobalEventActivated>;
|
|
1597
|
+
export declare const ServerPayload_GlobalEventClosed: MessageFns<ServerPayload_GlobalEventClosed>;
|
|
1598
|
+
export declare const ServerPayload_AmbienceMedia: MessageFns<ServerPayload_AmbienceMedia>;
|
|
1599
|
+
export declare const ServerPayload_ScenePerformancePlanV1: MessageFns<ServerPayload_ScenePerformancePlanV1>;
|
|
1600
|
+
export declare const ServerPayload_ScenePerformancePlanV1_Cast: MessageFns<ServerPayload_ScenePerformancePlanV1_Cast>;
|
|
1601
|
+
export declare const ServerPayload_ScenePerformancePlanV1_Expression: MessageFns<ServerPayload_ScenePerformancePlanV1_Expression>;
|
|
1602
|
+
export declare const ServerPayload_ScenePerformancePlanV1_Action: MessageFns<ServerPayload_ScenePerformancePlanV1_Action>;
|
|
1603
|
+
export declare const ServerPayload_ScenePerformancePlanV1_Beat: MessageFns<ServerPayload_ScenePerformancePlanV1_Beat>;
|
|
1604
|
+
export declare const ServerPayload_SceneState: MessageFns<ServerPayload_SceneState>;
|
|
1605
|
+
export declare const ServerPayload_UsageSummary: MessageFns<ServerPayload_UsageSummary>;
|
|
1606
|
+
export declare const ServerPayload_CommitDone: MessageFns<ServerPayload_CommitDone>;
|
|
1607
|
+
export declare const ServerPayload_CommitError: MessageFns<ServerPayload_CommitError>;
|
|
1608
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
1609
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
1610
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1611
|
+
} : Partial<T>;
|
|
1612
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1613
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
1614
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
1615
|
+
} & {
|
|
1616
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
1617
|
+
};
|
|
1618
|
+
interface MessageFns<T> {
|
|
1619
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1620
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1621
|
+
fromJSON(object: any): T;
|
|
1622
|
+
toJSON(message: T): unknown;
|
|
1623
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1624
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1625
|
+
}
|
|
1626
|
+
export {};
|