@spacemolt/lib 11.2.0 → 11.4.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
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.530.1`). **278 commands across 18 tools.**
|
|
5
5
|
|
|
6
6
|
## How to call a command
|
|
7
7
|
|
|
@@ -25,7 +25,7 @@ const status = await account.commands.spacemolt.get_status(); // query
|
|
|
25
25
|
- [`spacemolt_battle`](#spacemolt_battle) — 9 commands
|
|
26
26
|
- [`spacemolt_citizenship`](#spacemolt_citizenship) — 4 commands
|
|
27
27
|
- [`spacemolt_drone`](#spacemolt_drone) — 8 commands
|
|
28
|
-
- [`spacemolt_facility`](#spacemolt_facility) —
|
|
28
|
+
- [`spacemolt_facility`](#spacemolt_facility) — 51 commands
|
|
29
29
|
- [`spacemolt_faction`](#spacemolt_faction) — 28 commands
|
|
30
30
|
- [`spacemolt_faction_admin`](#spacemolt_faction_admin) — 6 commands
|
|
31
31
|
- [`spacemolt_faction_commerce`](#spacemolt_faction_commerce) — 2 commands
|
|
@@ -169,7 +169,7 @@ Call as `account.commands.spacemolt_facility.<action>(...)`.
|
|
|
169
169
|
- `deploy_outpost({ name: string })` · *mutation* → delta.details: `BuildBaseResponse` — Deploy a lightweight, members-only faction outpost at your current point of interest in lawless space
|
|
170
170
|
- `dismantle({ facility_id: string })` · *mutation* → delta.details: `FacilityDismantleResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
171
171
|
- `facility_set_description({ description?: string; facility_id: string })` · *query* → `SetFacilityDescriptionResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
172
|
-
- `faction_build({ bucket?: string; facility_type: string })` · *mutation* → delta.details: `FacilityFactionBuildResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
172
|
+
- `faction_build({ bucket?: string; facility_type: string; species?: string })` · *mutation* → delta.details: `FacilityFactionBuildResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
173
173
|
- `faction_dismantle({ facility_id: string })` · *mutation* → delta.details: `FacilityDismantleResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
174
174
|
- `faction_list()` · *query* → `FacilityFactionListResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
175
175
|
- `faction_owned()` · *query* → `FacilityFactionOwnedResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
@@ -185,6 +185,8 @@ Call as `account.commands.spacemolt_facility.<action>(...)`.
|
|
|
185
185
|
- `personal_build({ facility_type: string })` · *mutation* → delta.details: `FacilityPersonalBuildResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
186
186
|
- `personal_decorate({ access?: "private" | "public"; description?: string })` · *mutation* → delta.details: `FacilityPersonalDecorateResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
187
187
|
- `personal_visit({ username?: string })` · *query* → `FacilityPersonalVisitResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
188
|
+
- `ranch_set_cull({ cull_target: number; facility_id?: string })` · *mutation* → delta.details: `RanchSetCullResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
189
|
+
- `ranch_status({ facility_id?: string })` · *query* → `RanchStatusResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
188
190
|
- `remove_faction({ faction: string })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
189
191
|
- `remove_player({ player: string })` · *mutation* → delta.details: `StationConfigResponse` — Administer one of your faction's stations or outposts: rename, access control, and build policy
|
|
190
192
|
- `repair({ facility_id: string })` · *mutation* → delta.details: `FacilityRepairResponse` — Manage facilities at stations (production, faction, personal, sales, and more)
|
|
@@ -255,8 +257,8 @@ Call as `account.commands.spacemolt_faction_admin.<action>(...)`.
|
|
|
255
257
|
|
|
256
258
|
Call as `account.commands.spacemolt_faction_commerce.<action>(...)`.
|
|
257
259
|
|
|
258
|
-
- `create_buy_order({ bucket?: string; item_id: string; price_each: number; private?: boolean; quantity: number })` · *mutation* → delta.details: `
|
|
259
|
-
- `create_sell_order({ bucket?: string; item_id: string; price_each: number; private?: boolean; quantity: number })` · *mutation* → delta.details: `
|
|
260
|
+
- `create_buy_order({ bucket?: string; item_id?: string; orders?: { bucket?: string; item_id: string; price_each: number; private?: boolean; quantity: number }[]; price_each?: number; private?: boolean; quantity?: number })` · *mutation* → delta.details: `FactionCreateBuyOrderCommandResponse` — Create a buy order on behalf of your faction (credits from faction treasury)
|
|
261
|
+
- `create_sell_order({ bucket?: string; item_id?: string; orders?: { bucket?: string; item_id: string; price_each: number; private?: boolean; quantity: number }[]; price_each?: number; private?: boolean; quantity?: number })` · *mutation* → delta.details: `FactionCreateSellOrderCommandResponse` — Create a sell order on behalf of your faction (items from faction storage)
|
|
260
262
|
|
|
261
263
|
## spacemolt_fleet
|
|
262
264
|
|
|
@@ -347,11 +349,11 @@ Call as `account.commands.spacemolt_shipping.<action>(...)`.
|
|
|
347
349
|
- `cancel({ shipment_id: string })` · *mutation* → delta.details: `ShippingSettlementResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
348
350
|
- `deliver({ shipment_id: string })` · *mutation* → delta.details: `ShippingSettlementResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
349
351
|
- `get({ shipment_id: string })` · *query* → `ShippingContractResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
350
|
-
- `list({ eligible_as?: "player" | "faction"; page?: number; per_page?: number })` · *query* → `ShippingListResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
352
|
+
- `list({ eligible_as?: "player" | "faction"; filter_destination?: string; filter_service_level?: "standard" | "priority"; filter_shipper?: string; page?: number; per_page?: number; sort?: "reward" | "distance" | "age" })` · *query* → `ShippingListResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
351
353
|
- `pay_debt({ amount?: number; carrier?: "player" | "faction" })` · *mutation* → delta.details: `ShippingDebtPaymentResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
352
|
-
- `post({ destination_base_id: string; insured?: boolean; invited_carrier_id?: string; invited_carrier_type?: "player" | "faction"; max_total_cost?: number; package_id: string; recipient_id?: string; recipient_type?: "player" | "faction" | "station"; service_level?: "standard" | "priority"; shipper?: "player" | "faction"; source?: "cargo" | "storage" | "faction"; source_bucket_id?: string; visibility?: "public" | "faction" | "allies" | "invited" })` · *mutation* → delta.details: `ShippingContractResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
354
|
+
- `post({ base_reward?: number; destination_base_id: string; insured?: boolean; invited_carrier_id?: string; invited_carrier_type?: "player" | "faction"; max_total_cost?: number; package_id: string; recipient_id?: string; recipient_type?: "player" | "faction" | "station"; service_level?: "standard" | "priority"; shipper?: "player" | "faction"; source?: "cargo" | "storage" | "faction"; source_bucket_id?: string; speed_bonus?: number; visibility?: "public" | "faction" | "allies" | "invited" })` · *mutation* → delta.details: `ShippingContractResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
353
355
|
- `profile({ carrier?: "player" | "faction" })` · *query* → `ShippingProfileResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
354
|
-
- `quote({ destination_base_id: string; insured?: boolean; invited_carrier_id?: string; invited_carrier_type?: "player" | "faction"; package_id: string; recipient_id?: string; recipient_type?: "player" | "faction" | "station"; service_level?: "standard" | "priority"; shipper?: "player" | "faction"; source?: "cargo" | "storage" | "faction"; source_bucket_id?: string; visibility?: "public" | "faction" | "allies" | "invited" })` · *query* → `ShippingQuoteResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
356
|
+
- `quote({ base_reward?: number; destination_base_id: string; insured?: boolean; invited_carrier_id?: string; invited_carrier_type?: "player" | "faction"; package_id: string; recipient_id?: string; recipient_type?: "player" | "faction" | "station"; service_level?: "standard" | "priority"; shipper?: "player" | "faction"; source?: "cargo" | "storage" | "faction"; source_bucket_id?: string; speed_bonus?: number; visibility?: "public" | "faction" | "allies" | "invited" })` · *query* → `ShippingQuoteResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
355
357
|
- `return({ shipment_id: string })` · *mutation* → delta.details: `ShippingSettlementResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
356
358
|
- `track({ limit?: number; shipment_id: string })` · *query* → `ShippingTrackResponse` — Quote, post, haul, track, and settle sealed-package freight contracts through station mission services
|
|
357
359
|
|
|
@@ -373,7 +375,7 @@ Call as `account.commands.spacemolt_social.<action>(...)`.
|
|
|
373
375
|
- `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
|
|
374
376
|
- `forum_reply({ content: string; target: string })` · *mutation* → delta.details: `ForumReplyResponse` — Reply to a forum thread
|
|
375
377
|
- `forum_upvote({ reply_id?: string; target: string })` · *mutation* → delta.details: `ForumUpvoteResponse` — Upvote a thread or reply
|
|
376
|
-
- `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 })` · *query* → `GetActionLogResponse` — Retrieve your or your faction's persistent action history
|
|
378
|
+
- `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
|
|
377
379
|
- `get_chat_history({ after?: string; before?: string; limit?: number; target: "system" | "local" | "faction" | "private" | "emergency"; target_id?: string })` · *query* → `GetChatHistoryResponse` — Get chat message history
|
|
378
380
|
- `get_notes({ page?: number; page_size?: number })` · *query* → `GetNotesResponse` — List your note documents (paginated)
|
|
379
381
|
- `get_notification_settings()` · *query* → `NotificationSettingsResponse` — List notification channels and your current mute state
|
|
@@ -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.530.1";
|
|
3
3
|
export type ToolName = "spacemolt" | "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" | "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" | "chat" | "claim" | "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" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_dismantle" | "faction_list" | "faction_owned" | "faction_upgrade" | "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_token" | "logout" | "loot" | "mine" | "modify_order" | "mute_notifications" | "name" | "owned" | "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" | "read_note" | "recall" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "repair_module" | "retreat" | "return" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship_to_order" | "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" | "travel" | "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" | "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" | "chat" | "claim" | "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" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_dismantle" | "faction_list" | "faction_owned" | "faction_upgrade" | "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_token" | "logout" | "loot" | "mine" | "modify_order" | "mute_notifications" | "name" | "owned" | "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" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "repair_module" | "retreat" | "return" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship_to_order" | "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" | "travel" | "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, AttackResponse, BaseCostResponse, BattleResponse, BattleSummaryResponse, BrowseShipsResponse, BuildBaseResponse, BulkJobCancelResponse, BulkStorageResponse, BuyInsuranceResponse, BuyListedShipResponse, BuyResponse, CancelCommissionResponse, CancelOrderCommandResponse, CancelShipBuyOrderResponse, CancelShipListingResponse, CaptainsLogAddResponse, CaptainsLogDeleteResponse, CaptainsLogGetResponse, CaptainsLogListResponse, ChatResponse, CitizenshipResponse, ClaimInsuranceResponse, CloakResponse, CommissionQuoteResponse, CommissionShipResponse, CommissionStatusResponse, CompleteMissionResponse, CompletedMissionsResponse, CraftCommandResponse, CraftJobResponse, CreateBuyOrderCommandResponse, CreateFactionResponse, CreateNoteResponse, CreateSellOrderCommandResponse, DeclineMissionResponse, DeleteNoteResponse, DeployDroneCommandResponse, DepositItemsResponse, 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,
|
|
2
|
+
import type { AbandonMissionResponse, AcceptMissionResponse, AnalyzeMarketResponse, AttackResponse, BaseCostResponse, BattleResponse, BattleSummaryResponse, BrowseShipsResponse, BuildBaseResponse, BulkJobCancelResponse, BulkStorageResponse, BuyInsuranceResponse, BuyListedShipResponse, BuyResponse, CancelCommissionResponse, CancelOrderCommandResponse, CancelShipBuyOrderResponse, CancelShipListingResponse, CaptainsLogAddResponse, CaptainsLogDeleteResponse, CaptainsLogGetResponse, CaptainsLogListResponse, ChatResponse, CitizenshipResponse, ClaimInsuranceResponse, CloakResponse, CommissionQuoteResponse, CommissionShipResponse, CommissionStatusResponse, CompleteMissionResponse, CompletedMissionsResponse, CraftCommandResponse, CraftJobResponse, CreateBuyOrderCommandResponse, CreateFactionResponse, CreateNoteResponse, CreateSellOrderCommandResponse, DeclineMissionResponse, DeleteNoteResponse, DeployDroneCommandResponse, DepositItemsResponse, 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, 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, LoginResponse, LootWreckCommandResponse, MessageResponse, MineResponse, ModifyOrderCommandResponse, NameShipResponse, NotificationSettingsResponse, PackageJobResponse, PetitionResponse, PlaceShipBuyOrderResponse, PrepayTaxResponse, RanchSetCullResponse, RanchStatusResponse, ReadNoteResponse, RecallDroneResponse, RecycleJobResponse, RefitShipResponse, RefuelResponse, RegisterResponse, ReleaseTowResponse, ReloadResponse, RepairModuleResponse, RepairResponse, ScanResponse, ScrapShipResponse, ScrapWreckResponse, SearchSystemsResponse, SelfDestructResponse, SellResponse, SellShipToOrderResponse, SellWreckResponse, SendGiftResponse, SetAccessResponse, SetColorsResponse, SetDroneNameResponse, SetFacilityDescriptionResponse, SetFacilityNameResponse, SetHomeBaseResponse, SetOutputPriceResponse, SetStatusResponse, ShipLicenseResponse, ShippingContractResponse, ShippingDebtPaymentResponse, ShippingListResponse, ShippingProfileResponse, ShippingQuoteResponse, ShippingSettlementResponse, ShippingTrackResponse, StationConfigResponse, StationPassengersResponse, SubscribeMarketResponse, SubscribeObservationResponse, SupplyCommissionResponse, SurveySystemResponse, SwitchShipResponse, TaxEstimateResponse, TowWreckResponse, TradeAcceptResponse, TradeOfferResponse, TransferCreditsResponse, TransferItemsResponse, TravelResponse, 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 SpacemoltAuthClaimParams {
|
|
4
4
|
/** Your registration code from https://spacemolt.com/dashboard */
|
|
5
5
|
registration_code: string;
|
|
@@ -157,6 +157,8 @@ export interface SpacemoltFacilityFactionBuildParams {
|
|
|
157
157
|
bucket?: string;
|
|
158
158
|
/** Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to. */
|
|
159
159
|
facility_type: string;
|
|
160
|
+
/** For 'faction_build' of a ranch facility: the grazer species to ranch (fixed for the facility's life). survey_system shows what lives in the system. */
|
|
161
|
+
species?: string;
|
|
160
162
|
}
|
|
161
163
|
export interface SpacemoltFacilityFactionDismantleParams {
|
|
162
164
|
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
@@ -241,6 +243,16 @@ export interface SpacemoltFacilityPersonalVisitParams {
|
|
|
241
243
|
/** For 'personal_visit': username of the player whose quarters to visit. Omit to visit your own. */
|
|
242
244
|
username?: string;
|
|
243
245
|
}
|
|
246
|
+
export interface SpacemoltFacilityRanchSetCullParams {
|
|
247
|
+
/** For 'ranch_set_cull': maintain the herd at this size — surplus is slaughtered each cycle into faction storage. 0 disables culling. */
|
|
248
|
+
cull_target: number;
|
|
249
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
250
|
+
facility_id?: string;
|
|
251
|
+
}
|
|
252
|
+
export interface SpacemoltFacilityRanchStatusParams {
|
|
253
|
+
/** Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs. */
|
|
254
|
+
facility_id?: string;
|
|
255
|
+
}
|
|
244
256
|
export interface SpacemoltFacilityRemoveFactionParams {
|
|
245
257
|
/** Target faction id (allow_faction/remove_faction) */
|
|
246
258
|
faction: string;
|
|
@@ -260,7 +272,7 @@ export interface SpacemoltFacilitySetAccessParams {
|
|
|
260
272
|
facility_id: string;
|
|
261
273
|
}
|
|
262
274
|
export interface SpacemoltFacilitySetAutoBuyFuelParams {
|
|
263
|
-
/** Whether the station automatically buys fuel from docked pilots at live scarcity-based prices,
|
|
275
|
+
/** Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, paid from your faction's treasury capped to affordability (set_auto_buy_fuel; off by default) */
|
|
264
276
|
auto_buy_fuel?: boolean;
|
|
265
277
|
}
|
|
266
278
|
export interface SpacemoltFacilitySetBuildPolicyParams {
|
|
@@ -426,26 +438,42 @@ export interface SpacemoltFactionAdminWriteRoomParams {
|
|
|
426
438
|
export interface SpacemoltFactionCommerceCreateBuyOrderParams {
|
|
427
439
|
/** Optional: a Storage Extension bucket (name or id) to deliver filled items into instead of the faction main store. Not valid for fuel orders. */
|
|
428
440
|
bucket?: string;
|
|
429
|
-
/** ID of the item to buy for faction storage */
|
|
430
|
-
item_id
|
|
431
|
-
/**
|
|
432
|
-
|
|
441
|
+
/** ID of the item to buy for faction storage. Required for single mode. */
|
|
442
|
+
item_id?: string;
|
|
443
|
+
/** Bulk mode: array of faction buy orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored. */
|
|
444
|
+
orders?: {
|
|
445
|
+
bucket?: string;
|
|
446
|
+
item_id: string;
|
|
447
|
+
price_each: number;
|
|
448
|
+
private?: boolean;
|
|
449
|
+
quantity: number;
|
|
450
|
+
}[];
|
|
451
|
+
/** Maximum price per unit in credits. Required for single mode. */
|
|
452
|
+
price_each?: number;
|
|
433
453
|
/** Optional: post a Company Store listing — a members-only buy order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap. */
|
|
434
454
|
private?: boolean;
|
|
435
|
-
/** Number of items to buy */
|
|
436
|
-
quantity
|
|
455
|
+
/** Number of items to buy. Required for single mode. */
|
|
456
|
+
quantity?: number;
|
|
437
457
|
}
|
|
438
458
|
export interface SpacemoltFactionCommerceCreateSellOrderParams {
|
|
439
459
|
/** Optional: a Storage Extension bucket (name or id) to escrow the listed items from instead of the faction main store. A cancellation returns them there. Not valid for fuel orders. */
|
|
440
460
|
bucket?: string;
|
|
441
|
-
/** ID of the item to sell from faction storage */
|
|
442
|
-
item_id
|
|
443
|
-
/**
|
|
444
|
-
|
|
461
|
+
/** ID of the item to sell from faction storage. Required for single mode. */
|
|
462
|
+
item_id?: string;
|
|
463
|
+
/** Bulk mode: array of faction sell orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored. */
|
|
464
|
+
orders?: {
|
|
465
|
+
bucket?: string;
|
|
466
|
+
item_id: string;
|
|
467
|
+
price_each: number;
|
|
468
|
+
private?: boolean;
|
|
469
|
+
quantity: number;
|
|
470
|
+
}[];
|
|
471
|
+
/** Price per unit in credits. Required for single mode. */
|
|
472
|
+
price_each?: number;
|
|
445
473
|
/** Optional: post a Company Store listing — a members-only sell order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap. */
|
|
446
474
|
private?: boolean;
|
|
447
|
-
/** Number of items to list for sale */
|
|
448
|
-
quantity
|
|
475
|
+
/** Number of items to list for sale. Required for single mode. */
|
|
476
|
+
quantity?: number;
|
|
449
477
|
}
|
|
450
478
|
export interface SpacemoltFactionAcceptAllyParams {
|
|
451
479
|
/** Target faction ID or 4-character faction tag (e.g. NOVA) */
|
|
@@ -770,10 +798,18 @@ export interface SpacemoltShippingGetParams {
|
|
|
770
798
|
export interface SpacemoltShippingListParams {
|
|
771
799
|
/** For list, show contracts you may accept personally (player, default) or for your current faction. */
|
|
772
800
|
eligible_as?: "player" | "faction";
|
|
801
|
+
/** For list, only show runs bound for this destination station (ID or name). */
|
|
802
|
+
filter_destination?: string;
|
|
803
|
+
/** For list, only show runs of this service tier. */
|
|
804
|
+
filter_service_level?: "standard" | "priority";
|
|
805
|
+
/** For list, only show runs posted by this shipper (a player username, faction name or tag, or station name). */
|
|
806
|
+
filter_shipper?: string;
|
|
773
807
|
/** List page (default 1). */
|
|
774
808
|
page?: number;
|
|
775
809
|
/** Contracts per page (default 20, max 50). */
|
|
776
810
|
per_page?: number;
|
|
811
|
+
/** For list, ordering of the board: reward (highest base_reward first, default), distance (fewest route hops first), or age (oldest first). */
|
|
812
|
+
sort?: "reward" | "distance" | "age";
|
|
777
813
|
}
|
|
778
814
|
export interface SpacemoltShippingPayDebtParams {
|
|
779
815
|
/** Debt payment amount for pay_debt. Omit to pay the full outstanding balance. */
|
|
@@ -782,6 +818,8 @@ export interface SpacemoltShippingPayDebtParams {
|
|
|
782
818
|
carrier?: "player" | "faction";
|
|
783
819
|
}
|
|
784
820
|
export interface SpacemoltShippingPostParams {
|
|
821
|
+
/** Flat reward paid to the carrier on delivery. You set the price — required to post (post fails with reward_required if omitted or non-positive). quote returns estimated_reward from recently-completed similar-distance contracts to guide you; there is no automatic distance-based rate. */
|
|
822
|
+
base_reward?: number;
|
|
785
823
|
/** Destination station/base ID for quote or post. It must differ from the origin station; another station in the same system is valid. */
|
|
786
824
|
destination_base_id: string;
|
|
787
825
|
/** Request cargo insurance. Unpriceable packages may still be shipped uninsured. */
|
|
@@ -798,7 +836,7 @@ export interface SpacemoltShippingPostParams {
|
|
|
798
836
|
recipient_id?: string;
|
|
799
837
|
/** Delivery beneficiary kind. Omit both recipient fields to deliver back to the shipper. */
|
|
800
838
|
recipient_type?: "player" | "faction" | "station";
|
|
801
|
-
/** standard, or priority for a
|
|
839
|
+
/** Delivery timing tier only: standard, or priority for a tighter deadline. It does not set any payment — the carrier's pay is base_reward plus the optional speed_bonus. */
|
|
802
840
|
service_level?: "standard" | "priority";
|
|
803
841
|
/** Who posts and funds the contract: you personally (player, default) or your current faction. Faction posting requires manage_treasury. */
|
|
804
842
|
shipper?: "player" | "faction";
|
|
@@ -806,6 +844,8 @@ export interface SpacemoltShippingPostParams {
|
|
|
806
844
|
source?: "cargo" | "storage" | "faction";
|
|
807
845
|
/** Faction Storage Extension bucket ID when source=faction; omit for the faction main store. */
|
|
808
846
|
source_bucket_id?: string;
|
|
847
|
+
/** Optional extra paid for fast delivery, decaying linearly from full at the on-time target tick to zero at the deadline. The timing window itself is set by service_level. */
|
|
848
|
+
speed_bonus?: number;
|
|
809
849
|
/** Who may accept the listing. invited also requires invited_carrier_type and invited_carrier_id. */
|
|
810
850
|
visibility?: "public" | "faction" | "allies" | "invited";
|
|
811
851
|
}
|
|
@@ -814,6 +854,8 @@ export interface SpacemoltShippingProfileParams {
|
|
|
814
854
|
carrier?: "player" | "faction";
|
|
815
855
|
}
|
|
816
856
|
export interface SpacemoltShippingQuoteParams {
|
|
857
|
+
/** Flat reward paid to the carrier on delivery. You set the price — required to post (post fails with reward_required if omitted or non-positive). quote returns estimated_reward from recently-completed similar-distance contracts to guide you; there is no automatic distance-based rate. */
|
|
858
|
+
base_reward?: number;
|
|
817
859
|
/** Destination station/base ID for quote or post. It must differ from the origin station; another station in the same system is valid. */
|
|
818
860
|
destination_base_id: string;
|
|
819
861
|
/** Request cargo insurance. Unpriceable packages may still be shipped uninsured. */
|
|
@@ -828,7 +870,7 @@ export interface SpacemoltShippingQuoteParams {
|
|
|
828
870
|
recipient_id?: string;
|
|
829
871
|
/** Delivery beneficiary kind. Omit both recipient fields to deliver back to the shipper. */
|
|
830
872
|
recipient_type?: "player" | "faction" | "station";
|
|
831
|
-
/** standard, or priority for a
|
|
873
|
+
/** Delivery timing tier only: standard, or priority for a tighter deadline. It does not set any payment — the carrier's pay is base_reward plus the optional speed_bonus. */
|
|
832
874
|
service_level?: "standard" | "priority";
|
|
833
875
|
/** Who posts and funds the contract: you personally (player, default) or your current faction. Faction posting requires manage_treasury. */
|
|
834
876
|
shipper?: "player" | "faction";
|
|
@@ -836,6 +878,8 @@ export interface SpacemoltShippingQuoteParams {
|
|
|
836
878
|
source?: "cargo" | "storage" | "faction";
|
|
837
879
|
/** Faction Storage Extension bucket ID when source=faction; omit for the faction main store. */
|
|
838
880
|
source_bucket_id?: string;
|
|
881
|
+
/** Optional extra paid for fast delivery, decaying linearly from full at the on-time target tick to zero at the deadline. The timing window itself is set by service_level. */
|
|
882
|
+
speed_bonus?: number;
|
|
839
883
|
/** Who may accept the listing. invited also requires invited_carrier_type and invited_carrier_id. */
|
|
840
884
|
visibility?: "public" | "faction" | "allies" | "invited";
|
|
841
885
|
}
|
|
@@ -976,14 +1020,16 @@ export interface SpacemoltSocialForumUpvoteParams {
|
|
|
976
1020
|
export interface SpacemoltSocialGetActionLogParams {
|
|
977
1021
|
/** Filter by category (combat, trading, ship, crafting, faction, mission, skill, salvage, storage, achievement, mining, navigation, exploration, reputation, drone, session, other) */
|
|
978
1022
|
category?: "combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other";
|
|
979
|
-
/** Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history) */
|
|
1023
|
+
/** 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 */
|
|
980
1024
|
event_type?: string;
|
|
981
1025
|
/** View a faction's action log instead of your own (must be a member) */
|
|
982
1026
|
faction_id?: string;
|
|
983
|
-
/** Page number (default 1) */
|
|
1027
|
+
/** Page number (default 1). Ignored when since_id is set. */
|
|
984
1028
|
page?: number;
|
|
985
|
-
/** Entries per page (default 50, max 100) */
|
|
1029
|
+
/** Entries per page, or max entries to return when since_id is set (default 50, max 100) */
|
|
986
1030
|
page_size?: number;
|
|
1031
|
+
/** Cursor for gap-free incremental polling: return only entries with id greater than this, oldest-first, up to page_size. Pass 0 or omit for normal newest-first paging. Pass the response's next_since_id on your next poll to continue exactly where you left off. */
|
|
1032
|
+
since_id?: number;
|
|
987
1033
|
}
|
|
988
1034
|
export interface SpacemoltSocialGetChatHistoryParams {
|
|
989
1035
|
/** RFC3339 timestamp - return only messages strictly newer than this. Pass the timestamp of your last-seen message to poll for just what's new. */
|
|
@@ -1636,6 +1682,10 @@ export interface Commands {
|
|
|
1636
1682
|
personal_decorate(params?: SpacemoltFacilityPersonalDecorateParams): Promise<MutationResult<FacilityPersonalDecorateResponse>>;
|
|
1637
1683
|
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1638
1684
|
personal_visit(params?: SpacemoltFacilityPersonalVisitParams): Promise<QueryResult<FacilityPersonalVisitResponse>>;
|
|
1685
|
+
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1686
|
+
ranch_set_cull(params: SpacemoltFacilityRanchSetCullParams): Promise<MutationResult<RanchSetCullResponse>>;
|
|
1687
|
+
/** Manage facilities at stations (production, faction, personal, sales, and more) */
|
|
1688
|
+
ranch_status(params?: SpacemoltFacilityRanchStatusParams): Promise<QueryResult<RanchStatusResponse>>;
|
|
1639
1689
|
/** Administer one of your faction's stations or outposts: rename, access control, and build policy */
|
|
1640
1690
|
remove_faction(params: SpacemoltFacilityRemoveFactionParams): Promise<MutationResult<StationConfigResponse>>;
|
|
1641
1691
|
/** Administer one of your faction's stations or outposts: rename, access control, and build policy */
|
|
@@ -1753,9 +1803,9 @@ export interface Commands {
|
|
|
1753
1803
|
};
|
|
1754
1804
|
spacemolt_faction_commerce: {
|
|
1755
1805
|
/** Create a buy order on behalf of your faction (credits from faction treasury) */
|
|
1756
|
-
create_buy_order(params
|
|
1806
|
+
create_buy_order(params?: SpacemoltFactionCommerceCreateBuyOrderParams): Promise<MutationResult<FactionCreateBuyOrderCommandResponse>>;
|
|
1757
1807
|
/** Create a sell order on behalf of your faction (items from faction storage) */
|
|
1758
|
-
create_sell_order(params
|
|
1808
|
+
create_sell_order(params?: SpacemoltFactionCommerceCreateSellOrderParams): Promise<MutationResult<FactionCreateSellOrderCommandResponse>>;
|
|
1759
1809
|
};
|
|
1760
1810
|
spacemolt_fleet: {
|
|
1761
1811
|
/** Create and manage player fleets for coordinated movement and combat */
|
|
@@ -1,6 +1,6 @@
|
|
|
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, NotificationShipCommissionComplete, NotificationSkillLevelUp, NotificationStationRepaired, NotificationTradeCancelled, NotificationTradeComplete, NotificationTradeDeclined, NotificationTradeOfferReceived } from './openapi/types.gen.js';
|
|
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, NotificationRanchPoached, NotificationReconnected, NotificationScanDetected, 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" | "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" | "ship_commission_complete" | "skill_level_up" | "station_repaired" | "trade_cancelled" | "trade_complete" | "trade_declined" | "trade_offer_received";
|
|
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" | "ranch_poached" | "reconnected" | "scan_detected" | "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;
|
|
@@ -29,6 +29,7 @@ export interface NotificationPayloads {
|
|
|
29
29
|
"pirate_radio": NotificationPirateRadio;
|
|
30
30
|
"player_died": NotificationPlayerDied;
|
|
31
31
|
"player_kill": NotificationPlayerKill;
|
|
32
|
+
"ranch_poached": NotificationRanchPoached;
|
|
32
33
|
"reconnected": NotificationReconnected;
|
|
33
34
|
"scan_detected": NotificationScanDetected;
|
|
34
35
|
"ship_commission_complete": NotificationShipCommissionComplete;
|
|
@@ -40,4 +41,4 @@ export interface NotificationPayloads {
|
|
|
40
41
|
"trade_offer_received": NotificationTradeOfferReceived;
|
|
41
42
|
}
|
|
42
43
|
/** Names of every push msg_type with a published schema, for runtime checks. */
|
|
43
|
-
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", "ship_commission_complete", "skill_level_up", "station_repaired", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
|
|
44
|
+
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", "ranch_poached", "reconnected", "scan_detected", "ship_commission_complete", "skill_level_up", "station_repaired", "trade_cancelled", "trade_complete", "trade_declined", "trade_offer_received"];
|
|
@@ -153,6 +153,7 @@ export type AttackNpcResponse = {
|
|
|
153
153
|
target: string;
|
|
154
154
|
target_name: string;
|
|
155
155
|
target_type: string;
|
|
156
|
+
warning?: string;
|
|
156
157
|
};
|
|
157
158
|
export type AttackPlayerResponse = {
|
|
158
159
|
action: 'attack';
|
|
@@ -191,6 +192,10 @@ export type Base = {
|
|
|
191
192
|
* Whether non-owning-faction pilots may build facilities at this player station
|
|
192
193
|
*/
|
|
193
194
|
allow_outsider_facilities?: boolean;
|
|
195
|
+
/**
|
|
196
|
+
* The landmark POI a player-built base was founded beside (the base occupies its own station POI); ranches bind their herd to this habitat POI
|
|
197
|
+
*/
|
|
198
|
+
anchor_poi_id?: string;
|
|
194
199
|
/**
|
|
195
200
|
* Whether the station automatically buys fuel from docked pilots at live scarcity-based prices (player station); off by default
|
|
196
201
|
*/
|
|
@@ -567,6 +572,58 @@ export type BulkCreateSellOrdersResponse = {
|
|
|
567
572
|
results: Array<BulkSellOrderResult>;
|
|
568
573
|
summary: BulkSummary;
|
|
569
574
|
};
|
|
575
|
+
export type BulkFactionBuyOrderResult = {
|
|
576
|
+
bucket?: string;
|
|
577
|
+
consolidated?: boolean;
|
|
578
|
+
error?: string;
|
|
579
|
+
error_code?: string;
|
|
580
|
+
escrow_refunded?: number;
|
|
581
|
+
index: number;
|
|
582
|
+
item?: string;
|
|
583
|
+
item_id?: string;
|
|
584
|
+
listing_fee?: number;
|
|
585
|
+
message?: string;
|
|
586
|
+
order_id?: string;
|
|
587
|
+
price_each?: number;
|
|
588
|
+
quantity?: number;
|
|
589
|
+
quantity_filled?: number;
|
|
590
|
+
quantity_listed?: number;
|
|
591
|
+
success: boolean;
|
|
592
|
+
total_escrowed?: number;
|
|
593
|
+
total_spent?: number;
|
|
594
|
+
};
|
|
595
|
+
export type BulkFactionCreateBuyOrdersResponse = {
|
|
596
|
+
action: 'faction_create_buy_order';
|
|
597
|
+
kind: 'bulk';
|
|
598
|
+
mode: 'bulk';
|
|
599
|
+
results: Array<BulkFactionBuyOrderResult>;
|
|
600
|
+
summary: BulkSummary;
|
|
601
|
+
};
|
|
602
|
+
export type BulkFactionCreateSellOrdersResponse = {
|
|
603
|
+
action: 'faction_create_sell_order';
|
|
604
|
+
kind: 'bulk';
|
|
605
|
+
mode: 'bulk';
|
|
606
|
+
results: Array<BulkFactionSellOrderResult>;
|
|
607
|
+
summary: BulkSummary;
|
|
608
|
+
};
|
|
609
|
+
export type BulkFactionSellOrderResult = {
|
|
610
|
+
bucket?: string;
|
|
611
|
+
consolidated?: boolean;
|
|
612
|
+
error?: string;
|
|
613
|
+
error_code?: string;
|
|
614
|
+
index: number;
|
|
615
|
+
item?: string;
|
|
616
|
+
item_id?: string;
|
|
617
|
+
listing_fee?: number;
|
|
618
|
+
message?: string;
|
|
619
|
+
order_id?: string;
|
|
620
|
+
price_each?: number;
|
|
621
|
+
quantity?: number;
|
|
622
|
+
quantity_filled?: number;
|
|
623
|
+
quantity_listed?: number;
|
|
624
|
+
success: boolean;
|
|
625
|
+
total_earned?: number;
|
|
626
|
+
};
|
|
570
627
|
export type BulkJobCancelResponse = {
|
|
571
628
|
action: 'job_cancel';
|
|
572
629
|
kind: 'bulk_cancel';
|
|
@@ -1321,6 +1378,9 @@ export type CreateSellOrderResponse = {
|
|
|
1321
1378
|
total_earned?: number;
|
|
1322
1379
|
};
|
|
1323
1380
|
export type CreatureInfo = {
|
|
1381
|
+
brand_faction?: string;
|
|
1382
|
+
brand_ranch?: string;
|
|
1383
|
+
branded?: boolean;
|
|
1324
1384
|
creature_id: string;
|
|
1325
1385
|
hull: number;
|
|
1326
1386
|
in_combat: boolean;
|
|
@@ -1657,6 +1717,8 @@ export type FacilityDefinition = {
|
|
|
1657
1717
|
logistics?: boolean;
|
|
1658
1718
|
lore?: string;
|
|
1659
1719
|
maintenance_inputs?: Array<RecipeInput>;
|
|
1720
|
+
max_cull_per_cycle?: number;
|
|
1721
|
+
max_species_tier?: number;
|
|
1660
1722
|
name: string;
|
|
1661
1723
|
personal_bonus_type?: string;
|
|
1662
1724
|
personal_bonus_value?: number;
|
|
@@ -1665,9 +1727,11 @@ export type FacilityDefinition = {
|
|
|
1665
1727
|
player_station_buildable?: boolean;
|
|
1666
1728
|
power_draw?: number;
|
|
1667
1729
|
power_supply?: number;
|
|
1730
|
+
ranch_capacity?: number;
|
|
1668
1731
|
recipe_id?: string;
|
|
1669
1732
|
repair_hull_per_item?: number;
|
|
1670
1733
|
repair_item?: string;
|
|
1734
|
+
required_xenobiology?: number;
|
|
1671
1735
|
requires_service_type?: string;
|
|
1672
1736
|
satisfied_description?: string;
|
|
1673
1737
|
scan_falloff?: number;
|
|
@@ -1946,7 +2010,7 @@ export type FacilityRepairResponse = {
|
|
|
1946
2010
|
materials_used: Array<FacilityRepairMaterial>;
|
|
1947
2011
|
ticks_to_complete: number;
|
|
1948
2012
|
};
|
|
1949
|
-
export type FacilityResponse = FacilityListResponse | FacilityOwnedResponse | FacilityFactionOwnedResponse | FacilityHelpResponse | FacilityBuildResponse | FacilityUpgradesResponse | FacilityUpgradeResponse | FacilityDismantleResponse | FacilityRepairResponse | FacilityFactionBuildResponse | FacilityFactionUpgradeResponse | FacilityFactionListResponse | FacilityTransferResponse | FacilityPersonalBuildResponse | FacilityPersonalDecorateResponse | FacilityPersonalVisitResponse | FacilityTypeDiscoveryResponse | FacilityTypeListResponse | FacilityTypeDetailResponse | FacilityListForSaleResponse | FacilityBrowseForSaleResponse | FacilityBuyListingResponse | FacilityCancelListingResponse | CraftJobResponse | PackageJobResponse | FacilityJobListResponse | JobCancelResponse | BulkJobCancelResponse | JobReorderResponse | SetOutputPriceResponse | SetAccessResponse | SetFacilityNameResponse | SetFacilityDescriptionResponse;
|
|
2013
|
+
export type FacilityResponse = FacilityListResponse | FacilityOwnedResponse | FacilityFactionOwnedResponse | FacilityHelpResponse | FacilityBuildResponse | FacilityUpgradesResponse | FacilityUpgradeResponse | FacilityDismantleResponse | FacilityRepairResponse | FacilityFactionBuildResponse | FacilityFactionUpgradeResponse | FacilityFactionListResponse | FacilityTransferResponse | FacilityPersonalBuildResponse | FacilityPersonalDecorateResponse | FacilityPersonalVisitResponse | FacilityTypeDiscoveryResponse | FacilityTypeListResponse | FacilityTypeDetailResponse | FacilityListForSaleResponse | FacilityBrowseForSaleResponse | FacilityBuyListingResponse | FacilityCancelListingResponse | CraftJobResponse | PackageJobResponse | FacilityJobListResponse | JobCancelResponse | BulkJobCancelResponse | JobReorderResponse | SetOutputPriceResponse | SetAccessResponse | SetFacilityNameResponse | SetFacilityDescriptionResponse | RanchStatusResponse | RanchSetCullResponse;
|
|
1950
2014
|
export type FacilitySummary = {
|
|
1951
2015
|
facility_id: string;
|
|
1952
2016
|
maintenance_satisfied: boolean;
|
|
@@ -2101,6 +2165,11 @@ export type FactionCancelMissionResponse = {
|
|
|
2101
2165
|
message: string;
|
|
2102
2166
|
status: string;
|
|
2103
2167
|
};
|
|
2168
|
+
export type FactionCreateBuyOrderCommandResponse = ({
|
|
2169
|
+
kind: 'single';
|
|
2170
|
+
} & FactionCreateBuyOrderResponse) | ({
|
|
2171
|
+
kind: 'bulk';
|
|
2172
|
+
} & BulkFactionCreateBuyOrdersResponse);
|
|
2104
2173
|
export type FactionCreateBuyOrderResponse = {
|
|
2105
2174
|
action: string;
|
|
2106
2175
|
bucket?: string;
|
|
@@ -2110,6 +2179,7 @@ export type FactionCreateBuyOrderResponse = {
|
|
|
2110
2179
|
faction_tag: string;
|
|
2111
2180
|
item: string;
|
|
2112
2181
|
item_id: string;
|
|
2182
|
+
kind: 'single';
|
|
2113
2183
|
listing_fee: number;
|
|
2114
2184
|
message: string;
|
|
2115
2185
|
order_id: string;
|
|
@@ -2138,6 +2208,11 @@ export type FactionCreateRoleResponse = {
|
|
|
2138
2208
|
priority: number;
|
|
2139
2209
|
role_id: string;
|
|
2140
2210
|
};
|
|
2211
|
+
export type FactionCreateSellOrderCommandResponse = ({
|
|
2212
|
+
kind: 'single';
|
|
2213
|
+
} & FactionCreateSellOrderResponse) | ({
|
|
2214
|
+
kind: 'bulk';
|
|
2215
|
+
} & BulkFactionCreateSellOrdersResponse);
|
|
2141
2216
|
export type FactionCreateSellOrderResponse = {
|
|
2142
2217
|
action: string;
|
|
2143
2218
|
bucket?: string;
|
|
@@ -2146,6 +2221,7 @@ export type FactionCreateSellOrderResponse = {
|
|
|
2146
2221
|
faction_tag: string;
|
|
2147
2222
|
item: string;
|
|
2148
2223
|
item_id: string;
|
|
2224
|
+
kind: 'single';
|
|
2149
2225
|
listing_fee: number;
|
|
2150
2226
|
message: string;
|
|
2151
2227
|
order_id: string;
|
|
@@ -2897,10 +2973,13 @@ export type GetActionLogResponse = {
|
|
|
2897
2973
|
category: string;
|
|
2898
2974
|
entries: Array<ActionLogEntry>;
|
|
2899
2975
|
event_type?: string;
|
|
2976
|
+
event_types?: Array<string>;
|
|
2900
2977
|
faction_id?: string;
|
|
2901
2978
|
has_more: boolean;
|
|
2979
|
+
next_since_id?: number;
|
|
2902
2980
|
page: number;
|
|
2903
2981
|
page_size: number;
|
|
2982
|
+
since_id?: number;
|
|
2904
2983
|
total: number;
|
|
2905
2984
|
total_pages: number;
|
|
2906
2985
|
};
|
|
@@ -4230,6 +4309,19 @@ export type NotificationPlayerKill = {
|
|
|
4230
4309
|
*/
|
|
4231
4310
|
wreck_id?: string;
|
|
4232
4311
|
};
|
|
4312
|
+
export type NotificationRanchPoached = {
|
|
4313
|
+
herd_left: number;
|
|
4314
|
+
killer_id: string;
|
|
4315
|
+
killer_name: string;
|
|
4316
|
+
message: string;
|
|
4317
|
+
poi_id: string;
|
|
4318
|
+
poi_name: string;
|
|
4319
|
+
ranch_id: string;
|
|
4320
|
+
ranch_name: string;
|
|
4321
|
+
species_id: string;
|
|
4322
|
+
species_name: string;
|
|
4323
|
+
system_id: string;
|
|
4324
|
+
};
|
|
4233
4325
|
export type NotificationReconnected = {
|
|
4234
4326
|
message: string;
|
|
4235
4327
|
ticks_remaining: number;
|
|
@@ -4767,6 +4859,49 @@ export type PrepayTaxResponse = {
|
|
|
4767
4859
|
message: string;
|
|
4768
4860
|
tax_prepaid_balance: number;
|
|
4769
4861
|
};
|
|
4862
|
+
export type RanchFeedInfo = {
|
|
4863
|
+
cycles_left: number;
|
|
4864
|
+
per_cycle: number;
|
|
4865
|
+
resource: string;
|
|
4866
|
+
stocked: number;
|
|
4867
|
+
};
|
|
4868
|
+
export type RanchSetCullResponse = {
|
|
4869
|
+
action: string;
|
|
4870
|
+
cull_target: number;
|
|
4871
|
+
facility_id: string;
|
|
4872
|
+
herd: number;
|
|
4873
|
+
message: string;
|
|
4874
|
+
};
|
|
4875
|
+
export type RanchStatusResponse = {
|
|
4876
|
+
action: string;
|
|
4877
|
+
anchor_name: string;
|
|
4878
|
+
anchor_poi: string;
|
|
4879
|
+
base_id: string;
|
|
4880
|
+
base_name: string;
|
|
4881
|
+
capacity: number;
|
|
4882
|
+
cull_target: number;
|
|
4883
|
+
domestication_active: boolean;
|
|
4884
|
+
domestication_reserve: number;
|
|
4885
|
+
facility_id: string;
|
|
4886
|
+
facility_name: string;
|
|
4887
|
+
fed_fraction: number;
|
|
4888
|
+
feed: Array<RanchFeedInfo>;
|
|
4889
|
+
growth_per_cycle: number;
|
|
4890
|
+
herd: number;
|
|
4891
|
+
level: number;
|
|
4892
|
+
max_cull_per_cycle: number;
|
|
4893
|
+
message: string;
|
|
4894
|
+
produces?: Array<RanchYieldInfo>;
|
|
4895
|
+
range_health: number;
|
|
4896
|
+
species: string;
|
|
4897
|
+
species_name: string;
|
|
4898
|
+
supplies_ok: boolean;
|
|
4899
|
+
wild_population: number;
|
|
4900
|
+
};
|
|
4901
|
+
export type RanchYieldInfo = {
|
|
4902
|
+
item: string;
|
|
4903
|
+
per_cycle: number;
|
|
4904
|
+
};
|
|
4770
4905
|
export type ReadNoteResponse = {
|
|
4771
4906
|
content: string;
|
|
4772
4907
|
created_at: string;
|
|
@@ -5256,11 +5391,12 @@ export type ShipClass = {
|
|
|
5256
5391
|
*/
|
|
5257
5392
|
based_on?: string;
|
|
5258
5393
|
/**
|
|
5259
|
-
* Materials required to build
|
|
5394
|
+
* Materials required to build
|
|
5260
5395
|
*/
|
|
5261
|
-
build_materials?: {
|
|
5262
|
-
|
|
5263
|
-
|
|
5396
|
+
build_materials?: Array<{
|
|
5397
|
+
item_id?: string;
|
|
5398
|
+
quantity?: number;
|
|
5399
|
+
}>;
|
|
5264
5400
|
/**
|
|
5265
5401
|
* Ticks required to build this ship
|
|
5266
5402
|
*/
|
|
@@ -5445,6 +5581,7 @@ export type ShipmentContract = {
|
|
|
5445
5581
|
reserved_exposure: number;
|
|
5446
5582
|
reward_escrow: number;
|
|
5447
5583
|
risk_band: 'probationary' | 'licensed' | 'trusted' | 'prime' | 'unpriced';
|
|
5584
|
+
route_hops?: number;
|
|
5448
5585
|
salvage_owner?: ShipmentActor;
|
|
5449
5586
|
service_fee: number;
|
|
5450
5587
|
service_level: 'standard' | 'priority';
|
|
@@ -5489,6 +5626,8 @@ export type ShippingDebtPaymentResponse = {
|
|
|
5489
5626
|
};
|
|
5490
5627
|
export type ShippingListResponse = {
|
|
5491
5628
|
action: 'list';
|
|
5629
|
+
empty_reason?: string;
|
|
5630
|
+
empty_reason_code?: string;
|
|
5492
5631
|
page: number;
|
|
5493
5632
|
per_page: number;
|
|
5494
5633
|
shipments: Array<ShippingListing>;
|
|
@@ -5516,6 +5655,8 @@ export type ShippingQuote = {
|
|
|
5516
5655
|
covered_value: number;
|
|
5517
5656
|
deadline_ticks: number;
|
|
5518
5657
|
destination_base_id: string;
|
|
5658
|
+
estimate_samples: number;
|
|
5659
|
+
estimated_reward: number;
|
|
5519
5660
|
failure_debt: number;
|
|
5520
5661
|
insurable: boolean;
|
|
5521
5662
|
insurance_selected: boolean;
|
|
@@ -6843,7 +6984,7 @@ export type V2Response = {
|
|
|
6843
6984
|
/**
|
|
6844
6985
|
* Notification payload. Shape depends on msg_type — see the Notification_* schemas under components.schemas.
|
|
6845
6986
|
*/
|
|
6846
|
-
data?: NotificationAchievementUnlocked | NotificationBaseDestroyed | NotificationStationRepaired | NotificationBaseRaidUpdate | NotificationBattleAlert | NotificationBattleDamage | NotificationBattleEnded | NotificationBattleJoined | NotificationBattleLeft | NotificationBattleStarted | NotificationBattleUpdate | NotificationChatMessage | NotificationCraftingUpdate | NotificationDroneDestroyed | NotificationDroneScan | NotificationDroneSurvey | NotificationDroneUpdate | NotificationFacilityReclaimed | NotificationFacilityRentWarning | NotificationMarketUpdate | NotificationObservationUpdate | NotificationMiningYield | NotificationPilotlessShip | NotificationPirateDestroyed | NotificationPirateRadio | NotificationPlayerDied | NotificationPlayerKill | NotificationReconnected | NotificationScanDetected | NotificationShipCommissionComplete | NotificationSkillLevelUp | NotificationTradeCancelled | NotificationTradeComplete | NotificationTradeDeclined | NotificationTradeOfferReceived;
|
|
6987
|
+
data?: NotificationAchievementUnlocked | NotificationBaseDestroyed | NotificationStationRepaired | NotificationRanchPoached | NotificationBaseRaidUpdate | NotificationBattleAlert | NotificationBattleDamage | NotificationBattleEnded | NotificationBattleJoined | NotificationBattleLeft | NotificationBattleStarted | NotificationBattleUpdate | NotificationChatMessage | NotificationCraftingUpdate | NotificationDroneDestroyed | NotificationDroneScan | NotificationDroneSurvey | NotificationDroneUpdate | NotificationFacilityReclaimed | NotificationFacilityRentWarning | NotificationMarketUpdate | NotificationObservationUpdate | NotificationMiningYield | NotificationPilotlessShip | NotificationPirateDestroyed | NotificationPirateRadio | NotificationPlayerDied | NotificationPlayerKill | NotificationReconnected | NotificationScanDetected | NotificationShipCommissionComplete | NotificationSkillLevelUp | NotificationTradeCancelled | NotificationTradeComplete | NotificationTradeDeclined | NotificationTradeOfferReceived;
|
|
6847
6988
|
id?: string;
|
|
6848
6989
|
/**
|
|
6849
6990
|
* Specific message subtype used for handler routing (e.g. chat_message, combat_update, action_result, mining_yield). Switch on this to pick the matching Notification_* payload schema.
|
|
@@ -6984,6 +7125,7 @@ export type WildlifeSurvey = {
|
|
|
6984
7125
|
abundance: string;
|
|
6985
7126
|
estimate: number;
|
|
6986
7127
|
name: string;
|
|
7128
|
+
ranched?: number;
|
|
6987
7129
|
role: string;
|
|
6988
7130
|
species: string;
|
|
6989
7131
|
};
|
|
@@ -7006,6 +7148,25 @@ export type ZoneMoveLogEntry = {
|
|
|
7006
7148
|
player_id: string;
|
|
7007
7149
|
reason: string;
|
|
7008
7150
|
};
|
|
7151
|
+
export type GetCatalogDumpData = {
|
|
7152
|
+
body?: never;
|
|
7153
|
+
path?: never;
|
|
7154
|
+
query?: never;
|
|
7155
|
+
url: '/api/catalog.json';
|
|
7156
|
+
};
|
|
7157
|
+
export type GetCatalogDumpErrors = {
|
|
7158
|
+
/**
|
|
7159
|
+
* Rate limited — 1 request per minute per IP
|
|
7160
|
+
*/
|
|
7161
|
+
429: unknown;
|
|
7162
|
+
};
|
|
7163
|
+
export type GetCatalogDumpResponses = {
|
|
7164
|
+
/**
|
|
7165
|
+
* The full catalog dump
|
|
7166
|
+
*/
|
|
7167
|
+
200: CatalogDump;
|
|
7168
|
+
};
|
|
7169
|
+
export type GetCatalogDumpResponse = GetCatalogDumpResponses[keyof GetCatalogDumpResponses];
|
|
7009
7170
|
export type AgentLogsV2Data = {
|
|
7010
7171
|
body: {
|
|
7011
7172
|
/**
|
|
@@ -11074,6 +11235,10 @@ export type SpacemoltFacilityFactionBuildData = {
|
|
|
11074
11235
|
* Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to.
|
|
11075
11236
|
*/
|
|
11076
11237
|
facility_type: string;
|
|
11238
|
+
/**
|
|
11239
|
+
* For 'faction_build' of a ranch facility: the grazer species to ranch (fixed for the facility's life). survey_system shows what lives in the system.
|
|
11240
|
+
*/
|
|
11241
|
+
species?: string;
|
|
11077
11242
|
};
|
|
11078
11243
|
path?: never;
|
|
11079
11244
|
query?: never;
|
|
@@ -11739,6 +11904,80 @@ export type SpacemoltFacilityPersonalVisitResponses = {
|
|
|
11739
11904
|
};
|
|
11740
11905
|
};
|
|
11741
11906
|
export type SpacemoltFacilityPersonalVisitResponse = SpacemoltFacilityPersonalVisitResponses[keyof SpacemoltFacilityPersonalVisitResponses];
|
|
11907
|
+
export type SpacemoltFacilityRanchSetCullData = {
|
|
11908
|
+
body?: {
|
|
11909
|
+
/**
|
|
11910
|
+
* For 'ranch_set_cull': maintain the herd at this size — surplus is slaughtered each cycle into faction storage. 0 disables culling.
|
|
11911
|
+
*/
|
|
11912
|
+
cull_target: number;
|
|
11913
|
+
/**
|
|
11914
|
+
* Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs.
|
|
11915
|
+
*/
|
|
11916
|
+
facility_id?: string;
|
|
11917
|
+
};
|
|
11918
|
+
path?: never;
|
|
11919
|
+
query?: never;
|
|
11920
|
+
url: '/api/v2/spacemolt_facility/ranch_set_cull';
|
|
11921
|
+
};
|
|
11922
|
+
export type SpacemoltFacilityRanchSetCullErrors = {
|
|
11923
|
+
/**
|
|
11924
|
+
* Bad request — invalid params, unknown command, or game error
|
|
11925
|
+
*/
|
|
11926
|
+
400: unknown;
|
|
11927
|
+
/**
|
|
11928
|
+
* Not authenticated — missing or invalid session
|
|
11929
|
+
*/
|
|
11930
|
+
401: unknown;
|
|
11931
|
+
/**
|
|
11932
|
+
* Rate limited — mutations allow 1 per tick (10 seconds)
|
|
11933
|
+
*/
|
|
11934
|
+
429: unknown;
|
|
11935
|
+
};
|
|
11936
|
+
export type SpacemoltFacilityRanchSetCullResponses = {
|
|
11937
|
+
/**
|
|
11938
|
+
* Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (RanchSetCullResponse)
|
|
11939
|
+
*/
|
|
11940
|
+
200: V2Response & {
|
|
11941
|
+
structuredContent?: V2GameState & {
|
|
11942
|
+
details?: RanchSetCullResponse;
|
|
11943
|
+
};
|
|
11944
|
+
};
|
|
11945
|
+
};
|
|
11946
|
+
export type SpacemoltFacilityRanchSetCullResponse = SpacemoltFacilityRanchSetCullResponses[keyof SpacemoltFacilityRanchSetCullResponses];
|
|
11947
|
+
export type SpacemoltFacilityRanchStatusData = {
|
|
11948
|
+
body?: {
|
|
11949
|
+
/**
|
|
11950
|
+
* Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs.
|
|
11951
|
+
*/
|
|
11952
|
+
facility_id?: string;
|
|
11953
|
+
};
|
|
11954
|
+
path?: never;
|
|
11955
|
+
query?: never;
|
|
11956
|
+
url: '/api/v2/spacemolt_facility/ranch_status';
|
|
11957
|
+
};
|
|
11958
|
+
export type SpacemoltFacilityRanchStatusErrors = {
|
|
11959
|
+
/**
|
|
11960
|
+
* Bad request — invalid params, unknown command, or game error
|
|
11961
|
+
*/
|
|
11962
|
+
400: unknown;
|
|
11963
|
+
/**
|
|
11964
|
+
* Not authenticated — missing or invalid session
|
|
11965
|
+
*/
|
|
11966
|
+
401: unknown;
|
|
11967
|
+
/**
|
|
11968
|
+
* Rate limited — mutations allow 1 per tick (10 seconds)
|
|
11969
|
+
*/
|
|
11970
|
+
429: unknown;
|
|
11971
|
+
};
|
|
11972
|
+
export type SpacemoltFacilityRanchStatusResponses = {
|
|
11973
|
+
/**
|
|
11974
|
+
* Result. structuredContent type: RanchStatusResponse
|
|
11975
|
+
*/
|
|
11976
|
+
200: V2Response & {
|
|
11977
|
+
structuredContent?: RanchStatusResponse;
|
|
11978
|
+
};
|
|
11979
|
+
};
|
|
11980
|
+
export type SpacemoltFacilityRanchStatusResponse = SpacemoltFacilityRanchStatusResponses[keyof SpacemoltFacilityRanchStatusResponses];
|
|
11742
11981
|
export type SpacemoltFacilityRemoveFactionData = {
|
|
11743
11982
|
body?: {
|
|
11744
11983
|
/**
|
|
@@ -11890,7 +12129,7 @@ export type SpacemoltFacilitySetAccessResponse = SpacemoltFacilitySetAccessRespo
|
|
|
11890
12129
|
export type SpacemoltFacilitySetAutoBuyFuelData = {
|
|
11891
12130
|
body?: {
|
|
11892
12131
|
/**
|
|
11893
|
-
* Whether the station automatically buys fuel from docked pilots at live scarcity-based prices,
|
|
12132
|
+
* Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, paid from your faction's treasury capped to affordability (set_auto_buy_fuel; off by default)
|
|
11894
12133
|
*/
|
|
11895
12134
|
auto_buy_fuel?: boolean;
|
|
11896
12135
|
};
|
|
@@ -13935,21 +14174,31 @@ export type SpacemoltFactionCommerceCreateBuyOrderData = {
|
|
|
13935
14174
|
*/
|
|
13936
14175
|
bucket?: string;
|
|
13937
14176
|
/**
|
|
13938
|
-
* ID of the item to buy for faction storage
|
|
14177
|
+
* ID of the item to buy for faction storage. Required for single mode.
|
|
13939
14178
|
*/
|
|
13940
|
-
item_id
|
|
14179
|
+
item_id?: string;
|
|
13941
14180
|
/**
|
|
13942
|
-
*
|
|
14181
|
+
* Bulk mode: array of faction buy orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored.
|
|
13943
14182
|
*/
|
|
13944
|
-
|
|
14183
|
+
orders?: Array<{
|
|
14184
|
+
bucket?: string;
|
|
14185
|
+
item_id: string;
|
|
14186
|
+
price_each: number;
|
|
14187
|
+
private?: boolean;
|
|
14188
|
+
quantity: number;
|
|
14189
|
+
}>;
|
|
14190
|
+
/**
|
|
14191
|
+
* Maximum price per unit in credits. Required for single mode.
|
|
14192
|
+
*/
|
|
14193
|
+
price_each?: number;
|
|
13945
14194
|
/**
|
|
13946
14195
|
* Optional: post a Company Store listing — a members-only buy order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap.
|
|
13947
14196
|
*/
|
|
13948
14197
|
private?: boolean;
|
|
13949
14198
|
/**
|
|
13950
|
-
* Number of items to buy
|
|
14199
|
+
* Number of items to buy. Required for single mode.
|
|
13951
14200
|
*/
|
|
13952
|
-
quantity
|
|
14201
|
+
quantity?: number;
|
|
13953
14202
|
};
|
|
13954
14203
|
path?: never;
|
|
13955
14204
|
query?: never;
|
|
@@ -13971,11 +14220,11 @@ export type SpacemoltFactionCommerceCreateBuyOrderErrors = {
|
|
|
13971
14220
|
};
|
|
13972
14221
|
export type SpacemoltFactionCommerceCreateBuyOrderResponses = {
|
|
13973
14222
|
/**
|
|
13974
|
-
* Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (
|
|
14223
|
+
* Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FactionCreateBuyOrderCommandResponse)
|
|
13975
14224
|
*/
|
|
13976
14225
|
200: V2Response & {
|
|
13977
14226
|
structuredContent?: V2GameState & {
|
|
13978
|
-
details?:
|
|
14227
|
+
details?: FactionCreateBuyOrderCommandResponse;
|
|
13979
14228
|
};
|
|
13980
14229
|
};
|
|
13981
14230
|
};
|
|
@@ -13987,21 +14236,31 @@ export type SpacemoltFactionCommerceCreateSellOrderData = {
|
|
|
13987
14236
|
*/
|
|
13988
14237
|
bucket?: string;
|
|
13989
14238
|
/**
|
|
13990
|
-
* ID of the item to sell from faction storage
|
|
14239
|
+
* ID of the item to sell from faction storage. Required for single mode.
|
|
13991
14240
|
*/
|
|
13992
|
-
item_id
|
|
14241
|
+
item_id?: string;
|
|
13993
14242
|
/**
|
|
13994
|
-
*
|
|
14243
|
+
* Bulk mode: array of faction sell orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored.
|
|
13995
14244
|
*/
|
|
13996
|
-
|
|
14245
|
+
orders?: Array<{
|
|
14246
|
+
bucket?: string;
|
|
14247
|
+
item_id: string;
|
|
14248
|
+
price_each: number;
|
|
14249
|
+
private?: boolean;
|
|
14250
|
+
quantity: number;
|
|
14251
|
+
}>;
|
|
14252
|
+
/**
|
|
14253
|
+
* Price per unit in credits. Required for single mode.
|
|
14254
|
+
*/
|
|
14255
|
+
price_each?: number;
|
|
13997
14256
|
/**
|
|
13998
14257
|
* Optional: post a Company Store listing — a members-only sell order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap.
|
|
13999
14258
|
*/
|
|
14000
14259
|
private?: boolean;
|
|
14001
14260
|
/**
|
|
14002
|
-
* Number of items to list for sale
|
|
14261
|
+
* Number of items to list for sale. Required for single mode.
|
|
14003
14262
|
*/
|
|
14004
|
-
quantity
|
|
14263
|
+
quantity?: number;
|
|
14005
14264
|
};
|
|
14006
14265
|
path?: never;
|
|
14007
14266
|
query?: never;
|
|
@@ -14023,11 +14282,11 @@ export type SpacemoltFactionCommerceCreateSellOrderErrors = {
|
|
|
14023
14282
|
};
|
|
14024
14283
|
export type SpacemoltFactionCommerceCreateSellOrderResponses = {
|
|
14025
14284
|
/**
|
|
14026
|
-
* Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (
|
|
14285
|
+
* Result. structuredContent: V2GameState post-mutation delta (changed ship/cargo/location/queue sections); the command result is under `details` (FactionCreateSellOrderCommandResponse)
|
|
14027
14286
|
*/
|
|
14028
14287
|
200: V2Response & {
|
|
14029
14288
|
structuredContent?: V2GameState & {
|
|
14030
|
-
details?:
|
|
14289
|
+
details?: FactionCreateSellOrderCommandResponse;
|
|
14031
14290
|
};
|
|
14032
14291
|
};
|
|
14033
14292
|
};
|
|
@@ -16541,6 +16800,18 @@ export type SpacemoltShippingListData = {
|
|
|
16541
16800
|
* For list, show contracts you may accept personally (player, default) or for your current faction.
|
|
16542
16801
|
*/
|
|
16543
16802
|
eligible_as?: 'player' | 'faction';
|
|
16803
|
+
/**
|
|
16804
|
+
* For list, only show runs bound for this destination station (ID or name).
|
|
16805
|
+
*/
|
|
16806
|
+
filter_destination?: string;
|
|
16807
|
+
/**
|
|
16808
|
+
* For list, only show runs of this service tier.
|
|
16809
|
+
*/
|
|
16810
|
+
filter_service_level?: 'standard' | 'priority';
|
|
16811
|
+
/**
|
|
16812
|
+
* For list, only show runs posted by this shipper (a player username, faction name or tag, or station name).
|
|
16813
|
+
*/
|
|
16814
|
+
filter_shipper?: string;
|
|
16544
16815
|
/**
|
|
16545
16816
|
* List page (default 1).
|
|
16546
16817
|
*/
|
|
@@ -16549,6 +16820,10 @@ export type SpacemoltShippingListData = {
|
|
|
16549
16820
|
* Contracts per page (default 20, max 50).
|
|
16550
16821
|
*/
|
|
16551
16822
|
per_page?: number;
|
|
16823
|
+
/**
|
|
16824
|
+
* For list, ordering of the board: reward (highest base_reward first, default), distance (fewest route hops first), or age (oldest first).
|
|
16825
|
+
*/
|
|
16826
|
+
sort?: 'reward' | 'distance' | 'age';
|
|
16552
16827
|
};
|
|
16553
16828
|
path?: never;
|
|
16554
16829
|
query?: never;
|
|
@@ -16619,6 +16894,10 @@ export type SpacemoltShippingPayDebtResponses = {
|
|
|
16619
16894
|
export type SpacemoltShippingPayDebtResponse = SpacemoltShippingPayDebtResponses[keyof SpacemoltShippingPayDebtResponses];
|
|
16620
16895
|
export type SpacemoltShippingPostData = {
|
|
16621
16896
|
body?: {
|
|
16897
|
+
/**
|
|
16898
|
+
* Flat reward paid to the carrier on delivery. You set the price — required to post (post fails with reward_required if omitted or non-positive). quote returns estimated_reward from recently-completed similar-distance contracts to guide you; there is no automatic distance-based rate.
|
|
16899
|
+
*/
|
|
16900
|
+
base_reward?: number;
|
|
16622
16901
|
/**
|
|
16623
16902
|
* Destination station/base ID for quote or post. It must differ from the origin station; another station in the same system is valid.
|
|
16624
16903
|
*/
|
|
@@ -16652,7 +16931,7 @@ export type SpacemoltShippingPostData = {
|
|
|
16652
16931
|
*/
|
|
16653
16932
|
recipient_type?: 'player' | 'faction' | 'station';
|
|
16654
16933
|
/**
|
|
16655
|
-
* standard, or priority for a
|
|
16934
|
+
* Delivery timing tier only: standard, or priority for a tighter deadline. It does not set any payment — the carrier's pay is base_reward plus the optional speed_bonus.
|
|
16656
16935
|
*/
|
|
16657
16936
|
service_level?: 'standard' | 'priority';
|
|
16658
16937
|
/**
|
|
@@ -16667,6 +16946,10 @@ export type SpacemoltShippingPostData = {
|
|
|
16667
16946
|
* Faction Storage Extension bucket ID when source=faction; omit for the faction main store.
|
|
16668
16947
|
*/
|
|
16669
16948
|
source_bucket_id?: string;
|
|
16949
|
+
/**
|
|
16950
|
+
* Optional extra paid for fast delivery, decaying linearly from full at the on-time target tick to zero at the deadline. The timing window itself is set by service_level.
|
|
16951
|
+
*/
|
|
16952
|
+
speed_bonus?: number;
|
|
16670
16953
|
/**
|
|
16671
16954
|
* Who may accept the listing. invited also requires invited_carrier_type and invited_carrier_id.
|
|
16672
16955
|
*/
|
|
@@ -16737,6 +17020,10 @@ export type SpacemoltShippingProfileResponses = {
|
|
|
16737
17020
|
export type SpacemoltShippingProfileResponse = SpacemoltShippingProfileResponses[keyof SpacemoltShippingProfileResponses];
|
|
16738
17021
|
export type SpacemoltShippingQuoteData = {
|
|
16739
17022
|
body?: {
|
|
17023
|
+
/**
|
|
17024
|
+
* Flat reward paid to the carrier on delivery. You set the price — required to post (post fails with reward_required if omitted or non-positive). quote returns estimated_reward from recently-completed similar-distance contracts to guide you; there is no automatic distance-based rate.
|
|
17025
|
+
*/
|
|
17026
|
+
base_reward?: number;
|
|
16740
17027
|
/**
|
|
16741
17028
|
* Destination station/base ID for quote or post. It must differ from the origin station; another station in the same system is valid.
|
|
16742
17029
|
*/
|
|
@@ -16766,7 +17053,7 @@ export type SpacemoltShippingQuoteData = {
|
|
|
16766
17053
|
*/
|
|
16767
17054
|
recipient_type?: 'player' | 'faction' | 'station';
|
|
16768
17055
|
/**
|
|
16769
|
-
* standard, or priority for a
|
|
17056
|
+
* Delivery timing tier only: standard, or priority for a tighter deadline. It does not set any payment — the carrier's pay is base_reward plus the optional speed_bonus.
|
|
16770
17057
|
*/
|
|
16771
17058
|
service_level?: 'standard' | 'priority';
|
|
16772
17059
|
/**
|
|
@@ -16781,6 +17068,10 @@ export type SpacemoltShippingQuoteData = {
|
|
|
16781
17068
|
* Faction Storage Extension bucket ID when source=faction; omit for the faction main store.
|
|
16782
17069
|
*/
|
|
16783
17070
|
source_bucket_id?: string;
|
|
17071
|
+
/**
|
|
17072
|
+
* Optional extra paid for fast delivery, decaying linearly from full at the on-time target tick to zero at the deadline. The timing window itself is set by service_level.
|
|
17073
|
+
*/
|
|
17074
|
+
speed_bonus?: number;
|
|
16784
17075
|
/**
|
|
16785
17076
|
* Who may accept the listing. invited also requires invited_carrier_type and invited_carrier_id.
|
|
16786
17077
|
*/
|
|
@@ -17452,21 +17743,25 @@ export type SpacemoltSocialGetActionLogData = {
|
|
|
17452
17743
|
*/
|
|
17453
17744
|
category?: 'combat' | 'trading' | 'ship' | 'crafting' | 'faction' | 'mission' | 'skill' | 'salvage' | 'storage' | 'achievement' | 'mining' | 'navigation' | 'exploration' | 'reputation' | 'drone' | 'session' | 'other';
|
|
17454
17745
|
/**
|
|
17455
|
-
* Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history)
|
|
17746
|
+
* 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
|
|
17456
17747
|
*/
|
|
17457
|
-
event_type?: string
|
|
17748
|
+
event_type?: Array<string> | Array<string>;
|
|
17458
17749
|
/**
|
|
17459
17750
|
* View a faction's action log instead of your own (must be a member)
|
|
17460
17751
|
*/
|
|
17461
17752
|
faction_id?: string;
|
|
17462
17753
|
/**
|
|
17463
|
-
* Page number (default 1)
|
|
17754
|
+
* Page number (default 1). Ignored when since_id is set.
|
|
17464
17755
|
*/
|
|
17465
17756
|
page?: number;
|
|
17466
17757
|
/**
|
|
17467
|
-
* Entries per page (default 50, max 100)
|
|
17758
|
+
* Entries per page, or max entries to return when since_id is set (default 50, max 100)
|
|
17468
17759
|
*/
|
|
17469
17760
|
page_size?: number;
|
|
17761
|
+
/**
|
|
17762
|
+
* Cursor for gap-free incremental polling: return only entries with id greater than this, oldest-first, up to page_size. Pass 0 or omit for normal newest-first paging. Pass the response's next_since_id on your next poll to continue exactly where you left off.
|
|
17763
|
+
*/
|
|
17764
|
+
since_id?: number;
|
|
17470
17765
|
};
|
|
17471
17766
|
path?: never;
|
|
17472
17767
|
query?: never;
|
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var STATE_SECTIONS = [
|
|
|
44
44
|
"skills"
|
|
45
45
|
];
|
|
46
46
|
// src/generated/actions.gen.ts
|
|
47
|
-
var GENERATED_SPEC_VERSION = "v0.
|
|
47
|
+
var GENERATED_SPEC_VERSION = "v0.530.1";
|
|
48
48
|
var ACTIONS = {
|
|
49
49
|
"spacemolt_auth/claim": {
|
|
50
50
|
tool: "spacemolt_auth",
|
|
@@ -434,7 +434,8 @@ var ACTIONS = {
|
|
|
434
434
|
detailsType: "FacilityFactionBuildResponse",
|
|
435
435
|
params: [
|
|
436
436
|
{ name: "bucket", type: "string", required: false, description: "For 'faction_build'/'faction_upgrade': a Storage Extension bucket (name or id) to source build/upgrade MATERIALS from, instead of the faction main store. Ship cargo backfills either way." },
|
|
437
|
-
{ name: "facility_type", type: "string", required: true, description: "Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to.", positional: 0 }
|
|
437
|
+
{ name: "facility_type", type: "string", required: true, description: "Facility type ID. For 'types' action: get full details for this specific type. For 'build'/'upgrade': the type to build/upgrade to.", positional: 0 },
|
|
438
|
+
{ name: "species", type: "string", required: false, description: "For 'faction_build' of a ranch facility: the grazer species to ranch (fixed for the facility's life). survey_system shows what lives in the system." }
|
|
438
439
|
]
|
|
439
440
|
},
|
|
440
441
|
"spacemolt_facility/faction_dismantle": {
|
|
@@ -597,6 +598,27 @@ var ACTIONS = {
|
|
|
597
598
|
{ name: "username", type: "string", required: false, description: "For 'personal_visit': username of the player whose quarters to visit. Omit to visit your own." }
|
|
598
599
|
]
|
|
599
600
|
},
|
|
601
|
+
"spacemolt_facility/ranch_set_cull": {
|
|
602
|
+
tool: "spacemolt_facility",
|
|
603
|
+
action: "ranch_set_cull",
|
|
604
|
+
kind: "mutation",
|
|
605
|
+
summary: "Manage facilities at stations (production, faction, personal, sales, and more)",
|
|
606
|
+
detailsType: "RanchSetCullResponse",
|
|
607
|
+
params: [
|
|
608
|
+
{ name: "cull_target", type: "number", required: true, description: "For 'ranch_set_cull': maintain the herd at this size — surplus is slaughtered each cycle into faction storage. 0 disables culling." },
|
|
609
|
+
{ name: "facility_id", type: "string", required: false, description: "Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs.", positional: 1 }
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
"spacemolt_facility/ranch_status": {
|
|
613
|
+
tool: "spacemolt_facility",
|
|
614
|
+
action: "ranch_status",
|
|
615
|
+
kind: "query",
|
|
616
|
+
summary: "Manage facilities at stations (production, faction, personal, sales, and more)",
|
|
617
|
+
responseType: "RanchStatusResponse",
|
|
618
|
+
params: [
|
|
619
|
+
{ name: "facility_id", type: "string", required: false, description: "Facility instance ID (required for 'upgrade', 'dismantle', 'faction_dismantle', 'job_add', 'job_list', 'set_output_price', 'set_access', 'set_name', 'set_description' actions). Use action 'list' to see facility IDs.", positional: 1 }
|
|
620
|
+
]
|
|
621
|
+
},
|
|
600
622
|
"spacemolt_facility/remove_faction": {
|
|
601
623
|
tool: "spacemolt_facility",
|
|
602
624
|
action: "remove_faction",
|
|
@@ -645,7 +667,7 @@ var ACTIONS = {
|
|
|
645
667
|
summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
|
|
646
668
|
detailsType: "StationConfigResponse",
|
|
647
669
|
params: [
|
|
648
|
-
{ name: "auto_buy_fuel", type: "boolean", required: false, description: "Whether the station automatically buys fuel from docked pilots at live scarcity-based prices,
|
|
670
|
+
{ name: "auto_buy_fuel", type: "boolean", required: false, description: "Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, paid from your faction's treasury capped to affordability (set_auto_buy_fuel; off by default)" }
|
|
649
671
|
]
|
|
650
672
|
},
|
|
651
673
|
"spacemolt_facility/set_build_policy": {
|
|
@@ -904,13 +926,14 @@ var ACTIONS = {
|
|
|
904
926
|
action: "create_buy_order",
|
|
905
927
|
kind: "mutation",
|
|
906
928
|
summary: "Create a buy order on behalf of your faction (credits from faction treasury)",
|
|
907
|
-
detailsType: "
|
|
929
|
+
detailsType: "FactionCreateBuyOrderCommandResponse",
|
|
908
930
|
params: [
|
|
909
931
|
{ name: "bucket", type: "string", required: false, description: "Optional: a Storage Extension bucket (name or id) to deliver filled items into instead of the faction main store. Not valid for fuel orders." },
|
|
910
|
-
{ name: "item_id", type: "string", required:
|
|
911
|
-
{ name: "
|
|
932
|
+
{ name: "item_id", type: "string", required: false, description: "ID of the item to buy for faction storage. Required for single mode.", positional: 0 },
|
|
933
|
+
{ name: "orders", type: "{ bucket?: string; item_id: string; price_each: number; private?: boolean; quantity: number }[]", required: false, description: "Bulk mode: array of faction buy orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored." },
|
|
934
|
+
{ name: "price_each", type: "number", required: false, description: "Maximum price per unit in credits. Required for single mode.", positional: 2 },
|
|
912
935
|
{ name: "private", type: "boolean", required: false, description: "Optional: post a Company Store listing — a members-only buy order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap." },
|
|
913
|
-
{ name: "quantity", type: "number", required:
|
|
936
|
+
{ name: "quantity", type: "number", required: false, description: "Number of items to buy. Required for single mode.", positional: 1 }
|
|
914
937
|
]
|
|
915
938
|
},
|
|
916
939
|
"spacemolt_faction_commerce/create_sell_order": {
|
|
@@ -918,13 +941,14 @@ var ACTIONS = {
|
|
|
918
941
|
action: "create_sell_order",
|
|
919
942
|
kind: "mutation",
|
|
920
943
|
summary: "Create a sell order on behalf of your faction (items from faction storage)",
|
|
921
|
-
detailsType: "
|
|
944
|
+
detailsType: "FactionCreateSellOrderCommandResponse",
|
|
922
945
|
params: [
|
|
923
946
|
{ name: "bucket", type: "string", required: false, description: "Optional: a Storage Extension bucket (name or id) to escrow the listed items from instead of the faction main store. A cancellation returns them there. Not valid for fuel orders." },
|
|
924
|
-
{ name: "item_id", type: "string", required:
|
|
925
|
-
{ name: "
|
|
947
|
+
{ name: "item_id", type: "string", required: false, description: "ID of the item to sell from faction storage. Required for single mode.", positional: 0 },
|
|
948
|
+
{ name: "orders", type: "{ bucket?: string; item_id: string; price_each: number; private?: boolean; quantity: number }[]", required: false, description: "Bulk mode: array of faction sell orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored." },
|
|
949
|
+
{ name: "price_each", type: "number", required: false, description: "Price per unit in credits. Required for single mode.", positional: 2 },
|
|
926
950
|
{ name: "private", type: "boolean", required: false, description: "Optional: post a Company Store listing — a members-only sell order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap." },
|
|
927
|
-
{ name: "quantity", type: "number", required:
|
|
951
|
+
{ name: "quantity", type: "number", required: false, description: "Number of items to list for sale. Required for single mode.", positional: 1 }
|
|
928
952
|
]
|
|
929
953
|
},
|
|
930
954
|
"spacemolt_faction/accept_ally": {
|
|
@@ -1729,8 +1753,12 @@ var ACTIONS = {
|
|
|
1729
1753
|
responseType: "ShippingListResponse",
|
|
1730
1754
|
params: [
|
|
1731
1755
|
{ name: "eligible_as", type: '"player" | "faction"', required: false, description: "For list, show contracts you may accept personally (player, default) or for your current faction.", enumValues: ["player", "faction"] },
|
|
1756
|
+
{ name: "filter_destination", type: "string", required: false, description: "For list, only show runs bound for this destination station (ID or name)." },
|
|
1757
|
+
{ name: "filter_service_level", type: '"standard" | "priority"', required: false, description: "For list, only show runs of this service tier.", enumValues: ["standard", "priority"] },
|
|
1758
|
+
{ name: "filter_shipper", type: "string", required: false, description: "For list, only show runs posted by this shipper (a player username, faction name or tag, or station name)." },
|
|
1732
1759
|
{ name: "page", type: "number", required: false, description: "List page (default 1)." },
|
|
1733
|
-
{ name: "per_page", type: "number", required: false, description: "Contracts per page (default 20, max 50)." }
|
|
1760
|
+
{ name: "per_page", type: "number", required: false, description: "Contracts per page (default 20, max 50)." },
|
|
1761
|
+
{ name: "sort", type: '"reward" | "distance" | "age"', required: false, description: "For list, ordering of the board: reward (highest base_reward first, default), distance (fewest route hops first), or age (oldest first).", enumValues: ["reward", "distance", "age"] }
|
|
1734
1762
|
]
|
|
1735
1763
|
},
|
|
1736
1764
|
"spacemolt_shipping/pay_debt": {
|
|
@@ -1751,6 +1779,7 @@ var ACTIONS = {
|
|
|
1751
1779
|
summary: "Quote, post, haul, track, and settle sealed-package freight contracts through station mission services",
|
|
1752
1780
|
detailsType: "ShippingContractResponse",
|
|
1753
1781
|
params: [
|
|
1782
|
+
{ name: "base_reward", type: "number", required: false, description: "Flat reward paid to the carrier on delivery. You set the price — required to post (post fails with reward_required if omitted or non-positive). quote returns estimated_reward from recently-completed similar-distance contracts to guide you; there is no automatic distance-based rate." },
|
|
1754
1783
|
{ name: "destination_base_id", type: "string", required: true, description: "Destination station/base ID for quote or post. It must differ from the origin station; another station in the same system is valid." },
|
|
1755
1784
|
{ name: "insured", type: "boolean", required: false, description: "Request cargo insurance. Unpriceable packages may still be shipped uninsured." },
|
|
1756
1785
|
{ name: "invited_carrier_id", type: "string", required: false, description: "Invited player or faction ID when visibility=invited." },
|
|
@@ -1759,10 +1788,11 @@ var ACTIONS = {
|
|
|
1759
1788
|
{ name: "package_id", type: "string", required: true, description: "Sealed package to quote or post. The package must be owned by the selected shipper at this station." },
|
|
1760
1789
|
{ name: "recipient_id", type: "string", required: false, description: "Player, faction, or station ID matching recipient_type." },
|
|
1761
1790
|
{ name: "recipient_type", type: '"player" | "faction" | "station"', required: false, description: "Delivery beneficiary kind. Omit both recipient fields to deliver back to the shipper.", enumValues: ["player", "faction", "station"] },
|
|
1762
|
-
{ name: "service_level", type: '"standard" | "priority"', required: false, description: "standard, or priority for a
|
|
1791
|
+
{ name: "service_level", type: '"standard" | "priority"', required: false, description: "Delivery timing tier only: standard, or priority for a tighter deadline. It does not set any payment — the carrier's pay is base_reward plus the optional speed_bonus.", enumValues: ["standard", "priority"] },
|
|
1763
1792
|
{ name: "shipper", type: '"player" | "faction"', required: false, description: "Who posts and funds the contract: you personally (player, default) or your current faction. Faction posting requires manage_treasury.", enumValues: ["player", "faction"] },
|
|
1764
1793
|
{ name: "source", type: '"cargo" | "storage" | "faction"', required: false, description: "Where the sealed package currently sits at the origin station (cargo by default).", enumValues: ["cargo", "storage", "faction"] },
|
|
1765
1794
|
{ name: "source_bucket_id", type: "string", required: false, description: "Faction Storage Extension bucket ID when source=faction; omit for the faction main store." },
|
|
1795
|
+
{ name: "speed_bonus", type: "number", required: false, description: "Optional extra paid for fast delivery, decaying linearly from full at the on-time target tick to zero at the deadline. The timing window itself is set by service_level." },
|
|
1766
1796
|
{ name: "visibility", type: '"public" | "faction" | "allies" | "invited"', required: false, description: "Who may accept the listing. invited also requires invited_carrier_type and invited_carrier_id.", enumValues: ["public", "faction", "allies", "invited"] }
|
|
1767
1797
|
]
|
|
1768
1798
|
},
|
|
@@ -1783,6 +1813,7 @@ var ACTIONS = {
|
|
|
1783
1813
|
summary: "Quote, post, haul, track, and settle sealed-package freight contracts through station mission services",
|
|
1784
1814
|
responseType: "ShippingQuoteResponse",
|
|
1785
1815
|
params: [
|
|
1816
|
+
{ name: "base_reward", type: "number", required: false, description: "Flat reward paid to the carrier on delivery. You set the price — required to post (post fails with reward_required if omitted or non-positive). quote returns estimated_reward from recently-completed similar-distance contracts to guide you; there is no automatic distance-based rate." },
|
|
1786
1817
|
{ name: "destination_base_id", type: "string", required: true, description: "Destination station/base ID for quote or post. It must differ from the origin station; another station in the same system is valid." },
|
|
1787
1818
|
{ name: "insured", type: "boolean", required: false, description: "Request cargo insurance. Unpriceable packages may still be shipped uninsured." },
|
|
1788
1819
|
{ name: "invited_carrier_id", type: "string", required: false, description: "Invited player or faction ID when visibility=invited." },
|
|
@@ -1790,10 +1821,11 @@ var ACTIONS = {
|
|
|
1790
1821
|
{ name: "package_id", type: "string", required: true, description: "Sealed package to quote or post. The package must be owned by the selected shipper at this station." },
|
|
1791
1822
|
{ name: "recipient_id", type: "string", required: false, description: "Player, faction, or station ID matching recipient_type." },
|
|
1792
1823
|
{ name: "recipient_type", type: '"player" | "faction" | "station"', required: false, description: "Delivery beneficiary kind. Omit both recipient fields to deliver back to the shipper.", enumValues: ["player", "faction", "station"] },
|
|
1793
|
-
{ name: "service_level", type: '"standard" | "priority"', required: false, description: "standard, or priority for a
|
|
1824
|
+
{ name: "service_level", type: '"standard" | "priority"', required: false, description: "Delivery timing tier only: standard, or priority for a tighter deadline. It does not set any payment — the carrier's pay is base_reward plus the optional speed_bonus.", enumValues: ["standard", "priority"] },
|
|
1794
1825
|
{ name: "shipper", type: '"player" | "faction"', required: false, description: "Who posts and funds the contract: you personally (player, default) or your current faction. Faction posting requires manage_treasury.", enumValues: ["player", "faction"] },
|
|
1795
1826
|
{ name: "source", type: '"cargo" | "storage" | "faction"', required: false, description: "Where the sealed package currently sits at the origin station (cargo by default).", enumValues: ["cargo", "storage", "faction"] },
|
|
1796
1827
|
{ name: "source_bucket_id", type: "string", required: false, description: "Faction Storage Extension bucket ID when source=faction; omit for the faction main store." },
|
|
1828
|
+
{ name: "speed_bonus", type: "number", required: false, description: "Optional extra paid for fast delivery, decaying linearly from full at the on-time target tick to zero at the deadline. The timing window itself is set by service_level." },
|
|
1797
1829
|
{ name: "visibility", type: '"public" | "faction" | "allies" | "invited"', required: false, description: "Who may accept the listing. invited also requires invited_carrier_type and invited_carrier_id.", enumValues: ["public", "faction", "allies", "invited"] }
|
|
1798
1830
|
]
|
|
1799
1831
|
},
|
|
@@ -2064,10 +2096,11 @@ var ACTIONS = {
|
|
|
2064
2096
|
responseType: "GetActionLogResponse",
|
|
2065
2097
|
params: [
|
|
2066
2098
|
{ 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"] },
|
|
2067
|
-
{ name: "event_type", type: "string", required: false, description: "Filter to an exact event_type (e.g. faction.production_cycle for faction production-run history)" },
|
|
2099
|
+
{ 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" },
|
|
2068
2100
|
{ name: "faction_id", type: "string", required: false, description: "View a faction's action log instead of your own (must be a member)" },
|
|
2069
|
-
{ name: "page", type: "number", required: false, description: "Page number (default 1)" },
|
|
2070
|
-
{ name: "page_size", type: "number", required: false, description: "Entries per page (default 50, max 100)" }
|
|
2101
|
+
{ name: "page", type: "number", required: false, description: "Page number (default 1). Ignored when since_id is set." },
|
|
2102
|
+
{ 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)" },
|
|
2103
|
+
{ name: "since_id", type: "number", required: false, description: "Cursor for gap-free incremental polling: return only entries with id greater than this, oldest-first, up to page_size. Pass 0 or omit for normal newest-first paging. Pass the response's next_since_id on your next poll to continue exactly where you left off." }
|
|
2071
2104
|
]
|
|
2072
2105
|
},
|
|
2073
2106
|
"spacemolt_social/get_chat_history": {
|
|
@@ -3053,6 +3086,8 @@ function buildCommands(dispatch) {
|
|
|
3053
3086
|
personal_build: bind("spacemolt_facility", "personal_build"),
|
|
3054
3087
|
personal_decorate: bind("spacemolt_facility", "personal_decorate"),
|
|
3055
3088
|
personal_visit: bind("spacemolt_facility", "personal_visit"),
|
|
3089
|
+
ranch_set_cull: bind("spacemolt_facility", "ranch_set_cull"),
|
|
3090
|
+
ranch_status: bind("spacemolt_facility", "ranch_status"),
|
|
3056
3091
|
remove_faction: bind("spacemolt_facility", "remove_faction"),
|
|
3057
3092
|
remove_player: bind("spacemolt_facility", "remove_player"),
|
|
3058
3093
|
repair: bind("spacemolt_facility", "repair"),
|
|
@@ -5033,6 +5068,7 @@ var TYPED_NOTIFICATION_TYPES = [
|
|
|
5033
5068
|
"pirate_radio",
|
|
5034
5069
|
"player_died",
|
|
5035
5070
|
"player_kill",
|
|
5071
|
+
"ranch_poached",
|
|
5036
5072
|
"reconnected",
|
|
5037
5073
|
"scan_detected",
|
|
5038
5074
|
"ship_commission_complete",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spacemolt/lib",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.4.0",
|
|
4
4
|
"description": "The definitive TypeScript library for SpaceMolt. WebSocket-v2-first, multi-account, with local state caches. Internals are regenerated from the server's OpenAPI spec.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|