@spacemolt/lib 13.1.0 → 13.1.1

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.577.3`). **289 commands across 18 tools.**
4
+ Every command in `@spacemolt/lib`, generated from the live server spec (`v0.578.1`). **289 commands across 18 tools.**
5
5
 
6
6
  ## How to call a command
7
7
 
@@ -1,5 +1,5 @@
1
1
  /** The gameserver spec version this command surface was generated from. */
2
- export declare const GENERATED_SPEC_VERSION = "v0.577.3";
2
+ export declare const GENERATED_SPEC_VERSION = "v0.578.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" | "active" | "advance" | "allow_faction" | "allow_player" | "analyze_market" | "apply" | "attack" | "ban" | "base_cost" | "board" | "browse_for_sale" | "browse_ships" | "build" | "buy" | "buy_listed_ship" | "buy_listing" | "buy_ship_license" | "cancel" | "cancel_commission" | "cancel_listing" | "cancel_mission" | "cancel_order" | "cancel_ship_buy_order" | "cancel_ship_listing" | "captains_log_add" | "captains_log_delete" | "captains_log_get" | "captains_log_list" | "chat" | "claim" | "claim_prize" | "cloak" | "commission_quote" | "commission_ship" | "commission_status" | "complete_mission" | "completed_missions" | "craft" | "create" | "create_buy_order" | "create_note" | "create_role" | "create_sell_order" | "declare_war" | "decline" | "decline_invite" | "decline_mission" | "delete_note" | "delete_role" | "delete_room" | "deliver" | "deploy" | "deploy_outpost" | "deposit" | "disband" | "disembark" | "dismantle" | "dismantle_outpost" | "distress_signal" | "dock" | "edit" | "edit_role" | "engage" | "espionage" | "estimate_purchase" | "facility_set_description" | "faction_build" | "faction_dismantle" | "faction_list" | "faction_owned" | "faction_personnel" | "faction_upgrade" | "find_route" | "forum_create_thread" | "forum_delete_reply" | "forum_delete_thread" | "forum_get_thread" | "forum_list" | "forum_reply" | "forum_upvote" | "found_station" | "garages" | "get" | "get_achievements" | "get_action_log" | "get_active_missions" | "get_base" | "get_cargo" | "get_chat_history" | "get_commands" | "get_empire_info" | "get_faction_achievements" | "get_guide" | "get_invites" | "get_location" | "get_map" | "get_missions" | "get_nearby" | "get_notes" | "get_notification_settings" | "get_notifications" | "get_player" | "get_poi" | "get_queue" | "get_ship" | "get_skills" | "get_state" | "get_status" | "get_system" | "get_system_agents" | "get_tax_estimate" | "get_trades" | "get_version" | "hunt" | "info" | "inspect" | "install_mod" | "insure" | "intel_status" | "invite" | "jettison" | "job_add" | "job_cancel" | "job_list" | "job_reorder" | "join" | "jump" | "kick" | "leave" | "list" | "list_for_sale" | "list_missions" | "list_passengers" | "list_ship_for_sale" | "list_ships" | "list_station_passengers" | "load" | "load_passenger" | "log" | "login" | "login_link" | "login_link_poll" | "login_token" | "logout" | "loot" | "mine" | "modify_order" | "mute_notifications" | "name" | "owned" | "pay_bounty" | "pay_debt" | "personal_build" | "personal_decorate" | "personal_visit" | "petition" | "place_ship_buy_order" | "policies" | "post" | "post_mission" | "prepay_tax" | "profile" | "promote" | "propose_ally" | "propose_peace" | "query_intel" | "query_trade_intel" | "quote" | "ranch_set_cull" | "ranch_status" | "read_note" | "recall" | "recruit_personnel" | "recycle" | "refit_ship" | "refuel" | "register" | "release" | "reload" | "remove_ally" | "remove_enemy" | "remove_faction" | "remove_player" | "rename_ship" | "renounce" | "repair" | "retreat" | "return" | "rooms" | "scan" | "scan_poi" | "scrap" | "scrap_ship" | "search_systems" | "self_destruct" | "sell" | "sell_ship_to_order" | "service_prize" | "set_access" | "set_auto_buy_fuel" | "set_build_policy" | "set_colors" | "set_description" | "set_enemy" | "set_home" | "set_market_fee" | "set_name" | "set_output_price" | "set_public" | "set_refuel_price" | "set_repair_price" | "set_service_access" | "set_status" | "stance" | "station_info" | "station_set_name" | "status" | "submit_intel" | "submit_trade_intel" | "subscribe_market" | "subscribe_observation" | "summary" | "supply_commission" | "survey_system" | "switch_ship" | "target" | "tax_estimate" | "tow" | "track" | "trade_accept" | "trade_cancel" | "trade_decline" | "trade_intel_status" | "trade_offer" | "transfer" | "transfer_personnel" | "travel" | "treat_personnel" | "types" | "unban" | "undock" | "uninstall_mod" | "unload" | "unload_passenger" | "unmute_notifications" | "unsubscribe_market" | "unsubscribe_observation" | "upgrade" | "upgrades" | "upload" | "use_item" | "view" | "view_completed_mission" | "view_market" | "view_orders" | "view_ship_buy_orders" | "visit_room" | "withdraw" | "withdraw_invite" | "wrecks" | "write_note" | "write_room";
5
5
  export interface ActionParam {
@@ -629,6 +629,9 @@ export type BoardingStateLogEntry = {
629
629
  casualties_occurred?: boolean;
630
630
  defender_casualties?: boolean;
631
631
  destroyed?: boolean;
632
+ /**
633
+ * Observable boarding transition. Terminal values include capture_ready; plundered; withdrawn; attacker_destroyed; attacker_incapacitated; target_destroyed; target_self_destructed; and restart_canceled. plundered means pirates removed eligible cargo and then disengaged without taking the hull.
634
+ */
632
635
  event: string;
633
636
  hull_damage?: number;
634
637
  operation_id: string;
@@ -1008,6 +1011,10 @@ export type CaptainsLogListResponse = {
1008
1011
  export type CaptureLogEntry = {
1009
1012
  boarding_operation_id: string;
1010
1013
  captor_id: string;
1014
+ /**
1015
+ * Kind of combat actor identified by captor_id. Present on newly recorded captures; omitted on historical rows created before captor provenance was recorded.
1016
+ */
1017
+ captor_kind?: 'player' | 'pirate' | 'npc';
1011
1018
  captor_username: string;
1012
1019
  former_owner_id: string;
1013
1020
  former_owner_username: string;
@@ -3174,9 +3181,25 @@ export type FactionScanPoiResponse = {
3174
3181
  system_id?: string;
3175
3182
  };
3176
3183
  export type FactionScanPirateContact = {
3184
+ /**
3185
+ * Stronghold crew this pirate flies for and the pirate-standing counterparty affected by fighting them. Omitted only when no stronghold crew can be resolved.
3186
+ */
3187
+ faction?: string;
3188
+ /**
3189
+ * Human-readable name of the pirate stronghold crew. Omitted only when no stronghold crew can be resolved.
3190
+ */
3191
+ faction_name?: string;
3177
3192
  id: string;
3178
3193
  name?: string;
3194
+ /**
3195
+ * Primary livery color configured by the pirate stronghold crew as #RRGGBB. Omitted when the crew has no configured branding.
3196
+ */
3197
+ primary_color?: string;
3179
3198
  role?: string;
3199
+ /**
3200
+ * Secondary livery color configured by the pirate stronghold crew as #RRGGBB. Omitted when the crew has no configured branding.
3201
+ */
3202
+ secondary_color?: string;
3180
3203
  ship_class?: string;
3181
3204
  };
3182
3205
  export type FactionSetEnemyResponse = {
@@ -5166,22 +5189,87 @@ export type NotificationPirateDestroyed = {
5166
5189
  */
5167
5190
  wreck_system_name?: string;
5168
5191
  };
5169
- /**
5170
- * Pushed to players in range with a pirate_radio_scanner module, carrying an intercepted pirate transmission.
5171
- */
5172
5192
  export type NotificationPirateRadio = {
5173
5193
  /**
5174
- * Template/event key of the intercepted message.
5194
+ * Acting pirate combat ID when the grammatical speaker differs from the actor. Omitted when there is no separate actor.
5195
+ */
5196
+ actor_id?: string;
5197
+ /**
5198
+ * Acting pirate display name when the grammatical speaker differs from the actor. Omitted when there is no separate actor.
5199
+ */
5200
+ actor_name?: string;
5201
+ /**
5202
+ * Battle identity when the transmission refers to a fight.
5203
+ */
5204
+ battle_id?: string;
5205
+ /**
5206
+ * Backward-compatible alias of editorial_class. Both fields always carry the same bounded editorial class.
5207
+ */
5208
+ category: 'ambient' | 'tactical' | 'strategic' | 'outcome';
5209
+ /**
5210
+ * Bounded editorial delivery policy for the public pirate-radio Discord feed; it does not affect in-game delivery.
5211
+ */
5212
+ discord_policy: 'never' | 'batched' | 'immediate';
5213
+ /**
5214
+ * Canonical cross-channel editorial class and alias of category. Both fields always carry the same value.
5215
+ */
5216
+ editorial_class: 'ambient' | 'tactical' | 'strategic' | 'outcome';
5217
+ /**
5218
+ * Bounded pirate-radio template and lifecycle event key.
5219
+ */
5220
+ event_key: string;
5221
+ /**
5222
+ * Pirate stronghold crew key the transmission belongs to.
5175
5223
  */
5176
- event_key?: string;
5224
+ faction_key: string;
5177
5225
  /**
5178
- * Pirate faction key the transmission belongs to.
5226
+ * Human-readable pirate stronghold crew name.
5227
+ */
5228
+ faction_name: string;
5229
+ /**
5230
+ * Ship class ID of the crew flagship when configured.
5231
+ */
5232
+ flagship_ship_class: string;
5233
+ /**
5234
+ * Rendered in-character transmission text.
5179
5235
  */
5180
- faction_key?: string;
5181
5236
  message: string;
5237
+ /**
5238
+ * Stable raid; expedition; breakout; return; or incident identity when the transmission belongs to an operation.
5239
+ */
5240
+ operation_id?: string;
5241
+ /**
5242
+ * Display name of the selected speaker: the acting pirate; operation leader; stronghold control; or boss.
5243
+ */
5182
5244
  pirate_name: string;
5183
- source_poi?: string;
5184
- source_system?: string;
5245
+ /**
5246
+ * Primary pirate-crew livery color as #RRGGBB.
5247
+ */
5248
+ primary_color: string;
5249
+ /**
5250
+ * Bounded machine-readable doctrine or lifecycle reason code when available.
5251
+ */
5252
+ reason_code?: string;
5253
+ /**
5254
+ * Secondary pirate-crew livery color as #RRGGBB.
5255
+ */
5256
+ secondary_color: string;
5257
+ /**
5258
+ * POI ID from which the transmission originated. Empty when no POI can be resolved.
5259
+ */
5260
+ source_poi: string;
5261
+ /**
5262
+ * System ID from which the transmission originated.
5263
+ */
5264
+ source_system: string;
5265
+ /**
5266
+ * Selected grammatical speaker category such as actor; operation_leader; stronghold_control; or boss.
5267
+ */
5268
+ speaker_category: string;
5269
+ /**
5270
+ * Combat actor ID or stable synthetic stronghold-control speaker ID.
5271
+ */
5272
+ speaker_id: string;
5185
5273
  };
5186
5274
  export type NotificationPlayerDied = {
5187
5275
  cause?: string;
@@ -5302,6 +5390,10 @@ export type NotificationShipCaptured = {
5302
5390
  battle_id: string;
5303
5391
  boarding_operation_id: string;
5304
5392
  captor_id: string;
5393
+ /**
5394
+ * Kind of combat actor identified by captor_id. Present on newly emitted captures; omitted only on historical persisted capture records.
5395
+ */
5396
+ captor_kind?: 'player' | 'pirate' | 'npc';
5305
5397
  captor_username: string;
5306
5398
  former_owner_id: string;
5307
5399
  former_owner_username: string;
@@ -5712,6 +5804,14 @@ export type PirateInfo = {
5712
5804
  max_shield?: number;
5713
5805
  name: string;
5714
5806
  pirate_id: string;
5807
+ /**
5808
+ * Primary livery color for this pirate crew as a hex color.
5809
+ */
5810
+ primary_color?: string;
5811
+ /**
5812
+ * Secondary livery color for this pirate crew as a hex color.
5813
+ */
5814
+ secondary_color?: string;
5715
5815
  shield?: number;
5716
5816
  status: string;
5717
5817
  tier: string;
package/dist/index.js CHANGED
@@ -45,7 +45,7 @@ var STATE_SECTIONS = [
45
45
  "prize_recoveries"
46
46
  ];
47
47
  // src/generated/actions.gen.ts
48
- var GENERATED_SPEC_VERSION = "v0.577.3";
48
+ var GENERATED_SPEC_VERSION = "v0.578.1";
49
49
  var ACTIONS = {
50
50
  "spacemolt_auth/claim": {
51
51
  tool: "spacemolt_auth",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacemolt/lib",
3
- "version": "13.1.0",
3
+ "version": "13.1.1",
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",
@@ -33,7 +33,7 @@
33
33
  "prepare": "bun run build",
34
34
  "build": "rm -rf dist && bun build src/index.ts --outfile dist/index.js --target node --format esm && bun build src/node.ts --outfile dist/node.js --target node --format esm && bun x tsc -p tsconfig.build.json && bun run scripts/fix-dts-extensions.ts",
35
35
  "build:smoke": "node scripts/check-build.mjs",
36
- "build:browser-check": "bun build src/index.ts --target browser --outfile /dev/null",
36
+ "build:browser-check": "bun run scripts/check-browser-build.ts",
37
37
  "test": "bun test"
38
38
  },
39
39
  "repository": {