@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.
Files changed (74) hide show
  1. package/LICENSE +46 -0
  2. package/dist/entity-prop-envelope.d.ts +36 -0
  3. package/dist/entity-prop-envelope.js +50 -0
  4. package/dist/gen/v1/auth.d.ts +46 -0
  5. package/dist/gen/v1/auth.js +278 -0
  6. package/dist/gen/v1/billing.d.ts +71 -0
  7. package/dist/gen/v1/billing.js +521 -0
  8. package/dist/gen/v1/common.d.ts +65 -0
  9. package/dist/gen/v1/common.js +387 -0
  10. package/dist/gen/v1/llm.d.ts +317 -0
  11. package/dist/gen/v1/llm.js +3557 -0
  12. package/dist/gen/v1/mcp.d.ts +373 -0
  13. package/dist/gen/v1/mcp.js +3190 -0
  14. package/dist/gen/v1/moderation.d.ts +51 -0
  15. package/dist/gen/v1/moderation.js +368 -0
  16. package/dist/gen/v1/neutral_scenario_source.d.ts +80 -0
  17. package/dist/gen/v1/neutral_scenario_source.js +569 -0
  18. package/dist/gen/v1/relation_kind.d.ts +105 -0
  19. package/dist/gen/v1/relation_kind.js +562 -0
  20. package/dist/gen/v1/rest/admin.d.ts +432 -0
  21. package/dist/gen/v1/rest/admin.js +4957 -0
  22. package/dist/gen/v1/rest/asset.d.ts +205 -0
  23. package/dist/gen/v1/rest/asset.js +2200 -0
  24. package/dist/gen/v1/rest/auth.d.ts +275 -0
  25. package/dist/gen/v1/rest/auth.js +2896 -0
  26. package/dist/gen/v1/rest/billing.d.ts +101 -0
  27. package/dist/gen/v1/rest/billing.js +866 -0
  28. package/dist/gen/v1/rest/common.d.ts +179 -0
  29. package/dist/gen/v1/rest/common.js +1358 -0
  30. package/dist/gen/v1/rest/creator.d.ts +354 -0
  31. package/dist/gen/v1/rest/creator.js +4169 -0
  32. package/dist/gen/v1/rest/messaging.d.ts +190 -0
  33. package/dist/gen/v1/rest/messaging.js +2017 -0
  34. package/dist/gen/v1/rest/moderation.d.ts +61 -0
  35. package/dist/gen/v1/rest/moderation.js +569 -0
  36. package/dist/gen/v1/rest/pet.d.ts +98 -0
  37. package/dist/gen/v1/rest/pet.js +698 -0
  38. package/dist/gen/v1/rest/project_transfer.d.ts +470 -0
  39. package/dist/gen/v1/rest/project_transfer.js +5266 -0
  40. package/dist/gen/v1/rest/scenario.d.ts +756 -0
  41. package/dist/gen/v1/rest/scenario.js +8768 -0
  42. package/dist/gen/v1/rest/stock_bounty.d.ts +154 -0
  43. package/dist/gen/v1/rest/stock_bounty.js +1547 -0
  44. package/dist/gen/v1/rest/stocks.d.ts +465 -0
  45. package/dist/gen/v1/rest/stocks.js +5200 -0
  46. package/dist/gen/v1/rest/support_ticket.d.ts +61 -0
  47. package/dist/gen/v1/rest/support_ticket.js +511 -0
  48. package/dist/gen/v1/rest/users.d.ts +292 -0
  49. package/dist/gen/v1/rest/users.js +2879 -0
  50. package/dist/gen/v1/rest/violations.d.ts +52 -0
  51. package/dist/gen/v1/rest/violations.js +338 -0
  52. package/dist/gen/v1/sav.d.ts +987 -0
  53. package/dist/gen/v1/sav.js +12327 -0
  54. package/dist/gen/v1/save.d.ts +68 -0
  55. package/dist/gen/v1/save.js +595 -0
  56. package/dist/gen/v1/scenario_part_source.d.ts +94 -0
  57. package/dist/gen/v1/scenario_part_source.js +913 -0
  58. package/dist/gen/v1/session.d.ts +49 -0
  59. package/dist/gen/v1/session.js +311 -0
  60. package/dist/gen/v1/view_state.d.ts +267 -0
  61. package/dist/gen/v1/view_state.js +3239 -0
  62. package/dist/gen/v1/world.d.ts +82 -0
  63. package/dist/gen/v1/world.js +707 -0
  64. package/dist/gen/v1/world_memory.d.ts +545 -0
  65. package/dist/gen/v1/world_memory.js +5816 -0
  66. package/dist/gen/v1/world_memory_privacy.d.ts +96 -0
  67. package/dist/gen/v1/world_memory_privacy.js +994 -0
  68. package/dist/gen/v1/ws_frame.d.ts +1626 -0
  69. package/dist/gen/v1/ws_frame.js +18253 -0
  70. package/dist/index.d.ts +2 -0
  71. package/dist/index.js +5 -0
  72. package/dist/ladybug-extraction.d.ts +36 -0
  73. package/dist/ladybug-extraction.js +1 -0
  74. package/package.json +65 -0
@@ -0,0 +1,94 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ /**
3
+ * ScenarioPartSourceV1 是 Local Author Project 内 Scenario Part 的唯一作者源。
4
+ * View Part 独立存在于 view/,上传时再由 adapter 生成 Neutral Source view_project section。
5
+ */
6
+ export interface ScenarioPartSourceV1 {
7
+ schema_version: number;
8
+ metadata: Uint8Array;
9
+ logical_graph: Uint8Array;
10
+ trigger_semantics: Uint8Array;
11
+ layout: Uint8Array;
12
+ resource_refs: Uint8Array;
13
+ prompt_retrieval: Uint8Array;
14
+ spatial_world?: SpatialWorldSourceV1 | undefined;
15
+ _unknownFields?: {
16
+ [key: number]: Uint8Array[];
17
+ } | undefined;
18
+ }
19
+ /** SpatialWorldSourceV1 只保存可编辑、可重建的空间语义,不保存渲染缓存。 */
20
+ export interface SpatialWorldSourceV1 {
21
+ schema_version: number;
22
+ generation_seed: string;
23
+ topology?: SpatialTopologyV1 | undefined;
24
+ planet_generation_settings: Uint8Array;
25
+ biome_rules: Uint8Array[];
26
+ overlay_layers: Uint8Array[];
27
+ cities: SpatialObjectV1[];
28
+ parcels: SpatialObjectV1[];
29
+ buildings: SpatialObjectV1[];
30
+ rooms: SpatialObjectV1[];
31
+ apertures: SpatialObjectV1[];
32
+ preset_overrides: SpatialPresetV1[];
33
+ asset_refs: string[];
34
+ _unknownFields?: {
35
+ [key: number]: Uint8Array[];
36
+ } | undefined;
37
+ }
38
+ export interface SpatialTopologyV1 {
39
+ kind: SpatialTopologyV1_Kind;
40
+ settings: Uint8Array;
41
+ _unknownFields?: {
42
+ [key: number]: Uint8Array[];
43
+ } | undefined;
44
+ }
45
+ export declare enum SpatialTopologyV1_Kind {
46
+ KIND_UNSPECIFIED = 0,
47
+ KIND_SPHERE = 1,
48
+ KIND_PLANE = 2,
49
+ KIND_RING = 3,
50
+ UNRECOGNIZED = -1
51
+ }
52
+ export declare function spatialTopologyV1_KindFromJSON(object: any): SpatialTopologyV1_Kind;
53
+ export declare function spatialTopologyV1_KindToJSON(object: SpatialTopologyV1_Kind): string;
54
+ export interface SpatialObjectV1 {
55
+ spatial_id: string;
56
+ parent_spatial_id: string;
57
+ label: string;
58
+ author_settings: Uint8Array;
59
+ asset_refs: string[];
60
+ _unknownFields?: {
61
+ [key: number]: Uint8Array[];
62
+ } | undefined;
63
+ }
64
+ export interface SpatialPresetV1 {
65
+ preset_id: string;
66
+ author_settings: Uint8Array;
67
+ _unknownFields?: {
68
+ [key: number]: Uint8Array[];
69
+ } | undefined;
70
+ }
71
+ export declare const ScenarioPartSourceV1: MessageFns<ScenarioPartSourceV1>;
72
+ export declare const SpatialWorldSourceV1: MessageFns<SpatialWorldSourceV1>;
73
+ export declare const SpatialTopologyV1: MessageFns<SpatialTopologyV1>;
74
+ export declare const SpatialObjectV1: MessageFns<SpatialObjectV1>;
75
+ export declare const SpatialPresetV1: MessageFns<SpatialPresetV1>;
76
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
77
+ 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 {} ? {
78
+ [K in keyof T]?: DeepPartial<T[K]>;
79
+ } : Partial<T>;
80
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
81
+ type Exact<P, I extends P> = P extends Builtin ? P : P & {
82
+ [K in keyof P]: Exact<P[K], I[K]>;
83
+ } & {
84
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
85
+ };
86
+ interface MessageFns<T> {
87
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
88
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
89
+ fromJSON(object: any): T;
90
+ toJSON(message: T): unknown;
91
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
92
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
93
+ }
94
+ export {};