//
// Generated from packages/bridge-protocol by scripts/gen-bridge-schema.ts. Do not edit.
//
using Newtonsoft.Json;
namespace Uigenx.Protocol.Generated
{
/// Message type strings, mirrored from the TypeScript protocol registry.
public static class UgxMessageTypes
{
public const int ProtocolVersion = 1;
public const string ToDaemonActionFired = "action.fired";
public const string ToDaemonCompileResult = "compile.result";
public const string ToDaemonDataDelta = "data.delta";
public const string ToDaemonDataSnapshot = "data.snapshot";
public const string ToDaemonDataSchemaResult = "dataSchema.result";
public const string ToDaemonError = "error";
public const string ToDaemonHello = "hello";
public const string ToDaemonHotReloadResult = "hotReload.result";
public const string ToDaemonLog = "log";
public const string ToDaemonPong = "pong";
public const string ToDaemonPreviewResult = "preview.result";
public const string ToDaemonScreenState = "screen.state";
public const string ToDaemonSyncResult = "sync.result";
public const string ToUnityActionEmit = "action.emit";
public const string ToUnityCompileRequest = "compile.request";
public const string ToUnityDataSet = "data.set";
public const string ToUnityDataSubscribe = "data.subscribe";
public const string ToUnityDataUnsubscribe = "data.unsubscribe";
public const string ToUnityDataSchemaRequest = "dataSchema.request";
public const string ToUnityError = "error";
public const string ToUnityHotReloadRequest = "hotReload.request";
public const string ToUnityPing = "ping";
public const string ToUnityPreviewRequest = "preview.request";
public const string ToUnityScreenshotRequest = "screenshot.request";
public const string ToUnitySyncBundle = "sync.bundle";
public const string ToUnitySyncFile = "sync.file";
public const string ToUnityWelcome = "welcome";
}
public sealed class ActionEmitBody
{
[JsonProperty("action")]
public string Action { get; set; }
[JsonProperty("payload")]
public System.Collections.Generic.Dictionary Payload { get; set; }
}
public sealed class ActionFiredBody
{
[JsonProperty("action")]
public string Action { get; set; }
[JsonProperty("payload")]
public System.Collections.Generic.Dictionary Payload { get; set; }
[JsonProperty("screen")]
public string Screen { get; set; }
[JsonProperty("nodeId")]
public string NodeId { get; set; }
[JsonProperty("source")]
public string Source { get; set; }
}
public sealed class CompileRequestBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
}
public sealed class CompileResultBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("ok")]
public bool Ok { get; set; }
[JsonProperty("errors")]
public CompileResultBodyErrorsItem[] Errors { get; set; }
[JsonProperty("warnings")]
public CompileResultBodyWarningsItem[] Warnings { get; set; }
[JsonProperty("durationMs")]
public double DurationMs { get; set; }
}
public sealed class CompileResultBodyErrorsItem
{
[JsonProperty("file")]
public string File { get; set; }
[JsonProperty("line")]
public int Line { get; set; }
[JsonProperty("column")]
public int Column { get; set; }
[JsonProperty("code")]
public string Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
}
public sealed class CompileResultBodyWarningsItem
{
[JsonProperty("file")]
public string File { get; set; }
[JsonProperty("line")]
public int Line { get; set; }
[JsonProperty("column")]
public int Column { get; set; }
[JsonProperty("code")]
public string Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
}
public sealed class DataDeltaBody
{
[JsonProperty("session")]
public string Session { get; set; }
[JsonProperty("seq")]
public int Seq { get; set; }
[JsonProperty("changes")]
public DataDeltaBodyChangesItem[] Changes { get; set; }
}
public sealed class DataDeltaBodyChangesItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("v")]
public Newtonsoft.Json.Linq.JToken V { get; set; }
}
public sealed class DataSchemaRequestBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
}
public sealed class DataSchemaResultBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("sources")]
public DataSchemaResultBodySourcesItem[] Sources { get; set; }
[JsonProperty("actions")]
public DataSchemaResultBodyActionsItem[] Actions { get; set; }
}
public sealed class DataSchemaResultBodyActionsItem
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("payload")]
public System.Collections.Generic.Dictionary Payload { get; set; }
}
public sealed class DataSchemaResultBodySourcesItem
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("typeName")]
public string TypeName { get; set; }
[JsonProperty("fields")]
public DataSchemaResultBodySourcesItemFieldsItem[] Fields { get; set; }
}
public sealed class DataSchemaResultBodySourcesItemFieldsItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("writable")]
public bool Writable { get; set; }
}
public sealed class DataSetBody
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("value")]
public Newtonsoft.Json.Linq.JToken Value { get; set; }
}
public sealed class DataSnapshotBody
{
[JsonProperty("session")]
public string Session { get; set; }
[JsonProperty("seq")]
public int Seq { get; set; }
[JsonProperty("values")]
public System.Collections.Generic.Dictionary Values { get; set; }
}
public sealed class DataSubscribeBody
{
[JsonProperty("session")]
public string Session { get; set; }
[JsonProperty("paths")]
public string[] Paths { get; set; }
[JsonProperty("hz")]
public double Hz { get; set; }
}
public sealed class DataUnsubscribeBody
{
[JsonProperty("session")]
public string Session { get; set; }
}
public sealed class ErrorBody
{
[JsonProperty("code")]
public string Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
[JsonProperty("details")]
public System.Collections.Generic.Dictionary Details { get; set; }
}
public sealed class HelloBody
{
[JsonProperty("token")]
public string Token { get; set; }
[JsonProperty("role")]
public string Role { get; set; }
[JsonProperty("unityVersion")]
public string UnityVersion { get; set; }
[JsonProperty("packageVersion")]
public string PackageVersion { get; set; }
[JsonProperty("projectId")]
public string ProjectId { get; set; }
[JsonProperty("capabilities")]
public string[] Capabilities { get; set; }
[JsonProperty("platform")]
public string Platform { get; set; }
[JsonProperty("isPlaying")]
public bool IsPlaying { get; set; }
[JsonProperty("renderPipeline")]
public string RenderPipeline { get; set; }
}
public sealed class HotReloadRequestBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("files")]
public HotReloadRequestBodyFilesItem[] Files { get; set; }
}
public sealed class HotReloadRequestBodyFilesItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("content")]
public string Content { get; set; }
}
public sealed class HotReloadResultBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("reloaded")]
public string[] Reloaded { get; set; }
[JsonProperty("errors")]
public string[] Errors { get; set; }
}
public sealed class LogBody
{
[JsonProperty("level")]
public string Level { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
[JsonProperty("stack")]
public string Stack { get; set; }
}
public sealed class PingBody
{
}
public sealed class PongBody
{
}
public sealed class PreviewRequestBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("screen")]
public string Screen { get; set; }
[JsonProperty("width")]
public int Width { get; set; }
[JsonProperty("height")]
public int Height { get; set; }
[JsonProperty("data")]
public System.Collections.Generic.Dictionary Data { get; set; }
[JsonProperty("states")]
public System.Collections.Generic.Dictionary States { get; set; }
[JsonProperty("layout")]
public bool Layout { get; set; }
}
public sealed class PreviewResultBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("png")]
public string Png { get; set; }
[JsonProperty("width")]
public int Width { get; set; }
[JsonProperty("height")]
public int Height { get; set; }
[JsonProperty("layout")]
public PreviewResultBodyLayoutItem[] Layout { get; set; }
}
public sealed class PreviewResultBodyLayoutItem
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("x")]
public double X { get; set; }
[JsonProperty("y")]
public double Y { get; set; }
[JsonProperty("w")]
public double W { get; set; }
[JsonProperty("h")]
public double H { get; set; }
}
public sealed class ScreenshotRequestBody
{
[JsonProperty("requestId")]
public string RequestId { get; set; }
[JsonProperty("width")]
public int Width { get; set; }
[JsonProperty("height")]
public int Height { get; set; }
}
public sealed class ScreenStateBody
{
[JsonProperty("stack")]
public ScreenStateBodyStackItem[] Stack { get; set; }
}
public sealed class ScreenStateBodyStackItem
{
[JsonProperty("screen")]
public string Screen { get; set; }
[JsonProperty("layer")]
public string Layer { get; set; }
}
public sealed class SyncBundleBody
{
[JsonProperty("bundleId")]
public string BundleId { get; set; }
[JsonProperty("generatedAt")]
public int GeneratedAt { get; set; }
[JsonProperty("files")]
public SyncBundleBodyFilesItem[] Files { get; set; }
[JsonProperty("assets")]
public SyncBundleBodyAssetsItem[] Assets { get; set; }
[JsonProperty("materials")]
public SyncBundleBodyMaterialsItem[] Materials { get; set; }
[JsonProperty("filters")]
public SyncBundleBodyFiltersItem[] Filters { get; set; }
[JsonProperty("deletions")]
public string[] Deletions { get; set; }
[JsonProperty("manifest")]
public SyncBundleBodyManifest Manifest { get; set; }
}
public sealed class SyncBundleBodyAssetsItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("importer")]
public SyncBundleBodyAssetsItemImporter Importer { get; set; }
}
public sealed class SyncBundleBodyAssetsItemImporter
{
[JsonProperty("textureType")]
public string TextureType { get; set; }
[JsonProperty("spriteMode")]
public string SpriteMode { get; set; }
[JsonProperty("pixelsPerUnit")]
public double PixelsPerUnit { get; set; }
[JsonProperty("filterMode")]
public string FilterMode { get; set; }
[JsonProperty("spriteBorder")]
public double[] SpriteBorder { get; set; }
[JsonProperty("meshType")]
public string MeshType { get; set; }
[JsonProperty("mipmaps")]
public bool Mipmaps { get; set; }
[JsonProperty("alphaIsTransparency")]
public bool AlphaIsTransparency { get; set; }
[JsonProperty("maxSize")]
public int MaxSize { get; set; }
}
public sealed class SyncBundleBodyFilesItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("sha256")]
public string Sha256 { get; set; }
[JsonProperty("kind")]
public string Kind { get; set; }
[JsonProperty("content")]
public string Content { get; set; }
[JsonProperty("guid")]
public string Guid { get; set; }
[JsonProperty("generated")]
public bool Generated { get; set; }
}
public sealed class SyncBundleBodyFiltersItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("shader")]
public string Shader { get; set; }
[JsonProperty("parameters")]
public SyncBundleBodyFiltersItemParametersItem[] Parameters { get; set; }
}
public sealed class SyncBundleBodyFiltersItemParametersItem
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("type")]
public string Type { get; set; }
[JsonProperty("default")]
public Newtonsoft.Json.Linq.JToken Default { get; set; }
}
public sealed class SyncBundleBodyManifest
{
[JsonProperty("screens")]
public SyncBundleBodyManifestScreensItem[] Screens { get; set; }
[JsonProperty("actions")]
public SyncBundleBodyManifestActionsItem[] Actions { get; set; }
[JsonProperty("panels")]
public SyncBundleBodyManifestPanelsItem[] Panels { get; set; }
[JsonProperty("fonts")]
public SyncBundleBodyManifestFontsItem[] Fonts { get; set; }
}
public sealed class SyncBundleBodyManifestActionsItem
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("payload")]
public System.Collections.Generic.Dictionary Payload { get; set; }
}
public sealed class SyncBundleBodyManifestFontsItem
{
[JsonProperty("source")]
public string Source { get; set; }
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("guid")]
public string Guid { get; set; }
[JsonProperty("renderMode")]
public string RenderMode { get; set; }
[JsonProperty("samplingPointSize")]
public int SamplingPointSize { get; set; }
[JsonProperty("atlasSize")]
public int AtlasSize { get; set; }
[JsonProperty("padding")]
public int Padding { get; set; }
}
public sealed class SyncBundleBodyManifestPanelsItem
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("sortOrder")]
public double SortOrder { get; set; }
[JsonProperty("scaleMode")]
public string ScaleMode { get; set; }
[JsonProperty("scale")]
public double Scale { get; set; }
[JsonProperty("referenceDpi")]
public double ReferenceDpi { get; set; }
[JsonProperty("fallbackDpi")]
public double FallbackDpi { get; set; }
[JsonProperty("referenceResolution")]
public int[] ReferenceResolution { get; set; }
[JsonProperty("screenMatchMode")]
public string ScreenMatchMode { get; set; }
[JsonProperty("match")]
public double Match { get; set; }
[JsonProperty("referenceSpritePixelsPerUnit")]
public double ReferenceSpritePixelsPerUnit { get; set; }
[JsonProperty("theme")]
public string Theme { get; set; }
}
public sealed class SyncBundleBodyManifestScreensItem
{
[JsonProperty("key")]
public string Key { get; set; }
[JsonProperty("uxml")]
public string Uxml { get; set; }
[JsonProperty("className")]
public string ClassName { get; set; }
[JsonProperty("layer")]
public string Layer { get; set; }
}
public sealed class SyncBundleBodyMaterialsItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("shader")]
public string Shader { get; set; }
[JsonProperty("properties")]
public System.Collections.Generic.Dictionary Properties { get; set; }
}
public sealed class SyncFileBody
{
[JsonProperty("sha256")]
public string Sha256 { get; set; }
[JsonProperty("index")]
public int Index { get; set; }
[JsonProperty("total")]
public int Total { get; set; }
[JsonProperty("chunk")]
public string Chunk { get; set; }
}
public sealed class SyncResultBody
{
[JsonProperty("bundleId")]
public string BundleId { get; set; }
[JsonProperty("imported")]
public SyncResultBodyImportedItem[] Imported { get; set; }
[JsonProperty("warnings")]
public string[] Warnings { get; set; }
[JsonProperty("durationMs")]
public double DurationMs { get; set; }
}
public sealed class SyncResultBodyImportedItem
{
[JsonProperty("path")]
public string Path { get; set; }
[JsonProperty("guid")]
public string Guid { get; set; }
}
public sealed class WelcomeBody
{
[JsonProperty("daemonVersion")]
public string DaemonVersion { get; set; }
[JsonProperty("protocolVersion")]
public int ProtocolVersion { get; set; }
[JsonProperty("projectName")]
public string ProjectName { get; set; }
[JsonProperty("uiFolder")]
public string UiFolder { get; set; }
[JsonProperty("features")]
public System.Collections.Generic.Dictionary Features { get; set; }
}
}