esim-cli 2026.1201.199 → 2026.1201.201

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esim.js CHANGED
@@ -15171,7 +15171,7 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15171
15171
  { operationId: "SetAuctionAlert", name: "set-auction-alert", method: "PUT", path: "/api/me/auction-alerts/{auctionId}", spec: "notify.yaml", write: true, retry: "natural", description: "SetAuctionAlert", parameters: [{ name: "auctionId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["subscribed"], properties: { subscribed: { type: "boolean" } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["subscribed"], properties: { subscribed: { type: "boolean" } } } } }, responseFields: ["subscribed"] },
15172
15172
  { operationId: "ListNotifications", name: "list-notifications", method: "GET", path: "/api/me/notifications", spec: "notify.yaml", write: false, retry: "unsafe", description: "ListNotifications", parameters: [{ name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "page", in: "query", description: "One-based page number. Mutually exclusive with cursor. Omit to use cursor pagination.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "category", in: "query", style: "form", explode: true, schema: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } }, { name: "unreadOnly", in: "query", schema: { type: "boolean", default: false } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor", "unreadCount"], properties: { items: { type: "array", items: { oneOf: [{ type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["fx.filled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["orderId", "quantity", "proceeds", "refundedQty"], properties: { orderId: { type: "integer", format: "int64", minimum: 1 }, quantity: { type: "integer", format: "int64" }, proceeds: { type: "integer", format: "int64" }, refundedQty: { type: "integer", format: "int64" }, sellAsset: { type: "string", description: "Asset sold and released from escrow." }, buyAsset: { type: "string", description: "Asset credited to the seller." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["market.filled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["orderId", "buyerId", "item", "quality", "quantity", "subtotal", "currencyCountryId"], properties: { orderId: { type: "integer", format: "int64", minimum: 1 }, buyerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, buyerName: { type: "string", description: "Current display name when the citizen exists." }, item: { type: "string", description: "Product market item code." }, quality: { type: "integer", format: "int64", minimum: 0 }, quantity: { type: "integer", format: "int64", minimum: 1 }, subtotal: { type: "integer", format: "int64", minimum: 1, description: "Trade amount before taxes in minor currency units." }, netProceeds: { type: "integer", format: "int64", minimum: 0, description: "Proceeds credited to the seller in minor currency units." }, currencyCountryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["article.published"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { oneOf: [{ type: "object", additionalProperties: false, required: ["newspaperId", "articleId"], properties: { newspaperId: { type: "integer", format: "int64", minimum: 1 }, articleId: { type: "integer", format: "int64", minimum: 1 } } }, { type: "object", additionalProperties: false, required: ["hidden"], properties: { hidden: { type: "boolean", enum: [true] } } }] }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["welcome"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["countryId", "message"], properties: { countryId: { type: "integer" }, message: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["battle.hero"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["round", "side", "gold"], properties: { battleId: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "Omitted for practice battles." }] }, round: { type: "integer", format: "int64", minimum: 1 }, side: { type: "integer", enum: [0, 1], description: "0 for attackers or black, 1 for defenders or white." }, gold: { type: "integer", minimum: 1, description: "Reward in whole Gold." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["battle.drops"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["round", "equipment", "potions"], properties: { battleId: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "Omitted for practice battles." }] }, round: { type: "integer", format: "int64", minimum: 1 }, equipment: { type: "integer", format: "int64", minimum: 0 }, potions: { type: "integer", format: "int64", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["equipment.merged"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, description: "Primera's conversion notice. Items are snapshots from the merge transaction; the consumed items no longer exist.", required: ["consumed", "product", "fee"], properties: { consumed: { type: "array", description: "The three merged items in the order they were selected.", minItems: 3, maxItems: 3, items: { type: "object", additionalProperties: false, required: ["id", "slot", "quality"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, slot: { type: "string", enum: ["head", "body", "legs", "offHand", "footwear", "accessory", "charm", "eye"] }, quality: { type: "integer", minimum: 1, maximum: 8 }, name: { type: "string" }, set: { type: "string" }, mergedBy: { type: "string", description: "Name recorded when the equipment was merged." }, modifiers: { type: "array", description: "Original order, including repeated and historical kinds.", items: { type: "object", additionalProperties: false, required: ["kind", "value"], properties: { kind: { type: "string" }, value: { type: "integer", description: "Percentages use basis points. Economic skill uses hundredths of a point." } } } } } } }, product: { type: "object", additionalProperties: false, required: ["id", "slot", "quality"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, slot: { type: "string", enum: ["head", "body", "legs", "offHand", "footwear", "accessory", "charm", "eye"] }, quality: { type: "integer", minimum: 1, maximum: 8 }, name: { type: "string" }, set: { type: "string" }, mergedBy: { type: "string", description: "Name recorded when the equipment was merged." }, modifiers: { type: "array", description: "Original order, including repeated and historical kinds.", items: { type: "object", additionalProperties: false, required: ["kind", "value"], properties: { kind: { type: "string" }, value: { type: "integer", description: "Percentages use basis points. Economic skill uses hundredths of a point." } } } } } }, fee: { type: "integer", format: "int64", minimum: 0, description: "Gold paid for the conversion, in hundredths." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizen.level"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["level", "gold"], properties: { level: { type: "integer", format: "int64", minimum: 1 }, gold: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["achievement.awarded"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["achievementId"], properties: { achievementId: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["reward.received"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["source", "entityId", "gains"], properties: { source: { type: "string", enum: ["promotion", "motivation", "unit_supply", "unit_funds", "battle_subsidy", "contract", "invitation", "factory_sale", "tournament", "resistance_tournament"] }, entityId: { type: "integer", format: "int64" }, gains: { type: "array", minItems: 1, items: { type: "object", required: ["item", "quantity"], properties: { item: { type: "string", description: "Product code, special item code, equipment, xp, gold or cur:<countryId>. Money quantities are minor units." }, quantity: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1 }, reference: { type: "integer", format: "int64", minimum: 1 }, name: { type: "string" } } } } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["medal.awarded"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["medal", "gold"], properties: { medal: { type: "string", enum: ["super_soldier", "hard_worker", "media_mogul", "congress", "resistance", "tournament", "tester"] }, gold: { type: "integer", enum: [5], description: "Reward in whole Gold." }, medkits: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.ending"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["auctionId", "endsAt"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, endsAt: { type: "string", format: "date-time" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.refund"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "asset", "amount"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, asset: { type: "string", enum: ["goods", "gold"] }, amount: { type: "integer", format: "int64", minimum: 1, description: "退回数量,金币以分计。" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["webhook.disabled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["friend.requested"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["citizenId", "countryId"], properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, citizenName: { type: "string", description: "Current display name when the citizen exists." }, countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["friend.accepted"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["citizenId", "countryId"], properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, citizenName: { type: "string", description: "Current display name when the citizen exists." }, countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["law.proposed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["lawId", "type", "title"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, type: { type: "string" }, title: { type: "string" }, closesAt: { type: "string", format: "date-time" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["law.resolved"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["lawId", "result"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, result: { type: "string", enum: ["ACCEPTED_SUCCESS", "REJECTED", "ACCEPTED_FAILED"] }, failReason: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["election.result"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["electionType", "round", "countryId", "elected"], properties: { electionType: { type: "string", enum: ["congress", "president", "party"] }, round: { type: "integer" }, countryId: { type: "integer", minimum: 0 }, partyId: { type: "integer", format: "int64", minimum: 1 }, elected: { type: "boolean" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizenship.applied"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["applicationId", "applicantId", "countryId"], properties: { applicationId: { type: "integer", format: "int64", minimum: 1 }, applicantId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, applicantName: { type: "string", description: "Current display name when the citizen exists." }, countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizenship.decided"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["applicationId", "countryId", "approved"], properties: { applicationId: { type: "integer", format: "int64", minimum: 1 }, countryId: { type: "integer", minimum: 0 }, approved: { type: "boolean" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizenship.revoked"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["countryId"], properties: { countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["minister.changed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["countryId", "office", "appointed", "lawId"], properties: { countryId: { type: "integer", minimum: 0 }, office: { type: "string" }, appointed: { type: "boolean" }, lawId: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["party.joined"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["partyId", "memberId"], properties: { partyId: { type: "integer", format: "int64", minimum: 1 }, memberId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, memberName: { type: "string", description: "Current display name when the citizen exists." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["party.removed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["partyId", "reason"], properties: { partyId: { type: "integer", format: "int64", minimum: 1 }, reason: { type: "string", enum: ["removed", "citizenship_changed"] } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["party.welcome"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["partyId", "message"], properties: { partyId: { type: "integer", format: "int64", minimum: 1 }, message: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.applied"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["applicationId", "unitId", "applicantId"], properties: { applicationId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, applicantId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, applicantName: { type: "string", description: "Current display name when the citizen exists." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.decided"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["unitId", "approved"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, approved: { type: "boolean" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.removed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["unitId"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.welcome"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["unitId", "message"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, message: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.outbid"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot", "price", "endsAt"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" }, price: { type: "integer", format: "int64", minimum: 1 }, endsAt: { type: "string", format: "date-time" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.won"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot", "price"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" }, price: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.sold"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot", "price"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" }, price: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.expired"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.hired"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "offerId", "wage"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, offerId: { type: "integer", format: "int64", minimum: 1 }, wage: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.dismissed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "offerId", "wage"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, offerId: { type: "integer", format: "int64", minimum: 1 }, wage: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.wage_changed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "oldWage", "newWage", "currencyCountryId"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, oldWage: { type: "integer", format: "int64", minimum: 1, description: "Previous wage in minor currency units." }, newWage: { type: "integer", format: "int64", minimum: 1, description: "New wage in minor currency units." }, currencyCountryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.resigned"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "workerId"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, workerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, workerName: { type: "string", description: "Current display name when the citizen exists." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["work.blocked"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "workerId", "day", "reason", "resource", "shortage"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, workerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, workerName: { type: "string", description: "Current display name when the citizen exists." }, day: { type: "integer", format: "int64", minimum: 1 }, reason: { type: "string" }, resource: { type: "string" }, shortage: { type: "integer", format: "int64", minimum: 1 }, personalAccount: { type: "boolean", description: "The owner’s personal wallet or inventory was short." }, closedOfferCount: { type: "integer", minimum: 1, description: "Number of open recruitment offers withdrawn by this failed shift." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["contract.proposed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "proposerId", "summary"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, proposerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, proposerName: { type: "string", description: "Current display name when the citizen exists." }, summary: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["contract.decided"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "status"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, status: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["loan.due"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "dueAt", "amount"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, dueAt: { type: "string", format: "date-time" }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["loan.repaid"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "amount"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["loan.defaulted"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "amount"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["stock.dividend"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "amount"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["stock.filled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "orderId", "quantity", "unitPrice"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, orderId: { type: "integer", format: "int64", minimum: 1 }, quantity: { type: "integer", format: "int64", minimum: 1 }, unitPrice: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["gift.received"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["giftId", "senderId"], properties: { giftId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, senderId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, senderName: { type: "string", description: "Current display name when the citizen exists." }, item: { type: "string" }, quality: { type: "integer", minimum: 0 }, quantity: { type: "integer", format: "int64", minimum: 1 }, equipmentId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["donation.received"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["donorId", "target", "targetId", "asset", "amount", "reason"], properties: { donorId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, donorName: { type: "string", description: "Current display name when the citizen exists." }, target: { type: "string", enum: ["citizen", "company", "unit", "treasury"] }, targetId: { type: "string", pattern: "^(0|[1-9][0-9]*)$" }, asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 1, description: "Amount in minor currency units." }, reason: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["article.commented"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["articleId", "commentId", "commenterId", "summary"], properties: { articleId: { type: "integer", format: "int64", minimum: 1 }, commentId: { type: "integer", format: "int64", minimum: 1 }, commenterId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, commenterName: { type: "string", description: "Current display name when the citizen exists." }, summary: { type: "string", maxLength: 160 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["feedback.resolved"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["feedbackId", "title", "status", "reply"], properties: { feedbackId: { type: "integer", format: "int64", minimum: 1 }, title: { type: "string" }, status: { type: "string", enum: ["accepted", "rejected", "duplicate"] }, reply: { type: "string" }, duplicateOf: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }], discriminator: { propertyName: "kind", mapping: { "law.proposed": "#/components/schemas/LawProposedNotification", "law.resolved": "#/components/schemas/LawResolvedNotification", "election.result": "#/components/schemas/ElectionResultNotification", "citizenship.applied": "#/components/schemas/CitizenshipAppliedNotification", "citizenship.decided": "#/components/schemas/CitizenshipDecidedNotification", "citizenship.revoked": "#/components/schemas/CitizenshipRevokedNotification", "minister.changed": "#/components/schemas/MinisterChangedNotification", "party.joined": "#/components/schemas/PartyJoinedNotification", "party.removed": "#/components/schemas/PartyRemovedNotification", "party.welcome": "#/components/schemas/PartyWelcomeNotification", "unit.applied": "#/components/schemas/UnitAppliedNotification", "unit.decided": "#/components/schemas/UnitDecidedNotification", "unit.removed": "#/components/schemas/UnitRemovedNotification", "unit.welcome": "#/components/schemas/UnitWelcomeNotification", "friend.requested": "#/components/schemas/FriendRequestedNotification", "friend.accepted": "#/components/schemas/FriendAcceptedNotification", "fx.filled": "#/components/schemas/FXFilledNotification", "market.filled": "#/components/schemas/MarketFilledNotification", "article.published": "#/components/schemas/ArticlePublishedNotification", "battle.hero": "#/components/schemas/BattleHeroNotification", "battle.drops": "#/components/schemas/BattleDropsNotification", "equipment.merged": "#/components/schemas/EquipmentMergedNotification", "citizen.level": "#/components/schemas/CitizenLevelNotification", "achievement.awarded": "#/components/schemas/AchievementAwardedNotification", "reward.received": "#/components/schemas/RewardReceivedNotification", "medal.awarded": "#/components/schemas/MedalAwardedNotification", "auction.refund": "#/components/schemas/AuctionRefundNotification", "auction.ending": "#/components/schemas/AuctionEndingNotification", "webhook.disabled": "#/components/schemas/WebhookDisabledNotification", "auction.outbid": "#/components/schemas/AuctionOutbidNotification", "auction.won": "#/components/schemas/AuctionWonNotification", "auction.sold": "#/components/schemas/AuctionSoldNotification", "auction.expired": "#/components/schemas/AuctionExpiredNotification", "job.hired": "#/components/schemas/JobHiredNotification", "job.dismissed": "#/components/schemas/JobDismissedNotification", "job.wage_changed": "#/components/schemas/JobWageChangedNotification", "job.resigned": "#/components/schemas/JobResignedNotification", "work.blocked": "#/components/schemas/WorkBlockedNotification", "contract.proposed": "#/components/schemas/ContractProposedNotification", "contract.decided": "#/components/schemas/ContractDecidedNotification", "loan.due": "#/components/schemas/LoanDueNotification", "loan.repaid": "#/components/schemas/LoanRepaidNotification", "loan.defaulted": "#/components/schemas/LoanDefaultedNotification", "stock.dividend": "#/components/schemas/StockDividendNotification", "stock.filled": "#/components/schemas/StockFilledNotification", "article.commented": "#/components/schemas/ArticleCommentedNotification", "feedback.resolved": "#/components/schemas/FeedbackResolvedNotification", "donation.received": "#/components/schemas/DonationReceivedNotification", "gift.received": "#/components/schemas/GiftReceivedNotification", welcome: "#/components/schemas/WelcomeNotification" } } } }, nextCursor: { type: ["string", "null"] }, unreadCount: { type: "integer", minimum: 0 }, page: { description: "Requested page number. Present only for numbered requests.", type: "integer", format: "int64", minimum: 1 }, total: { description: "Total visible notifications matching category and unreadOnly. Present only for numbered requests.", type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["items", "nextCursor", "unreadCount", "page", "total"] },
15173
15173
  { operationId: "DismissNotifications", name: "dismiss-notifications", method: "DELETE", path: "/api/me/notifications", spec: "notify.yaml", write: true, retry: "natural", description: "DismissNotifications", parameters: [{ name: "upToId", in: "query", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "category", in: "query", style: "form", explode: true, schema: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } }], requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15174
- { operationId: "ReadNotifications", name: "read-notifications", method: "POST", path: "/api/me/notifications/read", spec: "notify.yaml", write: true, retry: "natural", description: "ReadNotifications", parameters: [], body: { required: true, schema: { type: "object", required: ["upToId"], properties: { upToId: { type: "integer", format: "int64", minimum: 1 }, categories: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15174
+ { operationId: "ReadNotifications", name: "read-notifications", method: "POST", path: "/api/me/notifications/read", spec: "notify.yaml", write: true, retry: "natural", description: "ReadNotifications", parameters: [], body: { required: true, schema: { type: "object", required: ["upToId"], properties: { fromId: { type: "integer", format: "int64", minimum: 1 }, upToId: { type: "integer", format: "int64", minimum: 1 }, categories: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15175
15175
  { operationId: "ListConversations", name: "list-conversations", method: "GET", path: "/api/me/conversations", spec: "notify.yaml", write: false, retry: "unsafe", description: "ListConversations", parameters: [{ name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor", "unreadCount"], properties: { items: { type: "array", items: { type: "object", required: ["peer", "lastMessage", "unreadCount", "blockedByMe"], properties: { peer: { type: "object", required: ["id", "name", "nation", "level"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 }, level: { type: "integer", minimum: 1 }, avatarVersion: { type: "string" } } }, lastMessage: { type: "object", required: ["id", "sender", "recipient", "body", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, sender: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, recipient: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, unreadCount: { type: "integer", minimum: 0 }, blockedByMe: { type: "boolean" } } } }, nextCursor: { type: ["string", "null"] }, unreadCount: { type: "integer", minimum: 0 } } } } }, responseFields: ["items", "nextCursor", "unreadCount"] },
15176
15176
  { operationId: "ListMessages", name: "list-messages", method: "GET", path: "/api/me/conversations/{pid}/messages", spec: "notify.yaml", write: false, retry: "unsafe", description: "ListMessages", parameters: [{ name: "pid", in: "path", required: true, schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "page", in: "query", description: "One-based conversation page. Omit to use cursor pagination. Cannot be combined with cursor or before.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "before", in: "query", description: "Return messages older than this message ID. Cannot be combined with page or cursor.", schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { total: { description: "Visible message count for numbered requests. Conversation counts reflect the current snapshot. Mailbox direction counts are projected and may lag committed messages.", type: "integer", format: "int64", minimum: 0 }, items: { type: "array", items: { description: "A message with the card citizen. In a mailbox this is the counterpart, and in a conversation history this is the sender.", allOf: [{ type: "object", required: ["id", "sender", "recipient", "body", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, sender: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, recipient: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["citizen"], properties: { citizen: { type: "object", required: ["id", "name", "nation", "level"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 }, level: { type: "integer", minimum: 1 }, avatarVersion: { type: "string" } } } } }] } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["total", "items", "nextCursor"] },
15177
15177
  { operationId: "SendMessage", name: "send-message", method: "POST", path: "/api/me/conversations/{pid}/messages", spec: "notify.yaml", write: true, retry: "unsafe", description: "SendMessage", parameters: [{ name: "pid", in: "path", required: true, schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }], body: { required: true, schema: { type: "object", required: ["body"], properties: { body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", required: ["id", "sender", "recipient", "body", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, sender: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, recipient: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } } } }, responseFields: ["id", "sender", "recipient", "body", "subject", "createdAt", "readAt"] },
@@ -15324,7 +15324,8 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15324
15324
  { operationId: "getCountry", name: "get-country", method: "GET", path: "/api/countries/{id}", spec: "world.yaml", write: false, retry: "unsafe", description: "Public country summary and controlled land IDs.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { allOf: [{ type: "object", required: ["id", "leader", "treasury", "tax", "taxCategories", "population", "landCount"], properties: { id: { type: "integer", minimum: 0 }, leader: { anyOf: [{ type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, { type: "null" }] }, leaderName: { type: "string" }, treasury: { type: "integer", format: "int64", minimum: 0 }, tax: { type: "integer", minimum: 0 }, taxCategories: { type: "object", additionalProperties: { type: "object", additionalProperties: false, required: ["vatPercent", "importPercent"], properties: { vatPercent: { type: "integer", minimum: 0 }, importPercent: { type: "integer", minimum: 0 }, incomePercent: { type: "integer", minimum: 0, maximum: 50 }, productionPercent: { type: "integer", minimum: 0, maximum: 100 } } } }, minimumWage: { type: "integer", format: "int64", minimum: 0, description: "Statutory minimum wage in hundredths of the national currency." }, population: { type: "integer", format: "int64", minimum: 0 }, landCount: { type: "integer", minimum: 0 } } }, { type: "object", required: ["lands"], properties: { defenceMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, defenceMinisterName: { type: "string" }, financeMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, financeMinisterName: { type: "string" }, lands: { type: "array", items: { type: "integer", minimum: 0 } } } }] } } }, responseFields: ["id", "leader", "leaderName", "treasury", "tax", "taxCategories", "minimumWage", "population", "landCount", "defenceMinister", "defenceMinisterName", "financeMinister", "financeMinisterName", "lands"] },
15325
15325
  { operationId: "getCountryTreasury", name: "get-country-treasury", method: "GET", path: "/api/countries/{id}/treasury", spec: "world.yaml", write: false, retry: "unsafe", description: "Public treasury balances, building stock and taxes from the preceding game day.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["balances", "buildingStock", "yesterdayTaxes"], properties: { balances: { type: "array", description: "Gold first, then positive national currency balances in descending amount order. Amounts are in hundredths of each asset, including pending credits.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, buildingStock: { type: "array", description: "Current catalog counts per building product. Mapping Primera's star groups to the current catalog is unverified.", items: { type: "object", required: ["product", "quantity"], properties: { product: { type: "string", enum: ["DEFENSE_SYSTEM", "HOSPITAL"] }, quantity: { type: "integer", format: "int64", minimum: 0 } } } }, yesterdayTaxes: { type: "object", required: ["day", "totals", "byType"], properties: { day: { description: "Previous game day. Zero if the current game day is the first.", type: "integer", minimum: 0 }, totals: { type: "array", description: "Individual asset totals in hundredths. Different currencies are never added together.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, byType: { type: "array", items: { type: "object", required: ["type", "asset", "amount"], properties: { type: { type: "string", enum: ["income", "vat", "import", "marketCombined"], description: "Legacy market postings did not distinguish VAT from import tax." }, asset: { type: "string" }, amount: { type: "integer", format: "int64", minimum: 0 } } } } } } } } } }, responseFields: ["balances", "buildingStock", "yesterdayTaxes"] },
15326
15326
  { operationId: "listWorldEvents", name: "list-world-events", method: "GET", path: "/api/world/events", spec: "world.yaml", write: false, retry: "unsafe", description: "Public world announcements, newest first. With country, only events that involve it as attacker, defender, the event's own country, or the current or rightful owner of the event's region.", parameters: [{ name: "category", in: "query", schema: { type: "string", enum: ["military", "political"] } }, { name: "country", in: "query", description: "Local country ID; the Primera events page country filter.", schema: { type: "integer", minimum: 0 } }, { name: "cursor", in: "query", schema: { type: "string" } }, { 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", "day", "occurredAt", "category"], properties: { battleId: { type: "integer", format: "int64", minimum: 1 }, fieldBuildingProposal: { type: "object", additionalProperties: false, required: ["land", "id"], properties: { land: { type: "integer", minimum: 0 }, id: { type: "integer", format: "int64", minimum: 1 }, nation: { type: "integer", minimum: 0 }, kind: { type: "string", enum: ["hospital", "defense_system"] }, quality: { type: "integer", description: "Number of buildings of this kind in the deployment.", minimum: 1, maximum: 5 }, round: { type: "integer", minimum: 1, maximum: 15 } } }, id: { type: "integer", format: "int64", minimum: 1 }, day: { type: "integer", minimum: 1 }, occurredAt: { type: "string", format: "date-time" }, category: { type: "string", enum: ["military", "political"] }, message: { type: "string", description: "Legacy event display text." }, kind: { type: "string", enum: ["citizen_joined", "president_elected", "practice_started", "sailor_week_announced", "field_building_proposed", "war_declared", "battle_started", "battle_ended", "resistance_started"] }, params: { type: "object", additionalProperties: false, properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, countryId: { type: "integer", minimum: 0 }, regionId: { type: "integer", minimum: 0 }, attackerId: { type: "integer", minimum: 0 }, defenderId: { type: "integer", minimum: 0 }, winnerId: { type: "integer", minimum: 0 }, startsAt: { type: "string", format: "date-time" }, endsAt: { type: "string", format: "date-time" }, building: { type: "string", enum: ["hospital", "defense_system"] }, count: { type: "integer", minimum: 1 }, round: { type: "integer", minimum: 1 } } } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15327
- { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] }
15327
+ { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] },
15328
+ { operationId: "getWorldOnline", name: "get-world-online", method: "GET", path: "/api/world/online", spec: "world.yaml", write: false, retry: "unsafe", description: "Public aggregate count of real registered players with recorded session or API token activity in the last five minutes.", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["count"], properties: { count: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["count"] }
15328
15329
  ];
15329
15330
 
15330
15331
  // operation-model.ts
@@ -38071,7 +38072,7 @@ function saveCredentials(store, credentials) {
38071
38072
  }
38072
38073
 
38073
38074
  // version.ts
38074
- var version2 = "2026.1201.199";
38075
+ var version2 = "2026.1201.201";
38075
38076
  var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
38076
38077
  var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
38077
38078
  var releaseUrl = (release) => `https://github.com/CorrectRoadH/open-esim/releases/download/cli-v${release}`;
package/dist/index.js CHANGED
@@ -15167,7 +15167,7 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15167
15167
  { operationId: "SetAuctionAlert", name: "set-auction-alert", method: "PUT", path: "/api/me/auction-alerts/{auctionId}", spec: "notify.yaml", write: true, retry: "natural", description: "SetAuctionAlert", parameters: [{ name: "auctionId", in: "path", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }], body: { required: true, schema: { type: "object", additionalProperties: false, required: ["subscribed"], properties: { subscribed: { type: "boolean" } } } }, requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["subscribed"], properties: { subscribed: { type: "boolean" } } } } }, responseFields: ["subscribed"] },
15168
15168
  { operationId: "ListNotifications", name: "list-notifications", method: "GET", path: "/api/me/notifications", spec: "notify.yaml", write: false, retry: "unsafe", description: "ListNotifications", parameters: [{ name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "page", in: "query", description: "One-based page number. Mutually exclusive with cursor. Omit to use cursor pagination.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "category", in: "query", style: "form", explode: true, schema: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } }, { name: "unreadOnly", in: "query", schema: { type: "boolean", default: false } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor", "unreadCount"], properties: { items: { type: "array", items: { oneOf: [{ type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["fx.filled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["orderId", "quantity", "proceeds", "refundedQty"], properties: { orderId: { type: "integer", format: "int64", minimum: 1 }, quantity: { type: "integer", format: "int64" }, proceeds: { type: "integer", format: "int64" }, refundedQty: { type: "integer", format: "int64" }, sellAsset: { type: "string", description: "Asset sold and released from escrow." }, buyAsset: { type: "string", description: "Asset credited to the seller." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["market.filled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["orderId", "buyerId", "item", "quality", "quantity", "subtotal", "currencyCountryId"], properties: { orderId: { type: "integer", format: "int64", minimum: 1 }, buyerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, buyerName: { type: "string", description: "Current display name when the citizen exists." }, item: { type: "string", description: "Product market item code." }, quality: { type: "integer", format: "int64", minimum: 0 }, quantity: { type: "integer", format: "int64", minimum: 1 }, subtotal: { type: "integer", format: "int64", minimum: 1, description: "Trade amount before taxes in minor currency units." }, netProceeds: { type: "integer", format: "int64", minimum: 0, description: "Proceeds credited to the seller in minor currency units." }, currencyCountryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["article.published"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { oneOf: [{ type: "object", additionalProperties: false, required: ["newspaperId", "articleId"], properties: { newspaperId: { type: "integer", format: "int64", minimum: 1 }, articleId: { type: "integer", format: "int64", minimum: 1 } } }, { type: "object", additionalProperties: false, required: ["hidden"], properties: { hidden: { type: "boolean", enum: [true] } } }] }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["welcome"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["countryId", "message"], properties: { countryId: { type: "integer" }, message: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["battle.hero"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["round", "side", "gold"], properties: { battleId: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "Omitted for practice battles." }] }, round: { type: "integer", format: "int64", minimum: 1 }, side: { type: "integer", enum: [0, 1], description: "0 for attackers or black, 1 for defenders or white." }, gold: { type: "integer", minimum: 1, description: "Reward in whole Gold." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["battle.drops"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["round", "equipment", "potions"], properties: { battleId: { allOf: [{ type: "integer", format: "int64", minimum: 1 }, { description: "Omitted for practice battles." }] }, round: { type: "integer", format: "int64", minimum: 1 }, equipment: { type: "integer", format: "int64", minimum: 0 }, potions: { type: "integer", format: "int64", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["equipment.merged"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, description: "Primera's conversion notice. Items are snapshots from the merge transaction; the consumed items no longer exist.", required: ["consumed", "product", "fee"], properties: { consumed: { type: "array", description: "The three merged items in the order they were selected.", minItems: 3, maxItems: 3, items: { type: "object", additionalProperties: false, required: ["id", "slot", "quality"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, slot: { type: "string", enum: ["head", "body", "legs", "offHand", "footwear", "accessory", "charm", "eye"] }, quality: { type: "integer", minimum: 1, maximum: 8 }, name: { type: "string" }, set: { type: "string" }, mergedBy: { type: "string", description: "Name recorded when the equipment was merged." }, modifiers: { type: "array", description: "Original order, including repeated and historical kinds.", items: { type: "object", additionalProperties: false, required: ["kind", "value"], properties: { kind: { type: "string" }, value: { type: "integer", description: "Percentages use basis points. Economic skill uses hundredths of a point." } } } } } } }, product: { type: "object", additionalProperties: false, required: ["id", "slot", "quality"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, slot: { type: "string", enum: ["head", "body", "legs", "offHand", "footwear", "accessory", "charm", "eye"] }, quality: { type: "integer", minimum: 1, maximum: 8 }, name: { type: "string" }, set: { type: "string" }, mergedBy: { type: "string", description: "Name recorded when the equipment was merged." }, modifiers: { type: "array", description: "Original order, including repeated and historical kinds.", items: { type: "object", additionalProperties: false, required: ["kind", "value"], properties: { kind: { type: "string" }, value: { type: "integer", description: "Percentages use basis points. Economic skill uses hundredths of a point." } } } } } }, fee: { type: "integer", format: "int64", minimum: 0, description: "Gold paid for the conversion, in hundredths." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizen.level"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["level", "gold"], properties: { level: { type: "integer", format: "int64", minimum: 1 }, gold: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["achievement.awarded"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["achievementId"], properties: { achievementId: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["reward.received"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["source", "entityId", "gains"], properties: { source: { type: "string", enum: ["promotion", "motivation", "unit_supply", "unit_funds", "battle_subsidy", "contract", "invitation", "factory_sale", "tournament", "resistance_tournament"] }, entityId: { type: "integer", format: "int64" }, gains: { type: "array", minItems: 1, items: { type: "object", required: ["item", "quantity"], properties: { item: { type: "string", description: "Product code, special item code, equipment, xp, gold or cur:<countryId>. Money quantities are minor units." }, quantity: { type: "integer", format: "int64", minimum: 1 }, quality: { type: "integer", minimum: 1 }, reference: { type: "integer", format: "int64", minimum: 1 }, name: { type: "string" } } } } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["medal.awarded"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["medal", "gold"], properties: { medal: { type: "string", enum: ["super_soldier", "hard_worker", "media_mogul", "congress", "resistance", "tournament", "tester"] }, gold: { type: "integer", enum: [5], description: "Reward in whole Gold." }, medkits: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.ending"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["auctionId", "endsAt"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, endsAt: { type: "string", format: "date-time" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.refund"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "asset", "amount"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, asset: { type: "string", enum: ["goods", "gold"] }, amount: { type: "integer", format: "int64", minimum: 1, description: "退回数量,金币以分计。" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["webhook.disabled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["friend.requested"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["citizenId", "countryId"], properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, citizenName: { type: "string", description: "Current display name when the citizen exists." }, countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["friend.accepted"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["citizenId", "countryId"], properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, citizenName: { type: "string", description: "Current display name when the citizen exists." }, countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["law.proposed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["lawId", "type", "title"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, type: { type: "string" }, title: { type: "string" }, closesAt: { type: "string", format: "date-time" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["law.resolved"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["lawId", "result"], properties: { lawId: { type: "integer", format: "int64", minimum: 1 }, result: { type: "string", enum: ["ACCEPTED_SUCCESS", "REJECTED", "ACCEPTED_FAILED"] }, failReason: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["election.result"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["electionType", "round", "countryId", "elected"], properties: { electionType: { type: "string", enum: ["congress", "president", "party"] }, round: { type: "integer" }, countryId: { type: "integer", minimum: 0 }, partyId: { type: "integer", format: "int64", minimum: 1 }, elected: { type: "boolean" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizenship.applied"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["applicationId", "applicantId", "countryId"], properties: { applicationId: { type: "integer", format: "int64", minimum: 1 }, applicantId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, applicantName: { type: "string", description: "Current display name when the citizen exists." }, countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizenship.decided"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["applicationId", "countryId", "approved"], properties: { applicationId: { type: "integer", format: "int64", minimum: 1 }, countryId: { type: "integer", minimum: 0 }, approved: { type: "boolean" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["citizenship.revoked"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["countryId"], properties: { countryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["minister.changed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["countryId", "office", "appointed", "lawId"], properties: { countryId: { type: "integer", minimum: 0 }, office: { type: "string" }, appointed: { type: "boolean" }, lawId: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["party.joined"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["partyId", "memberId"], properties: { partyId: { type: "integer", format: "int64", minimum: 1 }, memberId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, memberName: { type: "string", description: "Current display name when the citizen exists." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["party.removed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["partyId", "reason"], properties: { partyId: { type: "integer", format: "int64", minimum: 1 }, reason: { type: "string", enum: ["removed", "citizenship_changed"] } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["party.welcome"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["partyId", "message"], properties: { partyId: { type: "integer", format: "int64", minimum: 1 }, message: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.applied"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["applicationId", "unitId", "applicantId"], properties: { applicationId: { type: "integer", format: "int64", minimum: 1 }, unitId: { type: "integer", format: "int64", minimum: 1 }, applicantId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, applicantName: { type: "string", description: "Current display name when the citizen exists." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.decided"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["unitId", "approved"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, approved: { type: "boolean" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.removed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["unitId"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["unit.welcome"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["unitId", "message"], properties: { unitId: { type: "integer", format: "int64", minimum: 1 }, message: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.outbid"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot", "price", "endsAt"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" }, price: { type: "integer", format: "int64", minimum: 1 }, endsAt: { type: "string", format: "date-time" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.won"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot", "price"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" }, price: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.sold"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot", "price"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" }, price: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["auction.expired"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["auctionId", "lot"], properties: { auctionId: { type: "integer", format: "int64", minimum: 1 }, lot: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.hired"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "offerId", "wage"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, offerId: { type: "integer", format: "int64", minimum: 1 }, wage: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.dismissed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "offerId", "wage"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, offerId: { type: "integer", format: "int64", minimum: 1 }, wage: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.wage_changed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "oldWage", "newWage", "currencyCountryId"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, oldWage: { type: "integer", format: "int64", minimum: 1, description: "Previous wage in minor currency units." }, newWage: { type: "integer", format: "int64", minimum: 1, description: "New wage in minor currency units." }, currencyCountryId: { type: "integer", minimum: 0 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["job.resigned"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "workerId"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, workerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, workerName: { type: "string", description: "Current display name when the citizen exists." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["work.blocked"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "workerId", "day", "reason", "resource", "shortage"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, workerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, workerName: { type: "string", description: "Current display name when the citizen exists." }, day: { type: "integer", format: "int64", minimum: 1 }, reason: { type: "string" }, resource: { type: "string" }, shortage: { type: "integer", format: "int64", minimum: 1 }, personalAccount: { type: "boolean", description: "The owner’s personal wallet or inventory was short." }, closedOfferCount: { type: "integer", minimum: 1, description: "Number of open recruitment offers withdrawn by this failed shift." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["contract.proposed"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "proposerId", "summary"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, proposerId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, proposerName: { type: "string", description: "Current display name when the citizen exists." }, summary: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["contract.decided"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "status"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, status: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["loan.due"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "dueAt", "amount"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, dueAt: { type: "string", format: "date-time" }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["loan.repaid"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "amount"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["loan.defaulted"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["contractId", "amount"], properties: { contractId: { type: "integer", format: "int64", minimum: 1 }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["stock.dividend"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "amount"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, amount: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["stock.filled"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", additionalProperties: false, required: ["companyId", "orderId", "quantity", "unitPrice"], properties: { companyId: { type: "integer", format: "int64", minimum: 1 }, orderId: { type: "integer", format: "int64", minimum: 1 }, quantity: { type: "integer", format: "int64", minimum: 1 }, unitPrice: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["gift.received"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["giftId", "senderId"], properties: { giftId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, senderId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, senderName: { type: "string", description: "Current display name when the citizen exists." }, item: { type: "string" }, quality: { type: "integer", minimum: 0 }, quantity: { type: "integer", format: "int64", minimum: 1 }, equipmentId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["donation.received"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["donorId", "target", "targetId", "asset", "amount", "reason"], properties: { donorId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, donorName: { type: "string", description: "Current display name when the citizen exists." }, target: { type: "string", enum: ["citizen", "company", "unit", "treasury"] }, targetId: { type: "string", pattern: "^(0|[1-9][0-9]*)$" }, asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 1, description: "Amount in minor currency units." }, reason: { type: "string" } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["article.commented"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["articleId", "commentId", "commenterId", "summary"], properties: { articleId: { type: "integer", format: "int64", minimum: 1 }, commentId: { type: "integer", format: "int64", minimum: 1 }, commenterId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, commenterName: { type: "string", description: "Current display name when the citizen exists." }, summary: { type: "string", maxLength: 160 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["id", "kind", "category", "payload", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, kind: { type: "string", enum: ["feedback.resolved"] }, category: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] }, payload: { type: "object", required: ["feedbackId", "title", "status", "reply"], properties: { feedbackId: { type: "integer", format: "int64", minimum: 1 }, title: { type: "string" }, status: { type: "string", enum: ["accepted", "rejected", "duplicate"] }, reply: { type: "string" }, duplicateOf: { type: "integer", format: "int64", minimum: 1 } } }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }], discriminator: { propertyName: "kind", mapping: { "law.proposed": "#/components/schemas/LawProposedNotification", "law.resolved": "#/components/schemas/LawResolvedNotification", "election.result": "#/components/schemas/ElectionResultNotification", "citizenship.applied": "#/components/schemas/CitizenshipAppliedNotification", "citizenship.decided": "#/components/schemas/CitizenshipDecidedNotification", "citizenship.revoked": "#/components/schemas/CitizenshipRevokedNotification", "minister.changed": "#/components/schemas/MinisterChangedNotification", "party.joined": "#/components/schemas/PartyJoinedNotification", "party.removed": "#/components/schemas/PartyRemovedNotification", "party.welcome": "#/components/schemas/PartyWelcomeNotification", "unit.applied": "#/components/schemas/UnitAppliedNotification", "unit.decided": "#/components/schemas/UnitDecidedNotification", "unit.removed": "#/components/schemas/UnitRemovedNotification", "unit.welcome": "#/components/schemas/UnitWelcomeNotification", "friend.requested": "#/components/schemas/FriendRequestedNotification", "friend.accepted": "#/components/schemas/FriendAcceptedNotification", "fx.filled": "#/components/schemas/FXFilledNotification", "market.filled": "#/components/schemas/MarketFilledNotification", "article.published": "#/components/schemas/ArticlePublishedNotification", "battle.hero": "#/components/schemas/BattleHeroNotification", "battle.drops": "#/components/schemas/BattleDropsNotification", "equipment.merged": "#/components/schemas/EquipmentMergedNotification", "citizen.level": "#/components/schemas/CitizenLevelNotification", "achievement.awarded": "#/components/schemas/AchievementAwardedNotification", "reward.received": "#/components/schemas/RewardReceivedNotification", "medal.awarded": "#/components/schemas/MedalAwardedNotification", "auction.refund": "#/components/schemas/AuctionRefundNotification", "auction.ending": "#/components/schemas/AuctionEndingNotification", "webhook.disabled": "#/components/schemas/WebhookDisabledNotification", "auction.outbid": "#/components/schemas/AuctionOutbidNotification", "auction.won": "#/components/schemas/AuctionWonNotification", "auction.sold": "#/components/schemas/AuctionSoldNotification", "auction.expired": "#/components/schemas/AuctionExpiredNotification", "job.hired": "#/components/schemas/JobHiredNotification", "job.dismissed": "#/components/schemas/JobDismissedNotification", "job.wage_changed": "#/components/schemas/JobWageChangedNotification", "job.resigned": "#/components/schemas/JobResignedNotification", "work.blocked": "#/components/schemas/WorkBlockedNotification", "contract.proposed": "#/components/schemas/ContractProposedNotification", "contract.decided": "#/components/schemas/ContractDecidedNotification", "loan.due": "#/components/schemas/LoanDueNotification", "loan.repaid": "#/components/schemas/LoanRepaidNotification", "loan.defaulted": "#/components/schemas/LoanDefaultedNotification", "stock.dividend": "#/components/schemas/StockDividendNotification", "stock.filled": "#/components/schemas/StockFilledNotification", "article.commented": "#/components/schemas/ArticleCommentedNotification", "feedback.resolved": "#/components/schemas/FeedbackResolvedNotification", "donation.received": "#/components/schemas/DonationReceivedNotification", "gift.received": "#/components/schemas/GiftReceivedNotification", welcome: "#/components/schemas/WelcomeNotification" } } } }, nextCursor: { type: ["string", "null"] }, unreadCount: { type: "integer", minimum: 0 }, page: { description: "Requested page number. Present only for numbered requests.", type: "integer", format: "int64", minimum: 1 }, total: { description: "Total visible notifications matching category and unreadOnly. Present only for numbered requests.", type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["items", "nextCursor", "unreadCount", "page", "total"] },
15169
15169
  { operationId: "DismissNotifications", name: "dismiss-notifications", method: "DELETE", path: "/api/me/notifications", spec: "notify.yaml", write: true, retry: "natural", description: "DismissNotifications", parameters: [{ name: "upToId", in: "query", required: true, schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "category", in: "query", style: "form", explode: true, schema: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } }], requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15170
- { operationId: "ReadNotifications", name: "read-notifications", method: "POST", path: "/api/me/notifications/read", spec: "notify.yaml", write: true, retry: "natural", description: "ReadNotifications", parameters: [], body: { required: true, schema: { type: "object", required: ["upToId"], properties: { upToId: { type: "integer", format: "int64", minimum: 1 }, categories: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15170
+ { operationId: "ReadNotifications", name: "read-notifications", method: "POST", path: "/api/me/notifications/read", spec: "notify.yaml", write: true, retry: "natural", description: "ReadNotifications", parameters: [], body: { required: true, schema: { type: "object", required: ["upToId"], properties: { fromId: { type: "integer", format: "int64", minimum: 1 }, upToId: { type: "integer", format: "int64", minimum: 1 }, categories: { type: "array", minItems: 1, items: { type: "string", enum: ["MONETARY_MARKET_ALERT", "COMPANY_ALERT", "SUBSTIDY_RECEIVED", "CITIZEN_PROGRESS", "MEDAL_RECEIVED", "ELECTIONS", "CONGRESS", "CITIZENSHIP", "OTHER", "DONATION", "TUTORIAL", "CONTRACTS", "MODERATORS", "MILITARY_UNIT", "PREMIUM_ACCOUNT", "STOCK_MARKET", "EQUIPMENT", "AUCTIONS", "ACHIEVEMENT_RECEIVED", "FORCE_SELL_EQUIPMENT", "FORCE_EQUIPMENT_OFF", "ACCOUNT_SITTING", "MISSION_COMPLETED", "MOTIVATION", "EVENT", "BROADCAST_SENT", "PARTY", "MENTORING", "PRODUCT_MARKET", "SPECIAL_ITEM", "ARTICLE_COMMENT", "SOCIAL_MENTION", "TASK_QUEUE", "REFERRAL_ACTIVITY", "GAME_ROOM"] } } } } }, requiresCredentials: true, responses: { "204": { kind: "empty" } }, responseFields: [] },
15171
15171
  { operationId: "ListConversations", name: "list-conversations", method: "GET", path: "/api/me/conversations", spec: "notify.yaml", write: false, retry: "unsafe", description: "ListConversations", parameters: [{ name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor", "unreadCount"], properties: { items: { type: "array", items: { type: "object", required: ["peer", "lastMessage", "unreadCount", "blockedByMe"], properties: { peer: { type: "object", required: ["id", "name", "nation", "level"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 }, level: { type: "integer", minimum: 1 }, avatarVersion: { type: "string" } } }, lastMessage: { type: "object", required: ["id", "sender", "recipient", "body", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, sender: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, recipient: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, unreadCount: { type: "integer", minimum: 0 }, blockedByMe: { type: "boolean" } } } }, nextCursor: { type: ["string", "null"] }, unreadCount: { type: "integer", minimum: 0 } } } } }, responseFields: ["items", "nextCursor", "unreadCount"] },
15172
15172
  { operationId: "ListMessages", name: "list-messages", method: "GET", path: "/api/me/conversations/{pid}/messages", spec: "notify.yaml", write: false, retry: "unsafe", description: "ListMessages", parameters: [{ name: "pid", in: "path", required: true, schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }, { name: "cursor", in: "query", schema: { type: "string" } }, { name: "limit", in: "query", schema: { type: "integer", minimum: 1, maximum: 100, default: 20 } }, { name: "page", in: "query", description: "One-based conversation page. Omit to use cursor pagination. Cannot be combined with cursor or before.", schema: { type: "integer", format: "int64", minimum: 1 } }, { name: "before", in: "query", description: "Return messages older than this message ID. Cannot be combined with page or cursor.", schema: { type: "integer", format: "int64", minimum: 1 } }], requiresCredentials: true, responses: { "200": { kind: "json", schema: { type: "object", required: ["items", "nextCursor"], properties: { total: { description: "Visible message count for numbered requests. Conversation counts reflect the current snapshot. Mailbox direction counts are projected and may lag committed messages.", type: "integer", format: "int64", minimum: 0 }, items: { type: "array", items: { description: "A message with the card citizen. In a mailbox this is the counterpart, and in a conversation history this is the sender.", allOf: [{ type: "object", required: ["id", "sender", "recipient", "body", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, sender: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, recipient: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } }, { type: "object", required: ["citizen"], properties: { citizen: { type: "object", required: ["id", "name", "nation", "level"], properties: { id: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, name: { type: "string" }, nation: { type: "integer", minimum: 0 }, level: { type: "integer", minimum: 1 }, avatarVersion: { type: "string" } } } } }] } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["total", "items", "nextCursor"] },
15173
15173
  { operationId: "SendMessage", name: "send-message", method: "POST", path: "/api/me/conversations/{pid}/messages", spec: "notify.yaml", write: true, retry: "unsafe", description: "SendMessage", parameters: [{ name: "pid", in: "path", required: true, schema: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." } }], body: { required: true, schema: { type: "object", required: ["body"], properties: { body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 } } } }, requiresCredentials: true, responses: { "201": { kind: "json", schema: { type: "object", required: ["id", "sender", "recipient", "body", "createdAt"], properties: { id: { type: "integer", format: "int64", minimum: 1 }, sender: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, recipient: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, body: { type: "string", minLength: 1, maxLength: 1e4 }, subject: { type: "string", minLength: 1, maxLength: 100 }, createdAt: { type: "string", format: "date-time" }, readAt: { type: "string", format: "date-time" } } } } }, responseFields: ["id", "sender", "recipient", "body", "subject", "createdAt", "readAt"] },
@@ -15320,7 +15320,8 @@ Each submission of the built-in gold code awards 50 gold. For other codes, a ret
15320
15320
  { operationId: "getCountry", name: "get-country", method: "GET", path: "/api/countries/{id}", spec: "world.yaml", write: false, retry: "unsafe", description: "Public country summary and controlled land IDs.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { allOf: [{ type: "object", required: ["id", "leader", "treasury", "tax", "taxCategories", "population", "landCount"], properties: { id: { type: "integer", minimum: 0 }, leader: { anyOf: [{ type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, { type: "null" }] }, leaderName: { type: "string" }, treasury: { type: "integer", format: "int64", minimum: 0 }, tax: { type: "integer", minimum: 0 }, taxCategories: { type: "object", additionalProperties: { type: "object", additionalProperties: false, required: ["vatPercent", "importPercent"], properties: { vatPercent: { type: "integer", minimum: 0 }, importPercent: { type: "integer", minimum: 0 }, incomePercent: { type: "integer", minimum: 0, maximum: 50 }, productionPercent: { type: "integer", minimum: 0, maximum: 100 } } } }, minimumWage: { type: "integer", format: "int64", minimum: 0, description: "Statutory minimum wage in hundredths of the national currency." }, population: { type: "integer", format: "int64", minimum: 0 }, landCount: { type: "integer", minimum: 0 } } }, { type: "object", required: ["lands"], properties: { defenceMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, defenceMinisterName: { type: "string" }, financeMinister: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, financeMinisterName: { type: "string" }, lands: { type: "array", items: { type: "integer", minimum: 0 } } } }] } } }, responseFields: ["id", "leader", "leaderName", "treasury", "tax", "taxCategories", "minimumWage", "population", "landCount", "defenceMinister", "defenceMinisterName", "financeMinister", "financeMinisterName", "lands"] },
15321
15321
  { operationId: "getCountryTreasury", name: "get-country-treasury", method: "GET", path: "/api/countries/{id}/treasury", spec: "world.yaml", write: false, retry: "unsafe", description: "Public treasury balances, building stock and taxes from the preceding game day.", parameters: [{ name: "id", in: "path", required: true, schema: { type: "integer", minimum: 0 } }], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", required: ["balances", "buildingStock", "yesterdayTaxes"], properties: { balances: { type: "array", description: "Gold first, then positive national currency balances in descending amount order. Amounts are in hundredths of each asset, including pending credits.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, buildingStock: { type: "array", description: "Current catalog counts per building product. Mapping Primera's star groups to the current catalog is unverified.", items: { type: "object", required: ["product", "quantity"], properties: { product: { type: "string", enum: ["DEFENSE_SYSTEM", "HOSPITAL"] }, quantity: { type: "integer", format: "int64", minimum: 0 } } } }, yesterdayTaxes: { type: "object", required: ["day", "totals", "byType"], properties: { day: { description: "Previous game day. Zero if the current game day is the first.", type: "integer", minimum: 0 }, totals: { type: "array", description: "Individual asset totals in hundredths. Different currencies are never added together.", items: { type: "object", additionalProperties: false, required: ["asset", "amount"], properties: { asset: { type: "string", pattern: "^(gold|cur:[0-9]+)$" }, amount: { type: "integer", format: "int64", minimum: 0 } } } }, byType: { type: "array", items: { type: "object", required: ["type", "asset", "amount"], properties: { type: { type: "string", enum: ["income", "vat", "import", "marketCombined"], description: "Legacy market postings did not distinguish VAT from import tax." }, asset: { type: "string" }, amount: { type: "integer", format: "int64", minimum: 0 } } } } } } } } } }, responseFields: ["balances", "buildingStock", "yesterdayTaxes"] },
15322
15322
  { operationId: "listWorldEvents", name: "list-world-events", method: "GET", path: "/api/world/events", spec: "world.yaml", write: false, retry: "unsafe", description: "Public world announcements, newest first. With country, only events that involve it as attacker, defender, the event's own country, or the current or rightful owner of the event's region.", parameters: [{ name: "category", in: "query", schema: { type: "string", enum: ["military", "political"] } }, { name: "country", in: "query", description: "Local country ID; the Primera events page country filter.", schema: { type: "integer", minimum: 0 } }, { name: "cursor", in: "query", schema: { type: "string" } }, { 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", "day", "occurredAt", "category"], properties: { battleId: { type: "integer", format: "int64", minimum: 1 }, fieldBuildingProposal: { type: "object", additionalProperties: false, required: ["land", "id"], properties: { land: { type: "integer", minimum: 0 }, id: { type: "integer", format: "int64", minimum: 1 }, nation: { type: "integer", minimum: 0 }, kind: { type: "string", enum: ["hospital", "defense_system"] }, quality: { type: "integer", description: "Number of buildings of this kind in the deployment.", minimum: 1, maximum: 5 }, round: { type: "integer", minimum: 1, maximum: 15 } } }, id: { type: "integer", format: "int64", minimum: 1 }, day: { type: "integer", minimum: 1 }, occurredAt: { type: "string", format: "date-time" }, category: { type: "string", enum: ["military", "political"] }, message: { type: "string", description: "Legacy event display text." }, kind: { type: "string", enum: ["citizen_joined", "president_elected", "practice_started", "sailor_week_announced", "field_building_proposed", "war_declared", "battle_started", "battle_ended", "resistance_started"] }, params: { type: "object", additionalProperties: false, properties: { citizenId: { type: "string", pattern: "^[1-9][0-9]*$", description: "Decimal encoding of the citizen ID." }, countryId: { type: "integer", minimum: 0 }, regionId: { type: "integer", minimum: 0 }, attackerId: { type: "integer", minimum: 0 }, defenderId: { type: "integer", minimum: 0 }, winnerId: { type: "integer", minimum: 0 }, startsAt: { type: "string", format: "date-time" }, endsAt: { type: "string", format: "date-time" }, building: { type: "string", enum: ["hospital", "defense_system"] }, count: { type: "integer", minimum: 1 }, round: { type: "integer", minimum: 1 } } } } } }, nextCursor: { type: ["string", "null"] } } } } }, responseFields: ["items", "nextCursor"] },
15323
- { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] }
15323
+ { operationId: "getWorldClock", name: "clock", method: "GET", path: "/api/world/clock", spec: "world.yaml", write: false, retry: "unsafe", description: "getWorldClock", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"], properties: { now: { type: "string", format: "date-time" }, timezone: { type: "string", const: "Asia/Shanghai" }, day: { type: "integer", minimum: 1 }, date: { type: "string", format: "date" }, nextDayAt: { type: "string", format: "date-time" }, speed: { type: "number", format: "double", minimum: 1, maximum: 1440, description: "Factor by which game rule durations are shortened." }, dayLength: { type: "number", format: "double", description: "Game day length in real seconds." } } } } }, responseFields: ["now", "timezone", "day", "date", "nextDayAt", "speed", "dayLength"] },
15324
+ { operationId: "getWorldOnline", name: "get-world-online", method: "GET", path: "/api/world/online", spec: "world.yaml", write: false, retry: "unsafe", description: "Public aggregate count of real registered players with recorded session or API token activity in the last five minutes.", parameters: [], requiresCredentials: false, responses: { "200": { kind: "json", schema: { type: "object", additionalProperties: false, required: ["count"], properties: { count: { type: "integer", format: "int64", minimum: 0 } } } } }, responseFields: ["count"] }
15324
15325
  ];
15325
15326
 
15326
15327
  // operation-model.ts
@@ -38077,7 +38078,7 @@ function saveCredentials(store, credentials) {
38077
38078
  }
38078
38079
 
38079
38080
  // version.ts
38080
- var version2 = "2026.1201.199";
38081
+ var version2 = "2026.1201.201";
38081
38082
  var installKind = version2 === "dev" ? "source" : typeof ESIM_CLI_EXECUTABLE === "boolean" && ESIM_CLI_EXECUTABLE ? "executable" : "npm";
38082
38083
  var npmLatestUrl = "https://registry.npmjs.org/esim-cli/latest";
38083
38084
  var releaseVersion = /^\d+\.\d+\.\d+$/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esim-cli",
3
- "version": "2026.1201.199",
3
+ "version": "2026.1201.201",
4
4
  "description": "Command-line client and agent project for Open E-Sim",
5
5
  "type": "module",
6
6
  "license": "MIT",