@betorigami/game-ui-shared 3.0.0 → 4.1.0
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/README.md +21 -0
- package/dist/components/shared/ChipTableGameComponent.d.ts +2 -0
- package/dist/components/shared/GameComponent.d.ts +9 -0
- package/dist/components/shared/GameProviderWrapper.d.ts +2 -0
- package/dist/components/shared/GenericAutobet/GenericAutobet.d.ts +1 -0
- package/dist/components/shared/context/slices/services.context.d.ts +2 -0
- package/dist/controllers/history.controller.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +6655 -4135
- package/dist/shared/bet.types.d.ts +24 -43
- package/dist/shared/create-api-factory.d.ts +3 -6
- package/dist/shared/provider-api/error-codes.d.ts +1 -0
- package/dist/shared/provider-api/generated/client/client.gen.d.ts +2 -0
- package/dist/shared/provider-api/generated/client/index.d.ts +10 -0
- package/dist/shared/provider-api/generated/client/types.gen.d.ts +120 -0
- package/dist/shared/provider-api/generated/client/utils.gen.d.ts +37 -0
- package/dist/shared/provider-api/generated/client.gen.d.ts +12 -0
- package/dist/shared/provider-api/generated/core/auth.gen.d.ts +25 -0
- package/dist/shared/provider-api/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/shared/provider-api/generated/core/params.gen.d.ts +43 -0
- package/dist/shared/provider-api/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/shared/provider-api/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/shared/provider-api/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/shared/provider-api/generated/core/types.gen.d.ts +83 -0
- package/dist/shared/provider-api/generated/core/utils.gen.d.ts +19 -0
- package/dist/shared/provider-api/generated/index.d.ts +2 -0
- package/dist/shared/provider-api/generated/sdk.gen.d.ts +42 -0
- package/dist/shared/provider-api/generated/types.gen.d.ts +1143 -0
- package/dist/shared/provider-api/generated/zod.gen.d.ts +1271 -0
- package/dist/shared/provider-api/provider-api-client.d.ts +8 -0
- package/package.json +6 -3
|
@@ -0,0 +1,1143 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: 'http://localhost:3000' | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type GetPingData = {
|
|
5
|
+
body?: never;
|
|
6
|
+
path?: never;
|
|
7
|
+
query?: never;
|
|
8
|
+
url: '/ping';
|
|
9
|
+
};
|
|
10
|
+
export type GetPingResponses = {
|
|
11
|
+
/**
|
|
12
|
+
* Success
|
|
13
|
+
*/
|
|
14
|
+
200: {
|
|
15
|
+
ping: 'pong';
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type GetPingResponse = GetPingResponses[keyof GetPingResponses];
|
|
19
|
+
export type PostAuthSessionSessionIdData = {
|
|
20
|
+
body?: never;
|
|
21
|
+
path: {
|
|
22
|
+
sessionId: string;
|
|
23
|
+
};
|
|
24
|
+
query?: never;
|
|
25
|
+
url: '/auth/session/{sessionId}';
|
|
26
|
+
};
|
|
27
|
+
export type PostAuthSessionSessionIdResponses = {
|
|
28
|
+
/**
|
|
29
|
+
* Success
|
|
30
|
+
*/
|
|
31
|
+
200: {
|
|
32
|
+
authToken: string;
|
|
33
|
+
settings: unknown;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type PostAuthSessionSessionIdResponse = PostAuthSessionSessionIdResponses[keyof PostAuthSessionSessionIdResponses];
|
|
37
|
+
export type GetBetBetInfoData = {
|
|
38
|
+
body?: never;
|
|
39
|
+
path?: never;
|
|
40
|
+
query: {
|
|
41
|
+
betId: string;
|
|
42
|
+
};
|
|
43
|
+
url: '/bet/bet-info';
|
|
44
|
+
};
|
|
45
|
+
export type GetBetBetInfoResponses = {
|
|
46
|
+
/**
|
|
47
|
+
* Success
|
|
48
|
+
*/
|
|
49
|
+
200: {
|
|
50
|
+
id: string;
|
|
51
|
+
nonce: number;
|
|
52
|
+
amount: string;
|
|
53
|
+
payout: string | null;
|
|
54
|
+
currency: 'USD' | 'EUR' | 'CAD' | 'JPY' | 'NZD' | 'AUD' | 'MXN' | 'BRL' | 'TRY' | 'RUB' | 'INR' | 'NOK' | 'ARS' | 'CNY' | 'NGN' | 'PHP' | 'HNL' | 'GTQ' | 'DOP' | 'GBP' | 'CLP' | 'CHF' | 'CZK' | 'HUF' | 'IDR' | 'KRW' | 'KZT' | 'MYR' | 'RON' | 'THB' | 'UAH' | 'UZS' | 'VND' | 'ZAR' | 'PEN' | 'GC' | 'SC';
|
|
55
|
+
userId: string;
|
|
56
|
+
gameId: string;
|
|
57
|
+
multiplier: string | null;
|
|
58
|
+
tenantId: string;
|
|
59
|
+
clientSeed: string;
|
|
60
|
+
randomValue: string | null;
|
|
61
|
+
proof: string | null;
|
|
62
|
+
tenantUserId: string;
|
|
63
|
+
gameName: string;
|
|
64
|
+
betActions: Array<{
|
|
65
|
+
id: string;
|
|
66
|
+
data: unknown;
|
|
67
|
+
betAmount: string | null;
|
|
68
|
+
payoutAmount: string | null;
|
|
69
|
+
actionIndex: number;
|
|
70
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
71
|
+
createdAt: unknown;
|
|
72
|
+
}>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export type GetBetBetInfoResponse = GetBetBetInfoResponses[keyof GetBetBetInfoResponses];
|
|
76
|
+
export type GetBetMyBetsData = {
|
|
77
|
+
body?: never;
|
|
78
|
+
path?: never;
|
|
79
|
+
query?: {
|
|
80
|
+
limit?: number;
|
|
81
|
+
beforeId?: string;
|
|
82
|
+
afterId?: string;
|
|
83
|
+
};
|
|
84
|
+
url: '/bet/my-bets';
|
|
85
|
+
};
|
|
86
|
+
export type GetBetMyBetsResponses = {
|
|
87
|
+
/**
|
|
88
|
+
* Success
|
|
89
|
+
*/
|
|
90
|
+
200: {
|
|
91
|
+
results: Array<{
|
|
92
|
+
id: string;
|
|
93
|
+
amount: string;
|
|
94
|
+
payout: string | null;
|
|
95
|
+
currency: 'USD' | 'EUR' | 'CAD' | 'JPY' | 'NZD' | 'AUD' | 'MXN' | 'BRL' | 'TRY' | 'RUB' | 'INR' | 'NOK' | 'ARS' | 'CNY' | 'NGN' | 'PHP' | 'HNL' | 'GTQ' | 'DOP' | 'GBP' | 'CLP' | 'CHF' | 'CZK' | 'HUF' | 'IDR' | 'KRW' | 'KZT' | 'MYR' | 'RON' | 'THB' | 'UAH' | 'UZS' | 'VND' | 'ZAR' | 'PEN' | 'GC' | 'SC';
|
|
96
|
+
succeededAt: unknown;
|
|
97
|
+
}>;
|
|
98
|
+
nextCursor?: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
export type GetBetMyBetsResponse = GetBetMyBetsResponses[keyof GetBetMyBetsResponses];
|
|
102
|
+
export type GetUsersBalanceData = {
|
|
103
|
+
body?: never;
|
|
104
|
+
path?: never;
|
|
105
|
+
query: {
|
|
106
|
+
origamiGame: 'DICE' | 'MINES' | 'KENO' | 'LIMBO' | 'ADVANCED_DICE' | 'BACCARAT' | 'DIAMONDS' | 'PLINKO' | 'ROULETTE' | 'WHEEL' | 'BLACKJACK' | 'BLITZ' | 'DARTS';
|
|
107
|
+
};
|
|
108
|
+
url: '/users/balance';
|
|
109
|
+
};
|
|
110
|
+
export type GetUsersBalanceResponses = {
|
|
111
|
+
/**
|
|
112
|
+
* Success
|
|
113
|
+
*/
|
|
114
|
+
200: {
|
|
115
|
+
currency: string;
|
|
116
|
+
balance: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
export type GetUsersBalanceResponse = GetUsersBalanceResponses[keyof GetUsersBalanceResponses];
|
|
120
|
+
export type GetProvablyFairPublicKeyData = {
|
|
121
|
+
body?: never;
|
|
122
|
+
path?: never;
|
|
123
|
+
query?: never;
|
|
124
|
+
url: '/provably-fair/public-key';
|
|
125
|
+
};
|
|
126
|
+
export type GetProvablyFairPublicKeyResponses = {
|
|
127
|
+
/**
|
|
128
|
+
* Success
|
|
129
|
+
*/
|
|
130
|
+
200: {
|
|
131
|
+
publicKey: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
export type GetProvablyFairPublicKeyResponse = GetProvablyFairPublicKeyResponses[keyof GetProvablyFairPublicKeyResponses];
|
|
135
|
+
export type GetProvablyFairMyInfoData = {
|
|
136
|
+
body?: never;
|
|
137
|
+
path?: never;
|
|
138
|
+
query?: never;
|
|
139
|
+
url: '/provably-fair/my-info';
|
|
140
|
+
};
|
|
141
|
+
export type GetProvablyFairMyInfoResponses = {
|
|
142
|
+
/**
|
|
143
|
+
* Success
|
|
144
|
+
*/
|
|
145
|
+
200: {
|
|
146
|
+
clientSeed: string;
|
|
147
|
+
nonce: number;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export type GetProvablyFairMyInfoResponse = GetProvablyFairMyInfoResponses[keyof GetProvablyFairMyInfoResponses];
|
|
151
|
+
export type PatchProvablyFairClientSeedData = {
|
|
152
|
+
body?: {
|
|
153
|
+
clientSeed: string;
|
|
154
|
+
};
|
|
155
|
+
path?: never;
|
|
156
|
+
query?: never;
|
|
157
|
+
url: '/provably-fair/client-seed';
|
|
158
|
+
};
|
|
159
|
+
export type PatchProvablyFairClientSeedResponses = {
|
|
160
|
+
/**
|
|
161
|
+
* Success
|
|
162
|
+
*/
|
|
163
|
+
200: {
|
|
164
|
+
clientSeed: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export type PatchProvablyFairClientSeedResponse = PatchProvablyFairClientSeedResponses[keyof PatchProvablyFairClientSeedResponses];
|
|
168
|
+
export type PostGamesDicePlayData = {
|
|
169
|
+
body?: {
|
|
170
|
+
amount: string;
|
|
171
|
+
meta?: {
|
|
172
|
+
autobetSettings?: {
|
|
173
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
174
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
175
|
+
onWinPercentage: string;
|
|
176
|
+
onLossPercentage: string;
|
|
177
|
+
stopOnLoss: string;
|
|
178
|
+
stopOnProfit: string;
|
|
179
|
+
numberOfBets: number;
|
|
180
|
+
autobetId: string;
|
|
181
|
+
betIndex: number;
|
|
182
|
+
pnlSinceStart: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
direction: 'ABOVE' | 'BELOW';
|
|
186
|
+
selectedValue: number;
|
|
187
|
+
};
|
|
188
|
+
path?: never;
|
|
189
|
+
query?: never;
|
|
190
|
+
url: '/games/dice/play';
|
|
191
|
+
};
|
|
192
|
+
export type PostGamesDicePlayResponses = {
|
|
193
|
+
/**
|
|
194
|
+
* Success
|
|
195
|
+
*/
|
|
196
|
+
200: {
|
|
197
|
+
id: string;
|
|
198
|
+
nonce: number;
|
|
199
|
+
amount: string;
|
|
200
|
+
payout: string | null;
|
|
201
|
+
userId: string;
|
|
202
|
+
gameId: string;
|
|
203
|
+
multiplier: string | null;
|
|
204
|
+
tenantId: string;
|
|
205
|
+
clientSeed: string;
|
|
206
|
+
randomValue: string | null;
|
|
207
|
+
proof: string | null;
|
|
208
|
+
afterBalance: string | null;
|
|
209
|
+
tenantUserId: string;
|
|
210
|
+
readonly betActions: Array<{
|
|
211
|
+
data: unknown;
|
|
212
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
213
|
+
createdAt?: unknown;
|
|
214
|
+
}>;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
export type PostGamesDicePlayResponse = PostGamesDicePlayResponses[keyof PostGamesDicePlayResponses];
|
|
218
|
+
export type PostGamesLimboPlayData = {
|
|
219
|
+
body?: {
|
|
220
|
+
amount: string;
|
|
221
|
+
meta?: {
|
|
222
|
+
autobetSettings?: {
|
|
223
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
224
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
225
|
+
onWinPercentage: string;
|
|
226
|
+
onLossPercentage: string;
|
|
227
|
+
stopOnLoss: string;
|
|
228
|
+
stopOnProfit: string;
|
|
229
|
+
numberOfBets: number;
|
|
230
|
+
autobetId: string;
|
|
231
|
+
betIndex: number;
|
|
232
|
+
pnlSinceStart: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
targetMultiplier: number;
|
|
236
|
+
};
|
|
237
|
+
path?: never;
|
|
238
|
+
query?: never;
|
|
239
|
+
url: '/games/limbo/play';
|
|
240
|
+
};
|
|
241
|
+
export type PostGamesLimboPlayResponses = {
|
|
242
|
+
/**
|
|
243
|
+
* Success
|
|
244
|
+
*/
|
|
245
|
+
200: {
|
|
246
|
+
id: string;
|
|
247
|
+
nonce: number;
|
|
248
|
+
amount: string;
|
|
249
|
+
payout: string | null;
|
|
250
|
+
userId: string;
|
|
251
|
+
gameId: string;
|
|
252
|
+
multiplier: string | null;
|
|
253
|
+
tenantId: string;
|
|
254
|
+
clientSeed: string;
|
|
255
|
+
randomValue: string | null;
|
|
256
|
+
proof: string | null;
|
|
257
|
+
afterBalance: string | null;
|
|
258
|
+
tenantUserId: string;
|
|
259
|
+
readonly betActions: Array<{
|
|
260
|
+
data: unknown;
|
|
261
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
262
|
+
createdAt?: unknown;
|
|
263
|
+
}>;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
export type PostGamesLimboPlayResponse = PostGamesLimboPlayResponses[keyof PostGamesLimboPlayResponses];
|
|
267
|
+
export type PostGamesKenoPlayData = {
|
|
268
|
+
body?: {
|
|
269
|
+
amount: string;
|
|
270
|
+
meta?: {
|
|
271
|
+
autobetSettings?: {
|
|
272
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
273
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
274
|
+
onWinPercentage: string;
|
|
275
|
+
onLossPercentage: string;
|
|
276
|
+
stopOnLoss: string;
|
|
277
|
+
stopOnProfit: string;
|
|
278
|
+
numberOfBets: number;
|
|
279
|
+
autobetId: string;
|
|
280
|
+
betIndex: number;
|
|
281
|
+
pnlSinceStart: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
riskLevel: 'CLASSIC' | 'LOW_RISK' | 'MEDIUM_RISK' | 'HIGH_RISK';
|
|
285
|
+
selectedNumbers: Array<number>;
|
|
286
|
+
};
|
|
287
|
+
path?: never;
|
|
288
|
+
query?: never;
|
|
289
|
+
url: '/games/keno/play';
|
|
290
|
+
};
|
|
291
|
+
export type PostGamesKenoPlayResponses = {
|
|
292
|
+
/**
|
|
293
|
+
* Success
|
|
294
|
+
*/
|
|
295
|
+
200: {
|
|
296
|
+
id: string;
|
|
297
|
+
nonce: number;
|
|
298
|
+
amount: string;
|
|
299
|
+
payout: string | null;
|
|
300
|
+
userId: string;
|
|
301
|
+
gameId: string;
|
|
302
|
+
multiplier: string | null;
|
|
303
|
+
tenantId: string;
|
|
304
|
+
clientSeed: string;
|
|
305
|
+
randomValue: string | null;
|
|
306
|
+
proof: string | null;
|
|
307
|
+
afterBalance: string | null;
|
|
308
|
+
tenantUserId: string;
|
|
309
|
+
readonly betActions: Array<{
|
|
310
|
+
data: unknown;
|
|
311
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
312
|
+
createdAt?: unknown;
|
|
313
|
+
}>;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
export type PostGamesKenoPlayResponse = PostGamesKenoPlayResponses[keyof PostGamesKenoPlayResponses];
|
|
317
|
+
export type PostGamesWheelPlayData = {
|
|
318
|
+
body?: {
|
|
319
|
+
amount: string;
|
|
320
|
+
meta?: {
|
|
321
|
+
autobetSettings?: {
|
|
322
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
323
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
324
|
+
onWinPercentage: string;
|
|
325
|
+
onLossPercentage: string;
|
|
326
|
+
stopOnLoss: string;
|
|
327
|
+
stopOnProfit: string;
|
|
328
|
+
numberOfBets: number;
|
|
329
|
+
autobetId: string;
|
|
330
|
+
betIndex: number;
|
|
331
|
+
pnlSinceStart: string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
gameInputs: {
|
|
335
|
+
riskLevel: 'LOW_RISK' | 'MEDIUM_RISK' | 'HIGH_RISK';
|
|
336
|
+
segments: 10 | 20 | 30 | 40 | 50;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
path?: never;
|
|
340
|
+
query?: never;
|
|
341
|
+
url: '/games/wheel/play';
|
|
342
|
+
};
|
|
343
|
+
export type PostGamesWheelPlayResponses = {
|
|
344
|
+
/**
|
|
345
|
+
* Success
|
|
346
|
+
*/
|
|
347
|
+
200: {
|
|
348
|
+
id: string;
|
|
349
|
+
nonce: number;
|
|
350
|
+
amount: string;
|
|
351
|
+
payout: string | null;
|
|
352
|
+
userId: string;
|
|
353
|
+
gameId: string;
|
|
354
|
+
multiplier: string | null;
|
|
355
|
+
tenantId: string;
|
|
356
|
+
clientSeed: string;
|
|
357
|
+
randomValue: string | null;
|
|
358
|
+
proof: string | null;
|
|
359
|
+
afterBalance: string | null;
|
|
360
|
+
tenantUserId: string;
|
|
361
|
+
readonly betActions: Array<{
|
|
362
|
+
data: unknown;
|
|
363
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
364
|
+
createdAt?: unknown;
|
|
365
|
+
}>;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
export type PostGamesWheelPlayResponse = PostGamesWheelPlayResponses[keyof PostGamesWheelPlayResponses];
|
|
369
|
+
export type PostGamesDiamondsPlayData = {
|
|
370
|
+
body?: {
|
|
371
|
+
amount: string;
|
|
372
|
+
meta?: {
|
|
373
|
+
autobetSettings?: {
|
|
374
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
375
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
376
|
+
onWinPercentage: string;
|
|
377
|
+
onLossPercentage: string;
|
|
378
|
+
stopOnLoss: string;
|
|
379
|
+
stopOnProfit: string;
|
|
380
|
+
numberOfBets: number;
|
|
381
|
+
autobetId: string;
|
|
382
|
+
betIndex: number;
|
|
383
|
+
pnlSinceStart: string;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
gameInputs: {
|
|
387
|
+
[key: string]: unknown;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
path?: never;
|
|
391
|
+
query?: never;
|
|
392
|
+
url: '/games/diamonds/play';
|
|
393
|
+
};
|
|
394
|
+
export type PostGamesDiamondsPlayResponses = {
|
|
395
|
+
/**
|
|
396
|
+
* Success
|
|
397
|
+
*/
|
|
398
|
+
200: {
|
|
399
|
+
id: string;
|
|
400
|
+
nonce: number;
|
|
401
|
+
amount: string;
|
|
402
|
+
payout: string | null;
|
|
403
|
+
userId: string;
|
|
404
|
+
gameId: string;
|
|
405
|
+
multiplier: string | null;
|
|
406
|
+
tenantId: string;
|
|
407
|
+
clientSeed: string;
|
|
408
|
+
randomValue: string | null;
|
|
409
|
+
proof: string | null;
|
|
410
|
+
afterBalance: string | null;
|
|
411
|
+
tenantUserId: string;
|
|
412
|
+
readonly betActions: Array<{
|
|
413
|
+
data: unknown;
|
|
414
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
415
|
+
createdAt?: unknown;
|
|
416
|
+
}>;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
export type PostGamesDiamondsPlayResponse = PostGamesDiamondsPlayResponses[keyof PostGamesDiamondsPlayResponses];
|
|
420
|
+
export type PostGamesPlinkoPlayData = {
|
|
421
|
+
body?: {
|
|
422
|
+
amount: string;
|
|
423
|
+
meta?: {
|
|
424
|
+
autobetSettings?: {
|
|
425
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
426
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
427
|
+
onWinPercentage: string;
|
|
428
|
+
onLossPercentage: string;
|
|
429
|
+
stopOnLoss: string;
|
|
430
|
+
stopOnProfit: string;
|
|
431
|
+
numberOfBets: number;
|
|
432
|
+
autobetId: string;
|
|
433
|
+
betIndex: number;
|
|
434
|
+
pnlSinceStart: string;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
gameInputs: {
|
|
438
|
+
riskLevel: 'LOW_RISK' | 'MEDIUM_RISK' | 'HIGH_RISK';
|
|
439
|
+
numberOfRows: 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
path?: never;
|
|
443
|
+
query?: never;
|
|
444
|
+
url: '/games/plinko/play';
|
|
445
|
+
};
|
|
446
|
+
export type PostGamesPlinkoPlayResponses = {
|
|
447
|
+
/**
|
|
448
|
+
* Success
|
|
449
|
+
*/
|
|
450
|
+
200: {
|
|
451
|
+
id: string;
|
|
452
|
+
nonce: number;
|
|
453
|
+
amount: string;
|
|
454
|
+
payout: string | null;
|
|
455
|
+
userId: string;
|
|
456
|
+
gameId: string;
|
|
457
|
+
multiplier: string | null;
|
|
458
|
+
tenantId: string;
|
|
459
|
+
clientSeed: string;
|
|
460
|
+
randomValue: string | null;
|
|
461
|
+
proof: string | null;
|
|
462
|
+
afterBalance: string | null;
|
|
463
|
+
tenantUserId: string;
|
|
464
|
+
readonly betActions: Array<{
|
|
465
|
+
data: unknown;
|
|
466
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
467
|
+
createdAt?: unknown;
|
|
468
|
+
}>;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
export type PostGamesPlinkoPlayResponse = PostGamesPlinkoPlayResponses[keyof PostGamesPlinkoPlayResponses];
|
|
472
|
+
export type PostGamesBaccaratPlayData = {
|
|
473
|
+
body?: {
|
|
474
|
+
meta?: {
|
|
475
|
+
autobetSettings?: {
|
|
476
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
477
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
478
|
+
onWinPercentage: string;
|
|
479
|
+
onLossPercentage: string;
|
|
480
|
+
stopOnLoss: string;
|
|
481
|
+
stopOnProfit: string;
|
|
482
|
+
numberOfBets: number;
|
|
483
|
+
autobetId: string;
|
|
484
|
+
betIndex: number;
|
|
485
|
+
pnlSinceStart: string;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
gameInputs: {
|
|
489
|
+
bets: Array<{
|
|
490
|
+
type: 'PLAYER' | 'TIE' | 'BANKER';
|
|
491
|
+
amount: string;
|
|
492
|
+
}>;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
path?: never;
|
|
496
|
+
query?: never;
|
|
497
|
+
url: '/games/baccarat/play';
|
|
498
|
+
};
|
|
499
|
+
export type PostGamesBaccaratPlayResponses = {
|
|
500
|
+
/**
|
|
501
|
+
* Success
|
|
502
|
+
*/
|
|
503
|
+
200: {
|
|
504
|
+
id: string;
|
|
505
|
+
nonce: number;
|
|
506
|
+
amount: string;
|
|
507
|
+
payout: string | null;
|
|
508
|
+
userId: string;
|
|
509
|
+
gameId: string;
|
|
510
|
+
multiplier: string | null;
|
|
511
|
+
tenantId: string;
|
|
512
|
+
clientSeed: string;
|
|
513
|
+
randomValue: string | null;
|
|
514
|
+
proof: string | null;
|
|
515
|
+
afterBalance: string | null;
|
|
516
|
+
tenantUserId: string;
|
|
517
|
+
readonly betActions: Array<{
|
|
518
|
+
data: unknown;
|
|
519
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
520
|
+
createdAt?: unknown;
|
|
521
|
+
}>;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
export type PostGamesBaccaratPlayResponse = PostGamesBaccaratPlayResponses[keyof PostGamesBaccaratPlayResponses];
|
|
525
|
+
export type PostGamesRoulettePlayData = {
|
|
526
|
+
body?: {
|
|
527
|
+
meta?: {
|
|
528
|
+
autobetSettings?: {
|
|
529
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
530
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
531
|
+
onWinPercentage: string;
|
|
532
|
+
onLossPercentage: string;
|
|
533
|
+
stopOnLoss: string;
|
|
534
|
+
stopOnProfit: string;
|
|
535
|
+
numberOfBets: number;
|
|
536
|
+
autobetId: string;
|
|
537
|
+
betIndex: number;
|
|
538
|
+
pnlSinceStart: string;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
gameInputs: {
|
|
542
|
+
type: 'EUROPEAN';
|
|
543
|
+
inputs: {
|
|
544
|
+
parityBets: Array<{
|
|
545
|
+
amount: string;
|
|
546
|
+
parity: 'EVEN' | 'ODD';
|
|
547
|
+
}>;
|
|
548
|
+
colorBets: Array<{
|
|
549
|
+
amount: string;
|
|
550
|
+
color: 'RED' | 'BLACK';
|
|
551
|
+
}>;
|
|
552
|
+
halfBets: Array<{
|
|
553
|
+
amount: string;
|
|
554
|
+
half: 'LOW' | 'HIGH';
|
|
555
|
+
}>;
|
|
556
|
+
columnBets: Array<{
|
|
557
|
+
amount: string;
|
|
558
|
+
column: 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
559
|
+
}>;
|
|
560
|
+
dozenBets: Array<{
|
|
561
|
+
amount: string;
|
|
562
|
+
dozen: 'FIRST' | 'SECOND' | 'THIRD';
|
|
563
|
+
}>;
|
|
564
|
+
straightBets: Array<{
|
|
565
|
+
amount: string;
|
|
566
|
+
value: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36;
|
|
567
|
+
}>;
|
|
568
|
+
splitBets: Array<{
|
|
569
|
+
amount: string;
|
|
570
|
+
values: unknown;
|
|
571
|
+
}>;
|
|
572
|
+
streetBets: Array<{
|
|
573
|
+
amount: string;
|
|
574
|
+
values: unknown;
|
|
575
|
+
}>;
|
|
576
|
+
cornerBets: Array<{
|
|
577
|
+
amount: string;
|
|
578
|
+
values: unknown;
|
|
579
|
+
}>;
|
|
580
|
+
doubleStreetBets: Array<{
|
|
581
|
+
amount: string;
|
|
582
|
+
values: unknown;
|
|
583
|
+
}>;
|
|
584
|
+
};
|
|
585
|
+
} | {
|
|
586
|
+
type: 'AMERICAN';
|
|
587
|
+
inputs: {
|
|
588
|
+
parityBets: Array<{
|
|
589
|
+
amount: string;
|
|
590
|
+
parity: 'EVEN' | 'ODD';
|
|
591
|
+
}>;
|
|
592
|
+
colorBets: Array<{
|
|
593
|
+
amount: string;
|
|
594
|
+
color: 'RED' | 'BLACK';
|
|
595
|
+
}>;
|
|
596
|
+
halfBets: Array<{
|
|
597
|
+
amount: string;
|
|
598
|
+
half: 'LOW' | 'HIGH';
|
|
599
|
+
}>;
|
|
600
|
+
columnBets: Array<{
|
|
601
|
+
amount: string;
|
|
602
|
+
column: 'TOP' | 'MIDDLE' | 'BOTTOM';
|
|
603
|
+
}>;
|
|
604
|
+
dozenBets: Array<{
|
|
605
|
+
amount: string;
|
|
606
|
+
dozen: 'FIRST' | 'SECOND' | 'THIRD';
|
|
607
|
+
}>;
|
|
608
|
+
straightBets: Array<{
|
|
609
|
+
amount: string;
|
|
610
|
+
value: 37 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36;
|
|
611
|
+
}>;
|
|
612
|
+
splitBets: Array<{
|
|
613
|
+
amount: string;
|
|
614
|
+
values: unknown;
|
|
615
|
+
}>;
|
|
616
|
+
streetBets: Array<{
|
|
617
|
+
amount: string;
|
|
618
|
+
values: unknown;
|
|
619
|
+
}>;
|
|
620
|
+
cornerBets: Array<{
|
|
621
|
+
amount: string;
|
|
622
|
+
values: unknown;
|
|
623
|
+
}>;
|
|
624
|
+
doubleStreetBets: Array<{
|
|
625
|
+
amount: string;
|
|
626
|
+
values: unknown;
|
|
627
|
+
}>;
|
|
628
|
+
basketBets: Array<{
|
|
629
|
+
amount: string;
|
|
630
|
+
}>;
|
|
631
|
+
};
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
path?: never;
|
|
635
|
+
query?: never;
|
|
636
|
+
url: '/games/roulette/play';
|
|
637
|
+
};
|
|
638
|
+
export type PostGamesRoulettePlayResponses = {
|
|
639
|
+
/**
|
|
640
|
+
* Success
|
|
641
|
+
*/
|
|
642
|
+
200: {
|
|
643
|
+
id: string;
|
|
644
|
+
nonce: number;
|
|
645
|
+
amount: string;
|
|
646
|
+
payout: string | null;
|
|
647
|
+
userId: string;
|
|
648
|
+
gameId: string;
|
|
649
|
+
multiplier: string | null;
|
|
650
|
+
tenantId: string;
|
|
651
|
+
clientSeed: string;
|
|
652
|
+
randomValue: string | null;
|
|
653
|
+
proof: string | null;
|
|
654
|
+
afterBalance: string | null;
|
|
655
|
+
tenantUserId: string;
|
|
656
|
+
readonly betActions: Array<{
|
|
657
|
+
data: unknown;
|
|
658
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
659
|
+
createdAt?: unknown;
|
|
660
|
+
}>;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
export type PostGamesRoulettePlayResponse = PostGamesRoulettePlayResponses[keyof PostGamesRoulettePlayResponses];
|
|
664
|
+
export type PostGamesAdvancedDicePlayData = {
|
|
665
|
+
body?: {
|
|
666
|
+
amount: string;
|
|
667
|
+
meta?: {
|
|
668
|
+
autobetSettings?: {
|
|
669
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
670
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
671
|
+
onWinPercentage: string;
|
|
672
|
+
onLossPercentage: string;
|
|
673
|
+
stopOnLoss: string;
|
|
674
|
+
stopOnProfit: string;
|
|
675
|
+
numberOfBets: number;
|
|
676
|
+
autobetId: string;
|
|
677
|
+
betIndex: number;
|
|
678
|
+
pnlSinceStart: string;
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
gameInputs: {
|
|
682
|
+
mode: 'ROLL_BETWEEN';
|
|
683
|
+
bounds: {
|
|
684
|
+
lower: number;
|
|
685
|
+
upper: number;
|
|
686
|
+
};
|
|
687
|
+
} | {
|
|
688
|
+
mode: 'ROLL_OUTSIDE';
|
|
689
|
+
bounds: {
|
|
690
|
+
lower: number;
|
|
691
|
+
upper: number;
|
|
692
|
+
};
|
|
693
|
+
} | {
|
|
694
|
+
mode: 'ROLL_BETWEEN_TWO';
|
|
695
|
+
firstBounds: {
|
|
696
|
+
lower: number;
|
|
697
|
+
upper: number;
|
|
698
|
+
};
|
|
699
|
+
secondBounds: {
|
|
700
|
+
lower: number;
|
|
701
|
+
upper: number;
|
|
702
|
+
};
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
path?: never;
|
|
706
|
+
query?: never;
|
|
707
|
+
url: '/games/advanced-dice/play';
|
|
708
|
+
};
|
|
709
|
+
export type PostGamesAdvancedDicePlayResponses = {
|
|
710
|
+
/**
|
|
711
|
+
* Success
|
|
712
|
+
*/
|
|
713
|
+
200: {
|
|
714
|
+
id: string;
|
|
715
|
+
nonce: number;
|
|
716
|
+
amount: string;
|
|
717
|
+
payout: string | null;
|
|
718
|
+
userId: string;
|
|
719
|
+
gameId: string;
|
|
720
|
+
multiplier: string | null;
|
|
721
|
+
tenantId: string;
|
|
722
|
+
clientSeed: string;
|
|
723
|
+
randomValue: string | null;
|
|
724
|
+
proof: string | null;
|
|
725
|
+
afterBalance: string | null;
|
|
726
|
+
tenantUserId: string;
|
|
727
|
+
readonly betActions: Array<{
|
|
728
|
+
data: unknown;
|
|
729
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
730
|
+
createdAt?: unknown;
|
|
731
|
+
}>;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
export type PostGamesAdvancedDicePlayResponse = PostGamesAdvancedDicePlayResponses[keyof PostGamesAdvancedDicePlayResponses];
|
|
735
|
+
export type PostGamesBlitzPlayData = {
|
|
736
|
+
body?: {
|
|
737
|
+
amount: string;
|
|
738
|
+
meta?: {
|
|
739
|
+
autobetSettings?: {
|
|
740
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
741
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
742
|
+
onWinPercentage: string;
|
|
743
|
+
onLossPercentage: string;
|
|
744
|
+
stopOnLoss: string;
|
|
745
|
+
stopOnProfit: string;
|
|
746
|
+
numberOfBets: number;
|
|
747
|
+
autobetId: string;
|
|
748
|
+
betIndex: number;
|
|
749
|
+
pnlSinceStart: string;
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
gameInputs: {
|
|
753
|
+
pickCount: number;
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
path?: never;
|
|
757
|
+
query?: never;
|
|
758
|
+
url: '/games/blitz/play';
|
|
759
|
+
};
|
|
760
|
+
export type PostGamesBlitzPlayResponses = {
|
|
761
|
+
/**
|
|
762
|
+
* Success
|
|
763
|
+
*/
|
|
764
|
+
200: {
|
|
765
|
+
id: string;
|
|
766
|
+
nonce: number;
|
|
767
|
+
amount: string;
|
|
768
|
+
payout: string | null;
|
|
769
|
+
userId: string;
|
|
770
|
+
gameId: string;
|
|
771
|
+
multiplier: string | null;
|
|
772
|
+
tenantId: string;
|
|
773
|
+
clientSeed: string;
|
|
774
|
+
randomValue: string | null;
|
|
775
|
+
proof: string | null;
|
|
776
|
+
afterBalance: string | null;
|
|
777
|
+
tenantUserId: string;
|
|
778
|
+
readonly betActions: Array<{
|
|
779
|
+
data: unknown;
|
|
780
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
781
|
+
createdAt?: unknown;
|
|
782
|
+
}>;
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
export type PostGamesBlitzPlayResponse = PostGamesBlitzPlayResponses[keyof PostGamesBlitzPlayResponses];
|
|
786
|
+
export type PostGamesDartsPlayData = {
|
|
787
|
+
body?: {
|
|
788
|
+
amount: string;
|
|
789
|
+
meta?: {
|
|
790
|
+
autobetSettings?: {
|
|
791
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
792
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
793
|
+
onWinPercentage: string;
|
|
794
|
+
onLossPercentage: string;
|
|
795
|
+
stopOnLoss: string;
|
|
796
|
+
stopOnProfit: string;
|
|
797
|
+
numberOfBets: number;
|
|
798
|
+
autobetId: string;
|
|
799
|
+
betIndex: number;
|
|
800
|
+
pnlSinceStart: string;
|
|
801
|
+
};
|
|
802
|
+
};
|
|
803
|
+
gameInputs: {
|
|
804
|
+
difficultyLevel: 'EASY' | 'MEDIUM' | 'HARD' | 'EXPERT';
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
path?: never;
|
|
808
|
+
query?: never;
|
|
809
|
+
url: '/games/darts/play';
|
|
810
|
+
};
|
|
811
|
+
export type PostGamesDartsPlayResponses = {
|
|
812
|
+
/**
|
|
813
|
+
* Success
|
|
814
|
+
*/
|
|
815
|
+
200: {
|
|
816
|
+
id: string;
|
|
817
|
+
nonce: number;
|
|
818
|
+
amount: string;
|
|
819
|
+
payout: string | null;
|
|
820
|
+
userId: string;
|
|
821
|
+
gameId: string;
|
|
822
|
+
multiplier: string | null;
|
|
823
|
+
tenantId: string;
|
|
824
|
+
clientSeed: string;
|
|
825
|
+
randomValue: string | null;
|
|
826
|
+
proof: string | null;
|
|
827
|
+
afterBalance: string | null;
|
|
828
|
+
tenantUserId: string;
|
|
829
|
+
readonly betActions: Array<{
|
|
830
|
+
data: unknown;
|
|
831
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
832
|
+
createdAt?: unknown;
|
|
833
|
+
}>;
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
export type PostGamesDartsPlayResponse = PostGamesDartsPlayResponses[keyof PostGamesDartsPlayResponses];
|
|
837
|
+
export type PostGamesMinesStartData = {
|
|
838
|
+
body?: {
|
|
839
|
+
amount: string;
|
|
840
|
+
meta?: {
|
|
841
|
+
autobetSettings?: {
|
|
842
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
843
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
844
|
+
onWinPercentage: string;
|
|
845
|
+
onLossPercentage: string;
|
|
846
|
+
stopOnLoss: string;
|
|
847
|
+
stopOnProfit: string;
|
|
848
|
+
numberOfBets: number;
|
|
849
|
+
autobetId: string;
|
|
850
|
+
betIndex: number;
|
|
851
|
+
pnlSinceStart: string;
|
|
852
|
+
};
|
|
853
|
+
};
|
|
854
|
+
minesCount: number;
|
|
855
|
+
};
|
|
856
|
+
path?: never;
|
|
857
|
+
query?: never;
|
|
858
|
+
url: '/games/mines/start';
|
|
859
|
+
};
|
|
860
|
+
export type PostGamesMinesStartResponses = {
|
|
861
|
+
/**
|
|
862
|
+
* Success
|
|
863
|
+
*/
|
|
864
|
+
200: {
|
|
865
|
+
id: string;
|
|
866
|
+
nonce: number;
|
|
867
|
+
amount: string;
|
|
868
|
+
payout: string | null;
|
|
869
|
+
userId: string;
|
|
870
|
+
gameId: string;
|
|
871
|
+
multiplier: string | null;
|
|
872
|
+
tenantId: string;
|
|
873
|
+
clientSeed: string;
|
|
874
|
+
randomValue: string | null;
|
|
875
|
+
proof: string | null;
|
|
876
|
+
afterBalance: string | null;
|
|
877
|
+
tenantUserId: string;
|
|
878
|
+
readonly betActions: Array<{
|
|
879
|
+
data: unknown;
|
|
880
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
881
|
+
createdAt?: unknown;
|
|
882
|
+
}>;
|
|
883
|
+
};
|
|
884
|
+
};
|
|
885
|
+
export type PostGamesMinesStartResponse = PostGamesMinesStartResponses[keyof PostGamesMinesStartResponses];
|
|
886
|
+
export type GetGamesMinesActiveBetData = {
|
|
887
|
+
body?: never;
|
|
888
|
+
path?: never;
|
|
889
|
+
query?: never;
|
|
890
|
+
url: '/games/mines/active-bet';
|
|
891
|
+
};
|
|
892
|
+
export type GetGamesMinesActiveBetResponses = {
|
|
893
|
+
/**
|
|
894
|
+
* Success
|
|
895
|
+
*/
|
|
896
|
+
200: {
|
|
897
|
+
activeBet: {
|
|
898
|
+
id: string;
|
|
899
|
+
nonce: number;
|
|
900
|
+
amount: string;
|
|
901
|
+
payout: string | null;
|
|
902
|
+
userId: string;
|
|
903
|
+
gameId: string;
|
|
904
|
+
multiplier: string | null;
|
|
905
|
+
tenantId: string;
|
|
906
|
+
clientSeed: string;
|
|
907
|
+
randomValue: string | null;
|
|
908
|
+
proof: string | null;
|
|
909
|
+
afterBalance: string | null;
|
|
910
|
+
tenantUserId: string;
|
|
911
|
+
readonly betActions: Array<{
|
|
912
|
+
data: unknown;
|
|
913
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
914
|
+
createdAt?: unknown;
|
|
915
|
+
}>;
|
|
916
|
+
} | null;
|
|
917
|
+
};
|
|
918
|
+
};
|
|
919
|
+
export type GetGamesMinesActiveBetResponse = GetGamesMinesActiveBetResponses[keyof GetGamesMinesActiveBetResponses];
|
|
920
|
+
export type PostGamesMinesNextData = {
|
|
921
|
+
body?: {
|
|
922
|
+
betId: string;
|
|
923
|
+
selectedTiles: Array<number>;
|
|
924
|
+
};
|
|
925
|
+
path?: never;
|
|
926
|
+
query?: never;
|
|
927
|
+
url: '/games/mines/next';
|
|
928
|
+
};
|
|
929
|
+
export type PostGamesMinesNextResponses = {
|
|
930
|
+
/**
|
|
931
|
+
* Success
|
|
932
|
+
*/
|
|
933
|
+
200: {
|
|
934
|
+
id: string;
|
|
935
|
+
nonce: number;
|
|
936
|
+
amount: string;
|
|
937
|
+
payout: string | null;
|
|
938
|
+
userId: string;
|
|
939
|
+
gameId: string;
|
|
940
|
+
multiplier: string | null;
|
|
941
|
+
tenantId: string;
|
|
942
|
+
clientSeed: string;
|
|
943
|
+
randomValue: string | null;
|
|
944
|
+
proof: string | null;
|
|
945
|
+
afterBalance: string | null;
|
|
946
|
+
tenantUserId: string;
|
|
947
|
+
readonly betActions: Array<{
|
|
948
|
+
data: unknown;
|
|
949
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
950
|
+
createdAt?: unknown;
|
|
951
|
+
}>;
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
export type PostGamesMinesNextResponse = PostGamesMinesNextResponses[keyof PostGamesMinesNextResponses];
|
|
955
|
+
export type PostGamesMinesCashoutData = {
|
|
956
|
+
body?: never;
|
|
957
|
+
path?: never;
|
|
958
|
+
query?: never;
|
|
959
|
+
url: '/games/mines/cashout';
|
|
960
|
+
};
|
|
961
|
+
export type PostGamesMinesCashoutResponses = {
|
|
962
|
+
/**
|
|
963
|
+
* Success
|
|
964
|
+
*/
|
|
965
|
+
200: {
|
|
966
|
+
id: string;
|
|
967
|
+
nonce: number;
|
|
968
|
+
amount: string;
|
|
969
|
+
payout: string | null;
|
|
970
|
+
userId: string;
|
|
971
|
+
gameId: string;
|
|
972
|
+
multiplier: string | null;
|
|
973
|
+
tenantId: string;
|
|
974
|
+
clientSeed: string;
|
|
975
|
+
randomValue: string | null;
|
|
976
|
+
proof: string | null;
|
|
977
|
+
afterBalance: string | null;
|
|
978
|
+
tenantUserId: string;
|
|
979
|
+
readonly betActions: Array<{
|
|
980
|
+
data: unknown;
|
|
981
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
982
|
+
createdAt?: unknown;
|
|
983
|
+
}>;
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
export type PostGamesMinesCashoutResponse = PostGamesMinesCashoutResponses[keyof PostGamesMinesCashoutResponses];
|
|
987
|
+
export type PostGamesMinesAutoData = {
|
|
988
|
+
body?: {
|
|
989
|
+
amount: string;
|
|
990
|
+
meta?: {
|
|
991
|
+
autobetSettings?: {
|
|
992
|
+
onWinStrategy: 'Reset' | 'Increase';
|
|
993
|
+
onLossStrategy: 'Reset' | 'Increase';
|
|
994
|
+
onWinPercentage: string;
|
|
995
|
+
onLossPercentage: string;
|
|
996
|
+
stopOnLoss: string;
|
|
997
|
+
stopOnProfit: string;
|
|
998
|
+
numberOfBets: number;
|
|
999
|
+
autobetId: string;
|
|
1000
|
+
betIndex: number;
|
|
1001
|
+
pnlSinceStart: string;
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
minesCount: number;
|
|
1005
|
+
selectedTiles: Array<number>;
|
|
1006
|
+
};
|
|
1007
|
+
path?: never;
|
|
1008
|
+
query?: never;
|
|
1009
|
+
url: '/games/mines/auto';
|
|
1010
|
+
};
|
|
1011
|
+
export type PostGamesMinesAutoResponses = {
|
|
1012
|
+
/**
|
|
1013
|
+
* Success
|
|
1014
|
+
*/
|
|
1015
|
+
200: {
|
|
1016
|
+
id: string;
|
|
1017
|
+
nonce: number;
|
|
1018
|
+
amount: string;
|
|
1019
|
+
payout: string | null;
|
|
1020
|
+
userId: string;
|
|
1021
|
+
gameId: string;
|
|
1022
|
+
multiplier: string | null;
|
|
1023
|
+
tenantId: string;
|
|
1024
|
+
clientSeed: string;
|
|
1025
|
+
randomValue: string | null;
|
|
1026
|
+
proof: string | null;
|
|
1027
|
+
afterBalance: string | null;
|
|
1028
|
+
tenantUserId: string;
|
|
1029
|
+
readonly betActions: Array<{
|
|
1030
|
+
data: unknown;
|
|
1031
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
1032
|
+
createdAt?: unknown;
|
|
1033
|
+
}>;
|
|
1034
|
+
};
|
|
1035
|
+
};
|
|
1036
|
+
export type PostGamesMinesAutoResponse = PostGamesMinesAutoResponses[keyof PostGamesMinesAutoResponses];
|
|
1037
|
+
export type PostGamesBlackjackStartData = {
|
|
1038
|
+
body?: {
|
|
1039
|
+
pairBonusAmount?: string;
|
|
1040
|
+
threeCardBonusAmount?: string;
|
|
1041
|
+
mainBetAmount: string;
|
|
1042
|
+
};
|
|
1043
|
+
path?: never;
|
|
1044
|
+
query?: never;
|
|
1045
|
+
url: '/games/blackjack/start';
|
|
1046
|
+
};
|
|
1047
|
+
export type PostGamesBlackjackStartResponses = {
|
|
1048
|
+
/**
|
|
1049
|
+
* Success
|
|
1050
|
+
*/
|
|
1051
|
+
200: {
|
|
1052
|
+
id: string;
|
|
1053
|
+
nonce: number;
|
|
1054
|
+
amount: string;
|
|
1055
|
+
payout: string | null;
|
|
1056
|
+
userId: string;
|
|
1057
|
+
gameId: string;
|
|
1058
|
+
multiplier: string | null;
|
|
1059
|
+
tenantId: string;
|
|
1060
|
+
clientSeed: string;
|
|
1061
|
+
randomValue: string | null;
|
|
1062
|
+
proof: string | null;
|
|
1063
|
+
afterBalance: string | null;
|
|
1064
|
+
tenantUserId: string;
|
|
1065
|
+
readonly betActions: Array<{
|
|
1066
|
+
data: unknown;
|
|
1067
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
1068
|
+
createdAt?: unknown;
|
|
1069
|
+
}>;
|
|
1070
|
+
insuranceAmount: string | null;
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
export type PostGamesBlackjackStartResponse = PostGamesBlackjackStartResponses[keyof PostGamesBlackjackStartResponses];
|
|
1074
|
+
export type GetGamesBlackjackActiveBetData = {
|
|
1075
|
+
body?: never;
|
|
1076
|
+
path?: never;
|
|
1077
|
+
query?: never;
|
|
1078
|
+
url: '/games/blackjack/active-bet';
|
|
1079
|
+
};
|
|
1080
|
+
export type GetGamesBlackjackActiveBetResponses = {
|
|
1081
|
+
/**
|
|
1082
|
+
* Success
|
|
1083
|
+
*/
|
|
1084
|
+
200: {
|
|
1085
|
+
activeBet: {
|
|
1086
|
+
id: string;
|
|
1087
|
+
nonce: number;
|
|
1088
|
+
amount: string;
|
|
1089
|
+
payout: string | null;
|
|
1090
|
+
userId: string;
|
|
1091
|
+
gameId: string;
|
|
1092
|
+
multiplier: string | null;
|
|
1093
|
+
tenantId: string;
|
|
1094
|
+
clientSeed: string;
|
|
1095
|
+
randomValue: string | null;
|
|
1096
|
+
proof: string | null;
|
|
1097
|
+
afterBalance: string | null;
|
|
1098
|
+
tenantUserId: string;
|
|
1099
|
+
readonly betActions: Array<{
|
|
1100
|
+
data: unknown;
|
|
1101
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
1102
|
+
createdAt?: unknown;
|
|
1103
|
+
}>;
|
|
1104
|
+
insuranceAmount: string | null;
|
|
1105
|
+
} | null;
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
export type GetGamesBlackjackActiveBetResponse = GetGamesBlackjackActiveBetResponses[keyof GetGamesBlackjackActiveBetResponses];
|
|
1109
|
+
export type PostGamesBlackjackNextData = {
|
|
1110
|
+
body?: {
|
|
1111
|
+
betId: string;
|
|
1112
|
+
type: 'BLACKJACK_HIT' | 'BLACKJACK_STAND' | 'BLACKJACK_BUY_INSURANCE' | 'BLACKJACK_REJECT_INSURANCE' | 'BLACKJACK_DOUBLE_DOWN' | 'BLACKJACK_SPLIT';
|
|
1113
|
+
};
|
|
1114
|
+
path?: never;
|
|
1115
|
+
query?: never;
|
|
1116
|
+
url: '/games/blackjack/next';
|
|
1117
|
+
};
|
|
1118
|
+
export type PostGamesBlackjackNextResponses = {
|
|
1119
|
+
/**
|
|
1120
|
+
* Success
|
|
1121
|
+
*/
|
|
1122
|
+
200: {
|
|
1123
|
+
id: string;
|
|
1124
|
+
nonce: number;
|
|
1125
|
+
amount: string;
|
|
1126
|
+
payout: string | null;
|
|
1127
|
+
userId: string;
|
|
1128
|
+
gameId: string;
|
|
1129
|
+
multiplier: string | null;
|
|
1130
|
+
tenantId: string;
|
|
1131
|
+
clientSeed: string;
|
|
1132
|
+
randomValue: string | null;
|
|
1133
|
+
proof: string | null;
|
|
1134
|
+
afterBalance: string | null;
|
|
1135
|
+
tenantUserId: string;
|
|
1136
|
+
readonly betActions: Array<{
|
|
1137
|
+
data: unknown;
|
|
1138
|
+
type: 'START_BET' | 'END_BET' | 'ROLLBACK' | 'INTERMEDIATE_NON_BET_ACTION' | 'INTERMEDIATE_BET_ACTION';
|
|
1139
|
+
createdAt?: unknown;
|
|
1140
|
+
}>;
|
|
1141
|
+
};
|
|
1142
|
+
};
|
|
1143
|
+
export type PostGamesBlackjackNextResponse = PostGamesBlackjackNextResponses[keyof PostGamesBlackjackNextResponses];
|