@kalamba/sdk 0.38.1 → 0.38.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/dist/{i18n-CmwXmJaL.d.ts → i18n-ChV9TVRC.d.cts} +11 -11
- package/dist/{i18n-D58gDMXP.d.cts → i18n-D5qNV_RZ.d.ts} +11 -11
- package/dist/{index-CXau6Ghs.d.cts → index-BDX8wC2b.d.cts} +1 -1
- package/dist/{index-m-m_dirH.d.ts → index-DoyJ_lrx.d.ts} +1 -1
- package/dist/index.d.cts +3 -69
- package/dist/index.d.ts +3 -69
- package/dist/plugins.d.cts +1 -1
- package/dist/plugins.d.ts +1 -1
- package/dist/wrapper.d.cts +2 -2
- package/dist/wrapper.d.ts +2 -2
- package/package.json +1 -1
|
@@ -216,12 +216,12 @@ type SdkError = {
|
|
|
216
216
|
} | {
|
|
217
217
|
messageKey: string;
|
|
218
218
|
});
|
|
219
|
-
type OpenGameRequest = {
|
|
220
|
-
contract
|
|
221
|
-
extra?:
|
|
219
|
+
type OpenGameRequest<DataT = unknown> = {
|
|
220
|
+
contract: ContractOpenGamePayload;
|
|
221
|
+
extra?: DataT;
|
|
222
222
|
};
|
|
223
|
-
type ContractOpenGamePayload = Record<string, never>;
|
|
224
|
-
type OpenGameResponse = {
|
|
223
|
+
type ContractOpenGamePayload = undefined | Record<string, never>;
|
|
224
|
+
type OpenGameResponse<DataT = unknown> = {
|
|
225
225
|
contract: {
|
|
226
226
|
bet: {
|
|
227
227
|
available: Record<number, number[]>;
|
|
@@ -262,13 +262,13 @@ type OpenGameResponse = {
|
|
|
262
262
|
total: number;
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
|
-
data:
|
|
265
|
+
data: DataT;
|
|
266
266
|
};
|
|
267
|
-
type PlayRequest = {
|
|
267
|
+
type PlayRequest<DataT = unknown> = {
|
|
268
268
|
contract: ContractPlayPayload;
|
|
269
|
-
extra?:
|
|
269
|
+
extra?: DataT;
|
|
270
270
|
};
|
|
271
|
-
type PlayRequestEnhanced = PlayRequest & {
|
|
271
|
+
type PlayRequestEnhanced<DataT = unknown> = PlayRequest<DataT> & {
|
|
272
272
|
payloadToInject?: Record<string, unknown>;
|
|
273
273
|
};
|
|
274
274
|
type ContractPlayPayload = {
|
|
@@ -276,7 +276,7 @@ type ContractPlayPayload = {
|
|
|
276
276
|
bet: Bet | null;
|
|
277
277
|
forcedOutcomes?: unknown;
|
|
278
278
|
};
|
|
279
|
-
type PlayResponse = {
|
|
279
|
+
type PlayResponse<DataT = unknown> = {
|
|
280
280
|
contract: {
|
|
281
281
|
bet: {
|
|
282
282
|
last: Bet | null;
|
|
@@ -299,7 +299,7 @@ type PlayResponse = {
|
|
|
299
299
|
total: number;
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
|
-
data:
|
|
302
|
+
data: DataT;
|
|
303
303
|
};
|
|
304
304
|
type FreeRoundsRequest = {
|
|
305
305
|
id: string;
|
|
@@ -216,12 +216,12 @@ type SdkError = {
|
|
|
216
216
|
} | {
|
|
217
217
|
messageKey: string;
|
|
218
218
|
});
|
|
219
|
-
type OpenGameRequest = {
|
|
220
|
-
contract
|
|
221
|
-
extra?:
|
|
219
|
+
type OpenGameRequest<DataT = unknown> = {
|
|
220
|
+
contract: ContractOpenGamePayload;
|
|
221
|
+
extra?: DataT;
|
|
222
222
|
};
|
|
223
|
-
type ContractOpenGamePayload = Record<string, never>;
|
|
224
|
-
type OpenGameResponse = {
|
|
223
|
+
type ContractOpenGamePayload = undefined | Record<string, never>;
|
|
224
|
+
type OpenGameResponse<DataT = unknown> = {
|
|
225
225
|
contract: {
|
|
226
226
|
bet: {
|
|
227
227
|
available: Record<number, number[]>;
|
|
@@ -262,13 +262,13 @@ type OpenGameResponse = {
|
|
|
262
262
|
total: number;
|
|
263
263
|
};
|
|
264
264
|
};
|
|
265
|
-
data:
|
|
265
|
+
data: DataT;
|
|
266
266
|
};
|
|
267
|
-
type PlayRequest = {
|
|
267
|
+
type PlayRequest<DataT = unknown> = {
|
|
268
268
|
contract: ContractPlayPayload;
|
|
269
|
-
extra?:
|
|
269
|
+
extra?: DataT;
|
|
270
270
|
};
|
|
271
|
-
type PlayRequestEnhanced = PlayRequest & {
|
|
271
|
+
type PlayRequestEnhanced<DataT = unknown> = PlayRequest<DataT> & {
|
|
272
272
|
payloadToInject?: Record<string, unknown>;
|
|
273
273
|
};
|
|
274
274
|
type ContractPlayPayload = {
|
|
@@ -276,7 +276,7 @@ type ContractPlayPayload = {
|
|
|
276
276
|
bet: Bet | null;
|
|
277
277
|
forcedOutcomes?: unknown;
|
|
278
278
|
};
|
|
279
|
-
type PlayResponse = {
|
|
279
|
+
type PlayResponse<DataT = unknown> = {
|
|
280
280
|
contract: {
|
|
281
281
|
bet: {
|
|
282
282
|
last: Bet | null;
|
|
@@ -299,7 +299,7 @@ type PlayResponse = {
|
|
|
299
299
|
total: number;
|
|
300
300
|
};
|
|
301
301
|
};
|
|
302
|
-
data:
|
|
302
|
+
data: DataT;
|
|
303
303
|
};
|
|
304
304
|
type FreeRoundsRequest = {
|
|
305
305
|
id: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { A as OpenGameRequest, C as FreeRoundsResponse, N as PlayRequestEnhanced, P as PlayResponse, S as FreeRoundsRequest, W as RgsErrorWithType, _ as ForwardToPluginsMessagePayload, c as ContractPlayPayload, f as DomainMessagePayload, h as ForwardToPluginsMessage, it as WrapperState, j as OpenGameResponse, nt as WrapperConfig, q as SdkConfig, t as I18n, u as DomainMessage, w as GetBalanceResponse } from "./i18n-
|
|
5
|
+
import { A as OpenGameRequest, C as FreeRoundsResponse, N as PlayRequestEnhanced, P as PlayResponse, S as FreeRoundsRequest, W as RgsErrorWithType, _ as ForwardToPluginsMessagePayload, c as ContractPlayPayload, f as DomainMessagePayload, h as ForwardToPluginsMessage, it as WrapperState, j as OpenGameResponse, nt as WrapperConfig, q as SdkConfig, t as I18n, u as DomainMessage, w as GetBalanceResponse } from "./i18n-ChV9TVRC.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/common/logger.d.ts
|
|
8
8
|
declare function createLogger(prefix: string, style: string): (message: string, ...args: any[]) => void;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { A as OpenGameRequest, C as FreeRoundsResponse, N as PlayRequestEnhanced, P as PlayResponse, S as FreeRoundsRequest, W as RgsErrorWithType, _ as ForwardToPluginsMessagePayload, c as ContractPlayPayload, f as DomainMessagePayload, h as ForwardToPluginsMessage, it as WrapperState, j as OpenGameResponse, nt as WrapperConfig, q as SdkConfig, t as I18n, u as DomainMessage, w as GetBalanceResponse } from "./i18n-
|
|
5
|
+
import { A as OpenGameRequest, C as FreeRoundsResponse, N as PlayRequestEnhanced, P as PlayResponse, S as FreeRoundsRequest, W as RgsErrorWithType, _ as ForwardToPluginsMessagePayload, c as ContractPlayPayload, f as DomainMessagePayload, h as ForwardToPluginsMessage, it as WrapperState, j as OpenGameResponse, nt as WrapperConfig, q as SdkConfig, t as I18n, u as DomainMessage, w as GetBalanceResponse } from "./i18n-D5qNV_RZ.js";
|
|
6
6
|
|
|
7
7
|
//#region src/common/logger.d.ts
|
|
8
8
|
declare function createLogger(prefix: string, style: string): (message: string, ...args: any[]) => void;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { $ as ToRgsPluginsForwardedMessageMap, A as OpenGameRequest, B as PrefixedMessagePayload, C as FreeRoundsResponse, D as MessageMap, E as Message, F as PluginDomain, G as RgsOnlyMessagePayloadMap, H as RealityCheckConfig, I as PrefixedForwardToPluginsMessage, J as SdkError, K as RgsResponse, L as PrefixedMessage, M as PlayRequest, N as PlayRequestEnhanced, O as MessageMessageEvent, P as PlayResponse, Q as ToCasinoPluginsForwardedMessageMap, R as PrefixedMessageMap, S as FreeRoundsRequest, T as History, U as RgsErrorData, V as PrefixedMessagePayloadMap, W as RgsErrorWithType, X as Settings, Y as SdkOnlyMessagePayloadMap, Z as TelemetryOnlyMessagePayloadMap, _ as ForwardToPluginsMessagePayload, a as CashierConfig, b as FreeRound, c as ContractPlayPayload, ct as TimeoutError, d as DomainMessageMessageEvent, dt as FormatCurrencyOptions, et as ToSdkForwardedMessageMap, f as DomainMessagePayload, g as ForwardToPluginsMessageMap, h as ForwardToPluginsMessage, i as Cashier, it as WrapperState, j as OpenGameResponse, k as MessagePayload, l as DomainAllowedPayloadMap, lt as CurrencyFormat, m as DomainToMessagePayloadMap, n as AutoplayLimit, nt as WrapperConfig, o as CasinoOnlyMessagePayloadMap, ot as RgsError, p as DomainPrefix, q as SdkConfig, r as Bet, rt as WrapperOnlyMessagePayloadMap, s as ContractOpenGamePayload, st as RgsErrorCode, t as I18n, tt as ToTelemetryPluginsForwardedMessageMap, u as DomainMessage, ut as CurrencyNumber, v as ForwardToSdkMessage, w as GetBalanceResponse, x as FreeRoundsAction, y as ForwardToSdkMessagePayload, z as PrefixedMessageMessageEvent } from "./i18n-
|
|
5
|
+
import { $ as ToRgsPluginsForwardedMessageMap, A as OpenGameRequest, B as PrefixedMessagePayload, C as FreeRoundsResponse, D as MessageMap, E as Message, F as PluginDomain, G as RgsOnlyMessagePayloadMap, H as RealityCheckConfig, I as PrefixedForwardToPluginsMessage, J as SdkError, K as RgsResponse, L as PrefixedMessage, M as PlayRequest, N as PlayRequestEnhanced, O as MessageMessageEvent, P as PlayResponse, Q as ToCasinoPluginsForwardedMessageMap, R as PrefixedMessageMap, S as FreeRoundsRequest, T as History, U as RgsErrorData, V as PrefixedMessagePayloadMap, W as RgsErrorWithType, X as Settings, Y as SdkOnlyMessagePayloadMap, Z as TelemetryOnlyMessagePayloadMap, _ as ForwardToPluginsMessagePayload, a as CashierConfig, b as FreeRound, c as ContractPlayPayload, ct as TimeoutError, d as DomainMessageMessageEvent, dt as FormatCurrencyOptions, et as ToSdkForwardedMessageMap, f as DomainMessagePayload, g as ForwardToPluginsMessageMap, h as ForwardToPluginsMessage, i as Cashier, it as WrapperState, j as OpenGameResponse, k as MessagePayload, l as DomainAllowedPayloadMap, lt as CurrencyFormat, m as DomainToMessagePayloadMap, n as AutoplayLimit, nt as WrapperConfig, o as CasinoOnlyMessagePayloadMap, ot as RgsError, p as DomainPrefix, q as SdkConfig, r as Bet, rt as WrapperOnlyMessagePayloadMap, s as ContractOpenGamePayload, st as RgsErrorCode, t as I18n, tt as ToTelemetryPluginsForwardedMessageMap, u as DomainMessage, ut as CurrencyNumber, v as ForwardToSdkMessage, w as GetBalanceResponse, x as FreeRoundsAction, y as ForwardToSdkMessagePayload, z as PrefixedMessageMessageEvent } from "./i18n-ChV9TVRC.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/sdk/KalambaSdk.d.ts
|
|
8
8
|
type MessageType = 'openGame' | 'play';
|
|
@@ -40,74 +40,8 @@ declare class KalambaSdk<TCodecs extends Codecs = typeof defaultCodecs> {
|
|
|
40
40
|
on<M extends DomainMessage<'wrapper'> | ForwardToSdkMessage>(message: M, listener: (payload: M extends DomainMessage<'wrapper'> ? DomainMessagePayload<'wrapper', M> : M extends ForwardToSdkMessage ? ForwardToSdkMessagePayload<M> : never) => void, options?: AddEventListenerOptions): void;
|
|
41
41
|
send<M extends DomainMessage<'sdk'>>(message: M, ...[payload]: DomainMessagePayload<'sdk', M> extends never ? [] : undefined extends DomainMessagePayload<'sdk', M> ? [] | [DomainMessagePayload<'sdk', M>] : [DomainMessagePayload<'sdk', M>]): void;
|
|
42
42
|
configure(payload: DomainMessagePayload<'sdk', 'configure'>): void;
|
|
43
|
-
openGame(contract?: ContractOpenGamePayload, extra?: Parameters<TCodecs['openGame']['request']['encode']>[0]): Promise<
|
|
44
|
-
|
|
45
|
-
bet: {
|
|
46
|
-
available: Record<number, number[]>;
|
|
47
|
-
default: Bet;
|
|
48
|
-
max: number | null;
|
|
49
|
-
last: Bet | null;
|
|
50
|
-
lastPaid: Bet | null;
|
|
51
|
-
};
|
|
52
|
-
balance: {
|
|
53
|
-
coins: number;
|
|
54
|
-
version: number;
|
|
55
|
-
};
|
|
56
|
-
freeRounds: FreeRound[];
|
|
57
|
-
gameModel: string;
|
|
58
|
-
metaData: {
|
|
59
|
-
rtpValues: {
|
|
60
|
-
key: string;
|
|
61
|
-
rtpValue: string;
|
|
62
|
-
}[];
|
|
63
|
-
maxWin: {
|
|
64
|
-
key: string;
|
|
65
|
-
maxWinValueXBet: number;
|
|
66
|
-
maxWinOdds: number;
|
|
67
|
-
}[];
|
|
68
|
-
version: string;
|
|
69
|
-
};
|
|
70
|
-
roundId?: string;
|
|
71
|
-
serverTime: number;
|
|
72
|
-
sessionId: string;
|
|
73
|
-
stateType: {
|
|
74
|
-
thisRound: string;
|
|
75
|
-
nextRound: string;
|
|
76
|
-
};
|
|
77
|
-
uiMessages: unknown[];
|
|
78
|
-
win: {
|
|
79
|
-
max: number | null;
|
|
80
|
-
round: number;
|
|
81
|
-
total: number;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
data: ReturnType<TCodecs["openGame"]["response"]["decode"]>;
|
|
85
|
-
}>;
|
|
86
|
-
play(contract: ContractPlayPayload, extra?: Parameters<TCodecs['play']['request']['encode']>[0]): Promise<{
|
|
87
|
-
contract: {
|
|
88
|
-
bet: {
|
|
89
|
-
last: Bet | null;
|
|
90
|
-
lastPaid: Bet;
|
|
91
|
-
};
|
|
92
|
-
balance: {
|
|
93
|
-
coins: number;
|
|
94
|
-
version: number;
|
|
95
|
-
};
|
|
96
|
-
freeRounds: FreeRound[];
|
|
97
|
-
roundId: string;
|
|
98
|
-
serverTime: number;
|
|
99
|
-
stateType: {
|
|
100
|
-
thisRound: string;
|
|
101
|
-
nextRound: string;
|
|
102
|
-
};
|
|
103
|
-
uiMessages: unknown[];
|
|
104
|
-
win: {
|
|
105
|
-
round: number;
|
|
106
|
-
total: number;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
data: ReturnType<TCodecs["play"]["response"]["decode"]>;
|
|
110
|
-
}>;
|
|
43
|
+
openGame(contract?: ContractOpenGamePayload, extra?: Parameters<TCodecs['openGame']['request']['encode']>[0]): Promise<OpenGameResponse<ReturnType<TCodecs['openGame']['response']['decode']>>>;
|
|
44
|
+
play(contract: ContractPlayPayload, extra?: Parameters<TCodecs['play']['request']['encode']>[0]): Promise<PlayResponse<ReturnType<TCodecs['play']['response']['decode']>>>;
|
|
111
45
|
}
|
|
112
46
|
//#endregion
|
|
113
47
|
export { AutoplayLimit, Bet, Cashier, CashierConfig, CasinoOnlyMessagePayloadMap, type Codecs, ContractOpenGamePayload, ContractPlayPayload, CurrencyFormat, CurrencyNumber, DomainAllowedPayloadMap, DomainMessage, DomainMessageMessageEvent, DomainMessagePayload, DomainPrefix, DomainToMessagePayloadMap, FormatCurrencyOptions, ForwardToPluginsMessage, ForwardToPluginsMessageMap, ForwardToPluginsMessagePayload, ForwardToSdkMessage, ForwardToSdkMessagePayload, FreeRound, FreeRoundsAction, FreeRoundsRequest, FreeRoundsResponse, GetBalanceResponse, History, I18n, KalambaSdk, Message, MessageMap, MessageMessageEvent, MessagePayload, OpenGameRequest, OpenGameResponse, PlayRequest, PlayRequestEnhanced, PlayResponse, PluginDomain, PrefixedForwardToPluginsMessage, PrefixedMessage, PrefixedMessageMap, PrefixedMessageMessageEvent, PrefixedMessagePayload, PrefixedMessagePayloadMap, RealityCheckConfig, RgsError, RgsErrorCode, RgsErrorData, RgsErrorWithType, RgsOnlyMessagePayloadMap, RgsResponse, SdkConfig, SdkError, SdkOnlyMessagePayloadMap, Settings, TelemetryOnlyMessagePayloadMap, TimeoutError, ToCasinoPluginsForwardedMessageMap, ToRgsPluginsForwardedMessageMap, ToSdkForwardedMessageMap, ToTelemetryPluginsForwardedMessageMap, WrapperConfig, WrapperOnlyMessagePayloadMap, WrapperState };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { $ as ToRgsPluginsForwardedMessageMap, A as OpenGameRequest, B as PrefixedMessagePayload, C as FreeRoundsResponse, D as MessageMap, E as Message, F as PluginDomain, G as RgsOnlyMessagePayloadMap, H as RealityCheckConfig, I as PrefixedForwardToPluginsMessage, J as SdkError, K as RgsResponse, L as PrefixedMessage, M as PlayRequest, N as PlayRequestEnhanced, O as MessageMessageEvent, P as PlayResponse, Q as ToCasinoPluginsForwardedMessageMap, R as PrefixedMessageMap, S as FreeRoundsRequest, T as History, U as RgsErrorData, V as PrefixedMessagePayloadMap, W as RgsErrorWithType, X as Settings, Y as SdkOnlyMessagePayloadMap, Z as TelemetryOnlyMessagePayloadMap, _ as ForwardToPluginsMessagePayload, a as CashierConfig, b as FreeRound, c as ContractPlayPayload, ct as TimeoutError, d as DomainMessageMessageEvent, dt as FormatCurrencyOptions, et as ToSdkForwardedMessageMap, f as DomainMessagePayload, g as ForwardToPluginsMessageMap, h as ForwardToPluginsMessage, i as Cashier, it as WrapperState, j as OpenGameResponse, k as MessagePayload, l as DomainAllowedPayloadMap, lt as CurrencyFormat, m as DomainToMessagePayloadMap, n as AutoplayLimit, nt as WrapperConfig, o as CasinoOnlyMessagePayloadMap, ot as RgsError, p as DomainPrefix, q as SdkConfig, r as Bet, rt as WrapperOnlyMessagePayloadMap, s as ContractOpenGamePayload, st as RgsErrorCode, t as I18n, tt as ToTelemetryPluginsForwardedMessageMap, u as DomainMessage, ut as CurrencyNumber, v as ForwardToSdkMessage, w as GetBalanceResponse, x as FreeRoundsAction, y as ForwardToSdkMessagePayload, z as PrefixedMessageMessageEvent } from "./i18n-
|
|
5
|
+
import { $ as ToRgsPluginsForwardedMessageMap, A as OpenGameRequest, B as PrefixedMessagePayload, C as FreeRoundsResponse, D as MessageMap, E as Message, F as PluginDomain, G as RgsOnlyMessagePayloadMap, H as RealityCheckConfig, I as PrefixedForwardToPluginsMessage, J as SdkError, K as RgsResponse, L as PrefixedMessage, M as PlayRequest, N as PlayRequestEnhanced, O as MessageMessageEvent, P as PlayResponse, Q as ToCasinoPluginsForwardedMessageMap, R as PrefixedMessageMap, S as FreeRoundsRequest, T as History, U as RgsErrorData, V as PrefixedMessagePayloadMap, W as RgsErrorWithType, X as Settings, Y as SdkOnlyMessagePayloadMap, Z as TelemetryOnlyMessagePayloadMap, _ as ForwardToPluginsMessagePayload, a as CashierConfig, b as FreeRound, c as ContractPlayPayload, ct as TimeoutError, d as DomainMessageMessageEvent, dt as FormatCurrencyOptions, et as ToSdkForwardedMessageMap, f as DomainMessagePayload, g as ForwardToPluginsMessageMap, h as ForwardToPluginsMessage, i as Cashier, it as WrapperState, j as OpenGameResponse, k as MessagePayload, l as DomainAllowedPayloadMap, lt as CurrencyFormat, m as DomainToMessagePayloadMap, n as AutoplayLimit, nt as WrapperConfig, o as CasinoOnlyMessagePayloadMap, ot as RgsError, p as DomainPrefix, q as SdkConfig, r as Bet, rt as WrapperOnlyMessagePayloadMap, s as ContractOpenGamePayload, st as RgsErrorCode, t as I18n, tt as ToTelemetryPluginsForwardedMessageMap, u as DomainMessage, ut as CurrencyNumber, v as ForwardToSdkMessage, w as GetBalanceResponse, x as FreeRoundsAction, y as ForwardToSdkMessagePayload, z as PrefixedMessageMessageEvent } from "./i18n-D5qNV_RZ.js";
|
|
6
6
|
|
|
7
7
|
//#region src/sdk/KalambaSdk.d.ts
|
|
8
8
|
type MessageType = 'openGame' | 'play';
|
|
@@ -40,74 +40,8 @@ declare class KalambaSdk<TCodecs extends Codecs = typeof defaultCodecs> {
|
|
|
40
40
|
on<M extends DomainMessage<'wrapper'> | ForwardToSdkMessage>(message: M, listener: (payload: M extends DomainMessage<'wrapper'> ? DomainMessagePayload<'wrapper', M> : M extends ForwardToSdkMessage ? ForwardToSdkMessagePayload<M> : never) => void, options?: AddEventListenerOptions): void;
|
|
41
41
|
send<M extends DomainMessage<'sdk'>>(message: M, ...[payload]: DomainMessagePayload<'sdk', M> extends never ? [] : undefined extends DomainMessagePayload<'sdk', M> ? [] | [DomainMessagePayload<'sdk', M>] : [DomainMessagePayload<'sdk', M>]): void;
|
|
42
42
|
configure(payload: DomainMessagePayload<'sdk', 'configure'>): void;
|
|
43
|
-
openGame(contract?: ContractOpenGamePayload, extra?: Parameters<TCodecs['openGame']['request']['encode']>[0]): Promise<
|
|
44
|
-
|
|
45
|
-
bet: {
|
|
46
|
-
available: Record<number, number[]>;
|
|
47
|
-
default: Bet;
|
|
48
|
-
max: number | null;
|
|
49
|
-
last: Bet | null;
|
|
50
|
-
lastPaid: Bet | null;
|
|
51
|
-
};
|
|
52
|
-
balance: {
|
|
53
|
-
coins: number;
|
|
54
|
-
version: number;
|
|
55
|
-
};
|
|
56
|
-
freeRounds: FreeRound[];
|
|
57
|
-
gameModel: string;
|
|
58
|
-
metaData: {
|
|
59
|
-
rtpValues: {
|
|
60
|
-
key: string;
|
|
61
|
-
rtpValue: string;
|
|
62
|
-
}[];
|
|
63
|
-
maxWin: {
|
|
64
|
-
key: string;
|
|
65
|
-
maxWinValueXBet: number;
|
|
66
|
-
maxWinOdds: number;
|
|
67
|
-
}[];
|
|
68
|
-
version: string;
|
|
69
|
-
};
|
|
70
|
-
roundId?: string;
|
|
71
|
-
serverTime: number;
|
|
72
|
-
sessionId: string;
|
|
73
|
-
stateType: {
|
|
74
|
-
thisRound: string;
|
|
75
|
-
nextRound: string;
|
|
76
|
-
};
|
|
77
|
-
uiMessages: unknown[];
|
|
78
|
-
win: {
|
|
79
|
-
max: number | null;
|
|
80
|
-
round: number;
|
|
81
|
-
total: number;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
data: ReturnType<TCodecs["openGame"]["response"]["decode"]>;
|
|
85
|
-
}>;
|
|
86
|
-
play(contract: ContractPlayPayload, extra?: Parameters<TCodecs['play']['request']['encode']>[0]): Promise<{
|
|
87
|
-
contract: {
|
|
88
|
-
bet: {
|
|
89
|
-
last: Bet | null;
|
|
90
|
-
lastPaid: Bet;
|
|
91
|
-
};
|
|
92
|
-
balance: {
|
|
93
|
-
coins: number;
|
|
94
|
-
version: number;
|
|
95
|
-
};
|
|
96
|
-
freeRounds: FreeRound[];
|
|
97
|
-
roundId: string;
|
|
98
|
-
serverTime: number;
|
|
99
|
-
stateType: {
|
|
100
|
-
thisRound: string;
|
|
101
|
-
nextRound: string;
|
|
102
|
-
};
|
|
103
|
-
uiMessages: unknown[];
|
|
104
|
-
win: {
|
|
105
|
-
round: number;
|
|
106
|
-
total: number;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
data: ReturnType<TCodecs["play"]["response"]["decode"]>;
|
|
110
|
-
}>;
|
|
43
|
+
openGame(contract?: ContractOpenGamePayload, extra?: Parameters<TCodecs['openGame']['request']['encode']>[0]): Promise<OpenGameResponse<ReturnType<TCodecs['openGame']['response']['decode']>>>;
|
|
44
|
+
play(contract: ContractPlayPayload, extra?: Parameters<TCodecs['play']['request']['encode']>[0]): Promise<PlayResponse<ReturnType<TCodecs['play']['response']['decode']>>>;
|
|
111
45
|
}
|
|
112
46
|
//#endregion
|
|
113
47
|
export { AutoplayLimit, Bet, Cashier, CashierConfig, CasinoOnlyMessagePayloadMap, type Codecs, ContractOpenGamePayload, ContractPlayPayload, CurrencyFormat, CurrencyNumber, DomainAllowedPayloadMap, DomainMessage, DomainMessageMessageEvent, DomainMessagePayload, DomainPrefix, DomainToMessagePayloadMap, FormatCurrencyOptions, ForwardToPluginsMessage, ForwardToPluginsMessageMap, ForwardToPluginsMessagePayload, ForwardToSdkMessage, ForwardToSdkMessagePayload, FreeRound, FreeRoundsAction, FreeRoundsRequest, FreeRoundsResponse, GetBalanceResponse, History, I18n, KalambaSdk, Message, MessageMap, MessageMessageEvent, MessagePayload, OpenGameRequest, OpenGameResponse, PlayRequest, PlayRequestEnhanced, PlayResponse, PluginDomain, PrefixedForwardToPluginsMessage, PrefixedMessage, PrefixedMessageMap, PrefixedMessageMessageEvent, PrefixedMessagePayload, PrefixedMessagePayloadMap, RealityCheckConfig, RgsError, RgsErrorCode, RgsErrorData, RgsErrorWithType, RgsOnlyMessagePayloadMap, RgsResponse, SdkConfig, SdkError, SdkOnlyMessagePayloadMap, Settings, TelemetryOnlyMessagePayloadMap, TimeoutError, ToCasinoPluginsForwardedMessageMap, ToRgsPluginsForwardedMessageMap, ToSdkForwardedMessageMap, ToTelemetryPluginsForwardedMessageMap, WrapperConfig, WrapperOnlyMessagePayloadMap, WrapperState };
|
package/dist/plugins.d.cts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-
|
|
5
|
+
import { i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-BDX8wC2b.cjs";
|
|
6
6
|
export { CasinoPlugin, RgsPlugin, TelemetryPlugin, Tracker };
|
package/dist/plugins.d.ts
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-
|
|
5
|
+
import { i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-DoyJ_lrx.js";
|
|
6
6
|
export { CasinoPlugin, RgsPlugin, TelemetryPlugin, Tracker };
|
package/dist/wrapper.d.cts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-
|
|
6
|
-
import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-
|
|
5
|
+
import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-ChV9TVRC.cjs";
|
|
6
|
+
import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-BDX8wC2b.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/common/config/SdkConfigManager.d.ts
|
|
9
9
|
declare abstract class SdkConfigManager {
|
package/dist/wrapper.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* BSD 3-Clause License
|
|
3
3
|
* Copyright (c) 2026, Kalamba Games Limited
|
|
4
4
|
*/
|
|
5
|
-
import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-
|
|
6
|
-
import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-
|
|
5
|
+
import { E as Message, at as DeepPartial, b as FreeRound, f as DomainMessagePayload, it as WrapperState, k as MessagePayload, nt as WrapperConfig, q as SdkConfig, u as DomainMessage } from "./i18n-D5qNV_RZ.js";
|
|
6
|
+
import { a as PayloadInjectionManager, i as CasinoPlugin, n as Tracker, r as RgsPlugin, t as TelemetryPlugin } from "./index-DoyJ_lrx.js";
|
|
7
7
|
|
|
8
8
|
//#region src/common/config/SdkConfigManager.d.ts
|
|
9
9
|
declare abstract class SdkConfigManager {
|