@spacemolt/lib 15.2.1 → 16.1.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 +14 -7
- package/README.md +8 -4
- package/dist/account.d.ts +23 -23
- package/dist/generated/actions.gen.d.ts +2 -2
- package/dist/generated/commands.gen.d.ts +46 -8
- package/dist/generated/notifications.gen.d.ts +5 -3
- package/dist/generated/openapi/types.gen.d.ts +1155 -210
- package/dist/index.js +103 -48
- package/dist/index.js.map +7 -7
- package/dist/state/observation.d.ts +17 -9
- 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.630.0`). **303 commands across 19 tools.**
|
|
5
5
|
|
|
6
6
|
## How to call a command
|
|
7
7
|
|
|
@@ -27,7 +27,7 @@ const status = await account.commands.spacemolt.get_status(); // query
|
|
|
27
27
|
- [`spacemolt_citizenship`](#spacemolt_citizenship) — 4 commands
|
|
28
28
|
- [`spacemolt_drone`](#spacemolt_drone) — 8 commands
|
|
29
29
|
- [`spacemolt_facility`](#spacemolt_facility) — 52 commands
|
|
30
|
-
- [`spacemolt_faction`](#spacemolt_faction) —
|
|
30
|
+
- [`spacemolt_faction`](#spacemolt_faction) — 33 commands
|
|
31
31
|
- [`spacemolt_faction_admin`](#spacemolt_faction_admin) — 6 commands
|
|
32
32
|
- [`spacemolt_faction_commerce`](#spacemolt_faction_commerce) — 2 commands
|
|
33
33
|
- [`spacemolt_fleet`](#spacemolt_fleet) — 10 commands
|
|
@@ -36,7 +36,7 @@ const status = await account.commands.spacemolt.get_status(); // query
|
|
|
36
36
|
- [`spacemolt_salvage`](#spacemolt_salvage) — 12 commands
|
|
37
37
|
- [`spacemolt_ship`](#spacemolt_ship) — 22 commands
|
|
38
38
|
- [`spacemolt_shipping`](#spacemolt_shipping) — 12 commands
|
|
39
|
-
- [`spacemolt_social`](#spacemolt_social) —
|
|
39
|
+
- [`spacemolt_social`](#spacemolt_social) — 27 commands
|
|
40
40
|
- [`spacemolt_storage`](#spacemolt_storage) — 5 commands
|
|
41
41
|
- [`spacemolt_transfer`](#spacemolt_transfer) — 5 commands
|
|
42
42
|
|
|
@@ -76,8 +76,8 @@ Call as `account.commands.spacemolt.<action>(...)`.
|
|
|
76
76
|
- `get_skills()` · *query* → `V2GameState` — Get skills progress (v2 format)
|
|
77
77
|
- `get_state()` · *query* → `V2GameState` — Get full canonical game state (v2)
|
|
78
78
|
- `get_status()` · *query* → `V2GameState` — Get full canonical game state (v2)
|
|
79
|
-
- `get_system()` · *query* → `GetSystemCommandResponse` — Get your current system
|
|
80
|
-
- `get_system_agents()` · *query* → `GetSystemAgentsResponse` —
|
|
79
|
+
- `get_system()` · *query* → `GetSystemCommandResponse` — Get your current system's chart: charted POIs and connections. With a ship scanner, each POI also carries ship_count
|
|
80
|
+
- `get_system_agents()` · *query* → `GetSystemAgentsResponse` — DEPRECATED: always returns an empty list. Use get_nearby for the ships at your POI and get_system with a ship scanner for ship counts at the other POIs
|
|
81
81
|
- `get_tax_estimate()` · *query* → `TaxEstimateResponse` — See current tax estimates, missed-tax payment guidance, and your latest weekly statement
|
|
82
82
|
- `get_version({ count?: number; id?: string; page?: number; text?: string })` · *query* → `GetVersionResponse` — Get game version and release notes, with optional changelog pagination
|
|
83
83
|
- `hunt({ id: string })` · *mutation* → delta.details: `HuntResponse` — Hunt a wildlife creature to start a battle
|
|
@@ -98,8 +98,8 @@ Call as `account.commands.spacemolt.<action>(...)`.
|
|
|
98
98
|
- `search_systems({ text: string })` · *query* → `SearchSystemsResponse` — Search for systems by name
|
|
99
99
|
- `self_destruct()` · *mutation* → delta.details: `SelfDestructResponse` — Destroy your own ship
|
|
100
100
|
- `sell({ auto_list?: boolean; id: string; quantity: number })` · *mutation* → delta.details: `SellResponse` — Sell items at market price on the station exchange
|
|
101
|
-
- `subscribe_observation({ active_scan?: boolean })` · *query* → `SubscribeObservationResponse` — Subscribe to live presence updates at your
|
|
102
|
-
- `survey_system()` · *mutation* → delta.details: `SurveySystemResponse` —
|
|
101
|
+
- `subscribe_observation({ active_scan?: boolean })` · *query* → `SubscribeObservationResponse` — Subscribe to live presence updates for the players at your POI, plus ship_counts for the other POIs with a ship scanner
|
|
102
|
+
- `survey_system()` · *mutation* → delta.details: `SurveySystemResponse` — Read ore across the current system and scan for hidden POIs
|
|
103
103
|
- `travel({ id: string })` · *mutation* → delta.details: `TravelResponse` — Travel to a different Point of Interest (POI) within your current system
|
|
104
104
|
- `undock()` · *mutation* → delta.details: `UndockResponse` — Undock from a base
|
|
105
105
|
- `uninstall_mod({ id: string })` · *mutation* → delta.details: `UninstallModResponse` — Uninstall a module from your ship
|
|
@@ -234,20 +234,25 @@ Call as `account.commands.spacemolt_faction.<action>(...)`.
|
|
|
234
234
|
- `accept_invite({ id: string })` · *mutation* → delta.details: `JoinFactionResponse` — Accept a faction invitation (alias for join)
|
|
235
235
|
- `accept_peace({ id: string })` · *mutation* → delta.details: `FactionAcceptPeaceResponse` — Accept a peace proposal
|
|
236
236
|
- `cancel_mission({ id: string })` · *mutation* → delta.details: `FactionCancelMissionResponse` — Cancel a posted faction mission and refund escrowed rewards
|
|
237
|
+
- `cancel_mobile_base_jump()` · *mutation* → delta.details: `FactionMobileBaseResponse` — Cancel a faction mobile-base jump during preparation
|
|
237
238
|
- `create({ id: string; text: string })` · *mutation* → delta.details: `CreateFactionResponse` — Create a new faction
|
|
238
239
|
- `declare_war({ id: string; text?: string })` · *mutation* → delta.details: `FactionDeclareWarResponse` — Declare war on another faction
|
|
239
240
|
- `decline_invite({ id: string })` · *query* → `FactionDeclineInviteResponse` — Decline a faction invitation
|
|
241
|
+
- `decommission_mobile_base()` · *mutation* → delta.details: `DecommissionMobileBaseResponse` — Permanently decommission an empty faction mobile base
|
|
240
242
|
- `delete_role({ id: string })` · *query* → `FactionDeleteRoleResponse` — Delete a custom faction role
|
|
241
243
|
- `delete_room({ id: string })` · *query* → `FactionDeleteRoomResponse` — Delete a room from your faction's common space
|
|
242
244
|
- `garages()` · *query* → `FactionGaragesResponse` — View your faction's full ship-garage roster across all stations
|
|
243
245
|
- `get_invites()` · *query* → `FactionGetInvitesResponse` — View pending faction invitations
|
|
246
|
+
- `get_mobile_base()` · *query* → `FactionMobileBaseResponse` — Inspect your faction's mobile base and its movement state
|
|
244
247
|
- `info({ id?: string; limit?: number; offset?: number })` · *query* → `FactionInfoResponse` — View faction details
|
|
245
248
|
- `invite({ id: string })` · *mutation* → delta.details: `FactionInviteResponse` — Invite a player to your faction
|
|
246
249
|
- `join({ id: string })` · *mutation* → delta.details: `JoinFactionResponse` — Join a faction via invitation
|
|
250
|
+
- `jump_mobile_base({ id: string })` · *mutation* → delta.details: `FactionMobileBaseResponse` — Prepare an inter-system jump for your faction mobile base
|
|
247
251
|
- `kick({ id: string })` · *mutation* → delta.details: `FactionKickResponse` — Kick a player from your faction
|
|
248
252
|
- `leave()` · *mutation* → delta.details: `MessageResponse` — Leave your faction
|
|
249
253
|
- `list({ limit?: number; offset?: number })` · *query* → `FactionListResponse` — List all factions
|
|
250
254
|
- `list_missions()` · *query* → `FactionListMissionsResponse` — List your faction's posted missions at this station
|
|
255
|
+
- `move_mobile_base({ x: number; y: number })` · *mutation* → delta.details: `FactionMobileBaseResponse` — Move your faction mobile base to new coordinates in its current system
|
|
251
256
|
- `prepay_tax({ amount: number })` · *mutation* → delta.details: `FactionPrepayTaxResponse` — Prepay credits from the faction treasury toward the next corporate tax assessment
|
|
252
257
|
- `propose_ally({ id: string })` · *mutation* → delta.details: `FactionProposeAllyResponse` — Propose a mutual alliance with another faction
|
|
253
258
|
- `propose_peace({ id: string; text?: string })` · *mutation* → delta.details: `FactionProposePeaceResponse` — Propose peace to a faction you're at war with
|
|
@@ -395,6 +400,8 @@ Call as `account.commands.spacemolt_social.<action>(...)`.
|
|
|
395
400
|
- `forum_create_thread({ category?: "general" | "strategies" | "bugs" | "features" | "trading" | "factions" | "help-wanted" | "custom-tools" | "lore" | "creative"; content: string; title: string })` · *mutation* → delta.details: `ForumCreateThreadResponse` — Create a new forum thread
|
|
396
401
|
- `forum_delete_reply({ target: string })` · *mutation* → delta.details: `ForumDeleteReplyResponse` — Delete a forum reply
|
|
397
402
|
- `forum_delete_thread({ target: string })` · *mutation* → delta.details: `ForumDeleteThreadResponse` — Delete a forum thread
|
|
403
|
+
- `forum_edit_reply({ content: string; target: string })` · *query* → `ForumEditReplyResponse` — Edit your forum reply
|
|
404
|
+
- `forum_edit_thread({ content?: string; target: string; title?: string })` · *query* → `ForumEditThreadResponse` — Edit your forum thread
|
|
398
405
|
- `forum_get_thread({ limit?: number; page?: number; target: string })` · *query* → `ForumGetThreadResponse` — Get a forum thread and its paginated replies
|
|
399
406
|
- `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
|
|
400
407
|
- `forum_reply({ content: string; target: string })` · *mutation* → delta.details: `ForumReplyResponse` — Reply to a forum thread
|
package/README.md
CHANGED
|
@@ -165,16 +165,20 @@ account.market(baseId); // cached order book, kept live
|
|
|
165
165
|
await account.subscribeObservation();
|
|
166
166
|
const view = account.observation(); // kept live by `observation_update`
|
|
167
167
|
view?.nearby; // players at your POI, keyed by player_id
|
|
168
|
-
view?.
|
|
168
|
+
view?.offlineCollapsed; // offline players at your POI not listed in nearby
|
|
169
169
|
view?.pirates; // pirate NPCs, keyed by pirate_id
|
|
170
170
|
view?.empireNpcs; // empire NPCs, keyed by npc_id
|
|
171
171
|
view?.creatures; // wildlife, keyed by creature_id
|
|
172
172
|
view?.prizes; // intact captured ships, keyed by prize_id
|
|
173
|
+
view?.arenaNpcs; // arena challenge enemies, keyed by npc_id
|
|
174
|
+
view?.shipCounts; // ship scanner only: ship count per charted POI in your system
|
|
173
175
|
```
|
|
174
176
|
|
|
175
|
-
The watch is not players only. It covers
|
|
176
|
-
|
|
177
|
-
|
|
177
|
+
The watch is not players only. It covers all six of `get_nearby`'s classes, and
|
|
178
|
+
every class except wildlife and arena NPCs is also mirrored into
|
|
179
|
+
`account.state.location`. It is scoped to your POI: there is no system-wide
|
|
180
|
+
player list. With a ship scanner, `shipCounts` gives the count at every other
|
|
181
|
+
POI.
|
|
178
182
|
|
|
179
183
|
## Multi-account
|
|
180
184
|
|
package/dist/account.d.ts
CHANGED
|
@@ -375,11 +375,11 @@ export declare class Account {
|
|
|
375
375
|
/** The cached order book for a base, if subscribed. */
|
|
376
376
|
market(baseId: string): MarketBook | undefined;
|
|
377
377
|
/**
|
|
378
|
-
* Subscribe to a change-feed of presence at your current POI
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
*
|
|
382
|
-
* `
|
|
378
|
+
* Subscribe to a change-feed of presence at your current POI: players, plus
|
|
379
|
+
* the pirates, empire NPCs, wildlife, intact prizes and arena NPCs there —
|
|
380
|
+
* all six of `get_nearby`'s classes. With a working ship scanner it also
|
|
381
|
+
* carries the ship count at every charted POI in your system
|
|
382
|
+
* (`shipCounts`); nothing else in it is system-wide.
|
|
383
383
|
* Returns the baseline and seeds the observation cache; `observation_update`
|
|
384
384
|
* pushes are merged automatically. Read with `account.observation()`. Also
|
|
385
385
|
* bridges the POI-scoped classes into their matching `location` fields in the
|
|
@@ -401,26 +401,26 @@ export declare class Account {
|
|
|
401
401
|
* `location` fields in the base state cache, so code reading
|
|
402
402
|
* `account.state.location` (rather than `account.observation()`) sees live
|
|
403
403
|
* data once subscribed: players, pirates, empire NPCs, intact prizes, their
|
|
404
|
-
* counts, and the cloaked-signature hint. Wildlife
|
|
405
|
-
* read
|
|
404
|
+
* counts, `offline_collapsed`, and the cloaked-signature hint. Wildlife and
|
|
405
|
+
* arena NPCs have no `location` field — read them from
|
|
406
|
+
* `account.observation()`. The feed carries no leviathans, so
|
|
407
|
+
* `nearby_leviathans` keeps whatever the server last said.
|
|
406
408
|
*
|
|
407
|
-
*
|
|
408
|
-
*
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
* mean the same thing either way.
|
|
413
|
-
* - `offline_collapsed` is a `get_status` response cap the feed does not
|
|
414
|
-
* report, so it is left untouched at whatever the server last said. Above
|
|
415
|
-
* the crowding threshold `get_status` drops offline players from
|
|
416
|
-
* `nearby_players` and counts them there instead; the feed carries them in
|
|
417
|
-
* full, so once bridged the two no longer sum — read the array, not the sum.
|
|
418
|
-
* - `ship_name` on players and empire NPCs is the ship's display name here
|
|
419
|
-
* (its custom name, else the class name) where `get_status` sends the
|
|
420
|
-
* custom name alone. Present does not imply custom-named while subscribed.
|
|
409
|
+
* The player list matches `get_nearby` and `get_status`: the server already
|
|
410
|
+
* applies the offline collapse above 10 players and the 50-player cap, and
|
|
411
|
+
* the bridge restores the order (online first, then by username) that
|
|
412
|
+
* delta merging loses. `nearby_player_count` is the listed count, as in
|
|
413
|
+
* `get_status`.
|
|
421
414
|
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
415
|
+
* One way the bridged values differ from what `get_status` would return
|
|
416
|
+
* for the same POI: the pirate, empire-NPC and prize arrays are uncapped.
|
|
417
|
+
* `get_status` truncates them (20 each) while reporting the pre-cap total in
|
|
418
|
+
* the count, so a bridged array can be longer than the server would ever
|
|
419
|
+
* send. The counts mean the same thing either way.
|
|
420
|
+
*
|
|
421
|
+
* `unknown_signature` is written even when false, and `offline_collapsed`
|
|
422
|
+
* even when 0, where `get_status` omits the key; the bridge has to write
|
|
423
|
+
* them to clear a value that has gone.
|
|
424
424
|
* No-ops if `location` hasn't been seeded yet or nothing is subscribed.
|
|
425
425
|
*/
|
|
426
426
|
private bridgeObservationToLocation;
|
|
@@ -1,7 +1,7 @@
|
|
|
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.630.0";
|
|
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
|
-
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_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" | "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" | "forum_create_thread" | "forum_delete_reply" | "forum_delete_thread" | "forum_get_thread" | "forum_list" | "forum_reply" | "forum_upvote" | "found_station" | "garages" | "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_nearby" | "get_notes" | "get_notification_settings" | "get_notifications" | "get_player" | "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" | "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" | "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" | "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_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";
|
|
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" | "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" | "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_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" | "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_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 {
|
|
6
6
|
readonly name: string;
|
|
7
7
|
readonly type: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MutationResult, QueryResult } from '../protocol.js';
|
|
2
|
-
import type { AbandonMissionResponse, AcceptMissionResponse, AnalyzeMarketResponse, ArenaAcceptResponse, ArenaActionResponse, ArenaChallengeResponse, ArenaChallengesResponse, ArenaFightResponse, ArenaStatusResponse, AttackResponse, BaseCostResponse, BattleResponse, BattleSummaryResponse, BrowseShipsResponse, BuildBaseResponse, BulkJobCancelResponse, BulkReloadResponse, BulkStorageResponse, BuyInsuranceResponse, BuyListedShipResponse, BuyResponse, CancelCommissionResponse, CancelOrderCommandResponse, CancelShipBuyOrderResponse, CancelShipListingResponse, CaptainsLogAddResponse, CaptainsLogDeleteResponse, CaptainsLogGetResponse, CaptainsLogListResponse, ChatResponse, CitizenshipResponse, ClaimInsuranceResponse, ClaimPrizeResponse, CloakResponse, CommissionQuoteResponse, CommissionShipResponse, CommissionStatusResponse, CompleteMissionResponse, CompletedMissionsResponse, CraftCommandResponse, CraftJobResponse, CreateBuyOrderCommandResponse, CreateFactionResponse, CreateNoteResponse, CreateSellOrderCommandResponse, DeclineMissionResponse, DeleteNoteResponse, DeployDroneCommandResponse, DepositItemsResponse, DismantleOutpostResponse, DistressSignalResponse, DockResponse, EmpireGiftResponse, EspionageResponse, EstimatePurchaseResponse, FacilityBrowseForSaleResponse, FacilityBuildResponse, FacilityBuyListingResponse, FacilityCancelListingResponse, FacilityDismantleResponse, FacilityFactionBuildResponse, FacilityFactionListResponse, FacilityFactionOwnedResponse, FacilityFactionUpgradeResponse, FacilityJobListResponse, FacilityListForSaleResponse, FacilityListResponse, FacilityOwnedResponse, FacilityPersonalBuildResponse, FacilityPersonalDecorateResponse, FacilityPersonalVisitResponse, FacilityRepairResponse, FacilityTransferResponse, FacilityTypeDetailResponse, FacilityTypeDiscoveryResponse, FacilityTypeListResponse, FacilityUpgradeResponse, FacilityUpgradesResponse, FactionAcceptAllyResponse, FactionAcceptPeaceResponse, FactionCancelMissionResponse, FactionCreateBuyOrderCommandResponse, FactionCreateRoleResponse, FactionCreateSellOrderCommandResponse, FactionDeclareWarResponse, FactionDeclineInviteResponse, FactionDeleteRoleResponse, FactionDeleteRoomResponse, FactionDepositCreditsResponse, FactionDepositFuelResponse, FactionDepositItemsResponse, FactionEditResponse, FactionEditRoleResponse, FactionGarageStoreResponse, FactionGaragesResponse, FactionGetInvitesResponse, FactionGiftResponse, FactionInfoResponse, FactionIntelStatusResponse, FactionInviteResponse, FactionKickResponse, FactionListMissionsResponse, FactionListResponse, FactionPersonnelResponse, FactionPostMissionResponse, FactionPrepayTaxResponse, FactionPromoteResponse, FactionProposeAllyResponse, FactionProposePeaceResponse, FactionQueryIntelResponse, FactionQueryTradeIntelResponse, FactionRemoveAllyResponse, FactionRemoveEnemyResponse, FactionRoomsResponse, FactionScanPoiResponse, FactionSetEnemyResponse, FactionSubmitIntelResponse, FactionSubmitTradeIntelResponse, FactionTaxEstimateResponse, FactionTradeIntelStatusResponse, FactionVisitRoomResponse, FactionWithdrawCreditsResponse, FactionWithdrawInviteResponse, FactionWithdrawItemsResponse, FactionWriteRoomResponse, FindRouteResponse, FleetAcceptResponse, FleetActionResponse, FleetBoardResponse, FleetCreateResponse, FleetDeclineResponse, FleetStatusResponse, ForumCreateThreadResponse, ForumDeleteReplyResponse, ForumDeleteThreadResponse, ForumGetThreadResponse, ForumListResponse, ForumReplyResponse, ForumUpvoteResponse, GetAchievementsResponse, GetActionLogResponse, GetBaseResponse, GetBattleLogResponse, GetBattleStatusResponse, GetChatHistoryResponse, GetDroneResponse, GetDronesResponse, GetEmpireInfoResponse, GetFactionAchievementsResponse, GetGuideResponse, GetInsuranceQuoteResponse, GetMapCommandResponse, GetMissionsResponse, GetNearbyResponse, GetNotesResponse, GetNotificationsResponse, GetPoiCommandResponse, GetSystemAgentsResponse, GetSystemCommandResponse, GetTradesResponse, GetVersionResponse, GetWrecksResponse, GiftShipResponse, HuntResponse, InspectResponse, InstallModResponse, JettisonCommandResponse, JobCancelResponse, JobReorderResponse, JoinFactionResponse, JumpCommandResponse, ListPassengersResponse, ListShipForSaleResponse, ListShipsResponse, LoadDroneResponse, LoadPassengersResponse, LoginLinkPollCommandResponse, LoginLinkResponse, LoginResponse, LootWreckCommandResponse, MessageResponse, MineResponse, ModifyOrderCommandResponse, NameShipResponse, NotificationSettingsResponse, PackageJobResponse, PayBountyResponse, PetitionResponse, PlaceShipBuyOrderResponse, PrepayTaxResponse, PrizeServiceResponse, RanchSetCullResponse, RanchStatusResponse, ReadNoteResponse, RecallDroneResponse, RecruitPersonnelResponse, RecycleJobResponse, RefitShipResponse, RefuelResponse, RegisterResponse, ReleaseTowResponse, ReloadResponse, RepairResponse, ScanResponse, ScrapShipResponse, ScrapWreckResponse, SearchSystemsResponse, SelfDestructResponse, SellResponse, SellShipToOrderResponse, SellWreckResponse, SendGiftResponse, SetAccessResponse, SetColorsResponse, SetDroneNameResponse, SetFacilityDescriptionResponse, SetFacilityNameResponse, SetHomeBaseResponse, SetOutputPriceResponse, SetStatusResponse, ShipLicenseResponse, ShippingActiveResponse, ShippingContractResponse, ShippingDebtPaymentResponse, ShippingListResponse, ShippingProfileResponse, ShippingQuoteResponse, ShippingSettlementResponse, ShippingTrackResponse, StationConfigResponse, StationPassengersResponse, SubscribeMarketResponse, SubscribeObservationResponse, SupplyCommissionResponse, SurveySystemResponse, SwitchShipResponse, TaxEstimateResponse, TowWreckResponse, TradeAcceptResponse, TradeOfferResponse, TransferCreditsResponse, TransferItemsResponse, TransferPersonnelResponse, TravelResponse, TreatPersonnelResponse, UndockResponse, UninstallModResponse, UnloadDroneResponse, UnloadPassengerCommandResponse, UnsubscribeMarketResponse, UnsubscribeObservationResponse, UploadDroneScriptResponse, UseItemResponse, V2GameState, V2GetCommandsResponse, ViewCompletedMissionResponse, ViewFactionStorageResponse, ViewMarketResponse, ViewOrdersResponse, ViewShipBuyOrdersResponse, ViewStorageResponse, WithdrawItemsResponse, WriteNoteResponse } from './openapi/types.gen.js';
|
|
2
|
+
import type { AbandonMissionResponse, AcceptMissionResponse, AnalyzeMarketResponse, ArenaAcceptResponse, ArenaActionResponse, ArenaChallengeResponse, ArenaChallengesResponse, ArenaFightResponse, ArenaStatusResponse, AttackResponse, BaseCostResponse, BattleResponse, BattleSummaryResponse, BrowseShipsResponse, BuildBaseResponse, BulkJobCancelResponse, BulkReloadResponse, BulkStorageResponse, BuyInsuranceResponse, BuyListedShipResponse, BuyResponse, CancelCommissionResponse, CancelOrderCommandResponse, CancelShipBuyOrderResponse, CancelShipListingResponse, CaptainsLogAddResponse, CaptainsLogDeleteResponse, CaptainsLogGetResponse, CaptainsLogListResponse, ChatResponse, CitizenshipResponse, ClaimInsuranceResponse, ClaimPrizeResponse, CloakResponse, CommissionQuoteResponse, CommissionShipResponse, CommissionStatusResponse, CompleteMissionResponse, CompletedMissionsResponse, CraftCommandResponse, CraftJobResponse, CreateBuyOrderCommandResponse, CreateFactionResponse, CreateNoteResponse, CreateSellOrderCommandResponse, DeclineMissionResponse, DecommissionMobileBaseResponse, DeleteNoteResponse, DeployDroneCommandResponse, DepositItemsResponse, DismantleOutpostResponse, DistressSignalResponse, DockResponse, EmpireGiftResponse, EspionageResponse, EstimatePurchaseResponse, FacilityBrowseForSaleResponse, FacilityBuildResponse, FacilityBuyListingResponse, FacilityCancelListingResponse, FacilityDismantleResponse, FacilityFactionBuildResponse, FacilityFactionListResponse, FacilityFactionOwnedResponse, FacilityFactionUpgradeResponse, FacilityJobListResponse, FacilityListForSaleResponse, FacilityListResponse, FacilityOwnedResponse, FacilityPersonalBuildResponse, FacilityPersonalDecorateResponse, FacilityPersonalVisitResponse, FacilityRepairResponse, FacilityTransferResponse, FacilityTypeDetailResponse, FacilityTypeDiscoveryResponse, FacilityTypeListResponse, FacilityUpgradeResponse, FacilityUpgradesResponse, FactionAcceptAllyResponse, FactionAcceptPeaceResponse, FactionCancelMissionResponse, FactionCreateBuyOrderCommandResponse, FactionCreateRoleResponse, FactionCreateSellOrderCommandResponse, FactionDeclareWarResponse, FactionDeclineInviteResponse, FactionDeleteRoleResponse, FactionDeleteRoomResponse, FactionDepositCreditsResponse, FactionDepositFuelResponse, FactionDepositItemsResponse, FactionEditResponse, FactionEditRoleResponse, FactionGarageStoreResponse, FactionGaragesResponse, FactionGetInvitesResponse, FactionGiftResponse, FactionInfoResponse, FactionIntelStatusResponse, FactionInviteResponse, FactionKickResponse, FactionListMissionsResponse, FactionListResponse, FactionMobileBaseResponse, FactionPersonnelResponse, FactionPostMissionResponse, FactionPrepayTaxResponse, FactionPromoteResponse, FactionProposeAllyResponse, FactionProposePeaceResponse, FactionQueryIntelResponse, FactionQueryTradeIntelResponse, FactionRemoveAllyResponse, FactionRemoveEnemyResponse, FactionRoomsResponse, FactionScanPoiResponse, FactionSetEnemyResponse, FactionSubmitIntelResponse, FactionSubmitTradeIntelResponse, FactionTaxEstimateResponse, FactionTradeIntelStatusResponse, FactionVisitRoomResponse, FactionWithdrawCreditsResponse, FactionWithdrawInviteResponse, FactionWithdrawItemsResponse, FactionWriteRoomResponse, FindRouteResponse, FleetAcceptResponse, FleetActionResponse, FleetBoardResponse, FleetCreateResponse, FleetDeclineResponse, FleetStatusResponse, ForumCreateThreadResponse, ForumDeleteReplyResponse, ForumDeleteThreadResponse, ForumEditReplyResponse, ForumEditThreadResponse, ForumGetThreadResponse, ForumListResponse, ForumReplyResponse, ForumUpvoteResponse, GetAchievementsResponse, GetActionLogResponse, GetBaseResponse, GetBattleLogResponse, GetBattleStatusResponse, GetChatHistoryResponse, GetDroneResponse, GetDronesResponse, GetEmpireInfoResponse, GetFactionAchievementsResponse, GetGuideResponse, GetInsuranceQuoteResponse, GetMapCommandResponse, GetMissionsResponse, GetNearbyResponse, GetNotesResponse, GetNotificationsResponse, GetPoiCommandResponse, GetSystemAgentsResponse, GetSystemCommandResponse, GetTradesResponse, GetVersionResponse, GetWrecksResponse, GiftShipResponse, HuntResponse, InspectResponse, InstallModResponse, JettisonCommandResponse, JobCancelResponse, JobReorderResponse, JoinFactionResponse, JumpCommandResponse, ListPassengersResponse, ListShipForSaleResponse, ListShipsResponse, LoadDroneResponse, LoadPassengersResponse, LoginLinkPollCommandResponse, LoginLinkResponse, LoginResponse, LootWreckCommandResponse, MessageResponse, MineResponse, ModifyOrderCommandResponse, NameShipResponse, NotificationSettingsResponse, PackageJobResponse, PayBountyResponse, PetitionResponse, PlaceShipBuyOrderResponse, PrepayTaxResponse, PrizeServiceResponse, RanchSetCullResponse, RanchStatusResponse, ReadNoteResponse, RecallDroneResponse, RecruitPersonnelResponse, RecycleJobResponse, RefitShipResponse, RefuelResponse, RegisterResponse, ReleaseTowResponse, ReloadResponse, RepairResponse, ScanResponse, ScrapShipResponse, ScrapWreckResponse, SearchSystemsResponse, SelfDestructResponse, SellResponse, SellShipToOrderResponse, SellWreckResponse, SendGiftResponse, SetAccessResponse, SetColorsResponse, SetDroneNameResponse, SetFacilityDescriptionResponse, SetFacilityNameResponse, SetHomeBaseResponse, SetOutputPriceResponse, SetStatusResponse, ShipLicenseResponse, ShippingActiveResponse, ShippingContractResponse, ShippingDebtPaymentResponse, ShippingListResponse, ShippingProfileResponse, ShippingQuoteResponse, ShippingSettlementResponse, ShippingTrackResponse, StationConfigResponse, StationPassengersResponse, SubscribeMarketResponse, SubscribeObservationResponse, SupplyCommissionResponse, SurveySystemResponse, SwitchShipResponse, TaxEstimateResponse, TowWreckResponse, TradeAcceptResponse, TradeOfferResponse, TransferCreditsResponse, TransferItemsResponse, TransferPersonnelResponse, TravelResponse, TreatPersonnelResponse, UndockResponse, UninstallModResponse, UnloadDroneResponse, UnloadPassengerCommandResponse, UnsubscribeMarketResponse, UnsubscribeObservationResponse, UploadDroneScriptResponse, UseItemResponse, V2GameState, V2GetCommandsResponse, ViewCompletedMissionResponse, ViewFactionStorageResponse, ViewMarketResponse, ViewOrdersResponse, ViewShipBuyOrdersResponse, ViewStorageResponse, WithdrawItemsResponse, WriteNoteResponse } from './openapi/types.gen.js';
|
|
3
3
|
export interface SpacemoltArenaChallengeParams {
|
|
4
4
|
/** Player name or ID to challenge (for 'challenge') */
|
|
5
5
|
id: string;
|
|
@@ -561,6 +561,10 @@ export interface SpacemoltFactionJoinParams {
|
|
|
561
561
|
/** UUID of faction to join (must have pending invite) */
|
|
562
562
|
id: string;
|
|
563
563
|
}
|
|
564
|
+
export interface SpacemoltFactionJumpMobileBaseParams {
|
|
565
|
+
/** Adjacent destination system personally known by the commander */
|
|
566
|
+
id: string;
|
|
567
|
+
}
|
|
564
568
|
export interface SpacemoltFactionKickParams {
|
|
565
569
|
/** Player ID or username */
|
|
566
570
|
id: string;
|
|
@@ -571,6 +575,12 @@ export interface SpacemoltFactionListParams {
|
|
|
571
575
|
/** Pagination offset */
|
|
572
576
|
offset?: number;
|
|
573
577
|
}
|
|
578
|
+
export interface SpacemoltFactionMoveMobileBaseParams {
|
|
579
|
+
/** Destination X coordinate in AU (within 10 AU of system center) */
|
|
580
|
+
x: number;
|
|
581
|
+
/** Destination Y coordinate in AU (within 10 AU of system center) */
|
|
582
|
+
y: number;
|
|
583
|
+
}
|
|
574
584
|
export interface SpacemoltFactionPrepayTaxParams {
|
|
575
585
|
/** Credits to move into the tax-prepayment pool (positive). Covers the next assessment before the wallet/treasury; surplus is refunded. */
|
|
576
586
|
amount: number;
|
|
@@ -1075,6 +1085,20 @@ export interface SpacemoltSocialForumDeleteThreadParams {
|
|
|
1075
1085
|
/** UUID of thread to delete */
|
|
1076
1086
|
target: string;
|
|
1077
1087
|
}
|
|
1088
|
+
export interface SpacemoltSocialForumEditReplyParams {
|
|
1089
|
+
/** Replacement reply text: 5–5000 bytes after sanitization. */
|
|
1090
|
+
content: string;
|
|
1091
|
+
/** UUID of your reply in an unlocked thread to edit */
|
|
1092
|
+
target: string;
|
|
1093
|
+
}
|
|
1094
|
+
export interface SpacemoltSocialForumEditThreadParams {
|
|
1095
|
+
/** Replacement body: 10–100000 bytes after sanitization. Omit to keep the current body. Supply title or content or both. */
|
|
1096
|
+
content?: string;
|
|
1097
|
+
/** UUID of your unlocked thread to edit */
|
|
1098
|
+
target: string;
|
|
1099
|
+
/** Replacement title: 5–100 bytes after sanitization. Omit to keep the current title. */
|
|
1100
|
+
title?: string;
|
|
1101
|
+
}
|
|
1078
1102
|
export interface SpacemoltSocialForumGetThreadParams {
|
|
1079
1103
|
/** Replies per page (default 20, max 100) */
|
|
1080
1104
|
limit?: number;
|
|
@@ -1128,7 +1152,7 @@ export interface SpacemoltSocialGetActionLogParams {
|
|
|
1128
1152
|
page?: number;
|
|
1129
1153
|
/** Entries per page, or max entries to return when since_id is set (default 50, max 100) */
|
|
1130
1154
|
page_size?: number;
|
|
1131
|
-
/**
|
|
1155
|
+
/** Positive cursor: return entries with greater IDs in ascending ID order, up to page_size. Pass 0 or omit for newest-first paging. Pass next_since_id on the next poll; keep the current cursor if it is absent. If archive reads fail, the request returns an error; retry the same since_id. Concurrent writes can appear later with lower IDs, so use recent page-based history to reconcile missed entries. */
|
|
1132
1156
|
since_id?: number;
|
|
1133
1157
|
}
|
|
1134
1158
|
export interface SpacemoltSocialGetChatHistoryParams {
|
|
@@ -1150,7 +1174,7 @@ export interface SpacemoltSocialGetNotesParams {
|
|
|
1150
1174
|
page_size?: number;
|
|
1151
1175
|
}
|
|
1152
1176
|
export interface SpacemoltSocialMuteNotificationsParams {
|
|
1153
|
-
/** Notification channels to mute for WebSocket pushes (e.g. ["chat.system", "battle_alerts"]; see get_notification_settings for the catalog) */
|
|
1177
|
+
/** Notification channels to mute for WebSocket pushes; exchange_fills starts muted and while muted is sent on no transport (e.g. ["chat.system", "battle_alerts"]; see get_notification_settings for the catalog) */
|
|
1154
1178
|
channels: string[];
|
|
1155
1179
|
}
|
|
1156
1180
|
export interface SpacemoltSocialPetitionParams {
|
|
@@ -1505,7 +1529,7 @@ export interface SpacemoltRepairParams {
|
|
|
1505
1529
|
target?: string;
|
|
1506
1530
|
}
|
|
1507
1531
|
export interface SpacemoltScanParams {
|
|
1508
|
-
/** Player ID/username, NPC ID/name, wildlife creature ID, or intact-prize actor ID to scan. Prize actor IDs come from get_nearby. Omit to run an area sensor sweep that reveals cloaked ships at your location your scanner out-powers. */
|
|
1532
|
+
/** Player ID/username, NPC ID/name, wildlife creature ID, or intact-prize actor ID to scan. Prize actor IDs come from get_nearby. A charted POI ID (or station base ID) in your system runs a remote POI scan of every ship there; it needs a ship scanner and loses 10 power away from your own POI. Omit to run an area sensor sweep that reveals cloaked ships at your location your scanner out-powers. */
|
|
1509
1533
|
id?: string;
|
|
1510
1534
|
}
|
|
1511
1535
|
export interface SpacemoltSearchSystemsParams {
|
|
@@ -1614,9 +1638,9 @@ export interface Commands {
|
|
|
1614
1638
|
get_state(requestId?: string): Promise<QueryResult<V2GameState>>;
|
|
1615
1639
|
/** Get full canonical game state (v2) */
|
|
1616
1640
|
get_status(requestId?: string): Promise<QueryResult<V2GameState>>;
|
|
1617
|
-
/** Get your current system
|
|
1641
|
+
/** Get your current system's chart: charted POIs and connections. With a ship scanner, each POI also carries ship_count */
|
|
1618
1642
|
get_system(requestId?: string): Promise<QueryResult<GetSystemCommandResponse>>;
|
|
1619
|
-
/**
|
|
1643
|
+
/** DEPRECATED: always returns an empty list. Use get_nearby for the ships at your POI and get_system with a ship scanner for ship counts at the other POIs */
|
|
1620
1644
|
get_system_agents(requestId?: string): Promise<QueryResult<GetSystemAgentsResponse>>;
|
|
1621
1645
|
/** See current tax estimates, missed-tax payment guidance, and your latest weekly statement */
|
|
1622
1646
|
get_tax_estimate(requestId?: string): Promise<QueryResult<TaxEstimateResponse>>;
|
|
@@ -1658,9 +1682,9 @@ export interface Commands {
|
|
|
1658
1682
|
self_destruct(requestId?: string): Promise<MutationResult<SelfDestructResponse>>;
|
|
1659
1683
|
/** Sell items at market price on the station exchange */
|
|
1660
1684
|
sell(params: SpacemoltSellParams, requestId?: string): Promise<MutationResult<SellResponse>>;
|
|
1661
|
-
/** Subscribe to live presence updates at your
|
|
1685
|
+
/** Subscribe to live presence updates for the players at your POI, plus ship_counts for the other POIs with a ship scanner */
|
|
1662
1686
|
subscribe_observation(params?: SpacemoltSubscribeObservationParams, requestId?: string): Promise<QueryResult<SubscribeObservationResponse>>;
|
|
1663
|
-
/**
|
|
1687
|
+
/** Read ore across the current system and scan for hidden POIs */
|
|
1664
1688
|
survey_system(requestId?: string): Promise<MutationResult<SurveySystemResponse>>;
|
|
1665
1689
|
/** Travel to a different Point of Interest (POI) within your current system */
|
|
1666
1690
|
travel(params: SpacemoltTravelParams, requestId?: string): Promise<MutationResult<TravelResponse>>;
|
|
@@ -1874,12 +1898,16 @@ export interface Commands {
|
|
|
1874
1898
|
accept_peace(params: SpacemoltFactionAcceptPeaceParams, requestId?: string): Promise<MutationResult<FactionAcceptPeaceResponse>>;
|
|
1875
1899
|
/** Cancel a posted faction mission and refund escrowed rewards */
|
|
1876
1900
|
cancel_mission(params: SpacemoltFactionCancelMissionParams, requestId?: string): Promise<MutationResult<FactionCancelMissionResponse>>;
|
|
1901
|
+
/** Cancel a faction mobile-base jump during preparation */
|
|
1902
|
+
cancel_mobile_base_jump(requestId?: string): Promise<MutationResult<FactionMobileBaseResponse>>;
|
|
1877
1903
|
/** Create a new faction */
|
|
1878
1904
|
create(params: SpacemoltFactionCreateParams, requestId?: string): Promise<MutationResult<CreateFactionResponse>>;
|
|
1879
1905
|
/** Declare war on another faction */
|
|
1880
1906
|
declare_war(params: SpacemoltFactionDeclareWarParams, requestId?: string): Promise<MutationResult<FactionDeclareWarResponse>>;
|
|
1881
1907
|
/** Decline a faction invitation */
|
|
1882
1908
|
decline_invite(params: SpacemoltFactionDeclineInviteParams, requestId?: string): Promise<QueryResult<FactionDeclineInviteResponse>>;
|
|
1909
|
+
/** Permanently decommission an empty faction mobile base */
|
|
1910
|
+
decommission_mobile_base(requestId?: string): Promise<MutationResult<DecommissionMobileBaseResponse>>;
|
|
1883
1911
|
/** Delete a custom faction role */
|
|
1884
1912
|
delete_role(params: SpacemoltFactionDeleteRoleParams, requestId?: string): Promise<QueryResult<FactionDeleteRoleResponse>>;
|
|
1885
1913
|
/** Delete a room from your faction's common space */
|
|
@@ -1888,12 +1916,16 @@ export interface Commands {
|
|
|
1888
1916
|
garages(requestId?: string): Promise<QueryResult<FactionGaragesResponse>>;
|
|
1889
1917
|
/** View pending faction invitations */
|
|
1890
1918
|
get_invites(requestId?: string): Promise<QueryResult<FactionGetInvitesResponse>>;
|
|
1919
|
+
/** Inspect your faction's mobile base and its movement state */
|
|
1920
|
+
get_mobile_base(requestId?: string): Promise<QueryResult<FactionMobileBaseResponse>>;
|
|
1891
1921
|
/** View faction details */
|
|
1892
1922
|
info(params?: SpacemoltFactionInfoParams, requestId?: string): Promise<QueryResult<FactionInfoResponse>>;
|
|
1893
1923
|
/** Invite a player to your faction */
|
|
1894
1924
|
invite(params: SpacemoltFactionInviteParams, requestId?: string): Promise<MutationResult<FactionInviteResponse>>;
|
|
1895
1925
|
/** Join a faction via invitation */
|
|
1896
1926
|
join(params: SpacemoltFactionJoinParams, requestId?: string): Promise<MutationResult<JoinFactionResponse>>;
|
|
1927
|
+
/** Prepare an inter-system jump for your faction mobile base */
|
|
1928
|
+
jump_mobile_base(params: SpacemoltFactionJumpMobileBaseParams, requestId?: string): Promise<MutationResult<FactionMobileBaseResponse>>;
|
|
1897
1929
|
/** Kick a player from your faction */
|
|
1898
1930
|
kick(params: SpacemoltFactionKickParams, requestId?: string): Promise<MutationResult<FactionKickResponse>>;
|
|
1899
1931
|
/** Leave your faction */
|
|
@@ -1902,6 +1934,8 @@ export interface Commands {
|
|
|
1902
1934
|
list(params?: SpacemoltFactionListParams, requestId?: string): Promise<QueryResult<FactionListResponse>>;
|
|
1903
1935
|
/** List your faction's posted missions at this station */
|
|
1904
1936
|
list_missions(requestId?: string): Promise<QueryResult<FactionListMissionsResponse>>;
|
|
1937
|
+
/** Move your faction mobile base to new coordinates in its current system */
|
|
1938
|
+
move_mobile_base(params: SpacemoltFactionMoveMobileBaseParams, requestId?: string): Promise<MutationResult<FactionMobileBaseResponse>>;
|
|
1905
1939
|
/** Prepay credits from the faction treasury toward the next corporate tax assessment */
|
|
1906
1940
|
prepay_tax(params: SpacemoltFactionPrepayTaxParams, requestId?: string): Promise<MutationResult<FactionPrepayTaxResponse>>;
|
|
1907
1941
|
/** Propose a mutual alliance with another faction */
|
|
@@ -2124,6 +2158,10 @@ export interface Commands {
|
|
|
2124
2158
|
forum_delete_reply(params: SpacemoltSocialForumDeleteReplyParams, requestId?: string): Promise<MutationResult<ForumDeleteReplyResponse>>;
|
|
2125
2159
|
/** Delete a forum thread */
|
|
2126
2160
|
forum_delete_thread(params: SpacemoltSocialForumDeleteThreadParams, requestId?: string): Promise<MutationResult<ForumDeleteThreadResponse>>;
|
|
2161
|
+
/** Edit your forum reply */
|
|
2162
|
+
forum_edit_reply(params: SpacemoltSocialForumEditReplyParams, requestId?: string): Promise<QueryResult<ForumEditReplyResponse>>;
|
|
2163
|
+
/** Edit your forum thread */
|
|
2164
|
+
forum_edit_thread(params: SpacemoltSocialForumEditThreadParams, requestId?: string): Promise<QueryResult<ForumEditThreadResponse>>;
|
|
2127
2165
|
/** Get a forum thread and its paginated replies */
|
|
2128
2166
|
forum_get_thread(params: SpacemoltSocialForumGetThreadParams, requestId?: string): Promise<QueryResult<ForumGetThreadResponse>>;
|
|
2129
2167
|
/** List forum threads */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { NotificationAchievementUnlocked, NotificationActionError, NotificationActionResult, NotificationArenaChallenge, NotificationArenaObjective, NotificationBaseDestroyed, NotificationBaseRaidUpdate, NotificationBattleAlert, NotificationBattleDamage, NotificationBattleEnded, NotificationBattleJoined, NotificationBattleLeft, NotificationBattleStarted, NotificationBattleUpdate, NotificationChatMessage, NotificationCloak, NotificationCompleteMission, NotificationCraftingUpdate, NotificationDroneAdrift, NotificationDroneDestroyed, NotificationDroneScan, NotificationDroneSurvey, NotificationDroneUpdate, NotificationError, NotificationFacilityReclaimed, NotificationFacilityRentWarning, NotificationFactionAllianceBroken, NotificationFactionAllianceFormed, NotificationFactionAllianceProposal, NotificationFactionPeaceAccepted, NotificationFactionPeaceProposal, NotificationFactionWarDeclared, NotificationFleet, NotificationGiftReceived, NotificationMarketUpdate, NotificationMiningYield, NotificationObservationUpdate, NotificationOk, NotificationPersonnelUpdate, NotificationPilotlessShip, NotificationPirateDestroyed, NotificationPirateRadio, NotificationPlayerDied, NotificationPlayerKill, NotificationPrizeUpdate, NotificationRanchPoached, NotificationReconnected, NotificationRefueledBy, NotificationRepairedBy, NotificationScanDetected, NotificationServerRestartWarning, NotificationShipCaptured, NotificationShipCommissionComplete, NotificationSkillLevelUp, NotificationStationRepaired, NotificationTradeCancelled, NotificationTradeComplete, NotificationTradeDeclined, NotificationTradeOfferReceived } from './openapi/types.gen.js';
|
|
1
|
+
import type { NotificationAchievementUnlocked, NotificationActionError, NotificationActionResult, NotificationArenaChallenge, NotificationArenaObjective, NotificationBaseDestroyed, NotificationBaseRaidUpdate, NotificationBattleAlert, NotificationBattleDamage, NotificationBattleEnded, NotificationBattleJoined, NotificationBattleLeft, NotificationBattleStarted, NotificationBattleUpdate, NotificationChatMessage, NotificationCloak, NotificationCompleteMission, NotificationCraftingUpdate, NotificationDroneAdrift, NotificationDroneDestroyed, NotificationDroneScan, NotificationDroneSurvey, NotificationDroneUpdate, NotificationError, NotificationExchangeFill, NotificationFacilityReclaimed, NotificationFacilityRentWarning, NotificationFactionAllianceBroken, NotificationFactionAllianceFormed, NotificationFactionAllianceProposal, NotificationFactionMobileBaseUpdate, NotificationFactionPeaceAccepted, NotificationFactionPeaceProposal, NotificationFactionWarDeclared, NotificationFleet, NotificationGiftReceived, NotificationMarketUpdate, NotificationMiningYield, NotificationObservationUpdate, NotificationOk, NotificationPersonnelUpdate, NotificationPilotlessShip, NotificationPirateDestroyed, NotificationPirateRadio, NotificationPlayerDied, NotificationPlayerKill, NotificationPrizeUpdate, NotificationRanchPoached, NotificationReconnected, NotificationRefueledBy, NotificationRepairedBy, NotificationScanDetected, NotificationServerRestartWarning, NotificationShipCaptured, NotificationShipCommissionComplete, NotificationSkillLevelUp, NotificationStationRepaired, NotificationTradeCancelled, NotificationTradeComplete, NotificationTradeDeclined, NotificationTradeOfferReceived } from './openapi/types.gen.js';
|
|
2
2
|
/** msg_type values that have a published payload schema. */
|
|
3
|
-
export type TypedNotificationType = "achievement_unlocked" | "action_error" | "action_result" | "arena_challenge" | "arena_objective" | "base_destroyed" | "base_raid_update" | "battle_alert" | "battle_damage" | "battle_ended" | "battle_joined" | "battle_left" | "battle_started" | "battle_update" | "chat_message" | "cloak" | "complete_mission" | "crafting_update" | "drone_adrift" | "drone_destroyed" | "drone_scan" | "drone_survey" | "drone_update" | "error" | "facility_reclaimed" | "facility_rent_warning" | "faction_alliance_broken" | "faction_alliance_formed" | "faction_alliance_proposal" | "faction_peace_accepted" | "faction_peace_proposal" | "faction_war_declared" | "fleet" | "gift_received" | "market_update" | "mining_yield" | "observation_update" | "ok" | "personnel_update" | "pilotless_ship" | "pirate_destroyed" | "pirate_radio" | "player_died" | "player_kill" | "prize_update" | "ranch_poached" | "reconnected" | "refueled_by" | "repaired_by" | "scan_detected" | "server_restart_warning" | "ship_captured" | "ship_commission_complete" | "skill_level_up" | "station_repaired" | "trade_cancelled" | "trade_complete" | "trade_declined" | "trade_offer_received";
|
|
3
|
+
export type TypedNotificationType = "achievement_unlocked" | "action_error" | "action_result" | "arena_challenge" | "arena_objective" | "base_destroyed" | "base_raid_update" | "battle_alert" | "battle_damage" | "battle_ended" | "battle_joined" | "battle_left" | "battle_started" | "battle_update" | "chat_message" | "cloak" | "complete_mission" | "crafting_update" | "drone_adrift" | "drone_destroyed" | "drone_scan" | "drone_survey" | "drone_update" | "error" | "exchange_fill" | "facility_reclaimed" | "facility_rent_warning" | "faction_alliance_broken" | "faction_alliance_formed" | "faction_alliance_proposal" | "faction_mobile_base_update" | "faction_peace_accepted" | "faction_peace_proposal" | "faction_war_declared" | "fleet" | "gift_received" | "market_update" | "mining_yield" | "observation_update" | "ok" | "personnel_update" | "pilotless_ship" | "pirate_destroyed" | "pirate_radio" | "player_died" | "player_kill" | "prize_update" | "ranch_poached" | "reconnected" | "refueled_by" | "repaired_by" | "scan_detected" | "server_restart_warning" | "ship_captured" | "ship_commission_complete" | "skill_level_up" | "station_repaired" | "trade_cancelled" | "trade_complete" | "trade_declined" | "trade_offer_received";
|
|
4
4
|
/** Maps a typed push msg_type to its payload type. */
|
|
5
5
|
export interface NotificationPayloads {
|
|
6
6
|
"achievement_unlocked": NotificationAchievementUnlocked;
|
|
@@ -27,11 +27,13 @@ export interface NotificationPayloads {
|
|
|
27
27
|
"drone_survey": NotificationDroneSurvey;
|
|
28
28
|
"drone_update": NotificationDroneUpdate;
|
|
29
29
|
"error": NotificationError;
|
|
30
|
+
"exchange_fill": NotificationExchangeFill;
|
|
30
31
|
"facility_reclaimed": NotificationFacilityReclaimed;
|
|
31
32
|
"facility_rent_warning": NotificationFacilityRentWarning;
|
|
32
33
|
"faction_alliance_broken": NotificationFactionAllianceBroken;
|
|
33
34
|
"faction_alliance_formed": NotificationFactionAllianceFormed;
|
|
34
35
|
"faction_alliance_proposal": NotificationFactionAllianceProposal;
|
|
36
|
+
"faction_mobile_base_update": NotificationFactionMobileBaseUpdate;
|
|
35
37
|
"faction_peace_accepted": NotificationFactionPeaceAccepted;
|
|
36
38
|
"faction_peace_proposal": NotificationFactionPeaceProposal;
|
|
37
39
|
"faction_war_declared": NotificationFactionWarDeclared;
|
|
@@ -64,4 +66,4 @@ export interface NotificationPayloads {
|
|
|
64
66
|
"trade_offer_received": NotificationTradeOfferReceived;
|
|
65
67
|
}
|
|
66
68
|
/** Names of every push msg_type with a published schema, for runtime checks. */
|
|
67
|
-
export declare const TYPED_NOTIFICATION_TYPES: readonly ["achievement_unlocked", "action_error", "action_result", "arena_challenge", "arena_objective", "base_destroyed", "base_raid_update", "battle_alert", "battle_damage", "battle_ended", "battle_joined", "battle_left", "battle_started", "battle_update", "chat_message", "cloak", "complete_mission", "crafting_update", "drone_adrift", "drone_destroyed", "drone_scan", "drone_survey", "drone_update", "error", "facility_reclaimed", "facility_rent_warning", "faction_alliance_broken", "faction_alliance_formed", "faction_alliance_proposal", "faction_peace_accepted", "faction_peace_proposal", "faction_war_declared", "fleet", "gift_received", "market_update", "mining_yield", "observation_update", "ok", "personnel_update", "pilotless_ship", "pirate_destroyed", "pirate_radio", "player_died", "player_kill", "prize_update", "ranch_poached", "reconnected", "refueled_by", "repaired_by", "scan_detected", "server_restart_warning", "ship_captured", "ship_commission_complete", "skill_level_up", "station_repaired", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
|
|
69
|
+
export declare const TYPED_NOTIFICATION_TYPES: readonly ["achievement_unlocked", "action_error", "action_result", "arena_challenge", "arena_objective", "base_destroyed", "base_raid_update", "battle_alert", "battle_damage", "battle_ended", "battle_joined", "battle_left", "battle_started", "battle_update", "chat_message", "cloak", "complete_mission", "crafting_update", "drone_adrift", "drone_destroyed", "drone_scan", "drone_survey", "drone_update", "error", "exchange_fill", "facility_reclaimed", "facility_rent_warning", "faction_alliance_broken", "faction_alliance_formed", "faction_alliance_proposal", "faction_mobile_base_update", "faction_peace_accepted", "faction_peace_proposal", "faction_war_declared", "fleet", "gift_received", "market_update", "mining_yield", "observation_update", "ok", "personnel_update", "pilotless_ship", "pirate_destroyed", "pirate_radio", "player_died", "player_kill", "prize_update", "ranch_poached", "reconnected", "refueled_by", "repaired_by", "scan_detected", "server_restart_warning", "ship_captured", "ship_commission_complete", "skill_level_up", "station_repaired", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
|