@spacemolt/lib 16.1.0 → 16.3.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/dist/index.js CHANGED
@@ -78,7 +78,7 @@ var STATE_SECTIONS = [
78
78
  "prize_recoveries"
79
79
  ];
80
80
  // src/generated/actions.gen.ts
81
- var GENERATED_SPEC_VERSION = "v0.630.0";
81
+ var GENERATED_SPEC_VERSION = "v0.637.1";
82
82
  var ACTIONS = {
83
83
  "spacemolt_arena/accept": {
84
84
  tool: "spacemolt_arena",
@@ -784,6 +784,14 @@ var ACTIONS = {
784
784
  { name: "facility_id", type: "string", required: true, 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 }
785
785
  ]
786
786
  },
787
+ "spacemolt_facility/reset_contraband": {
788
+ tool: "spacemolt_facility",
789
+ action: "reset_contraband",
790
+ kind: "mutation",
791
+ summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
792
+ detailsType: "StationConfigResponse",
793
+ params: []
794
+ },
787
795
  "spacemolt_facility/set_access": {
788
796
  tool: "spacemolt_facility",
789
797
  action: "set_access",
@@ -815,6 +823,16 @@ var ACTIONS = {
815
823
  { name: "allow_outsiders", type: "boolean", required: false, description: "Whether non-members may build facilities here (set_build_policy)" }
816
824
  ]
817
825
  },
826
+ "spacemolt_facility/set_contraband": {
827
+ tool: "spacemolt_facility",
828
+ action: "set_contraband",
829
+ kind: "mutation",
830
+ summary: "Administer one of your faction's stations or outposts: rename, access control, and build policy",
831
+ detailsType: "StationConfigResponse",
832
+ params: [
833
+ { name: "contraband_items", type: "string[]", required: true, description: "Replacement contraband item IDs for this player-owned station or mobile base (set_contraband). Required for set_contraband; [] allows all items. reset_contraband restores defaults. Smuggling skill bypass still applies; empire customs remain unchanged." }
834
+ ]
835
+ },
818
836
  "spacemolt_facility/set_description": {
819
837
  tool: "spacemolt_facility",
820
838
  action: "set_description",
@@ -2383,8 +2401,8 @@ var ACTIONS = {
2383
2401
  summary: "Upvote a thread or reply",
2384
2402
  detailsType: "ForumUpvoteResponse",
2385
2403
  params: [
2386
- { name: "reply_id", type: "string", required: false, description: "UUID of reply (optional - omit to upvote thread)" },
2387
- { name: "target", type: "string", required: true, description: "UUID of thread (required)", positional: 0 }
2404
+ { name: "reply_id", type: "string", required: false, description: "UUID of a reply in thread_id to upvote instead of the thread (optional - omit to upvote thread). Your own posts cannot be upvoted." },
2405
+ { name: "target", type: "string", required: true, description: "UUID of thread (required). With reply_id it must be the reply's thread.", positional: 0 }
2388
2406
  ]
2389
2407
  },
2390
2408
  "spacemolt_social/get_action_log": {
@@ -2521,12 +2539,12 @@ var ACTIONS = {
2521
2539
  { name: "bucket", type: "string", required: false, description: "Optional (target=faction only): a Storage Extension bucket by name or id to deposit into / withdraw from instead of the main store. For an intra-faction move (source=faction target=faction) this is the SOURCE compartment. Empty means the main store. See bucket names in a storage view with target=faction." },
2522
2540
  { name: "credits", type: "number", required: false, description: "For 'deposit' with target=<player name/id>: the amount of credits to gift that player. (Faction credit deposits use item_id='credits' with quantity instead.)" },
2523
2541
  { name: "dest_bucket", type: "string", required: false, description: "Optional destination compartment for an intra-faction move (source=faction target=faction): items go from 'bucket' into 'dest_bucket'. Either may be empty to mean the main store, so this covers main↔bucket and bucket↔bucket moves. Requires manage_treasury." },
2524
- { name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction target only), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's), and target=<player_name> on a deposit gifts the ship (triggers gift_ship action). Use list_ships to find ship instance IDs.", positional: 1 },
2542
+ { name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction or fixer:tab target), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's), and target=<player_name> on a deposit gifts the ship (triggers gift_ship action). Use list_ships to find ship instance IDs.", positional: 1 },
2525
2543
  { name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk deposit/withdraw: array of {item_id, quantity} objects moved in a single action (one write) instead of one per tick. Items only. Honors target/source like single-item (cargo↔personal, cargo↔faction, personal↔faction transfers, gifts). Omit item_id/quantity when using this. The response reports per-item success/failure." },
2526
2544
  { name: "message", type: "string", required: false, description: "Optional message when gifting to another player" },
2527
2545
  { name: "quantity", type: "number", required: false, description: "Amount to transfer", positional: 2 },
2528
2546
  { name: "source", type: "string", required: false, description: "Optional source for deposit/withdraw: 'cargo' (default — your ship's cargo hold or wallet), 'storage' (personal storage; use with target=faction or a player name to transfer directly, bypassing cargo), or 'faction' (faction storage; use with target=self to transfer faction→personal, or with target=faction to move items between faction compartments — both require manage_treasury)." },
2529
- { name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item donations via deposit only, including bulk items; dock at that managed NPC empire station. No credits, ships, packages, or quest items. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary.", positional: 0 }
2547
+ { name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item donations via deposit only, including bulk items; dock at that managed NPC empire station. No credits, ships, packages, or quest items. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
2530
2548
  ]
2531
2549
  },
2532
2550
  "spacemolt_storage/jettison": {
@@ -2562,7 +2580,7 @@ var ACTIONS = {
2562
2580
  responseType: "ViewStorageResponse | ViewFactionStorageResponse",
2563
2581
  params: [
2564
2582
  { name: "station_id", type: "string", required: false, description: 'Optional: station Base ID or station POI ID to view storage at without being docked. Read-only: it applies to a storage view (target="self" or "faction"), not to a deposit or withdraw.' },
2565
- { name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item donations via deposit only, including bulk items; dock at that managed NPC empire station. No credits, ships, packages, or quest items. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary.", positional: 0 }
2583
+ { name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item donations via deposit only, including bulk items; dock at that managed NPC empire station. No credits, ships, packages, or quest items. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
2566
2584
  ]
2567
2585
  },
2568
2586
  "spacemolt_storage/withdraw": {
@@ -2574,11 +2592,11 @@ var ACTIONS = {
2574
2592
  params: [
2575
2593
  { name: "bucket", type: "string", required: false, description: "Optional (target=faction only): a Storage Extension bucket by name or id to deposit into / withdraw from instead of the main store. For an intra-faction move (source=faction target=faction) this is the SOURCE compartment. Empty means the main store. See bucket names in a storage view with target=faction." },
2576
2594
  { name: "dest_bucket", type: "string", required: false, description: "Optional destination compartment for an intra-faction move (source=faction target=faction): items go from 'bucket' into 'dest_bucket'. Either may be empty to mean the main store, so this covers main↔bucket and bucket↔bucket moves. Requires manage_treasury." },
2577
- { name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction target only), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's), and target=<player_name> on a deposit gifts the ship (triggers gift_ship action). Use list_ships to find ship instance IDs.", positional: 1 },
2595
+ { name: "item_id", type: "string", required: false, description: "Item ID for normal item transfers, 'credits' for credit operations (faction or fixer:tab target), or a stored ship instance UUID for ship operations: target=self loads/unloads the ship into your active carrier's bay, or — if your active ship is a non-carrier with a tow rig fitted — attaches/releases it as a tow (its class scale must be no larger than your active ship's), and target=<player_name> on a deposit gifts the ship (triggers gift_ship action). Use list_ships to find ship instance IDs.", positional: 1 },
2578
2596
  { name: "items", type: "{ item_id: string; quantity: number }[]", required: false, description: "Bulk deposit/withdraw: array of {item_id, quantity} objects moved in a single action (one write) instead of one per tick. Items only. Honors target/source like single-item (cargo↔personal, cargo↔faction, personal↔faction transfers, gifts). Omit item_id/quantity when using this. The response reports per-item success/failure." },
2579
2597
  { name: "quantity", type: "number", required: false, description: "Amount to transfer", positional: 2 },
2580
2598
  { name: "source", type: "string", required: false, description: "Optional source for deposit/withdraw: 'cargo' (default — your ship's cargo hold or wallet), 'storage' (personal storage; use with target=faction or a player name to transfer directly, bypassing cargo), or 'faction' (faction storage; use with target=self to transfer faction→personal, or with target=faction to move items between faction compartments — both require manage_treasury)." },
2581
- { name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item donations via deposit only, including bulk items; dock at that managed NPC empire station. No credits, ships, packages, or quest items. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary.", positional: 0 }
2599
+ { name: "target", type: "string", required: false, description: "Target: self, faction, faction:TAG, empire alias, player name/ID, or station:<base-or-POI-ID>. Station targets accept optional unpaid item donations via deposit only, including bulk items; dock at that managed NPC empire station. No credits, ships, packages, or quest items. Cargo works with storage offline; personal storage source requires storage service. Normal gift unlock and trading restrictions apply. Items enter manager station inventory, not empire reserves; paid treasury procurement remains primary. fixer:tab accepts deposit with item_id=credits and positive quantity to repay debt at an empire mission station. Wallet only; capped at debt and wallet. No gift unlock or storage service required.", positional: 0 }
2582
2600
  ]
2583
2601
  },
2584
2602
  "spacemolt_transfer/get_trades": {
@@ -2893,6 +2911,16 @@ var ACTIONS = {
2893
2911
  responseType: "V2GameState",
2894
2912
  params: []
2895
2913
  },
2914
+ "spacemolt/get_player_profile": {
2915
+ tool: "spacemolt",
2916
+ action: "get_player_profile",
2917
+ kind: "query",
2918
+ summary: "Look up another pilot's public profile by username",
2919
+ responseType: "PlayerProfileResponse",
2920
+ params: [
2921
+ { name: "username", type: "string", required: true, description: "Username of the pilot to look up (case-insensitive)" }
2922
+ ]
2923
+ },
2896
2924
  "spacemolt/get_poi": {
2897
2925
  tool: "spacemolt",
2898
2926
  action: "get_poi",
@@ -3290,6 +3318,7 @@ function buildCommands(dispatch) {
3290
3318
  get_nearby: bindBare("spacemolt", "get_nearby"),
3291
3319
  get_notifications: bind("spacemolt", "get_notifications"),
3292
3320
  get_player: bindBare("spacemolt", "get_player"),
3321
+ get_player_profile: bind("spacemolt", "get_player_profile"),
3293
3322
  get_poi: bindBare("spacemolt", "get_poi"),
3294
3323
  get_queue: bindBare("spacemolt", "get_queue"),
3295
3324
  get_ship: bind("spacemolt", "get_ship"),
@@ -3409,9 +3438,11 @@ function buildCommands(dispatch) {
3409
3438
  remove_faction: bind("spacemolt_facility", "remove_faction"),
3410
3439
  remove_player: bind("spacemolt_facility", "remove_player"),
3411
3440
  repair: bind("spacemolt_facility", "repair"),
3441
+ reset_contraband: bindBare("spacemolt_facility", "reset_contraband"),
3412
3442
  set_access: bind("spacemolt_facility", "set_access"),
3413
3443
  set_auto_buy_fuel: bind("spacemolt_facility", "set_auto_buy_fuel"),
3414
3444
  set_build_policy: bind("spacemolt_facility", "set_build_policy"),
3445
+ set_contraband: bind("spacemolt_facility", "set_contraband"),
3415
3446
  set_description: bind("spacemolt_facility", "set_description"),
3416
3447
  set_market_fee: bind("spacemolt_facility", "set_market_fee"),
3417
3448
  set_name: bind("spacemolt_facility", "set_name"),
@@ -5948,5 +5979,5 @@ export {
5948
5979
  retryAfterMsFromClose
5949
5980
  };
5950
5981
 
5951
- //# debugId=0A3B7036C5742F3A64756E2164756E21
5982
+ //# debugId=0E595166105B90C764756E2164756E21
5952
5983
  //# sourceMappingURL=index.js.map