@ue-shed/protocol 0.1.0-rc.1
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 +21 -0
- package/README.md +35 -0
- package/contracts/asset-audits/v1/texture-preview.schema.json +74 -0
- package/contracts/authoring/README.md +25 -0
- package/contracts/authoring/v1/apply-request.schema.json +568 -0
- package/contracts/authoring/v1/apply-result.schema.json +1165 -0
- package/contracts/authoring/v1/save-request.schema.json +53 -0
- package/contracts/authoring/v1/save-result.schema.json +77 -0
- package/contracts/authoring/v1/table-list.schema.json +48 -0
- package/contracts/authoring/v1/table-snapshot.schema.json +497 -0
- package/contracts/authoring/v2/table-snapshot.schema.json +950 -0
- package/contracts/cameras/review/v1/README.md +39 -0
- package/contracts/cameras/review/v1/capture-request.schema.json +92 -0
- package/contracts/cameras/review/v1/capture-response.schema.json +158 -0
- package/contracts/cameras/review/v1/fixtures/capture-failure.json +13 -0
- package/contracts/cameras/review/v1/fixtures/capture-legacy.json +17 -0
- package/contracts/cameras/review/v1/fixtures/capture-projected.json +33 -0
- package/contracts/cameras/review/v1/fixtures/capture-request-valid.json +21 -0
- package/contracts/cameras/review/v1/fixtures/capture-unprojectable.json +22 -0
- package/contracts/cameras/review/v1/fixtures/invalid-capture-request-bad-fov.json +21 -0
- package/contracts/cameras/review/v1/fixtures/invalid-capture-response-projected-without-margins.json +27 -0
- package/contracts/cameras/review/v1/fixtures/invalid-selection-unknown-code.json +11 -0
- package/contracts/cameras/review/v1/fixtures/selection-selected.json +15 -0
- package/contracts/cameras/review/v1/fixtures/selection-subject-not-found.json +11 -0
- package/contracts/cameras/review/v1/selection-response.schema.json +103 -0
- package/contracts/cameras/v1/README.md +33 -0
- package/contracts/editor-session/v1/README.md +11 -0
- package/contracts/editor-session/v1/command-response.schema.json +44 -0
- package/contracts/editor-session/v1/fixtures/command-accepted.json +6 -0
- package/contracts/editor-session/v1/fixtures/command-already-satisfied.json +6 -0
- package/contracts/editor-session/v1/fixtures/command-rejected.json +9 -0
- package/contracts/editor-session/v1/fixtures/state-paused.json +4 -0
- package/contracts/editor-session/v1/fixtures/state-running.json +4 -0
- package/contracts/editor-session/v1/fixtures/state-starting.json +4 -0
- package/contracts/editor-session/v1/fixtures/state-stopped.json +4 -0
- package/contracts/editor-session/v1/fixtures/state-stopping.json +4 -0
- package/contracts/editor-session/v1/state-response.schema.json +64 -0
- package/contracts/observatory/v1/README.md +78 -0
- package/contracts/observatory/v1/fixtures/bad-magic-then-valid.bin +0 -0
- package/contracts/observatory/v1/fixtures/fragmented-concat.bin +0 -0
- package/contracts/observatory/v1/fixtures/heartbeat.bin +0 -0
- package/contracts/observatory/v1/fixtures/mismatched-payload-length.bin +0 -0
- package/contracts/observatory/v1/fixtures/oversized-record-count.bin +0 -0
- package/contracts/observatory/v1/fixtures/reset.bin +0 -0
- package/contracts/observatory/v1/fixtures/truncated.bin +0 -0
- package/contracts/observatory/v1/fixtures/two-records.bin +0 -0
- package/contracts/observatory/v1/fixtures/unsupported-version.bin +0 -0
- package/dist/authoring-review.d.ts +679 -0
- package/dist/authoring-review.d.ts.map +1 -0
- package/dist/authoring-review.js +90 -0
- package/dist/authoring-review.js.map +1 -0
- package/dist/authoring.d.ts +889 -0
- package/dist/authoring.d.ts.map +1 -0
- package/dist/authoring.js +350 -0
- package/dist/authoring.js.map +1 -0
- package/dist/cameras.d.ts +184 -0
- package/dist/cameras.d.ts.map +1 -0
- package/dist/cameras.js +72 -0
- package/dist/cameras.js.map +1 -0
- package/dist/companion.d.ts +33 -0
- package/dist/companion.d.ts.map +1 -0
- package/dist/companion.js +18 -0
- package/dist/companion.js.map +1 -0
- package/dist/editor-play-session.d.ts +278 -0
- package/dist/editor-play-session.d.ts.map +1 -0
- package/dist/editor-play-session.js +56 -0
- package/dist/editor-play-session.js.map +1 -0
- package/dist/index.d.ts +146 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +106 -0
- package/dist/index.js.map +1 -0
- package/package.json +45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aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IAChC,KAAK,EAAE,iBAAiB;CACxB,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,CAAC;AAG5C,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3F,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const CompanionCapabilityManifest: Schema.Struct<{
|
|
3
|
+
readonly assetAuditsObjectPath: Schema.optional<Schema.String>;
|
|
4
|
+
readonly authoringObjectPath: Schema.optional<Schema.String>;
|
|
5
|
+
readonly camerasObjectPath: Schema.optional<Schema.String>;
|
|
6
|
+
readonly playSessionObjectPath: Schema.optional<Schema.String>;
|
|
7
|
+
readonly capabilities: Schema.$Array<Schema.String>;
|
|
8
|
+
readonly authoringLimits: Schema.optional<Schema.Struct<{
|
|
9
|
+
readonly maxCommands: Schema.Int;
|
|
10
|
+
readonly maxPayloadBytes: Schema.Int;
|
|
11
|
+
readonly maxTables: Schema.Int;
|
|
12
|
+
}>>;
|
|
13
|
+
readonly producerKind: Schema.Literal<"unreal_editor">;
|
|
14
|
+
readonly projectName: Schema.optional<Schema.String>;
|
|
15
|
+
readonly schemaVersion: Schema.Literal<1>;
|
|
16
|
+
}>;
|
|
17
|
+
export type CompanionCapabilityManifest = Schema.Schema.Type<typeof CompanionCapabilityManifest>;
|
|
18
|
+
export declare const decodeCompanionCapabilityManifest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<{
|
|
19
|
+
readonly schemaVersion: 1;
|
|
20
|
+
readonly capabilities: readonly string[];
|
|
21
|
+
readonly producerKind: "unreal_editor";
|
|
22
|
+
readonly assetAuditsObjectPath?: string | undefined;
|
|
23
|
+
readonly authoringObjectPath?: string | undefined;
|
|
24
|
+
readonly camerasObjectPath?: string | undefined;
|
|
25
|
+
readonly playSessionObjectPath?: string | undefined;
|
|
26
|
+
readonly authoringLimits?: Schema.Struct.ReadonlySide<{
|
|
27
|
+
readonly maxCommands: Schema.Int;
|
|
28
|
+
readonly maxPayloadBytes: Schema.Int;
|
|
29
|
+
readonly maxTables: Schema.Int;
|
|
30
|
+
}, "Type"> | undefined;
|
|
31
|
+
readonly projectName?: string | undefined;
|
|
32
|
+
}, Schema.SchemaError, never>;
|
|
33
|
+
//# sourceMappingURL=companion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion.d.ts","sourceRoot":"","sources":["../src/companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;EAgBkB,CAAC;AAC3D,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEjG,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;6BAE7C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export const CompanionCapabilityManifest = Schema.Struct({
|
|
3
|
+
assetAuditsObjectPath: Schema.optional(Schema.String),
|
|
4
|
+
authoringObjectPath: Schema.optional(Schema.String),
|
|
5
|
+
camerasObjectPath: Schema.optional(Schema.String),
|
|
6
|
+
playSessionObjectPath: Schema.optional(Schema.String),
|
|
7
|
+
capabilities: Schema.Array(Schema.String),
|
|
8
|
+
authoringLimits: Schema.optional(Schema.Struct({
|
|
9
|
+
maxCommands: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)),
|
|
10
|
+
maxPayloadBytes: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0)),
|
|
11
|
+
maxTables: Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))
|
|
12
|
+
})),
|
|
13
|
+
producerKind: Schema.Literal("unreal_editor"),
|
|
14
|
+
projectName: Schema.optional(Schema.String),
|
|
15
|
+
schemaVersion: Schema.Literal(1)
|
|
16
|
+
}).annotate({ identifier: "CompanionCapabilityManifest" });
|
|
17
|
+
export const decodeCompanionCapabilityManifest = Schema.decodeUnknownEffect(CompanionCapabilityManifest);
|
|
18
|
+
//# sourceMappingURL=companion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion.js","sourceRoot":"","sources":["../src/companion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,MAAM,CAAC;IACxD,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrD,mBAAmB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACnD,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACjD,qBAAqB,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACrD,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;IACzC,eAAe,EAAE,MAAM,CAAC,QAAQ,CAC/B,MAAM,CAAC,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;QAC/D,eAAe,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;QACnE,SAAS,EAAE,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC;KAC7D,CAAC,CACF;IACD,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC;IAC7C,WAAW,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC3C,aAAa,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;CAChC,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,6BAA6B,EAAE,CAAC,CAAC;AAG3D,MAAM,CAAC,MAAM,iCAAiC,GAAG,MAAM,CAAC,mBAAmB,CAC1E,2BAA2B,CAC3B,CAAC"}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const EditorPlaySessionContract: Schema.Struct<{
|
|
3
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
4
|
+
readonly version: Schema.Struct<{
|
|
5
|
+
readonly major: Schema.Literal<1>;
|
|
6
|
+
readonly minor: Schema.Literal<0>;
|
|
7
|
+
}>;
|
|
8
|
+
}>;
|
|
9
|
+
export interface EditorPlaySessionContract extends Schema.Schema.Type<typeof EditorPlaySessionContract> {
|
|
10
|
+
}
|
|
11
|
+
export declare const EditorPlaySessionMode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
12
|
+
export type EditorPlaySessionMode = Schema.Schema.Type<typeof EditorPlaySessionMode>;
|
|
13
|
+
export declare const EditorPlaySessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
14
|
+
export type EditorPlaySessionId = Schema.Schema.Type<typeof EditorPlaySessionId>;
|
|
15
|
+
export declare const EditorPlaySessionState: Schema.Union<readonly [Schema.Struct<{
|
|
16
|
+
readonly status: Schema.Literal<"stopped">;
|
|
17
|
+
}>, Schema.Struct<{
|
|
18
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
19
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
20
|
+
readonly status: Schema.Literal<"starting">;
|
|
21
|
+
}>, Schema.Struct<{
|
|
22
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
23
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
24
|
+
readonly status: Schema.Literal<"running">;
|
|
25
|
+
}>, Schema.Struct<{
|
|
26
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
27
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
28
|
+
readonly status: Schema.Literal<"paused">;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
31
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
32
|
+
readonly status: Schema.Literal<"stopping">;
|
|
33
|
+
}>]>;
|
|
34
|
+
export type EditorPlaySessionState = Schema.Schema.Type<typeof EditorPlaySessionState>;
|
|
35
|
+
export declare const EditorPlaySessionStateResponse: Schema.Struct<{
|
|
36
|
+
readonly contract: Schema.Struct<{
|
|
37
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
38
|
+
readonly version: Schema.Struct<{
|
|
39
|
+
readonly major: Schema.Literal<1>;
|
|
40
|
+
readonly minor: Schema.Literal<0>;
|
|
41
|
+
}>;
|
|
42
|
+
}>;
|
|
43
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
44
|
+
readonly status: Schema.Literal<"stopped">;
|
|
45
|
+
}>, Schema.Struct<{
|
|
46
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
47
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
48
|
+
readonly status: Schema.Literal<"starting">;
|
|
49
|
+
}>, Schema.Struct<{
|
|
50
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
51
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
52
|
+
readonly status: Schema.Literal<"running">;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
55
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
56
|
+
readonly status: Schema.Literal<"paused">;
|
|
57
|
+
}>, Schema.Struct<{
|
|
58
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
59
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
60
|
+
readonly status: Schema.Literal<"stopping">;
|
|
61
|
+
}>]>;
|
|
62
|
+
}>;
|
|
63
|
+
export type EditorPlaySessionStateResponse = Schema.Schema.Type<typeof EditorPlaySessionStateResponse>;
|
|
64
|
+
export declare const EditorPlaySessionCommand: Schema.Literals<readonly ["start_play", "start_simulate", "stop", "pause", "resume"]>;
|
|
65
|
+
export type EditorPlaySessionCommand = Schema.Schema.Type<typeof EditorPlaySessionCommand>;
|
|
66
|
+
export declare const EditorPlaySessionCommandResponse: Schema.Union<readonly [Schema.Struct<{
|
|
67
|
+
readonly command: Schema.Literals<readonly ["start_play", "start_simulate", "stop", "pause", "resume"]>;
|
|
68
|
+
readonly contract: Schema.Struct<{
|
|
69
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
70
|
+
readonly version: Schema.Struct<{
|
|
71
|
+
readonly major: Schema.Literal<1>;
|
|
72
|
+
readonly minor: Schema.Literal<0>;
|
|
73
|
+
}>;
|
|
74
|
+
}>;
|
|
75
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
76
|
+
readonly status: Schema.Literal<"stopped">;
|
|
77
|
+
}>, Schema.Struct<{
|
|
78
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
79
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
80
|
+
readonly status: Schema.Literal<"starting">;
|
|
81
|
+
}>, Schema.Struct<{
|
|
82
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
83
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
84
|
+
readonly status: Schema.Literal<"running">;
|
|
85
|
+
}>, Schema.Struct<{
|
|
86
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
87
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
88
|
+
readonly status: Schema.Literal<"paused">;
|
|
89
|
+
}>, Schema.Struct<{
|
|
90
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
91
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
92
|
+
readonly status: Schema.Literal<"stopping">;
|
|
93
|
+
}>]>;
|
|
94
|
+
readonly outcome: Schema.Literal<"accepted">;
|
|
95
|
+
}>, Schema.Struct<{
|
|
96
|
+
readonly command: Schema.Literals<readonly ["start_play", "start_simulate", "stop", "pause", "resume"]>;
|
|
97
|
+
readonly contract: Schema.Struct<{
|
|
98
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
99
|
+
readonly version: Schema.Struct<{
|
|
100
|
+
readonly major: Schema.Literal<1>;
|
|
101
|
+
readonly minor: Schema.Literal<0>;
|
|
102
|
+
}>;
|
|
103
|
+
}>;
|
|
104
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
105
|
+
readonly status: Schema.Literal<"stopped">;
|
|
106
|
+
}>, Schema.Struct<{
|
|
107
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
108
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
109
|
+
readonly status: Schema.Literal<"starting">;
|
|
110
|
+
}>, Schema.Struct<{
|
|
111
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
112
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
113
|
+
readonly status: Schema.Literal<"running">;
|
|
114
|
+
}>, Schema.Struct<{
|
|
115
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
116
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
117
|
+
readonly status: Schema.Literal<"paused">;
|
|
118
|
+
}>, Schema.Struct<{
|
|
119
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
120
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
121
|
+
readonly status: Schema.Literal<"stopping">;
|
|
122
|
+
}>]>;
|
|
123
|
+
readonly outcome: Schema.Literal<"already_satisfied">;
|
|
124
|
+
}>, Schema.Struct<{
|
|
125
|
+
readonly code: Schema.Literals<readonly ["invalid_state", "unavailable", "unsupported"]>;
|
|
126
|
+
readonly message: Schema.String;
|
|
127
|
+
readonly recovery: Schema.String;
|
|
128
|
+
readonly command: Schema.Literals<readonly ["start_play", "start_simulate", "stop", "pause", "resume"]>;
|
|
129
|
+
readonly contract: Schema.Struct<{
|
|
130
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
131
|
+
readonly version: Schema.Struct<{
|
|
132
|
+
readonly major: Schema.Literal<1>;
|
|
133
|
+
readonly minor: Schema.Literal<0>;
|
|
134
|
+
}>;
|
|
135
|
+
}>;
|
|
136
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
137
|
+
readonly status: Schema.Literal<"stopped">;
|
|
138
|
+
}>, Schema.Struct<{
|
|
139
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
140
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
141
|
+
readonly status: Schema.Literal<"starting">;
|
|
142
|
+
}>, Schema.Struct<{
|
|
143
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
144
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
145
|
+
readonly status: Schema.Literal<"running">;
|
|
146
|
+
}>, Schema.Struct<{
|
|
147
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
148
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
149
|
+
readonly status: Schema.Literal<"paused">;
|
|
150
|
+
}>, Schema.Struct<{
|
|
151
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
152
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
153
|
+
readonly status: Schema.Literal<"stopping">;
|
|
154
|
+
}>]>;
|
|
155
|
+
readonly outcome: Schema.Literal<"rejected">;
|
|
156
|
+
}>]>;
|
|
157
|
+
export type EditorPlaySessionCommandResponse = Schema.Schema.Type<typeof EditorPlaySessionCommandResponse>;
|
|
158
|
+
export declare const decodeEditorPlaySessionStateResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<Schema.Struct.ReadonlySide<{
|
|
159
|
+
readonly contract: Schema.Struct<{
|
|
160
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
161
|
+
readonly version: Schema.Struct<{
|
|
162
|
+
readonly major: Schema.Literal<1>;
|
|
163
|
+
readonly minor: Schema.Literal<0>;
|
|
164
|
+
}>;
|
|
165
|
+
}>;
|
|
166
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
167
|
+
readonly status: Schema.Literal<"stopped">;
|
|
168
|
+
}>, Schema.Struct<{
|
|
169
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
170
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
171
|
+
readonly status: Schema.Literal<"starting">;
|
|
172
|
+
}>, Schema.Struct<{
|
|
173
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
174
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
175
|
+
readonly status: Schema.Literal<"running">;
|
|
176
|
+
}>, Schema.Struct<{
|
|
177
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
178
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
179
|
+
readonly status: Schema.Literal<"paused">;
|
|
180
|
+
}>, Schema.Struct<{
|
|
181
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
182
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
183
|
+
readonly status: Schema.Literal<"stopping">;
|
|
184
|
+
}>]>;
|
|
185
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
186
|
+
export declare const decodeEditorPlaySessionCommandResponse: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => import("effect/Effect").Effect<Schema.Struct.ReadonlySide<{
|
|
187
|
+
readonly command: Schema.Literals<readonly ["start_play", "start_simulate", "stop", "pause", "resume"]>;
|
|
188
|
+
readonly contract: Schema.Struct<{
|
|
189
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
190
|
+
readonly version: Schema.Struct<{
|
|
191
|
+
readonly major: Schema.Literal<1>;
|
|
192
|
+
readonly minor: Schema.Literal<0>;
|
|
193
|
+
}>;
|
|
194
|
+
}>;
|
|
195
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
196
|
+
readonly status: Schema.Literal<"stopped">;
|
|
197
|
+
}>, Schema.Struct<{
|
|
198
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
199
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
200
|
+
readonly status: Schema.Literal<"starting">;
|
|
201
|
+
}>, Schema.Struct<{
|
|
202
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
203
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
204
|
+
readonly status: Schema.Literal<"running">;
|
|
205
|
+
}>, Schema.Struct<{
|
|
206
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
207
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
208
|
+
readonly status: Schema.Literal<"paused">;
|
|
209
|
+
}>, Schema.Struct<{
|
|
210
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
211
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
212
|
+
readonly status: Schema.Literal<"stopping">;
|
|
213
|
+
}>]>;
|
|
214
|
+
readonly outcome: Schema.Literal<"accepted">;
|
|
215
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
216
|
+
readonly command: Schema.Literals<readonly ["start_play", "start_simulate", "stop", "pause", "resume"]>;
|
|
217
|
+
readonly contract: Schema.Struct<{
|
|
218
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
219
|
+
readonly version: Schema.Struct<{
|
|
220
|
+
readonly major: Schema.Literal<1>;
|
|
221
|
+
readonly minor: Schema.Literal<0>;
|
|
222
|
+
}>;
|
|
223
|
+
}>;
|
|
224
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
225
|
+
readonly status: Schema.Literal<"stopped">;
|
|
226
|
+
}>, Schema.Struct<{
|
|
227
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
228
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
229
|
+
readonly status: Schema.Literal<"starting">;
|
|
230
|
+
}>, Schema.Struct<{
|
|
231
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
232
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
233
|
+
readonly status: Schema.Literal<"running">;
|
|
234
|
+
}>, Schema.Struct<{
|
|
235
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
236
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
237
|
+
readonly status: Schema.Literal<"paused">;
|
|
238
|
+
}>, Schema.Struct<{
|
|
239
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
240
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
241
|
+
readonly status: Schema.Literal<"stopping">;
|
|
242
|
+
}>]>;
|
|
243
|
+
readonly outcome: Schema.Literal<"already_satisfied">;
|
|
244
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
245
|
+
readonly code: Schema.Literals<readonly ["invalid_state", "unavailable", "unsupported"]>;
|
|
246
|
+
readonly message: Schema.String;
|
|
247
|
+
readonly recovery: Schema.String;
|
|
248
|
+
readonly command: Schema.Literals<readonly ["start_play", "start_simulate", "stop", "pause", "resume"]>;
|
|
249
|
+
readonly contract: Schema.Struct<{
|
|
250
|
+
readonly name: Schema.Literal<"unreal-editor-play-session">;
|
|
251
|
+
readonly version: Schema.Struct<{
|
|
252
|
+
readonly major: Schema.Literal<1>;
|
|
253
|
+
readonly minor: Schema.Literal<0>;
|
|
254
|
+
}>;
|
|
255
|
+
}>;
|
|
256
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
257
|
+
readonly status: Schema.Literal<"stopped">;
|
|
258
|
+
}>, Schema.Struct<{
|
|
259
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
260
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
261
|
+
readonly status: Schema.Literal<"starting">;
|
|
262
|
+
}>, Schema.Struct<{
|
|
263
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
264
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
265
|
+
readonly status: Schema.Literal<"running">;
|
|
266
|
+
}>, Schema.Struct<{
|
|
267
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
268
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
269
|
+
readonly status: Schema.Literal<"paused">;
|
|
270
|
+
}>, Schema.Struct<{
|
|
271
|
+
readonly mode: Schema.Literals<readonly ["play", "simulate"]>;
|
|
272
|
+
readonly sessionId: Schema.brand<Schema.NonEmptyString, "EditorPlaySessionId">;
|
|
273
|
+
readonly status: Schema.Literal<"stopping">;
|
|
274
|
+
}>]>;
|
|
275
|
+
readonly outcome: Schema.Literal<"rejected">;
|
|
276
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
277
|
+
export declare function makeEditorPlaySessionJsonSchema(contract: Schema.Top): Readonly<Record<string, unknown>>;
|
|
278
|
+
//# sourceMappingURL=editor-play-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-play-session.d.ts","sourceRoot":"","sources":["../src/editor-play-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,eAAO,MAAM,yBAAyB;;;;;;EAGpC,CAAC;AACH,MAAM,WAAW,yBAA0B,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CACpE,OAAO,yBAAyB,CAChC;CAAG;AAEJ,eAAO,MAAM,qBAAqB,gDAAwC,CAAC;AAC3E,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErF,eAAO,MAAM,mBAAmB,4DAAkE,CAAC;AACnG,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAOjF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;IAMkB,CAAC;AACtD,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEvF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGkB,CAAC;AAC9D,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAC9D,OAAO,8BAA8B,CACrC,CAAC;AAEF,eAAO,MAAM,wBAAwB,uFAMnC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAQ3F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUkB,CAAC;AAChE,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAChE,OAAO,gCAAgC,CACvC,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAEhD,CAAC;AACF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sCAElD,CAAC;AAEF,wBAAgB,+BAA+B,CAC9C,QAAQ,EAAE,MAAM,CAAC,GAAG,GAClB,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAOnC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export const EditorPlaySessionContract = Schema.Struct({
|
|
3
|
+
name: Schema.Literal("unreal-editor-play-session"),
|
|
4
|
+
version: Schema.Struct({ major: Schema.Literal(1), minor: Schema.Literal(0) })
|
|
5
|
+
});
|
|
6
|
+
export const EditorPlaySessionMode = Schema.Literals(["play", "simulate"]);
|
|
7
|
+
export const EditorPlaySessionId = Schema.NonEmptyString.pipe(Schema.brand("EditorPlaySessionId"));
|
|
8
|
+
const ActiveSessionFields = {
|
|
9
|
+
mode: EditorPlaySessionMode,
|
|
10
|
+
sessionId: EditorPlaySessionId
|
|
11
|
+
};
|
|
12
|
+
export const EditorPlaySessionState = Schema.Union([
|
|
13
|
+
Schema.Struct({ status: Schema.Literal("stopped") }),
|
|
14
|
+
Schema.Struct({ status: Schema.Literal("starting"), ...ActiveSessionFields }),
|
|
15
|
+
Schema.Struct({ status: Schema.Literal("running"), ...ActiveSessionFields }),
|
|
16
|
+
Schema.Struct({ status: Schema.Literal("paused"), ...ActiveSessionFields }),
|
|
17
|
+
Schema.Struct({ status: Schema.Literal("stopping"), ...ActiveSessionFields })
|
|
18
|
+
]).annotate({ identifier: "EditorPlaySessionState" });
|
|
19
|
+
export const EditorPlaySessionStateResponse = Schema.Struct({
|
|
20
|
+
contract: EditorPlaySessionContract,
|
|
21
|
+
state: EditorPlaySessionState
|
|
22
|
+
}).annotate({ identifier: "EditorPlaySessionStateResponse" });
|
|
23
|
+
export const EditorPlaySessionCommand = Schema.Literals([
|
|
24
|
+
"start_play",
|
|
25
|
+
"start_simulate",
|
|
26
|
+
"stop",
|
|
27
|
+
"pause",
|
|
28
|
+
"resume"
|
|
29
|
+
]);
|
|
30
|
+
const CommandFields = {
|
|
31
|
+
command: EditorPlaySessionCommand,
|
|
32
|
+
contract: EditorPlaySessionContract,
|
|
33
|
+
state: EditorPlaySessionState
|
|
34
|
+
};
|
|
35
|
+
export const EditorPlaySessionCommandResponse = Schema.Union([
|
|
36
|
+
Schema.Struct({ outcome: Schema.Literal("accepted"), ...CommandFields }),
|
|
37
|
+
Schema.Struct({ outcome: Schema.Literal("already_satisfied"), ...CommandFields }),
|
|
38
|
+
Schema.Struct({
|
|
39
|
+
outcome: Schema.Literal("rejected"),
|
|
40
|
+
...CommandFields,
|
|
41
|
+
code: Schema.Literals(["invalid_state", "unavailable", "unsupported"]),
|
|
42
|
+
message: Schema.String,
|
|
43
|
+
recovery: Schema.String
|
|
44
|
+
})
|
|
45
|
+
]).annotate({ identifier: "EditorPlaySessionCommandResponse" });
|
|
46
|
+
export const decodeEditorPlaySessionStateResponse = Schema.decodeUnknownEffect(EditorPlaySessionStateResponse);
|
|
47
|
+
export const decodeEditorPlaySessionCommandResponse = Schema.decodeUnknownEffect(EditorPlaySessionCommandResponse);
|
|
48
|
+
export function makeEditorPlaySessionJsonSchema(contract) {
|
|
49
|
+
const document = Schema.toJsonSchemaDocument(contract);
|
|
50
|
+
return {
|
|
51
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
52
|
+
$defs: document.definitions,
|
|
53
|
+
...document.schema
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=editor-play-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-play-session.js","sourceRoot":"","sources":["../src/editor-play-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,4BAA4B,CAAC;IAClD,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;CAC9E,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAG3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,CAAC;AAGnG,MAAM,mBAAmB,GAAG;IAC3B,IAAI,EAAE,qBAAqB;IAC3B,SAAS,EAAE,mBAAmB;CAC9B,CAAC;AAEF,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M,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,GAAG,aAAa,EAAE,CAAC;IACxE,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,EAAE,GAAG,aAAa,EAAE,CAAC;IACjF,MAAM,CAAC,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;QACnC,GAAG,aAAa;QAChB,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,eAAe,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC;QACtE,OAAO,EAAE,MAAM,CAAC,MAAM;QACtB,QAAQ,EAAE,MAAM,CAAC,MAAM;KACvB,CAAC;CACF,CAAC,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,kCAAkC,EAAE,CAAC,CAAC;AAKhE,MAAM,CAAC,MAAM,oCAAoC,GAAG,MAAM,CAAC,mBAAmB,CAC7E,8BAA8B,CAC9B,CAAC;AACF,MAAM,CAAC,MAAM,sCAAsC,GAAG,MAAM,CAAC,mBAAmB,CAC/E,gCAAgC,CAChC,CAAC;AAEF,MAAM,UAAU,+BAA+B,CAC9C,QAAoB;IAEpB,MAAM,QAAQ,GAAG,MAAM,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACvD,OAAO;QACN,OAAO,EAAE,8CAA8C;QACvD,KAAK,EAAE,QAAQ,CAAC,WAAW;QAC3B,GAAG,QAAQ,CAAC,MAAM;KAClB,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Effect, Schema } from "effect";
|
|
2
|
+
export declare const IdentifierKind: Schema.Literals<readonly ["actor", "capability", "producer", "session", "world"]>;
|
|
3
|
+
export type IdentifierKind = Schema.Schema.Type<typeof IdentifierKind>;
|
|
4
|
+
declare const IdentifierValidationError_base: Schema.Class<IdentifierValidationError, Schema.TaggedStruct<"IdentifierValidationError", {
|
|
5
|
+
readonly kind: Schema.Literals<readonly ["actor", "capability", "producer", "session", "world"]>;
|
|
6
|
+
readonly input: Schema.String;
|
|
7
|
+
readonly recovery: Schema.String;
|
|
8
|
+
}>, import("effect/Cause").YieldableError>;
|
|
9
|
+
export declare class IdentifierValidationError extends IdentifierValidationError_base {
|
|
10
|
+
}
|
|
11
|
+
export declare const ActorId: Schema.brand<Schema.Trim, "ActorId">;
|
|
12
|
+
export type ActorId = Schema.Schema.Type<typeof ActorId>;
|
|
13
|
+
export declare const CapabilityId: Schema.brand<Schema.Trim, "CapabilityId">;
|
|
14
|
+
export type CapabilityId = Schema.Schema.Type<typeof CapabilityId>;
|
|
15
|
+
export declare const ProducerId: Schema.brand<Schema.Trim, "ProducerId">;
|
|
16
|
+
export type ProducerId = Schema.Schema.Type<typeof ProducerId>;
|
|
17
|
+
export declare const SessionId: Schema.brand<Schema.Trim, "SessionId">;
|
|
18
|
+
export type SessionId = Schema.Schema.Type<typeof SessionId>;
|
|
19
|
+
export declare const WorldId: Schema.brand<Schema.Trim, "WorldId">;
|
|
20
|
+
export type WorldId = Schema.Schema.Type<typeof WorldId>;
|
|
21
|
+
export declare const decodeActorId: (input: unknown) => Effect.Effect<string & import("effect/Brand").Brand<"ActorId">, IdentifierValidationError, never>;
|
|
22
|
+
export declare const decodeCapabilityId: (input: unknown) => Effect.Effect<string & import("effect/Brand").Brand<"CapabilityId">, IdentifierValidationError, never>;
|
|
23
|
+
export declare const decodeProducerId: (input: unknown) => Effect.Effect<string & import("effect/Brand").Brand<"ProducerId">, IdentifierValidationError, never>;
|
|
24
|
+
export declare const decodeSessionId: (input: unknown) => Effect.Effect<string & import("effect/Brand").Brand<"SessionId">, IdentifierValidationError, never>;
|
|
25
|
+
export declare const decodeWorldId: (input: unknown) => Effect.Effect<string & import("effect/Brand").Brand<"WorldId">, IdentifierValidationError, never>;
|
|
26
|
+
export declare function createActorId(input: string): ActorId;
|
|
27
|
+
export declare function createCapabilityId(input: string): CapabilityId;
|
|
28
|
+
export declare function createProducerId(input: string): ProducerId;
|
|
29
|
+
export declare function createSessionId(input: string): SessionId;
|
|
30
|
+
export declare function createWorldId(input: string): WorldId;
|
|
31
|
+
export declare const ProtocolVersion: Schema.Struct<{
|
|
32
|
+
readonly major: Schema.Int;
|
|
33
|
+
readonly minor: Schema.Int;
|
|
34
|
+
}>;
|
|
35
|
+
export type ProtocolVersion = Schema.Schema.Type<typeof ProtocolVersion>;
|
|
36
|
+
export declare const CURRENT_PROTOCOL_VERSION: Schema.Struct.ReadonlySide<{
|
|
37
|
+
readonly major: Schema.Int;
|
|
38
|
+
readonly minor: Schema.Int;
|
|
39
|
+
}, "Type">;
|
|
40
|
+
export declare const TransportKind: Schema.Literals<readonly ["remote-control-http", "remote-control-websocket", "named-pipe"]>;
|
|
41
|
+
export type TransportKind = Schema.Schema.Type<typeof TransportKind>;
|
|
42
|
+
export declare const CapabilityDescriptor: Schema.Struct<{
|
|
43
|
+
readonly id: Schema.brand<Schema.Trim, "CapabilityId">;
|
|
44
|
+
readonly version: Schema.Struct<{
|
|
45
|
+
readonly major: Schema.Int;
|
|
46
|
+
readonly minor: Schema.Int;
|
|
47
|
+
}>;
|
|
48
|
+
readonly transports: Schema.$Array<Schema.Literals<readonly ["remote-control-http", "remote-control-websocket", "named-pipe"]>>;
|
|
49
|
+
}>;
|
|
50
|
+
export type CapabilityDescriptor = Schema.Schema.Type<typeof CapabilityDescriptor>;
|
|
51
|
+
export declare const CapabilityManifest: Schema.Struct<{
|
|
52
|
+
readonly producerId: Schema.brand<Schema.Trim, "ProducerId">;
|
|
53
|
+
readonly displayName: Schema.String;
|
|
54
|
+
readonly capabilities: Schema.$Array<Schema.Struct<{
|
|
55
|
+
readonly id: Schema.brand<Schema.Trim, "CapabilityId">;
|
|
56
|
+
readonly version: Schema.Struct<{
|
|
57
|
+
readonly major: Schema.Int;
|
|
58
|
+
readonly minor: Schema.Int;
|
|
59
|
+
}>;
|
|
60
|
+
readonly transports: Schema.$Array<Schema.Literals<readonly ["remote-control-http", "remote-control-websocket", "named-pipe"]>>;
|
|
61
|
+
}>>;
|
|
62
|
+
}>;
|
|
63
|
+
export type CapabilityManifest = Schema.Schema.Type<typeof CapabilityManifest>;
|
|
64
|
+
export declare const ConnectionState: Schema.Union<readonly [Schema.Struct<{
|
|
65
|
+
readonly status: Schema.Literal<"disconnected">;
|
|
66
|
+
}>, Schema.Struct<{
|
|
67
|
+
readonly status: Schema.Literal<"connecting">;
|
|
68
|
+
readonly endpoint: Schema.String;
|
|
69
|
+
}>, Schema.Struct<{
|
|
70
|
+
readonly status: Schema.Literal<"connected">;
|
|
71
|
+
readonly sessionId: Schema.brand<Schema.Trim, "SessionId">;
|
|
72
|
+
readonly manifest: Schema.Struct<{
|
|
73
|
+
readonly producerId: Schema.brand<Schema.Trim, "ProducerId">;
|
|
74
|
+
readonly displayName: Schema.String;
|
|
75
|
+
readonly capabilities: Schema.$Array<Schema.Struct<{
|
|
76
|
+
readonly id: Schema.brand<Schema.Trim, "CapabilityId">;
|
|
77
|
+
readonly version: Schema.Struct<{
|
|
78
|
+
readonly major: Schema.Int;
|
|
79
|
+
readonly minor: Schema.Int;
|
|
80
|
+
}>;
|
|
81
|
+
readonly transports: Schema.$Array<Schema.Literals<readonly ["remote-control-http", "remote-control-websocket", "named-pipe"]>>;
|
|
82
|
+
}>>;
|
|
83
|
+
}>;
|
|
84
|
+
}>, Schema.Struct<{
|
|
85
|
+
readonly status: Schema.Literal<"recovering">;
|
|
86
|
+
readonly sessionId: Schema.brand<Schema.Trim, "SessionId">;
|
|
87
|
+
readonly reason: Schema.String;
|
|
88
|
+
}>, Schema.Struct<{
|
|
89
|
+
readonly status: Schema.Literal<"ended">;
|
|
90
|
+
readonly sessionId: Schema.brand<Schema.Trim, "SessionId">;
|
|
91
|
+
readonly reason: Schema.Literals<readonly ["requested", "producer-exited", "transport-lost"]>;
|
|
92
|
+
}>, Schema.Struct<{
|
|
93
|
+
readonly status: Schema.Literal<"error">;
|
|
94
|
+
readonly message: Schema.String;
|
|
95
|
+
}>]>;
|
|
96
|
+
export type ConnectionState = Schema.Schema.Type<typeof ConnectionState>;
|
|
97
|
+
export declare const decodeCapabilityManifest: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
98
|
+
readonly producerId: Schema.brand<Schema.Trim, "ProducerId">;
|
|
99
|
+
readonly displayName: Schema.String;
|
|
100
|
+
readonly capabilities: Schema.$Array<Schema.Struct<{
|
|
101
|
+
readonly id: Schema.brand<Schema.Trim, "CapabilityId">;
|
|
102
|
+
readonly version: Schema.Struct<{
|
|
103
|
+
readonly major: Schema.Int;
|
|
104
|
+
readonly minor: Schema.Int;
|
|
105
|
+
}>;
|
|
106
|
+
readonly transports: Schema.$Array<Schema.Literals<readonly ["remote-control-http", "remote-control-websocket", "named-pipe"]>>;
|
|
107
|
+
}>>;
|
|
108
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
109
|
+
export declare const decodeConnectionState: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<Schema.Struct.ReadonlySide<{
|
|
110
|
+
readonly status: Schema.Literal<"disconnected">;
|
|
111
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
112
|
+
readonly status: Schema.Literal<"connecting">;
|
|
113
|
+
readonly endpoint: Schema.String;
|
|
114
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
115
|
+
readonly status: Schema.Literal<"connected">;
|
|
116
|
+
readonly sessionId: Schema.brand<Schema.Trim, "SessionId">;
|
|
117
|
+
readonly manifest: Schema.Struct<{
|
|
118
|
+
readonly producerId: Schema.brand<Schema.Trim, "ProducerId">;
|
|
119
|
+
readonly displayName: Schema.String;
|
|
120
|
+
readonly capabilities: Schema.$Array<Schema.Struct<{
|
|
121
|
+
readonly id: Schema.brand<Schema.Trim, "CapabilityId">;
|
|
122
|
+
readonly version: Schema.Struct<{
|
|
123
|
+
readonly major: Schema.Int;
|
|
124
|
+
readonly minor: Schema.Int;
|
|
125
|
+
}>;
|
|
126
|
+
readonly transports: Schema.$Array<Schema.Literals<readonly ["remote-control-http", "remote-control-websocket", "named-pipe"]>>;
|
|
127
|
+
}>>;
|
|
128
|
+
}>;
|
|
129
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
130
|
+
readonly status: Schema.Literal<"recovering">;
|
|
131
|
+
readonly sessionId: Schema.brand<Schema.Trim, "SessionId">;
|
|
132
|
+
readonly reason: Schema.String;
|
|
133
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
134
|
+
readonly status: Schema.Literal<"ended">;
|
|
135
|
+
readonly sessionId: Schema.brand<Schema.Trim, "SessionId">;
|
|
136
|
+
readonly reason: Schema.Literals<readonly ["requested", "producer-exited", "transport-lost"]>;
|
|
137
|
+
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
138
|
+
readonly status: Schema.Literal<"error">;
|
|
139
|
+
readonly message: Schema.String;
|
|
140
|
+
}, "Type">, Schema.SchemaError, never>;
|
|
141
|
+
export * from "./authoring.js";
|
|
142
|
+
export * from "./authoring-review.js";
|
|
143
|
+
export * from "./companion.js";
|
|
144
|
+
export * from "./cameras.js";
|
|
145
|
+
export * from "./editor-play-session.js";
|
|
146
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAExC,eAAO,MAAM,cAAc,mFAMzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;;;;;;AAEvE,qBAAa,yBAA0B,SAAQ,8BAO9C;CAAG;AAIJ,eAAO,MAAM,OAAO,sCAAiD,CAAC;A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