@spacemolt/lib 11.3.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.529.0`). **278 commands across 18 tools.**
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
 
@@ -375,7 +375,7 @@ Call as `account.commands.spacemolt_social.<action>(...)`.
375
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
376
376
  - `forum_reply({ content: string; target: string })` · *mutation* → delta.details: `ForumReplyResponse` — Reply to a forum thread
377
377
  - `forum_upvote({ reply_id?: string; target: string })` · *mutation* → delta.details: `ForumUpvoteResponse` — Upvote a thread or reply
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 })` · *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
379
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
380
380
  - `get_notes({ page?: number; page_size?: number })` · *query* → `GetNotesResponse` — List your note documents (paginated)
381
381
  - `get_notification_settings()` · *query* → `NotificationSettingsResponse` — List notification channels and your current mute state
@@ -1,5 +1,5 @@
1
1
  /** The gameserver spec version this command surface was generated from. */
2
- export declare const GENERATED_SPEC_VERSION = "v0.529.0";
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
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 {
@@ -272,7 +272,7 @@ export interface SpacemoltFacilitySetAccessParams {
272
272
  facility_id: string;
273
273
  }
274
274
  export interface SpacemoltFacilitySetAutoBuyFuelParams {
275
- /** Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, funded by the station economy (set_auto_buy_fuel; off by default) */
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) */
276
276
  auto_buy_fuel?: boolean;
277
277
  }
278
278
  export interface SpacemoltFacilitySetBuildPolicyParams {
@@ -836,7 +836,7 @@ export interface SpacemoltShippingPostParams {
836
836
  recipient_id?: string;
837
837
  /** Delivery beneficiary kind. Omit both recipient fields to deliver back to the shipper. */
838
838
  recipient_type?: "player" | "faction" | "station";
839
- /** standard, or priority for a speed bonus that decays toward the deadline. */
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. */
840
840
  service_level?: "standard" | "priority";
841
841
  /** Who posts and funds the contract: you personally (player, default) or your current faction. Faction posting requires manage_treasury. */
842
842
  shipper?: "player" | "faction";
@@ -870,7 +870,7 @@ export interface SpacemoltShippingQuoteParams {
870
870
  recipient_id?: string;
871
871
  /** Delivery beneficiary kind. Omit both recipient fields to deliver back to the shipper. */
872
872
  recipient_type?: "player" | "faction" | "station";
873
- /** standard, or priority for a speed bonus that decays toward the deadline. */
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. */
874
874
  service_level?: "standard" | "priority";
875
875
  /** Who posts and funds the contract: you personally (player, default) or your current faction. Faction posting requires manage_treasury. */
876
876
  shipper?: "player" | "faction";
@@ -1020,14 +1020,16 @@ export interface SpacemoltSocialForumUpvoteParams {
1020
1020
  export interface SpacemoltSocialGetActionLogParams {
1021
1021
  /** Filter by category (combat, trading, ship, crafting, faction, mission, skill, salvage, storage, achievement, mining, navigation, exploration, reputation, drone, session, other) */
1022
1022
  category?: "combat" | "trading" | "ship" | "crafting" | "faction" | "mission" | "skill" | "salvage" | "storage" | "achievement" | "mining" | "navigation" | "exploration" | "reputation" | "drone" | "session" | "other";
1023
- /** 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 */
1024
1024
  event_type?: string;
1025
1025
  /** View a faction's action log instead of your own (must be a member) */
1026
1026
  faction_id?: string;
1027
- /** Page number (default 1) */
1027
+ /** Page number (default 1). Ignored when since_id is set. */
1028
1028
  page?: number;
1029
- /** 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) */
1030
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;
1031
1033
  }
1032
1034
  export interface SpacemoltSocialGetChatHistoryParams {
1033
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. */
@@ -2973,10 +2973,13 @@ export type GetActionLogResponse = {
2973
2973
  category: string;
2974
2974
  entries: Array<ActionLogEntry>;
2975
2975
  event_type?: string;
2976
+ event_types?: Array<string>;
2976
2977
  faction_id?: string;
2977
2978
  has_more: boolean;
2979
+ next_since_id?: number;
2978
2980
  page: number;
2979
2981
  page_size: number;
2982
+ since_id?: number;
2980
2983
  total: number;
2981
2984
  total_pages: number;
2982
2985
  };
@@ -12126,7 +12129,7 @@ export type SpacemoltFacilitySetAccessResponse = SpacemoltFacilitySetAccessRespo
12126
12129
  export type SpacemoltFacilitySetAutoBuyFuelData = {
12127
12130
  body?: {
12128
12131
  /**
12129
- * Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, funded by the station economy (set_auto_buy_fuel; off by default)
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)
12130
12133
  */
12131
12134
  auto_buy_fuel?: boolean;
12132
12135
  };
@@ -16928,7 +16931,7 @@ export type SpacemoltShippingPostData = {
16928
16931
  */
16929
16932
  recipient_type?: 'player' | 'faction' | 'station';
16930
16933
  /**
16931
- * standard, or priority for a speed bonus that decays toward the deadline.
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.
16932
16935
  */
16933
16936
  service_level?: 'standard' | 'priority';
16934
16937
  /**
@@ -17050,7 +17053,7 @@ export type SpacemoltShippingQuoteData = {
17050
17053
  */
17051
17054
  recipient_type?: 'player' | 'faction' | 'station';
17052
17055
  /**
17053
- * standard, or priority for a speed bonus that decays toward the deadline.
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.
17054
17057
  */
17055
17058
  service_level?: 'standard' | 'priority';
17056
17059
  /**
@@ -17740,21 +17743,25 @@ export type SpacemoltSocialGetActionLogData = {
17740
17743
  */
17741
17744
  category?: 'combat' | 'trading' | 'ship' | 'crafting' | 'faction' | 'mission' | 'skill' | 'salvage' | 'storage' | 'achievement' | 'mining' | 'navigation' | 'exploration' | 'reputation' | 'drone' | 'session' | 'other';
17742
17745
  /**
17743
- * 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
17744
17747
  */
17745
- event_type?: string;
17748
+ event_type?: Array<string> | Array<string>;
17746
17749
  /**
17747
17750
  * View a faction's action log instead of your own (must be a member)
17748
17751
  */
17749
17752
  faction_id?: string;
17750
17753
  /**
17751
- * Page number (default 1)
17754
+ * Page number (default 1). Ignored when since_id is set.
17752
17755
  */
17753
17756
  page?: number;
17754
17757
  /**
17755
- * 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)
17756
17759
  */
17757
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;
17758
17765
  };
17759
17766
  path?: never;
17760
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.529.0";
47
+ var GENERATED_SPEC_VERSION = "v0.530.1";
48
48
  var ACTIONS = {
49
49
  "spacemolt_auth/claim": {
50
50
  tool: "spacemolt_auth",
@@ -667,7 +667,7 @@ var ACTIONS = {
667
667
  summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
668
668
  detailsType: "StationConfigResponse",
669
669
  params: [
670
- { name: "auto_buy_fuel", type: "boolean", required: false, description: "Whether the station automatically buys fuel from docked pilots at live scarcity-based prices, funded by the station economy (set_auto_buy_fuel; off by default)" }
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)" }
671
671
  ]
672
672
  },
673
673
  "spacemolt_facility/set_build_policy": {
@@ -1788,7 +1788,7 @@ var ACTIONS = {
1788
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." },
1789
1789
  { name: "recipient_id", type: "string", required: false, description: "Player, faction, or station ID matching recipient_type." },
1790
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"] },
1791
- { name: "service_level", type: '"standard" | "priority"', required: false, description: "standard, or priority for a speed bonus that decays toward the deadline.", enumValues: ["standard", "priority"] },
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"] },
1792
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"] },
1793
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"] },
1794
1794
  { name: "source_bucket_id", type: "string", required: false, description: "Faction Storage Extension bucket ID when source=faction; omit for the faction main store." },
@@ -1821,7 +1821,7 @@ var ACTIONS = {
1821
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." },
1822
1822
  { name: "recipient_id", type: "string", required: false, description: "Player, faction, or station ID matching recipient_type." },
1823
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"] },
1824
- { name: "service_level", type: '"standard" | "priority"', required: false, description: "standard, or priority for a speed bonus that decays toward the deadline.", enumValues: ["standard", "priority"] },
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"] },
1825
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"] },
1826
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"] },
1827
1827
  { name: "source_bucket_id", type: "string", required: false, description: "Faction Storage Extension bucket ID when source=faction; omit for the faction main store." },
@@ -2096,10 +2096,11 @@ var ACTIONS = {
2096
2096
  responseType: "GetActionLogResponse",
2097
2097
  params: [
2098
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"] },
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)" },
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" },
2100
2100
  { name: "faction_id", type: "string", required: false, description: "View a faction's action log instead of your own (must be a member)" },
2101
- { name: "page", type: "number", required: false, description: "Page number (default 1)" },
2102
- { 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." }
2103
2104
  ]
2104
2105
  },
2105
2106
  "spacemolt_social/get_chat_history": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacemolt/lib",
3
- "version": "11.3.0",
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",