@voltro/plugin-engine-servers 0.90.0 → 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.
@@ -1,22 +1,22 @@
1
- import { ENGINE_SERVER_PROTOCOLS as e, ENGINE_SERVER_TRUST_LEVELS as t } from "./pool.js";
2
- import { ANTICHEAT_STATUSES as n, ANTICHEAT_TABLE as r, BACKFILLS_TABLE as i, CHECKPOINTS_TABLE as a, CREDENTIALS_TABLE as o, ENGINE_SERVER_LIFECYCLE_EVENTS as s, ENGINE_SERVER_LIVE_STATES as c, ENGINE_SERVER_SESSION_STATES as l, ENGINE_SERVER_STATES as u, ENGINE_SERVER_TICKET_STATES as d, REPORTS_TABLE as f, SERVERS_TABLE as p, SESSIONS_TABLE as m, SESSION_EVENTS_TABLE as h, TICKETS_TABLE as g } from "./contract.js";
1
+ import { ANTICHEAT_STATUSES as e, ANTICHEAT_TABLE as t, BACKFILLS_TABLE as n, CHECKPOINTS_TABLE as r, CREDENTIALS_TABLE as i, ENGINE_SERVER_LIFECYCLE_EVENTS as a, ENGINE_SERVER_LIVE_STATES as o, ENGINE_SERVER_SESSION_STATES as s, ENGINE_SERVER_STATES as c, ENGINE_SERVER_TICKET_STATES as l, REPORTS_TABLE as u, SERVERS_TABLE as d, SESSIONS_TABLE as f, SESSION_EVENTS_TABLE as p, TICKETS_TABLE as m } from "./contract.js";
2
+ import { ENGINE_SERVER_PROTOCOLS as h, ENGINE_SERVER_TRUST_LEVELS as g } from "./pool.js";
3
3
  import { boolean as _, id as v, integer as y, json as b, table as x, text as S, timestamp as C } from "@voltro/database";
4
4
  // src/tables.entity.ts
5
- var w = x(p, {
5
+ var w = x(d, {
6
6
  id: v({ prefix: "esv" }),
7
7
  tenantId: S().maxLength(256).externalId().serverOnly(),
8
8
  pool: S().maxLength(63).safe(),
9
9
  region: S().maxLength(64).safe(),
10
10
  buildId: S().maxLength(128).safe(),
11
- protocol: S().maxLength(16).oneOf([...e]).safe(),
11
+ protocol: S().maxLength(16).oneOf([...h]).safe(),
12
12
  address: S().maxLength(253).nullable().safe(),
13
13
  port: y().nullable().safe(),
14
14
  relay: S().maxLength(512).nullable().safe(),
15
15
  capacity: y().safe(),
16
16
  labels: b().safe(),
17
- state: S().maxLength(16).oneOf([...u]).safe(),
17
+ state: S().maxLength(16).oneOf([...c]).safe(),
18
18
  leaseId: S().maxLength(64).serverOnly(),
19
- resumeState: S().maxLength(16).oneOf([...c]).nullable().safe(),
19
+ resumeState: S().maxLength(16).oneOf([...o]).nullable().safe(),
20
20
  sessionId: S().maxLength(191).nullable().safe(),
21
21
  version: y().default(0).safe(),
22
22
  registeredAt: C().safe(),
@@ -30,7 +30,7 @@ var w = x(p, {
30
30
  "pool",
31
31
  "state",
32
32
  "region"
33
- ]).index("byEngineServerHeartbeat", ["state", "lastHeartbeatAt"]).index("byEngineServerSession", ["tenantId", "sessionId"]), T = x(o, {
33
+ ]).index("byEngineServerHeartbeat", ["state", "lastHeartbeatAt"]).index("byEngineServerSession", ["tenantId", "sessionId"]), T = x(i, {
34
34
  id: v({ prefix: "esc" }),
35
35
  tenantId: S().maxLength(256).externalId().serverOnly(),
36
36
  pool: S().maxLength(63).safe(),
@@ -42,7 +42,7 @@ var w = x(p, {
42
42
  "tenantId",
43
43
  "pool",
44
44
  "revokedAt"
45
- ]).index("byEngineServerCredentialServer", ["tenantId", "serverId"]), E = x(g, {
45
+ ]).index("byEngineServerCredentialServer", ["tenantId", "serverId"]), E = x(m, {
46
46
  id: v({ prefix: "est" }),
47
47
  tenantId: S().maxLength(256).externalId().sensitive("pii"),
48
48
  serverId: S().maxLength(64).safe(),
@@ -50,7 +50,7 @@ var w = x(p, {
50
50
  subjectId: S().maxLength(256).externalId().sensitive("pii"),
51
51
  subjectKind: S().maxLength(16).oneOf(["user", "guest"]).safe(),
52
52
  digest: S().maxLength(64).serverOnly(),
53
- state: S().maxLength(16).oneOf([...d]).safe(),
53
+ state: S().maxLength(16).oneOf([...l]).safe(),
54
54
  issuedAt: C().safe(),
55
55
  redeemBy: C().safe(),
56
56
  redeemedAt: C().nullable().safe(),
@@ -63,14 +63,14 @@ var w = x(p, {
63
63
  "serverId",
64
64
  "sessionId",
65
65
  "state"
66
- ]), D = x(m, {
66
+ ]), D = x(f, {
67
67
  id: v({ prefix: "ess" }),
68
68
  tenantId: S().maxLength(256).externalId().serverOnly(),
69
69
  serverId: S().maxLength(64).safe(),
70
70
  pool: S().maxLength(63).safe(),
71
71
  sessionId: S().maxLength(191).safe(),
72
- trust: S().maxLength(16).oneOf([...t]).safe(),
73
- state: S().maxLength(16).oneOf([...l]).safe(),
72
+ trust: S().maxLength(16).oneOf([...g]).safe(),
73
+ state: S().maxLength(16).oneOf([...s]).safe(),
74
74
  sequence: y().safe(),
75
75
  startedAt: C().safe(),
76
76
  endedAt: C().nullable().safe(),
@@ -88,22 +88,22 @@ var w = x(p, {
88
88
  "tenantId",
89
89
  "serverId",
90
90
  "state"
91
- ]), O = x(h, {
91
+ ]), O = x(p, {
92
92
  id: v({ prefix: "ese" }),
93
93
  tenantId: S().maxLength(256).externalId().sensitive("pii"),
94
94
  runId: S().maxLength(64).safe(),
95
95
  sequence: y().safe(),
96
- type: S().maxLength(32).oneOf([...s]).safe(),
96
+ type: S().maxLength(32).oneOf([...a]).safe(),
97
97
  subjectId: S().maxLength(256).nullable().externalId().sensitive("pii"),
98
98
  digest: S().maxLength(64).safe(),
99
99
  at: C().safe()
100
- }).unique("byEngineServerSessionEventSequence", ["runId", "sequence"]).index("byEngineServerSessionEventSubject", ["tenantId", "subjectId"]), k = x(f, {
100
+ }).unique("byEngineServerSessionEventSequence", ["runId", "sequence"]).index("byEngineServerSessionEventSubject", ["tenantId", "subjectId"]), k = x(u, {
101
101
  id: v({ prefix: "esr" }),
102
102
  tenantId: S().maxLength(256).externalId().sensitive("pii"),
103
103
  serverId: S().maxLength(64).safe(),
104
104
  pool: S().maxLength(63).safe(),
105
105
  sessionId: S().maxLength(191).safe(),
106
- trust: S().maxLength(16).oneOf([...t]).safe(),
106
+ trust: S().maxLength(16).oneOf([...g]).safe(),
107
107
  trusted: _().safe(),
108
108
  credentialId: S().maxLength(64).serverOnly(),
109
109
  outcome: S().maxLength(16).oneOf(["completed", "aborted"]).safe(),
@@ -114,16 +114,16 @@ var w = x(p, {
114
114
  "tenantId",
115
115
  "serverId",
116
116
  "sessionId"
117
- ]), A = x(r, {
117
+ ]), A = x(t, {
118
118
  id: v({ prefix: "esa" }),
119
119
  tenantId: S().maxLength(256).externalId().sensitive("pii"),
120
120
  subjectId: S().maxLength(256).externalId().sensitive("pii"),
121
- status: S().maxLength(16).oneOf([...n]).safe(),
121
+ status: S().maxLength(16).oneOf([...e]).safe(),
122
122
  provider: S().maxLength(64).safe(),
123
123
  serverId: S().maxLength(64).safe(),
124
124
  sessionId: S().maxLength(191).safe(),
125
125
  updatedAt: C().safe()
126
- }).unique("byEngineServerAntiCheatSubject", ["tenantId", "subjectId"]), j = x(i, {
126
+ }).unique("byEngineServerAntiCheatSubject", ["tenantId", "subjectId"]), j = x(n, {
127
127
  id: v({ prefix: "esb" }),
128
128
  tenantId: S().maxLength(256).externalId().serverOnly(),
129
129
  serverId: S().maxLength(64).safe(),
@@ -136,7 +136,7 @@ var w = x(p, {
136
136
  "serverId",
137
137
  "sessionId",
138
138
  "requestKey"
139
- ]), M = x(a, {
139
+ ]), M = x(r, {
140
140
  id: v({ prefix: "esk" }),
141
141
  tenantId: S().maxLength(256).externalId().serverOnly(),
142
142
  runId: S().maxLength(64).safe(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-engine-servers",
3
- "version": "0.90.0",
3
+ "version": "0.91.0",
4
4
  "description": "Engine-neutral service identity, server registry, join tickets, session lifecycle and authoritative writes for engine servers.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -53,19 +53,19 @@
53
53
  "node": ">=24.0.0"
54
54
  },
55
55
  "dependencies": {
56
- "@voltro/protocol": "0.90.0",
57
- "@voltro/database": "0.90.0",
58
- "@voltro/kv": "0.90.0",
59
- "@voltro/runtime": "0.90.0",
60
- "@voltro/plugin-licensing": "0.90.0",
61
- "@voltro/plugin-sanctions": "0.90.0"
56
+ "@voltro/protocol": "0.91.0",
57
+ "@voltro/database": "0.91.0",
58
+ "@voltro/kv": "0.91.0",
59
+ "@voltro/runtime": "0.91.0",
60
+ "@voltro/plugin-licensing": "0.91.0",
61
+ "@voltro/plugin-sanctions": "0.91.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "effect": "4.1.2",
65
- "@voltro/plugin-economy": "0.90.0",
66
- "@voltro/plugin-inventory": "0.90.0",
67
- "@voltro/plugin-leaderboards": "0.90.0",
68
- "@voltro/plugin-progression": "0.90.0"
64
+ "effect": "4.1.4",
65
+ "@voltro/plugin-economy": "0.91.0",
66
+ "@voltro/plugin-inventory": "0.91.0",
67
+ "@voltro/plugin-leaderboards": "0.91.0",
68
+ "@voltro/plugin-progression": "0.91.0"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "@voltro/plugin-economy": {