esim-cli 2026.1202.211 → 2026.1202.213

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 +58 -19
  2. package/dist/index.js +58 -19
  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 件 | 谁的中签权重大 |
@@ -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" };
@@ -17678,15 +17688,15 @@ var prizeOrder = string2().transform((value) => value.split(",").map((key) => ke
17678
17688
  var prizes = {
17679
17689
  MEDKITS: { prize: "Medkits 3x", delivers: "3 medkits" },
17680
17690
  EXCEPTIONAL_ELIXIRS: { prize: "Exceptional elixir 1x", delivers: "1 Q6 lucky elixir · 8 hours" },
17681
- EQ_UPGRADE: { prize: "Equipment upgrade 1x", delivers: "1 Q3 accessory" },
17682
- EQ_RESCHUFFLE: { prize: "Equipment reshuffle 1x", delivers: "1 Q2 offhand" },
17683
- 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" },
17684
17694
  ...Object.fromEntries([25, 15, 10].map((percent) => [
17685
17695
  `BONUS_DAMAGE_${percent}`,
17686
17696
  { prize: `Damage bonus +${percent}%`, delivers: `+${percent}% damage for 72 hours, activated automatically at settlement` }
17687
17697
  ])),
17688
- PAIN_DEALERS: { prize: "Pain Dealer 1x", delivers: "1 tank" },
17689
- 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" }
17690
17700
  };
17691
17701
  var prizeRows = (keys) => keys.map((key, index) => ({ rank: index + 1, reward: key, ...prizes[String(key)] ?? { prize: String(key), delivers: "" } }));
17692
17702
  var prizeHelp = [
@@ -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.211";
38122
+ var version2 = "2026.1202.213";
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 件 | 谁的中签权重大 |
@@ -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" };
@@ -17674,15 +17684,15 @@ var prizeOrder = string2().transform((value) => value.split(",").map((key) => ke
17674
17684
  var prizes = {
17675
17685
  MEDKITS: { prize: "Medkits 3x", delivers: "3 medkits" },
17676
17686
  EXCEPTIONAL_ELIXIRS: { prize: "Exceptional elixir 1x", delivers: "1 Q6 lucky elixir · 8 hours" },
17677
- EQ_UPGRADE: { prize: "Equipment upgrade 1x", delivers: "1 Q3 accessory" },
17678
- EQ_RESCHUFFLE: { prize: "Equipment reshuffle 1x", delivers: "1 Q2 offhand" },
17679
- 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" },
17680
17690
  ...Object.fromEntries([25, 15, 10].map((percent) => [
17681
17691
  `BONUS_DAMAGE_${percent}`,
17682
17692
  { prize: `Damage bonus +${percent}%`, delivers: `+${percent}% damage for 72 hours, activated automatically at settlement` }
17683
17693
  ])),
17684
- PAIN_DEALERS: { prize: "Pain Dealer 1x", delivers: "1 tank" },
17685
- 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" }
17686
17696
  };
17687
17697
  var prizeRows = (keys) => keys.map((key, index) => ({ rank: index + 1, reward: key, ...prizes[String(key)] ?? { prize: String(key), delivers: "" } }));
17688
17698
  var prizeHelp = [
@@ -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.211";
38128
+ var version2 = "2026.1202.213";
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.211",
3
+ "version": "2026.1202.213",
4
4
  "description": "Command-line client and agent project for Open E-Sim",
5
5
  "type": "module",
6
6
  "license": "MIT",