@hadoku/game-server 0.1.69 → 0.1.71

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.
@@ -11,8 +11,8 @@
11
11
  * them only when the shared secret checks out; otherwise we overwrite them with
12
12
  * the most restrictive identity.
13
13
  */
14
- import { TIER_ORDER, type Tier, rankOf, tierOf, verifiedOf, verifiedFromHeaders, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin } from '@wolffm/service-kernel/auth';
15
- export { TIER_ORDER, rankOf, tierOf, verifiedOf, verifiedFromHeaders, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin };
14
+ import { TIER_ORDER, type Tier, rankOf, tierOf, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin } from '@wolffm/service-kernel/auth';
15
+ export { TIER_ORDER, rankOf, tierOf, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin };
16
16
  export type { Tier };
17
17
  /**
18
18
  * The floor must be a tier this build knows, and never `public` here —
package/dist/edge-auth.js CHANGED
@@ -11,9 +11,9 @@
11
11
  * them only when the shared secret checks out; otherwise we overwrite them with
12
12
  * the most restrictive identity.
13
13
  */
14
- import { TIER_ORDER, assertFloor as kernelAssertFloor, rankOf, tierOf, verifiedOf, verifiedFromHeaders, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin, } from '@wolffm/service-kernel/auth';
14
+ import { TIER_ORDER, assertFloor as kernelAssertFloor, rankOf, tierOf, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin, } from '@wolffm/service-kernel/auth';
15
15
  import { ENV_PREFIX, edgeAuth, gate } from './kernel.js';
16
- export { TIER_ORDER, rankOf, tierOf, verifiedOf, verifiedFromHeaders, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin };
16
+ export { TIER_ORDER, rankOf, tierOf, callerIdOf, userIdOf, userKeyOf, accountIdOf, userNameOf, isAdmin };
17
17
  /**
18
18
  * The floor must be a tier this build knows, and never `public` here —
19
19
  * cardtable admits members and friends, never the public tier. An unknown
@@ -28,13 +28,12 @@ export declare const httpCaller: (req: Request) => ParticipantId;
28
28
  /**
29
29
  * Who is asking, for a lobby call: the id, the DISPLAY NAME (`X-User-Name`, never the opaque
30
30
  * userId — a roster is for humans; a key the edge sent no name for gets `UNNAMED`), and the userId
31
- * a saved room keeps instead of the name (R12), and whether the operator verifies them.
31
+ * a saved room keeps instead of the name (R12).
32
32
  */
33
33
  export declare function callerOf(req: Request): {
34
34
  id: string;
35
35
  name: string;
36
36
  userId: string | null;
37
- verified: boolean;
38
37
  };
39
38
  /**
40
39
  * A per-caller token bucket for a costly step: each pass reports `costly-act` and each refusal
@@ -1,5 +1,5 @@
1
1
  import { bodyErrors, makeCallerId, parseBody, readBody, costlyActLimit as kernelCostlyActLimit, perCallerLimit as kernelPerCallerLimit, } from '@wolffm/service-kernel/limits';
2
- import { accountIdOf, userNameOf, verifiedOf } from '../edge-auth.js';
2
+ import { accountIdOf, userNameOf } from '../edge-auth.js';
3
3
  import { identityFromHeaders } from '../room/identity.js';
4
4
  export { bodyErrors, parseBody, readBody };
5
5
  /**
@@ -13,10 +13,10 @@ const UNNAMED = 'friend';
13
13
  /**
14
14
  * Who is asking, for a lobby call: the id, the DISPLAY NAME (`X-User-Name`, never the opaque
15
15
  * userId — a roster is for humans; a key the edge sent no name for gets `UNNAMED`), and the userId
16
- * a saved room keeps instead of the name (R12), and whether the operator verifies them.
16
+ * a saved room keeps instead of the name (R12).
17
17
  */
18
18
  export function callerOf(req) {
19
- return { id: httpCaller(req), name: userNameOf(req) ?? UNNAMED, userId: accountIdOf(req), verified: verifiedOf(req) };
19
+ return { id: httpCaller(req), name: userNameOf(req) ?? UNNAMED, userId: accountIdOf(req) };
20
20
  }
21
21
  /**
22
22
  * A per-caller token bucket for a costly step: each pass reports `costly-act` and each refusal
@@ -13,9 +13,4 @@ export interface Caller {
13
13
  id: string;
14
14
  name: string;
15
15
  userId: string | null;
16
- /**
17
- * The edge's `X-Hadoku-Verified`: the operator verifies this person (`verifiedOf`). Absent is
18
- * not verified, as the header's own absence is: a restored or synthetic caller verifies nobody.
19
- */
20
- verified?: boolean;
21
16
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-server",
3
- "version": "0.1.69",
4
- "gitHead": "e08e1963c06c1be454d8a685188301337d0c2c2d",
3
+ "version": "0.1.71",
4
+ "gitHead": "eb198fb94e7021c2f65fa71802c1dab746741a1b",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The server parts any hosted game shares, above the kernel: the app config and edge auth, the room core (identity, seats, sessions, membership, the room list, the generic room routes), match hosting (the host contract, local and remote JVMs, placement, the start queue, recordings, the in-process and relay runtimes), streams, erase, telemetry and usage. Knows no game; Magic plugs in from apps/server. MIT; imports only node built-ins, express, socket.io, @wolffm/* and the platform packages.",
@@ -16,9 +16,9 @@
16
16
  "play/remote/"
17
17
  ],
18
18
  "dependencies": {
19
- "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.69",
20
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.69",
21
- "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.102",
19
+ "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.71",
20
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.71",
21
+ "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.104",
22
22
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.30",
23
23
  "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.121",
24
24
  "@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.121",