addedInput schema / definitions / ClientPlatform
Added value: +{
+ "description": "",
+ "enum": [
+ "Unknown",
+ "Web",
+ "Android",
+ "Ios"
+ ],
+ "type": "string",
+ "x-enum-descriptions": [
+ "Platform was not reported, or the reported one contradicts the request fingerprint.",
+ "Browser: web build, WebGL, or a messenger mini-app.",
+ "Android build (Google Play Billing).",
+ "iOS / iPadOS build (App Store, StoreKit)."
+ ],
+ "x-enumNames": [
+ "Unknown",
+ "Web",
+ "Android",
+ "Ios"
+ ]
+}
addedInput schema / definitions / CurrencySpendDefinition
Added value: +{
+ "description": "A spend of the player's resources on an action of the game (a revive, other upgrade cards, a speed-up): the game does the action itself, the server only charges the price. The client names the spend, never the amount. Prices: virtual currencies, items, rewarded-video credit; no store payment, no Credits (Aspis), no crypto.",
+ "properties": {
+ "DisplayName": {
+ "description": "Name for the dashboard.",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "PriceOptions": {
+ "additionalProperties": {
+ "$ref": "#/definitions/PriceOption"
+ },
+ "description": "Price options; the client picks one by SelectedOptionID (empty — the first available on its platform).",
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "SpendID": {
+ "description": "Spend identifier (the dictionary key is used when empty).",
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / EventTokenAddress
Added value: +{
+ "description": "Universal event-token address. Uniquely identifies the system and event the tokens belong to.",
+ "properties": {
+ "EntityID": {
+ "description": "Event identifier within the system. In TITLE CONFIG (rewards written by a designer or an AI agent) scheduled systems use the SHORT form — the cycle number is unknowable at config time: \"{TimedEventID}\" / \"{LeaderboardID}\" = whichever instance is active at grant time, or \"{ID}:{ChainedEventID}\" = that chain phase in the current cycle. The engine (EventTokenAddressResolver in ResourceService) expands it before granting; a grant with no active instance is dropped. At RUNTIME the bucket address is always the full form \"{EntityID}:{InstanceKey}\": TimedEvent Scheduled → \"{TimedEventID}:s{yyyyMMddHHmm}\"; TimedEvent Chain → \"{chainID}:{cycleIndex}:{chainedEventID}\"; Leaderboard → \"{leaderboardID}:{instanceKey}\"; CoopEvent → CoopChainID; Season → SeasonChainID.",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "Type": {
+ "description": "System the tokens belong to.",
+ "oneOf": [
+ {
+ "$ref": "#/definitions/EventTokenType"
+ }
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / EventTokenOperation
Added value: +{
+ "description": "Information about granted event tokens. Returned in Board_Roll, QuestComplete and other responses. All multipliers (Roll/Premium/BonusWindow/ProgressiveTier/SeasonBuffs) are applied via ModifierService before ResourceService; this carries the final amount. Use ModifierApplyResult alongside ResourceOperation if UI needs multiplier breakdown.",
+ "properties": {
+ "Address": {
+ "description": "Event token address — where to grant or consume.",
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/definitions/EventTokenAddress"
+ }
+ ]
+ },
+ "Amount": {
+ "description": "Token amount — how many to grant or consume.",
+ "format": "int64",
+ "type": "integer"
+ },
+ "Source": {
+ "description": "Operation source (sourceKey used for analytics and limits).",
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / EventTokenType
Added value: +{
+ "description": "",
+ "enum": [
+ "TimedEvent",
+ "Leaderboard",
+ "CoopEvent",
+ "Season",
+ "Quest",
+ "DealOffer"
+ ],
+ "type": "string",
+ "x-enumNames": [
+ "TimedEvent",
+ "Leaderboard",
+ "CoopEvent",
+ "Season",
+ "Quest",
+ "DealOffer"
+ ]
+}
addedInput schema / definitions / PremiumTierBundle
Added value: +{
+ "description": "Per-tier bundle describing a structurally different set of resources (different ItemIDs/tokens/currencies) available only to subscribers. Used in both ResourceGrant.PremiumTiers (rewards) and ResourceConsume.PremiumTiers (price). Differs from PremiumTierBonus/PremiumTierDiscount which only modify Standard Amounts by percentage.",
+ "properties": {
+ "MinPremiumTier": {
+ "description": "Minimum tier required to qualify for this modifier.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "RequiredPremiumID": {
+ "description": "Optional specific subscription ID. null = any subscription matching MinPremiumTier.",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "Resources": {
+ "description": "Items, currencies and tokens of this tier. Entries with Amount=0 are valid and mean 'skip'. Empty/null Resources in Consume.PremiumTiers means 'premium pays nothing' (equivalent to Discounts: 1.0).",
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/definitions/ResourceBundle"
+ }
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / PremiumTierDiscount
Added value: +{
+ "description": "Percentage discount on ResourceConsume.Standard for a premium tier. All Standard Amounts are multiplied by (1 - Discount) with Math.Ceiling rounding in player's favor. Applies only to Standard; ignored if PremiumTiers matches. Best matching tier wins, discounts do not stack. Symmetric to PremiumTierBonus.",
+ "properties": {
+ "Discount": {
+ "description": "Discount as a SHARE: 0.1 = -10%, 1.0 = free. Empty or 0 = no discount. The unit is the same across the whole platform — never a 0..100 percent.",
+ "format": "double",
+ "type": [
+ "null",
+ "number"
+ ]
+ },
+ "MinPremiumTier": {
+ "description": "Minimum tier required to qualify for this modifier.",
+ "format": "int32",
+ "type": "integer"
+ },
+ "RequiredPremiumID": {
+ "description": "Optional specific subscription ID. null = any subscription matching MinPremiumTier.",
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / PriceOption
Added value: +{
+ "description": "A single way to pay for an entity. Platform-wide standard: everything with a configured price describes it as a PriceOptions dictionary whose key is the OptionID. Options exist because ResourceConsume.Standard is charged as a whole (AND), while a price across platforms is a choice (OR): a store SKU on mobile, a token on web. Platform duties split as \"the client renders, the server allows\": title config ships as one immutable artifact per (version, field set), so it cannot be filtered per request — the client hides options by AllowedPlatforms, while PriceOptionSelector.Select refuses a charge whose option is not available on the caller's platform.",
+ "properties": {
+ "AllowedPlatforms": {
+ "description": "Platforms this option is available on. Empty/null = all of them. Do not list Unknown: a client that did not report its platform only gets options with no platform restriction, i.e. those safe everywhere.",
+ "items": {
+ "$ref": "#/definitions/ClientPlatform"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "AssetPaths": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Option assets (currency icon, discount badge). Key = asset slug.",
+ "type": [
+ "null",
+ "object"
+ ]
+ },
+ "Cost": {
+ "description": "What is charged for this option. Standard is the base; PremiumDiscounts / PremiumTiers behave as everywhere else. An entry of type Purchase means the option is paid in a store rather than with a player resource: the payment is verified before ResourceService and never enters the resource operation. No initializer on purpose — \"unset\" must differ from \"set to empty\"; an unset Cost means the option is free.",
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/definitions/ResourceConsume"
+ }
+ ]
+ },
+ "Name": {
+ "description": "Display name of the option (\"For gold\", \"$0.99\"). A localization key or a literal — resolved client-side by the rule own table → fallback table → the key itself.",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "OptionID": {
+ "description": "Payment-option identifier. If empty, the dictionary key is substituted (PriceOptionResolver) — the client selects an option by this ID, so an option without one would be unselectable.",
+ "type": [
+ "null",
+ "string"
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / ResourceBundle
Added value: +{
+ "description": "Set of items, currencies and tokens for a single operation direction (grant only or consume only).",
+ "properties": {
+ "Entries": {
+ "description": "Items and currencies.",
+ "items": {
+ "$ref": "#/definitions/ResourceEntry"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "EventTokens": {
+ "description": "Event tokens.",
+ "items": {
+ "$ref": "#/definitions/EventTokenOperation"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / ResourceConsume
Added value: +{
+ "description": "Consume direction container for ResourceOperation. Two mutually exclusive premium mechanisms over Standard: PremiumTiers (priority) replaces Standard with the best matching tier's Resources via Replace, and PremiumDiscounts (fallback) applies a percentage discount to Standard only when no PremiumTier matched. Best matching tier wins, no stacking.",
+ "properties": {
+ "PremiumDiscounts": {
+ "description": "Percentage discount on Standard for premium players. Single best matching tier wins (no stacking): Amount = ceil(Amount * (1 - Discount)). Ignored if any PremiumTier matched — Replace takes over.",
+ "items": {
+ "$ref": "#/definitions/PremiumTierDiscount"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "PremiumTiers": {
+ "description": "Structurally different price for premium players (different ItemID/CurrencyID/Target). Always Replace, single best matching tier wins. If matched, Standard is fully replaced and PremiumDiscounts is ignored; otherwise fallback to Standard + PremiumDiscounts.",
+ "items": {
+ "$ref": "#/definitions/PremiumTierBundle"
+ },
+ "type": [
+ "array",
+ "null"
+ ]
+ },
+ "Standard": {
+ "description": "Base — what to charge all players including F2P.",
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/definitions/ResourceBundle"
+ }
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / ResourceEntry
Added value: +{
+ "description": "Universal container for a single entry in a resource bundle (item or currency). The set of populated fields depends on Type: Item uses CatalogID/ItemID/Amount; VirtualCurrency or CryptoCurrency uses CurrencyID/Amount; Purchase uses only ProductID (paid in a store).",
+ "properties": {
+ "Amount": {
+ "description": "Amount of the resource. Used by every type except Purchase, where the quantity is decided by the store itself and this field is ignored. Amount=0 is valid in Consume.PremiumTiers and means 'do not charge'.",
+ "format": "int64",
+ "type": [
+ "integer",
+ "null"
+ ]
+ },
+ "AmountUsd": {
+ "description": "CryptoCurrency only: the amount in USD instead of a token count. At the moment of the operation the engine converts it to tokens at the LIVE market price of the token (charge: rounded up to a whole token; grant: rounded down). When set, Amount is ignored; the operation result carries the converted Amount.",
+ "format": "decimal",
+ "type": [
+ "null",
+ "number"
+ ]
+ },
+ "CatalogID": {
+ "description": "Item catalog identifier. Used only when Type is Item. Corresponds to a key in cfg.Item.Catalogs (e.g. \"main\", \"season\").",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "CurrencyID": {
+ "description": "Currency identifier. Used only when Type is VirtualCurrency or CryptoCurrency. Corresponds to a key in cfg.Currency.VirtualCurrencies or cfg.Currency.CryptoCurrencies.",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "ItemID": {
+ "description": "Item identifier within the catalog. Used only when Type is Item. Corresponds to a key in cfg.Item.Catalogs[Catalog].Items.",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "ProductID": {
+ "description": "IAP product identifier. Used only when Type is Purchase. Corresponds to a key in cfg.Purchase.Products — OUR stable product ID, not the store SKU (per-store SKUs live in IapProductDefinition.StoreProductIDs).",
+ "type": [
+ "null",
+ "string"
+ ]
+ },
+ "Type": {
+ "description": "Resource type. Determines which fields must be populated: Item (catalog item), VirtualCurrency (off-chain), CryptoCurrency (on-chain), or Purchase (real-money payment in a store).",
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "$ref": "#/definitions/ResourceEntryType"
+ }
+ ]
+ }
+ },
+ "type": "object"
+}
addedInput schema / definitions / ResourceEntryType
Added value: +{
+ "description": "",
+ "enum": [
+ "Item",
+ "VirtualCurrency",
+ "CryptoCurrency",
+ "Purchase",
+ "RewardedVideoCredit",
+ "PlatformCredits"
+ ],
+ "type": "string",
+ "x-enum-descriptions": [
+ "Catalog item. Requires CatalogID, ItemID and Amount.",
+ "In-game (off-chain) virtual currency. Requires CurrencyID and Amount. Looked up in cfg.Currency.VirtualCurrencies.",
+ "On-chain cryptocurrency. Requires CurrencyID and Amount. Looked up in cfg.Currency.CryptoCurrencies.",
+ "Real-money payment in a store. Requires only ProductID (a product from cfg.Purchase.Products); the amount and currency are decided by the store from the SKU price tier. NOT a storable resource and never passes through ResourceService — the money is paid outside before the server learns about it, so the entry is consumed by the receipt check (ExternalPaymentGate) and stripped before the resource operation. Allowed only in Consume and only for Consumable products.",
+ "Rewarded-video credit. One credit equals one verified ad view that can be spent in systems requiring rewarded video (lootbox open, reward double, re-roll, booster). Granted +1 per server-verified view, or as N from milestones/quests/premium perks; spent -1 per gated action.",
+ "Payment in Credits, the PLATFORM currency on the player's iDos Games account (players see it as \"Aspis\" — write Aspis in player-facing text). Requires only Amount — the price in whole Credits. Like Purchase it is NOT a player resource and never enters ResourceService: it is settled by PlatformCreditsPayment in the same transaction as the grant (buyer charged, author credited). Accepted by every sale of the game author: Store, Lootbox, Collection packs, Craft, DealOffer, TimedBoost, Premium, Item and Character upgrades, skins, CoopEvent spins, GameLoop special mode entry, Workshop publish fee, InApp AI (charged only when the generation is ready). NOT accepted in player-to-player prices or refundable fees (Marketplace listing fee, PvP Match creation) - those refuse with CREDITS_NOT_ALLOWED_HERE; batch calls refuse too. Allowed only in Consume: Credits are never a reward anywhere."
+ ],
+ "x-enumNames": [
+ "Item",
+ "VirtualCurrency",
+ "CryptoCurrency",
+ "Purchase",
+ "RewardedVideoCredit",
+ "PlatformCredits"
+ ]
+}
addedInput schema / properties / value / properties / Spends
Added value: +{
+ "additionalProperties": {
+ "$ref": "#/definitions/CurrencySpendDefinition"
+ },
+ "description": "Spends of the player's resources on actions of the game (Currency/Spend): a revive, other upgrade cards… The server charges the configured price and grants nothing.",
+ "type": [
+ "null",
+ "object"
+ ]
+}