@idosgames/core 0.21.0 → 0.21.2
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/CHANGELOG.md +25 -0
- package/dist/{RealtimeSession-DYzdKXlK.d.ts → RealtimeSession-DV8nqoW9.d.ts} +8 -2
- package/dist/{RealtimeSession-C7RK8yTp.d.cts → RealtimeSession-EKLR1A0G.d.cts} +8 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,31 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.21.2] - 2026-10-05
|
|
18
|
+
|
|
19
|
+
The model follows the backend rename (rolled out 05.10.2026). Patch, not minor: the server no longer
|
|
20
|
+
sends the old field, so the old name was already always empty — nothing that worked stops working.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- `BlockchainDefinitions.IframeAllowedHosts` → **`IframeConnectHosts`**. It now widens only the
|
|
25
|
+
game's network requests (`connect-src`) while it is embedded on idosgames.com. Framing another
|
|
26
|
+
website there is never allowed (`frame-src` is platform hosts only, owner's decision): a game build
|
|
27
|
+
must be the game itself, not a wrapper around an external site.
|
|
28
|
+
|
|
29
|
+
## [0.21.1] - 2026-10-05
|
|
30
|
+
|
|
31
|
+
Crypto withdrawal fees and IOUs (rollout 05.10.2026). Additive: new optional fields only.
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- `CryptoCurrencyDefinition`: `DeveloperWithdrawalFeePercent`, `CommunityMarketingWithdrawalFeePercent`,
|
|
36
|
+
`WithdrawalBurnPercent` — fees are taken on the player's withdrawal only; `UnbackedRewardCurrencyID` — the
|
|
37
|
+
`{ID}_IOU` virtual currency a crypto reward is paid in when the players' reward pool cannot cover it
|
|
38
|
+
(repaid with real crypto later; crypto spent in the game spends the IOU first).
|
|
39
|
+
- `CurrencyDefinitions`: `CryptoRewardsFromDeveloperShare`, `CryptoIouForScriptsAndAI`,
|
|
40
|
+
`CryptoAutoRepayIouOnWithdrawal` toggles.
|
|
41
|
+
|
|
17
42
|
## [0.21.0] - 2026-10-03
|
|
18
43
|
|
|
19
44
|
The central cache, and behaviour fixes found by playing every system of the playground on the
|
|
@@ -146,11 +146,17 @@ type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | stri
|
|
|
146
146
|
type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
147
147
|
type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
|
|
148
148
|
type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
|
|
149
|
-
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string;
|
|
149
|
+
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
150
150
|
/** The title's currency catalog (config), returned by getCurrencyDefinitions(). */
|
|
151
151
|
interface CurrencyDefinitions {
|
|
152
152
|
VirtualCurrencies?: Record<string, VirtualCurrencyDefinition> | null;
|
|
153
153
|
CryptoCurrencies?: Record<string, CryptoCurrencyDefinition> | null;
|
|
154
|
+
/** Crypto rewards the players' reward pool cannot cover are topped up from the developer share (off by default). */
|
|
155
|
+
CryptoRewardsFromDeveloperShare?: boolean | null;
|
|
156
|
+
/** CloudCode and AI feature rewards also grant the unbacked part as the IOU instead of refusing (off by default). */
|
|
157
|
+
CryptoIouForScriptsAndAI?: boolean | null;
|
|
158
|
+
/** Repay IOUs lazily on withdrawal from the players' reward pool of that network (absent = on). */
|
|
159
|
+
CryptoAutoRepayIouOnWithdrawal?: boolean | null;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
@@ -3084,7 +3090,7 @@ declare const PlayAccessMode: {
|
|
|
3084
3090
|
};
|
|
3085
3091
|
type PlayAccessMode = (typeof PlayAccessMode)[keyof typeof PlayAccessMode];
|
|
3086
3092
|
type BlockchainPlayAccessPolicy = { Mode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; TokenGates?: null | Array<WalletPlayTokenGate>; [key: string]: unknown; };
|
|
3087
|
-
type BlockchainDefinitions = { SystemState?: null | BlockchainSystemState; Networks?: null | Record<string, BlockchainNetworkDefinition>; AccountSafety?: null | BlockchainAccountSafetyPolicy; WalletLogin?: null | { Enabled?: null | boolean; WalletConnectProjectId?: null | string; [key: string]: unknown; }; PlayAccess?: null | BlockchainPlayAccessPolicy;
|
|
3093
|
+
type BlockchainDefinitions = { SystemState?: null | BlockchainSystemState; Networks?: null | Record<string, BlockchainNetworkDefinition>; AccountSafety?: null | BlockchainAccountSafetyPolicy; WalletLogin?: null | { Enabled?: null | boolean; WalletConnectProjectId?: null | string; [key: string]: unknown; }; PlayAccess?: null | BlockchainPlayAccessPolicy; IframeConnectHosts?: null | Array<string>; [key: string]: unknown; };
|
|
3088
3094
|
type LinkedWalletInfo = { NetworkID?: null | string; Address?: null | string; LinkedAt?: null | string; LastUsedAt?: null | string; LinkType?: null | 'AutoLinkedFromTransaction' | 'SignatureVerified' | 'ManuallyLinked'; IsSignatureVerified?: null | boolean; [key: string]: unknown; };
|
|
3089
3095
|
type PendingWithdrawalRef = { TitleTransactionID?: null | string; Type?: null | 'Token' | 'Nft'; NetworkID?: null | string; AssetID?: null | string; Amount?: null | string; CreatedAt?: null | string; ExpiresAt?: null | string; [key: string]: unknown; };
|
|
3090
3096
|
type UserKycState = { Status?: null | 'Expired' | 'Pending' | 'Rejected' | 'NotRequested' | 'Verified'; Tier?: null | 'None' | 'Tier1' | 'Tier2' | 'Tier3'; VerifiedAt?: null | string; ExpiresAt?: null | string; RejectedAt?: null | string; ProviderReference?: null | string; RejectionReason?: null | string; [key: string]: unknown; };
|
|
@@ -146,11 +146,17 @@ type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | stri
|
|
|
146
146
|
type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
147
147
|
type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
|
|
148
148
|
type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
|
|
149
|
-
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string;
|
|
149
|
+
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
150
150
|
/** The title's currency catalog (config), returned by getCurrencyDefinitions(). */
|
|
151
151
|
interface CurrencyDefinitions {
|
|
152
152
|
VirtualCurrencies?: Record<string, VirtualCurrencyDefinition> | null;
|
|
153
153
|
CryptoCurrencies?: Record<string, CryptoCurrencyDefinition> | null;
|
|
154
|
+
/** Crypto rewards the players' reward pool cannot cover are topped up from the developer share (off by default). */
|
|
155
|
+
CryptoRewardsFromDeveloperShare?: boolean | null;
|
|
156
|
+
/** CloudCode and AI feature rewards also grant the unbacked part as the IOU instead of refusing (off by default). */
|
|
157
|
+
CryptoIouForScriptsAndAI?: boolean | null;
|
|
158
|
+
/** Repay IOUs lazily on withdrawal from the players' reward pool of that network (absent = on). */
|
|
159
|
+
CryptoAutoRepayIouOnWithdrawal?: boolean | null;
|
|
154
160
|
}
|
|
155
161
|
|
|
156
162
|
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
@@ -3084,7 +3090,7 @@ declare const PlayAccessMode: {
|
|
|
3084
3090
|
};
|
|
3085
3091
|
type PlayAccessMode = (typeof PlayAccessMode)[keyof typeof PlayAccessMode];
|
|
3086
3092
|
type BlockchainPlayAccessPolicy = { Mode?: null | 'Open' | 'AnyWithLinkedWallet' | 'WalletOnly'; TokenGates?: null | Array<WalletPlayTokenGate>; [key: string]: unknown; };
|
|
3087
|
-
type BlockchainDefinitions = { SystemState?: null | BlockchainSystemState; Networks?: null | Record<string, BlockchainNetworkDefinition>; AccountSafety?: null | BlockchainAccountSafetyPolicy; WalletLogin?: null | { Enabled?: null | boolean; WalletConnectProjectId?: null | string; [key: string]: unknown; }; PlayAccess?: null | BlockchainPlayAccessPolicy;
|
|
3093
|
+
type BlockchainDefinitions = { SystemState?: null | BlockchainSystemState; Networks?: null | Record<string, BlockchainNetworkDefinition>; AccountSafety?: null | BlockchainAccountSafetyPolicy; WalletLogin?: null | { Enabled?: null | boolean; WalletConnectProjectId?: null | string; [key: string]: unknown; }; PlayAccess?: null | BlockchainPlayAccessPolicy; IframeConnectHosts?: null | Array<string>; [key: string]: unknown; };
|
|
3088
3094
|
type LinkedWalletInfo = { NetworkID?: null | string; Address?: null | string; LinkedAt?: null | string; LastUsedAt?: null | string; LinkType?: null | 'AutoLinkedFromTransaction' | 'SignatureVerified' | 'ManuallyLinked'; IsSignatureVerified?: null | boolean; [key: string]: unknown; };
|
|
3089
3095
|
type PendingWithdrawalRef = { TitleTransactionID?: null | string; Type?: null | 'Token' | 'Nft'; NetworkID?: null | string; AssetID?: null | string; Amount?: null | string; CreatedAt?: null | string; ExpiresAt?: null | string; [key: string]: unknown; };
|
|
3090
3096
|
type UserKycState = { Status?: null | 'Expired' | 'Pending' | 'Rejected' | 'NotRequested' | 'Verified'; Tier?: null | 'None' | 'Tier1' | 'Tier2' | 'Tier3'; VerifiedAt?: null | string; ExpiresAt?: null | string; RejectedAt?: null | string; ProviderReference?: null | string; RejectionReason?: null | string; [key: string]: unknown; };
|