esim-cli 2026.1202.210 → 2026.1202.212

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.
Files changed (3) hide show
  1. package/dist/esim.js +69 -30
  2. package/dist/index.js +69 -30
  3. package/package.json +1 -1
package/dist/esim.js CHANGED
@@ -7693,10 +7693,11 @@ P = 基础 × (1 + B) × G × H × C
7693
7693
  | 战役掉落 | 按参战击数发放,部位为武器配件、视具或副手,等概率 |
7694
7694
  | 旅行掉落 | 每次旅行 4% 概率,付商务舱票(未触发免费飞行)时 8%;滚动 24 小时内最多 5 件。目的地有开阔水域时掉裤子,否则掉鞋。品质 Q1 50%、Q2 25%、Q3 15%、Q4 10% |
7695
7695
  | 系统拍卖 | 卖家 Item vendor 每个游戏日上架 30 件 Q1、5 件 Q2、1 件 Q3 头盔,起拍价 0.10、0.50、5.00 金币,按普通拍卖竞价 |
7696
- | 赛事奖品 | 可选奖品里有 Q3 武器配件和 Q2 副手 |
7697
7696
  | 其他 | 兑换码、邀请奖励、游戏室等活动 |
7698
7697
  | 其他玩家 | 拍卖、合同或赠送 |
7699
7698
 
7699
+ 赛事奖池可发放装备升级和装备重洗道具。两种奖品均可用 \`esim item\` 查看库存,奖包内容见 \`esim battle prizes\`。
7700
+
7700
7701
  **战役掉落的数量**:一场战役结算时,设全场总出手次数为 N(按次数计,五连击算 5 次)。每档品质掉落 ⌊N ÷ 门槛⌋ 件;练习战单独按本轮计数。若结算赶上每周随机活动中的掉落加成,有效击数按 N × 1.8 计算后再按档取整。每件掉落按下表的权重抽一位参战者:
7701
7702
 
7702
7703
  | 品质 | 每多少次出手掉 1 件 | 谁的中签权重大 |
@@ -7891,7 +7892,7 @@ P = 基础 × (1 + B) × G × H × C
7891
7892
  - \`esim gear merge <a> <b> <c> --dry-run\` 预览三件材料的合成费用与可能部位。\`esim gear split <装备> --dry-run\` 可预览拆分。
7892
7893
  `,
7893
7894
  "wiki/feedback.md": "# 问题反馈\n\n本页介绍怎样向游戏运营报告程序错误或算错的数值,以及被接受后得到的测试员勋章。\n\n- 怀疑出了 bug 或数值不对时,先查本目录 `/skills/esim/wiki/` 下对应的规则说明。只有确认和说明不一致,才提交反馈。\n- 种类:`bug` 是程序错误(报错、页面坏了、命令失败、显示不对);`numbers` 是数值或规则算错(伤害、价格、税、产出、奖励等和规则说明不一致);`other` 是其他意见。\n- 标题 1–100 个字符,正文 1–4000 个字符的纯文本,相关信息(`--context`)最多 1000 个字符。正文写清三件事:做了什么(命令或页面)、期望的结果、实际的结果。相关的战斗、公司、拍卖等 ID 放进 `--context`。\n- 每个公民每个游戏日最多提交 5 条,超出后要等下一个游戏日。同一标题和正文再次提交时返回原来那条,不会新建。\n- 运营处理后,反馈变为 `accepted`(确认是问题)、`rejected`(不是问题,例如和原版规则一致)或 `duplicate`(与另一条重复,给出那条的反馈号),并附回复;你会收到一条通知。关闭后不再改变。\n- 每条被接受的反馈奖励一枚测试员勋章(Tester Medal)和 5 Gold,按勋章通用规则发放。拥有测试员勋章解锁成就 Tester,收集 7 枚解锁成就 Bug trainer。被驳回或判为重复的不发勋章。\n- 反馈只有你自己能看到,不公开;公民档案照常显示测试员勋章数量。\n\n## CLI\n\n- `esim feedback` 列出你的反馈(新的在前),`--status open|accepted|rejected|duplicate` 按状态筛选。\n- `esim feedback submit --kind bug|numbers|other --title <标题> --body @report.txt [--context <相关 ID>]` 提交;`--body -` 从标准输入读正文。\n- `esim feedback show <反馈号>` 查看全文、状态和运营的回复。\n",
7894
- "wiki/groups.md": "# 组织与好友\n\n本页介绍军团、政党和好友关系。按步骤走一遍见教程[加入组织](../tutorials/organizations.md)。\n\n- 未入团的公民可申请本国军团,由团长审批。团长可批准或拒绝申请,批准也受军团容量限制。成员可退出军团。团长可向合资格成员移交领导权,并可指定成员管理军团公司。\n- 军团成员可捐献食物和武器。团长可设置日包及工作条件,也可把团库物资分发给成员。有指定工作条件时,成员须完成当日指定公司的工作才能领取日包。同一公民一个游戏日最多领一次,转团也沿用当天的领取记录。\n- 军团战令指定战役和阵营。团长设置或清除战令,成员可查看。在指定战役为指定阵营造成伤害时,军团级别影响战令的伤害加成。\n- 新加入政党的公民是学徒。党内有学徒、正式成员、委员会成员和主席。主席及委员会成员按各自权限晋升或移除成员。正式成员和委员会成员可在符合等级及党籍条件时参加本党的主席选举。\n- 向其他公民发送好友申请,对方可以接受或拒绝。接受后双方互为好友,任一方都可删除关系。删除或拒绝后可以重新申请。\n\n用 `esim --help` 查找军团、补给、战令、党务和好友命令。\n\n## 军团 CLI\n\n- `esim unit` 查看身份、待审申请、军团资金、日配给和战令。用 `esim unit list --country <国家>` 浏览目录,`esim unit show <军团>` 查看招募信息,`esim unit apply <军团> --message <留言>` 提交申请。同国且无军团的公民可申请。查看名单用 `esim unit members`,退团用 `esim unit leave`,团长须先用 `esim unit leader <公民>` 交接。\n- `esim unit create <名字> --dry-run` 查看建团资格和 50 金的费用。团长用 `esim unit upgrade --dry-run` 查看升一级的费用,用 `esim unit expand --dry-run` 查看加一个成员名额的费用;预览与实际执行给出同样的变化(等级、名额、战令伤害加成、金币之前→之后),钱不够时给出需要、持有和缺口。用 `esim unit profile --body @file` 修改简介,用 `esim unit recruit <招募信息>` 更新招募信息。用 `esim unit applications` 查申请,`esim unit accept <公民>` 或 `esim unit reject <公民>` 审批,结果给出申请人、审批后的成员数与容量和剩余待审数;军团已满时给出成员数、容量和扩容费用。\n- 团长用 `esim unit order <战斗> --side defend` 设置战令,省略阵营默认为防守。结果给出战役、地区、攻守双方、所选阵营、本轮截止时间和成员的战令伤害加成。用 `esim unit order clear` 清除。成员用 `esim unit company add <公司>` 转入自己的公司,团长用 `esim unit company manager <公民> on|off` 任免公司经理。\n- `esim unit funds` 查看资金与捐款。团员用 `esim unit donate <金额> <货币代码>` 捐款,有分发权限时可用 `esim unit pay <公民>[,<公民>…] <金额> <货币代码>` 按每人金额分发。结果给出该币种军团余额和个人余额的之前→之后;余额不足时给出需要、持有和缺口。\n- `esim unit supply` 查看配给和领取状态,`esim unit supply claim` 领取当日配给,`esim unit supply donate <数量> <种类>:<品质>` 捐赠。团长用 `esim unit supply policy <种类>:<品质>=<数量>…` 设定配给,用 `esim unit supply give <公民>[,<公民>…] <数量> <种类>:<品质>` 指定发放。发放和捐赠给出团库存或个人库存的之前→之后;库存不足时给出需要、持有和缺口。不能领取时给出当日配给和指定工作的公司。同一次资金或定向补给转账可以用原 `--request-id` 重放。\n\n- `esim friend` 查看好友和双向待审申请。用 `friend add` 发送申请,用 `friend accept` 或 `friend decline` 处理收到的申请,用 `friend remove` 删除已接受的好友关系。\n- `esim invite` 给出你的邀请链接、邀请人数、到 10 级的人数、因此获得的金币和护甲奖励,以及受邀者列表(`--sort registered|name|xp|gold|country`)。\n",
7895
+ "wiki/groups.md": "# 组织与好友\n\n本页介绍军团、政党和好友关系。按步骤走一遍见教程[加入组织](../tutorials/organizations.md)。\n\n- 未入团的公民可申请本国军团,由团长审批。团长可批准或拒绝申请,批准也受军团容量限制。成员可退出军团。团长可向合资格成员移交领导权,并可指定成员管理军团公司。\n- 军团成员可捐献军团仓库支持的所有原料和产品。团长可组合任意仓库物资设置每日配给及工作条件,也可把团库物资分发给成员。有指定工作条件时,成员须完成当日指定公司的工作才能领取日包。同一公民一个游戏日最多领一次,转团也沿用当天的领取记录。\n- 军团战令指定战役和阵营。团长设置或清除战令,成员可查看。在指定战役为指定阵营造成伤害时,军团级别影响战令的伤害加成。\n- 新加入政党的公民是学徒。党内有学徒、正式成员、委员会成员和主席。主席及委员会成员按各自权限晋升或移除成员。正式成员和委员会成员可在符合等级及党籍条件时参加本党的主席选举。\n- 向其他公民发送好友申请,对方可以接受或拒绝。接受后双方互为好友,任一方都可删除关系。删除或拒绝后可以重新申请。\n\n用 `esim --help` 查找军团、补给、战令、党务和好友命令。\n\n## 军团 CLI\n\n- `esim unit` 查看身份、待审申请、军团资金、日配给和战令。用 `esim unit list --country <国家>` 浏览目录,`esim unit show <军团>` 查看招募信息,`esim unit apply <军团> --message <留言>` 提交申请。同国且无军团的公民可申请。查看名单用 `esim unit members`,退团用 `esim unit leave`,团长须先用 `esim unit leader <公民>` 交接。\n- `esim unit create <名字> --dry-run` 查看建团资格和 50 金的费用。团长用 `esim unit upgrade --dry-run` 查看升一级的费用,用 `esim unit expand --dry-run` 查看加一个成员名额的费用;预览与实际执行给出同样的变化(等级、名额、战令伤害加成、金币之前→之后),钱不够时给出需要、持有和缺口。用 `esim unit profile --body @file` 修改简介,用 `esim unit recruit <招募信息>` 更新招募信息。用 `esim unit applications` 查申请,`esim unit accept <公民>` 或 `esim unit reject <公民>` 审批,结果给出申请人、审批后的成员数与容量和剩余待审数;军团已满时给出成员数、容量和扩容费用。\n- 团长用 `esim unit order <战斗> --side defend` 设置战令,省略阵营默认为防守。结果给出战役、地区、攻守双方、所选阵营、本轮截止时间和成员的战令伤害加成。用 `esim unit order clear` 清除。成员用 `esim unit company add <公司>` 转入自己的公司,团长用 `esim unit company manager <公民> on|off` 任免公司经理。\n- `esim unit funds` 查看资金与捐款。团员用 `esim unit donate <金额> <货币代码>` 捐款,有分发权限时可用 `esim unit pay <公民>[,<公民>…] <金额> <货币代码>` 按每人金额分发。结果给出该币种军团余额和个人余额的之前→之后;余额不足时给出需要、持有和缺口。\n- `esim unit supply` 查看配给和领取状态,`esim unit supply claim` 领取当日配给,`esim unit supply donate <数量> <产品>` 捐赠。团长用 `esim unit supply policy <产品>=<数量>…` 设定配给,例如 `esim unit supply policy rifle=5 ticket_economy=1`。用 `esim unit supply give <公民>[,<公民>…] <数量> <产品>` 指定发放。发放和捐赠给出团库存或个人库存的之前→之后;库存不足时给出需要、持有和缺口。不能领取时给出当日配给和指定工作的公司。同一次资金或定向补给转账可以用原 `--request-id` 重放。\n\n- `esim friend` 查看好友和双向待审申请。用 `friend add` 发送申请,用 `friend accept` 或 `friend decline` 处理收到的申请,用 `friend remove` 删除已接受的好友关系。\n- `esim invite` 给出你的邀请链接、邀请人数、到 10 级的人数、因此获得的金币和护甲奖励,以及受邀者列表(`--sort registered|name|xp|gold|country`)。\n",
7895
7896
  "wiki/items.md": `# 药剂、特殊物品与库存
7896
7897
 
7897
7898
  药剂在一段时间内改变出击的命中档位。特殊物品能恢复每日使用次数,或让战斗增益持续一天,再进入减益期。持久穿戴的物品见[装备系统](equipment.md)。
@@ -14970,10 +14971,10 @@ var catalog = [
14970
14971
  { operationId: "DistributeUnitSupplies", name: "distribute-unit-supplies", method: "POST", path: "/api/units/{id}/supply/distributions", spec: "battle.yaml", write: true, retry: "key", description: "Distribute a stock item to current members as the unit leader. The actor’s request key replays the original private receipt.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["requestKey", "item", "quality", "quantity", "recipientIds"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1, description: "Quantity per recipient." }, recipientIds: { type: "array", minItems: 1, uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, note: { type: "string", maxLength: 100 } } } }, requestKey: "requestKey", requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "request", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, request: { type: "object", additionalProperties: false, required: ["requestKey", "item", "quality", "quantity", "recipientIds"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1, description: "Quantity per recipient." }, recipientIds: { type: "array", minItems: 1, uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, note: { type: "string", maxLength: 100 } } }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "request", "transferredAt"] },
14971
14972
  { operationId: "GetMyUnitFunds", name: "get-my-unit-funds", method: "GET", path: "/api/units/{id}/funds", spec: "battle.yaml", write: false, retry: "unsafe", description: "Read unit balances and the caller’s donation balances. Only the current leader receives the recipient list.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["balances", "personalBalances", "canDistribute", "members"], properties: { balances: { type: "array", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", pattern: "^[1-9][0-9]{0,18}$", description: "Positive balance in minor units, encoded as decimal." } } } }, personalBalances: { type: "array", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", pattern: "^[1-9][0-9]{0,18}$", description: "Positive balance in minor units, encoded as decimal." } } } }, canDistribute: { type: "boolean" }, members: { type: "array", items: { type: "object", required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 }, avatarVersion: { type: "string" } } }, description: "Empty for callers other than the current leader." } } } } }, responseFields: ["balances", "personalBalances", "canDistribute", "members"] },
14972
14973
  { operationId: "TransferUnitFunds", name: "transfer-unit-funds", method: "POST", path: "/api/units/{id}/funds", spec: "battle.yaml", write: true, retry: "key", description: "Donate as a member or distribute as the current leader. Request keys replay the original private receipt for the same actor and operation.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["requestKey", "operation", "asset", "amount"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, operation: { type: "string", enum: ["donate", "distribute"] }, asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", description: "Positive minor-unit amount per recipient, encoded as decimal. Leading zeros and surrounding whitespace are accepted." }, note: { type: "string", maxLength: 100 }, recipientIds: { type: "array", uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, description: "Omit for donations. At least one current member for distributions." } } } }, requestKey: "requestKey", requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "request", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, request: { type: "object", additionalProperties: false, required: ["requestKey", "operation", "asset", "amount"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, operation: { type: "string", enum: ["donate", "distribute"] }, asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", description: "Positive minor-unit amount per recipient, encoded as decimal. Leading zeros and surrounding whitespace are accepted." }, note: { type: "string", maxLength: 100 }, recipientIds: { type: "array", uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, description: "Omit for donations. At least one current member for distributions." } } }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "request", "transferredAt"] },
14973
- { operationId: "GetMyUnitSupplies", name: "get-my-unit-supplies", method: "GET", path: "/api/units/{id}/supplies", spec: "battle.yaml", write: false, retry: "unsafe", description: "Citizen session required. Read the current policy and the caller's ability to claim. A unit member may read their own state. Only the founder receives stock quantities.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14974
- { operationId: "SetUnitSupplyPolicy", name: "set-unit-supply-policy", method: "PUT", path: "/api/units/{id}/supplies/policy", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Replace the supply policy as unit founder. To disable claims, provide an empty items array. A selected company must belong to the founder.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12 } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14975
- { operationId: "DonateUnitSupplies", name: "donate-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/deposits", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Transfer whole items from the member's inventory to the unit. The result lists items moved. Conflicts use insufficient_stock or conflict.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14976
- { operationId: "ClaimUnitSupplies", name: "claim-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/claims", spec: "battle.yaml", write: true, retry: "natural", description: "Citizen session required. Claim the whole supply pack once per Shanghai game day. Changing units does not reset the claim. Conflicts use conflict for eligibility or a previous claim, and insufficient_stock when the pack cannot be issued.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14974
+ { operationId: "GetMyUnitSupplies", name: "get-my-unit-supplies", method: "GET", path: "/api/units/{id}/supplies", spec: "battle.yaml", write: false, retry: "unsafe", description: "Citizen session required. Read the current policy and the caller's ability to claim. A unit member may read their own state. Only the founder receives stock quantities.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14975
+ { operationId: "SetUnitSupplyPolicy", name: "set-unit-supply-policy", method: "PUT", path: "/api/units/{id}/supplies/policy", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Replace the supply policy as unit founder. To disable claims, provide an empty items array. A selected company must belong to the founder.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21 } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14976
+ { operationId: "DonateUnitSupplies", name: "donate-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/deposits", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Transfer whole items from the member's inventory to the unit. The result lists items moved. Conflicts use insufficient_stock or conflict.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 21 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14977
+ { operationId: "ClaimUnitSupplies", name: "claim-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/claims", spec: "battle.yaml", write: true, retry: "natural", description: "Citizen session required. Claim the whole supply pack once per Shanghai game day. Changing units does not reset the claim. Conflicts use conflict for eligibility or a previous claim, and insufficient_stock when the pack cannot be issued.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 21 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14977
14978
  { operationId: "ListCompanies", name: "list-companies", method: "GET", path: "/api/companies", spec: "business.yaml", write: false, retry: "unsafe", description: "Public. Filter companies by land, owner, unit, and item before pagination. Sort by company ID ascending by default, or by employee count descending and company ID ascending with sort=employees. Use a cursor issued for the selected sort.", parameters: [{ name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "land", in: "query", description: "Filter by company region ID.", schema: { type: "integer", format: "int64", minimum: 0 } }, { name: "owner", in: "query", description: "Filter by public owner ID.", schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, { name: "item", in: "query", schema: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] } }, { name: "unitId", in: "query", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "sort", in: "query", schema: { type: "string", enum: ["employees"] } }, { name: "q", in: "query", description: "Case-insensitive substring of the company name, matched like citizen search.", schema: { type: "string", minLength: 1, maxLength: 100 } }, { name: "order", in: "query", description: "Direction of the selected sort (default: ID asc, employees desc). The other direction is the exact reverse of the default order; reuse a cursor only with the same sort and order.", schema: { type: "string", enum: ["asc", "desc"], description: "Direction of a list sort." } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
14978
14979
  { operationId: "CreateCompany", name: "create-company", method: "POST", path: "/api/companies", spec: "business.yaml", write: true, retry: "unsafe", description: "Citizen session required. Found a company at the citizen's current region for 20 gold (2000 in minor units).", parameters: [{ name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["name", "item"], properties: { name: { type: "string", minLength: 3, maxLength: 32 }, item: { description: "Raw factories can only be founded in a high-resource region for their product.", type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["level", "productionBonusPercent", "management", "conversion", "id", "quality", "name", "avatarVersion", "weaponDamageBonusPercent", "stockCompanyId", "unitId", "unitName", "donationTarget", "owner", "ownerSummary", "workers", "land", "item", "workerCount"] },
14979
14980
  { operationId: "GetCompany", name: "get-company", method: "GET", path: "/api/companies/{id}", spec: "business.yaml", write: false, retry: "unsafe", description: "Public. Read a public company profile.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["level", "productionBonusPercent", "management", "conversion", "id", "quality", "name", "avatarVersion", "weaponDamageBonusPercent", "stockCompanyId", "unitId", "unitName", "donationTarget", "owner", "ownerSummary", "workers", "land", "item", "workerCount"] },
@@ -15026,10 +15027,11 @@ var catalog = [
15026
15027
  { operationId: "getAlliance", name: "get-alliance", method: "GET", path: "/api/alliances/{id}", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取联盟详情", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "from", "to", "accepted"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, from: { type: "integer", minimum: 0 }, to: { type: "integer", minimum: 0 }, accepted: { type: "boolean" }, rejected: { type: "boolean" }, endsAt: { type: "string", format: "date-time" }, yes: { type: "integer", minimum: 0, description: "Ballots for the alliance cast by the destination country's congress." }, no: { type: "integer", minimum: 0, description: "Ballots against the alliance cast by the destination country's congress." } } } } }, responseFields: ["id", "from", "to", "accepted", "rejected", "endsAt", "yes", "no"] },
15027
15028
  { operationId: "listStockCompanyShouts", name: "list-stock-company-shouts", method: "GET", path: "/api/stock-companies/{companyId}/shouts", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取一家股份公司的喊话", parameters: [{ name: "companyId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", required: ["id", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, text: { type: "string" }, createdAt: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15028
15029
  { operationId: "createStockCompanyShout", name: "create-stock-company-shout", method: "POST", path: "/api/stock-companies/{companyId}/shouts", spec: "civic.yaml", write: true, retry: "unsafe", description: "股东发表公司喊话", parameters: [{ name: "companyId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text"], properties: { text: { type: "string", minLength: 1, maxLength: 201, description: "最多 201 个 UTF-16 码元。" } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", required: ["id", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, text: { type: "string" }, createdAt: { type: "string", format: "date-time" } } } } }, responseFields: ["id", "author", "text", "createdAt"] },
15029
- { operationId: "listShouts", name: "list-shouts", method: "GET", path: "/api/shouts", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话列表", parameters: [{ name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "channel", in: "query", description: "默认读取全球频道。unit、party、friends 是本人的军团、政党和好友频道,须登录,不接受 country;没有军团或政党时返回空列表。", schema: { type: "string", enum: ["world", "country", "unit", "party", "friends"] } }, { name: "country", in: "query", description: "channel=country 时必填,其他频道不接受此参数。", schema: { type: "integer", minimum: 0 } }, { name: "author", in: "query", schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15030
- { operationId: "createShout", name: "create-shout", method: "POST", path: "/api/shouts", spec: "civic.yaml", write: true, retry: "unsafe", description: "创建喊话", parameters: [{ name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text", "channel"], properties: { channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, alsoTo: { type: "array", maxItems: 4, uniqueItems: true, description: "另外同时发到这些频道,各成一条喊话。", items: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" } }, text: { type: "string", minLength: 1, maxLength: 201 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount"] },
15031
- { operationId: "getShout", name: "get-shout", method: "GET", path: "/api/shouts/{id}", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话详情", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount"] },
15030
+ { operationId: "listShouts", name: "list-shouts", method: "GET", path: "/api/shouts", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话列表", parameters: [{ name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "channel", in: "query", description: "默认读取全球频道。unit、party、friends 是本人的军团、政党和好友频道,须登录,不接受 country;没有军团或政党时返回空列表。", schema: { type: "string", enum: ["world", "country", "unit", "party", "friends"] } }, { name: "country", in: "query", description: "channel=country 时必填,其他频道不接受此参数。", schema: { type: "integer", minimum: 0 } }, { name: "author", in: "query", schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" }, voteCount: { type: "integer", format: "int64", minimum: 0, description: "国家喊话的正票总数。其他频道省略。" }, canVote: { type: "boolean", description: "当查看者有资格且尚未投票时为 true,否则省略。" }, voted: { type: "boolean", description: "当查看者已投票时为 true,否则省略。" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15031
+ { operationId: "createShout", name: "create-shout", method: "POST", path: "/api/shouts", spec: "civic.yaml", write: true, retry: "unsafe", description: "创建喊话", parameters: [{ name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text", "channel"], properties: { channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, alsoTo: { type: "array", maxItems: 4, uniqueItems: true, description: "另外同时发到这些频道,各成一条喊话。", items: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" } }, text: { type: "string", minLength: 1, maxLength: 201 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" }, voteCount: { type: "integer", format: "int64", minimum: 0, description: "国家喊话的正票总数。其他频道省略。" }, canVote: { type: "boolean", description: "当查看者有资格且尚未投票时为 true,否则省略。" }, voted: { type: "boolean", description: "当查看者已投票时为 true,否则省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount", "voteCount", "canVote", "voted"] },
15032
+ { operationId: "getShout", name: "get-shout", method: "GET", path: "/api/shouts/{id}", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话详情", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" }, voteCount: { type: "integer", format: "int64", minimum: 0, description: "国家喊话的正票总数。其他频道省略。" }, canVote: { type: "boolean", description: "当查看者有资格且尚未投票时为 true,否则省略。" }, voted: { type: "boolean", description: "当查看者已投票时为 true,否则省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount", "voteCount", "canVote", "voted"] },
15032
15033
  { operationId: "deleteShout", name: "delete-shout", method: "DELETE", path: "/api/shouts/{id}", spec: "civic.yaml", write: true, retry: "natural", description: "删除自己的频道喊话", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15034
+ { operationId: "voteShout", name: "vote-shout", method: "POST", path: "/api/shouts/{id}/votes", spec: "civic.yaml", write: true, retry: "natural", description: "为本国另一名玩家的国家喊话投一票", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "score"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, score: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["id", "score"] },
15033
15035
  { operationId: "deleteStockCompanyShout", name: "delete-stock-company-shout", method: "DELETE", path: "/api/stock-company-shouts/{id}", spec: "civic.yaml", write: true, retry: "natural", description: "删除自己的股份公司喊话", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15034
15036
  { operationId: "listShoutComments", name: "list-shout-comments", method: "GET", path: "/api/shouts/{id}/comments", spec: "civic.yaml", write: false, retry: "unsafe", description: "读取喊话评论", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "shoutId", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, shoutId: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15035
15037
  { operationId: "createShoutComment", name: "create-shout-comment", method: "POST", path: "/api/shouts/{id}/comments", spec: "civic.yaml", write: true, retry: "unsafe", description: "发表喊话评论", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text"], properties: { text: { type: "string", minLength: 1, maxLength: 201, description: "最多 201 个 UTF-16 码元。" } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "shoutId", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, shoutId: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" } } } } }, responseFields: ["id", "shoutId", "author", "authorName", "authorNation", "text", "createdAt"] },
@@ -15274,9 +15276,9 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15274
15276
  { operationId: "StartShooterRound", name: "start-shooter-round", method: "POST", path: "/api/me/shooter/rounds", spec: "shooter.yaml", write: true, retry: "key", description: "StartShooterRound", parameters: [{ name: "Origin", in: "header", required: true, schema: { type: "string" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["requestId"], properties: { requestId: { type: "string", minLength: 1, maxLength: 128 } } } }, requestKey: "requestId", requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"], properties: { id: { type: "string" }, status: { type: "string", enum: ["active", "victory", "defeated"] }, sequence: { type: "integer" }, startedAt: { type: "string", format: "date-time" }, serverTime: { type: "string", format: "date-time" }, hp: { type: "integer" }, ammo: { type: "integer" }, reloadUntil: { type: ["string", "null"], format: "date-time" }, points: { type: "integer" }, kills: { type: "integer" }, targets: { type: "array", items: { type: "object", required: ["id", "kind", "hp", "spawnedAt", "expiresAt", "x", "y"], properties: { id: { type: "string" }, kind: { type: "string", enum: ["standard", "shield"] }, hp: { type: "integer" }, spawnedAt: { type: "string", format: "date-time" }, expiresAt: { type: "string", format: "date-time" }, x: { type: "number", format: "double", minimum: 0, maximum: 1 }, y: { type: "number", format: "double", minimum: 0, maximum: 1 } } } } } } } }, responseFields: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"] },
15275
15277
  { operationId: "ActInShooterRound", name: "act-in-shooter-round", method: "POST", path: "/api/me/shooter/rounds/{id}/actions", spec: "shooter.yaml", write: true, retry: "natural", description: "ActInShooterRound", parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }, { name: "Origin", in: "header", required: true, schema: { type: "string" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["sequence"], properties: { sequence: { type: "integer", minimum: 1 }, targetId: { type: "string", minLength: 1, maxLength: 128 } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"], properties: { id: { type: "string" }, status: { type: "string", enum: ["active", "victory", "defeated"] }, sequence: { type: "integer" }, startedAt: { type: "string", format: "date-time" }, serverTime: { type: "string", format: "date-time" }, hp: { type: "integer" }, ammo: { type: "integer" }, reloadUntil: { type: ["string", "null"], format: "date-time" }, points: { type: "integer" }, kills: { type: "integer" }, targets: { type: "array", items: { type: "object", required: ["id", "kind", "hp", "spawnedAt", "expiresAt", "x", "y"], properties: { id: { type: "string" }, kind: { type: "string", enum: ["standard", "shield"] }, hp: { type: "integer" }, spawnedAt: { type: "string", format: "date-time" }, expiresAt: { type: "string", format: "date-time" }, x: { type: "number", format: "double", minimum: 0, maximum: 1 }, y: { type: "number", format: "double", minimum: 0, maximum: 1 } } } } } } } }, responseFields: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"] },
15276
15278
  { operationId: "GetShooterRankings", name: "get-shooter-rankings", method: "GET", path: "/api/shooter/rankings", spec: "shooter.yaml", write: false, retry: "unsafe", description: "GetShooterRankings", parameters: [{ name: "page", in: "query", schema: { type: "integer", minimum: 1, maximum: 2147483647, default: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["total", "entries"], properties: { total: { type: "integer", format: "int64" }, entries: { type: "array", items: { type: "object", required: ["rank", "citizenId", "name", "points", "kills", "games"], properties: { rank: { type: "integer", format: "int64" }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, points: { type: "integer", format: "int64" }, kills: { type: "integer", format: "int64" }, games: { type: "integer", format: "int64" } } } } } } } }, responseFields: ["total", "entries"] },
15277
- { operationId: "ListMySpecialItems", name: "list-my-special-items", method: "GET", path: "/api/me/special-items", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItems", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items"], properties: { items: { type: "array", items: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } } } } }, responseFields: ["items"] },
15278
- { operationId: "ListMySpecialItemHistory", name: "list-my-special-item-history", method: "GET", path: "/api/me/special-items/history", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItemHistory", parameters: [{ name: "type", in: "query", description: "Include history for any supplied special item type.", schema: { type: "array", items: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", required: ["id", "type", "quantity", "action", "at"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] }, quantity: { type: "integer", format: "int64", minimum: 1 }, action: { type: "string", enum: ["grant", "redemption", "use", "purchase"] }, at: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15279
- { operationId: "UseSpecialItem", name: "use-special-item", method: "POST", path: "/api/me/special-items/{type}/use", spec: "special-items.yaml", write: true, retry: "unsafe", description: "UseSpecialItem", parameters: [{ name: "type", in: "path", required: true, schema: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } }, responseFields: ["type", "quantity", "effect"] },
15279
+ { operationId: "ListMySpecialItems", name: "list-my-special-items", method: "GET", path: "/api/me/special-items", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItems", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items"], properties: { items: { type: "array", items: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } } } } }, responseFields: ["items"] },
15280
+ { operationId: "ListMySpecialItemHistory", name: "list-my-special-item-history", method: "GET", path: "/api/me/special-items/history", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItemHistory", parameters: [{ name: "type", in: "query", description: "Include history for any supplied special item type.", schema: { type: "array", items: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] } } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", required: ["id", "type", "quantity", "action", "at"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] }, quantity: { type: "integer", format: "int64", minimum: 1 }, action: { type: "string", enum: ["grant", "redemption", "use", "purchase"] }, at: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15281
+ { operationId: "UseSpecialItem", name: "use-special-item", method: "POST", path: "/api/me/special-items/{type}/use", spec: "special-items.yaml", write: true, retry: "unsafe", description: "UseSpecialItem", parameters: [{ name: "type", in: "path", required: true, schema: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } }, responseFields: ["type", "quantity", "effect"] },
15280
15282
  { operationId: "BuySpecialItem", name: "buy-special-item", method: "POST", path: "/api/me/special-items/{type}/buy", spec: "special-items.yaml", write: true, retry: "unsafe", description: "Buy 1 to 10 units at 0.80 Gold each. Medkits cannot be purchased.", parameters: [{ name: "type", in: "path", required: true, schema: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["quantity"], properties: { quantity: { type: "integer", format: "int64", minimum: 1, maximum: 10 } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15281
15283
  { operationId: "ListUnits", name: "list-units", method: "GET", path: "/api/units", spec: "units.yaml", write: false, retry: "unsafe", description: "Public. List military units by ID, member count, or battle points earned today.", parameters: [{ name: "cursor", in: "query", schema: { type: "string", description: "Opaque cursor returned by the previous page. Reuse its filters and sort." } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "page", in: "query", schema: { type: "integer", format: "int64", minimum: 1, description: "One-based directory page. Mutually exclusive with cursor." } }, { name: "nation", in: "query", schema: { type: "integer", minimum: 0, description: "Filter by internal country ID. Requires page." } }, { name: "q", in: "query", description: "Case-insensitive substring of the military unit name, matched like citizen search.", schema: { type: "string", minLength: 1, maxLength: 100 } }, { name: "sort", in: "query", schema: { type: "string", enum: ["members", "battlePointsToday"], "x-enum-varnames": ["UnitSortMembers", "UnitSortBattlePointsToday"] } }, { name: "order", in: "query", description: "Ascending by default for ID order and descending by default for a selected metric. ID breaks ties in the same direction.", schema: { type: "string", enum: ["asc", "desc"] } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor", "total"], properties: { total: { type: "integer", format: "int64", minimum: 0 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "name", "founder", "nation", "memberCount", "battlePoints", "battlePointsToday", "recruitmentMessage", "description"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, name: { type: "string", minLength: 1, maxLength: 48 }, founder: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, nation: { allOf: [{ type: "integer", minimum: 0 }, { description: "The founder’s country when the unit was created." }] }, memberCount: { type: "integer", format: "int64", minimum: 0 }, battlePoints: { type: "integer", format: "int64", minimum: 0, description: "Total damage credited to the military unit at the time of the hit." }, battlePointsToday: { type: "integer", format: "int64", minimum: 0, description: "Damage credited to the military unit from hits during the current game day." }, grade: { type: "integer", minimum: 1, maximum: 4 }, capacity: { type: "integer", minimum: 10 }, recruitmentMessage: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Empty when unset." }, description: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Limited to 2000 UTF-16 code units. Empty when unset." }, avatarVersion: { type: "string", pattern: "^[0-9a-f]{64}$" } } } }, nextCursor: { type: ["string", "null"] }, lastPage: { type: "integer", format: "int64", minimum: 1, description: "Present in numbered directory mode. An empty directory has one page." } } } } }, responseFields: ["total", "items", "nextCursor", "lastPage"] },
15282
15284
  { operationId: "CreateUnit", name: "create-unit", method: "POST", path: "/api/units", spec: "units.yaml", write: true, retry: "natural", description: "Citizen session required. Found a military unit for 50.00 gold (5000 minor units) and join it as its founder. Returns insufficient_funds if the citizen cannot pay the fixed fee.", parameters: [{ name: "Origin", in: "header", required: true, schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["name"], properties: { name: { type: "string", minLength: 1, maxLength: 48 }, description: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Limited to 2000 UTF-16 code units. Empty when unset." }, image: { type: "string", maxLength: 266668, description: "Base64 PNG or JPEG data, up to 200000 decoded bytes. Omit to preserve the current avatar." } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "founder", "nation", "memberCount", "battlePoints", "battlePointsToday", "recruitmentMessage", "description"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, name: { type: "string", minLength: 1, maxLength: 48 }, founder: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, nation: { allOf: [{ type: "integer", minimum: 0 }, { description: "The founder’s country when the unit was created." }] }, memberCount: { type: "integer", format: "int64", minimum: 0 }, battlePoints: { type: "integer", format: "int64", minimum: 0, description: "Total damage credited to the military unit at the time of the hit." }, battlePointsToday: { type: "integer", format: "int64", minimum: 0, description: "Damage credited to the military unit from hits during the current game day." }, grade: { type: "integer", minimum: 1, maximum: 4 }, capacity: { type: "integer", minimum: 10 }, recruitmentMessage: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Empty when unset." }, description: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Limited to 2000 UTF-16 code units. Empty when unset." }, avatarVersion: { type: "string", pattern: "^[0-9a-f]{64}$" } } } } }, responseFields: ["id", "name", "founder", "nation", "memberCount", "battlePoints", "battlePointsToday", "grade", "capacity", "recruitmentMessage", "description", "avatarVersion"] },
@@ -16810,6 +16812,14 @@ function rankForBattlePoints(points) {
16810
16812
  var onOff = positional("state", true, _enum(["on", "off"]));
16811
16813
  var vote = positional("vote", true, _enum(["yes", "no"]));
16812
16814
  var specialItems = _enum(["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"]);
16815
+ var prizeStockNames = new Map([
16816
+ ["equipment_upgrade", "Equipment upgrade"],
16817
+ ["equipment_reshuffle", "Equipment reshuffle"],
16818
+ ["camouflage_iii", "Camouflage III"],
16819
+ ["pain_dealer", "Pain Dealer"],
16820
+ ["bandage", "Bandage"]
16821
+ ]);
16822
+ var specialItemStockTypes = _enum([...specialItems.options, ...prizeStockNames.keys()]);
16813
16823
  var gold = (minor) => amount(number4(minor), "GOLD");
16814
16824
  var named = (id, name) => (typeof id === "number" || typeof id === "string") && typeof name === "string" ? { id, name } : undefined;
16815
16825
  var pageOutput = { items: "Matching records", nextCursor: "Cursor for the next page", truncated: "Whether more records remain" };
@@ -16882,6 +16892,7 @@ var namedProducts = [
16882
16892
  "DEFENSE_SYSTEM",
16883
16893
  "HOSPITAL"
16884
16894
  ];
16895
+ var warehouseProductCodes = [...rawGoods, ...namedProducts];
16885
16896
  var potionKinds = ["jinxed", "finesse", "bloody_mess", "lucky"];
16886
16897
  var enumValues = operations.get("market-orders")?.parameters.find((parameter) => parameter.name === "item")?.schema.enum;
16887
16898
  var items = new Set(Array.isArray(enumValues) ? enumValues.filter((item) => typeof item === "string") : []);
@@ -17677,15 +17688,15 @@ var prizeOrder = string2().transform((value) => value.split(",").map((key) => ke
17677
17688
  var prizes = {
17678
17689
  MEDKITS: { prize: "Medkits 3x", delivers: "3 medkits" },
17679
17690
  EXCEPTIONAL_ELIXIRS: { prize: "Exceptional elixir 1x", delivers: "1 Q6 lucky elixir · 8 hours" },
17680
- EQ_UPGRADE: { prize: "Equipment upgrade 1x", delivers: "1 Q3 accessory" },
17681
- EQ_RESCHUFFLE: { prize: "Equipment reshuffle 1x", delivers: "1 Q2 offhand" },
17682
- CAMUFLAGE_III: { prize: "Camouflage III class 2x", delivers: "2 bunkers" },
17691
+ EQ_UPGRADE: { prize: "Equipment upgrade 1x", delivers: "1 equipment upgrade item" },
17692
+ EQ_RESCHUFFLE: { prize: "Equipment reshuffle 1x", delivers: "1 equipment reshuffle item" },
17693
+ CAMUFLAGE_III: { prize: "Camouflage III class 2x", delivers: "2 Camouflage III items" },
17683
17694
  ...Object.fromEntries([25, 15, 10].map((percent) => [
17684
17695
  `BONUS_DAMAGE_${percent}`,
17685
17696
  { prize: `Damage bonus +${percent}%`, delivers: `+${percent}% damage for 72 hours, activated automatically at settlement` }
17686
17697
  ])),
17687
- PAIN_DEALERS: { prize: "Pain Dealer 1x", delivers: "1 tank" },
17688
- BANDAGES: { prize: "Bandage 2x", delivers: "2 extra spa passes" }
17698
+ PAIN_DEALERS: { prize: "Pain Dealer 1x", delivers: "1 Pain Dealer" },
17699
+ BANDAGES: { prize: "Bandage 2x", delivers: "2 bandages" }
17689
17700
  };
17690
17701
  var prizeRows = (keys) => keys.map((key, index) => ({ rank: index + 1, reward: key, ...prizes[String(key)] ?? { prize: String(key), delivers: "" } }));
17691
17702
  var prizeHelp = [
@@ -19237,8 +19248,7 @@ var requestIdFlag = flag("request-id", string2().regex(/^[A-Za-z0-9_-]{1,128}$/)
19237
19248
  var recipientArg = positional("recipients", true, string2().regex(/^[^,]+(?:,[^,]+)*$/));
19238
19249
  var quantityArg = positional("quantity", true, numericId);
19239
19250
  var productArg = { ...positional("product"), source: "Product code, any case, such as snack or pistol; potions take a grade, such as lucky:q2" };
19240
- var dailySupplyProducts = ["SNACK", "MEAL", "PISTOL", "RIFLE"];
19241
- var dailySupplyChoices = dailySupplyProducts.join(", ").toLowerCase();
19251
+ var dailySupplyChoices = warehouseProductCodes.join(", ").toLowerCase();
19242
19252
  var ranks = ["", "Novice", "Regular", "Veteran", "Elite"];
19243
19253
  var rank = (grade) => ranks[grade ?? 1];
19244
19254
  async function membership(ctx) {
@@ -20330,8 +20340,8 @@ var unit = [
20330
20340
  unitCommand({
20331
20341
  path: ["supply", "policy"],
20332
20342
  summary: `Set daily supplies as leader. Allowed products: ${dailySupplyChoices}.`,
20333
- args: [positional("allocation", true, string2().min(1)), ...Array.from({ length: dailySupplyProducts.length - 1 }, (_, index) => positional(`allocation-${index + 2}`, false))],
20334
- examples: ["esim unit supply policy snack=2 pistol=1"],
20343
+ args: [positional("allocation", true, string2().min(1)), ...Array.from({ length: warehouseProductCodes.length - 1 }, (_, index) => positional(`allocation-${index + 2}`, false))],
20344
+ examples: ["esim unit supply policy rifle=5 ticket_economy=1"],
20335
20345
  operations: ["me", "citizen", "get-my-unit-supplies", "set-unit-supply-policy"],
20336
20346
  confirmWith: confirmSupply,
20337
20347
  output: { daily: "Daily allocation now in force", stock: "Unit stock", changed: "Daily supply allocation before → after" },
@@ -20343,9 +20353,9 @@ var unit = [
20343
20353
  const product = match?.[1];
20344
20354
  if (product === undefined || !quantity.success)
20345
20355
  return usage2("Use product=quantity, for example snack=2.");
20346
- const item = dailySupplyProducts.find((code) => code === product.trim().toUpperCase());
20356
+ const item = warehouseProductCodes.find((code) => code === product.trim().toUpperCase());
20347
20357
  if (!item)
20348
- return usage2(`${product} cannot be included in daily supplies. Choose from ${dailySupplyChoices}.`, "For a one-time distribution from unit stock, see esim unit supply give --help.");
20358
+ return usage2(`${product} cannot be included in daily supplies. Choose from ${dailySupplyChoices}.`);
20349
20359
  return { item, quality: 0, quantity: quantity.data };
20350
20360
  });
20351
20361
  if (new Set(items.map((item) => `${item.item}:${item.quality}`)).size !== items.length)
@@ -26253,6 +26263,8 @@ function shoutBlock(value, scope, whole = false) {
26253
26263
  refText3(entry.country),
26254
26264
  ago(entry, "posted"),
26255
26265
  counted(scope === undefined ? entry.commentCount : entry.replies, "reply", "replies"),
26266
+ typeof entry.voteCount === "number" ? `${entry.voteCount} ${entry.voteCount === 1 ? "vote" : "votes"}` : undefined,
26267
+ entry.voted === true ? "voted" : undefined,
26256
26268
  scope
26257
26269
  ],
26258
26270
  body: text2(entry.text),
@@ -27310,6 +27322,9 @@ function describeNotification({ kind, payload, id, category, createdAt, readAt }
27310
27322
  return [`${hundredths2(quantity)} ${world ? currencyName(world, item) : item}`];
27311
27323
  if (item === "equipment")
27312
27324
  return [`${count2(quantity)} × ${typeof quality === "number" ? `Q${quality} ` : ""}${typeof name === "string" ? name : "equipment"}${typeof reference === "number" ? ` #${reference}` : ""}`];
27325
+ const prize = prizeStockNames.get(item);
27326
+ if (prize)
27327
+ return [`${count2(quantity)} × ${prize}`];
27313
27328
  return [`${count2(quantity)} × ${typeof quality === "number" ? `Q${quality} ` : ""}${item.toLowerCase().replaceAll("_", " ").replace(/^./, (initial) => initial.toUpperCase())}`];
27314
27329
  }) : [];
27315
27330
  text = notificationText[kind](gains.join(", "), sourceText);
@@ -32031,7 +32046,7 @@ var equipmentSources = [
32031
32046
  "travel: 4% a trip (8% on a business ticket), Q1-Q4 boots or legs, at most 5 per 24h — esim travel --help",
32032
32047
  "battle drops: Q1-Q6 weapon, vision or off-hand, shared by hits and damage rank — esim battle list",
32033
32048
  "other players: auctions and contracts — esim auction list --kind equipment, esim contract",
32034
- "cup prizes: country and resistance cup prize pools include a Q3 accessory and a Q2 off-hand — esim battle prizes",
32049
+ "cup prizes: equipment upgrade and reshuffle items go to special item inventory — esim battle prizes, esim item",
32035
32050
  "games room: equipment prizes on the dice and bandit machines — esim game",
32036
32051
  "invites: body armor when 1, 2, 5, 20 and 100 of your recruits reach level 10 — esim invite"
32037
32052
  ];
@@ -34197,7 +34212,9 @@ function entry(item, world, self) {
34197
34212
  country: world ? countryRef(world, item.authorNation) : null,
34198
34213
  text: item.text,
34199
34214
  postedAt: item.createdAt,
34200
- commentCount: "commentCount" in item ? item.commentCount : undefined
34215
+ commentCount: "commentCount" in item ? item.commentCount : undefined,
34216
+ voteCount: "voteCount" in item ? item.voteCount : undefined,
34217
+ voted: "voted" in item ? item.voted : undefined
34201
34218
  };
34202
34219
  }
34203
34220
  var feedView = (data) => {
@@ -34349,6 +34366,7 @@ var shout = [
34349
34366
  comments: renderedComments,
34350
34367
  next: [
34351
34368
  ...!("error" in comments) && authenticated(ctx) ? [{ run: `esim shout comment ${id} --body -` }] : [],
34369
+ ...item.canVote ? [{ run: `esim shout vote ${id}` }] : [],
34352
34370
  ...cursor ? [{ run: `esim shout show ${id} --cursor ${shellWord(cursor)}` }] : []
34353
34371
  ]
34354
34372
  };
@@ -34391,6 +34409,21 @@ var shout = [
34391
34409
  };
34392
34410
  }
34393
34411
  }),
34412
+ command21({
34413
+ path: ["shout", "vote"],
34414
+ summary: "Vote for another citizen's shout in your country",
34415
+ session: true,
34416
+ retry: "natural",
34417
+ args: [shoutId],
34418
+ operations: ["vote-shout"],
34419
+ examples: ["esim shout vote 42"],
34420
+ output: { id: "Shout ID", score: "Current vote count", next: "Shout thread" },
34421
+ async run(ctx, args) {
34422
+ const id = Number(args.id);
34423
+ const result = await ctx.call("vote-shout", { id }, {});
34424
+ return { ...result, next: [{ run: `esim shout show ${id}` }] };
34425
+ }
34426
+ }),
34394
34427
  command21({
34395
34428
  path: ["shout", "delete"],
34396
34429
  summary: "Delete one of your shouts and hide its replies",
@@ -35852,7 +35885,7 @@ var item = [
35852
35885
  summary: "Your special items: what each does, how to get it, how to use it (equipment: esim gear)",
35853
35886
  session: true,
35854
35887
  paged: true,
35855
- args: [{ ...flag("type", specialItems, { source: "Only these special items, in the stock and the history; repeat or comma-separate" }), repeatable: true }],
35888
+ args: [{ ...flag("type", specialItemStockTypes, { source: "Only these special items, in the stock and the history; repeat or comma-separate" }), repeatable: true }],
35856
35889
  examples: ["esim item", "esim item --type steroids", "esim item --type tank,bunker --limit 10"],
35857
35890
  operations: ["get-meal-limits", "list-my-special-items", "list-my-special-item-history", "clock"],
35858
35891
  output: {
@@ -35872,13 +35905,14 @@ var item = [
35872
35905
  const limits = { food: typeof meals.food === "number" ? meals.food : undefined, gift: typeof meals.gift === "number" ? meals.gift : undefined };
35873
35906
  const catalog = types2.filter((type) => !only.length || only.includes(type)).map((type) => catalogEntry(items.find((entry) => entry.type === type), type, limits, ctx.now)).sort((a, b) => Number(b.quantity > 0) - Number(a.quantity > 0));
35874
35907
  if (only.length) {
35875
- const next = only.length === 1 ? [{ run: `esim item use ${only[0]}` }, ...only[0] === "medkit" ? [] : [{ run: `esim item buy ${only[0]} --dry-run` }]] : [];
35908
+ const [selected] = only;
35909
+ const next = only.length === 1 && selected && types2.includes(selected) ? [{ run: `esim item use ${selected}` }, ...selected === "medkit" ? [] : [{ run: `esim item buy ${selected} --dry-run` }]] : [];
35876
35910
  return { stock: items.filter((entry) => only.includes(String(entry.type))), catalog, history, ...next.length ? { next } : {} };
35877
35911
  }
35878
35912
  return { stock: items, catalog, history, next: nextSteps(catalog) };
35879
35913
  },
35880
35914
  view: (data) => {
35881
- const { stock: _stock, catalog, ...rest } = row2(data);
35915
+ const { stock, catalog, ...rest } = row2(data);
35882
35916
  const entries = rows(catalog);
35883
35917
  const owned = entries.filter((entry) => number4(entry.quantity) > 0).length;
35884
35918
  const blocks = entries.map((entry) => block({
@@ -35890,8 +35924,13 @@ var item = [
35890
35924
  ].join(`
35891
35925
  `)
35892
35926
  }));
35927
+ const prizes = rows(stock).flatMap((entry) => {
35928
+ const name = prizeStockNames.get(String(entry.type));
35929
+ const quantity = number4(entry.quantity);
35930
+ return name && quantity > 0 ? [block({ head: [name, `own ${quantity}`], body: undefined })] : [];
35931
+ });
35893
35932
  return {
35894
- "special items": { "": `you own ${owned} of ${entries.length} kinds · auction: esim auction list --kind special`, items: blocks },
35933
+ "special items": { "": `you own ${owned + prizes.length} of ${entries.length + prizes.length} kinds · auction: esim auction list --kind special`, items: [...blocks, ...prizes] },
35895
35934
  equipment: "not a special item — esim gear",
35896
35935
  ...rest
35897
35936
  };
@@ -38080,7 +38119,7 @@ function saveCredentials(store, credentials) {
38080
38119
  }
38081
38120
 
38082
38121
  // version.ts
38083
- var version2 = "2026.1202.210";
38122
+ var version2 = "2026.1202.212";
38084
38123
  var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
38085
38124
  var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
38086
38125
  var releaseUrl = (release) => `https://github.com/CorrectRoadH/open-esim/releases/download/cli-v${release}`;
package/dist/index.js CHANGED
@@ -7689,10 +7689,11 @@ P = 基础 × (1 + B) × G × H × C
7689
7689
  | 战役掉落 | 按参战击数发放,部位为武器配件、视具或副手,等概率 |
7690
7690
  | 旅行掉落 | 每次旅行 4% 概率,付商务舱票(未触发免费飞行)时 8%;滚动 24 小时内最多 5 件。目的地有开阔水域时掉裤子,否则掉鞋。品质 Q1 50%、Q2 25%、Q3 15%、Q4 10% |
7691
7691
  | 系统拍卖 | 卖家 Item vendor 每个游戏日上架 30 件 Q1、5 件 Q2、1 件 Q3 头盔,起拍价 0.10、0.50、5.00 金币,按普通拍卖竞价 |
7692
- | 赛事奖品 | 可选奖品里有 Q3 武器配件和 Q2 副手 |
7693
7692
  | 其他 | 兑换码、邀请奖励、游戏室等活动 |
7694
7693
  | 其他玩家 | 拍卖、合同或赠送 |
7695
7694
 
7695
+ 赛事奖池可发放装备升级和装备重洗道具。两种奖品均可用 \`esim item\` 查看库存,奖包内容见 \`esim battle prizes\`。
7696
+
7696
7697
  **战役掉落的数量**:一场战役结算时,设全场总出手次数为 N(按次数计,五连击算 5 次)。每档品质掉落 ⌊N ÷ 门槛⌋ 件;练习战单独按本轮计数。若结算赶上每周随机活动中的掉落加成,有效击数按 N × 1.8 计算后再按档取整。每件掉落按下表的权重抽一位参战者:
7697
7698
 
7698
7699
  | 品质 | 每多少次出手掉 1 件 | 谁的中签权重大 |
@@ -7887,7 +7888,7 @@ P = 基础 × (1 + B) × G × H × C
7887
7888
  - \`esim gear merge <a> <b> <c> --dry-run\` 预览三件材料的合成费用与可能部位。\`esim gear split <装备> --dry-run\` 可预览拆分。
7888
7889
  `,
7889
7890
  "wiki/feedback.md": "# 问题反馈\n\n本页介绍怎样向游戏运营报告程序错误或算错的数值,以及被接受后得到的测试员勋章。\n\n- 怀疑出了 bug 或数值不对时,先查本目录 `/skills/esim/wiki/` 下对应的规则说明。只有确认和说明不一致,才提交反馈。\n- 种类:`bug` 是程序错误(报错、页面坏了、命令失败、显示不对);`numbers` 是数值或规则算错(伤害、价格、税、产出、奖励等和规则说明不一致);`other` 是其他意见。\n- 标题 1–100 个字符,正文 1–4000 个字符的纯文本,相关信息(`--context`)最多 1000 个字符。正文写清三件事:做了什么(命令或页面)、期望的结果、实际的结果。相关的战斗、公司、拍卖等 ID 放进 `--context`。\n- 每个公民每个游戏日最多提交 5 条,超出后要等下一个游戏日。同一标题和正文再次提交时返回原来那条,不会新建。\n- 运营处理后,反馈变为 `accepted`(确认是问题)、`rejected`(不是问题,例如和原版规则一致)或 `duplicate`(与另一条重复,给出那条的反馈号),并附回复;你会收到一条通知。关闭后不再改变。\n- 每条被接受的反馈奖励一枚测试员勋章(Tester Medal)和 5 Gold,按勋章通用规则发放。拥有测试员勋章解锁成就 Tester,收集 7 枚解锁成就 Bug trainer。被驳回或判为重复的不发勋章。\n- 反馈只有你自己能看到,不公开;公民档案照常显示测试员勋章数量。\n\n## CLI\n\n- `esim feedback` 列出你的反馈(新的在前),`--status open|accepted|rejected|duplicate` 按状态筛选。\n- `esim feedback submit --kind bug|numbers|other --title <标题> --body @report.txt [--context <相关 ID>]` 提交;`--body -` 从标准输入读正文。\n- `esim feedback show <反馈号>` 查看全文、状态和运营的回复。\n",
7890
- "wiki/groups.md": "# 组织与好友\n\n本页介绍军团、政党和好友关系。按步骤走一遍见教程[加入组织](../tutorials/organizations.md)。\n\n- 未入团的公民可申请本国军团,由团长审批。团长可批准或拒绝申请,批准也受军团容量限制。成员可退出军团。团长可向合资格成员移交领导权,并可指定成员管理军团公司。\n- 军团成员可捐献食物和武器。团长可设置日包及工作条件,也可把团库物资分发给成员。有指定工作条件时,成员须完成当日指定公司的工作才能领取日包。同一公民一个游戏日最多领一次,转团也沿用当天的领取记录。\n- 军团战令指定战役和阵营。团长设置或清除战令,成员可查看。在指定战役为指定阵营造成伤害时,军团级别影响战令的伤害加成。\n- 新加入政党的公民是学徒。党内有学徒、正式成员、委员会成员和主席。主席及委员会成员按各自权限晋升或移除成员。正式成员和委员会成员可在符合等级及党籍条件时参加本党的主席选举。\n- 向其他公民发送好友申请,对方可以接受或拒绝。接受后双方互为好友,任一方都可删除关系。删除或拒绝后可以重新申请。\n\n用 `esim --help` 查找军团、补给、战令、党务和好友命令。\n\n## 军团 CLI\n\n- `esim unit` 查看身份、待审申请、军团资金、日配给和战令。用 `esim unit list --country <国家>` 浏览目录,`esim unit show <军团>` 查看招募信息,`esim unit apply <军团> --message <留言>` 提交申请。同国且无军团的公民可申请。查看名单用 `esim unit members`,退团用 `esim unit leave`,团长须先用 `esim unit leader <公民>` 交接。\n- `esim unit create <名字> --dry-run` 查看建团资格和 50 金的费用。团长用 `esim unit upgrade --dry-run` 查看升一级的费用,用 `esim unit expand --dry-run` 查看加一个成员名额的费用;预览与实际执行给出同样的变化(等级、名额、战令伤害加成、金币之前→之后),钱不够时给出需要、持有和缺口。用 `esim unit profile --body @file` 修改简介,用 `esim unit recruit <招募信息>` 更新招募信息。用 `esim unit applications` 查申请,`esim unit accept <公民>` 或 `esim unit reject <公民>` 审批,结果给出申请人、审批后的成员数与容量和剩余待审数;军团已满时给出成员数、容量和扩容费用。\n- 团长用 `esim unit order <战斗> --side defend` 设置战令,省略阵营默认为防守。结果给出战役、地区、攻守双方、所选阵营、本轮截止时间和成员的战令伤害加成。用 `esim unit order clear` 清除。成员用 `esim unit company add <公司>` 转入自己的公司,团长用 `esim unit company manager <公民> on|off` 任免公司经理。\n- `esim unit funds` 查看资金与捐款。团员用 `esim unit donate <金额> <货币代码>` 捐款,有分发权限时可用 `esim unit pay <公民>[,<公民>…] <金额> <货币代码>` 按每人金额分发。结果给出该币种军团余额和个人余额的之前→之后;余额不足时给出需要、持有和缺口。\n- `esim unit supply` 查看配给和领取状态,`esim unit supply claim` 领取当日配给,`esim unit supply donate <数量> <种类>:<品质>` 捐赠。团长用 `esim unit supply policy <种类>:<品质>=<数量>…` 设定配给,用 `esim unit supply give <公民>[,<公民>…] <数量> <种类>:<品质>` 指定发放。发放和捐赠给出团库存或个人库存的之前→之后;库存不足时给出需要、持有和缺口。不能领取时给出当日配给和指定工作的公司。同一次资金或定向补给转账可以用原 `--request-id` 重放。\n\n- `esim friend` 查看好友和双向待审申请。用 `friend add` 发送申请,用 `friend accept` 或 `friend decline` 处理收到的申请,用 `friend remove` 删除已接受的好友关系。\n- `esim invite` 给出你的邀请链接、邀请人数、到 10 级的人数、因此获得的金币和护甲奖励,以及受邀者列表(`--sort registered|name|xp|gold|country`)。\n",
7891
+ "wiki/groups.md": "# 组织与好友\n\n本页介绍军团、政党和好友关系。按步骤走一遍见教程[加入组织](../tutorials/organizations.md)。\n\n- 未入团的公民可申请本国军团,由团长审批。团长可批准或拒绝申请,批准也受军团容量限制。成员可退出军团。团长可向合资格成员移交领导权,并可指定成员管理军团公司。\n- 军团成员可捐献军团仓库支持的所有原料和产品。团长可组合任意仓库物资设置每日配给及工作条件,也可把团库物资分发给成员。有指定工作条件时,成员须完成当日指定公司的工作才能领取日包。同一公民一个游戏日最多领一次,转团也沿用当天的领取记录。\n- 军团战令指定战役和阵营。团长设置或清除战令,成员可查看。在指定战役为指定阵营造成伤害时,军团级别影响战令的伤害加成。\n- 新加入政党的公民是学徒。党内有学徒、正式成员、委员会成员和主席。主席及委员会成员按各自权限晋升或移除成员。正式成员和委员会成员可在符合等级及党籍条件时参加本党的主席选举。\n- 向其他公民发送好友申请,对方可以接受或拒绝。接受后双方互为好友,任一方都可删除关系。删除或拒绝后可以重新申请。\n\n用 `esim --help` 查找军团、补给、战令、党务和好友命令。\n\n## 军团 CLI\n\n- `esim unit` 查看身份、待审申请、军团资金、日配给和战令。用 `esim unit list --country <国家>` 浏览目录,`esim unit show <军团>` 查看招募信息,`esim unit apply <军团> --message <留言>` 提交申请。同国且无军团的公民可申请。查看名单用 `esim unit members`,退团用 `esim unit leave`,团长须先用 `esim unit leader <公民>` 交接。\n- `esim unit create <名字> --dry-run` 查看建团资格和 50 金的费用。团长用 `esim unit upgrade --dry-run` 查看升一级的费用,用 `esim unit expand --dry-run` 查看加一个成员名额的费用;预览与实际执行给出同样的变化(等级、名额、战令伤害加成、金币之前→之后),钱不够时给出需要、持有和缺口。用 `esim unit profile --body @file` 修改简介,用 `esim unit recruit <招募信息>` 更新招募信息。用 `esim unit applications` 查申请,`esim unit accept <公民>` 或 `esim unit reject <公民>` 审批,结果给出申请人、审批后的成员数与容量和剩余待审数;军团已满时给出成员数、容量和扩容费用。\n- 团长用 `esim unit order <战斗> --side defend` 设置战令,省略阵营默认为防守。结果给出战役、地区、攻守双方、所选阵营、本轮截止时间和成员的战令伤害加成。用 `esim unit order clear` 清除。成员用 `esim unit company add <公司>` 转入自己的公司,团长用 `esim unit company manager <公民> on|off` 任免公司经理。\n- `esim unit funds` 查看资金与捐款。团员用 `esim unit donate <金额> <货币代码>` 捐款,有分发权限时可用 `esim unit pay <公民>[,<公民>…] <金额> <货币代码>` 按每人金额分发。结果给出该币种军团余额和个人余额的之前→之后;余额不足时给出需要、持有和缺口。\n- `esim unit supply` 查看配给和领取状态,`esim unit supply claim` 领取当日配给,`esim unit supply donate <数量> <产品>` 捐赠。团长用 `esim unit supply policy <产品>=<数量>…` 设定配给,例如 `esim unit supply policy rifle=5 ticket_economy=1`。用 `esim unit supply give <公民>[,<公民>…] <数量> <产品>` 指定发放。发放和捐赠给出团库存或个人库存的之前→之后;库存不足时给出需要、持有和缺口。不能领取时给出当日配给和指定工作的公司。同一次资金或定向补给转账可以用原 `--request-id` 重放。\n\n- `esim friend` 查看好友和双向待审申请。用 `friend add` 发送申请,用 `friend accept` 或 `friend decline` 处理收到的申请,用 `friend remove` 删除已接受的好友关系。\n- `esim invite` 给出你的邀请链接、邀请人数、到 10 级的人数、因此获得的金币和护甲奖励,以及受邀者列表(`--sort registered|name|xp|gold|country`)。\n",
7891
7892
  "wiki/items.md": `# 药剂、特殊物品与库存
7892
7893
 
7893
7894
  药剂在一段时间内改变出击的命中档位。特殊物品能恢复每日使用次数,或让战斗增益持续一天,再进入减益期。持久穿戴的物品见[装备系统](equipment.md)。
@@ -14966,10 +14967,10 @@ var catalog = [
14966
14967
  { operationId: "DistributeUnitSupplies", name: "distribute-unit-supplies", method: "POST", path: "/api/units/{id}/supply/distributions", spec: "battle.yaml", write: true, retry: "key", description: "Distribute a stock item to current members as the unit leader. The actor’s request key replays the original private receipt.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["requestKey", "item", "quality", "quantity", "recipientIds"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1, description: "Quantity per recipient." }, recipientIds: { type: "array", minItems: 1, uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, note: { type: "string", maxLength: 100 } } } }, requestKey: "requestKey", requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "request", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, request: { type: "object", additionalProperties: false, required: ["requestKey", "item", "quality", "quantity", "recipientIds"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1, description: "Quantity per recipient." }, recipientIds: { type: "array", minItems: 1, uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, note: { type: "string", maxLength: 100 } } }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "request", "transferredAt"] },
14967
14968
  { operationId: "GetMyUnitFunds", name: "get-my-unit-funds", method: "GET", path: "/api/units/{id}/funds", spec: "battle.yaml", write: false, retry: "unsafe", description: "Read unit balances and the caller’s donation balances. Only the current leader receives the recipient list.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["balances", "personalBalances", "canDistribute", "members"], properties: { balances: { type: "array", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", pattern: "^[1-9][0-9]{0,18}$", description: "Positive balance in minor units, encoded as decimal." } } } }, personalBalances: { type: "array", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", pattern: "^[1-9][0-9]{0,18}$", description: "Positive balance in minor units, encoded as decimal." } } } }, canDistribute: { type: "boolean" }, members: { type: "array", items: { type: "object", required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 }, avatarVersion: { type: "string" } } }, description: "Empty for callers other than the current leader." } } } } }, responseFields: ["balances", "personalBalances", "canDistribute", "members"] },
14968
14969
  { operationId: "TransferUnitFunds", name: "transfer-unit-funds", method: "POST", path: "/api/units/{id}/funds", spec: "battle.yaml", write: true, retry: "key", description: "Donate as a member or distribute as the current leader. Request keys replay the original private receipt for the same actor and operation.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["requestKey", "operation", "asset", "amount"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, operation: { type: "string", enum: ["donate", "distribute"] }, asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", description: "Positive minor-unit amount per recipient, encoded as decimal. Leading zeros and surrounding whitespace are accepted." }, note: { type: "string", maxLength: 100 }, recipientIds: { type: "array", uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, description: "Omit for donations. At least one current member for distributions." } } } }, requestKey: "requestKey", requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "request", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, request: { type: "object", additionalProperties: false, required: ["requestKey", "operation", "asset", "amount"], properties: { requestKey: { type: "string", pattern: "^[A-Za-z0-9_-]{1,128}$" }, operation: { type: "string", enum: ["donate", "distribute"] }, asset: { type: "integer", format: "int32", minimum: 0, description: "0 for Gold, otherwise country ID plus one." }, amount: { type: "string", description: "Positive minor-unit amount per recipient, encoded as decimal. Leading zeros and surrounding whitespace are accepted." }, note: { type: "string", maxLength: 100 }, recipientIds: { type: "array", uniqueItems: true, items: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, description: "Omit for donations. At least one current member for distributions." } } }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "request", "transferredAt"] },
14969
- { operationId: "GetMyUnitSupplies", name: "get-my-unit-supplies", method: "GET", path: "/api/units/{id}/supplies", spec: "battle.yaml", write: false, retry: "unsafe", description: "Citizen session required. Read the current policy and the caller's ability to claim. A unit member may read their own state. Only the founder receives stock quantities.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14970
- { operationId: "SetUnitSupplyPolicy", name: "set-unit-supply-policy", method: "PUT", path: "/api/units/{id}/supplies/policy", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Replace the supply policy as unit founder. To disable claims, provide an empty items array. A selected company must belong to the founder.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12 } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 12, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14971
- { operationId: "DonateUnitSupplies", name: "donate-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/deposits", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Transfer whole items from the member's inventory to the unit. The result lists items moved. Conflicts use insufficient_stock or conflict.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14972
- { operationId: "ClaimUnitSupplies", name: "claim-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/claims", spec: "battle.yaml", write: true, retry: "natural", description: "Citizen session required. Claim the whole supply pack once per Shanghai game day. Changing units does not reset the claim. Conflicts use conflict for eligibility or a previous claim, and insufficient_stock when the pack cannot be issued.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14970
+ { operationId: "GetMyUnitSupplies", name: "get-my-unit-supplies", method: "GET", path: "/api/units/{id}/supplies", spec: "battle.yaml", write: false, retry: "unsafe", description: "Citizen session required. Read the current policy and the caller's ability to claim. A unit member may read their own state. Only the founder receives stock quantities.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14971
+ { operationId: "SetUnitSupplyPolicy", name: "set-unit-supply-policy", method: "PUT", path: "/api/units/{id}/supplies/policy", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Replace the supply policy as unit founder. To disable claims, provide an empty items array. A selected company must belong to the founder.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21 } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "policy", "eligible", "claimed"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, policy: { type: "object", additionalProperties: false, required: ["items"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21 } } }, eligible: { type: "boolean" }, claimed: { type: "boolean" }, claimedAt: { type: "string", format: "date-time" }, stock: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 0, maxItems: 21, description: "Only present in the unit founder's response." } } } } }, responseFields: ["unitId", "policy", "eligible", "claimed", "claimedAt", "stock"] },
14972
+ { operationId: "DonateUnitSupplies", name: "donate-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/deposits", spec: "battle.yaml", write: true, retry: "unsafe", description: "Citizen session required. Transfer whole items from the member's inventory to the unit. The result lists items moved. Conflicts use insufficient_stock or conflict.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["items"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 12 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 21 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14973
+ { operationId: "ClaimUnitSupplies", name: "claim-unit-supplies", method: "POST", path: "/api/units/{id}/supplies/claims", spec: "battle.yaml", write: true, retry: "natural", description: "Citizen session required. Claim the whole supply pack once per Shanghai game day. Changing units does not reset the claim. Conflicts use conflict for eligibility or a previous claim, and insufficient_stock when the pack cannot be issued.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "The same origin as the request.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["unitId", "items", "transferredAt"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["item", "quality", "quantity"], properties: { item: { type: "string", description: "Current catalogue product names. The food and weapon selectors also accept historical requests.", enum: ["food", "weapon", "GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE", "SMALL_DRINK", "LARGE_DRINK", "SNACK", "MEAL", "PISTOL", "RIFLE", "TICKET_ECONOMY", "TICKET_BUSINESS", "KNIFE", "HOUSE", "MANSION", "BOAT", "YACHT", "DEFENSE_SYSTEM", "HOSPITAL"] }, quality: { type: "integer", format: "int64", minimum: 0, maximum: 5 }, quantity: { type: "integer", format: "int64", minimum: 1 } } }, minItems: 1, maxItems: 21 }, transferredAt: { type: "string", format: "date-time" } } } } }, responseFields: ["unitId", "items", "transferredAt"] },
14973
14974
  { operationId: "ListCompanies", name: "list-companies", method: "GET", path: "/api/companies", spec: "business.yaml", write: false, retry: "unsafe", description: "Public. Filter companies by land, owner, unit, and item before pagination. Sort by company ID ascending by default, or by employee count descending and company ID ascending with sort=employees. Use a cursor issued for the selected sort.", parameters: [{ name: "cursor", in: "query", description: "Opaque cursor from the previous page. Reuse the same filters.", schema: { type: "string" } }, { name: "limit", in: "query", description: "Maximum number of results.", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "land", in: "query", description: "Filter by company region ID.", schema: { type: "integer", format: "int64", minimum: 0 } }, { name: "owner", in: "query", description: "Filter by public owner ID.", schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, { name: "item", in: "query", schema: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] } }, { name: "unitId", in: "query", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "sort", in: "query", schema: { type: "string", enum: ["employees"] } }, { name: "q", in: "query", description: "Case-insensitive substring of the company name, matched like citizen search.", schema: { type: "string", minLength: 1, maxLength: 100 } }, { name: "order", in: "query", description: "Direction of the selected sort (default: ID asc, employees desc). The other direction is the exact reverse of the default order; reuse a cursor only with the same sort and order.", schema: { type: "string", enum: ["asc", "desc"], description: "Direction of a list sort." } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
14974
14975
  { operationId: "CreateCompany", name: "create-company", method: "POST", path: "/api/companies", spec: "business.yaml", write: true, retry: "unsafe", description: "Citizen session required. Found a company at the citizen's current region for 20 gold (2000 in minor units).", parameters: [{ name: "Origin", in: "header", required: true, description: "The same origin as the site hosting the API.", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["name", "item"], properties: { name: { type: "string", minLength: 3, maxLength: 32 }, item: { description: "Raw factories can only be founded in a high-resource region for their product.", type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["level", "productionBonusPercent", "management", "conversion", "id", "quality", "name", "avatarVersion", "weaponDamageBonusPercent", "stockCompanyId", "unitId", "unitName", "donationTarget", "owner", "ownerSummary", "workers", "land", "item", "workerCount"] },
14975
14976
  { operationId: "GetCompany", name: "get-company", method: "GET", path: "/api/companies/{id}", spec: "business.yaml", write: false, retry: "unsafe", description: "Public. Read a public company profile.", parameters: [{ name: "id", in: "path", required: true, description: "Resource ID.", schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "owner", "land", "item", "workerCount"], properties: { level: { type: "integer", minimum: 0 }, productionBonusPercent: { type: "integer", minimum: 0 }, management: { type: "object", additionalProperties: false, required: ["relocateFee"], properties: { relocateFee: { type: "integer", format: "int64" }, upgradeFee: { type: "integer", format: "int64" }, downgradeRefund: { type: "integer", format: "int64" } } }, conversion: { type: "object", additionalProperties: false, required: ["currentProduct", "fee", "products"], properties: { currentProduct: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, fee: { type: "integer", format: "int64", minimum: 0, description: "Conversion fee in Gold minor units." }, products: { type: "array", items: { type: "object", additionalProperties: false, required: ["product"], properties: { product: { type: "string", enum: ["small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "iron", "grain", "oil", "stone", "wood", "minerals", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital"] }, rawMaterial: { type: "string", enum: ["GRAIN", "IRON", "OIL", "MINERALS", "WOOD", "STONE"], description: "One known material for the product. Omitted for raw products and unverified recipes." } } } } } }, id: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1, maximum: 5 }, name: { type: "string" }, avatarVersion: { type: "string", description: "Version of the public custom avatar when uploaded." }, weaponDamageBonusPercent: { type: "integer", minimum: 0, maximum: 100, description: "Battle damage bonus relative to the ordinary weapon, present only for usable weapon output." }, stockCompanyId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, unitName: { type: "string", description: "Public name of the military unit that holds the factory." }, donationTarget: { type: "integer", format: "int64", minimum: 1 }, owner: { type: "string", description: "Citizen ID for personal factories, empty for corporate or military unit ownership." }, ownerSummary: { allOf: [{ type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } }, { description: "Public citizen summary when the factory is personally owned." }] }, workers: { description: "Public summaries of up to eight current employees, ordered by numeric citizen ID. Included in company details and company events.", type: "array", maxItems: 8, items: { type: "object", additionalProperties: false, required: ["id", "name", "nation"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 } } } }, land: { type: "integer", format: "int64", minimum: 0 }, item: { type: "string", enum: ["food", "weapon", "minerals", "small_drink", "large_drink", "snack", "meal", "pistol", "rifle", "ticket_economy", "ticket_business", "knife", "house", "mansion", "boat", "yacht", "defense_system", "hospital", "iron", "grain", "oil", "stone", "wood"] }, workerCount: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["level", "productionBonusPercent", "management", "conversion", "id", "quality", "name", "avatarVersion", "weaponDamageBonusPercent", "stockCompanyId", "unitId", "unitName", "donationTarget", "owner", "ownerSummary", "workers", "land", "item", "workerCount"] },
@@ -15022,10 +15023,11 @@ var catalog = [
15022
15023
  { operationId: "getAlliance", name: "get-alliance", method: "GET", path: "/api/alliances/{id}", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取联盟详情", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "from", "to", "accepted"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, from: { type: "integer", minimum: 0 }, to: { type: "integer", minimum: 0 }, accepted: { type: "boolean" }, rejected: { type: "boolean" }, endsAt: { type: "string", format: "date-time" }, yes: { type: "integer", minimum: 0, description: "Ballots for the alliance cast by the destination country's congress." }, no: { type: "integer", minimum: 0, description: "Ballots against the alliance cast by the destination country's congress." } } } } }, responseFields: ["id", "from", "to", "accepted", "rejected", "endsAt", "yes", "no"] },
15023
15024
  { operationId: "listStockCompanyShouts", name: "list-stock-company-shouts", method: "GET", path: "/api/stock-companies/{companyId}/shouts", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取一家股份公司的喊话", parameters: [{ name: "companyId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", required: ["id", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, text: { type: "string" }, createdAt: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15024
15025
  { operationId: "createStockCompanyShout", name: "create-stock-company-shout", method: "POST", path: "/api/stock-companies/{companyId}/shouts", spec: "civic.yaml", write: true, retry: "unsafe", description: "股东发表公司喊话", parameters: [{ name: "companyId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text"], properties: { text: { type: "string", minLength: 1, maxLength: 201, description: "最多 201 个 UTF-16 码元。" } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", required: ["id", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, text: { type: "string" }, createdAt: { type: "string", format: "date-time" } } } } }, responseFields: ["id", "author", "text", "createdAt"] },
15025
- { operationId: "listShouts", name: "list-shouts", method: "GET", path: "/api/shouts", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话列表", parameters: [{ name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "channel", in: "query", description: "默认读取全球频道。unit、party、friends 是本人的军团、政党和好友频道,须登录,不接受 country;没有军团或政党时返回空列表。", schema: { type: "string", enum: ["world", "country", "unit", "party", "friends"] } }, { name: "country", in: "query", description: "channel=country 时必填,其他频道不接受此参数。", schema: { type: "integer", minimum: 0 } }, { name: "author", in: "query", schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15026
- { operationId: "createShout", name: "create-shout", method: "POST", path: "/api/shouts", spec: "civic.yaml", write: true, retry: "unsafe", description: "创建喊话", parameters: [{ name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text", "channel"], properties: { channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, alsoTo: { type: "array", maxItems: 4, uniqueItems: true, description: "另外同时发到这些频道,各成一条喊话。", items: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" } }, text: { type: "string", minLength: 1, maxLength: 201 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount"] },
15027
- { operationId: "getShout", name: "get-shout", method: "GET", path: "/api/shouts/{id}", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话详情", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount"] },
15026
+ { operationId: "listShouts", name: "list-shouts", method: "GET", path: "/api/shouts", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话列表", parameters: [{ name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "channel", in: "query", description: "默认读取全球频道。unit、party、friends 是本人的军团、政党和好友频道,须登录,不接受 country;没有军团或政党时返回空列表。", schema: { type: "string", enum: ["world", "country", "unit", "party", "friends"] } }, { name: "country", in: "query", description: "channel=country 时必填,其他频道不接受此参数。", schema: { type: "integer", minimum: 0 } }, { name: "author", in: "query", schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" }, voteCount: { type: "integer", format: "int64", minimum: 0, description: "国家喊话的正票总数。其他频道省略。" }, canVote: { type: "boolean", description: "当查看者有资格且尚未投票时为 true,否则省略。" }, voted: { type: "boolean", description: "当查看者已投票时为 true,否则省略。" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15027
+ { operationId: "createShout", name: "create-shout", method: "POST", path: "/api/shouts", spec: "civic.yaml", write: true, retry: "unsafe", description: "创建喊话", parameters: [{ name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text", "channel"], properties: { channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, alsoTo: { type: "array", maxItems: 4, uniqueItems: true, description: "另外同时发到这些频道,各成一条喊话。", items: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" } }, text: { type: "string", minLength: 1, maxLength: 201 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" }, voteCount: { type: "integer", format: "int64", minimum: 0, description: "国家喊话的正票总数。其他频道省略。" }, canVote: { type: "boolean", description: "当查看者有资格且尚未投票时为 true,否则省略。" }, voted: { type: "boolean", description: "当查看者已投票时为 true,否则省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount", "voteCount", "canVote", "voted"] },
15028
+ { operationId: "getShout", name: "get-shout", method: "GET", path: "/api/shouts/{id}", spec: "civic.yaml", write: false, retry: "unsafe", description: "公开读取喊话详情", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "author", "channel", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, channel: { type: "string", enum: ["world", "country", "unit", "party", "friends"], description: "unit、party、friends 只有该军团成员、该政党成员、作者及其好友能读和评论;离开军团或政党、解除好友后即失去访问。" }, country: { type: "integer", minimum: 0 }, unit: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "军团频道的军团编号。" }] }, party: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "政党频道的政党编号。" }] }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" }, commentCount: { type: "integer", format: "int64", minimum: 0, description: "列表和详情的评论总数。无权阅读评论时省略。" }, voteCount: { type: "integer", format: "int64", minimum: 0, description: "国家喊话的正票总数。其他频道省略。" }, canVote: { type: "boolean", description: "当查看者有资格且尚未投票时为 true,否则省略。" }, voted: { type: "boolean", description: "当查看者已投票时为 true,否则省略。" } } } } }, responseFields: ["id", "author", "authorName", "authorNation", "channel", "country", "unit", "party", "text", "createdAt", "commentCount", "voteCount", "canVote", "voted"] },
15028
15029
  { operationId: "deleteShout", name: "delete-shout", method: "DELETE", path: "/api/shouts/{id}", spec: "civic.yaml", write: true, retry: "natural", description: "删除自己的频道喊话", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15030
+ { operationId: "voteShout", name: "vote-shout", method: "POST", path: "/api/shouts/{id}/votes", spec: "civic.yaml", write: true, retry: "natural", description: "为本国另一名玩家的国家喊话投一票", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "score"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, score: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["id", "score"] },
15029
15031
  { operationId: "deleteStockCompanyShout", name: "delete-stock-company-shout", method: "DELETE", path: "/api/stock-company-shouts/{id}", spec: "civic.yaml", write: true, retry: "natural", description: "删除自己的股份公司喊话", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15030
15032
  { operationId: "listShoutComments", name: "list-shout-comments", method: "GET", path: "/api/shouts/{id}/comments", spec: "civic.yaml", write: false, retry: "unsafe", description: "读取喊话评论", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "cursor", in: "query", description: "上一页返回的游标。", schema: { type: "string", minLength: 1 } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "shoutId", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, shoutId: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15031
15033
  { operationId: "createShoutComment", name: "create-shout-comment", method: "POST", path: "/api/shouts/{id}/comments", spec: "civic.yaml", write: true, retry: "unsafe", description: "发表喊话评论", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "Origin", in: "header", required: true, description: "网页的同源地址。", schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["text"], properties: { text: { type: "string", minLength: 1, maxLength: 201, description: "最多 201 个 UTF-16 码元。" } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "shoutId", "author", "text", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, shoutId: { type: "integer", format: "int64", minimum: 1 }, author: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, authorName: { type: "string" }, authorNation: { type: "integer", minimum: 0 }, text: { type: "string", minLength: 1, maxLength: 201 }, createdAt: { type: "string", format: "date-time" } } } } }, responseFields: ["id", "shoutId", "author", "authorName", "authorNation", "text", "createdAt"] },
@@ -15270,9 +15272,9 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15270
15272
  { operationId: "StartShooterRound", name: "start-shooter-round", method: "POST", path: "/api/me/shooter/rounds", spec: "shooter.yaml", write: true, retry: "key", description: "StartShooterRound", parameters: [{ name: "Origin", in: "header", required: true, schema: { type: "string" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["requestId"], properties: { requestId: { type: "string", minLength: 1, maxLength: 128 } } } }, requestKey: "requestId", requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"], properties: { id: { type: "string" }, status: { type: "string", enum: ["active", "victory", "defeated"] }, sequence: { type: "integer" }, startedAt: { type: "string", format: "date-time" }, serverTime: { type: "string", format: "date-time" }, hp: { type: "integer" }, ammo: { type: "integer" }, reloadUntil: { type: ["string", "null"], format: "date-time" }, points: { type: "integer" }, kills: { type: "integer" }, targets: { type: "array", items: { type: "object", required: ["id", "kind", "hp", "spawnedAt", "expiresAt", "x", "y"], properties: { id: { type: "string" }, kind: { type: "string", enum: ["standard", "shield"] }, hp: { type: "integer" }, spawnedAt: { type: "string", format: "date-time" }, expiresAt: { type: "string", format: "date-time" }, x: { type: "number", format: "double", minimum: 0, maximum: 1 }, y: { type: "number", format: "double", minimum: 0, maximum: 1 } } } } } } } }, responseFields: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"] },
15271
15273
  { operationId: "ActInShooterRound", name: "act-in-shooter-round", method: "POST", path: "/api/me/shooter/rounds/{id}/actions", spec: "shooter.yaml", write: true, retry: "natural", description: "ActInShooterRound", parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }, { name: "Origin", in: "header", required: true, schema: { type: "string" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["sequence"], properties: { sequence: { type: "integer", minimum: 1 }, targetId: { type: "string", minLength: 1, maxLength: 128 } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"], properties: { id: { type: "string" }, status: { type: "string", enum: ["active", "victory", "defeated"] }, sequence: { type: "integer" }, startedAt: { type: "string", format: "date-time" }, serverTime: { type: "string", format: "date-time" }, hp: { type: "integer" }, ammo: { type: "integer" }, reloadUntil: { type: ["string", "null"], format: "date-time" }, points: { type: "integer" }, kills: { type: "integer" }, targets: { type: "array", items: { type: "object", required: ["id", "kind", "hp", "spawnedAt", "expiresAt", "x", "y"], properties: { id: { type: "string" }, kind: { type: "string", enum: ["standard", "shield"] }, hp: { type: "integer" }, spawnedAt: { type: "string", format: "date-time" }, expiresAt: { type: "string", format: "date-time" }, x: { type: "number", format: "double", minimum: 0, maximum: 1 }, y: { type: "number", format: "double", minimum: 0, maximum: 1 } } } } } } } }, responseFields: ["id", "status", "sequence", "startedAt", "serverTime", "hp", "ammo", "reloadUntil", "points", "kills", "targets"] },
15272
15274
  { operationId: "GetShooterRankings", name: "get-shooter-rankings", method: "GET", path: "/api/shooter/rankings", spec: "shooter.yaml", write: false, retry: "unsafe", description: "GetShooterRankings", parameters: [{ name: "page", in: "query", schema: { type: "integer", minimum: 1, maximum: 2147483647, default: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["total", "entries"], properties: { total: { type: "integer", format: "int64" }, entries: { type: "array", items: { type: "object", required: ["rank", "citizenId", "name", "points", "kills", "games"], properties: { rank: { type: "integer", format: "int64" }, citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, points: { type: "integer", format: "int64" }, kills: { type: "integer", format: "int64" }, games: { type: "integer", format: "int64" } } } } } } } }, responseFields: ["total", "entries"] },
15273
- { operationId: "ListMySpecialItems", name: "list-my-special-items", method: "GET", path: "/api/me/special-items", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItems", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items"], properties: { items: { type: "array", items: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } } } } }, responseFields: ["items"] },
15274
- { operationId: "ListMySpecialItemHistory", name: "list-my-special-item-history", method: "GET", path: "/api/me/special-items/history", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItemHistory", parameters: [{ name: "type", in: "query", description: "Include history for any supplied special item type.", schema: { type: "array", items: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", required: ["id", "type", "quantity", "action", "at"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] }, quantity: { type: "integer", format: "int64", minimum: 1 }, action: { type: "string", enum: ["grant", "redemption", "use", "purchase"] }, at: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15275
- { operationId: "UseSpecialItem", name: "use-special-item", method: "POST", path: "/api/me/special-items/{type}/use", spec: "special-items.yaml", write: true, retry: "unsafe", description: "UseSpecialItem", parameters: [{ name: "type", in: "path", required: true, schema: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } }, responseFields: ["type", "quantity", "effect"] },
15275
+ { operationId: "ListMySpecialItems", name: "list-my-special-items", method: "GET", path: "/api/me/special-items", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItems", parameters: [], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items"], properties: { items: { type: "array", items: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } } } } }, responseFields: ["items"] },
15276
+ { operationId: "ListMySpecialItemHistory", name: "list-my-special-item-history", method: "GET", path: "/api/me/special-items/history", spec: "special-items.yaml", write: false, retry: "unsafe", description: "ListMySpecialItemHistory", parameters: [{ name: "type", in: "query", description: "Include history for any supplied special item type.", schema: { type: "array", items: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] } } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { items: { type: "array", items: { type: "object", required: ["id", "type", "quantity", "action", "at"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] }, quantity: { type: "integer", format: "int64", minimum: 1 }, action: { type: "string", enum: ["grant", "redemption", "use", "purchase"] }, at: { type: "string", format: "date-time" } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15277
+ { operationId: "UseSpecialItem", name: "use-special-item", method: "POST", path: "/api/me/special-items/{type}/use", spec: "special-items.yaml", write: true, retry: "unsafe", description: "UseSpecialItem", parameters: [{ name: "type", in: "path", required: true, schema: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } }], body: { required: true, schema: { type: "object", additionalProperties: false } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["type", "quantity"], properties: { type: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide", "equipment_upgrade", "equipment_reshuffle", "camouflage_iii", "pain_dealer", "bandage"], "x-enum-varnames": ["StockMedkit", "StockSteroids", "StockExtraVacations", "StockExtraSpa", "StockTank", "StockBunker", "StockSewerGuide", "EquipmentUpgrade", "EquipmentReshuffle", "CamouflageIII", "PainDealer", "Bandage"] }, quantity: { type: "integer", format: "int64", minimum: 0 }, effect: { type: "object", required: ["phase", "until"], properties: { phase: { type: "string", enum: ["buff", "debuff"] }, until: { type: "string", format: "date-time" } } } } } } }, responseFields: ["type", "quantity", "effect"] },
15276
15278
  { operationId: "BuySpecialItem", name: "buy-special-item", method: "POST", path: "/api/me/special-items/{type}/buy", spec: "special-items.yaml", write: true, retry: "unsafe", description: "Buy 1 to 10 units at 0.80 Gold each. Medkits cannot be purchased.", parameters: [{ name: "type", in: "path", required: true, schema: { type: "string", enum: ["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"] } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["quantity"], properties: { quantity: { type: "integer", format: "int64", minimum: 1, maximum: 10 } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15277
15279
  { operationId: "ListUnits", name: "list-units", method: "GET", path: "/api/units", spec: "units.yaml", write: false, retry: "unsafe", description: "Public. List military units by ID, member count, or battle points earned today.", parameters: [{ name: "cursor", in: "query", schema: { type: "string", description: "Opaque cursor returned by the previous page. Reuse its filters and sort." } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "page", in: "query", schema: { type: "integer", format: "int64", minimum: 1, description: "One-based directory page. Mutually exclusive with cursor." } }, { name: "nation", in: "query", schema: { type: "integer", minimum: 0, description: "Filter by internal country ID. Requires page." } }, { name: "q", in: "query", description: "Case-insensitive substring of the military unit name, matched like citizen search.", schema: { type: "string", minLength: 1, maxLength: 100 } }, { name: "sort", in: "query", schema: { type: "string", enum: ["members", "battlePointsToday"], "x-enum-varnames": ["UnitSortMembers", "UnitSortBattlePointsToday"] } }, { name: "order", in: "query", description: "Ascending by default for ID order and descending by default for a selected metric. ID breaks ties in the same direction.", schema: { type: "string", enum: ["asc", "desc"] } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["items", "nextCursor", "total"], properties: { total: { type: "integer", format: "int64", minimum: 0 }, items: { type: "array", items: { type: "object", additionalProperties: false, required: ["id", "name", "founder", "nation", "memberCount", "battlePoints", "battlePointsToday", "recruitmentMessage", "description"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, name: { type: "string", minLength: 1, maxLength: 48 }, founder: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, nation: { allOf: [{ type: "integer", minimum: 0 }, { description: "The founder’s country when the unit was created." }] }, memberCount: { type: "integer", format: "int64", minimum: 0 }, battlePoints: { type: "integer", format: "int64", minimum: 0, description: "Total damage credited to the military unit at the time of the hit." }, battlePointsToday: { type: "integer", format: "int64", minimum: 0, description: "Damage credited to the military unit from hits during the current game day." }, grade: { type: "integer", minimum: 1, maximum: 4 }, capacity: { type: "integer", minimum: 10 }, recruitmentMessage: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Empty when unset." }, description: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Limited to 2000 UTF-16 code units. Empty when unset." }, avatarVersion: { type: "string", pattern: "^[0-9a-f]{64}$" } } } }, nextCursor: { type: ["string", "null"] }, lastPage: { type: "integer", format: "int64", minimum: 1, description: "Present in numbered directory mode. An empty directory has one page." } } } } }, responseFields: ["total", "items", "nextCursor", "lastPage"] },
15278
15280
  { operationId: "CreateUnit", name: "create-unit", method: "POST", path: "/api/units", spec: "units.yaml", write: true, retry: "natural", description: "Citizen session required. Found a military unit for 50.00 gold (5000 minor units) and join it as its founder. Returns insufficient_funds if the citizen cannot pay the fixed fee.", parameters: [{ name: "Origin", in: "header", required: true, schema: { type: "string", format: "uri" } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["name"], properties: { name: { type: "string", minLength: 1, maxLength: 48 }, description: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Limited to 2000 UTF-16 code units. Empty when unset." }, image: { type: "string", maxLength: 266668, description: "Base64 PNG or JPEG data, up to 200000 decoded bytes. Omit to preserve the current avatar." } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["id", "name", "founder", "nation", "memberCount", "battlePoints", "battlePointsToday", "recruitmentMessage", "description"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, name: { type: "string", minLength: 1, maxLength: 48 }, founder: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, nation: { allOf: [{ type: "integer", minimum: 0 }, { description: "The founder’s country when the unit was created." }] }, memberCount: { type: "integer", format: "int64", minimum: 0 }, battlePoints: { type: "integer", format: "int64", minimum: 0, description: "Total damage credited to the military unit at the time of the hit." }, battlePointsToday: { type: "integer", format: "int64", minimum: 0, description: "Damage credited to the military unit from hits during the current game day." }, grade: { type: "integer", minimum: 1, maximum: 4 }, capacity: { type: "integer", minimum: 10 }, recruitmentMessage: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Empty when unset." }, description: { type: "string", maxLength: 2000, description: "Public plain text, with line breaks preserved. Limited to 2000 UTF-16 code units. Empty when unset." }, avatarVersion: { type: "string", pattern: "^[0-9a-f]{64}$" } } } } }, responseFields: ["id", "name", "founder", "nation", "memberCount", "battlePoints", "battlePointsToday", "grade", "capacity", "recruitmentMessage", "description", "avatarVersion"] },
@@ -16806,6 +16808,14 @@ function rankForBattlePoints(points) {
16806
16808
  var onOff = positional("state", true, _enum(["on", "off"]));
16807
16809
  var vote = positional("vote", true, _enum(["yes", "no"]));
16808
16810
  var specialItems = _enum(["medkit", "steroids", "extra_vacations", "extra_spa", "tank", "bunker", "sewer_guide"]);
16811
+ var prizeStockNames = new Map([
16812
+ ["equipment_upgrade", "Equipment upgrade"],
16813
+ ["equipment_reshuffle", "Equipment reshuffle"],
16814
+ ["camouflage_iii", "Camouflage III"],
16815
+ ["pain_dealer", "Pain Dealer"],
16816
+ ["bandage", "Bandage"]
16817
+ ]);
16818
+ var specialItemStockTypes = _enum([...specialItems.options, ...prizeStockNames.keys()]);
16809
16819
  var gold = (minor) => amount(number4(minor), "GOLD");
16810
16820
  var named = (id, name) => (typeof id === "number" || typeof id === "string") && typeof name === "string" ? { id, name } : undefined;
16811
16821
  var pageOutput = { items: "Matching records", nextCursor: "Cursor for the next page", truncated: "Whether more records remain" };
@@ -16878,6 +16888,7 @@ var namedProducts = [
16878
16888
  "DEFENSE_SYSTEM",
16879
16889
  "HOSPITAL"
16880
16890
  ];
16891
+ var warehouseProductCodes = [...rawGoods, ...namedProducts];
16881
16892
  var potionKinds = ["jinxed", "finesse", "bloody_mess", "lucky"];
16882
16893
  var enumValues = operations.get("market-orders")?.parameters.find((parameter) => parameter.name === "item")?.schema.enum;
16883
16894
  var items = new Set(Array.isArray(enumValues) ? enumValues.filter((item) => typeof item === "string") : []);
@@ -17673,15 +17684,15 @@ var prizeOrder = string2().transform((value) => value.split(",").map((key) => ke
17673
17684
  var prizes = {
17674
17685
  MEDKITS: { prize: "Medkits 3x", delivers: "3 medkits" },
17675
17686
  EXCEPTIONAL_ELIXIRS: { prize: "Exceptional elixir 1x", delivers: "1 Q6 lucky elixir · 8 hours" },
17676
- EQ_UPGRADE: { prize: "Equipment upgrade 1x", delivers: "1 Q3 accessory" },
17677
- EQ_RESCHUFFLE: { prize: "Equipment reshuffle 1x", delivers: "1 Q2 offhand" },
17678
- CAMUFLAGE_III: { prize: "Camouflage III class 2x", delivers: "2 bunkers" },
17687
+ EQ_UPGRADE: { prize: "Equipment upgrade 1x", delivers: "1 equipment upgrade item" },
17688
+ EQ_RESCHUFFLE: { prize: "Equipment reshuffle 1x", delivers: "1 equipment reshuffle item" },
17689
+ CAMUFLAGE_III: { prize: "Camouflage III class 2x", delivers: "2 Camouflage III items" },
17679
17690
  ...Object.fromEntries([25, 15, 10].map((percent) => [
17680
17691
  `BONUS_DAMAGE_${percent}`,
17681
17692
  { prize: `Damage bonus +${percent}%`, delivers: `+${percent}% damage for 72 hours, activated automatically at settlement` }
17682
17693
  ])),
17683
- PAIN_DEALERS: { prize: "Pain Dealer 1x", delivers: "1 tank" },
17684
- BANDAGES: { prize: "Bandage 2x", delivers: "2 extra spa passes" }
17694
+ PAIN_DEALERS: { prize: "Pain Dealer 1x", delivers: "1 Pain Dealer" },
17695
+ BANDAGES: { prize: "Bandage 2x", delivers: "2 bandages" }
17685
17696
  };
17686
17697
  var prizeRows = (keys) => keys.map((key, index) => ({ rank: index + 1, reward: key, ...prizes[String(key)] ?? { prize: String(key), delivers: "" } }));
17687
17698
  var prizeHelp = [
@@ -19233,8 +19244,7 @@ var requestIdFlag = flag("request-id", string2().regex(/^[A-Za-z0-9_-]{1,128}$/)
19233
19244
  var recipientArg = positional("recipients", true, string2().regex(/^[^,]+(?:,[^,]+)*$/));
19234
19245
  var quantityArg = positional("quantity", true, numericId);
19235
19246
  var productArg = { ...positional("product"), source: "Product code, any case, such as snack or pistol; potions take a grade, such as lucky:q2" };
19236
- var dailySupplyProducts = ["SNACK", "MEAL", "PISTOL", "RIFLE"];
19237
- var dailySupplyChoices = dailySupplyProducts.join(", ").toLowerCase();
19247
+ var dailySupplyChoices = warehouseProductCodes.join(", ").toLowerCase();
19238
19248
  var ranks = ["", "Novice", "Regular", "Veteran", "Elite"];
19239
19249
  var rank = (grade) => ranks[grade ?? 1];
19240
19250
  async function membership(ctx) {
@@ -20326,8 +20336,8 @@ var unit = [
20326
20336
  unitCommand({
20327
20337
  path: ["supply", "policy"],
20328
20338
  summary: `Set daily supplies as leader. Allowed products: ${dailySupplyChoices}.`,
20329
- args: [positional("allocation", true, string2().min(1)), ...Array.from({ length: dailySupplyProducts.length - 1 }, (_, index) => positional(`allocation-${index + 2}`, false))],
20330
- examples: ["esim unit supply policy snack=2 pistol=1"],
20339
+ args: [positional("allocation", true, string2().min(1)), ...Array.from({ length: warehouseProductCodes.length - 1 }, (_, index) => positional(`allocation-${index + 2}`, false))],
20340
+ examples: ["esim unit supply policy rifle=5 ticket_economy=1"],
20331
20341
  operations: ["me", "citizen", "get-my-unit-supplies", "set-unit-supply-policy"],
20332
20342
  confirmWith: confirmSupply,
20333
20343
  output: { daily: "Daily allocation now in force", stock: "Unit stock", changed: "Daily supply allocation before → after" },
@@ -20339,9 +20349,9 @@ var unit = [
20339
20349
  const product = match?.[1];
20340
20350
  if (product === undefined || !quantity.success)
20341
20351
  return usage2("Use product=quantity, for example snack=2.");
20342
- const item = dailySupplyProducts.find((code) => code === product.trim().toUpperCase());
20352
+ const item = warehouseProductCodes.find((code) => code === product.trim().toUpperCase());
20343
20353
  if (!item)
20344
- return usage2(`${product} cannot be included in daily supplies. Choose from ${dailySupplyChoices}.`, "For a one-time distribution from unit stock, see esim unit supply give --help.");
20354
+ return usage2(`${product} cannot be included in daily supplies. Choose from ${dailySupplyChoices}.`);
20345
20355
  return { item, quality: 0, quantity: quantity.data };
20346
20356
  });
20347
20357
  if (new Set(items.map((item) => `${item.item}:${item.quality}`)).size !== items.length)
@@ -26249,6 +26259,8 @@ function shoutBlock(value, scope, whole = false) {
26249
26259
  refText3(entry.country),
26250
26260
  ago(entry, "posted"),
26251
26261
  counted(scope === undefined ? entry.commentCount : entry.replies, "reply", "replies"),
26262
+ typeof entry.voteCount === "number" ? `${entry.voteCount} ${entry.voteCount === 1 ? "vote" : "votes"}` : undefined,
26263
+ entry.voted === true ? "voted" : undefined,
26252
26264
  scope
26253
26265
  ],
26254
26266
  body: text2(entry.text),
@@ -27306,6 +27318,9 @@ function describeNotification({ kind, payload, id, category, createdAt, readAt }
27306
27318
  return [`${hundredths2(quantity)} ${world ? currencyName(world, item) : item}`];
27307
27319
  if (item === "equipment")
27308
27320
  return [`${count2(quantity)} × ${typeof quality === "number" ? `Q${quality} ` : ""}${typeof name === "string" ? name : "equipment"}${typeof reference === "number" ? ` #${reference}` : ""}`];
27321
+ const prize = prizeStockNames.get(item);
27322
+ if (prize)
27323
+ return [`${count2(quantity)} × ${prize}`];
27309
27324
  return [`${count2(quantity)} × ${typeof quality === "number" ? `Q${quality} ` : ""}${item.toLowerCase().replaceAll("_", " ").replace(/^./, (initial) => initial.toUpperCase())}`];
27310
27325
  }) : [];
27311
27326
  text = notificationText[kind](gains.join(", "), sourceText);
@@ -32027,7 +32042,7 @@ var equipmentSources = [
32027
32042
  "travel: 4% a trip (8% on a business ticket), Q1-Q4 boots or legs, at most 5 per 24h — esim travel --help",
32028
32043
  "battle drops: Q1-Q6 weapon, vision or off-hand, shared by hits and damage rank — esim battle list",
32029
32044
  "other players: auctions and contracts — esim auction list --kind equipment, esim contract",
32030
- "cup prizes: country and resistance cup prize pools include a Q3 accessory and a Q2 off-hand — esim battle prizes",
32045
+ "cup prizes: equipment upgrade and reshuffle items go to special item inventory — esim battle prizes, esim item",
32031
32046
  "games room: equipment prizes on the dice and bandit machines — esim game",
32032
32047
  "invites: body armor when 1, 2, 5, 20 and 100 of your recruits reach level 10 — esim invite"
32033
32048
  ];
@@ -34193,7 +34208,9 @@ function entry(item, world, self) {
34193
34208
  country: world ? countryRef(world, item.authorNation) : null,
34194
34209
  text: item.text,
34195
34210
  postedAt: item.createdAt,
34196
- commentCount: "commentCount" in item ? item.commentCount : undefined
34211
+ commentCount: "commentCount" in item ? item.commentCount : undefined,
34212
+ voteCount: "voteCount" in item ? item.voteCount : undefined,
34213
+ voted: "voted" in item ? item.voted : undefined
34197
34214
  };
34198
34215
  }
34199
34216
  var feedView = (data) => {
@@ -34345,6 +34362,7 @@ var shout = [
34345
34362
  comments: renderedComments,
34346
34363
  next: [
34347
34364
  ...!("error" in comments) && authenticated(ctx) ? [{ run: `esim shout comment ${id} --body -` }] : [],
34365
+ ...item.canVote ? [{ run: `esim shout vote ${id}` }] : [],
34348
34366
  ...cursor ? [{ run: `esim shout show ${id} --cursor ${shellWord(cursor)}` }] : []
34349
34367
  ]
34350
34368
  };
@@ -34387,6 +34405,21 @@ var shout = [
34387
34405
  };
34388
34406
  }
34389
34407
  }),
34408
+ command21({
34409
+ path: ["shout", "vote"],
34410
+ summary: "Vote for another citizen's shout in your country",
34411
+ session: true,
34412
+ retry: "natural",
34413
+ args: [shoutId],
34414
+ operations: ["vote-shout"],
34415
+ examples: ["esim shout vote 42"],
34416
+ output: { id: "Shout ID", score: "Current vote count", next: "Shout thread" },
34417
+ async run(ctx, args) {
34418
+ const id = Number(args.id);
34419
+ const result = await ctx.call("vote-shout", { id }, {});
34420
+ return { ...result, next: [{ run: `esim shout show ${id}` }] };
34421
+ }
34422
+ }),
34390
34423
  command21({
34391
34424
  path: ["shout", "delete"],
34392
34425
  summary: "Delete one of your shouts and hide its replies",
@@ -35848,7 +35881,7 @@ var item = [
35848
35881
  summary: "Your special items: what each does, how to get it, how to use it (equipment: esim gear)",
35849
35882
  session: true,
35850
35883
  paged: true,
35851
- args: [{ ...flag("type", specialItems, { source: "Only these special items, in the stock and the history; repeat or comma-separate" }), repeatable: true }],
35884
+ args: [{ ...flag("type", specialItemStockTypes, { source: "Only these special items, in the stock and the history; repeat or comma-separate" }), repeatable: true }],
35852
35885
  examples: ["esim item", "esim item --type steroids", "esim item --type tank,bunker --limit 10"],
35853
35886
  operations: ["get-meal-limits", "list-my-special-items", "list-my-special-item-history", "clock"],
35854
35887
  output: {
@@ -35868,13 +35901,14 @@ var item = [
35868
35901
  const limits = { food: typeof meals.food === "number" ? meals.food : undefined, gift: typeof meals.gift === "number" ? meals.gift : undefined };
35869
35902
  const catalog = types2.filter((type) => !only.length || only.includes(type)).map((type) => catalogEntry(items.find((entry) => entry.type === type), type, limits, ctx.now)).sort((a, b) => Number(b.quantity > 0) - Number(a.quantity > 0));
35870
35903
  if (only.length) {
35871
- const next = only.length === 1 ? [{ run: `esim item use ${only[0]}` }, ...only[0] === "medkit" ? [] : [{ run: `esim item buy ${only[0]} --dry-run` }]] : [];
35904
+ const [selected] = only;
35905
+ const next = only.length === 1 && selected && types2.includes(selected) ? [{ run: `esim item use ${selected}` }, ...selected === "medkit" ? [] : [{ run: `esim item buy ${selected} --dry-run` }]] : [];
35872
35906
  return { stock: items.filter((entry) => only.includes(String(entry.type))), catalog, history, ...next.length ? { next } : {} };
35873
35907
  }
35874
35908
  return { stock: items, catalog, history, next: nextSteps(catalog) };
35875
35909
  },
35876
35910
  view: (data) => {
35877
- const { stock: _stock, catalog, ...rest } = row2(data);
35911
+ const { stock, catalog, ...rest } = row2(data);
35878
35912
  const entries = rows(catalog);
35879
35913
  const owned = entries.filter((entry) => number4(entry.quantity) > 0).length;
35880
35914
  const blocks = entries.map((entry) => block({
@@ -35886,8 +35920,13 @@ var item = [
35886
35920
  ].join(`
35887
35921
  `)
35888
35922
  }));
35923
+ const prizes = rows(stock).flatMap((entry) => {
35924
+ const name = prizeStockNames.get(String(entry.type));
35925
+ const quantity = number4(entry.quantity);
35926
+ return name && quantity > 0 ? [block({ head: [name, `own ${quantity}`], body: undefined })] : [];
35927
+ });
35889
35928
  return {
35890
- "special items": { "": `you own ${owned} of ${entries.length} kinds · auction: esim auction list --kind special`, items: blocks },
35929
+ "special items": { "": `you own ${owned + prizes.length} of ${entries.length + prizes.length} kinds · auction: esim auction list --kind special`, items: [...blocks, ...prizes] },
35891
35930
  equipment: "not a special item — esim gear",
35892
35931
  ...rest
35893
35932
  };
@@ -38086,7 +38125,7 @@ function saveCredentials(store, credentials) {
38086
38125
  }
38087
38126
 
38088
38127
  // version.ts
38089
- var version2 = "2026.1202.210";
38128
+ var version2 = "2026.1202.212";
38090
38129
  var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
38091
38130
  var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
38092
38131
  var releaseVersion = /^\d+\.\d+\.\d+$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esim-cli",
3
- "version": "2026.1202.210",
3
+ "version": "2026.1202.212",
4
4
  "description": "Command-line client and agent project for Open E-Sim",
5
5
  "type": "module",
6
6
  "license": "MIT",