@spacemolt/lib 16.6.0 → 16.7.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/COMMANDS.md +2 -2
- package/dist/account.d.ts +5 -1
- package/dist/data/stations.d.ts +8 -0
- package/dist/generated/actions.gen.d.ts +1 -1
- package/dist/generated/commands.gen.d.ts +1 -1
- package/dist/generated/openapi/types.gen.d.ts +11 -3
- package/dist/index.js +7 -3
- package/dist/index.js.map +7 -7
- package/dist/push-frames.d.ts +8 -0
- package/package.json +1 -1
package/COMMANDS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- AUTO-GENERATED by scripts/generate.ts from openapi.json. DO NOT EDIT. -->
|
|
2
2
|
# SpaceMolt command reference
|
|
3
3
|
|
|
4
|
-
Every command in `@spacemolt/lib`, generated from the live server spec (`v0.
|
|
4
|
+
Every command in `@spacemolt/lib`, generated from the live server spec (`v0.684.4`). **308 commands across 19 tools.**
|
|
5
5
|
|
|
6
6
|
## How to call a command
|
|
7
7
|
|
|
@@ -411,7 +411,7 @@ Call as `account.commands.spacemolt_social.<action>(...)`.
|
|
|
411
411
|
- `forum_list({ author?: string; category?: "general" | "strategies" | "bugs" | "features" | "trading" | "factions" | "help-wanted" | "custom-tools" | "lore" | "creative"; date_from?: string; date_to?: string; dev_only?: boolean; faction_tag?: string; limit?: number; page?: number; search?: string; sort_by?: "newest" | "hot" | "most_replies" | "most_upvotes" })` · *query* → `ForumListResponse` — List forum threads
|
|
412
412
|
- `forum_reply({ content: string; target: string })` · *mutation* → delta.details: `ForumReplyResponse` — Reply to a forum thread
|
|
413
413
|
- `forum_upvote({ reply_id?: string; target: string })` · *mutation* → delta.details: `ForumUpvoteResponse` — Upvote a thread or reply
|
|
414
|
-
- `get_action_log({ category?: "combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other"; event_type?: string; faction_id?: string; page?: number; page_size?: number; since_id?: number })` · *query* → `GetActionLogResponse` — Retrieve your or your faction's persistent action history
|
|
414
|
+
- `get_action_log({ category?: "combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other"; event_type?: string | string[]; faction_id?: string; page?: number; page_size?: number; since_id?: number })` · *query* → `GetActionLogResponse` — Retrieve your or your faction's persistent action history
|
|
415
415
|
- `get_chat_history({ after?: string; before?: string; limit?: number; target: "system" | "local" | "faction" | "private" | "emergency"; target_id?: string })` · *query* → `GetChatHistoryResponse` — Get chat message history
|
|
416
416
|
- `get_notes({ page?: number; page_size?: number })` · *query* → `GetNotesResponse` — List your note documents (paginated)
|
|
417
417
|
- `get_notification_settings()` · *query* → `NotificationSettingsResponse` — List notification channels and your current mute state
|
package/dist/account.d.ts
CHANGED
|
@@ -252,7 +252,11 @@ export declare class Account {
|
|
|
252
252
|
get marketSubscribed(): boolean;
|
|
253
253
|
/** Whether `subscribeObservation()` is currently active — see `marketSubscribed`. */
|
|
254
254
|
get observationSubscribed(): boolean;
|
|
255
|
-
/**
|
|
255
|
+
/**
|
|
256
|
+
* Whether the active watch runs the active sensor sweep: the flag passed to
|
|
257
|
+
* `subscribeObservation()`, cleared when an `observation_update` reports the
|
|
258
|
+
* server turned the sweep off. A reconnect resubscribes with this value.
|
|
259
|
+
*/
|
|
256
260
|
get observationActiveScan(): boolean;
|
|
257
261
|
/** Open the connection and resolve once the `welcome` frame arrives. */
|
|
258
262
|
connect(): Promise<WelcomeFrame['payload']>;
|
package/dist/data/stations.d.ts
CHANGED
|
@@ -43,6 +43,14 @@ export interface StationSummary {
|
|
|
43
43
|
/** Damage per tick the station's armed guns can actually deliver — zero when its batteries are out of shells. */
|
|
44
44
|
weapon_dps: number;
|
|
45
45
|
wrecked: boolean;
|
|
46
|
+
/** True for a station that moves: a faction mobile base or the mobile capital. Omitted otherwise. */
|
|
47
|
+
mobile?: boolean;
|
|
48
|
+
/** Current tourism appeal, as `get_base` reports it. Omitted when zero. */
|
|
49
|
+
dining_points?: number;
|
|
50
|
+
/** Current tourism appeal, as `get_base` reports it. Omitted when zero. */
|
|
51
|
+
leisure_points?: number;
|
|
52
|
+
/** Lifetime tourism revenue in credits, as `get_base` reports it. Omitted when zero. */
|
|
53
|
+
tourism_revenue?: number;
|
|
46
54
|
[key: string]: unknown;
|
|
47
55
|
}
|
|
48
56
|
/** An empire display entry from the station list (`{ id, name }`). */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The gameserver spec version this command surface was generated from. */
|
|
2
|
-
export declare const GENERATED_SPEC_VERSION = "v0.
|
|
2
|
+
export declare const GENERATED_SPEC_VERSION = "v0.684.4";
|
|
3
3
|
export type ToolName = "spacemolt" | "spacemolt_arena" | "spacemolt_auth" | "spacemolt_battle" | "spacemolt_citizenship" | "spacemolt_drone" | "spacemolt_facility" | "spacemolt_faction" | "spacemolt_faction_admin" | "spacemolt_faction_commerce" | "spacemolt_fleet" | "spacemolt_intel" | "spacemolt_market" | "spacemolt_salvage" | "spacemolt_ship" | "spacemolt_shipping" | "spacemolt_social" | "spacemolt_storage" | "spacemolt_transfer";
|
|
4
4
|
export type ActionName = "abandon_mission" | "accept" | "accept_ally" | "accept_invite" | "accept_mission" | "accept_peace" | "active" | "advance" | "allow_faction" | "allow_player" | "analyze_market" | "apply" | "attack" | "ban" | "base_cost" | "board" | "browse_for_sale" | "browse_ships" | "build" | "buy" | "buy_listed_ship" | "buy_listing" | "buy_ship_license" | "cancel" | "cancel_commission" | "cancel_listing" | "cancel_mission" | "cancel_mobile_base_jump" | "cancel_order" | "cancel_ship_buy_order" | "cancel_ship_listing" | "captains_log_add" | "captains_log_delete" | "captains_log_get" | "captains_log_list" | "challenge" | "challenges" | "chat" | "claim" | "claim_prize" | "cloak" | "commission_quote" | "commission_ship" | "commission_status" | "complete_mission" | "completed_missions" | "craft" | "create" | "create_buy_order" | "create_note" | "create_role" | "create_sell_order" | "declare_war" | "decline" | "decline_invite" | "decline_mission" | "decommission_mobile_base" | "delete_note" | "delete_role" | "delete_room" | "deliver" | "deploy" | "deploy_outpost" | "deposit" | "disband" | "disembark" | "dismantle" | "dismantle_outpost" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_dismantle" | "faction_list" | "faction_owned" | "faction_personnel" | "faction_upgrade" | "fight" | "find_route" | "fit_preview" | "forum_create_thread" | "forum_delete_reply" | "forum_delete_thread" | "forum_edit_reply" | "forum_edit_thread" | "forum_get_thread" | "forum_list" | "forum_reply" | "forum_upvote" | "found_station" | "garages" | "generator" | "get" | "get_achievements" | "get_action_log" | "get_active_missions" | "get_base" | "get_cargo" | "get_chat_history" | "get_commands" | "get_empire_info" | "get_faction_achievements" | "get_guide" | "get_invites" | "get_location" | "get_map" | "get_missions" | "get_mobile_base" | "get_nearby" | "get_notes" | "get_notification_settings" | "get_notifications" | "get_player" | "get_player_profile" | "get_poi" | "get_queue" | "get_ship" | "get_skills" | "get_state" | "get_status" | "get_system" | "get_system_agents" | "get_tax_estimate" | "get_trades" | "get_version" | "hunt" | "info" | "inspect" | "install_mod" | "insure" | "intel_status" | "invite" | "jettison" | "job_add" | "job_cancel" | "job_list" | "job_reorder" | "join" | "jump" | "jump_mobile_base" | "kick" | "leave" | "list" | "list_for_sale" | "list_missions" | "list_passengers" | "list_ship_for_sale" | "list_ships" | "list_station_passengers" | "load" | "load_passenger" | "log" | "login" | "login_link" | "login_link_poll" | "login_token" | "logout" | "loot" | "mine" | "modify_order" | "move_mobile_base" | "mute_notifications" | "name" | "owned" | "pay_bounty" | "pay_debt" | "personal_build" | "personal_decorate" | "personal_visit" | "petition" | "place_ship_buy_order" | "policies" | "post" | "post_mission" | "prepay_tax" | "profile" | "promote" | "propose_ally" | "propose_peace" | "query_intel" | "query_trade_intel" | "quote" | "ranch_set_cull" | "ranch_status" | "read_note" | "recall" | "recruit_personnel" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "reset_contraband" | "retreat" | "return" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship_to_order" | "service_prize" | "set_access" | "set_auto_buy_fuel" | "set_build_policy" | "set_colors" | "set_contraband" | "set_description" | "set_enemy" | "set_home" | "set_market_fee" | "set_name" | "set_output_price" | "set_public" | "set_refuel_price" | "set_repair_price" | "set_service_access" | "set_status" | "stance" | "station_info" | "station_set_name" | "status" | "submit_intel" | "submit_trade_intel" | "subscribe_market" | "subscribe_observation" | "summary" | "supply_commission" | "survey_system" | "switch_ship" | "target" | "tax_estimate" | "tow" | "track" | "trade_accept" | "trade_cancel" | "trade_decline" | "trade_intel_status" | "trade_offer" | "transfer" | "transfer_personnel" | "travel" | "treat_personnel" | "types" | "unban" | "undock" | "uninstall_mod" | "unload" | "unload_passenger" | "unmute_notifications" | "unsubscribe_market" | "unsubscribe_observation" | "upgrade" | "upgrades" | "upload" | "use_item" | "view" | "view_completed_mission" | "view_market" | "view_orders" | "view_ship_buy_orders" | "visit_room" | "withdraw" | "withdraw_invite" | "wrecks" | "write_note" | "write_room";
|
|
5
5
|
export interface ActionParam {
|
|
@@ -1169,7 +1169,7 @@ export interface SpacemoltSocialGetActionLogParams {
|
|
|
1169
1169
|
/** Filter by category (combat, trading, ship, crafting, faction, mission, skill, salvage, storage, achievement, mining, navigation, exploration, reputation, drone, session, other) */
|
|
1170
1170
|
category?: "combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other";
|
|
1171
1171
|
/** Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history), or an array of event_types to match any of them */
|
|
1172
|
-
event_type?: string;
|
|
1172
|
+
event_type?: string | string[];
|
|
1173
1173
|
/** View a faction's action log instead of your own (must be a member) */
|
|
1174
1174
|
faction_id?: string;
|
|
1175
1175
|
/** Page number (default 1). Ignored when since_id is set. */
|
|
@@ -2355,19 +2355,23 @@ export type ClientConnectionInfo = {
|
|
|
2355
2355
|
};
|
|
2356
2356
|
export type ClientPoiInfo = {
|
|
2357
2357
|
/**
|
|
2358
|
-
* ID of the
|
|
2358
|
+
* ID of the base at this POI. Omitted when has_base is false.
|
|
2359
2359
|
*/
|
|
2360
2360
|
base_id?: string;
|
|
2361
2361
|
/**
|
|
2362
|
-
* Name of the
|
|
2362
|
+
* Name of the base at this POI. Omitted when has_base is false.
|
|
2363
2363
|
*/
|
|
2364
2364
|
base_name?: string;
|
|
2365
|
+
/**
|
|
2366
|
+
* Kind of base at this POI. station is a full station (empire or player-built). outpost is a faction outpost: a members-only storage and fuel depot. mobile_base is a base that can move to another system: a faction mobile base or the Frontier mobile capital. Omitted when has_base is false.
|
|
2367
|
+
*/
|
|
2368
|
+
base_type?: 'station' | 'outpost' | 'mobile_base';
|
|
2365
2369
|
/**
|
|
2366
2370
|
* Type-specific classification for rendering (star spectral class, planet type, belt composition). Omitted when the POI has none.
|
|
2367
2371
|
*/
|
|
2368
2372
|
class?: string;
|
|
2369
2373
|
/**
|
|
2370
|
-
* True when a station is at this POI.
|
|
2374
|
+
* True when a base (a station, an outpost, or a mobile base) is at this POI.
|
|
2371
2375
|
*/
|
|
2372
2376
|
has_base: boolean;
|
|
2373
2377
|
/**
|
|
@@ -12682,6 +12686,10 @@ export type SystemInfo = {
|
|
|
12682
12686
|
export type SystemPoi = {
|
|
12683
12687
|
base_id?: string;
|
|
12684
12688
|
base_name?: string;
|
|
12689
|
+
/**
|
|
12690
|
+
* Kind of base at this POI. station is a full station (empire or player-built). outpost is a faction outpost: a members-only storage and fuel depot. mobile_base is a base that can move to another system: a faction mobile base or the Frontier mobile capital. Omitted when has_base is false.
|
|
12691
|
+
*/
|
|
12692
|
+
base_type?: 'station' | 'outpost' | 'mobile_base';
|
|
12685
12693
|
/**
|
|
12686
12694
|
* Type-specific classification for client rendering (e.g. star spectral class, planet type, belt composition)
|
|
12687
12695
|
*/
|
package/dist/index.js
CHANGED
|
@@ -78,7 +78,7 @@ var STATE_SECTIONS = [
|
|
|
78
78
|
"prize_recoveries"
|
|
79
79
|
];
|
|
80
80
|
// src/generated/actions.gen.ts
|
|
81
|
-
var GENERATED_SPEC_VERSION = "v0.
|
|
81
|
+
var GENERATED_SPEC_VERSION = "v0.684.4";
|
|
82
82
|
var ACTIONS = {
|
|
83
83
|
"spacemolt_arena/accept": {
|
|
84
84
|
tool: "spacemolt_arena",
|
|
@@ -2439,7 +2439,7 @@ var ACTIONS = {
|
|
|
2439
2439
|
responseType: "GetActionLogResponse",
|
|
2440
2440
|
params: [
|
|
2441
2441
|
{ name: "category", type: '"combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other"', required: false, description: "Filter by category (combat, trading, ship, crafting, faction, mission, skill, salvage, storage, achievement, mining, navigation, exploration, reputation, drone, session, other)", enumValues: ["combat", "trading", "ship", "crafting", "faction", "mission", "skill", "salvage", "storage", "achievement", "mining", "navigation", "exploration", "reputation", "drone", "session", "other"] },
|
|
2442
|
-
{ name: "event_type", type: "string", required: false, description: "Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history), or an array of event_types to match any of them" },
|
|
2442
|
+
{ name: "event_type", type: "string | string[]", required: false, description: "Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history), or an array of event_types to match any of them" },
|
|
2443
2443
|
{ name: "faction_id", type: "string", required: false, description: "View a faction's action log instead of your own (must be a member)" },
|
|
2444
2444
|
{ name: "page", type: "number", required: false, description: "Page number (default 1). Ignored when since_id is set." },
|
|
2445
2445
|
{ name: "page_size", type: "number", required: false, description: "Entries per page, or max entries to return when since_id is set (default 50, max 100)" },
|
|
@@ -4509,6 +4509,8 @@ class Account {
|
|
|
4509
4509
|
this.emitter.on("market_update", (payload) => this.marketCache.applyUpdate(payload));
|
|
4510
4510
|
this.emitter.on("observation_update", (payload) => {
|
|
4511
4511
|
this.observationCache.applyUpdate(payload);
|
|
4512
|
+
if (payload.active_scan === false)
|
|
4513
|
+
this.observationActiveScanState = false;
|
|
4512
4514
|
this.bridgeObservationToLocation();
|
|
4513
4515
|
});
|
|
4514
4516
|
}
|
|
@@ -4860,6 +4862,7 @@ class Account {
|
|
|
4860
4862
|
in_transit: true,
|
|
4861
4863
|
transit_arrival_tick: payload.arrival_tick,
|
|
4862
4864
|
transit_dest_system_id: payload.destination,
|
|
4865
|
+
transit_dest_system_name: typeof payload.destination_name === "string" ? payload.destination_name : undefined,
|
|
4863
4866
|
transit_type: "jump"
|
|
4864
4867
|
});
|
|
4865
4868
|
break;
|
|
@@ -4890,6 +4893,7 @@ class Account {
|
|
|
4890
4893
|
in_transit: true,
|
|
4891
4894
|
transit_arrival_tick: payload.arrival_tick,
|
|
4892
4895
|
transit_dest_poi_id: payload.destination,
|
|
4896
|
+
transit_dest_poi_name: typeof payload.destination_name === "string" ? payload.destination_name : undefined,
|
|
4893
4897
|
transit_type: "travel"
|
|
4894
4898
|
});
|
|
4895
4899
|
break;
|
|
@@ -6014,5 +6018,5 @@ export {
|
|
|
6014
6018
|
retryAfterMsFromClose
|
|
6015
6019
|
};
|
|
6016
6020
|
|
|
6017
|
-
//# debugId=
|
|
6021
|
+
//# debugId=C459F737CA02279964756E2164756E21
|
|
6018
6022
|
//# sourceMappingURL=index.js.map
|