@spacemolt/lib 4.6.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/AGENTS.md +118 -0
- package/COMMANDS.md +386 -0
- package/LICENSE +21 -0
- package/README.md +298 -0
- package/dist/account.d.ts +389 -0
- package/dist/auth/clerk.d.ts +58 -0
- package/dist/auth/credentials.d.ts +52 -0
- package/dist/auth/file-store.d.ts +20 -0
- package/dist/client.d.ts +305 -0
- package/dist/data/catalog.d.ts +39 -0
- package/dist/data/map.d.ts +30 -0
- package/dist/errors.d.ts +52 -0
- package/dist/events/emitter.d.ts +58 -0
- package/dist/generated/actions.gen.d.ts +25 -0
- package/dist/generated/commands.gen.d.ts +1790 -0
- package/dist/generated/notifications.gen.d.ts +41 -0
- package/dist/generated/openapi/index.d.ts +1 -0
- package/dist/generated/openapi/types.gen.d.ts +19080 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +4638 -0
- package/dist/node.d.ts +8 -0
- package/dist/node.js +49 -0
- package/dist/protocol.d.ts +178 -0
- package/dist/state/cache.d.ts +43 -0
- package/dist/state/market.d.ts +30 -0
- package/dist/state/observation.d.ts +38 -0
- package/dist/transport/correlator.d.ts +54 -0
- package/dist/transport/socket.d.ts +60 -0
- package/llms.txt +23 -0
- package/package.json +49 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { NotificationAchievementUnlocked, NotificationBaseDestroyed, NotificationBaseRaidUpdate, NotificationBattleAlert, NotificationBattleDamage, NotificationBattleEnded, NotificationBattleJoined, NotificationBattleLeft, NotificationBattleStarted, NotificationBattleUpdate, NotificationChatMessage, NotificationCraftingUpdate, NotificationDroneDestroyed, NotificationDroneScan, NotificationDroneSurvey, NotificationDroneUpdate, NotificationFacilityReclaimed, NotificationFacilityRentWarning, NotificationMarketUpdate, NotificationMiningYield, NotificationObservationUpdate, NotificationPilotlessShip, NotificationPirateDestroyed, NotificationPirateRadio, NotificationPlayerDied, NotificationPlayerKill, NotificationReconnected, NotificationScanDetected, NotificationSkillLevelUp, NotificationTradeCancelled, NotificationTradeComplete, NotificationTradeDeclined, NotificationTradeOfferReceived } from './openapi/types.gen.js';
|
|
2
|
+
/** msg_type values that have a published payload schema. */
|
|
3
|
+
export type TypedNotificationType = "achievement_unlocked" | "base_destroyed" | "base_raid_update" | "battle_alert" | "battle_damage" | "battle_ended" | "battle_joined" | "battle_left" | "battle_started" | "battle_update" | "chat_message" | "crafting_update" | "drone_destroyed" | "drone_scan" | "drone_survey" | "drone_update" | "facility_reclaimed" | "facility_rent_warning" | "market_update" | "mining_yield" | "observation_update" | "pilotless_ship" | "pirate_destroyed" | "pirate_radio" | "player_died" | "player_kill" | "reconnected" | "scan_detected" | "skill_level_up" | "trade_cancelled" | "trade_complete" | "trade_declined" | "trade_offer_received";
|
|
4
|
+
/** Maps a typed push msg_type to its payload type. */
|
|
5
|
+
export interface NotificationPayloads {
|
|
6
|
+
"achievement_unlocked": NotificationAchievementUnlocked;
|
|
7
|
+
"base_destroyed": NotificationBaseDestroyed;
|
|
8
|
+
"base_raid_update": NotificationBaseRaidUpdate;
|
|
9
|
+
"battle_alert": NotificationBattleAlert;
|
|
10
|
+
"battle_damage": NotificationBattleDamage;
|
|
11
|
+
"battle_ended": NotificationBattleEnded;
|
|
12
|
+
"battle_joined": NotificationBattleJoined;
|
|
13
|
+
"battle_left": NotificationBattleLeft;
|
|
14
|
+
"battle_started": NotificationBattleStarted;
|
|
15
|
+
"battle_update": NotificationBattleUpdate;
|
|
16
|
+
"chat_message": NotificationChatMessage;
|
|
17
|
+
"crafting_update": NotificationCraftingUpdate;
|
|
18
|
+
"drone_destroyed": NotificationDroneDestroyed;
|
|
19
|
+
"drone_scan": NotificationDroneScan;
|
|
20
|
+
"drone_survey": NotificationDroneSurvey;
|
|
21
|
+
"drone_update": NotificationDroneUpdate;
|
|
22
|
+
"facility_reclaimed": NotificationFacilityReclaimed;
|
|
23
|
+
"facility_rent_warning": NotificationFacilityRentWarning;
|
|
24
|
+
"market_update": NotificationMarketUpdate;
|
|
25
|
+
"mining_yield": NotificationMiningYield;
|
|
26
|
+
"observation_update": NotificationObservationUpdate;
|
|
27
|
+
"pilotless_ship": NotificationPilotlessShip;
|
|
28
|
+
"pirate_destroyed": NotificationPirateDestroyed;
|
|
29
|
+
"pirate_radio": NotificationPirateRadio;
|
|
30
|
+
"player_died": NotificationPlayerDied;
|
|
31
|
+
"player_kill": NotificationPlayerKill;
|
|
32
|
+
"reconnected": NotificationReconnected;
|
|
33
|
+
"scan_detected": NotificationScanDetected;
|
|
34
|
+
"skill_level_up": NotificationSkillLevelUp;
|
|
35
|
+
"trade_cancelled": NotificationTradeCancelled;
|
|
36
|
+
"trade_complete": NotificationTradeComplete;
|
|
37
|
+
"trade_declined": NotificationTradeDeclined;
|
|
38
|
+
"trade_offer_received": NotificationTradeOfferReceived;
|
|
39
|
+
}
|
|
40
|
+
/** Names of every push msg_type with a published schema, for runtime checks. */
|
|
41
|
+
export declare const TYPED_NOTIFICATION_TYPES: readonly ["achievement_unlocked", "base_destroyed", "base_raid_update", "battle_alert", "battle_damage", "battle_ended", "battle_joined", "battle_left", "battle_started", "battle_update", "chat_message", "crafting_update", "drone_destroyed", "drone_scan", "drone_survey", "drone_update", "facility_reclaimed", "facility_rent_warning", "market_update", "mining_yield", "observation_update", "pilotless_ship", "pirate_destroyed", "pirate_radio", "player_died", "player_kill", "reconnected", "scan_detected", "skill_level_up", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types.gen';
|