@ksaa-nlp/gamehub-sdk 0.1.0 → 0.5.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +294 -0
  2. package/MIGRATION.md +322 -0
  3. package/README.md +121 -182
  4. package/dist/gamehub-sdk.js +1202 -1670
  5. package/dist/gamehub-sdk.js.map +7 -0
  6. package/dist/src/api-client.d.ts +11 -0
  7. package/dist/src/api-client.d.ts.map +1 -0
  8. package/dist/src/api-client.js +27 -0
  9. package/dist/src/api-client.js.map +1 -0
  10. package/dist/src/bridge.d.ts +35 -0
  11. package/dist/src/bridge.d.ts.map +1 -0
  12. package/dist/src/bridge.js +280 -0
  13. package/dist/src/bridge.js.map +1 -0
  14. package/dist/src/browser-entry.d.ts +19 -0
  15. package/dist/src/browser-entry.d.ts.map +1 -0
  16. package/dist/src/browser-entry.js +49 -0
  17. package/dist/src/browser-entry.js.map +1 -0
  18. package/dist/src/constants.d.ts +18 -0
  19. package/dist/src/constants.d.ts.map +1 -0
  20. package/dist/src/constants.js +18 -0
  21. package/dist/src/constants.js.map +1 -0
  22. package/dist/src/init.d.ts +36 -0
  23. package/dist/src/init.d.ts.map +1 -0
  24. package/dist/src/init.js +317 -0
  25. package/dist/src/init.js.map +1 -0
  26. package/dist/src/main.d.ts +101 -0
  27. package/dist/src/main.d.ts.map +1 -0
  28. package/dist/src/main.js +126 -0
  29. package/dist/src/main.js.map +1 -0
  30. package/dist/src/match-context.d.ts +11 -0
  31. package/dist/src/match-context.d.ts.map +1 -0
  32. package/dist/src/match-context.js +51 -0
  33. package/dist/src/match-context.js.map +1 -0
  34. package/dist/src/multiplayer.d.ts +82 -0
  35. package/dist/src/multiplayer.d.ts.map +1 -0
  36. package/dist/src/multiplayer.js +461 -0
  37. package/dist/src/multiplayer.js.map +1 -0
  38. package/dist/src/session.d.ts +35 -0
  39. package/dist/src/session.d.ts.map +1 -0
  40. package/dist/src/session.js +206 -0
  41. package/dist/src/session.js.map +1 -0
  42. package/dist/src/state.d.ts +71 -0
  43. package/dist/src/state.d.ts.map +1 -0
  44. package/dist/src/state.js +55 -0
  45. package/dist/src/state.js.map +1 -0
  46. package/dist/src/utils.d.ts +36 -0
  47. package/dist/src/utils.d.ts.map +1 -0
  48. package/dist/src/utils.js +73 -0
  49. package/dist/src/utils.js.map +1 -0
  50. package/dist/types/api.d.ts +21 -0
  51. package/dist/types/api.d.ts.map +1 -0
  52. package/dist/types/api.js +2 -0
  53. package/dist/types/api.js.map +1 -0
  54. package/{types/bootstrap.ts → dist/types/bootstrap.d.ts} +26 -29
  55. package/dist/types/bootstrap.d.ts.map +1 -0
  56. package/dist/types/bootstrap.js +2 -0
  57. package/dist/types/bootstrap.js.map +1 -0
  58. package/dist/types/match.d.ts +37 -0
  59. package/dist/types/match.d.ts.map +1 -0
  60. package/dist/types/match.js +2 -0
  61. package/dist/types/match.js.map +1 -0
  62. package/dist/types/multiplayer.d.ts +138 -0
  63. package/dist/types/multiplayer.d.ts.map +1 -0
  64. package/dist/types/multiplayer.js +2 -0
  65. package/dist/types/multiplayer.js.map +1 -0
  66. package/{types/session.ts → dist/types/session.d.ts} +24 -30
  67. package/dist/types/session.d.ts.map +1 -0
  68. package/dist/types/session.js +2 -0
  69. package/dist/types/session.js.map +1 -0
  70. package/package.json +34 -18
  71. package/dist/gamehub-sdk.d.ts +0 -694
  72. package/dist/index.d.ts +0 -56
  73. package/dist/index.mjs +0 -6
  74. package/scripts/emit-module-entry.mjs +0 -96
  75. package/src/api-client.ts +0 -33
  76. package/src/bridge.ts +0 -312
  77. package/src/constants.ts +0 -24
  78. package/src/init.ts +0 -335
  79. package/src/main.ts +0 -287
  80. package/src/match-context.ts +0 -52
  81. package/src/multiplayer.ts +0 -525
  82. package/src/session.ts +0 -240
  83. package/src/state.ts +0 -78
  84. package/src/utils.ts +0 -68
  85. package/tsconfig.json +0 -33
  86. package/types/api.ts +0 -21
  87. package/types/match.ts +0 -41
  88. package/types/multiplayer.ts +0 -118
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Information needed to connect to a multiplayer room's WebSocket.
3
+ */
4
+ export interface JoinInfo {
5
+ wsUrl: string;
6
+ roomToken: string;
7
+ gameSlug: string;
8
+ roomCode: string;
9
+ peerId: string;
10
+ }
11
+ /**
12
+ * A peer in a multiplayer room.
13
+ */
14
+ export interface Peer {
15
+ peerId: string;
16
+ role?: string;
17
+ metadata?: Record<string, any>;
18
+ }
19
+ /**
20
+ * Public info about the current multiplayer room, returned by
21
+ * `multiplayer.getRoom()`.
22
+ */
23
+ export interface RoomInfo {
24
+ roomCode: string;
25
+ shareId: string;
26
+ shareUrl?: string;
27
+ peerId: string;
28
+ role: string;
29
+ gameSlug: string;
30
+ roomToken: string;
31
+ wsUrl: string;
32
+ }
33
+ /**
34
+ * Internal book-keeping for the currently-joined room.
35
+ */
36
+ export interface MpRoom {
37
+ roomCode: string;
38
+ shareId: string;
39
+ shareUrl?: string;
40
+ peerId: string;
41
+ role: string;
42
+ gameSlug: string;
43
+ roomToken: string;
44
+ wsUrl: string;
45
+ }
46
+ /**
47
+ * Parameters used by `connect` to open / re-open a WS.
48
+ */
49
+ export interface MpJoinRequest {
50
+ roomCode: string;
51
+ roomToken: string;
52
+ wsUrl: string;
53
+ gameSlug: string;
54
+ peerId: string;
55
+ }
56
+ /**
57
+ * Listener for a single multiplayer event (or all events via `'*'`).
58
+ */
59
+ export type MpEventHandler = (payload: any) => void;
60
+ /** Options accepted when creating a room. */
61
+ export interface RoomOptions {
62
+ maxPlayers?: number;
63
+ passcode?: string;
64
+ }
65
+ /** Options accepted when joining a room. */
66
+ export interface JoinOptions {
67
+ passcode?: string;
68
+ displayName?: string;
69
+ /**
70
+ * When true, the SDK locally marks this peer as a view-only guest:
71
+ * `multiplayer.send` and `multiplayer.broadcast` become no-ops and score
72
+ * submission (`submitScore` / `submitMatchResult`) is blocked. The peer
73
+ * still receives every broadcast so it can mirror host state.
74
+ */
75
+ asViewer?: boolean;
76
+ }
77
+ /**
78
+ * Options accepted by `multiplayer.send` / `multiplayer.broadcast`.
79
+ */
80
+ export interface SendOptions {
81
+ /**
82
+ * When true, the server keeps the latest frame for `retainKey` (or the
83
+ * event name if no key is given) and replays it to every peer that joins
84
+ * the room afterwards — before any live traffic reaches that peer's
85
+ * socket. Mirrors MQTT retained messages.
86
+ *
87
+ * Only the room's host may retain frames; the server silently drops the
88
+ * `retain` flag from non-host senders.
89
+ */
90
+ retain?: boolean;
91
+ /**
92
+ * Identifier under which the server stores the retained frame. Sending
93
+ * another retained frame with the same key overwrites the previous value
94
+ * but keeps its position in replay order. Defaults to the event name.
95
+ * Must match `^[a-zA-Z0-9_.:-]{1,64}$`.
96
+ */
97
+ retainKey?: string;
98
+ }
99
+ /**
100
+ * Shape of the `message` event emitted for every peer-originated game event.
101
+ */
102
+ export interface MpMessage<T = any> {
103
+ roomCode: string;
104
+ fromPeerId: string;
105
+ eventName: string;
106
+ payload: T;
107
+ seq: number;
108
+ sentAt: number;
109
+ /**
110
+ * True when the frame is a server-replayed retained ("sticky") snapshot
111
+ * delivered on join/reconnect. Game code can usually treat retained and
112
+ * live frames identically — apply both via the same handler. Idempotent
113
+ * appliers don't need to special-case this flag, but games that play
114
+ * sounds/animations on a state change typically suppress them when
115
+ * `retained` is true.
116
+ */
117
+ retained?: boolean;
118
+ }
119
+ /** Result returned by `multiplayer.createRoom`. */
120
+ export interface CreateRoomResult {
121
+ success: boolean;
122
+ roomCode?: string;
123
+ shareId?: string;
124
+ shareUrl?: string;
125
+ peerId?: string;
126
+ roomToken?: string;
127
+ error?: string;
128
+ }
129
+ /** Result returned by `multiplayer.joinRoom` / `joinRoomByLink`. */
130
+ export interface JoinRoomResult {
131
+ success: boolean;
132
+ roomCode?: string;
133
+ shareId?: string;
134
+ peerId?: string;
135
+ roomToken?: string;
136
+ error?: string;
137
+ }
138
+ //# sourceMappingURL=multiplayer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"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IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=multiplayer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multiplayer.js","sourceRoot":"","sources":["../../types/multiplayer.ts"],"names":[],"mappings":""}
@@ -1,39 +1,35 @@
1
- namespace GameHub {
2
- /**
3
- * Optional metadata attached to a score submission.
4
- */
5
- export interface ScoreMetadata {
1
+ import type { MatchResultPayload } from './match.js';
2
+ /**
3
+ * Optional metadata attached to a score submission.
4
+ */
5
+ export interface ScoreMetadata {
6
6
  matchResult?: MatchResultPayload;
7
7
  level?: number;
8
8
  duration?: number;
9
9
  custom?: Record<string, any>;
10
10
  [key: string]: any;
11
- }
12
-
13
- /** Payload sent via {@link GameHubSDK.notifyComplete}. */
14
- export interface GameCompleteData {
11
+ }
12
+ /** Payload sent via `sdk.notifyComplete`. */
13
+ export interface GameCompleteData {
15
14
  score?: number;
16
15
  status?: string;
17
16
  meta?: Record<string, any>;
18
- }
19
-
20
- /** Payload sent via {@link GameHubSDK.logEvent}. */
21
- export interface EventData {
17
+ }
18
+ /** Payload sent via `sdk.logEvent`. */
19
+ export interface EventData {
22
20
  category?: string;
23
21
  label?: string;
24
22
  value?: number;
25
23
  properties?: Record<string, any>;
26
- }
27
-
28
- /** Options accepted by {@link GameHubSDK.getQuestions}. */
29
- export interface QuestionOptions {
24
+ }
25
+ /** Options accepted by `sdk.getQuestions`. */
26
+ export interface QuestionOptions {
30
27
  difficulty?: 'easy' | 'medium' | 'hard' | string;
31
28
  category?: string | number;
32
29
  limit?: number;
33
- }
34
-
35
- /** A single question as returned by {@link GameHubSDK.getQuestions}. */
36
- export interface Question {
30
+ }
31
+ /** A single question as returned by `sdk.getQuestions`. */
32
+ export interface Question {
37
33
  id: string;
38
34
  difficulty?: 'easy' | 'medium' | 'hard' | string;
39
35
  category?: string;
@@ -42,17 +38,15 @@ namespace GameHub {
42
38
  answer: string | number;
43
39
  explanation?: string;
44
40
  points: number;
45
- }
46
-
47
- /** Result returned by `startSession`. */
48
- export interface StartSessionResult {
41
+ }
42
+ /** Result returned by `startSession`. */
43
+ export interface StartSessionResult {
49
44
  success: boolean;
50
45
  token?: string | null;
51
46
  error?: string;
52
- }
53
-
54
- /** Result returned by `submitScore` / `submitMatchScore`. */
55
- export interface SubmitScoreResult {
47
+ }
48
+ /** Result returned by `submitScore` / `submitMatchScore`. */
49
+ export interface SubmitScoreResult {
56
50
  success: boolean;
57
51
  accepted?: boolean;
58
52
  timeTaken?: number;
@@ -63,5 +57,5 @@ namespace GameHub {
63
57
  * guest). Treat this as "not-an-error" — the host will submit instead.
64
58
  */
65
59
  skipped?: boolean;
66
- }
67
60
  }
61
+ //# sourceMappingURL=session.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../types/session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,6CAA6C;AAC7C,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED,uCAAuC;AACvC,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,8CAA8C;AAC9C,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,2DAA2D;AAC3D,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,yCAAyC;AACzC,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,6DAA6D;AAC7D,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=session.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"session.js","sourceRoot":"","sources":["../../types/session.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,31 +1,47 @@
1
1
  {
2
2
  "name": "@ksaa-nlp/gamehub-sdk",
3
- "version": "0.1.0",
4
- "description": "Browser SDK that lets GameHub-hosted games talk to the platform (auth, sessions, scores, multiplayer).",
5
- "main": "./dist/gamehub-sdk.js",
6
- "module": "./dist/index.mjs",
7
- "types": "./dist/index.d.ts",
8
- "author": "KSAANLP",
9
- "license": "ISC",
3
+ "version": "0.5.0",
4
+ "description": "ESM SDK that lets GameHub-hosted games talk to the platform (auth, sessions, scores, multiplayer). Drops into Node, Angular, browsers, or a `<script>` tag.",
5
+ "type": "module",
6
+ "main": "./dist/src/main.js",
7
+ "module": "./dist/src/main.js",
8
+ "types": "./dist/src/main.d.ts",
10
9
  "exports": {
11
10
  ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.mjs",
14
- "require": "./dist/gamehub-sdk.js",
15
- "default": "./dist/gamehub-sdk.js"
16
- }
11
+ "types": "./dist/src/main.d.ts",
12
+ "import": "./dist/src/main.js",
13
+ "default": "./dist/src/main.js"
14
+ },
15
+ "./browser": {
16
+ "types": "./dist/src/browser-entry.d.ts",
17
+ "import": "./dist/src/browser-entry.js",
18
+ "default": "./dist/src/browser-entry.js"
19
+ },
20
+ "./gamehub-sdk.js": "./dist/gamehub-sdk.js",
21
+ "./package.json": "./package.json"
17
22
  },
23
+ "sideEffects": [
24
+ "./dist/src/browser-entry.js",
25
+ "./dist/gamehub-sdk.js"
26
+ ],
18
27
  "files": [
19
- "src/**/*",
20
- "types/**/*",
21
28
  "dist/**/*",
22
- "scripts/**/*",
23
- "tsconfig.json",
24
- "README.md"
29
+ "README.md",
30
+ "CHANGELOG.md",
31
+ "MIGRATION.md"
25
32
  ],
26
33
  "scripts": {
27
- "build": "npx tsc -p ./tsconfig.json && node scripts/emit-module-entry.mjs",
34
+ "build:tsc": "tsc -p ./tsconfig.json",
35
+ "build:bundle": "esbuild src/browser-entry.ts --bundle --format=iife --platform=browser --target=es2020 --outfile=dist/gamehub-sdk.js --sourcemap",
36
+ "build": "npm run build:tsc && npm run build:bundle",
37
+ "prepack": "npm run build",
28
38
  "pack": "npm run build && npm pack",
29
39
  "publish": "npm run pack && npm publish"
40
+ },
41
+ "author": "KSAANLP",
42
+ "license": "ISC",
43
+ "devDependencies": {
44
+ "esbuild": "^0.25.0",
45
+ "typescript": "^6.0.3"
30
46
  }
31
47
  }