@senators/bifrost-cli 0.0.0-stage → 7.0.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/LICENSE +21 -0
- package/README.md +180 -2
- package/out/accountEditor-CQB91PVf.js +2 -0
- package/out/accountEditor-CQB91PVf.js.map +1 -0
- package/out/achievements-Df5qqpYQ.js +2 -0
- package/out/achievements-Df5qqpYQ.js.map +1 -0
- package/out/active-CnUKpiEo.js +2 -0
- package/out/active-CnUKpiEo.js.map +1 -0
- package/out/alliance-BsPnhi7w.js +2 -0
- package/out/alliance-BsPnhi7w.js.map +1 -0
- package/out/allianceAdmin-Bkyl6ev4.js +2 -0
- package/out/allianceAdmin-Bkyl6ev4.js.map +1 -0
- package/out/arsenal-BMCmAHzv.js +2 -0
- package/out/arsenal-BMCmAHzv.js.map +1 -0
- package/out/ban-BXNvHPMq.js +2 -0
- package/out/ban-BXNvHPMq.js.map +1 -0
- package/out/banList-3DbCToEy.js +2 -0
- package/out/banList-3DbCToEy.js.map +1 -0
- package/out/banList-dT5GF5eO.js +2 -0
- package/out/banList-dT5GF5eO.js.map +1 -0
- package/out/battleHall-C4BALP6S.js +2 -0
- package/out/battleHall-C4BALP6S.js.map +1 -0
- package/out/battleHall-P7Co1jS5.js +2 -0
- package/out/battleHall-P7Co1jS5.js.map +1 -0
- package/out/battleReport-BG0-S-bF.js +2 -0
- package/out/battleReport-BG0-S-bF.js.map +1 -0
- package/out/battleReport-C3PQTXxc.js +2 -0
- package/out/battleReport-C3PQTXxc.js.map +1 -0
- package/out/battleSimulator-BOySErLn.js +2 -0
- package/out/battleSimulator-BOySErLn.js.map +1 -0
- package/out/board-CsNgDx4j.js +2 -0
- package/out/board-CsNgDx4j.js.map +1 -0
- package/out/board-DSCl8eU8.js +2 -0
- package/out/board-DSCl8eU8.js.map +1 -0
- package/out/bonusSummary-Dmm646zj.js +2 -0
- package/out/bonusSummary-Dmm646zj.js.map +1 -0
- package/out/buddyList-B50t-9_g.js +2 -0
- package/out/buddyList-B50t-9_g.js.map +1 -0
- package/out/buildings-CXrMgFyb.js +2 -0
- package/out/buildings-CXrMgFyb.js.map +1 -0
- package/out/catalog-DmSXp_YG.js +2 -0
- package/out/catalog-DmSXp_YG.js.map +1 -0
- package/out/chat-BvtMl-I7.js +2 -0
- package/out/chat-BvtMl-I7.js.map +1 -0
- package/out/clearCache-79cjREI0.js +2 -0
- package/out/clearCache-79cjREI0.js.map +1 -0
- package/out/cli.js +3 -0
- package/out/cli.js.map +1 -0
- package/out/containers-BhguCCkz.js +2 -0
- package/out/containers-BhguCCkz.js.map +1 -0
- package/out/control-IJRy1LDx.js +2 -0
- package/out/control-IJRy1LDx.js.map +1 -0
- package/out/create-D-IygCER.js +2 -0
- package/out/create-D-IygCER.js.map +1 -0
- package/out/createMoon-BMWjdwO0.js +2 -0
- package/out/createMoon-BMWjdwO0.js.map +1 -0
- package/out/cronjob-CCJKDSuv.js +2 -0
- package/out/cronjob-CCJKDSuv.js.map +1 -0
- package/out/dailyBonus-2UwWD4D0.js +2 -0
- package/out/dailyBonus-2UwWD4D0.js.map +1 -0
- package/out/delivery-d8NKP-f1.js +2 -0
- package/out/delivery-d8NKP-f1.js.map +1 -0
- package/out/disclaimer-BmejHZqk.js +2 -0
- package/out/disclaimer-BmejHZqk.js.map +1 -0
- package/out/dump--mJa5m3e.js +2 -0
- package/out/dump--mJa5m3e.js.map +1 -0
- package/out/endpoints-CbZGTbF-.js +2 -0
- package/out/endpoints-CbZGTbF-.js.map +1 -0
- package/out/externalAuth-Dwl3VAHa.js +2 -0
- package/out/externalAuth-Dwl3VAHa.js.map +1 -0
- package/out/findDebris-DOMvMC1l.js +2 -0
- package/out/findDebris-DOMvMC1l.js.map +1 -0
- package/out/fleet-DyITa_Xu.js +2 -0
- package/out/fleet-DyITa_Xu.js.map +1 -0
- package/out/fleetAjax-BGxyUtdi.js +2 -0
- package/out/fleetAjax-BGxyUtdi.js.map +1 -0
- package/out/fleetDealer-n6LM_8IT.js +2 -0
- package/out/fleetDealer-n6LM_8IT.js.map +1 -0
- package/out/fleetMissile-CucQvNmZ.js +2 -0
- package/out/fleetMissile-CucQvNmZ.js.map +1 -0
- package/out/fleetStep1-wp-NgTsC.js +2 -0
- package/out/fleetStep1-wp-NgTsC.js.map +1 -0
- package/out/fleetStep2-C-GzHXyn.js +2 -0
- package/out/fleetStep2-C-GzHXyn.js.map +1 -0
- package/out/fleetStep3-D_fqImWm.js +2 -0
- package/out/fleetStep3-D_fqImWm.js.map +1 -0
- package/out/fleetTable-BpWLh0R1.js +2 -0
- package/out/fleetTable-BpWLh0R1.js.map +1 -0
- package/out/flyingFleet-ClIrGPJz.js +2 -0
- package/out/flyingFleet-ClIrGPJz.js.map +1 -0
- package/out/galaxy-B12wKQUU.js +2 -0
- package/out/galaxy-B12wKQUU.js.map +1 -0
- package/out/get-Cn2hFvGS.js +2 -0
- package/out/get-Cn2hFvGS.js.map +1 -0
- package/out/giveaway-CDWEArOF.js +2 -0
- package/out/giveaway-CDWEArOF.js.map +1 -0
- package/out/growth-C_-C8rLD.js +2 -0
- package/out/growth-C_-C8rLD.js.map +1 -0
- package/out/index.d.ts +29 -0
- package/out/index.d.ts.map +1 -0
- package/out/index.js +1 -0
- package/out/information-CqfqYCH1.js +2 -0
- package/out/information-CqfqYCH1.js.map +1 -0
- package/out/information-DK93hgyE.js +2 -0
- package/out/information-DK93hgyE.js.map +1 -0
- package/out/log-BBE1Jt9i.js +2 -0
- package/out/log-BBE1Jt9i.js.map +1 -0
- package/out/login--4vqysQx.js +2 -0
- package/out/login--4vqysQx.js.map +1 -0
- package/out/login-C_DqRApn.js +2 -0
- package/out/login-C_DqRApn.js.map +1 -0
- package/out/logout-BYnLiMja.js +2 -0
- package/out/logout-BYnLiMja.js.map +1 -0
- package/out/logout-BsCSXzv8.js +2 -0
- package/out/logout-BsCSXzv8.js.map +1 -0
- package/out/lostPassword-Pc_1CUBD.js +2 -0
- package/out/lostPassword-Pc_1CUBD.js.map +1 -0
- package/out/market-DN8cY1tr.js +2 -0
- package/out/market-DN8cY1tr.js.map +1 -0
- package/out/messageList-k_zW_D0G.js +2 -0
- package/out/messageList-k_zW_D0G.js.map +1 -0
- package/out/messages-D461yIe6.js +2 -0
- package/out/messages-D461yIe6.js.map +1 -0
- package/out/missions-5zZtlLIm.js +2 -0
- package/out/missions-5zZtlLIm.js.map +1 -0
- package/out/module-BEPeTBhK.js +2 -0
- package/out/module-BEPeTBhK.js.map +1 -0
- package/out/multiIp-CP3lub1T.js +2 -0
- package/out/multiIp-CP3lub1T.js.map +1 -0
- package/out/new-star-BaVTTcIn.js +2 -0
- package/out/new-star-BaVTTcIn.js.map +1 -0
- package/out/news-BdDDcd-M.js +2 -0
- package/out/news-BdDDcd-M.js.map +1 -0
- package/out/news-Dd1C9JDl.js +2 -0
- package/out/news-Dd1C9JDl.js.map +1 -0
- package/out/notes-DLngBta3.js +2 -0
- package/out/notes-DLngBta3.js.map +1 -0
- package/out/overview-CzcSTNla.js +2 -0
- package/out/overview-CzcSTNla.js.map +1 -0
- package/out/overview-wQWIR_CB.js +2 -0
- package/out/overview-wQWIR_CB.js.map +1 -0
- package/out/password-ZA_1lStC.js +2 -0
- package/out/password-ZA_1lStC.js.map +1 -0
- package/out/phalanx-DaMaoJCT.js +2 -0
- package/out/phalanx-DaMaoJCT.js.map +1 -0
- package/out/planet-CecZ2cAZ.js +2 -0
- package/out/planet-CecZ2cAZ.js.map +1 -0
- package/out/playerCard-BG711xQi.js +2 -0
- package/out/playerCard-BG711xQi.js.map +1 -0
- package/out/post-C_ywAss7.js +2 -0
- package/out/post-C_ywAss7.js.map +1 -0
- package/out/production-D8SZfez8.js +2 -0
- package/out/production-D8SZfez8.js.map +1 -0
- package/out/public-TVVf75qu.js +2 -0
- package/out/public-TVVf75qu.js.map +1 -0
- package/out/questions-NwzZ5_fL.js +2 -0
- package/out/questions-NwzZ5_fL.js.map +1 -0
- package/out/quickEditor-DEJQFH0f.js +2 -0
- package/out/quickEditor-DEJQFH0f.js.map +1 -0
- package/out/records-CDVglYGy.js +2 -0
- package/out/records-CDVglYGy.js.map +1 -0
- package/out/records-Djjz9kxk.js +2 -0
- package/out/records-Djjz9kxk.js.map +1 -0
- package/out/reduceFleet-y8p89weR.js +2 -0
- package/out/reduceFleet-y8p89weR.js.map +1 -0
- package/out/reduceResources-CnGJ9fuf.js +2 -0
- package/out/reduceResources-CnGJ9fuf.js.map +1 -0
- package/out/refreshStatistics-CjGWyNc_.js +2 -0
- package/out/refreshStatistics-CjGWyNc_.js.map +1 -0
- package/out/register-4x5hZcWe.js +2 -0
- package/out/register-4x5hZcWe.js.map +1 -0
- package/out/research-dTK3-tOW.js +2 -0
- package/out/research-dTK3-tOW.js.map +1 -0
- package/out/reset-CHiMI9rj.js +2 -0
- package/out/reset-CHiMI9rj.js.map +1 -0
- package/out/resources-CjnevA41.js +2 -0
- package/out/resources-CjnevA41.js.map +1 -0
- package/out/rights-WPf-j_YF.js +2 -0
- package/out/rights-WPf-j_YF.js.map +1 -0
- package/out/rules-E29jtQRj.js +2 -0
- package/out/rules-E29jtQRj.js.map +1 -0
- package/out/runner-C2bQQS2G.js +43 -0
- package/out/runner-C2bQQS2G.js.map +1 -0
- package/out/scan-RvWZeyyM.js +2 -0
- package/out/scan-RvWZeyyM.js.map +1 -0
- package/out/screens-CZ4g-KNp.js +2 -0
- package/out/screens-CZ4g-KNp.js.map +1 -0
- package/out/search-BYvqiUBF.js +2 -0
- package/out/search-BYvqiUBF.js.map +1 -0
- package/out/search-auPbK2Xc.js +2 -0
- package/out/search-auPbK2Xc.js.map +1 -0
- package/out/sendMessages-B2Uj3PW4.js +2 -0
- package/out/sendMessages-B2Uj3PW4.js.map +1 -0
- package/out/settings-DFFa6Ush.js +2 -0
- package/out/settings-DFFa6Ush.js.map +1 -0
- package/out/settings-Ddez5x9U.js +2 -0
- package/out/settings-Ddez5x9U.js.map +1 -0
- package/out/shared-DoaW4mlX.js +2 -0
- package/out/shared-DoaW4mlX.js.map +1 -0
- package/out/shipyard-DXr745hR.js +2 -0
- package/out/shipyard-DXr745hR.js.map +1 -0
- package/out/shops-CEE02c0g.js +2 -0
- package/out/shops-CEE02c0g.js.map +1 -0
- package/out/snapshot-CrJ8l50N.js +2 -0
- package/out/snapshot-CrJ8l50N.js.map +1 -0
- package/out/social-1Gdni-jZ.js +2 -0
- package/out/social-1Gdni-jZ.js.map +1 -0
- package/out/spec-CrkWB0BN.js +2 -0
- package/out/spec-CrkWB0BN.js.map +1 -0
- package/out/statistics-zg3aVAvW.js +2 -0
- package/out/statistics-zg3aVAvW.js.map +1 -0
- package/out/store-dXG7NoB4.js +2 -0
- package/out/store-dXG7NoB4.js.map +1 -0
- package/out/support-DisUQr57.js +2 -0
- package/out/support-DisUQr57.js.map +1 -0
- package/out/techtree-Ba3FEH5_.js +2 -0
- package/out/techtree-Ba3FEH5_.js.map +1 -0
- package/out/ticket-O_8jTKW8.js +2 -0
- package/out/ticket-O_8jTKW8.js.map +1 -0
- package/out/trader-zFDGaHZ9.js +2 -0
- package/out/trader-zFDGaHZ9.js.map +1 -0
- package/out/universe-DO32RnLQ.js +2 -0
- package/out/universe-DO32RnLQ.js.map +1 -0
- package/out/universeSettings-S7enRJR4.js +2 -0
- package/out/universeSettings-S7enRJR4.js.map +1 -0
- package/out/values-gwcnIHXs.js +2 -0
- package/out/values-gwcnIHXs.js.map +1 -0
- package/out/verify-sYnZ9juV.js +2 -0
- package/out/verify-sYnZ9juV.js.map +1 -0
- package/out/version-Cgs-grc5.js +2 -0
- package/out/version-Cgs-grc5.js.map +1 -0
- package/package.json +65 -4
- package/src/admin.ts +317 -0
- package/src/arguments.ts +323 -0
- package/src/catalog.ts +117 -0
- package/src/cli.ts +29 -0
- package/src/commands/admin/accountEditor.ts +33 -0
- package/src/commands/admin/active.ts +25 -0
- package/src/commands/admin/ban.ts +59 -0
- package/src/commands/admin/clearCache.ts +12 -0
- package/src/commands/admin/create.ts +59 -0
- package/src/commands/admin/cronjob.ts +94 -0
- package/src/commands/admin/dump.ts +25 -0
- package/src/commands/admin/flyingFleet.ts +25 -0
- package/src/commands/admin/giveaway.ts +37 -0
- package/src/commands/admin/information.ts +12 -0
- package/src/commands/admin/log.ts +37 -0
- package/src/commands/admin/login.ts +15 -0
- package/src/commands/admin/logout.ts +12 -0
- package/src/commands/admin/messageList.ts +19 -0
- package/src/commands/admin/module.ts +25 -0
- package/src/commands/admin/multiIp.ts +25 -0
- package/src/commands/admin/news.ts +40 -0
- package/src/commands/admin/overview.ts +12 -0
- package/src/commands/admin/password.ts +18 -0
- package/src/commands/admin/quickEditor.ts +30 -0
- package/src/commands/admin/refreshStatistics.ts +12 -0
- package/src/commands/admin/reset.ts +26 -0
- package/src/commands/admin/rights.ts +68 -0
- package/src/commands/admin/search.ts +31 -0
- package/src/commands/admin/sendMessages.ts +26 -0
- package/src/commands/admin/support.ts +48 -0
- package/src/commands/admin/universe.ts +49 -0
- package/src/commands/admin/universeSettings.ts +32 -0
- package/src/commands/game/achievements.ts +18 -0
- package/src/commands/game/alliance.ts +248 -0
- package/src/commands/game/allianceAdmin.ts +236 -0
- package/src/commands/game/arsenal.ts +12 -0
- package/src/commands/game/banList.ts +20 -0
- package/src/commands/game/battleHall.ts +21 -0
- package/src/commands/game/battleReport.ts +20 -0
- package/src/commands/game/battleSimulator.ts +41 -0
- package/src/commands/game/board.ts +12 -0
- package/src/commands/game/bonusSummary.ts +12 -0
- package/src/commands/game/buddyList.ts +76 -0
- package/src/commands/game/buildings.ts +81 -0
- package/src/commands/game/chat.ts +12 -0
- package/src/commands/game/containers.ts +33 -0
- package/src/commands/game/control.ts +16 -0
- package/src/commands/game/createMoon.ts +28 -0
- package/src/commands/game/dailyBonus.ts +18 -0
- package/src/commands/game/delivery.ts +34 -0
- package/src/commands/game/endpoints.ts +61 -0
- package/src/commands/game/findDebris.ts +16 -0
- package/src/commands/game/fleetAjax.ts +24 -0
- package/src/commands/game/fleetDealer.ts +36 -0
- package/src/commands/game/fleetMissile.ts +25 -0
- package/src/commands/game/fleetStep1.ts +74 -0
- package/src/commands/game/fleetStep2.ts +27 -0
- package/src/commands/game/fleetStep3.ts +28 -0
- package/src/commands/game/fleetTable.ts +96 -0
- package/src/commands/game/galaxy.ts +26 -0
- package/src/commands/game/growth.ts +313 -0
- package/src/commands/game/information.ts +56 -0
- package/src/commands/game/logout.ts +12 -0
- package/src/commands/game/market.ts +67 -0
- package/src/commands/game/messages.ts +129 -0
- package/src/commands/game/notes.ts +65 -0
- package/src/commands/game/overview.ts +49 -0
- package/src/commands/game/phalanx.ts +23 -0
- package/src/commands/game/planet.ts +78 -0
- package/src/commands/game/playerCard.ts +20 -0
- package/src/commands/game/questions.ts +23 -0
- package/src/commands/game/records.ts +16 -0
- package/src/commands/game/reduceFleet.ts +41 -0
- package/src/commands/game/reduceResources.ts +35 -0
- package/src/commands/game/research.ts +80 -0
- package/src/commands/game/resources.ts +49 -0
- package/src/commands/game/scan.ts +12 -0
- package/src/commands/game/search.ts +44 -0
- package/src/commands/game/settings.ts +121 -0
- package/src/commands/game/shipyard.ts +61 -0
- package/src/commands/game/shops.ts +89 -0
- package/src/commands/game/statistics.ts +22 -0
- package/src/commands/game/store.ts +12 -0
- package/src/commands/game/techtree.ts +16 -0
- package/src/commands/game/ticket.ts +44 -0
- package/src/commands/game/trader.ts +51 -0
- package/src/commands/game/workflows/fleet.ts +12 -0
- package/src/commands/game/workflows/snapshot.ts +84 -0
- package/src/commands/game/workflows/social.ts +37 -0
- package/src/commands/http/get.ts +13 -0
- package/src/commands/http/post.ts +44 -0
- package/src/commands/public/banList.ts +21 -0
- package/src/commands/public/battleHall.ts +20 -0
- package/src/commands/public/battleReport.ts +20 -0
- package/src/commands/public/board.ts +20 -0
- package/src/commands/public/disclaimer.ts +20 -0
- package/src/commands/public/externalAuth.ts +17 -0
- package/src/commands/public/index.ts +22 -0
- package/src/commands/public/login.ts +20 -0
- package/src/commands/public/lostPassword.ts +57 -0
- package/src/commands/public/news.ts +20 -0
- package/src/commands/public/register.ts +46 -0
- package/src/commands/public/rules.ts +20 -0
- package/src/commands/public/screens.ts +20 -0
- package/src/commands/public/verify.ts +38 -0
- package/src/commands/rules/new-star.ts +221 -0
- package/src/commands/rules/production.ts +51 -0
- package/src/completion/BifrostCompletion.psm1 +47 -0
- package/src/completion.ts +445 -0
- package/src/connection.ts +106 -0
- package/src/destination.ts +64 -0
- package/src/game.ts +978 -0
- package/src/help.ts +203 -0
- package/src/i18n.ts +45 -0
- package/src/index.ts +2 -0
- package/src/input/admin/accountEditor.ts +156 -0
- package/src/input/admin/ban.ts +23 -0
- package/src/input/admin/create.ts +36 -0
- package/src/input/admin/cronjob.ts +22 -0
- package/src/input/admin/fields.ts +432 -0
- package/src/input/admin/login.ts +9 -0
- package/src/input/admin/messageList.ts +21 -0
- package/src/input/admin/news.ts +29 -0
- package/src/input/admin/quickEditor.ts +115 -0
- package/src/input/admin/records.ts +68 -0
- package/src/input/admin/reset.ts +29 -0
- package/src/input/admin/search.ts +23 -0
- package/src/input/admin/sendMessages.ts +21 -0
- package/src/input/admin/universeSettings.ts +46 -0
- package/src/input/files.ts +65 -0
- package/src/input/game/allianceAdmin.ts +55 -0
- package/src/input/game/battleSimulator.ts +25 -0
- package/src/input/game/fleetStep1.ts +14 -0
- package/src/input/game/settings.ts +46 -0
- package/src/input/game/ticket.ts +16 -0
- package/src/input/parse.ts +173 -0
- package/src/input/paths.ts +392 -0
- package/src/input/protocol/context.ts +10 -0
- package/src/input/protocol/missions.ts +6 -0
- package/src/input/protocol/routes.ts +15 -0
- package/src/input/protocol/settings.ts +126 -0
- package/src/input/protocol/values.ts +13 -0
- package/src/input/public/externalAuth.ts +26 -0
- package/src/input/public/register.ts +9 -0
- package/src/input/rules/new-star.ts +21 -0
- package/src/input/rules/production.ts +14 -0
- package/src/input/shared.ts +51 -0
- package/src/input/spec.ts +155 -0
- package/src/input/values.ts +114 -0
- package/src/input/workflows/fleet.ts +22 -0
- package/src/input/workflows/snapshot.ts +74 -0
- package/src/locales/en-US/commands.ts +377 -0
- package/src/locales/en-US/diagnostics.ts +89 -0
- package/src/locales/en-US.ts +61 -0
- package/src/locales/zh-CN/commands.ts +307 -0
- package/src/locales/zh-CN/diagnostics.ts +81 -0
- package/src/locales/zh-CN.ts +57 -0
- package/src/options.ts +48 -0
- package/src/output.ts +201 -0
- package/src/pointer.ts +46 -0
- package/src/presentation.ts +96 -0
- package/src/public.ts +99 -0
- package/src/registry.ts +67 -0
- package/src/requests.ts +13 -0
- package/src/result.ts +27 -0
- package/src/rules.ts +77 -0
- package/src/runner.ts +214 -0
- package/src/selection.ts +44 -0
- package/src/terminal.ts +27 -0
- package/src/types.ts +110 -0
- package/src/version.ts +11 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { combatReport, requestCronjob, notifications, playerBanner } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand, plainCommand } from '../../catalog.ts'
|
|
4
|
+
import { numberInput, optional, required, stringInput } from '../../input/spec.ts'
|
|
5
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
6
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
7
|
+
|
|
8
|
+
const combatReportSchema = {
|
|
9
|
+
kind: 'object',
|
|
10
|
+
fields: { reportId: required(stringInput) },
|
|
11
|
+
} satisfies InputSpec<Parameters<typeof combatReport>[1]>
|
|
12
|
+
|
|
13
|
+
const requestCronjobSchema = {
|
|
14
|
+
kind: 'object',
|
|
15
|
+
fields: { cronjobId: required(numberInput) },
|
|
16
|
+
} satisfies InputSpec<Parameters<typeof requestCronjob>[1]>
|
|
17
|
+
|
|
18
|
+
const notificationsSchema = {
|
|
19
|
+
kind: 'object',
|
|
20
|
+
fields: {
|
|
21
|
+
attacks: optional(numberInput),
|
|
22
|
+
destruction: optional(numberInput),
|
|
23
|
+
missiles: optional(numberInput),
|
|
24
|
+
},
|
|
25
|
+
} satisfies InputSpec<Parameters<typeof notifications>[1]>
|
|
26
|
+
|
|
27
|
+
const playerBannerSchema = {
|
|
28
|
+
kind: 'object',
|
|
29
|
+
fields: {
|
|
30
|
+
etag: optional(stringInput),
|
|
31
|
+
playerId: required(numberInput),
|
|
32
|
+
},
|
|
33
|
+
} satisfies InputSpec<Parameters<typeof playerBanner>[1]>
|
|
34
|
+
|
|
35
|
+
export const combatReportCommand: NetworkCommand = observedCommand(
|
|
36
|
+
'game',
|
|
37
|
+
'combatReport',
|
|
38
|
+
combatReportSchema,
|
|
39
|
+
combatReport,
|
|
40
|
+
)
|
|
41
|
+
|
|
42
|
+
export const requestCronjobCommand: NetworkCommand = plainCommand(
|
|
43
|
+
'game',
|
|
44
|
+
'requestCronjob',
|
|
45
|
+
requestCronjobSchema,
|
|
46
|
+
requestCronjob,
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
export const notificationsCommand: NetworkCommand = observedCommand(
|
|
50
|
+
'game',
|
|
51
|
+
'notifications',
|
|
52
|
+
notificationsSchema,
|
|
53
|
+
notifications,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
export const playerBannerCommand: NetworkCommand = plainCommand(
|
|
57
|
+
'game',
|
|
58
|
+
'playerBanner',
|
|
59
|
+
playerBannerSchema,
|
|
60
|
+
playerBanner,
|
|
61
|
+
)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { findDebris } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand } from '../../catalog.ts'
|
|
4
|
+
import { planetReferenceInput } from '../../input/shared.ts'
|
|
5
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
6
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
7
|
+
|
|
8
|
+
const findDebrisSchema = planetReferenceInput satisfies InputSpec<Parameters<typeof findDebris>[1]>
|
|
9
|
+
|
|
10
|
+
export const findDebrisCommand: NetworkCommand = observedCommand(
|
|
11
|
+
'game',
|
|
12
|
+
'findDebris',
|
|
13
|
+
findDebrisSchema,
|
|
14
|
+
findDebris,
|
|
15
|
+
'planetId',
|
|
16
|
+
)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { fleetAjax } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand } from '../../catalog.ts'
|
|
4
|
+
import { planetReferenceInput } from '../../input/shared.ts'
|
|
5
|
+
import { enumeration, required } from '../../input/spec.ts'
|
|
6
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
7
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
8
|
+
|
|
9
|
+
const fleetAjaxSchema = {
|
|
10
|
+
kind: 'object',
|
|
11
|
+
fields: {
|
|
12
|
+
mission: required(enumeration([6, 8])),
|
|
13
|
+
origin: required(planetReferenceInput),
|
|
14
|
+
target: required(planetReferenceInput),
|
|
15
|
+
},
|
|
16
|
+
} satisfies InputSpec<Parameters<typeof fleetAjax>[1]>
|
|
17
|
+
|
|
18
|
+
export const fleetAjaxCommand: NetworkCommand = observedCommand(
|
|
19
|
+
'game',
|
|
20
|
+
'fleetAjax',
|
|
21
|
+
fleetAjaxSchema,
|
|
22
|
+
fleetAjax,
|
|
23
|
+
'origin',
|
|
24
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { fleetDealer, fleetDealerSend } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand } from '../../catalog.ts'
|
|
4
|
+
import { planetReferenceInput } from '../../input/shared.ts'
|
|
5
|
+
import { numberInput, required } from '../../input/spec.ts'
|
|
6
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
7
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
8
|
+
|
|
9
|
+
const fleetDealerSchema = planetReferenceInput satisfies InputSpec<
|
|
10
|
+
Parameters<typeof fleetDealer>[1]
|
|
11
|
+
>
|
|
12
|
+
|
|
13
|
+
const fleetDealerSendSchema = {
|
|
14
|
+
kind: 'object',
|
|
15
|
+
fields: {
|
|
16
|
+
planetId: required(numberInput),
|
|
17
|
+
amount: required(numberInput),
|
|
18
|
+
elementId: required(numberInput),
|
|
19
|
+
},
|
|
20
|
+
} satisfies InputSpec<Parameters<typeof fleetDealerSend>[1]>
|
|
21
|
+
|
|
22
|
+
export const fleetDealerCommand: NetworkCommand = observedCommand(
|
|
23
|
+
'game',
|
|
24
|
+
'fleetDealer',
|
|
25
|
+
fleetDealerSchema,
|
|
26
|
+
fleetDealer,
|
|
27
|
+
'planetId',
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
export const fleetDealerSendCommand: NetworkCommand = observedCommand(
|
|
31
|
+
'game',
|
|
32
|
+
'fleetDealerSend',
|
|
33
|
+
fleetDealerSendSchema,
|
|
34
|
+
fleetDealerSend,
|
|
35
|
+
'planetId',
|
|
36
|
+
)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { fleetMissile } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand } from '../../catalog.ts'
|
|
4
|
+
import { locationInput, planetReferenceInput } from '../../input/shared.ts'
|
|
5
|
+
import { numberInput, optional, required } from '../../input/spec.ts'
|
|
6
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
7
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
8
|
+
|
|
9
|
+
const fleetMissileSchema = {
|
|
10
|
+
kind: 'object',
|
|
11
|
+
fields: {
|
|
12
|
+
amount: required(numberInput),
|
|
13
|
+
origin: required(planetReferenceInput),
|
|
14
|
+
primaryTargetId: optional(numberInput),
|
|
15
|
+
target: required(locationInput),
|
|
16
|
+
},
|
|
17
|
+
} satisfies InputSpec<Parameters<typeof fleetMissile>[1]>
|
|
18
|
+
|
|
19
|
+
export const fleetMissileCommand: NetworkCommand = observedCommand(
|
|
20
|
+
'game',
|
|
21
|
+
'fleetMissile',
|
|
22
|
+
fleetMissileSchema,
|
|
23
|
+
fleetMissile,
|
|
24
|
+
'origin',
|
|
25
|
+
)
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fleetStep1,
|
|
3
|
+
fleetStep1CheckTarget,
|
|
4
|
+
fleetStep1DeleteShortcuts,
|
|
5
|
+
fleetStep1SaveShortcuts,
|
|
6
|
+
} from '@senators/bifrost'
|
|
7
|
+
|
|
8
|
+
import { observedCommand } from '../../catalog.ts'
|
|
9
|
+
import { shortcutInput } from '../../input/game/fleetStep1.ts'
|
|
10
|
+
import { elementInput, locationInput, planetReferenceInput } from '../../input/shared.ts'
|
|
11
|
+
import { arrayInput, numberInput, optional, required, stringInput } from '../../input/spec.ts'
|
|
12
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
13
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
14
|
+
|
|
15
|
+
const fleetStep1Schema = {
|
|
16
|
+
kind: 'object',
|
|
17
|
+
fields: {
|
|
18
|
+
origin: required(planetReferenceInput),
|
|
19
|
+
ships: required(elementInput),
|
|
20
|
+
presetName: optional(stringInput),
|
|
21
|
+
},
|
|
22
|
+
} satisfies InputSpec<Parameters<typeof fleetStep1>[1]>
|
|
23
|
+
|
|
24
|
+
const fleetStep1CheckTargetSchema = {
|
|
25
|
+
kind: 'object',
|
|
26
|
+
fields: {
|
|
27
|
+
origin: required(planetReferenceInput),
|
|
28
|
+
target: required(locationInput),
|
|
29
|
+
},
|
|
30
|
+
} satisfies InputSpec<Parameters<typeof fleetStep1CheckTarget>[1]>
|
|
31
|
+
|
|
32
|
+
const fleetStep1DeleteShortcutsSchema = {
|
|
33
|
+
kind: 'object',
|
|
34
|
+
fields: {
|
|
35
|
+
ids: required(arrayInput(numberInput)),
|
|
36
|
+
},
|
|
37
|
+
} satisfies InputSpec<Parameters<typeof fleetStep1DeleteShortcuts>[1]>
|
|
38
|
+
|
|
39
|
+
const fleetStep1SaveShortcutsSchema = {
|
|
40
|
+
kind: 'object',
|
|
41
|
+
fields: {
|
|
42
|
+
shortcuts: required(arrayInput(shortcutInput)),
|
|
43
|
+
},
|
|
44
|
+
} satisfies InputSpec<Parameters<typeof fleetStep1SaveShortcuts>[1]>
|
|
45
|
+
|
|
46
|
+
export const fleetStep1Command: NetworkCommand = observedCommand(
|
|
47
|
+
'game',
|
|
48
|
+
'fleetStep1',
|
|
49
|
+
fleetStep1Schema,
|
|
50
|
+
fleetStep1,
|
|
51
|
+
'origin',
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
export const fleetStep1CheckTargetCommand: NetworkCommand = observedCommand(
|
|
55
|
+
'game',
|
|
56
|
+
'fleetStep1CheckTarget',
|
|
57
|
+
fleetStep1CheckTargetSchema,
|
|
58
|
+
fleetStep1CheckTarget,
|
|
59
|
+
'origin',
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
export const fleetStep1DeleteShortcutsCommand: NetworkCommand = observedCommand(
|
|
63
|
+
'game',
|
|
64
|
+
'fleetStep1DeleteShortcuts',
|
|
65
|
+
fleetStep1DeleteShortcutsSchema,
|
|
66
|
+
fleetStep1DeleteShortcuts,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
export const fleetStep1SaveShortcutsCommand: NetworkCommand = observedCommand(
|
|
70
|
+
'game',
|
|
71
|
+
'fleetStep1SaveShortcuts',
|
|
72
|
+
fleetStep1SaveShortcutsSchema,
|
|
73
|
+
fleetStep1SaveShortcuts,
|
|
74
|
+
)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { fleetStep2 } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand } from '../../catalog.ts'
|
|
4
|
+
import { fleetSpeedInput } from '../../input/protocol/values.ts'
|
|
5
|
+
import { locationInput, planetReferenceInput } from '../../input/shared.ts'
|
|
6
|
+
import { numberInput, optional, required, stringInput } from '../../input/spec.ts'
|
|
7
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
8
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
9
|
+
|
|
10
|
+
const fleetStep2Schema = {
|
|
11
|
+
kind: 'object',
|
|
12
|
+
fields: {
|
|
13
|
+
fleetGroupId: optional(numberInput),
|
|
14
|
+
origin: required(planetReferenceInput),
|
|
15
|
+
speed: required(fleetSpeedInput),
|
|
16
|
+
target: required(locationInput),
|
|
17
|
+
token: required(stringInput),
|
|
18
|
+
},
|
|
19
|
+
} satisfies InputSpec<Parameters<typeof fleetStep2>[1]>
|
|
20
|
+
|
|
21
|
+
export const fleetStep2Command: NetworkCommand = observedCommand(
|
|
22
|
+
'game',
|
|
23
|
+
'fleetStep2',
|
|
24
|
+
fleetStep2Schema,
|
|
25
|
+
fleetStep2,
|
|
26
|
+
'origin',
|
|
27
|
+
)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { fleetStep3 } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand } from '../../catalog.ts'
|
|
4
|
+
import { fleetMissionInput } from '../../input/protocol/missions.ts'
|
|
5
|
+
import { planetReferenceInput, resourceInput } from '../../input/shared.ts'
|
|
6
|
+
import { numberInput, optional, required, stringInput } from '../../input/spec.ts'
|
|
7
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
8
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
9
|
+
|
|
10
|
+
const fleetStep3Schema = {
|
|
11
|
+
kind: 'object',
|
|
12
|
+
fields: {
|
|
13
|
+
cargo: optional(resourceInput),
|
|
14
|
+
mission: required(fleetMissionInput),
|
|
15
|
+
origin: required(planetReferenceInput),
|
|
16
|
+
sector: optional(numberInput),
|
|
17
|
+
stayOption: optional(numberInput),
|
|
18
|
+
token: required(stringInput),
|
|
19
|
+
},
|
|
20
|
+
} satisfies InputSpec<Parameters<typeof fleetStep3>[1]>
|
|
21
|
+
|
|
22
|
+
export const fleetStep3Command: NetworkCommand = observedCommand(
|
|
23
|
+
'game',
|
|
24
|
+
'fleetStep3',
|
|
25
|
+
fleetStep3Schema,
|
|
26
|
+
fleetStep3,
|
|
27
|
+
'origin',
|
|
28
|
+
)
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
fleetTable,
|
|
3
|
+
fleetTableDeletePreset,
|
|
4
|
+
fleetTableInviteACS,
|
|
5
|
+
fleetTableOpenACS,
|
|
6
|
+
fleetTableRecall,
|
|
7
|
+
fleetTableRenameACS,
|
|
8
|
+
} from '@senators/bifrost'
|
|
9
|
+
|
|
10
|
+
import { observedCommand } from '../../catalog.ts'
|
|
11
|
+
import { planetReferenceInput } from '../../input/shared.ts'
|
|
12
|
+
import { numberInput, required, stringInput } from '../../input/spec.ts'
|
|
13
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
14
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
15
|
+
|
|
16
|
+
const fleetTableSchema = planetReferenceInput satisfies InputSpec<Parameters<typeof fleetTable>[1]>
|
|
17
|
+
|
|
18
|
+
const fleetTableDeletePresetSchema = {
|
|
19
|
+
kind: 'object',
|
|
20
|
+
fields: {
|
|
21
|
+
index: required(numberInput),
|
|
22
|
+
},
|
|
23
|
+
} satisfies InputSpec<Parameters<typeof fleetTableDeletePreset>[1]>
|
|
24
|
+
|
|
25
|
+
const fleetTableInviteACSSchema = {
|
|
26
|
+
kind: 'object',
|
|
27
|
+
fields: {
|
|
28
|
+
fleetId: required(numberInput),
|
|
29
|
+
username: required(stringInput),
|
|
30
|
+
},
|
|
31
|
+
} satisfies InputSpec<Parameters<typeof fleetTableInviteACS>[1]>
|
|
32
|
+
|
|
33
|
+
const fleetTableOpenACSSchema = {
|
|
34
|
+
kind: 'object',
|
|
35
|
+
fields: {
|
|
36
|
+
fleetId: required(numberInput),
|
|
37
|
+
},
|
|
38
|
+
} satisfies InputSpec<Parameters<typeof fleetTableOpenACS>[1]>
|
|
39
|
+
|
|
40
|
+
const fleetTableRecallSchema = {
|
|
41
|
+
kind: 'object',
|
|
42
|
+
fields: {
|
|
43
|
+
fleetId: required(numberInput),
|
|
44
|
+
},
|
|
45
|
+
} satisfies InputSpec<Parameters<typeof fleetTableRecall>[1]>
|
|
46
|
+
|
|
47
|
+
const fleetTableRenameACSSchema = {
|
|
48
|
+
kind: 'object',
|
|
49
|
+
fields: {
|
|
50
|
+
fleetId: required(numberInput),
|
|
51
|
+
name: required(stringInput),
|
|
52
|
+
},
|
|
53
|
+
} satisfies InputSpec<Parameters<typeof fleetTableRenameACS>[1]>
|
|
54
|
+
|
|
55
|
+
export const fleetTableCommand: NetworkCommand = observedCommand(
|
|
56
|
+
'game',
|
|
57
|
+
'fleetTable',
|
|
58
|
+
fleetTableSchema,
|
|
59
|
+
fleetTable,
|
|
60
|
+
'planetId',
|
|
61
|
+
)
|
|
62
|
+
|
|
63
|
+
export const fleetTableDeletePresetCommand: NetworkCommand = observedCommand(
|
|
64
|
+
'game',
|
|
65
|
+
'fleetTableDeletePreset',
|
|
66
|
+
fleetTableDeletePresetSchema,
|
|
67
|
+
fleetTableDeletePreset,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
export const fleetTableInviteACSCommand: NetworkCommand = observedCommand(
|
|
71
|
+
'game',
|
|
72
|
+
'fleetTableInviteACS',
|
|
73
|
+
fleetTableInviteACSSchema,
|
|
74
|
+
fleetTableInviteACS,
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
export const fleetTableOpenACSCommand: NetworkCommand = observedCommand(
|
|
78
|
+
'game',
|
|
79
|
+
'fleetTableOpenACS',
|
|
80
|
+
fleetTableOpenACSSchema,
|
|
81
|
+
fleetTableOpenACS,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
export const fleetTableRecallCommand: NetworkCommand = observedCommand(
|
|
85
|
+
'game',
|
|
86
|
+
'fleetTableRecall',
|
|
87
|
+
fleetTableRecallSchema,
|
|
88
|
+
fleetTableRecall,
|
|
89
|
+
)
|
|
90
|
+
|
|
91
|
+
export const fleetTableRenameACSCommand: NetworkCommand = observedCommand(
|
|
92
|
+
'game',
|
|
93
|
+
'fleetTableRenameACS',
|
|
94
|
+
fleetTableRenameACSSchema,
|
|
95
|
+
fleetTableRenameACS,
|
|
96
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { galaxy } from '@senators/bifrost'
|
|
2
|
+
|
|
3
|
+
import { observedCommand } from '../../catalog.ts'
|
|
4
|
+
import { planetReferenceInput } from '../../input/shared.ts'
|
|
5
|
+
import { numberInput, required } from '../../input/spec.ts'
|
|
6
|
+
import type { InputSpec } from '../../input/spec.ts'
|
|
7
|
+
import type { NetworkCommand } from '../../types.ts'
|
|
8
|
+
|
|
9
|
+
const galaxySchema = {
|
|
10
|
+
kind: 'object',
|
|
11
|
+
fields: {
|
|
12
|
+
origin: required(planetReferenceInput),
|
|
13
|
+
target: required({
|
|
14
|
+
kind: 'object',
|
|
15
|
+
fields: { galaxy: required(numberInput), system: required(numberInput) },
|
|
16
|
+
}),
|
|
17
|
+
},
|
|
18
|
+
} satisfies InputSpec<Parameters<typeof galaxy>[1]>
|
|
19
|
+
|
|
20
|
+
export const galaxyCommand: NetworkCommand = observedCommand(
|
|
21
|
+
'game',
|
|
22
|
+
'galaxy',
|
|
23
|
+
galaxySchema,
|
|
24
|
+
galaxy,
|
|
25
|
+
'origin',
|
|
26
|
+
)
|