@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,387 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.12.0
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: v1/common.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
/** 部署 region 路由 DO 与数据中心 */
|
|
9
|
+
export var Region;
|
|
10
|
+
(function (Region) {
|
|
11
|
+
Region[Region["REGION_UNSPECIFIED"] = 0] = "REGION_UNSPECIFIED";
|
|
12
|
+
Region[Region["REGION_TOKYO"] = 1] = "REGION_TOKYO";
|
|
13
|
+
Region[Region["REGION_SINGAPORE"] = 2] = "REGION_SINGAPORE";
|
|
14
|
+
Region[Region["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
15
|
+
})(Region || (Region = {}));
|
|
16
|
+
export function regionFromJSON(object) {
|
|
17
|
+
switch (object) {
|
|
18
|
+
case 0:
|
|
19
|
+
case "REGION_UNSPECIFIED":
|
|
20
|
+
return Region.REGION_UNSPECIFIED;
|
|
21
|
+
case 1:
|
|
22
|
+
case "REGION_TOKYO":
|
|
23
|
+
return Region.REGION_TOKYO;
|
|
24
|
+
case 2:
|
|
25
|
+
case "REGION_SINGAPORE":
|
|
26
|
+
return Region.REGION_SINGAPORE;
|
|
27
|
+
case -1:
|
|
28
|
+
case "UNRECOGNIZED":
|
|
29
|
+
default:
|
|
30
|
+
return Region.UNRECOGNIZED;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export function regionToJSON(object) {
|
|
34
|
+
switch (object) {
|
|
35
|
+
case Region.REGION_UNSPECIFIED:
|
|
36
|
+
return "REGION_UNSPECIFIED";
|
|
37
|
+
case Region.REGION_TOKYO:
|
|
38
|
+
return "REGION_TOKYO";
|
|
39
|
+
case Region.REGION_SINGAPORE:
|
|
40
|
+
return "REGION_SINGAPORE";
|
|
41
|
+
case Region.UNRECOGNIZED:
|
|
42
|
+
default:
|
|
43
|
+
return "UNRECOGNIZED";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
function createBaseEmpty() {
|
|
47
|
+
return { _unknownFields: {} };
|
|
48
|
+
}
|
|
49
|
+
export const Empty = {
|
|
50
|
+
encode(message, writer = new BinaryWriter()) {
|
|
51
|
+
if (message._unknownFields !== undefined) {
|
|
52
|
+
for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
|
|
53
|
+
const tag = parseInt(key, 10);
|
|
54
|
+
for (const value of values) {
|
|
55
|
+
writer.uint32(tag).raw(value);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return writer;
|
|
60
|
+
},
|
|
61
|
+
decode(input, length) {
|
|
62
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
63
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
64
|
+
const message = createBaseEmpty();
|
|
65
|
+
while (reader.pos < end) {
|
|
66
|
+
const tag = reader.uint32();
|
|
67
|
+
switch (tag >>> 3) {
|
|
68
|
+
}
|
|
69
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
const buf = reader.skip(tag & 7);
|
|
73
|
+
const list = message._unknownFields[tag];
|
|
74
|
+
if (list === undefined) {
|
|
75
|
+
message._unknownFields[tag] = [buf];
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
list.push(buf);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(_) {
|
|
84
|
+
return {};
|
|
85
|
+
},
|
|
86
|
+
toJSON(_) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
return obj;
|
|
89
|
+
},
|
|
90
|
+
create(base) {
|
|
91
|
+
return Empty.fromPartial(base ?? {});
|
|
92
|
+
},
|
|
93
|
+
fromPartial(_) {
|
|
94
|
+
const message = createBaseEmpty();
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
function createBaseTimestamp() {
|
|
99
|
+
return { unix_ms: "0", _unknownFields: {} };
|
|
100
|
+
}
|
|
101
|
+
export const Timestamp = {
|
|
102
|
+
encode(message, writer = new BinaryWriter()) {
|
|
103
|
+
if (message.unix_ms !== "0") {
|
|
104
|
+
writer.uint32(8).int64(message.unix_ms);
|
|
105
|
+
}
|
|
106
|
+
if (message._unknownFields !== undefined) {
|
|
107
|
+
for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
|
|
108
|
+
const tag = parseInt(key, 10);
|
|
109
|
+
for (const value of values) {
|
|
110
|
+
writer.uint32(tag).raw(value);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return writer;
|
|
115
|
+
},
|
|
116
|
+
decode(input, length) {
|
|
117
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
118
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
119
|
+
const message = createBaseTimestamp();
|
|
120
|
+
while (reader.pos < end) {
|
|
121
|
+
const tag = reader.uint32();
|
|
122
|
+
switch (tag >>> 3) {
|
|
123
|
+
case 1: {
|
|
124
|
+
if (tag !== 8) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
message.unix_ms = reader.int64().toString();
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
const buf = reader.skip(tag & 7);
|
|
135
|
+
const list = message._unknownFields[tag];
|
|
136
|
+
if (list === undefined) {
|
|
137
|
+
message._unknownFields[tag] = [buf];
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
list.push(buf);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
fromJSON(object) {
|
|
146
|
+
return {
|
|
147
|
+
unix_ms: isSet(object.unixMs)
|
|
148
|
+
? globalThis.String(object.unixMs)
|
|
149
|
+
: isSet(object.unix_ms)
|
|
150
|
+
? globalThis.String(object.unix_ms)
|
|
151
|
+
: "0",
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
toJSON(message) {
|
|
155
|
+
const obj = {};
|
|
156
|
+
if (message.unix_ms !== "0") {
|
|
157
|
+
obj.unixMs = message.unix_ms;
|
|
158
|
+
}
|
|
159
|
+
return obj;
|
|
160
|
+
},
|
|
161
|
+
create(base) {
|
|
162
|
+
return Timestamp.fromPartial(base ?? {});
|
|
163
|
+
},
|
|
164
|
+
fromPartial(object) {
|
|
165
|
+
const message = createBaseTimestamp();
|
|
166
|
+
message.unix_ms = object.unix_ms ?? "0";
|
|
167
|
+
return message;
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
function createBaseErrorInfo() {
|
|
171
|
+
return { code: 0, message: "", trace_id: "", _unknownFields: {} };
|
|
172
|
+
}
|
|
173
|
+
export const ErrorInfo = {
|
|
174
|
+
encode(message, writer = new BinaryWriter()) {
|
|
175
|
+
if (message.code !== 0) {
|
|
176
|
+
writer.uint32(8).int32(message.code);
|
|
177
|
+
}
|
|
178
|
+
if (message.message !== "") {
|
|
179
|
+
writer.uint32(18).string(message.message);
|
|
180
|
+
}
|
|
181
|
+
if (message.trace_id !== "") {
|
|
182
|
+
writer.uint32(26).string(message.trace_id);
|
|
183
|
+
}
|
|
184
|
+
if (message._unknownFields !== undefined) {
|
|
185
|
+
for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
|
|
186
|
+
const tag = parseInt(key, 10);
|
|
187
|
+
for (const value of values) {
|
|
188
|
+
writer.uint32(tag).raw(value);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return writer;
|
|
193
|
+
},
|
|
194
|
+
decode(input, length) {
|
|
195
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
196
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
197
|
+
const message = createBaseErrorInfo();
|
|
198
|
+
while (reader.pos < end) {
|
|
199
|
+
const tag = reader.uint32();
|
|
200
|
+
switch (tag >>> 3) {
|
|
201
|
+
case 1: {
|
|
202
|
+
if (tag !== 8) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.code = reader.int32();
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
case 2: {
|
|
209
|
+
if (tag !== 18) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
message.message = reader.string();
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
case 3: {
|
|
216
|
+
if (tag !== 26) {
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
message.trace_id = reader.string();
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
const buf = reader.skip(tag & 7);
|
|
227
|
+
const list = message._unknownFields[tag];
|
|
228
|
+
if (list === undefined) {
|
|
229
|
+
message._unknownFields[tag] = [buf];
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
list.push(buf);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return message;
|
|
236
|
+
},
|
|
237
|
+
fromJSON(object) {
|
|
238
|
+
return {
|
|
239
|
+
code: isSet(object.code) ? globalThis.Number(object.code) : 0,
|
|
240
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
241
|
+
trace_id: isSet(object.traceId)
|
|
242
|
+
? globalThis.String(object.traceId)
|
|
243
|
+
: isSet(object.trace_id)
|
|
244
|
+
? globalThis.String(object.trace_id)
|
|
245
|
+
: "",
|
|
246
|
+
};
|
|
247
|
+
},
|
|
248
|
+
toJSON(message) {
|
|
249
|
+
const obj = {};
|
|
250
|
+
if (message.code !== 0) {
|
|
251
|
+
obj.code = Math.round(message.code);
|
|
252
|
+
}
|
|
253
|
+
if (message.message !== "") {
|
|
254
|
+
obj.message = message.message;
|
|
255
|
+
}
|
|
256
|
+
if (message.trace_id !== "") {
|
|
257
|
+
obj.traceId = message.trace_id;
|
|
258
|
+
}
|
|
259
|
+
return obj;
|
|
260
|
+
},
|
|
261
|
+
create(base) {
|
|
262
|
+
return ErrorInfo.fromPartial(base ?? {});
|
|
263
|
+
},
|
|
264
|
+
fromPartial(object) {
|
|
265
|
+
const message = createBaseErrorInfo();
|
|
266
|
+
message.code = object.code ?? 0;
|
|
267
|
+
message.message = object.message ?? "";
|
|
268
|
+
message.trace_id = object.trace_id ?? "";
|
|
269
|
+
return message;
|
|
270
|
+
},
|
|
271
|
+
};
|
|
272
|
+
function createBaseAttachmentRef() {
|
|
273
|
+
return { name: "", url: "", size: "0", mime: "", _unknownFields: {} };
|
|
274
|
+
}
|
|
275
|
+
export const AttachmentRef = {
|
|
276
|
+
encode(message, writer = new BinaryWriter()) {
|
|
277
|
+
if (message.name !== "") {
|
|
278
|
+
writer.uint32(10).string(message.name);
|
|
279
|
+
}
|
|
280
|
+
if (message.url !== "") {
|
|
281
|
+
writer.uint32(18).string(message.url);
|
|
282
|
+
}
|
|
283
|
+
if (message.size !== "0") {
|
|
284
|
+
writer.uint32(24).uint64(message.size);
|
|
285
|
+
}
|
|
286
|
+
if (message.mime !== "") {
|
|
287
|
+
writer.uint32(34).string(message.mime);
|
|
288
|
+
}
|
|
289
|
+
if (message._unknownFields !== undefined) {
|
|
290
|
+
for (const [key, values] of globalThis.Object.entries(message._unknownFields)) {
|
|
291
|
+
const tag = parseInt(key, 10);
|
|
292
|
+
for (const value of values) {
|
|
293
|
+
writer.uint32(tag).raw(value);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return writer;
|
|
298
|
+
},
|
|
299
|
+
decode(input, length) {
|
|
300
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
301
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
302
|
+
const message = createBaseAttachmentRef();
|
|
303
|
+
while (reader.pos < end) {
|
|
304
|
+
const tag = reader.uint32();
|
|
305
|
+
switch (tag >>> 3) {
|
|
306
|
+
case 1: {
|
|
307
|
+
if (tag !== 10) {
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
message.name = reader.string();
|
|
311
|
+
continue;
|
|
312
|
+
}
|
|
313
|
+
case 2: {
|
|
314
|
+
if (tag !== 18) {
|
|
315
|
+
break;
|
|
316
|
+
}
|
|
317
|
+
message.url = reader.string();
|
|
318
|
+
continue;
|
|
319
|
+
}
|
|
320
|
+
case 3: {
|
|
321
|
+
if (tag !== 24) {
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
message.size = reader.uint64().toString();
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
case 4: {
|
|
328
|
+
if (tag !== 34) {
|
|
329
|
+
break;
|
|
330
|
+
}
|
|
331
|
+
message.mime = reader.string();
|
|
332
|
+
continue;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
336
|
+
break;
|
|
337
|
+
}
|
|
338
|
+
const buf = reader.skip(tag & 7);
|
|
339
|
+
const list = message._unknownFields[tag];
|
|
340
|
+
if (list === undefined) {
|
|
341
|
+
message._unknownFields[tag] = [buf];
|
|
342
|
+
}
|
|
343
|
+
else {
|
|
344
|
+
list.push(buf);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
return message;
|
|
348
|
+
},
|
|
349
|
+
fromJSON(object) {
|
|
350
|
+
return {
|
|
351
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
352
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
353
|
+
size: isSet(object.size) ? globalThis.String(object.size) : "0",
|
|
354
|
+
mime: isSet(object.mime) ? globalThis.String(object.mime) : "",
|
|
355
|
+
};
|
|
356
|
+
},
|
|
357
|
+
toJSON(message) {
|
|
358
|
+
const obj = {};
|
|
359
|
+
if (message.name !== "") {
|
|
360
|
+
obj.name = message.name;
|
|
361
|
+
}
|
|
362
|
+
if (message.url !== "") {
|
|
363
|
+
obj.url = message.url;
|
|
364
|
+
}
|
|
365
|
+
if (message.size !== "0") {
|
|
366
|
+
obj.size = message.size;
|
|
367
|
+
}
|
|
368
|
+
if (message.mime !== "") {
|
|
369
|
+
obj.mime = message.mime;
|
|
370
|
+
}
|
|
371
|
+
return obj;
|
|
372
|
+
},
|
|
373
|
+
create(base) {
|
|
374
|
+
return AttachmentRef.fromPartial(base ?? {});
|
|
375
|
+
},
|
|
376
|
+
fromPartial(object) {
|
|
377
|
+
const message = createBaseAttachmentRef();
|
|
378
|
+
message.name = object.name ?? "";
|
|
379
|
+
message.url = object.url ?? "";
|
|
380
|
+
message.size = object.size ?? "0";
|
|
381
|
+
message.mime = object.mime ?? "";
|
|
382
|
+
return message;
|
|
383
|
+
},
|
|
384
|
+
};
|
|
385
|
+
function isSet(value) {
|
|
386
|
+
return value !== null && value !== undefined;
|
|
387
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { ErrorInfo } from "./common.js";
|
|
3
|
+
export declare enum LlmContentBlockType {
|
|
4
|
+
LLM_CONTENT_BLOCK_TYPE_UNSPECIFIED = 0,
|
|
5
|
+
LLM_CONTENT_BLOCK_TYPE_TEXT = 1,
|
|
6
|
+
LLM_CONTENT_BLOCK_TYPE_THINKING = 2,
|
|
7
|
+
LLM_CONTENT_BLOCK_TYPE_TOOL_USE = 3,
|
|
8
|
+
LLM_CONTENT_BLOCK_TYPE_ASK_USER = 4,
|
|
9
|
+
LLM_CONTENT_BLOCK_TYPE_SPAWN_TASK = 5,
|
|
10
|
+
LLM_CONTENT_BLOCK_TYPE_HANDOFF_TASK = 6,
|
|
11
|
+
UNRECOGNIZED = -1
|
|
12
|
+
}
|
|
13
|
+
export declare function llmContentBlockTypeFromJSON(object: any): LlmContentBlockType;
|
|
14
|
+
export declare function llmContentBlockTypeToJSON(object: LlmContentBlockType): string;
|
|
15
|
+
export declare enum LlmContentBlockPhase {
|
|
16
|
+
LLM_CONTENT_BLOCK_PHASE_UNSPECIFIED = 0,
|
|
17
|
+
LLM_CONTENT_BLOCK_PHASE_START = 1,
|
|
18
|
+
LLM_CONTENT_BLOCK_PHASE_DELTA = 2,
|
|
19
|
+
LLM_CONTENT_BLOCK_PHASE_END = 3,
|
|
20
|
+
UNRECOGNIZED = -1
|
|
21
|
+
}
|
|
22
|
+
export declare function llmContentBlockPhaseFromJSON(object: any): LlmContentBlockPhase;
|
|
23
|
+
export declare function llmContentBlockPhaseToJSON(object: LlmContentBlockPhase): string;
|
|
24
|
+
export declare enum PresentationMode {
|
|
25
|
+
PRESENTATION_MODE_UNSPECIFIED = 0,
|
|
26
|
+
PRESENTATION_MODE_GALGAME = 1,
|
|
27
|
+
PRESENTATION_MODE_DOCUMENT = 2,
|
|
28
|
+
UNRECOGNIZED = -1
|
|
29
|
+
}
|
|
30
|
+
export declare function presentationModeFromJSON(object: any): PresentationMode;
|
|
31
|
+
export declare function presentationModeToJSON(object: PresentationMode): string;
|
|
32
|
+
export declare enum PresentationSegmentKind {
|
|
33
|
+
PRESENTATION_SEGMENT_KIND_UNSPECIFIED = 0,
|
|
34
|
+
PRESENTATION_SEGMENT_KIND_DIALOGUE = 1,
|
|
35
|
+
PRESENTATION_SEGMENT_KIND_NARRATION = 2,
|
|
36
|
+
UNRECOGNIZED = -1
|
|
37
|
+
}
|
|
38
|
+
export declare function presentationSegmentKindFromJSON(object: any): PresentationSegmentKind;
|
|
39
|
+
export declare function presentationSegmentKindToJSON(object: PresentationSegmentKind): string;
|
|
40
|
+
export interface LlmModelEntry {
|
|
41
|
+
model_id: string;
|
|
42
|
+
display_name: string;
|
|
43
|
+
provider: LlmModelEntry_Provider;
|
|
44
|
+
input_token_multiplier: number;
|
|
45
|
+
output_token_multiplier: number;
|
|
46
|
+
enabled: boolean;
|
|
47
|
+
_unknownFields?: {
|
|
48
|
+
[key: number]: Uint8Array[];
|
|
49
|
+
} | undefined;
|
|
50
|
+
}
|
|
51
|
+
export declare enum LlmModelEntry_Provider {
|
|
52
|
+
PROVIDER_UNSPECIFIED = 0,
|
|
53
|
+
PROVIDER_OPENROUTER = 1,
|
|
54
|
+
PROVIDER_DIRECT_ANTHROPIC = 2,
|
|
55
|
+
PROVIDER_DIRECT_OPENAI = 3,
|
|
56
|
+
PROVIDER_DIRECT_GOOGLE = 4,
|
|
57
|
+
PROVIDER_DIRECT_DEEPSEEK = 5,
|
|
58
|
+
PROVIDER_DIRECT_QWEN = 6,
|
|
59
|
+
PROVIDER_FOURTH_PARTY = 7,
|
|
60
|
+
UNRECOGNIZED = -1
|
|
61
|
+
}
|
|
62
|
+
export declare function llmModelEntry_ProviderFromJSON(object: any): LlmModelEntry_Provider;
|
|
63
|
+
export declare function llmModelEntry_ProviderToJSON(object: LlmModelEntry_Provider): string;
|
|
64
|
+
export interface LlmChatRequest {
|
|
65
|
+
session_id: string;
|
|
66
|
+
model_id: string;
|
|
67
|
+
user_message_protobuf: Uint8Array;
|
|
68
|
+
_unknownFields?: {
|
|
69
|
+
[key: number]: Uint8Array[];
|
|
70
|
+
} | undefined;
|
|
71
|
+
}
|
|
72
|
+
export interface LlmChatChunk {
|
|
73
|
+
session_id: string;
|
|
74
|
+
done: boolean;
|
|
75
|
+
error?: ErrorInfo | undefined;
|
|
76
|
+
block?: LlmContentBlock | undefined;
|
|
77
|
+
usage?: LlmStreamUsage | undefined;
|
|
78
|
+
_unknownFields?: {
|
|
79
|
+
[key: number]: Uint8Array[];
|
|
80
|
+
} | undefined;
|
|
81
|
+
}
|
|
82
|
+
export interface LlmThinkingPayload {
|
|
83
|
+
text_delta: string;
|
|
84
|
+
_unknownFields?: {
|
|
85
|
+
[key: number]: Uint8Array[];
|
|
86
|
+
} | undefined;
|
|
87
|
+
}
|
|
88
|
+
export interface LlmToolUsePayload {
|
|
89
|
+
tool_name: string;
|
|
90
|
+
call_id: string;
|
|
91
|
+
args_delta: string;
|
|
92
|
+
result_json: string;
|
|
93
|
+
is_error: boolean;
|
|
94
|
+
error_code: string;
|
|
95
|
+
_unknownFields?: {
|
|
96
|
+
[key: number]: Uint8Array[];
|
|
97
|
+
} | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface LlmAskUserPayload {
|
|
100
|
+
question: string;
|
|
101
|
+
options: string[];
|
|
102
|
+
ask_type: string;
|
|
103
|
+
answer: string[];
|
|
104
|
+
_unknownFields?: {
|
|
105
|
+
[key: number]: Uint8Array[];
|
|
106
|
+
} | undefined;
|
|
107
|
+
}
|
|
108
|
+
export interface LlmSpawnTaskPayload {
|
|
109
|
+
target_agent: string;
|
|
110
|
+
task_summary: string;
|
|
111
|
+
sub_run_phase: string;
|
|
112
|
+
sub_run_id: string;
|
|
113
|
+
summary: string;
|
|
114
|
+
_unknownFields?: {
|
|
115
|
+
[key: number]: Uint8Array[];
|
|
116
|
+
} | undefined;
|
|
117
|
+
}
|
|
118
|
+
export interface LlmHandoffTaskPayload {
|
|
119
|
+
from_agent: string;
|
|
120
|
+
to_agent: string;
|
|
121
|
+
display_name: string;
|
|
122
|
+
_unknownFields?: {
|
|
123
|
+
[key: number]: Uint8Array[];
|
|
124
|
+
} | undefined;
|
|
125
|
+
}
|
|
126
|
+
export interface LlmContentBlock {
|
|
127
|
+
block_type: LlmContentBlockType;
|
|
128
|
+
phase: LlmContentBlockPhase;
|
|
129
|
+
block_index: number;
|
|
130
|
+
agent_name: string;
|
|
131
|
+
thinking?: LlmThinkingPayload | undefined;
|
|
132
|
+
tool_use?: LlmToolUsePayload | undefined;
|
|
133
|
+
ask_user?: LlmAskUserPayload | undefined;
|
|
134
|
+
spawn_task?: LlmSpawnTaskPayload | undefined;
|
|
135
|
+
handoff_task?: LlmHandoffTaskPayload | undefined;
|
|
136
|
+
text_delta: string;
|
|
137
|
+
_unknownFields?: {
|
|
138
|
+
[key: number]: Uint8Array[];
|
|
139
|
+
} | undefined;
|
|
140
|
+
}
|
|
141
|
+
export interface LlmStreamUsage {
|
|
142
|
+
input_tokens: string;
|
|
143
|
+
output_tokens: string;
|
|
144
|
+
cache_hit_tokens: string;
|
|
145
|
+
reasoning_tokens: string;
|
|
146
|
+
charged_units: string;
|
|
147
|
+
remaining_units: string;
|
|
148
|
+
currency: string;
|
|
149
|
+
_unknownFields?: {
|
|
150
|
+
[key: number]: Uint8Array[];
|
|
151
|
+
} | undefined;
|
|
152
|
+
}
|
|
153
|
+
/** BGM 只引用 AudioBinding 规则,不携带 URL、priority 或正文。 */
|
|
154
|
+
export interface BgmCue {
|
|
155
|
+
rule_id: string;
|
|
156
|
+
_unknownFields?: {
|
|
157
|
+
[key: number]: Uint8Array[];
|
|
158
|
+
} | undefined;
|
|
159
|
+
}
|
|
160
|
+
/** 句级音效只引用规则 ID。 */
|
|
161
|
+
export interface SfxCue {
|
|
162
|
+
rule_id: string;
|
|
163
|
+
_unknownFields?: {
|
|
164
|
+
[key: number]: Uint8Array[];
|
|
165
|
+
} | undefined;
|
|
166
|
+
}
|
|
167
|
+
export interface PresentationSegment {
|
|
168
|
+
segment_id: string;
|
|
169
|
+
ordinal: number;
|
|
170
|
+
kind: PresentationSegmentKind;
|
|
171
|
+
speaker_id?: string | undefined;
|
|
172
|
+
speaker_label_snapshot?: string | undefined;
|
|
173
|
+
start_utf8: number;
|
|
174
|
+
end_utf8: number;
|
|
175
|
+
sfx_cues: SfxCue[];
|
|
176
|
+
_unknownFields?: {
|
|
177
|
+
[key: number]: Uint8Array[];
|
|
178
|
+
} | undefined;
|
|
179
|
+
}
|
|
180
|
+
/** schema_version=1。正文只存在 assistant message;segment 只保存 UTF-8 offset 与 speaker snapshot。 */
|
|
181
|
+
export interface PresentationPlan {
|
|
182
|
+
schema_version: number;
|
|
183
|
+
plan_id: string;
|
|
184
|
+
plan_sha256: Uint8Array;
|
|
185
|
+
assistant_message_id: string;
|
|
186
|
+
turn_id: string;
|
|
187
|
+
view_binding_id: string;
|
|
188
|
+
mode: PresentationMode;
|
|
189
|
+
presenter_snapshot_sha256: Uint8Array;
|
|
190
|
+
text_sha256: Uint8Array;
|
|
191
|
+
segments: PresentationSegment[];
|
|
192
|
+
bgm_cue?: BgmCue | undefined;
|
|
193
|
+
scenario_id: string;
|
|
194
|
+
save_id: string;
|
|
195
|
+
worldline_id: string;
|
|
196
|
+
_unknownFields?: {
|
|
197
|
+
[key: number]: Uint8Array[];
|
|
198
|
+
} | undefined;
|
|
199
|
+
}
|
|
200
|
+
export interface AudioSegmentCue {
|
|
201
|
+
segment_id: string;
|
|
202
|
+
sfx_rule_ids: string[];
|
|
203
|
+
_unknownFields?: {
|
|
204
|
+
[key: number]: Uint8Array[];
|
|
205
|
+
} | undefined;
|
|
206
|
+
}
|
|
207
|
+
/** AudioCuePlan 不得携带第二份正文、URL 或播放参数。 */
|
|
208
|
+
export interface AudioCuePlan {
|
|
209
|
+
schema_version: number;
|
|
210
|
+
assistant_message_id: string;
|
|
211
|
+
presentation_plan_sha256: Uint8Array;
|
|
212
|
+
bgm_rule_id?: string | undefined;
|
|
213
|
+
segment_cues: AudioSegmentCue[];
|
|
214
|
+
_unknownFields?: {
|
|
215
|
+
[key: number]: Uint8Array[];
|
|
216
|
+
} | undefined;
|
|
217
|
+
}
|
|
218
|
+
export interface PresentationAudioScope {
|
|
219
|
+
scenario_id: string;
|
|
220
|
+
save_id: string;
|
|
221
|
+
worldline_id: string;
|
|
222
|
+
view_binding_id: string;
|
|
223
|
+
_unknownFields?: {
|
|
224
|
+
[key: number]: Uint8Array[];
|
|
225
|
+
} | undefined;
|
|
226
|
+
}
|
|
227
|
+
export interface PersistedOverrideLease {
|
|
228
|
+
lease_id: string;
|
|
229
|
+
asset_id: string;
|
|
230
|
+
expires: string;
|
|
231
|
+
ttl_ms?: number | undefined;
|
|
232
|
+
presentation_plan_sha256: Uint8Array;
|
|
233
|
+
segment_id?: string | undefined;
|
|
234
|
+
_unknownFields?: {
|
|
235
|
+
[key: number]: Uint8Array[];
|
|
236
|
+
} | undefined;
|
|
237
|
+
}
|
|
238
|
+
export interface SfxCooldownState {
|
|
239
|
+
rule_id: string;
|
|
240
|
+
last_played_at_ms: string;
|
|
241
|
+
_unknownFields?: {
|
|
242
|
+
[key: number]: Uint8Array[];
|
|
243
|
+
} | undefined;
|
|
244
|
+
}
|
|
245
|
+
/** 不保存毫秒播放点;playlist 从头开始,stable_choice 只作一致性证据。 */
|
|
246
|
+
export interface AudioRuntimeSnapshot {
|
|
247
|
+
schema_version: number;
|
|
248
|
+
scope?: PresentationAudioScope | undefined;
|
|
249
|
+
active_bgm_rule_id?: string | undefined;
|
|
250
|
+
activation_epoch: string;
|
|
251
|
+
stable_choice_asset_id?: string | undefined;
|
|
252
|
+
effective_playlist_asset_ids: string[];
|
|
253
|
+
override_lease?: PersistedOverrideLease | undefined;
|
|
254
|
+
sfx_cooldowns: SfxCooldownState[];
|
|
255
|
+
_unknownFields?: {
|
|
256
|
+
[key: number]: Uint8Array[];
|
|
257
|
+
} | undefined;
|
|
258
|
+
}
|
|
259
|
+
export interface PresentationCursor {
|
|
260
|
+
schema_version: number;
|
|
261
|
+
assistant_message_id: string;
|
|
262
|
+
plan_sha256: Uint8Array;
|
|
263
|
+
segment_id: string;
|
|
264
|
+
cursor_seq: number;
|
|
265
|
+
_unknownFields?: {
|
|
266
|
+
[key: number]: Uint8Array[];
|
|
267
|
+
} | undefined;
|
|
268
|
+
}
|
|
269
|
+
export interface PresentationPlanStore {
|
|
270
|
+
schema_version: number;
|
|
271
|
+
plans: PresentationPlan[];
|
|
272
|
+
section_sha256: Uint8Array;
|
|
273
|
+
_unknownFields?: {
|
|
274
|
+
[key: number]: Uint8Array[];
|
|
275
|
+
} | undefined;
|
|
276
|
+
}
|
|
277
|
+
export declare const LlmModelEntry: MessageFns<LlmModelEntry>;
|
|
278
|
+
export declare const LlmChatRequest: MessageFns<LlmChatRequest>;
|
|
279
|
+
export declare const LlmChatChunk: MessageFns<LlmChatChunk>;
|
|
280
|
+
export declare const LlmThinkingPayload: MessageFns<LlmThinkingPayload>;
|
|
281
|
+
export declare const LlmToolUsePayload: MessageFns<LlmToolUsePayload>;
|
|
282
|
+
export declare const LlmAskUserPayload: MessageFns<LlmAskUserPayload>;
|
|
283
|
+
export declare const LlmSpawnTaskPayload: MessageFns<LlmSpawnTaskPayload>;
|
|
284
|
+
export declare const LlmHandoffTaskPayload: MessageFns<LlmHandoffTaskPayload>;
|
|
285
|
+
export declare const LlmContentBlock: MessageFns<LlmContentBlock>;
|
|
286
|
+
export declare const LlmStreamUsage: MessageFns<LlmStreamUsage>;
|
|
287
|
+
export declare const BgmCue: MessageFns<BgmCue>;
|
|
288
|
+
export declare const SfxCue: MessageFns<SfxCue>;
|
|
289
|
+
export declare const PresentationSegment: MessageFns<PresentationSegment>;
|
|
290
|
+
export declare const PresentationPlan: MessageFns<PresentationPlan>;
|
|
291
|
+
export declare const AudioSegmentCue: MessageFns<AudioSegmentCue>;
|
|
292
|
+
export declare const AudioCuePlan: MessageFns<AudioCuePlan>;
|
|
293
|
+
export declare const PresentationAudioScope: MessageFns<PresentationAudioScope>;
|
|
294
|
+
export declare const PersistedOverrideLease: MessageFns<PersistedOverrideLease>;
|
|
295
|
+
export declare const SfxCooldownState: MessageFns<SfxCooldownState>;
|
|
296
|
+
export declare const AudioRuntimeSnapshot: MessageFns<AudioRuntimeSnapshot>;
|
|
297
|
+
export declare const PresentationCursor: MessageFns<PresentationCursor>;
|
|
298
|
+
export declare const PresentationPlanStore: MessageFns<PresentationPlanStore>;
|
|
299
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
300
|
+
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 {} ? {
|
|
301
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
302
|
+
} : Partial<T>;
|
|
303
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
304
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
305
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
306
|
+
} & {
|
|
307
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
308
|
+
};
|
|
309
|
+
interface MessageFns<T> {
|
|
310
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
311
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
312
|
+
fromJSON(object: any): T;
|
|
313
|
+
toJSON(message: T): unknown;
|
|
314
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
315
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
316
|
+
}
|
|
317
|
+
export {};
|