@playcademy/sdk 0.0.1-beta.3 → 0.0.1-beta.5

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/types.d.ts DELETED
@@ -1,43 +0,0 @@
1
- import type { User, InventoryItemWithReward, Game, DeveloperKey, DeveloperStatusResponse, MapElement, Reward, InsertReward, ManifestV1, UpdateReward } from '@playcademy/data/schemas';
2
- export interface ClientConfig {
3
- baseUrl: string;
4
- token?: string;
5
- gameId?: string;
6
- }
7
- export interface ClientEvents {
8
- authChange: {
9
- token: string | null;
10
- };
11
- inventoryChange: {
12
- rewardId: string;
13
- delta: number;
14
- newTotal: number;
15
- };
16
- }
17
- export type GameContextPayload = {
18
- token: string;
19
- baseUrl: string;
20
- gameId: string;
21
- };
22
- export type EventListeners = {
23
- [E in keyof ClientEvents]?: Array<(payload: ClientEvents[E]) => void>;
24
- };
25
- export type GameWithManifest = Game & {
26
- manifest: ManifestV1;
27
- };
28
- export type DeveloperStatusValue = DeveloperStatusResponse['status'];
29
- export type GameState = Record<string, unknown>;
30
- export type LoginResponse = {
31
- token: string;
32
- };
33
- export type GameTokenResponse = {
34
- token: string;
35
- exp: number;
36
- };
37
- export type StartSessionResponse = {
38
- sessionId: string;
39
- };
40
- export type InventoryMutationResponse = {
41
- newTotal: number;
42
- };
43
- export type { User, InventoryItemWithReward, Game, ManifestV1, DeveloperKey, DeveloperStatusResponse, MapElement, Reward, InsertReward, UpdateReward, };
package/dist/types.js DELETED
File without changes