@voltro/plugin-engine-servers 0.0.0-stage → 0.91.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/dist/rows.js ADDED
@@ -0,0 +1,27 @@
1
+ import { EngineServersError as e, engineServersError as t } from "./errors.js";
2
+ import { Effect as n } from "effect";
3
+ // src/rows.ts
4
+ var r = (n) => {
5
+ if (n instanceof e) return n;
6
+ let r = t("unavailable");
7
+ return Object.defineProperty(r, "cause", {
8
+ value: n,
9
+ configurable: !0
10
+ }), r;
11
+ }, i = (e) => n.tryPromise({
12
+ try: e,
13
+ catch: r
14
+ }), a = (e) => n.mapError(e, () => t("unavailable", "hot_store")), o = (e) => n.fail(t(e)), s = (e, n) => {
15
+ let r = e[n];
16
+ if (typeof r != "string") throw t("unavailable");
17
+ return r;
18
+ }, c = (e, t) => e[t] === null || e[t] === void 0 ? null : s(e, t), l = (e, n) => {
19
+ let r = Number(e[n]);
20
+ if (!Number.isSafeInteger(r)) throw t("unavailable");
21
+ return r;
22
+ }, u = (e) => {
23
+ let n = e instanceof Date ? e.getTime() : typeof e == "string" ? Date.parse(e) : typeof e == "number" ? e : NaN;
24
+ if (!Number.isSafeInteger(n) || n < 0) throw t("unavailable");
25
+ return n;
26
+ }, d = (e) => e == null ? null : u(e), f = (e) => typeof e == "string" ? JSON.parse(e) : e, p = (e) => e === !0 || e === 1 || e === "1" || e === "t" || e === "true", m = (e, t) => typeof e == "string" && e.trim().length > 0 && e.length <= t, h = (e) => typeof e != "object" || !e ? JSON.stringify(e) : Array.isArray(e) ? "[" + e.map(h).join(",") + "]" : "{" + Object.keys(e).filter((t) => e[t] !== void 0).sort().map((t) => JSON.stringify(t) + ":" + h(e[t])).join(",") + "}";
27
+ export { p as bool, h as canonical, u as date, r as failure, a as hotIo, m as identifier, l as int, i as io, f as json, d as nullableDate, c as nullableText, o as refuse, s as text };
package/dist/rpc.d.ts ADDED
@@ -0,0 +1,329 @@
1
+ import { ActionProcedureDescriptor } from '@voltro/protocol';
2
+ import { PluginRpcClientDescriptor } from '@voltro/protocol';
3
+ import { Schema } from 'effect';
4
+ import { YieldableError } from 'effect/Cause';
5
+
6
+ /** A player's server-side anti-cheat status; a violation becomes a Sanctions signal. */
7
+ export declare const antiCheatReportDescriptor: ActionProcedureDescriptor<"engineServers.anticheat.report", Schema.Struct<{
8
+ readonly token: Schema.NonEmptyString;
9
+ readonly sessionId: Schema.NonEmptyString;
10
+ readonly eventId: Schema.NonEmptyString;
11
+ readonly playerId: Schema.NonEmptyString;
12
+ readonly status: Schema.Literals<readonly ["verified", "unverified", "violation"]>;
13
+ readonly evidence: Schema.optionalKey<Schema.NonEmptyString>;
14
+ }>, Schema.Struct<{
15
+ readonly playerId: Schema.NonEmptyString;
16
+ readonly status: Schema.Literals<readonly ["verified", "unverified", "violation", "unknown"]>;
17
+ readonly recorded: Schema.Boolean;
18
+ readonly signal: Schema.Boolean;
19
+ }>, typeof EngineServersError>;
20
+
21
+ /** Exchange a bootstrap credential for a short-lived pool token (one registration). */
22
+ export declare const authenticateDescriptor: ActionProcedureDescriptor<"engineServers.authenticate", Schema.Struct<{
23
+ readonly pool: Schema.NonEmptyString;
24
+ readonly credential: Schema.NonEmptyString;
25
+ }>, Schema.Struct<{
26
+ readonly token: Schema.NonEmptyString;
27
+ readonly expiresAt: Schema.Number;
28
+ }>, typeof EngineServersError>;
29
+
30
+ export declare const BASE_NAME = "@voltro/plugin-engine-servers";
31
+
32
+ export declare const deregisterDescriptor: ActionProcedureDescriptor<"engineServers.deregister", Schema.Struct<{
33
+ readonly token: Schema.NonEmptyString;
34
+ }>, Schema.Void, typeof EngineServersError>;
35
+
36
+ export declare const drainDescriptor: ActionProcedureDescriptor<"engineServers.drain", Schema.Struct<{
37
+ readonly token: Schema.NonEmptyString;
38
+ }>, Schema.Struct<{
39
+ readonly id: Schema.NonEmptyString;
40
+ readonly pool: Schema.NonEmptyString;
41
+ readonly region: Schema.NonEmptyString;
42
+ readonly buildId: Schema.NonEmptyString;
43
+ readonly protocol: Schema.Literals<readonly ["udp", "tcp", "websocket", "webtransport", "quic"]>;
44
+ readonly address: Schema.NullOr<Schema.NonEmptyString>;
45
+ readonly port: Schema.NullOr<Schema.Number>;
46
+ readonly relay: Schema.NullOr<Schema.NonEmptyString>;
47
+ readonly capacity: Schema.Number;
48
+ readonly labels: Schema.$Record<Schema.String, Schema.String>;
49
+ readonly state: Schema.Literals<readonly ["starting", "ready", "allocated", "draining", "suspended", "gone"]>;
50
+ readonly sessionId: Schema.NullOr<Schema.NonEmptyString>;
51
+ readonly registeredAt: Schema.Number;
52
+ readonly lastHeartbeatAt: Schema.Number;
53
+ readonly stateChangedAt: Schema.Number;
54
+ readonly goneReason: Schema.NullOr<Schema.Literals<readonly ["deregistered", "lease_expired", "revoked", "recovered"]>>;
55
+ }>, typeof EngineServersError>;
56
+
57
+ /**
58
+ * `lease_suspended`: the server's lease lapsed and the server waits inside its pool's resume window; only its own
59
+ * process resumes it (`engineServers.resume`). `rejected` carries the refusing system's own error code in `reason` (for example `insufficient_funds`).
60
+ */
61
+ declare class EngineServersError extends EngineServersError_base {
62
+ }
63
+
64
+ declare const EngineServersError_base: Schema.Class<EngineServersError, Schema.TaggedStruct<"EngineServersError", {
65
+ readonly code: Schema.Literals<readonly ["invalid_input", "unauthenticated", "forbidden", "not_found", "unavailable", "conflict", "lease_lost", "lease_suspended", "revoked", "expired", "replayed", "wrong_server", "no_capacity", "invalid_ticket", "out_of_order", "rate_limited", "implausible", "not_seated", "rejected"]>;
66
+ readonly reason: Schema.optionalKey<Schema.String>;
67
+ }>, YieldableError>;
68
+
69
+ export declare const engineServersRpcClientImports: ReadonlyArray<PluginRpcClientDescriptor>;
70
+
71
+ export declare const heartbeatDescriptor: ActionProcedureDescriptor<"engineServers.heartbeat", Schema.Struct<{
72
+ readonly token: Schema.NonEmptyString;
73
+ readonly ready: Schema.optionalKey<Schema.Boolean>;
74
+ }>, Schema.Struct<{
75
+ readonly state: Schema.Literals<readonly ["starting", "ready", "allocated", "draining", "suspended", "gone"]>;
76
+ readonly drain: Schema.Boolean;
77
+ readonly heartbeatIntervalMs: Schema.Number;
78
+ readonly renewed: Schema.NullOr<Schema.Struct<{
79
+ readonly token: Schema.NonEmptyString;
80
+ readonly expiresAt: Schema.Number;
81
+ }>>;
82
+ readonly sessionId: Schema.NullOr<Schema.NonEmptyString>;
83
+ readonly recovery: Schema.Boolean;
84
+ }>, typeof EngineServersError>;
85
+
86
+ /** The match result, attributed to the server's credential; trusted only from a `dedicated` pool. */
87
+ export declare const matchReportDescriptor: ActionProcedureDescriptor<"engineServers.matches.report", Schema.Struct<{
88
+ readonly token: Schema.NonEmptyString;
89
+ readonly sessionId: Schema.NonEmptyString;
90
+ readonly outcome: Schema.Literals<readonly ["completed", "aborted"]>;
91
+ readonly standings: Schema.$Array<Schema.Struct<{
92
+ readonly playerId: Schema.NonEmptyString;
93
+ readonly rank: Schema.Number;
94
+ readonly team: Schema.optionalKey<Schema.NonEmptyString>;
95
+ readonly score: Schema.optionalKey<Schema.String>;
96
+ }>>;
97
+ readonly stats: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.Null]>>>;
98
+ readonly ratings: Schema.optionalKey<Schema.Struct<{
99
+ readonly pool: Schema.NonEmptyString;
100
+ }>>;
101
+ }>, Schema.Struct<{
102
+ readonly reportId: Schema.NonEmptyString;
103
+ readonly sessionId: Schema.NonEmptyString;
104
+ readonly trusted: Schema.Boolean;
105
+ readonly digest: Schema.NonEmptyString;
106
+ readonly replay: Schema.Boolean;
107
+ readonly ratings: Schema.Literals<readonly ["applied", "skipped"]>;
108
+ }>, typeof EngineServersError>;
109
+
110
+ export declare const registerDescriptor: ActionProcedureDescriptor<"engineServers.register", Schema.Struct<{
111
+ readonly token: Schema.NonEmptyString;
112
+ readonly region: Schema.NonEmptyString;
113
+ readonly buildId: Schema.NonEmptyString;
114
+ readonly protocol: Schema.Literals<readonly ["udp", "tcp", "websocket", "webtransport", "quic"]>;
115
+ readonly address: Schema.optionalKey<Schema.NonEmptyString>;
116
+ readonly port: Schema.optionalKey<Schema.Number>;
117
+ readonly relay: Schema.optionalKey<Schema.NonEmptyString>;
118
+ readonly capacity: Schema.optionalKey<Schema.Number>;
119
+ readonly labels: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
120
+ }>, Schema.Struct<{
121
+ readonly server: Schema.Struct<{
122
+ readonly id: Schema.NonEmptyString;
123
+ readonly pool: Schema.NonEmptyString;
124
+ readonly region: Schema.NonEmptyString;
125
+ readonly buildId: Schema.NonEmptyString;
126
+ readonly protocol: Schema.Literals<readonly ["udp", "tcp", "websocket", "webtransport", "quic"]>;
127
+ readonly address: Schema.NullOr<Schema.NonEmptyString>;
128
+ readonly port: Schema.NullOr<Schema.Number>;
129
+ readonly relay: Schema.NullOr<Schema.NonEmptyString>;
130
+ readonly capacity: Schema.Number;
131
+ readonly labels: Schema.$Record<Schema.String, Schema.String>;
132
+ readonly state: Schema.Literals<readonly ["starting", "ready", "allocated", "draining", "suspended", "gone"]>;
133
+ readonly sessionId: Schema.NullOr<Schema.NonEmptyString>;
134
+ readonly registeredAt: Schema.Number;
135
+ readonly lastHeartbeatAt: Schema.Number;
136
+ readonly stateChangedAt: Schema.Number;
137
+ readonly goneReason: Schema.NullOr<Schema.Literals<readonly ["deregistered", "lease_expired", "revoked", "recovered"]>>;
138
+ }>;
139
+ readonly token: Schema.NonEmptyString;
140
+ readonly expiresAt: Schema.Number;
141
+ readonly heartbeatIntervalMs: Schema.Number;
142
+ readonly lease: Schema.NonEmptyString;
143
+ }>, typeof EngineServersError>;
144
+
145
+ /** Give a suspended server back to its own process: a fresh pool token plus the lease proof from `register`. */
146
+ export declare const resumeDescriptor: ActionProcedureDescriptor<"engineServers.resume", Schema.Struct<{
147
+ readonly token: Schema.NonEmptyString;
148
+ readonly serverId: Schema.NonEmptyString;
149
+ readonly lease: Schema.NonEmptyString;
150
+ }>, Schema.Struct<{
151
+ readonly server: Schema.Struct<{
152
+ readonly id: Schema.NonEmptyString;
153
+ readonly pool: Schema.NonEmptyString;
154
+ readonly region: Schema.NonEmptyString;
155
+ readonly buildId: Schema.NonEmptyString;
156
+ readonly protocol: Schema.Literals<readonly ["udp", "tcp", "websocket", "webtransport", "quic"]>;
157
+ readonly address: Schema.NullOr<Schema.NonEmptyString>;
158
+ readonly port: Schema.NullOr<Schema.Number>;
159
+ readonly relay: Schema.NullOr<Schema.NonEmptyString>;
160
+ readonly capacity: Schema.Number;
161
+ readonly labels: Schema.$Record<Schema.String, Schema.String>;
162
+ readonly state: Schema.Literals<readonly ["starting", "ready", "allocated", "draining", "suspended", "gone"]>;
163
+ readonly sessionId: Schema.NullOr<Schema.NonEmptyString>;
164
+ readonly registeredAt: Schema.Number;
165
+ readonly lastHeartbeatAt: Schema.Number;
166
+ readonly stateChangedAt: Schema.Number;
167
+ readonly goneReason: Schema.NullOr<Schema.Literals<readonly ["deregistered", "lease_expired", "revoked", "recovered"]>>;
168
+ }>;
169
+ readonly token: Schema.NonEmptyString;
170
+ readonly expiresAt: Schema.Number;
171
+ readonly heartbeatIntervalMs: Schema.Number;
172
+ }>, typeof EngineServersError>;
173
+
174
+ /** The session's latest progress for crash recovery: fenced, monotonic by `revision`, bounded by the pool's `recovery`. */
175
+ export declare const sessionCheckpointDescriptor: ActionProcedureDescriptor<"engineServers.sessions.checkpoint", Schema.Struct<{
176
+ readonly token: Schema.NonEmptyString;
177
+ readonly sessionId: Schema.NonEmptyString;
178
+ readonly revision: Schema.Number;
179
+ readonly schemaVersion: Schema.Number;
180
+ readonly data: Schema.String;
181
+ }>, Schema.Struct<{
182
+ readonly sessionId: Schema.NonEmptyString;
183
+ readonly revision: Schema.Number;
184
+ readonly bytes: Schema.Number;
185
+ readonly replay: Schema.Boolean;
186
+ }>, typeof EngineServersError>;
187
+
188
+ /** Lifecycle of the session the server holds, ordered by `sequence` and idempotent per sequence. */
189
+ export declare const sessionEventDescriptor: ActionProcedureDescriptor<"engineServers.sessions.event", Schema.Struct<{
190
+ readonly token: Schema.NonEmptyString;
191
+ readonly sessionId: Schema.NonEmptyString;
192
+ readonly sequence: Schema.Number;
193
+ readonly event: Schema.Union<readonly [Schema.Struct<{
194
+ readonly type: Schema.Literal<"session.started">;
195
+ }>, Schema.Struct<{
196
+ readonly type: Schema.Literal<"player.joined">;
197
+ readonly playerId: Schema.NonEmptyString;
198
+ }>, Schema.Struct<{
199
+ readonly type: Schema.Literal<"player.left">;
200
+ readonly playerId: Schema.NonEmptyString;
201
+ readonly reconnect: Schema.optionalKey<Schema.Boolean>;
202
+ }>, Schema.Struct<{
203
+ readonly type: Schema.Literal<"session.recovered">;
204
+ }>, Schema.Struct<{
205
+ readonly type: Schema.Literal<"session.ended">;
206
+ readonly reason: Schema.optionalKey<Schema.NonEmptyString>;
207
+ }>]>;
208
+ }>, Schema.Struct<{
209
+ readonly sessionId: Schema.NonEmptyString;
210
+ readonly sequence: Schema.Number;
211
+ readonly replay: Schema.Boolean;
212
+ readonly state: Schema.Literals<readonly ["running", "waiting", "recovering", "ended", "abandoned"]>;
213
+ }>, typeof EngineServersError>;
214
+
215
+ /** A recovery server reads the checkpoint and lifecycle sequence of the session it took over. */
216
+ export declare const sessionRecoveryDescriptor: ActionProcedureDescriptor<"engineServers.sessions.recovery", Schema.Struct<{
217
+ readonly token: Schema.NonEmptyString;
218
+ readonly sessionId: Schema.NonEmptyString;
219
+ }>, Schema.Struct<{
220
+ readonly sessionId: Schema.NonEmptyString;
221
+ readonly sequence: Schema.Number;
222
+ readonly recoveries: Schema.Number;
223
+ readonly checkpoint: Schema.Struct<{
224
+ readonly revision: Schema.Number;
225
+ readonly schemaVersion: Schema.Number;
226
+ readonly data: Schema.String;
227
+ readonly writtenAt: Schema.Number;
228
+ }>;
229
+ }>, typeof EngineServersError>;
230
+
231
+ /** One authoritative write through an installed system, gated by the pool scope `writes:<kind>`. */
232
+ export declare const sessionWriteDescriptor: ActionProcedureDescriptor<"engineServers.sessions.write", Schema.Struct<{
233
+ readonly token: Schema.NonEmptyString;
234
+ readonly sessionId: Schema.NonEmptyString;
235
+ readonly eventId: Schema.NonEmptyString;
236
+ readonly write: Schema.Union<readonly [Schema.Struct<{
237
+ readonly kind: Schema.Literal<"inventory.grant">;
238
+ readonly playerId: Schema.NonEmptyString;
239
+ readonly itemId: Schema.NonEmptyString;
240
+ readonly qty: Schema.Number;
241
+ readonly attributes: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.Null]>>>;
242
+ readonly reason: Schema.NonEmptyString;
243
+ }>, Schema.Struct<{
244
+ readonly kind: Schema.Literal<"inventory.consume">;
245
+ readonly playerId: Schema.NonEmptyString;
246
+ readonly instanceId: Schema.NonEmptyString;
247
+ readonly qty: Schema.Number;
248
+ readonly reason: Schema.NonEmptyString;
249
+ }>, Schema.Struct<{
250
+ readonly kind: Schema.Literal<"economy.grant">;
251
+ readonly playerId: Schema.NonEmptyString;
252
+ readonly currency: Schema.NonEmptyString;
253
+ readonly amount: Schema.String;
254
+ readonly reason: Schema.NonEmptyString;
255
+ }>, Schema.Struct<{
256
+ readonly kind: Schema.Literal<"economy.charge">;
257
+ readonly playerId: Schema.NonEmptyString;
258
+ readonly currency: Schema.NonEmptyString;
259
+ readonly amount: Schema.String;
260
+ readonly reason: Schema.NonEmptyString;
261
+ }>, Schema.Struct<{
262
+ readonly kind: Schema.Literal<"progression.xp">;
263
+ readonly playerId: Schema.NonEmptyString;
264
+ readonly trackId: Schema.NonEmptyString;
265
+ readonly amount: Schema.String;
266
+ }>, Schema.Struct<{
267
+ readonly kind: Schema.Literal<"progression.stat">;
268
+ readonly playerId: Schema.NonEmptyString;
269
+ readonly stat: Schema.NonEmptyString;
270
+ readonly period: Schema.Literals<readonly ["lifetime", "season"]>;
271
+ readonly seasonId: Schema.optionalKey<Schema.NonEmptyString>;
272
+ readonly operator: Schema.Literals<readonly ["increment", "max", "min", "set"]>;
273
+ readonly operand: Schema.String;
274
+ }>, Schema.Struct<{
275
+ readonly kind: Schema.Literal<"progression.quest">;
276
+ readonly playerId: Schema.NonEmptyString;
277
+ readonly poolId: Schema.NonEmptyString;
278
+ readonly windowId: Schema.NonEmptyString;
279
+ readonly signal: Schema.Union<readonly [Schema.Struct<{
280
+ readonly kind: Schema.Literal<"stat">;
281
+ readonly stat: Schema.NonEmptyString;
282
+ readonly delta: Schema.String;
283
+ }>, Schema.Struct<{
284
+ readonly kind: Schema.Literal<"event">;
285
+ readonly event: Schema.NonEmptyString;
286
+ readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.Null]>>>;
287
+ }>]>;
288
+ }>, Schema.Struct<{
289
+ readonly kind: Schema.Literal<"leaderboards.submit">;
290
+ readonly playerId: Schema.NonEmptyString;
291
+ readonly board: Schema.NonEmptyString;
292
+ readonly score: Schema.String;
293
+ readonly subscore: Schema.optionalKey<Schema.String>;
294
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.Null]>>>;
295
+ }>, Schema.Struct<{
296
+ readonly kind: Schema.Literal<"telemetry.track">;
297
+ readonly name: Schema.NonEmptyString;
298
+ readonly playerId: Schema.optionalKey<Schema.NonEmptyString>;
299
+ readonly properties: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.Null]>>>;
300
+ }>]>;
301
+ }>, Schema.Struct<{
302
+ readonly eventId: Schema.NonEmptyString;
303
+ readonly kind: Schema.String;
304
+ readonly requestId: Schema.NonEmptyString;
305
+ readonly operationId: Schema.NullOr<Schema.String>;
306
+ }>, typeof EngineServersError>;
307
+
308
+ /** Online check of a join ticket by the server it is bound to; redeems it once. */
309
+ export declare const verifySessionDescriptor: ActionProcedureDescriptor<"engineServers.sessions.verify", Schema.Struct<{
310
+ readonly token: Schema.NonEmptyString;
311
+ readonly ticket: Schema.NonEmptyString;
312
+ }>, Schema.Struct<{
313
+ readonly ticketId: Schema.NonEmptyString;
314
+ readonly serverId: Schema.NonEmptyString;
315
+ readonly sessionId: Schema.NonEmptyString;
316
+ readonly subject: Schema.Struct<{
317
+ readonly id: Schema.NonEmptyString;
318
+ readonly type: Schema.Literals<readonly ["user", "apiKey", "serviceAccount"]>;
319
+ readonly kind: Schema.optionalKey<Schema.Literal<"guest">>;
320
+ }>;
321
+ readonly partyId: Schema.NullOr<Schema.NonEmptyString>;
322
+ readonly team: Schema.NullOr<Schema.NonEmptyString>;
323
+ readonly attributes: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.Null]>>;
324
+ readonly reconnect: Schema.Boolean;
325
+ readonly reconnectUntil: Schema.Number;
326
+ readonly recovery: Schema.Boolean;
327
+ }>, typeof EngineServersError>;
328
+
329
+ export { }
package/dist/rpc.js ADDED
@@ -0,0 +1,115 @@
1
+ import { AntiCheatReceiptSchema as e, AntiCheatReportInputSchema as t, CheckpointInputSchema as n, CheckpointReceiptSchema as r, ENGINE_SERVER_LIMITS as i, EngineServerSchema as a, EngineServerTokenSchema as o, HeartbeatOutputSchema as s, MatchReportInputSchema as c, MatchReportReceiptSchema as l, RecoveryInputSchema as u, RecoverySchema as d, RegisterInputSchema as f, RegisterOutputSchema as p, ResumeInputSchema as m, ResumeOutputSchema as h, ServiceTokenSchema as g, SessionEventInputSchema as _, SessionEventReceiptSchema as v, SessionWriteInputSchema as y, SessionWriteReceiptSchema as b, VerifiedSeatSchema as x } from "./contract.js";
2
+ import { EngineServersError as S } from "./errors.js";
3
+ import { Schema as C } from "effect";
4
+ import { defineAction as w } from "@voltro/protocol";
5
+ // src/rpc.ts
6
+ var T = "@voltro/plugin-engine-servers", E = (e) => C.NonEmptyString.pipe(C.check(C.isMaxLength(e))), D = C.Struct({ token: o }), O = "Engine servers carry no app session: the handler verifies the signed service token in the input online (credential row, pool scope, server binding) and takes the tenant from that token only.", k = w({
7
+ name: "engineServers.authenticate",
8
+ input: C.Struct({
9
+ pool: E(63),
10
+ credential: E(i.credentialLength.max)
11
+ }),
12
+ output: g,
13
+ error: S,
14
+ openAccess: "Bootstrap exchange: the configured bootstrap source verifies the presented credential for the named pool and decides the tenant; nothing else is read."
15
+ }), A = w({
16
+ name: "engineServers.register",
17
+ input: f,
18
+ output: p,
19
+ error: S,
20
+ openAccess: O
21
+ }), j = w({
22
+ name: "engineServers.resume",
23
+ input: m,
24
+ output: h,
25
+ error: S,
26
+ openAccess: O + " Resuming also needs the lease proof the registering process holds; the registry compares its digest."
27
+ }), M = w({
28
+ name: "engineServers.heartbeat",
29
+ input: C.Struct({
30
+ token: o,
31
+ ready: C.optionalKey(C.Boolean)
32
+ }),
33
+ output: s,
34
+ error: S,
35
+ openAccess: O
36
+ }), N = w({
37
+ name: "engineServers.drain",
38
+ input: D,
39
+ output: a,
40
+ error: S,
41
+ openAccess: O
42
+ }), P = w({
43
+ name: "engineServers.deregister",
44
+ input: D,
45
+ output: C.Void,
46
+ error: S,
47
+ openAccess: O
48
+ }), F = w({
49
+ name: "engineServers.sessions.verify",
50
+ input: C.Struct({
51
+ token: o,
52
+ ticket: E(i.ticketBytes)
53
+ }),
54
+ output: x,
55
+ error: S,
56
+ openAccess: O
57
+ }), I = w({
58
+ name: "engineServers.sessions.event",
59
+ input: _,
60
+ output: v,
61
+ error: S,
62
+ openAccess: O
63
+ }), L = w({
64
+ name: "engineServers.sessions.write",
65
+ input: y,
66
+ output: b,
67
+ error: S,
68
+ openAccess: O
69
+ }), R = w({
70
+ name: "engineServers.sessions.checkpoint",
71
+ input: n,
72
+ output: r,
73
+ error: S,
74
+ openAccess: O
75
+ }), z = w({
76
+ name: "engineServers.sessions.recovery",
77
+ input: u,
78
+ output: d,
79
+ error: S,
80
+ openAccess: O
81
+ }), B = w({
82
+ name: "engineServers.matches.report",
83
+ input: c,
84
+ output: l,
85
+ error: S,
86
+ openAccess: O
87
+ }), V = w({
88
+ name: "engineServers.anticheat.report",
89
+ input: t,
90
+ output: e,
91
+ error: S,
92
+ openAccess: O
93
+ }), H = [
94
+ ["engineServers.authenticate", "authenticateDescriptor"],
95
+ ["engineServers.register", "registerDescriptor"],
96
+ ["engineServers.resume", "resumeDescriptor"],
97
+ ["engineServers.heartbeat", "heartbeatDescriptor"],
98
+ ["engineServers.drain", "drainDescriptor"],
99
+ ["engineServers.deregister", "deregisterDescriptor"],
100
+ ["engineServers.sessions.verify", "verifySessionDescriptor"],
101
+ ["engineServers.sessions.event", "sessionEventDescriptor"],
102
+ ["engineServers.sessions.write", "sessionWriteDescriptor"],
103
+ ["engineServers.sessions.checkpoint", "sessionCheckpointDescriptor"],
104
+ ["engineServers.sessions.recovery", "sessionRecoveryDescriptor"],
105
+ ["engineServers.matches.report", "matchReportDescriptor"],
106
+ ["engineServers.anticheat.report", "antiCheatReportDescriptor"]
107
+ ].map(([e, t]) => ({
108
+ tag: e,
109
+ kind: "action",
110
+ import: {
111
+ module: "@voltro/plugin-engine-servers/rpc",
112
+ name: t
113
+ }
114
+ }));
115
+ export { T as BASE_NAME, V as antiCheatReportDescriptor, k as authenticateDescriptor, P as deregisterDescriptor, N as drainDescriptor, H as engineServersRpcClientImports, M as heartbeatDescriptor, B as matchReportDescriptor, A as registerDescriptor, j as resumeDescriptor, R as sessionCheckpointDescriptor, I as sessionEventDescriptor, z as sessionRecoveryDescriptor, L as sessionWriteDescriptor, F as verifySessionDescriptor };