wip: Construct API

This commit is contained in:
ForestOfLight
2026-05-29 23:27:11 +02:00
Unverified
parent f750710732
commit 2b90020e37
25 changed files with 454 additions and 29 deletions
@@ -0,0 +1,20 @@
import { PROTO } from "./MCBE-IPC/ipc";
export const VoidModel = PROTO.Void;
export const ErrorModel = PROTO.Optional(PROTO.Object({
code: PROTO.Int8,
name: PROTO.Optional(PROTO.String),
message: PROTO.Optional(PROTO.String)
}));
export const ReturnModelShell = {
apiVersion: PROTO.String,
data: void 0,
error: ErrorModel
};
export const CallModelShell = {
apiVersion: PROTO.String,
parameterMap: void 0
};