@getenginex/sdk-igaming 0.5.0 → 0.6.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/dist/index.d.cts CHANGED
@@ -1,765 +1,765 @@
1
1
  import { CursorPageInput, CallOptions, CursorPage, Page, NoParams, EnginexClient } from '@getenginex/sdk';
2
2
 
3
3
  /**
4
- * Valor em dinheiro de uma campanha, em unidades menores da moeda (ex.: centavos). As casas
5
- * decimais são as da moeda (`config.currency.decimalPlaces` para a moeda do operador).
6
- * @category Bônus
4
+ * Money value of a campaign, in minor units of the currency (e.g. cents). The decimal places
5
+ * are the currency's (`config.currency.decimalPlaces` for the operator's currency).
6
+ * @category Bonus
7
7
  */
8
8
  interface CampaignMoney {
9
- /** Valor em unidades menores de `currency` (o gateway envia em texto; o SDK converte). */
9
+ /** Value in minor units of `currency` (the gateway sends it as text; the SDK converts). */
10
10
  amount: number;
11
- /** Código da moeda, ex.: `BRL`. */
11
+ /** Currency code, e.g. `BRL`. */
12
12
  currency: string;
13
13
  }
14
14
  /**
15
- * Janela de tempo (ISO 8601, UTC). Um lado ausente fica em aberto.
16
- * @category Bônus
15
+ * Time window (ISO 8601, UTC). A missing side is left open.
16
+ * @category Bonus
17
17
  */
18
18
  interface CampaignTimeWindow {
19
- /** Início. */
19
+ /** Start. */
20
20
  startsAt?: string;
21
- /** Fim. */
21
+ /** End. */
22
22
  endsAt?: string;
23
23
  }
24
24
  /**
25
- * Razão exata (porcentagem, multiplicador), em uma de duas formas: `decimal` (texto, ex.: `"30"`,
26
- * `"0.5"`) ou `basisPoints` (10000 = 100%).
27
- * @category Bônus
25
+ * Exact ratio (percentage, multiplier), in one of two forms: `decimal` (text, e.g. `"30"`,
26
+ * `"0.5"`) or `basisPoints` (10000 = 100%).
27
+ * @category Bonus
28
28
  */
29
29
  interface CampaignExactRatio {
30
- /** Valor decimal exato em texto (não converta para `number` se precisar de precisão). */
30
+ /** Exact decimal value as text (do not convert to `number` if you need precision). */
31
31
  decimal?: string;
32
- /** Valor em pontos-base: `10000` = 100%. */
32
+ /** Value in basis points: `10000` = 100%. */
33
33
  basisPoints?: number;
34
- /** Casas decimais máximas do resultado. */
34
+ /** Maximum decimal places of the result. */
35
35
  maximumScale: number;
36
36
  }
37
37
  /**
38
- * Modo de arredondamento de um cálculo de campanha.
39
- * @category Bônus
38
+ * Rounding mode of a campaign calculation.
39
+ * @category Bonus
40
40
  */
41
41
  type CampaignRoundingMode = 'floor' | 'half_up' | 'ceiling' | 'unspecified' | (string & {});
42
42
  /**
43
- * Produto onde a campanha vale.
44
- * @category Bônus
43
+ * Product where the campaign applies.
44
+ * @category Bonus
45
45
  */
46
46
  type CampaignProductScope = 'casino' | 'sportsbook' | 'casino_and_sportsbook' | 'unspecified' | (string & {});
47
47
  /**
48
- * Como o jogador entra na campanha: `automatic` (entra sozinho ao cumprir a qualificação), `opt_in`
49
- * (precisa de {@link BonusApi.optIn}), `promo_code` (precisa de {@link BonusApi.redeemPromoCode}) ou
50
- * `manual` (o operador inclui).
51
- * @category Bônus
48
+ * How the player enters the campaign: `automatic` (enters on its own on meeting the qualification), `opt_in`
49
+ * (needs {@link BonusApi.optIn}), `promo_code` (needs {@link BonusApi.redeemPromoCode}) or
50
+ * `manual` (the operator adds them).
51
+ * @category Bonus
52
52
  */
53
53
  type CampaignEntryPolicyCode = 'automatic' | 'opt_in' | 'promo_code' | 'manual' | 'unspecified' | (string & {});
54
54
  /**
55
- * Como o prêmio é entregue: `automatic` (creditado ao qualificar) ou `player_claim` (o jogador
56
- * resgata com {@link BonusApi.claim}).
57
- * @category Bônus
55
+ * How the reward is delivered: `automatic` (credited on qualifying) or `player_claim` (the player
56
+ * redeems it with {@link BonusApi.claim}).
57
+ * @category Bonus
58
58
  */
59
59
  type CampaignRewardClaimPolicyCode = 'automatic' | 'player_claim' | 'unspecified' | (string & {});
60
60
  /**
61
- * Tipo do prêmio: crédito de saldo, giros grátis, aposta grátis ou cobertura de aposta esportiva.
62
- * @category Bônus
61
+ * Reward type: balance credit, free spins, free bet or sports bet coverage.
62
+ * @category Bonus
63
63
  */
64
64
  type CampaignRewardKind = 'balance_credit' | 'casino_free_spins' | 'sports_bonus_bet' | 'sports_bet_coverage' | 'unspecified' | (string & {});
65
65
  /**
66
- * Política versionada (código + versão).
67
- * @category Bônus
66
+ * Versioned policy (code + version).
67
+ * @category Bonus
68
68
  */
69
69
  interface CampaignPolicy<C extends string> {
70
- /** Código da política. */
70
+ /** Policy code. */
71
71
  code: C;
72
- /** Versão da política. @beta */
72
+ /** Policy version. @beta */
73
73
  version: number;
74
74
  }
75
75
  /**
76
- * Recorte de atividade de cassino (listas vazias = sem restrição daquele critério).
77
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
76
+ * Casino activity slice (empty lists = no restriction on that criterion).
77
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
78
78
  * @beta
79
- * @category Bônus
79
+ * @category Bonus
80
80
  */
81
81
  interface CasinoActivitySelector {
82
- /** Instância do provedor. */
82
+ /** Provider instance. */
83
83
  providerInstanceId: string;
84
- /** Softwares do provedor. */
84
+ /** Provider software. */
85
85
  softwareIds: string[];
86
- /** Jogos. */
86
+ /** Games. */
87
87
  gameIds: string[];
88
- /** Categorias (slugs do catálogo). */
88
+ /** Categories (catalog slugs). */
89
89
  categoryCodes: string[];
90
90
  }
91
91
  /**
92
- * Tipo de aposta esportiva.
93
- * @category Bônus
92
+ * Sports bet type.
93
+ * @category Bonus
94
94
  */
95
95
  type SportsBetType = 'single' | 'multiple' | 'system' | 'unspecified' | (string & {});
96
96
  /**
97
- * Recorte de atividade esportiva (listas vazias = sem restrição daquele critério).
98
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
97
+ * Sports activity slice (empty lists = no restriction on that criterion).
98
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
99
99
  * @beta
100
- * @category Bônus
100
+ * @category Bonus
101
101
  */
102
102
  interface SportsActivitySelector {
103
- /** Esportes. */
103
+ /** Sports. */
104
104
  sportCodes: string[];
105
- /** Competições. */
105
+ /** Competitions. */
106
106
  competitionIds: string[];
107
- /** Eventos. */
107
+ /** Events. */
108
108
  eventIds: string[];
109
- /** Mercados. */
109
+ /** Markets. */
110
110
  marketCodes: string[];
111
- /** Só ao vivo (`true`), só pré-jogo (`false`) ou ambos (ausente). */
111
+ /** Live only (`true`), pre-match only (`false`) or both (absent). */
112
112
  live?: boolean;
113
- /** Tipos de aposta aceitos. */
113
+ /** Accepted bet types. */
114
114
  betTypes: SportsBetType[];
115
115
  }
116
116
  /**
117
- * Qualificação por evento do jogador (ex.: cadastro concluído).
118
- * @category Bônus
117
+ * Qualification by a player event (e.g. completed signup).
118
+ * @category Bonus
119
119
  */
120
120
  interface UserEventQualification {
121
- /** Código do evento. */
121
+ /** Event code. */
122
122
  eventCode: string;
123
- /** Versão do evento. @beta */
123
+ /** Event version. @beta */
124
124
  eventVersion: number;
125
- /** Origem autorizada do evento. */
125
+ /** Authorized origin of the event. */
126
126
  sourceAuthority: string;
127
- /** Campos que identificam o evento. */
127
+ /** Fields that identify the event. */
128
128
  identityFields: string[];
129
129
  }
130
130
  /**
131
- * Qualificação por depósito confirmado.
132
- * @category Bônus
131
+ * Qualification by a confirmed deposit.
132
+ * @category Bonus
133
133
  */
134
134
  interface DepositSettledQualification {
135
- /** Moeda do depósito. */
135
+ /** Deposit currency. */
136
136
  currency: string;
137
- /** Métodos de pagamento aceitos (ex.: `pix`); vazio = todos. */
137
+ /** Accepted payment methods (e.g. `pix`); empty = all. */
138
138
  eligibleMethodCodes: string[];
139
- /** `required` (só o primeiro depósito), `excluded` (nunca o primeiro) ou `any`. */
139
+ /** `required` (only the first deposit), `excluded` (never the first) or `any`. */
140
140
  firstDepositPolicy: 'any' | 'required' | 'excluded' | 'unspecified' | (string & {});
141
- /** Depósito mínimo. */
141
+ /** Minimum deposit. */
142
142
  minimumSettledNetAmount?: CampaignMoney;
143
- /** Depósito máximo considerado. */
143
+ /** Maximum deposit considered. */
144
144
  maximumSettledNetAmount?: CampaignMoney;
145
- /** Base do valor (ex.: `settled_net_deposit`). */
145
+ /** Value basis (e.g. `settled_net_deposit`). */
146
146
  amountBasis: string;
147
147
  }
148
148
  /**
149
- * Qualificação por atividade acumulada numa janela (ex.: perda líquida ou total apostado).
150
- * @category Bônus
149
+ * Qualification by activity accumulated over a window (e.g. net loss or total wagered).
150
+ * @category Bonus
151
151
  */
152
152
  interface ActivityAggregateQualification {
153
- /** `net_loss` (perda líquida) ou `settled_stake` (total apostado e liquidado). */
153
+ /** `net_loss` (net loss) or `settled_stake` (total wagered and settled). */
154
154
  basis: 'net_loss' | 'settled_stake' | 'unspecified' | (string & {});
155
- /** Produto considerado. */
155
+ /** Product considered. */
156
156
  productScope: CampaignProductScope;
157
- /** Moeda. */
157
+ /** Currency. */
158
158
  currency: string;
159
- /** Janela de acúmulo, em segundos. */
159
+ /** Accumulation window, in seconds. */
160
160
  window?: number;
161
- /** Fuso horário da janela. */
161
+ /** Window time zone. */
162
162
  timezone: string;
163
- /** Tolerância para eventos atrasados, em segundos. */
163
+ /** Tolerance for late events, in seconds. */
164
164
  lateEventGrace?: number;
165
- /** Recorte de cassino. */
165
+ /** Casino slice. */
166
166
  casino?: CasinoActivitySelector;
167
- /** Recorte de apostas esportivas. */
167
+ /** Sports betting slice. */
168
168
  sportsbook?: SportsActivitySelector;
169
169
  }
170
170
  /**
171
- * O que o jogador precisa fazer para se qualificar. Só um dos casos vem preenchido; `immediate`
172
- * significa que entrar já qualifica.
173
- * @category Bônus
171
+ * What the player must do to qualify. Only one of the cases is filled in; `immediate`
172
+ * means that joining already qualifies.
173
+ * @category Bonus
174
174
  */
175
175
  interface CampaignQualification {
176
- /** Versão da definição. @beta */
176
+ /** Definition version. @beta */
177
177
  version: number;
178
- /** Qualifica ao entrar. */
178
+ /** Qualifies on joining. */
179
179
  immediate?: Record<string, never>;
180
- /** Qualifica com um evento do jogador. */
180
+ /** Qualifies with a player event. */
181
181
  userEvent?: UserEventQualification;
182
- /** Qualifica com um depósito. */
182
+ /** Qualifies with a deposit. */
183
183
  depositSettled?: DepositSettledQualification;
184
- /** Qualifica com atividade acumulada. */
184
+ /** Qualifies with accumulated activity. */
185
185
  activityAggregate?: ActivityAggregateQualification;
186
186
  }
187
187
  /**
188
- * Validade do prêmio: só um dos casos vem preenchido.
189
- * @category Bônus
188
+ * Reward validity: only one of the cases is filled in.
189
+ * @category Bonus
190
190
  */
191
191
  interface CampaignRewardValidity {
192
- /** Não expira. */
192
+ /** Does not expire. */
193
193
  noExpiry?: Record<string, never>;
194
- /** Expira numa data fixa. */
194
+ /** Expires on a fixed date. */
195
195
  absoluteExpiry?: {
196
- /** Data de expiração, ISO 8601 (UTC). */
196
+ /** Expiration date, ISO 8601 (UTC). */
197
197
  expiresAt?: string;
198
198
  };
199
- /** Expira um tempo depois da concessão. */
199
+ /** Expires some time after the grant. */
200
200
  durationFromGrant?: {
201
- /** Duração, em segundos. */
201
+ /** Duration, in seconds. */
202
202
  duration?: number;
203
203
  };
204
204
  }
205
205
  /**
206
- * Cálculo percentual sobre um valor de origem (ex.: 100% do depósito até R$ 500) ou sobre um
207
- * acumulado (rebate).
208
- * @category Bônus
206
+ * Percentage calculation over a source value (e.g. 100% of the deposit up to R$ 500) or over an
207
+ * accumulated amount (rebate).
208
+ * @category Bonus
209
209
  */
210
210
  interface CampaignPercentCalculation {
211
- /** Percentual. */
211
+ /** Percentage. */
212
212
  percentage?: CampaignExactRatio;
213
- /** Arredondamento. */
213
+ /** Rounding. */
214
214
  rounding: CampaignRoundingMode;
215
- /** Prêmio mínimo. */
215
+ /** Minimum reward. */
216
216
  minimumReward?: CampaignMoney;
217
- /** Prêmio máximo. */
217
+ /** Maximum reward. */
218
218
  maximumReward?: CampaignMoney;
219
219
  }
220
220
  /**
221
- * Prêmio em crédito de saldo. O valor vem em um dos três cálculos.
222
- * @category Bônus
221
+ * Balance credit reward. The value comes from one of the three calculations.
222
+ * @category Bonus
223
223
  */
224
224
  interface BalanceCreditReward {
225
- /** Valor fixo. */
225
+ /** Fixed value. */
226
226
  fixedAmount?: {
227
- /** Valor do prêmio. */
227
+ /** Reward value. */
228
228
  amount?: CampaignMoney;
229
229
  };
230
- /** Percentual do valor de origem (ex.: do depósito). */
230
+ /** Percentage of the source value (e.g. of the deposit). */
231
231
  percentOfSourceAmount?: CampaignPercentCalculation;
232
- /** Rebate sobre um acumulado. */
232
+ /** Rebate over an accumulated amount. */
233
233
  aggregateRebate?: {
234
- /** Percentual. */
234
+ /** Percentage. */
235
235
  percentage?: CampaignExactRatio;
236
- /** Arredondamento. */
236
+ /** Rounding. */
237
237
  rounding: CampaignRoundingMode;
238
- /** Base mínima para haver prêmio. */
238
+ /** Minimum base for there to be a reward. */
239
239
  minimumBasis?: CampaignMoney;
240
- /** Prêmio máximo. */
240
+ /** Maximum reward. */
241
241
  maximumReward?: CampaignMoney;
242
242
  };
243
- /** Saldo creditado: `real` ou `restricted` (bônus, com regras de uso). */
243
+ /** Balance credited: `real` or `restricted` (bonus, with usage rules). */
244
244
  balanceClass: 'real' | 'restricted' | 'unspecified' | (string & {});
245
- /** Ganhos com o prêmio: `real` ou restritos até cumprir o rollover. */
245
+ /** Winnings from the reward: `real` or restricted until the rollover is met. */
246
246
  proceedsClass: 'real' | 'restricted_until_wagering_completion' | 'unspecified' | (string & {});
247
- /** Validade. */
247
+ /** Validity. */
248
248
  validity?: CampaignRewardValidity;
249
249
  }
250
250
  /**
251
- * Prêmio em giros grátis.
252
- * @category Bônus
251
+ * Free spins reward.
252
+ * @category Bonus
253
253
  */
254
254
  interface CasinoFreeSpinsReward {
255
- /** Provedor dos giros. */
255
+ /** Spin provider. */
256
256
  providerCode: string;
257
- /** Jogos onde os giros valem. */
257
+ /** Games where the spins apply. */
258
258
  casinoScope?: CasinoActivitySelector;
259
- /** Quantidade de giros. */
259
+ /** Number of spins. */
260
260
  quantity: number;
261
- /** Valor de cada giro. */
261
+ /** Value of each spin. */
262
262
  denomination?: CampaignMoney;
263
- /** Moeda. */
263
+ /** Currency. */
264
264
  currency: string;
265
- /** Janela para usar os giros. */
265
+ /** Window to use the spins. */
266
266
  grantWindow?: CampaignTimeWindow;
267
- /** Ganhos com os giros: `real` ou restritos até cumprir o rollover. */
267
+ /** Winnings from the spins: `real` or restricted until the rollover is met. */
268
268
  proceedsClass: 'real' | 'restricted_until_wagering_completion' | 'unspecified' | (string & {});
269
- /** Ganho máximo. */
269
+ /** Maximum win. */
270
270
  maximumWinnings?: CampaignMoney;
271
271
  }
272
272
  /**
273
- * Prêmio em aposta esportiva grátis.
274
- * @category Bônus
273
+ * Free sports bet reward.
274
+ * @category Bonus
275
275
  */
276
276
  interface SportsBonusBetReward {
277
- /** Provedor do sportsbook. */
277
+ /** Sportsbook provider. */
278
278
  providerCode: string;
279
- /** Onde a aposta vale. */
279
+ /** Where the bet applies. */
280
280
  sportsbookScope?: SportsActivitySelector;
281
- /** Valor de cada aposta. */
281
+ /** Value of each bet. */
282
282
  amount?: CampaignMoney;
283
- /** Quantidade de apostas. */
283
+ /** Number of bets. */
284
284
  quantity: number;
285
- /** Validade. */
285
+ /** Validity. */
286
286
  validity?: CampaignRewardValidity;
287
287
  }
288
288
  /**
289
- * Prêmio em cobertura de aposta esportiva (devolve a aposta perdida até um teto).
290
- * @category Bônus
289
+ * Sports bet coverage reward (returns the lost bet up to a cap).
290
+ * @category Bonus
291
291
  */
292
292
  interface SportsBetCoverageReward {
293
- /** Provedor do sportsbook. */
293
+ /** Sportsbook provider. */
294
294
  providerCode: string;
295
- /** Apostas cobertas. */
295
+ /** Bets covered. */
296
296
  qualifyingBetScope?: SportsActivitySelector;
297
- /** Teto da cobertura. */
297
+ /** Cap of the coverage. */
298
298
  coverageCap?: CampaignMoney;
299
- /** Validade. */
299
+ /** Validity. */
300
300
  validity?: CampaignRewardValidity;
301
301
  }
302
302
  /**
303
- * Aposta máxima com saldo de bônus.
304
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
303
+ * Maximum bet with bonus balance.
304
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
305
305
  * @beta
306
- * @category Bônus
306
+ * @category Bonus
307
307
  */
308
308
  interface CampaignMaximumBet {
309
- /** `product_limit_only` (só o limite do produto) ou `campaign_maximum` (o de `campaignMaximum`). */
309
+ /** `product_limit_only` (only the product's limit) or `campaign_maximum` (the `campaignMaximum` one). */
310
310
  mode: 'product_limit_only' | 'campaign_maximum' | 'unspecified' | (string & {});
311
- /** Aposta máxima da campanha. */
311
+ /** Maximum bet of the campaign. */
312
312
  campaignMaximum?: CampaignMoney;
313
313
  }
314
314
  /**
315
- * Regras de odds de apostas esportivas.
316
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
315
+ * Sports betting odds rules.
316
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
317
317
  * @beta
318
- * @category Bônus
318
+ * @category Bonus
319
319
  */
320
320
  interface CampaignOddsPolicy {
321
- /** `all_product_accepted_odds` ou `threshold` (usa os mínimos abaixo). */
321
+ /** `all_product_accepted_odds` or `threshold` (uses the minimums below). */
322
322
  mode: 'all_product_accepted_odds' | 'threshold' | 'unspecified' | (string & {});
323
- /** Odd total mínima, decimal em texto. */
323
+ /** Minimum total odds, decimal as text. */
324
324
  minimumTotalOddsDecimal?: string;
325
- /** Odd mínima por seleção, decimal em texto. */
325
+ /** Minimum odds per selection, decimal as text. */
326
326
  minimumOddsPerLegDecimal?: string;
327
- /** Mínimo de seleções. */
327
+ /** Minimum number of selections. */
328
328
  minimumLegs?: number;
329
- /** Máximo de seleções. */
329
+ /** Maximum number of selections. */
330
330
  maximumLegs?: number;
331
331
  }
332
332
  /**
333
- * Cash out de apostas feitas com saldo restrito.
334
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
333
+ * Cash out of bets made with restricted balance.
334
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
335
335
  * @beta
336
- * @category Bônus
336
+ * @category Bonus
337
337
  */
338
338
  type CampaignCashoutMode = 'disallow_for_restricted_funding' | 'allow_without_wagering_contribution' | 'unspecified' | (string & {});
339
339
  /**
340
- * Onde e como o saldo de bônus pode ser usado. Só um dos casos (`casino`, `sportsbook`,
341
- * `casinoAndSportsbook`) vem preenchido.
342
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
340
+ * Where and how the bonus balance can be used. Only one of the cases (`casino`, `sportsbook`,
341
+ * `casinoAndSportsbook`) is filled in.
342
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
343
343
  * @beta
344
- * @category Bônus
344
+ * @category Bonus
345
345
  */
346
346
  interface CampaignUsePolicy {
347
- /** Versão. */
347
+ /** Version. */
348
348
  version: number;
349
- /** Ordem de consumo: `real_then_restricted` ou `restricted_then_real`. */
349
+ /** Consumption order: `real_then_restricted` or `restricted_then_real`. */
350
350
  fundsConsumption?: CampaignPolicy<'real_then_restricted' | 'restricted_then_real' | 'unspecified' | (string & {})>;
351
- /** Uso no cassino. */
351
+ /** Casino use. */
352
352
  casino?: {
353
- /** Recortes permitidos. */
353
+ /** Allowed slices. */
354
354
  allowedScopes: CasinoActivitySelector[];
355
- /** Aposta máxima. */
355
+ /** Maximum bet. */
356
356
  maximumBet?: CampaignMaximumBet;
357
357
  };
358
- /** Uso em apostas esportivas. */
358
+ /** Sports betting use. */
359
359
  sportsbook?: {
360
- /** Recortes permitidos. */
360
+ /** Allowed slices. */
361
361
  allowedScopes: SportsActivitySelector[];
362
- /** Recortes excluídos. */
362
+ /** Excluded slices. */
363
363
  excludedScopes: SportsActivitySelector[];
364
- /** Aposta máxima. */
364
+ /** Maximum bet. */
365
365
  maximumBet?: CampaignMaximumBet;
366
- /** Odds exigidas. */
366
+ /** Required odds. */
367
367
  fundingOdds?: CampaignOddsPolicy;
368
368
  /** Cash out. */
369
369
  cashoutMode: CampaignCashoutMode;
370
370
  };
371
- /** Uso no cassino e em apostas esportivas. */
371
+ /** Use in casino and sports betting. */
372
372
  casinoAndSportsbook?: {
373
- /** Recortes de cassino permitidos. */
373
+ /** Allowed casino slices. */
374
374
  allowedCasinoScopes: CasinoActivitySelector[];
375
- /** Recortes esportivos permitidos. */
375
+ /** Allowed sports slices. */
376
376
  allowedSportsbookScopes: SportsActivitySelector[];
377
- /** Recortes esportivos excluídos. */
377
+ /** Excluded sports slices. */
378
378
  excludedSportsbookScopes: SportsActivitySelector[];
379
- /** Aposta máxima no cassino. */
379
+ /** Maximum casino bet. */
380
380
  maximumCasinoBet?: CampaignMaximumBet;
381
- /** Aposta máxima esportiva. */
381
+ /** Maximum sports bet. */
382
382
  maximumSportsbookBet?: CampaignMaximumBet;
383
- /** Odds exigidas. */
383
+ /** Required odds. */
384
384
  sportsbookFundingOdds?: CampaignOddsPolicy;
385
385
  /** Cash out. */
386
386
  sportsbookCashoutMode: CampaignCashoutMode;
387
387
  };
388
- /** Divisão dos ganhos entre saldo real e restrito (ex.: `proportional_to_funding`). */
388
+ /** Split of winnings between real and restricted balance (e.g. `proportional_to_funding`). */
389
389
  payoutAllocation?: CampaignPolicy<string>;
390
390
  }
391
391
  /**
392
- * Rollover (exigência de apostas) do prêmio: `none` (sem rollover) ou `multiplier`.
393
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
392
+ * Rollover (wagering requirement) of the reward: `none` (no rollover) or `multiplier`.
393
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
394
394
  * @beta
395
- * @category Bônus
395
+ * @category Bonus
396
396
  */
397
397
  interface CampaignWageringPolicy {
398
- /** Versão. */
398
+ /** Version. */
399
399
  version: number;
400
- /** Sem rollover. */
400
+ /** No rollover. */
401
401
  none?: Record<string, never>;
402
- /** Rollover por multiplicador (ex.: 30x o bônus). */
402
+ /** Rollover by multiplier (e.g. 30x the bonus). */
403
403
  multiplier?: {
404
- /** Base: `granted_balance` (o bônus concedido) ou `reward_proceeds` (os ganhos do prêmio). */
404
+ /** Basis: `granted_balance` (the bonus granted) or `reward_proceeds` (the reward's winnings). */
405
405
  requirementBasis: 'granted_balance' | 'reward_proceeds' | 'unspecified' | (string & {});
406
- /** Multiplicador (ex.: `{ decimal: '30' }` = 30x). */
406
+ /** Multiplier (e.g. `{ decimal: '30' }` = 30x). */
407
407
  multiplier?: CampaignExactRatio;
408
- /** Quanto cada tipo de aposta conta para o rollover. */
408
+ /** How much each bet type counts toward the rollover. */
409
409
  contributionRates: {
410
- /** Recorte de cassino. */
410
+ /** Casino slice. */
411
411
  casino?: CasinoActivitySelector;
412
- /** Recorte esportivo. */
412
+ /** Sports slice. */
413
413
  sportsbook?: SportsActivitySelector;
414
- /** Taxa de contribuição (10000 pontos-base = 100%). */
414
+ /** Contribution rate (10000 basis points = 100%). */
415
415
  rate?: CampaignExactRatio;
416
416
  }[];
417
- /** Prazo para cumprir. */
417
+ /** Deadline to complete. */
418
418
  deadline?: CampaignRewardValidity;
419
- /** Arredondamento. */
419
+ /** Rounding. */
420
420
  rounding: CampaignRoundingMode;
421
- /** Odds mínimas para a aposta esportiva contar. */
421
+ /** Minimum odds for the sports bet to count. */
422
422
  sportsbookContributionOdds?: CampaignOddsPolicy;
423
423
  };
424
424
  }
425
425
  /**
426
- * Acúmulo com outras campanhas do mesmo grupo: só um dos casos vem preenchido.
427
- * Espelha o protobuf do serviço de bônus e pode mudar em versões 0.x (minor).
426
+ * Stacking with other campaigns of the same group: only one of the cases is filled in.
427
+ * Mirrors the bonus service protobuf and may change in 0.x (minor) versions.
428
428
  * @beta
429
- * @category Bônus
429
+ * @category Bonus
430
430
  */
431
431
  interface CampaignStackingPolicy {
432
- /** Versão. */
432
+ /** Version. */
433
433
  version: number;
434
- /** Exclusiva no grupo (uma ativa por vez). */
434
+ /** Exclusive in the group (one active at a time). */
435
435
  exclusiveInGroup?: {
436
- /** Grupo. */
436
+ /** Group. */
437
437
  stackingGroupKey: string;
438
438
  };
439
- /** Várias no grupo, até um máximo por jogador. */
439
+ /** Several in the group, up to a maximum per player. */
440
440
  multipleInGroup?: {
441
- /** Grupo. */
441
+ /** Group. */
442
442
  stackingGroupKey: string;
443
- /** Máximo de ativas por jogador. */
443
+ /** Maximum active per player. */
444
444
  maximumActivePerPlayer: number;
445
445
  };
446
446
  }
447
447
  /**
448
- * Prêmio de uma campanha. `rewardKind` diz qual dos detalhes (`balanceCredit`, `casinoFreeSpins`,
449
- * `sportsBonusBet`, `sportsBetCoverage`, `providerManagedBalance`) vem preenchido.
450
- * @category Bônus
448
+ * Reward of a campaign. `rewardKind` says which of the details (`balanceCredit`, `casinoFreeSpins`,
449
+ * `sportsBonusBet`, `sportsBetCoverage`, `providerManagedBalance`) is filled in.
450
+ * @category Bonus
451
451
  */
452
452
  interface CampaignReward {
453
- /** Chave do prêmio na campanha. */
453
+ /** Reward key in the campaign. */
454
454
  rewardKey: string;
455
- /** Tipo do prêmio. */
455
+ /** Reward type. */
456
456
  rewardKind: CampaignRewardKind;
457
- /** Versão do tipo. @beta */
457
+ /** Type version. @beta */
458
458
  rewardKindVersion: number;
459
- /** Quem executa o prêmio (ex.: `engine_managed_balance`, `provider_entitlement`). @beta */
459
+ /** Who executes the reward (e.g. `engine_managed_balance`, `provider_entitlement`). @beta */
460
460
  executionProfileCode: 'engine_managed_balance' | 'provider_managed_balance' | 'provider_entitlement' | 'unspecified' | (string & {});
461
- /** Versão do perfil de execução. @beta */
461
+ /** Execution profile version. @beta */
462
462
  executionProfileVersion: number;
463
- /** Crédito de saldo. */
463
+ /** Balance credit. */
464
464
  balanceCredit?: BalanceCreditReward;
465
- /** Saldo gerido pelo provedor. */
465
+ /** Provider-managed balance. */
466
466
  providerManagedBalance?: {
467
- /** Provedor. */
467
+ /** Provider. */
468
468
  providerCode: string;
469
469
  };
470
- /** Giros grátis. */
470
+ /** Free spins. */
471
471
  casinoFreeSpins?: CasinoFreeSpinsReward;
472
- /** Aposta esportiva grátis. */
472
+ /** Free sports bet. */
473
473
  sportsBonusBet?: SportsBonusBetReward;
474
- /** Cobertura de aposta esportiva. */
474
+ /** Sports bet coverage. */
475
475
  sportsBetCoverage?: SportsBetCoverageReward;
476
- /** Onde o saldo de bônus pode ser usado. */
476
+ /** Where the bonus balance can be used. */
477
477
  usePolicy?: CampaignUsePolicy;
478
478
  /** Rollover. */
479
479
  wageringPolicy?: CampaignWageringPolicy;
480
- /** Acúmulo com outras campanhas. */
480
+ /** Stacking with other campaigns. */
481
481
  stackingPolicy?: CampaignStackingPolicy;
482
- /** Ordem de consumo entre saldos restritos. @beta */
482
+ /** Consumption order among restricted balances. @beta */
483
483
  restrictedPositionSelectionPolicy?: {
484
- /** Versão. */
484
+ /** Version. */
485
485
  version: number;
486
- /** Prioridade e depois a expiração mais próxima. */
486
+ /** Priority and then the nearest expiration. */
487
487
  priorityThenEarliestExpiry?: {
488
- /** Prioridade de seleção. */
488
+ /** Selection priority. */
489
489
  selectionPriority?: number;
490
490
  };
491
491
  };
492
492
  }
493
493
  /**
494
- * Textos de uma campanha num idioma.
495
- * @category Bônus
494
+ * Texts of a campaign in one language.
495
+ * @category Bonus
496
496
  */
497
497
  interface CampaignLocalizedContent {
498
- /** Idioma, ex.: `pt-BR`. */
498
+ /** Language, e.g. `pt-BR`. */
499
499
  locale: string;
500
- /** Nome de exibição. */
500
+ /** Display name. */
501
501
  displayName: string;
502
- /** Descrição. */
502
+ /** Description. */
503
503
  description: string;
504
- /** Termos e condições. */
504
+ /** Terms and conditions. */
505
505
  terms: string;
506
- /** Revisão dos termos: mande-a no aceite (`termsAcceptance.termsRevision`). */
506
+ /** Terms revision: send it on acceptance (`termsAcceptance.termsRevision`). */
507
507
  termsRevision: string;
508
508
  }
509
509
  /**
510
- * Textos de uma campanha em todos os idiomas publicados. Escolha o de `locale` do app ou, sem ele,
511
- * o de `defaultLocale`.
512
- * @category Bônus
510
+ * Texts of a campaign in all published languages. Pick the one for the app's `locale` or, without it,
511
+ * the one for `defaultLocale`.
512
+ * @category Bonus
513
513
  */
514
514
  interface CampaignContent {
515
- /** Idioma padrão. */
515
+ /** Default language. */
516
516
  defaultLocale: string;
517
- /** Idiomas publicados. */
517
+ /** Published languages. */
518
518
  supportedLocales: string[];
519
- /** Textos por idioma. */
519
+ /** Texts by language. */
520
520
  localizedContent: CampaignLocalizedContent[];
521
521
  }
522
522
  /**
523
- * Oferta de campanha de bônus (uma versão publicada da campanha).
524
- * @category Bônus
523
+ * Bonus campaign offer (a published version of the campaign).
524
+ * @category Bonus
525
525
  */
526
526
  interface CampaignOffer {
527
- /** Id da campanha, para {@link BonusApi.getOffer} e {@link BonusApi.optIn}. */
527
+ /** Campaign id, for {@link BonusApi.getOffer} and {@link BonusApi.optIn}. */
528
528
  campaignId: string;
529
- /** Versão publicada, exigida no {@link BonusApi.optIn}. */
529
+ /** Published version, required in {@link BonusApi.optIn}. */
530
530
  campaignVersionId: string;
531
- /** Id da publicação. */
531
+ /** Publication id. */
532
532
  publicationId: string;
533
- /** Produto onde vale. */
533
+ /** Product where it applies. */
534
534
  productScope: CampaignProductScope;
535
- /** Fuso horário das janelas. */
535
+ /** Time zone of the windows. */
536
536
  timezone: string;
537
- /** Quando é possível entrar. */
537
+ /** When it is possible to join. */
538
538
  enrollmentWindow?: CampaignTimeWindow;
539
- /** Quando é possível se qualificar. */
539
+ /** When it is possible to qualify. */
540
540
  qualificationWindow?: CampaignTimeWindow;
541
- /** Quando é possível resgatar (política `player_claim`). */
541
+ /** When it is possible to redeem (`player_claim` policy). */
542
542
  claimWindow?: CampaignTimeWindow;
543
- /** Como entrar: `automatic`, `opt_in`, `promo_code` ou `manual`. */
543
+ /** How to join: `automatic`, `opt_in`, `promo_code` or `manual`. */
544
544
  entryPolicy?: CampaignPolicy<CampaignEntryPolicyCode>;
545
- /** Como receber o prêmio: `automatic` ou `player_claim`. */
545
+ /** How to receive the reward: `automatic` or `player_claim`. */
546
546
  rewardClaimPolicy?: CampaignPolicy<CampaignRewardClaimPolicyCode>;
547
- /** O que é preciso para se qualificar. */
547
+ /** What is needed to qualify. */
548
548
  qualification?: CampaignQualification;
549
- /** Prêmio. */
549
+ /** Reward. */
550
550
  reward?: CampaignReward;
551
- /** Início da publicação, ISO 8601 (UTC). */
551
+ /** Publication start, ISO 8601 (UTC). */
552
552
  publicationStartsAt?: string;
553
- /** Fim da publicação, ISO 8601 (UTC). */
553
+ /** Publication end, ISO 8601 (UTC). */
554
554
  publicationEndsAt?: string;
555
- /** Textos (nome, descrição, termos) por idioma. */
555
+ /** Texts (name, description, terms) by language. */
556
556
  content?: CampaignContent;
557
557
  }
558
558
  /**
559
- * Situação da participação do jogador numa campanha: `enrolled` (entrou), `qualifying`
560
- * (cumprindo), `qualified` (cumpriu; com `player_claim`, já pode resgatar), `reward_pending`
561
- * (prêmio sendo concedido), `completed` (prêmio concedido), `reward_failed`, `expired` ou
562
- * `cancelled`. Pode chegar um valor novo que o SDK ainda não conhece: trate o caso padrão.
563
- * @category Bônus
559
+ * Status of the player's participation in a campaign: `enrolled` (joined), `qualifying`
560
+ * (in progress), `qualified` (done; with `player_claim`, can now redeem), `reward_pending`
561
+ * (reward being granted), `completed` (reward granted), `reward_failed`, `expired` or
562
+ * `cancelled`. A new value the SDK does not know yet may arrive: handle the default case.
563
+ * @category Bonus
564
564
  */
565
565
  type CampaignParticipationStatus = 'enrolled' | 'qualifying' | 'qualified' | 'reward_pending' | 'completed' | 'reward_failed' | 'expired' | 'cancelled' | 'unspecified' | (string & {});
566
566
  /**
567
- * Aceite dos termos registrado na participação.
568
- * @category Bônus
567
+ * Acceptance of the terms recorded in the participation.
568
+ * @category Bonus
569
569
  */
570
570
  interface CampaignTermsAcceptanceRecord {
571
- /** Idioma dos termos aceitos. */
571
+ /** Language of the accepted terms. */
572
572
  locale: string;
573
- /** Revisão aceita. */
573
+ /** Accepted revision. */
574
574
  termsRevision: string;
575
- /** SHA-256 (hex) do texto aceito. */
575
+ /** SHA-256 (hex) of the accepted text. */
576
576
  termsDigestSha256Hex: string;
577
- /** Data do aceite, ISO 8601 (UTC). */
577
+ /** Acceptance date, ISO 8601 (UTC). */
578
578
  acceptedAt?: string;
579
579
  }
580
580
  /**
581
- * Participação do jogador numa campanha, com o prêmio e os textos como estavam quando ele entrou.
582
- * @category Bônus
581
+ * The player's participation in a campaign, with the reward and the texts as they were when they joined.
582
+ * @category Bonus
583
583
  */
584
584
  interface CampaignParticipation {
585
- /** Id da participação, para {@link BonusApi.claim} e {@link BonusApi.getParticipation}. */
585
+ /** Participation id, for {@link BonusApi.claim} and {@link BonusApi.getParticipation}. */
586
586
  id: string;
587
- /** Id da campanha. */
587
+ /** Campaign id. */
588
588
  campaignId: string;
589
- /** Versão da campanha em que o jogador entrou. */
589
+ /** Campaign version the player joined. */
590
590
  campaignVersionId: string;
591
- /** Chave do prêmio. */
591
+ /** Reward key. */
592
592
  rewardKey: string;
593
- /** Qualificação exigida (cópia do momento da entrada). */
593
+ /** Required qualification (a copy from the time of joining). */
594
594
  qualificationSnapshot?: CampaignQualification;
595
- /** Situação. */
595
+ /** Status. */
596
596
  status: CampaignParticipationStatus;
597
- /** Quando se qualificou (`status: 'qualified'`). */
597
+ /** When it qualified (`status: 'qualified'`). */
598
598
  qualifiedAt?: string;
599
- /** Quando o prêmio foi concedido (`status: 'completed'`). */
599
+ /** When the reward was granted (`status: 'completed'`). */
600
600
  completedAt?: string;
601
- /** Quando expirou (`status: 'expired'`). */
601
+ /** When it expired (`status: 'expired'`). */
602
602
  expiredAt?: string;
603
- /** Prêmio, textos e aceite dos termos do momento da entrada. */
603
+ /** Reward, texts and terms acceptance as of the time of joining. */
604
604
  snapshot?: {
605
- /** Prêmio. */
605
+ /** Reward. */
606
606
  reward?: CampaignReward;
607
- /** Textos. */
607
+ /** Texts. */
608
608
  content?: CampaignContent;
609
- /** Aceite dos termos, se houve. */
609
+ /** Terms acceptance, if there was one. */
610
610
  termsAcceptance?: CampaignTermsAcceptanceRecord;
611
611
  };
612
612
  }
613
613
  /**
614
- * Aceite dos termos da campanha, mandado no opt-in ou no resgate do promo code.
615
- * @category Bônus
614
+ * Terms acceptance of the campaign, sent on opt-in or on promo code redemption.
615
+ * @category Bonus
616
616
  */
617
617
  interface CampaignTermsAcceptance {
618
- /** Idioma dos termos exibidos ({@link CampaignLocalizedContent.locale}). */
618
+ /** Language of the terms shown ({@link CampaignLocalizedContent.locale}). */
619
619
  locale: string;
620
- /** Revisão dos termos exibidos ({@link CampaignLocalizedContent.termsRevision}). */
620
+ /** Revision of the terms shown ({@link CampaignLocalizedContent.termsRevision}). */
621
621
  termsRevision: string;
622
622
  }
623
623
  /**
624
- * Entrada de {@link BonusApi.optIn}.
625
- * @category Bônus
624
+ * Input of {@link BonusApi.optIn}.
625
+ * @category Bonus
626
626
  */
627
627
  interface OptInInput {
628
- /** Id da campanha ({@link CampaignOffer.campaignId}). */
628
+ /** Campaign id ({@link CampaignOffer.campaignId}). */
629
629
  campaignId: string;
630
- /** Versão exibida ao jogador ({@link CampaignOffer.campaignVersionId}). */
630
+ /** Version shown to the player ({@link CampaignOffer.campaignVersionId}). */
631
631
  campaignVersionId: string;
632
- /** Aceite dos termos exibidos. */
632
+ /** Acceptance of the terms shown. */
633
633
  termsAcceptance?: CampaignTermsAcceptance;
634
634
  }
635
635
  /**
636
- * Oferta de um promo code, devolvida por {@link BonusApi.resolvePromoCode}.
637
- * @category Bônus
636
+ * Offer of a promo code, returned by {@link BonusApi.resolvePromoCode}.
637
+ * @category Bonus
638
638
  */
639
639
  interface PromoCodeOffer {
640
- /** A oferta. */
640
+ /** The offer. */
641
641
  offer: CampaignOffer;
642
- /** Os textos no idioma pedido. */
642
+ /** The texts in the requested language. */
643
643
  localizedContent: CampaignLocalizedContent;
644
644
  }
645
645
  /**
646
- * Campanhas de bônus e promo codes. Só `listPublicOffers` é público; os demais métodos exigem login.
647
- * @category Bônus
646
+ * Bonus campaigns and promo codes. Only `listPublicOffers` is public; the other methods require login.
647
+ * @category Bonus
648
648
  */
649
649
  interface BonusApi {
650
650
  /**
651
- * Catálogo público de ofertas (vitrine, sem login): só descreve as campanhas; elegibilidade,
652
- * entrada e participações exigem login. Paginado por cursor.
651
+ * Public catalog of offers (storefront, no login): it only describes the campaigns; eligibility,
652
+ * joining and participations require login. Cursor-paginated.
653
653
  * @example
654
654
  * const { items, nextCursor } = await igaming.bonus.listPublicOffers({ pageSize: 20 })
655
- * @throws {EnginexError} `INVALID_ARGUMENT` (400) para `pageSize` que não seja inteiro positivo;
656
- * `UNAUTHENTICATED` (401) se o gateway não resolver o operador pelo domínio.
655
+ * @throws {EnginexError} `INVALID_ARGUMENT` (400) for a `pageSize` that is not a positive integer;
656
+ * `UNAUTHENTICATED` (401) if the gateway does not resolve the operator by the domain.
657
657
  */
658
658
  listPublicOffers(input?: CursorPageInput, options?: CallOptions): Promise<CursorPage<CampaignOffer>>;
659
659
  /**
660
- * Ofertas disponíveis para o jogador logado. Paginado por cursor.
660
+ * Offers available to the logged-in player. Cursor-paginated.
661
661
  * @example
662
662
  * const { items } = await igaming.bonus.listOffers()
663
663
  * const optIns = items.filter((o) => o.entryPolicy?.code === 'opt_in')
664
- * @throws {EnginexError} `INVALID_ARGUMENT` (400) para `pageSize` inválido; `UNAUTHENTICATED` sem sessão.
664
+ * @throws {EnginexError} `INVALID_ARGUMENT` (400) for an invalid `pageSize`; `UNAUTHENTICATED` without a session.
665
665
  */
666
666
  listOffers(input?: CursorPageInput, options?: CallOptions): Promise<CursorPage<CampaignOffer>>;
667
667
  /**
668
- * Uma oferta disponível para o jogador.
668
+ * An offer available to the player.
669
669
  * @example
670
670
  * const offer = await igaming.bonus.getOffer({ campaignId })
671
- * @throws {EnginexError} `BONUS_NOT_FOUND` (404) se a campanha não existir ou não estiver
672
- * disponível; `INVALID_ARGUMENT` (400) se `campaignId` não for um UUID; `UNAUTHENTICATED` sem sessão.
671
+ * @throws {EnginexError} `BONUS_NOT_FOUND` (404) if the campaign does not exist or is not
672
+ * available; `INVALID_ARGUMENT` (400) if `campaignId` is not a UUID; `UNAUTHENTICATED` without a session.
673
673
  */
674
674
  getOffer(input: {
675
675
  campaignId: string;
676
676
  }, options?: CallOptions): Promise<CampaignOffer>;
677
677
  /**
678
- * Entra numa campanha de entrada `opt_in`. **Idempotente**: manda `Idempotency-Key` — gerada a
679
- * cada chamada, ou a de `options.idempotencyKey` — e a mantém no retry após renovar a sessão; para
680
- * repetir depois de `NETWORK_ERROR`/`TIMEOUT` sem entrar duas vezes, gere a chave antes e passe a
681
- * mesma nas duas tentativas. A resposta é validada sempre em modo estrito.
678
+ * Joins an `opt_in` campaign. **Idempotent**: it sends `Idempotency-Key` — generated on
679
+ * every call, or the one in `options.idempotencyKey` — and keeps it on the retry after renewing the session; to
680
+ * repeat after `NETWORK_ERROR`/`TIMEOUT` without joining twice, generate the key beforehand and pass the
681
+ * same one on both attempts. The response is always validated in strict mode.
682
682
  * @example
683
683
  * const participation = await igaming.bonus.optIn(
684
684
  * { campaignId: offer.campaignId, campaignVersionId: offer.campaignVersionId, termsAcceptance: { locale: 'pt-BR', termsRevision: text.termsRevision } },
685
685
  * { idempotencyKey: key },
686
686
  * )
687
- * @throws {EnginexError} `BONUS_NOT_ELIGIBLE` se o jogador não pode entrar; `BONUS_EXPIRED` fora
688
- * da janela de entrada (o gateway ainda devolve estes dois com HTTP 500: identifique pelo código);
689
- * `BONUS_NOT_FOUND` (404); `ALREADY_EXISTS`/`BONUS_ALREADY_CLAIMED` (409) se o jogador já
690
- * participa; `KYC_REQUIRED`/`FAILED_PRECONDITION` (422) por pré-condição (ex.: KYC, termos);
691
- * `INVALID_ARGUMENT` (400) para ids que não são UUID ou chave de idempotência malformada;
692
- * `KEY_IN_USE` (409) com a mesma chave ainda em processamento; `PAYLOAD_MISMATCH` (422) se a chave
693
- * já foi usada com outro corpo; `VALIDATION_ERROR` se a resposta vier fora do formato (a entrada
694
- * pode ter acontecido: consulte `listParticipations`); `UNAUTHENTICATED` sem sessão.
687
+ * @throws {EnginexError} `BONUS_NOT_ELIGIBLE` if the player cannot join; `BONUS_EXPIRED` outside
688
+ * the entry window (the gateway still returns these two with HTTP 500: identify by the code);
689
+ * `BONUS_NOT_FOUND` (404); `ALREADY_EXISTS`/`BONUS_ALREADY_CLAIMED` (409) if the player already
690
+ * participates; `KYC_REQUIRED`/`FAILED_PRECONDITION` (422) for a precondition (e.g. KYC, terms);
691
+ * `INVALID_ARGUMENT` (400) for ids that are not UUIDs or a malformed idempotency key;
692
+ * `KEY_IN_USE` (409) with the same key still being processed; `PAYLOAD_MISMATCH` (422) if the key
693
+ * was already used with another body; `VALIDATION_ERROR` if the response comes outside the format (the entry
694
+ * may have happened: check `listParticipations`); `UNAUTHENTICATED` without a session.
695
695
  */
696
696
  optIn(input: OptInInput, options?: CallOptions): Promise<CampaignParticipation>;
697
697
  /**
698
- * Resgata o prêmio de uma participação qualificada (campanhas com `player_claim`).
699
- * **Idempotente**, como {@link BonusApi.optIn}: repita com a mesma `idempotencyKey` para não
700
- * resgatar duas vezes. A resposta é validada sempre em modo estrito.
698
+ * Redeems the reward of a qualified participation (campaigns with `player_claim`).
699
+ * **Idempotent**, like {@link BonusApi.optIn}: repeat with the same `idempotencyKey` so as not to
700
+ * redeem twice. The response is always validated in strict mode.
701
701
  * @example
702
702
  * const done = await igaming.bonus.claim({ participationId: participation.id }, { idempotencyKey: key })
703
- * @throws {EnginexError} `BONUS_ALREADY_CLAIMED` (409) se o prêmio já foi resgatado;
704
- * `BONUS_EXPIRED` fora da janela de resgate e `BONUS_NOT_ELIGIBLE` se ainda não qualificou (HTTP
705
- * 500 no gateway: identifique pelo código); `FAILED_PRECONDITION`/`KYC_REQUIRED` (422);
706
- * `BONUS_NOT_FOUND` (404); `INVALID_ARGUMENT` (400) para id que não é UUID; `KEY_IN_USE` (409);
707
- * `PAYLOAD_MISMATCH` (422); `VALIDATION_ERROR` se a resposta vier fora do formato (o resgate pode
708
- * ter acontecido: consulte `getParticipation`); `UNAUTHENTICATED` sem sessão.
703
+ * @throws {EnginexError} `BONUS_ALREADY_CLAIMED` (409) if the reward was already redeemed;
704
+ * `BONUS_EXPIRED` outside the redemption window and `BONUS_NOT_ELIGIBLE` if it has not qualified yet (HTTP
705
+ * 500 on the gateway: identify by the code); `FAILED_PRECONDITION`/`KYC_REQUIRED` (422);
706
+ * `BONUS_NOT_FOUND` (404); `INVALID_ARGUMENT` (400) for an id that is not a UUID; `KEY_IN_USE` (409);
707
+ * `PAYLOAD_MISMATCH` (422); `VALIDATION_ERROR` if the response comes outside the format (the redemption may
708
+ * have happened: check `getParticipation`); `UNAUTHENTICATED` without a session.
709
709
  */
710
710
  claim(input: {
711
711
  participationId: string;
712
712
  }, options?: CallOptions): Promise<CampaignParticipation>;
713
713
  /**
714
- * Mostra a oferta de um promo code antes do resgate (nome, descrição e termos no idioma pedido).
715
- * Não entra na campanha. O código é um segredo: vai só no corpo, nunca na URL nem nos hooks.
714
+ * Shows the offer of a promo code before redemption (name, description and terms in the requested language).
715
+ * It does not join the campaign. The code is a secret: it goes only in the body, never in the URL or the hooks.
716
716
  * @example
717
717
  * const { offer, localizedContent } = await igaming.bonus.resolvePromoCode({ code: input.value, locale: 'pt-BR' })
718
- * @throws {EnginexError} `BONUS_NOT_FOUND` (404) para código inexistente ou inativo;
719
- * `BONUS_EXPIRED`/`BONUS_NOT_ELIGIBLE` (HTTP 500 no gateway: identifique pelo código);
720
- * `RESOURCE_EXHAUSTED` (429) pelo limite de tentativas (veja `e.retryAfter`); `UNAVAILABLE` (503)
721
- * se o limitador do gateway estiver fora (a rota fecha por segurança); `UNAUTHENTICATED` sem sessão.
718
+ * @throws {EnginexError} `BONUS_NOT_FOUND` (404) for a nonexistent or inactive code;
719
+ * `BONUS_EXPIRED`/`BONUS_NOT_ELIGIBLE` (HTTP 500 on the gateway: identify by the code);
720
+ * `RESOURCE_EXHAUSTED` (429) due to the attempt limit (see `e.retryAfter`); `UNAVAILABLE` (503)
721
+ * if the gateway's limiter is down (the route fails closed for safety); `UNAUTHENTICATED` without a session.
722
722
  */
723
723
  resolvePromoCode(input: {
724
724
  code: string;
725
725
  locale: string;
726
726
  }, options?: CallOptions): Promise<PromoCodeOffer>;
727
727
  /**
728
- * Resgata um promo code: entra na campanha do código. **Idempotente** (o gateway exige a chave):
729
- * repita com a mesma `idempotencyKey` para não resgatar duas vezes. A resposta é validada sempre
730
- * em modo estrito. O código vai só no corpo.
728
+ * Redeems a promo code: joins the code's campaign. **Idempotent** (the gateway requires the key):
729
+ * repeat with the same `idempotencyKey` so as not to redeem twice. The response is always validated
730
+ * in strict mode. The code goes only in the body.
731
731
  * @example
732
732
  * const participation = await igaming.bonus.redeemPromoCode(
733
733
  * { code: 'BEMVINDO', termsAcceptance: { locale: 'pt-BR', termsRevision: localizedContent.termsRevision } },
734
734
  * { idempotencyKey: key },
735
735
  * )
736
- * @throws {EnginexError} `BONUS_NOT_FOUND` (404) para código inexistente;
737
- * `BONUS_ALREADY_CLAIMED` (409) se o jogador já usou o código; `BONUS_EXPIRED`/`BONUS_NOT_ELIGIBLE`
738
- * (HTTP 500 no gateway: identifique pelo código); `KYC_REQUIRED`/`FAILED_PRECONDITION` (422);
739
- * `RESOURCE_EXHAUSTED` (429) pelo limite de tentativas de promo code por jogador, o mesmo de
740
- * `resolvePromoCode` (veja `e.retryAfter`); `UNAVAILABLE` (503) se o limitador do gateway estiver
741
- * fora (a rota fecha por segurança); `INVALID_ARGUMENT` (400) para chave de idempotência
742
- * malformada; `VALIDATION_ERROR` se a resposta vier fora do formato (o resgate pode ter acontecido:
743
- * consulte `listParticipations`); `UNAUTHENTICATED` sem sessão.
736
+ * @throws {EnginexError} `BONUS_NOT_FOUND` (404) for a nonexistent code;
737
+ * `BONUS_ALREADY_CLAIMED` (409) if the player already used the code; `BONUS_EXPIRED`/`BONUS_NOT_ELIGIBLE`
738
+ * (HTTP 500 on the gateway: identify by the code); `KYC_REQUIRED`/`FAILED_PRECONDITION` (422);
739
+ * `RESOURCE_EXHAUSTED` (429) due to the per-player promo code attempt limit, the same as
740
+ * `resolvePromoCode` (see `e.retryAfter`); `UNAVAILABLE` (503) if the gateway's limiter is
741
+ * down (the route fails closed for safety); `INVALID_ARGUMENT` (400) for a malformed idempotency
742
+ * key; `VALIDATION_ERROR` if the response comes outside the format (the redemption may have happened:
743
+ * check `listParticipations`); `UNAUTHENTICATED` without a session.
744
744
  */
745
745
  redeemPromoCode(input: {
746
746
  code: string;
747
747
  termsAcceptance?: CampaignTermsAcceptance;
748
748
  }, options?: CallOptions): Promise<CampaignParticipation>;
749
749
  /**
750
- * Participações do jogador. Paginado por cursor.
750
+ * The player's participations. Cursor-paginated.
751
751
  * @example
752
752
  * const { items } = await igaming.bonus.listParticipations()
753
753
  * const claimable = items.filter((p) => p.status === 'qualified')
754
- * @throws {EnginexError} `INVALID_ARGUMENT` (400) para `pageSize` inválido; `UNAUTHENTICATED` sem sessão.
754
+ * @throws {EnginexError} `INVALID_ARGUMENT` (400) for an invalid `pageSize`; `UNAUTHENTICATED` without a session.
755
755
  */
756
756
  listParticipations(input?: CursorPageInput, options?: CallOptions): Promise<CursorPage<CampaignParticipation>>;
757
757
  /**
758
- * Uma participação do jogador.
758
+ * One of the player's participations.
759
759
  * @example
760
760
  * const p = await igaming.bonus.getParticipation({ participationId })
761
- * @throws {EnginexError} `BONUS_NOT_FOUND` (404) se não existir (ou for de outro jogador);
762
- * `INVALID_ARGUMENT` (400) se o id não for um UUID; `UNAUTHENTICATED` sem sessão.
761
+ * @throws {EnginexError} `BONUS_NOT_FOUND` (404) if it does not exist (or belongs to another player);
762
+ * `INVALID_ARGUMENT` (400) if the id is not a UUID; `UNAUTHENTICATED` without a session.
763
763
  */
764
764
  getParticipation(input: {
765
765
  participationId: string;
@@ -767,788 +767,822 @@ interface BonusApi {
767
767
  }
768
768
 
769
769
  /**
770
- * Jogo do catálogo do cassino (`GET /games`, `GET /games/{id}`).
771
- * @category Cassino
770
+ * Casino catalog game (`GET /games`, `GET /games/{id}`).
771
+ * @category Casino
772
772
  */
773
773
  interface Game {
774
- /** Id do jogo, para {@link CasinoApi.getGame} e {@link CasinoApi.launchGame}. */
774
+ /** Game id, for {@link CasinoApi.getGame} and {@link CasinoApi.launchGame}. */
775
775
  id: string;
776
- /** Nome de exibição. */
776
+ /** Display name. */
777
777
  name: string;
778
778
  /**
779
- * Id do provedor (o mesmo de {@link GameProvider.id}). Trate como identificador opaco: conforme o
780
- * agregador, pode ser um código ou o próprio nome (ex.: `Pragmatic Play`).
779
+ * Provider id (the same as {@link GameProvider.id}). Treat it as an opaque identifier: depending on the
780
+ * aggregator, it may be a code or the name itself (e.g. `Pragmatic Play`).
781
781
  */
782
782
  provider: string;
783
- /** Slug da categoria (o mesmo de {@link GameCategory.slug}), ex.: `slots`. */
783
+ /** Category slug (the same as {@link GameCategory.slug}), e.g. `slots`. */
784
784
  category: string;
785
- /** Tipo do jogo, como o provedor informa (ex.: `slot`, `blackjack`, `roulette`); pode vir vazio. */
785
+ /** Game type, as the provider reports it (e.g. `slot`, `blackjack`, `roulette`); may come empty. */
786
786
  type: string;
787
- /** URL da imagem de capa; pode vir vazia. */
787
+ /** Cover image URL; may come empty. */
788
788
  thumbnail: string;
789
- /** Marcado como novidade no catálogo. */
789
+ /** Marked as new in the catalog. */
790
790
  isNew: boolean;
791
- /** Marcado como popular no catálogo. */
791
+ /** Marked as popular in the catalog. */
792
792
  isPopular: boolean;
793
- /** Jogo ao vivo (live casino). */
793
+ /** Live game (live casino). */
794
794
  isLive: boolean;
795
- /** Aceita o modo demonstração (`launchGame({ mode: 'demo' })`). */
795
+ /** Supports demo mode (`launchGame({ mode: 'demo' })`). */
796
796
  demoAvailable: boolean;
797
- /** Retorno ao jogador informado pelo provedor, em porcentagem (ex.: `96.5`); `0` quando não informado. */
797
+ /** Return to player reported by the provider, as a percentage (e.g. `96.5`); `0` when not reported. */
798
798
  rtp: number;
799
- /** Volatilidade informada pelo provedor (ex.: `low`, `medium`, `high`); pode vir vazia. */
799
+ /** Volatility reported by the provider (e.g. `low`, `medium`, `high`); may come empty. */
800
800
  volatility: string;
801
- /** Prioridade de ordenação definida pelo operador (menor primeiro). */
801
+ /** Sort priority set by the operator (lowest first). */
802
802
  priority: number;
803
803
  }
804
804
  /**
805
- * Ordenação de {@link CasinoApi.listGames}: `popular` (mais jogados), `new` (novidades) ou `az`
806
- * (alfabética). Omitida: a ordem padrão do operador.
807
- * @category Cassino
805
+ * Ordering of {@link CasinoApi.listGames}: `popular` (most played), `new` (newest) or `az`
806
+ * (alphabetical). Omitted: the operator's default order.
807
+ * @category Casino
808
808
  */
809
809
  type GameSort = 'popular' | 'new' | 'az';
810
810
  /**
811
- * Filtros e paginação de {@link CasinoApi.listGames}.
812
- * @category Cassino
811
+ * Filters and pagination of {@link CasinoApi.listGames}.
812
+ * @category Casino
813
813
  */
814
814
  interface ListGamesInput {
815
- /** Slug de uma categoria de {@link CasinoApi.listCategories}. Um slug desconhecido não traz nenhum jogo. */
815
+ /** Slug of a category from {@link CasinoApi.listCategories}. An unknown slug brings no games. */
816
816
  category?: string;
817
- /** Id de um provedor de {@link CasinoApi.listProviders}. */
817
+ /** Id of a provider from {@link CasinoApi.listProviders}. */
818
818
  provider?: string;
819
- /** Busca pelo nome do jogo, até 100 caracteres (acima disso, `INVALID_ARGUMENT`). */
819
+ /** Search by game name, up to 100 characters (above that, `INVALID_ARGUMENT`). */
820
820
  search?: string;
821
821
  /**
822
- * Restringe a listagem a estes jogos (ex.: validar favoritos ou recentes salvos no app), até 100
823
- * ids. Jogos inativos ou fora do catálogo do operador simplesmente não voltam.
822
+ * Restricts the listing to these games (e.g. to validate favorites or recents saved in the app), up to 100
823
+ * ids. Inactive games or ones outside the operator's catalog simply do not come back.
824
824
  */
825
825
  ids?: string[];
826
- /** Ordenação. Valor desconhecido é ignorado pelo gateway. */
826
+ /** Ordering. An unknown value is ignored by the gateway. */
827
827
  sort?: GameSort;
828
- /** Página (começa em 1). Padrão do gateway: 1. */
828
+ /** Page (starts at 1). Gateway default: 1. */
829
829
  page?: number;
830
- /** Itens por página, de 1 a 100. Padrão do gateway: 20 (fora da faixa também vira 20). */
830
+ /** Items per page, from 1 to 100. Gateway default: 20 (out of range also becomes 20). */
831
831
  perPage?: number;
832
832
  }
833
833
  /**
834
- * Categoria do catálogo com jogos ativos (`GET /games/categories`).
835
- * @category Cassino
834
+ * Catalog category with active games (`GET /games/categories`).
835
+ * @category Casino
836
836
  */
837
837
  interface GameCategory {
838
- /** Slug, para o filtro `category` de {@link CasinoApi.listGames}. */
838
+ /** Slug, for the `category` filter of {@link CasinoApi.listGames}. */
839
839
  slug: string;
840
- /** Nome de exibição. */
840
+ /** Display name. */
841
841
  name: string;
842
- /** Ícone definido pelo operador (nome ou URL, conforme o cadastro); pode vir vazio. */
842
+ /** Icon set by the operator (name or URL, depending on the setup); may come empty. */
843
843
  icon: string;
844
- /** Quantidade de jogos ativos na categoria. */
844
+ /** Number of active games in the category. */
845
845
  gameCount: number;
846
- /** Prioridade de ordenação definida pelo operador (menor primeiro). */
846
+ /** Sort priority set by the operator (lowest first). */
847
847
  priority: number;
848
848
  }
849
849
  /**
850
- * Provedor de jogos com jogos ativos (`GET /games/providers`).
851
- * @category Cassino
850
+ * Game provider with active games (`GET /games/providers`).
851
+ * @category Casino
852
852
  */
853
853
  interface GameProvider {
854
854
  /**
855
- * Id, para o filtro `provider` de {@link CasinoApi.listGames}. Identificador opaco: pode ser um
856
- * código ou o próprio nome (ex.: `Pragmatic Play`); passe-o como veio.
855
+ * Id, for the `provider` filter of {@link CasinoApi.listGames}. Opaque identifier: it may be a
856
+ * code or the name itself (e.g. `Pragmatic Play`); pass it as it came.
857
857
  */
858
858
  id: string;
859
- /** Nome de exibição. */
859
+ /** Display name. */
860
860
  name: string;
861
- /** Quantidade de jogos. */
861
+ /** Number of games. */
862
862
  gameCount: number;
863
863
  }
864
864
  /**
865
- * Entrada de {@link CasinoApi.launchGame}.
866
- * @category Cassino
865
+ * Input of {@link CasinoApi.launchGame}.
866
+ * @category Casino
867
867
  */
868
868
  interface LaunchGameInput {
869
- /** Id do jogo ({@link Game.id}). */
869
+ /** Game id ({@link Game.id}). */
870
870
  gameId: string;
871
- /** `real` (padrão) aposta com o saldo do jogador; `demo` abre o modo demonstração, se o jogo aceitar ({@link Game.demoAvailable}). */
871
+ /** `real` (default) bets with the player's balance; `demo` opens demo mode, if the game supports it ({@link Game.demoAvailable}). */
872
872
  mode?: 'real' | 'demo';
873
- /** Abre a versão mobile do jogo, quando o provedor tiver. Padrão: `false`. */
873
+ /** Opens the mobile version of the game, when the provider has one. Default: `false`. */
874
874
  isMobile?: boolean;
875
875
  /**
876
- * URL absoluta (http/https) para onde o jogo volta ao sair (o lobby do app). Omitida, o gateway
877
- * usa o `Origin` (ou `Referer`) do request — o browser sempre manda; em chamadas de servidor
878
- * (SSR/Node) passe-a explicitamente.
876
+ * Absolute URL (http/https) the game returns to on exit (the app's lobby). When omitted, the gateway
877
+ * uses the request's `Origin` (or `Referer`) — the browser always sends it; on server calls
878
+ * (SSR/Node) pass it explicitly.
879
879
  */
880
880
  returnUrl?: string;
881
881
  /**
882
- * Idioma do jogo (ex.: `pt-BR`). Omitido, o gateway usa o `Accept-Language` do request, que o SDK
883
- * preenche com o `locale` do cliente (veja `enginex.setLocale`).
882
+ * Game language (e.g. `pt-BR`). When omitted, the gateway uses the request's `Accept-Language`, which the SDK
883
+ * fills in with the client's `locale` (see `enginex.setLocale`).
884
884
  */
885
885
  language?: string;
886
886
  }
887
887
  /**
888
- * Jogo aberto por {@link CasinoApi.launchGame}.
888
+ * How the provider requires the game to be opened ({@link GameLaunch.launchTarget}): `iframe` (embedded in
889
+ * the app's page), `redirect` (navigate the current tab to the game) or `new_tab` (open it in a new
890
+ * tab or window). A new value the SDK does not know yet may arrive: handle the default case (e.g. as
891
+ * `new_tab`, which works for any provider).
892
+ * @category Casino
893
+ */
894
+ type LaunchTarget = 'iframe' | 'redirect' | 'new_tab' | (string & {});
895
+ /**
896
+ * Game opened by {@link CasinoApi.launchGame}.
889
897
  *
890
- * **Sensível:** `gameUrl` carrega o token da sessão de jogo do jogador. Use-a só para abrir o jogo
891
- * (iframe ou nova aba) e nunca a registre em logs, analytics, rastreamento de erros nem a guarde.
892
- * @category Cassino
898
+ * **Sensitive:** `gameUrl` carries the player's game session token. Use it only to open the game
899
+ * (as {@link GameLaunch.launchTarget} says) and never log it to logs, analytics, error tracking, nor store it.
900
+ * @category Casino
893
901
  */
894
902
  interface GameLaunch {
895
- /** Id da sessão de jogo (a mesma de {@link GameSession.id}). */
903
+ /** Game session id (the same as {@link GameSession.id}). */
896
904
  sessionId: string;
897
905
  /**
898
- * URL do jogo, com o token da sessão de jogo — não registre em logs. Pode ser absoluta ou relativa
899
- * ao gateway, conforme o provedor; nunca vem vazia (resposta sem URL é `VALIDATION_ERROR`).
906
+ * Game URL, with the game session token — do not log it. It may be absolute or relative
907
+ * to the gateway, depending on the provider; it is never empty (a response without a URL is `VALIDATION_ERROR`).
900
908
  */
901
909
  gameUrl: string;
910
+ /**
911
+ * How to open `gameUrl`: some providers refuse to run inside an iframe and need `redirect` or `new_tab`.
912
+ * A response without it (an older gateway, or a custom mock) arrives as `iframe`, what the SDK documented
913
+ * before the gateway sent this field.
914
+ */
915
+ launchTarget: LaunchTarget;
916
+ /** Code of the game's provider (e.g. `pragmatic-play`), as the gateway sends it; absent when it does not. */
917
+ providerCode?: string;
918
+ /** Expiry of the game URL, ISO 8601 (UTC), when the provider reports one: open the game before it. */
919
+ expiresAt?: string;
902
920
  }
903
921
  /**
904
- * Situação de uma sessão de jogo, sem o prefixo `SESSION_STATUS_` do gateway e em minúsculas. Pode
905
- * chegar um valor novo que o SDK ainda não conhece: trate o caso padrão.
906
- * @category Cassino
922
+ * Status of a game session, without the gateway's `SESSION_STATUS_` prefix and in lowercase. A new
923
+ * value the SDK does not know yet may arrive: handle the default case.
924
+ * @category Casino
907
925
  */
908
926
  type GameSessionStatus = 'active' | 'ended' | 'unspecified' | (string & {});
909
927
  /**
910
- * Sessão de jogo do jogador (`GET /games/sessions`). Abrir um jogo encerra a sessão ativa anterior.
911
- * @category Cassino
928
+ * The player's game session (`GET /games/sessions`). Opening a game ends the previous active session.
929
+ * @category Casino
912
930
  */
913
931
  interface GameSession {
914
- /** Id da sessão. */
932
+ /** Session id. */
915
933
  id: string;
916
- /** Id do jogo. */
934
+ /** Game id. */
917
935
  gameId: string;
918
- /** Nome do jogo. */
936
+ /** Game name. */
919
937
  gameName: string;
920
- /** Id do provedor. */
938
+ /** Provider id. */
921
939
  provider: string;
922
- /** Início da sessão, ISO 8601 (UTC). */
940
+ /** Session start, ISO 8601 (UTC). */
923
941
  startTime: string;
924
- /** Total apostado na sessão, em unidades menores da moeda do operador. */
942
+ /** Total wagered in the session, in minor units of the operator's currency. */
925
943
  totalBet: number;
926
- /** Total ganho na sessão, em unidades menores da moeda do operador. */
944
+ /** Total won in the session, in minor units of the operator's currency. */
927
945
  totalWin: number;
928
- /** Situação, ex.: `active`. */
946
+ /** Status, e.g. `active`. */
929
947
  status: GameSessionStatus;
930
948
  }
931
949
  /**
932
- * Tipo de uma movimentação de cassino (em minúsculas, sem o prefixo `CASINO_TRANSACTION_TYPE_`).
933
- * `reversal` estorna um prêmio já creditado (debita o jogador); `refund` devolve uma aposta. Pode
934
- * chegar um valor novo que o SDK ainda não conhece: trate o caso padrão.
935
- * @category Cassino
950
+ * Type of a casino movement (lowercase, without the `CASINO_TRANSACTION_TYPE_` prefix).
951
+ * `reversal` reverses an already credited prize (debits the player); `refund` returns a bet. A new
952
+ * value the SDK does not know yet may arrive: handle the default case.
953
+ * @category Casino
936
954
  */
937
955
  type CasinoTransactionType = 'bet' | 'win' | 'refund' | 'jackpot' | 'free_spin' | 'reversal' | 'unspecified' | (string & {});
938
956
  /**
939
- * Movimentação de uma rodada de cassino (`GET /games/history`).
940
- * @category Cassino
957
+ * Movement of a casino round (`GET /games/history`).
958
+ * @category Casino
941
959
  */
942
960
  interface CasinoTransaction {
943
- /** Id da movimentação. */
961
+ /** Movement id. */
944
962
  id: string;
945
- /** Id do jogo. */
963
+ /** Game id. */
946
964
  gameId: string;
947
- /** Nome do jogo. */
965
+ /** Game name. */
948
966
  gameName: string;
949
- /** Id da rodada (aposta e prêmio da mesma rodada têm o mesmo). */
967
+ /** Round id (the bet and the prize of the same round share it). */
950
968
  roundId: string;
951
- /** Tipo, ex.: `bet`, `win`. */
969
+ /** Type, e.g. `bet`, `win`. */
952
970
  type: CasinoTransactionType;
953
- /** Valor em unidades menores de `currency` (o gateway envia em texto; o SDK converte). */
971
+ /** Value in minor units of `currency` (the gateway sends it as text; the SDK converts). */
954
972
  amount: number;
955
- /** Código da moeda, ex.: `BRL`. */
973
+ /** Currency code, e.g. `BRL`. */
956
974
  currency: string;
957
- /** Casas decimais da moeda (ex.: `2` no BRL), para formatar `amount`. */
975
+ /** Decimal places of the currency (e.g. `2` for BRL), to format `amount`. */
958
976
  currencyDecimalPlaces: number;
959
- /** Data da movimentação, ISO 8601 (UTC). */
977
+ /** Movement date, ISO 8601 (UTC). */
960
978
  createdAt: string;
961
979
  }
962
980
  /**
963
- * Paginação de {@link CasinoApi.listSessions} e {@link CasinoApi.getHistory}.
964
- * @category Cassino
981
+ * Pagination of {@link CasinoApi.listSessions} and {@link CasinoApi.getHistory}.
982
+ * @category Casino
965
983
  */
966
984
  interface CasinoPageInput {
967
- /** Página (começa em 1). Padrão do gateway: 1. */
985
+ /** Page (starts at 1). Gateway default: 1. */
968
986
  page?: number;
969
- /** Itens por página, de 1 a 100. Padrão do gateway: 20 (fora da faixa também vira 20). */
987
+ /** Items per page, from 1 to 100. Gateway default: 20 (out of range also becomes 20). */
970
988
  perPage?: number;
971
989
  }
972
990
  /**
973
- * Filtros de {@link CasinoApi.getBiggestWinners}.
974
- * @category Cassino
991
+ * Filters of {@link CasinoApi.getBiggestWinners}.
992
+ * @category Casino
975
993
  */
976
994
  interface GetBiggestWinnersInput {
977
- /** Quantos ganhadores (o serviço de cassino limita; padrão dele: 10). */
995
+ /** How many winners (the casino service caps it; its default: 10). */
978
996
  limit?: number;
979
- /** Janela em dias até agora. Omitida: o padrão do serviço de cassino. */
997
+ /** Window in days up to now. Omitted: the casino service's default. */
980
998
  days?: number;
981
999
  }
982
1000
  /**
983
- * Maior prêmio de uma rodada, para o ranking da home do cassino (`GET /games/biggest-winners`).
984
- * @category Cassino
1001
+ * Biggest prize of a round, for the casino home ranking (`GET /games/biggest-winners`).
1002
+ * @category Casino
985
1003
  */
986
1004
  interface BiggestWinner {
987
- /** Nome do jogador já mascarado pelo gateway (ex.: `Jo***`); o id do jogador nunca vem. */
1005
+ /** Player name already masked by the gateway (e.g. `Jo***`); the player id never comes. */
988
1006
  player: string;
989
- /** Prêmio em unidades menores de `currency`. */
1007
+ /** Prize in minor units of `currency`. */
990
1008
  amount: number;
991
- /** Código da moeda, ex.: `BRL`. */
1009
+ /** Currency code, e.g. `BRL`. */
992
1010
  currency: string;
993
- /** Casas decimais da moeda, para formatar `amount`. */
1011
+ /** Decimal places of the currency, to format `amount`. */
994
1012
  currencyDecimalPlaces: number;
995
- /** Id do jogo. */
1013
+ /** Game id. */
996
1014
  gameId: string;
997
- /** Nome do jogo. */
1015
+ /** Game name. */
998
1016
  gameName: string;
999
- /** Data do prêmio, ISO 8601 (UTC). */
1017
+ /** Prize date, ISO 8601 (UTC). */
1000
1018
  wonAt: string;
1001
1019
  }
1002
1020
  /**
1003
- * Catálogo, abertura de jogos e histórico do cassino. O catálogo (`listGames`, `listCategories`,
1004
- * `listProviders`, `getGame`) é público; os demais métodos exigem login.
1005
- * @category Cassino
1021
+ * Catalog, game launch and casino history. The catalog (`listGames`, `listCategories`,
1022
+ * `listProviders`, `getGame`) is public; the other methods require login.
1023
+ * @category Casino
1006
1024
  */
1007
1025
  interface CasinoApi {
1008
1026
  /**
1009
- * Jogos do catálogo do operador, paginados e filtráveis. Público: não manda a sessão, mesmo com
1010
- * login (o catálogo não depende do jogador).
1027
+ * Games of the operator's catalog, paginated and filterable. Public: it does not send the session, even with
1028
+ * login (the catalog does not depend on the player).
1011
1029
  *
1012
- * Manutenção, troca de provedor, indisponibilidade temporária ou operador sem cassino **não**
1013
- * viram erro: o gateway responde 200 e informa o motivo num campo `availability` ao lado da lista,
1014
- * que esta versão do SDK ainda não expõe. Nesses casos a lista pode vir vazia, sem erro; mostre
1015
- * um estado vazio genérico.
1030
+ * Maintenance, a provider switch, temporary unavailability or an operator without a casino do **not**
1031
+ * become errors: the gateway answers 200 and reports the reason in an `availability` field next to the list,
1032
+ * which this SDK version does not expose yet. In those cases the list may come empty, without an error; show
1033
+ * a generic empty state.
1016
1034
  * @example
1017
1035
  * const page = await igaming.casino.listGames({ category: 'slots', sort: 'popular', perPage: 24 })
1018
1036
  * page.items.forEach((game) => renderCard(game.name, game.thumbnail))
1019
- * @throws {EnginexError} `INVALID_ARGUMENT` (400) para `search` acima de 100 caracteres ou mais de
1020
- * 100 `ids`; `UNAVAILABLE`/`PROVIDER_ERROR` (503) só quando a própria chamada ao serviço de
1021
- * cassino falha.
1037
+ * @throws {EnginexError} `INVALID_ARGUMENT` (400) for `search` above 100 characters or more than
1038
+ * 100 `ids`; `UNAVAILABLE`/`PROVIDER_ERROR` (503) only when the call to the casino
1039
+ * service itself fails.
1022
1040
  */
1023
1041
  listGames(input?: ListGamesInput, options?: CallOptions): Promise<Page<Game>>;
1024
1042
  /**
1025
- * Categorias com jogos ativos, para montar abas/filtros do lobby. Público.
1043
+ * Categories with active games, to build lobby tabs/filters. Public.
1026
1044
  * @example
1027
1045
  * const categories = await igaming.casino.listCategories()
1028
1046
  * categories.sort((a, b) => a.priority - b.priority)
1029
- * @throws {EnginexError} `UNAVAILABLE`/`PROVIDER_ERROR` (503) quando a chamada ao serviço de
1030
- * cassino falha.
1047
+ * @throws {EnginexError} `UNAVAILABLE`/`PROVIDER_ERROR` (503) when the call to the casino
1048
+ * service fails.
1031
1049
  */
1032
1050
  listCategories(params?: NoParams, options?: CallOptions): Promise<GameCategory[]>;
1033
1051
  /**
1034
- * Provedores com jogos ativos. Público.
1052
+ * Providers with active games. Public.
1035
1053
  * @example
1036
1054
  * const providers = await igaming.casino.listProviders()
1037
- * @throws {EnginexError} `UNAVAILABLE`/`PROVIDER_ERROR` (503) quando a chamada ao serviço de
1038
- * cassino falha.
1055
+ * @throws {EnginexError} `UNAVAILABLE`/`PROVIDER_ERROR` (503) when the call to the casino
1056
+ * service fails.
1039
1057
  */
1040
1058
  listProviders(params?: NoParams, options?: CallOptions): Promise<GameProvider[]>;
1041
1059
  /**
1042
- * Um jogo do catálogo. Público.
1060
+ * A catalog game. Public.
1043
1061
  * @example
1044
1062
  * const game = await igaming.casino.getGame({ gameId: 'g-1' })
1045
- * @throws {EnginexError} `GAME_NOT_FOUND` (404) se o id não existir no catálogo do operador.
1063
+ * @throws {EnginexError} `GAME_NOT_FOUND` (404) if the id does not exist in the operator's catalog.
1046
1064
  */
1047
1065
  getGame(input: {
1048
1066
  gameId: string;
1049
1067
  }, options?: CallOptions): Promise<Game>;
1050
1068
  /**
1051
- * Abre um jogo: cria a sessão de jogo (encerrando a anterior, se houver) e devolve a URL para
1052
- * carregar num iframe ou nova aba. Exige login, inclusive no modo `demo`. Não é idempotente: cada
1053
- * chamada abre uma sessão nova.
1069
+ * Opens a game: creates the game session (ending the previous one, if any) and returns the URL and how to
1070
+ * open it ({@link GameLaunch.launchTarget}: in an iframe, by redirecting the tab, or in a new tab). Requires login, including in `demo` mode. It is not idempotent: each
1071
+ * call opens a new session.
1054
1072
  *
1055
- * **A URL devolvida carrega o token da sessão de jogo.** O SDK a entrega só no retorno: nenhum
1056
- * hook (`onRequest`/`onResponse`/`onError`) nem `onValidationIssue` a recebe, e a resposta é
1057
- * validada sempre em modo estrito. Não a registre em logs, analytics nem rastreamento de erros.
1073
+ * **The returned URL carries the game session token.** The SDK delivers it only in the return value: no
1074
+ * hook (`onRequest`/`onResponse`/`onError`) nor `onValidationIssue` receives it, and the response is always
1075
+ * validated in strict mode. Do not log it to logs, analytics or error tracking.
1058
1076
  * @example
1059
- * const { gameUrl } = await igaming.casino.launchGame({ gameId: game.id, isMobile: isPhone() })
1060
- * iframe.src = gameUrl // se vier relativa, resolva contra a origem do gateway
1061
- * @throws {EnginexError} `GAME_NOT_FOUND` (404) para jogo inexistente; `FAILED_PRECONDITION` (422)
1062
- * para jogo inativo; `SELF_EXCLUDED` (422), `COOLING_OFF` ou `ACCOUNT_BLOCKED` quando o jogo
1063
- * responsável bloqueia o jogador (fora do modo demo); `UNAVAILABLE` (503) quando o cassino não
1064
- * consegue verificar as restrições do jogador; `PROVIDER_ERROR` (503) e `CASINO_UNAVAILABLE`
1065
- * (códigos definidos no `enginex-commons` para falhas do provedor/cassino; trate-os como
1066
- * indisponibilidade); `VALIDATION_ERROR` se a resposta vier sem `sessionId` ou sem `gameUrl`;
1067
- * `UNAUTHENTICATED` sem sessão. `COOLING_OFF`, `ACCOUNT_BLOCKED` e `CASINO_UNAVAILABLE` chegam com
1068
- * HTTP 500 (o gateway ainda não os mapeia): identifique pelo código, não pelo status.
1077
+ * const launch = await igaming.casino.launchGame({ gameId: game.id, isMobile: isPhone() })
1078
+ * // If gameUrl comes relative, resolve it against the gateway origin.
1079
+ * switch (launch.launchTarget) {
1080
+ * case 'iframe':
1081
+ * iframe.src = launch.gameUrl
1082
+ * break
1083
+ * case 'redirect':
1084
+ * window.location.assign(launch.gameUrl)
1085
+ * break
1086
+ * default: {
1087
+ * // 'new_tab', and any target the SDK does not know yet. Opened after an `await`, the tab may be
1088
+ * // blocked as a popup (`window.open` returns null): fall back to the current tab.
1089
+ * const tab = window.open(launch.gameUrl, '_blank')
1090
+ * if (tab) tab.opener = null
1091
+ * else window.location.assign(launch.gameUrl)
1092
+ * }
1093
+ * }
1094
+ * @throws {EnginexError} `GAME_NOT_FOUND` (404) for a nonexistent game; `FAILED_PRECONDITION` (422)
1095
+ * for an inactive game; `SELF_EXCLUDED` (422), `COOLING_OFF` or `ACCOUNT_BLOCKED` when responsible
1096
+ * gaming blocks the player (outside demo mode); `UNAVAILABLE` (503) when the casino cannot
1097
+ * verify the player's restrictions; `PROVIDER_ERROR` (503) and `CASINO_UNAVAILABLE`
1098
+ * (codes defined in `enginex-commons` for provider/casino failures; treat them as
1099
+ * unavailability); `VALIDATION_ERROR` if the response comes without `sessionId` or without `gameUrl`;
1100
+ * `INTERNAL_ERROR` (502) when the provider gave no way to open the game;
1101
+ * `UNAUTHENTICATED` without a session. `COOLING_OFF`, `ACCOUNT_BLOCKED` and `CASINO_UNAVAILABLE` arrive with
1102
+ * HTTP 500 (the gateway does not map them yet): identify by the code, not by the status.
1069
1103
  */
1070
1104
  launchGame(input: LaunchGameInput, options?: CallOptions): Promise<GameLaunch>;
1071
1105
  /**
1072
- * Sessões de jogo do jogador, da mais recente para a mais antiga, paginadas.
1106
+ * The player's game sessions, from newest to oldest, paginated.
1073
1107
  * @example
1074
1108
  * const { items } = await igaming.casino.listSessions({ perPage: 10 })
1075
1109
  * const active = items.find((s) => s.status === 'active')
1076
- * @throws {EnginexError} `UNAUTHENTICATED` sem sessão.
1110
+ * @throws {EnginexError} `UNAUTHENTICATED` without a session.
1077
1111
  */
1078
1112
  listSessions(input?: CasinoPageInput, options?: CallOptions): Promise<Page<GameSession>>;
1079
1113
  /**
1080
- * Histórico de rodadas (apostas, prêmios, estornos) do jogador, paginado.
1114
+ * The player's round history (bets, prizes, reversals), paginated.
1081
1115
  * @example
1082
1116
  * const page = await igaming.casino.getHistory({ page: 1, perPage: 20 })
1083
1117
  * page.items.forEach((tx) => console.log(tx.roundId, tx.type, tx.amount, tx.currency))
1084
- * @throws {EnginexError} `INTERNAL_ERROR` (500) se o histórico tiver uma moeda que o gateway não
1085
- * conhece; `UNAUTHENTICATED` sem sessão.
1118
+ * @throws {EnginexError} `INTERNAL_ERROR` (500) if the history has a currency the gateway does not
1119
+ * know; `UNAUTHENTICATED` without a session.
1086
1120
  */
1087
1121
  getHistory(input?: CasinoPageInput, options?: CallOptions): Promise<Page<CasinoTransaction>>;
1088
1122
  /**
1089
- * Maiores prêmios de uma rodada no cassino do operador (ranking da home), com o nome do jogador
1090
- * mascarado. Exige login.
1123
+ * Biggest prizes of a round in the operator's casino (home ranking), with the player's name
1124
+ * masked. Requires login.
1091
1125
  * @example
1092
1126
  * const winners = await igaming.casino.getBiggestWinners({ limit: 10, days: 7 })
1093
- * @throws {EnginexError} `INTERNAL_ERROR` (500) se um prêmio vier com moeda desconhecida;
1094
- * `UNAUTHENTICATED` sem sessão.
1127
+ * @throws {EnginexError} `INTERNAL_ERROR` (500) if a prize comes with an unknown currency;
1128
+ * `UNAUTHENTICATED` without a session.
1095
1129
  */
1096
1130
  getBiggestWinners(input?: GetBiggestWinnersInput, options?: CallOptions): Promise<BiggestWinner[]>;
1097
1131
  }
1098
1132
 
1099
1133
  /**
1100
- * Tipo de resgate de pontos. O `bonus.proto` comenta `bonus`, `cash` e `free_bet`, mas o backend
1101
- * trata o campo como texto livre e o contrato não diz quais o operador habilita: o SDK envia o valor
1102
- * como recebido (só recusa vazio) e quem decide é o servidor.
1103
- * @category Fidelidade
1134
+ * Type of points redemption. The `bonus.proto` mentions `bonus`, `cash` and `free_bet`, but the backend
1135
+ * treats the field as free text and the contract does not say which ones the operator enables: the SDK sends the value
1136
+ * as received (it only refuses empty) and the server decides.
1137
+ * @category Loyalty
1104
1138
  */
1105
1139
  type RedemptionType = 'bonus' | 'cash' | 'free_bet' | (string & {});
1106
1140
  /**
1107
- * Situação de fidelidade do jogador (`GET /loyalty`).
1108
- * @category Fidelidade
1141
+ * The player's loyalty status (`GET /loyalty`).
1142
+ * @category Loyalty
1109
1143
  */
1110
1144
  interface LoyaltyStatus {
1111
- /** Total de pontos já ganhos (inteiro). */
1145
+ /** Total points earned (integer). */
1112
1146
  totalPointsEarned: number;
1113
- /** Pontos disponíveis para resgate (inteiro). */
1147
+ /** Points available for redemption (integer). */
1114
1148
  currentPoints: number;
1115
- /** Pontos já resgatados (inteiro). */
1149
+ /** Points already redeemed (integer). */
1116
1150
  pointsRedeemed: number;
1117
- /** Tier atual; `null` quando o gateway não informa (vazio ou ausente). O contrato não lista os tiers possíveis (o operador os define). */
1151
+ /** Current tier; `null` when the gateway does not report it (empty or absent). The contract does not list the possible tiers (the operator defines them). */
1118
1152
  currentTier: string | null;
1119
- /** Pontos que contam para o tier (inteiro); a regra de cálculo não é informada pelo contrato. */
1153
+ /** Points that count toward the tier (integer); the calculation rule is not reported by the contract. */
1120
1154
  tierPoints: number;
1121
- /** Total apostado na vida do jogador, em unidades menores (o campo do contrato se chama `*_cents`; a moeda não vem junto). */
1155
+ /** Total wagered over the player's lifetime, in minor units (the contract field is called `*_cents`; the currency does not come with it). */
1122
1156
  lifetimeWagered: number;
1123
- /** Total depositado na vida do jogador, em unidades menores (a moeda não vem junto). */
1157
+ /** Total deposited over the player's lifetime, in minor units (the currency does not come with it). */
1124
1158
  lifetimeDeposited: number;
1125
1159
  /**
1126
- * Benefícios do tier atual, lidos do JSON em texto que o gateway repassa. O formato é definido
1127
- * pelo operador (o contrato só diz "benefícios do tier atual"): confira antes de exibir. `null`
1128
- * quando vem vazio ou ausente, e também quando não é um objeto JSON válido (neste caso o
1129
- * `onValidationIssue` é avisado, sem o conteúdo).
1160
+ * Benefits of the current tier, read from the JSON text the gateway passes along. The format is defined
1161
+ * by the operator (the contract only says "benefits of the current tier"): check before displaying. `null`
1162
+ * when it comes empty or absent, and also when it is not a valid JSON object (in this case
1163
+ * `onValidationIssue` is notified, without the content).
1130
1164
  */
1131
1165
  tierBenefits: Record<string, unknown> | null;
1132
- /** Quando o tier expira (ISO 8601, UTC); `null` quando o gateway não manda. */
1166
+ /** When the tier expires (ISO 8601, UTC); `null` when the gateway does not send it. */
1133
1167
  tierExpiresAt: string | null;
1134
1168
  }
1135
1169
  /**
1136
- * Entrada de {@link LoyaltyApi.redeem}.
1137
- * @category Fidelidade
1170
+ * Input of {@link LoyaltyApi.redeem}.
1171
+ * @category Loyalty
1138
1172
  */
1139
1173
  interface RedeemPointsInput {
1140
- /** Pontos a resgatar: inteiro seguro > 0. */
1174
+ /** Points to redeem: a safe integer > 0. */
1141
1175
  points: number;
1142
- /** Tipo do resgate (texto não vazio). */
1176
+ /** Redemption type (non-empty text). */
1143
1177
  redemptionType: RedemptionType;
1144
1178
  }
1145
1179
  /**
1146
- * Resultado de {@link LoyaltyApi.redeem}.
1147
- * @category Fidelidade
1180
+ * Result of {@link LoyaltyApi.redeem}.
1181
+ * @category Loyalty
1148
1182
  */
1149
1183
  interface RedeemedPoints {
1150
- /** Pontos efetivamente resgatados (inteiro). */
1184
+ /** Points actually redeemed (integer). */
1151
1185
  redeemedPoints: number;
1152
- /** Valor do resgate em unidades menores de `currency`; `null` quando o gateway não manda. */
1186
+ /** Redemption value in minor units of `currency`; `null` when the gateway does not send it. */
1153
1187
  value: number | null;
1154
- /** Moeda de `value`; `null` quando ausente. */
1188
+ /** Currency of `value`; `null` when absent. */
1155
1189
  currency: string | null;
1156
- /** Id do bônus gerado, quando o resgate foi em bônus; `null` caso contrário. */
1190
+ /** Id of the bonus generated, when the redemption was into a bonus; `null` otherwise. */
1157
1191
  bonusId: string | null;
1158
1192
  }
1159
1193
  /**
1160
- * Fidelidade (pontos e tier) do jogador. Os dois métodos exigem login.
1161
- * @category Fidelidade
1194
+ * The player's loyalty (points and tier). Both methods require login.
1195
+ * @category Loyalty
1162
1196
  */
1163
1197
  interface LoyaltyApi {
1164
1198
  /**
1165
- * Saldo de pontos, tier e benefícios do jogador.
1199
+ * The player's points balance, tier and benefits.
1166
1200
  * @example
1167
1201
  * const loyalty = await igaming.loyalty.get()
1168
1202
  * console.log(loyalty.currentPoints, loyalty.currentTier, loyalty.tierBenefits)
1169
- * @throws {EnginexError} `UNAUTHENTICATED` sem sessão. Em `validation: 'strict'`,
1170
- * `VALIDATION_ERROR` se `tier_benefits_json` não for um objeto JSON.
1203
+ * @throws {EnginexError} `UNAUTHENTICATED` without a session. With `validation: 'strict'`,
1204
+ * `VALIDATION_ERROR` if `tier_benefits_json` is not a JSON object.
1171
1205
  */
1172
1206
  get(params?: NoParams, options?: CallOptions): Promise<LoyaltyStatus>;
1173
1207
  /**
1174
- * Troca pontos por bônus, dinheiro ou aposta grátis. Manda `Idempotency-Key` (gerada por chamada
1175
- * ou a de `options.idempotencyKey`, mantida no retry após renovar a sessão), **mas o gateway ainda
1176
- * não aplica o middleware de idempotência nesta rota**: um duplo clique pode resgatar duas vezes.
1177
- * Trave o botão até a chamada terminar.
1208
+ * Exchanges points for a bonus, cash or a free bet. It sends `Idempotency-Key` (generated per call
1209
+ * or the one in `options.idempotencyKey`, kept on the retry after renewing the session), **but the gateway does not
1210
+ * apply the idempotency middleware on this route yet**: a double click may redeem twice.
1211
+ * Lock the button until the call finishes.
1178
1212
  * @example
1179
1213
  * const result = await igaming.loyalty.redeem({ points: 500, redemptionType: 'bonus' })
1180
1214
  * console.log(result.redeemedPoints, result.bonusId)
1181
- * @throws {EnginexError} `CONFIGURATION_ERROR` (sem request) se `points` não for um inteiro > 0 ou
1182
- * `redemptionType` for vazio; `INSUFFICIENT_BALANCE` ou `FAILED_PRECONDITION` quando o serviço
1183
- * recusa o resgate (identifique sempre por `error.code`); `UNKNOWN` com `status` 200 se o gateway
1184
- * responder sem confirmar o resgate (`success: false`, ausente ou malformado; vale também em
1185
- * `validation: 'warn'`; `message` é a do gateway quando vem, senão a do SDK). Regra geral:
1186
- * `UNKNOWN` com `status` 2xx = operação não confirmada: releia o estado ({@link LoyaltyApi.get})
1187
- * antes de tentar de novo. `UNAUTHENTICATED` sem sessão.
1215
+ * @throws {EnginexError} `CONFIGURATION_ERROR` (without a request) if `points` is not an integer > 0 or
1216
+ * `redemptionType` is empty; `INSUFFICIENT_BALANCE` or `FAILED_PRECONDITION` when the service
1217
+ * refuses the redemption (always identify by `error.code`); `UNKNOWN` with `status` 200 if the gateway
1218
+ * answers without confirming the redemption (`success: false`, absent or malformed; it also applies in
1219
+ * `validation: 'warn'`; `message` is the gateway's when it comes, otherwise the SDK's). General rule:
1220
+ * `UNKNOWN` with a 2xx `status` = unconfirmed operation: re-read the state ({@link LoyaltyApi.get})
1221
+ * before trying again. `UNAUTHENTICATED` without a session.
1188
1222
  */
1189
1223
  redeem(input: RedeemPointsInput, options?: CallOptions): Promise<RedeemedPoints>;
1190
1224
  }
1191
1225
 
1192
1226
  /**
1193
- * Periodicidade da missão: `daily`, `weekly`, `event` ou `permanent`. O backend guarda texto livre:
1194
- * trate o caso padrão (valor novo chega cru em `validation: 'warn'`).
1195
- * @category Missões
1227
+ * Mission periodicity: `daily`, `weekly`, `event` or `permanent`. The backend stores free text:
1228
+ * handle the default case (a new value arrives raw in `validation: 'warn'`).
1229
+ * @category Missions
1196
1230
  */
1197
1231
  type MissionType = 'daily' | 'weekly' | 'event' | 'permanent' | (string & {});
1198
1232
  /**
1199
- * O que o jogador precisa fazer: `wager` (apostar), `bet_count` (número de apostas), `win_amount`
1200
- * (ganhar), `play_game` (jogar os jogos-alvo) ou `deposit` (depositar). O contrato
1201
- * não informa a unidade de `targetValue`; a página "Missões" traz uma suposição por tipo, não
1202
- * confirmada.
1203
- * @category Missões
1233
+ * What the player must do: `wager` (bet), `bet_count` (number of bets), `win_amount`
1234
+ * (win), `play_game` (play the target games) or `deposit` (deposit). The contract
1235
+ * does not state the unit of `targetValue`; the "Missions" page gives an unconfirmed assumption per
1236
+ * type.
1237
+ * @category Missions
1204
1238
  */
1205
1239
  type MissionObjectiveType = 'wager' | 'bet_count' | 'win_amount' | 'play_game' | 'deposit' | (string & {});
1206
1240
  /**
1207
- * Tipo da recompensa: `bonus`, `free_spins`, `points` ou `free_bet`. O contrato não
1208
- * informa a unidade de `rewardValue`; a página "Missões" traz uma suposição por tipo, não confirmada.
1209
- * @category Missões
1241
+ * Reward type: `bonus`, `free_spins`, `points` or `free_bet`. The contract does not
1242
+ * state the unit of `rewardValue`; the "Missions" page gives an unconfirmed assumption per type.
1243
+ * @category Missions
1210
1244
  */
1211
1245
  type MissionRewardType = 'bonus' | 'free_spins' | 'points' | 'free_bet' | (string & {});
1212
1246
  /**
1213
- * Situação da missão do jogador: `in_progress`, `completed`, `expired` ou `claimed`.
1214
- * @category Missões
1247
+ * Status of the player's mission: `in_progress`, `completed`, `expired` or `claimed`.
1248
+ * @category Missions
1215
1249
  */
1216
1250
  type UserMissionStatus = 'in_progress' | 'completed' | 'expired' | 'claimed' | (string & {});
1217
1251
  /**
1218
- * Missão ativa do operador (`GET /missions`).
1219
- * @category Missões
1252
+ * Active operator mission (`GET /missions`).
1253
+ * @category Missions
1220
1254
  */
1221
1255
  interface Mission {
1222
- /** Id da missão (o mesmo de {@link UserMission.missionId}). */
1256
+ /** Mission id (the same as {@link UserMission.missionId}). */
1223
1257
  id: string;
1224
- /** Nome de exibição. */
1258
+ /** Display name. */
1225
1259
  name: string;
1226
- /** Descrição; pode vir vazia. */
1260
+ /** Description; may come empty. */
1227
1261
  description: string;
1228
- /** Periodicidade. */
1262
+ /** Periodicity. */
1229
1263
  missionType: MissionType;
1230
- /** Objetivo. */
1264
+ /** Objective. */
1231
1265
  objectiveType: MissionObjectiveType;
1232
1266
  /**
1233
- * Meta, inteiro. O contrato do gateway não informa a unidade (suposição, não confirmada:
1234
- * unidades menores da moeda para `wager`/`win_amount`/`deposit`, contagem para
1235
- * `bet_count`/`play_game`); confirme com o operador antes de exibir.
1267
+ * Target, an integer. The gateway contract does not state the unit (an assumption, unconfirmed:
1268
+ * minor units of the currency for `wager`/`win_amount`/`deposit`, a count for
1269
+ * `bet_count`/`play_game`); confirm with the operator before displaying.
1236
1270
  */
1237
1271
  targetValue: number;
1238
- /** Slug da categoria de jogos que conta para a meta; `null` quando não há restrição. */
1272
+ /** Slug of the game category that counts toward the target; `null` when there is no restriction. */
1239
1273
  targetGameCategory: string | null;
1240
- /** Ids dos jogos que contam para a meta; `[]` quando não há restrição. */
1274
+ /** Ids of the games that count toward the target; `[]` when there is no restriction. */
1241
1275
  targetGames: string[];
1242
- /** Tipo da recompensa. */
1276
+ /** Reward type. */
1243
1277
  rewardType: MissionRewardType;
1244
- /** Valor da recompensa, inteiro. O contrato não informa a unidade (suposição na página "Missões", não confirmada). */
1278
+ /** Reward value, an integer. The contract does not state the unit (an assumption on the "Missions" page, unconfirmed). */
1245
1279
  rewardValue: number;
1246
- /** Início da validade (ISO 8601, UTC); `null` quando o gateway manda a data vazia (epoch). */
1280
+ /** Start of validity (ISO 8601, UTC); `null` when the gateway sends an empty date (epoch). */
1247
1281
  validFrom: string | null;
1248
- /** Fim da validade (ISO 8601, UTC); `null` quando o gateway manda a data vazia (epoch). */
1282
+ /** End of validity (ISO 8601, UTC); `null` when the gateway sends an empty date (epoch). */
1249
1283
  validTo: string | null;
1250
1284
  }
1251
1285
  /**
1252
- * Progresso do jogador numa missão (`GET /my/missions`).
1253
- * @category Missões
1286
+ * The player's progress on a mission (`GET /my/missions`).
1287
+ * @category Missions
1254
1288
  */
1255
1289
  interface UserMission {
1256
- /** Id do progresso (da missão do jogador no período). */
1290
+ /** Progress id (of the player's mission in the period). */
1257
1291
  id: string;
1258
- /** Id da missão ({@link Mission.id}). */
1292
+ /** Mission id ({@link Mission.id}). */
1259
1293
  missionId: string;
1260
- /** Nome da missão. */
1294
+ /** Mission name. */
1261
1295
  missionName: string;
1262
- /** Progresso atual, inteiro; presume-se a mesma unidade de `targetValue` (não confirmada pelo contrato). */
1296
+ /** Current progress, an integer; presumed to be the same unit as `targetValue` (not confirmed by the contract). */
1263
1297
  currentProgress: number;
1264
- /** Meta, inteiro. */
1298
+ /** Target, an integer. */
1265
1299
  targetValue: number;
1266
- /** Progresso em porcentagem, número (ex.: `37.5`); calculado pelo serviço, pode passar de `100`. */
1300
+ /** Progress as a percentage, a number (e.g. `37.5`); computed by the service, may exceed `100`. */
1267
1301
  progressPercentage: number;
1268
- /** Situação. */
1302
+ /** Status. */
1269
1303
  status: UserMissionStatus;
1270
- /** Tipo da recompensa. */
1304
+ /** Reward type. */
1271
1305
  rewardType: MissionRewardType;
1272
- /** Valor da recompensa, inteiro. */
1306
+ /** Reward value, an integer. */
1273
1307
  rewardValue: number;
1274
- /** Fim do período (ISO 8601, UTC); `null` quando o gateway não manda. */
1308
+ /** End of the period (ISO 8601, UTC); `null` when the gateway does not send it. */
1275
1309
  periodEnd: string | null;
1276
- /** Quando foi concluída (ISO 8601, UTC); `null` enquanto não concluída. */
1310
+ /** When it was completed (ISO 8601, UTC); `null` while not completed. */
1277
1311
  completedAt: string | null;
1278
1312
  }
1279
1313
  /**
1280
- * Entrada de {@link MissionsApi.list}.
1281
- * @category Missões
1314
+ * Input of {@link MissionsApi.list}.
1315
+ * @category Missions
1282
1316
  */
1283
1317
  interface ListMissionsInput {
1284
- /** Página (começa em 1; inteiro ≥ 1). Padrão do gateway: 1. */
1318
+ /** Page (starts at 1; integer ≥ 1). Gateway default: 1. */
1285
1319
  page?: number;
1286
- /** Itens por página (inteiro de 1 a 100). Padrão do gateway: 20 (fora da faixa também vira 20). */
1320
+ /** Items per page (integer from 1 to 100). Gateway default: 20 (out of range also becomes 20). */
1287
1321
  perPage?: number;
1288
1322
  }
1289
1323
  /**
1290
- * Missões do operador e o progresso do jogador. Os dois métodos exigem login. Não há `claim()`: a
1291
- * recompensa é automática (inferido; veja a página "Missões").
1292
- * @category Missões
1324
+ * Operator missions and the player's progress. Both methods require login. There is no `claim()`: the
1325
+ * reward is automatic (inferred; see the "Missions" page).
1326
+ * @category Missions
1293
1327
  */
1294
1328
  interface MissionsApi {
1295
1329
  /**
1296
- * Missões ativas do operador, paginadas. O gateway lista só as ativas e não tem filtro por tipo.
1330
+ * Active operator missions, paginated. The gateway lists only the active ones and has no filter by type.
1297
1331
  * @example
1298
1332
  * const page = await igaming.missions.list({ perPage: 20 })
1299
1333
  * page.items.forEach((mission) => renderMission(mission.name, mission.targetValue))
1300
- * @throws {EnginexError} `CONFIGURATION_ERROR` (sem request) para `page` que não é inteiro ≥ 1 ou
1301
- * `perPage` fora de 1–100 ou não inteiro; `UNAUTHENTICATED` sem sessão.
1334
+ * @throws {EnginexError} `CONFIGURATION_ERROR` (without a request) for a `page` that is not an integer ≥ 1 or
1335
+ * a `perPage` outside 1–100 or not an integer; `UNAUTHENTICATED` without a session.
1302
1336
  */
1303
1337
  list(input?: ListMissionsInput, options?: CallOptions): Promise<Page<Mission>>;
1304
1338
  /**
1305
- * Progresso do jogador nas missões ativas, sem paginação.
1339
+ * The player's progress on the active missions, without pagination.
1306
1340
  * @example
1307
1341
  * const mine = await igaming.missions.listMine()
1308
1342
  * const open = mine.filter((m) => m.status === 'in_progress')
1309
- * @throws {EnginexError} `UNAUTHENTICATED` sem sessão.
1343
+ * @throws {EnginexError} `UNAUTHENTICATED` without a session.
1310
1344
  */
1311
1345
  listMine(params?: NoParams, options?: CallOptions): Promise<UserMission[]>;
1312
1346
  }
1313
1347
 
1314
1348
  /**
1315
- * Situação de uma indicação: `pending`, `qualified`, `completed` ou `expired` (`REFERRAL_STATUS_*` do
1316
- * gateway, em minúsculas). O contrato não descreve o que leva de uma situação a outra (a página
1317
- * "Indicações" traz só suposições). Trate o caso padrão: um valor novo chega cru em
1349
+ * Status of a referral: `pending`, `qualified`, `completed` or `expired` (the gateway's `REFERRAL_STATUS_*`,
1350
+ * in lowercase). The contract does not describe what takes a referral from one status to another (the
1351
+ * "Referrals" page only has assumptions). Handle the default case: a new value arrives raw in
1318
1352
  * `validation: 'warn'`.
1319
- * @category Indicações
1353
+ * @category Referrals
1320
1354
  */
1321
1355
  type ReferralStatus = 'pending' | 'qualified' | 'completed' | 'expired' | 'unspecified' | (string & {});
1322
1356
  /**
1323
- * Código, link e totais de indicação do jogador (`GET /referrals`). Valores em dinheiro em unidades
1324
- * menores (inteiros): o gateway os manda como float em unidade maior e o SDK converte.
1325
- * @category Indicações
1357
+ * The player's referral code, link and totals (`GET /referrals`). Money values in minor units
1358
+ * (integers): the gateway sends them as a float in major units and the SDK converts.
1359
+ * @category Referrals
1326
1360
  */
1327
1361
  interface ReferralInfo {
1328
- /** Código de indicação do jogador; `null` quando o gateway manda vazio. */
1362
+ /** The player's referral code; `null` when the gateway sends it empty. */
1329
1363
  code: string | null;
1330
- /** Link de indicação pronto para compartilhar; `null` quando o gateway manda vazio. */
1364
+ /** Referral link ready to share; `null` when the gateway sends it empty. */
1331
1365
  link: string | null;
1332
- /** Total de indicações (inteiro). */
1366
+ /** Total referrals (integer). */
1333
1367
  totalReferrals: number;
1334
- /** Indicações concluídas (inteiro). */
1368
+ /** Completed referrals (integer). */
1335
1369
  completedReferrals: number;
1336
- /** Indicações pendentes (inteiro). */
1370
+ /** Pending referrals (integer). */
1337
1371
  pendingReferrals: number;
1338
- /** Total ganho com indicações, em unidades menores (a moeda não vem junto). */
1372
+ /** Total earned from referrals, in minor units (the currency does not come with it). */
1339
1373
  totalEarned: number;
1340
- /** Bônus por indicação, em unidades menores (a moeda não vem junto). */
1374
+ /** Bonus per referral, in minor units (the currency does not come with it). */
1341
1375
  bonusPerReferral: number;
1342
- /** Depósito mínimo do indicado, em unidades menores (a moeda não vem junto). */
1376
+ /** Referee's minimum deposit, in minor units (the currency does not come with it). */
1343
1377
  minDeposit: number;
1344
1378
  }
1345
1379
  /**
1346
- * Uma indicação do histórico (`GET /referrals/history`). Dados do indicado: o e-mail só sai
1347
- * mascarado e o `referee_id` do gateway não é exposto.
1348
- * @category Indicações
1380
+ * A referral from the history (`GET /referrals/history`). Referee data: the email only comes out
1381
+ * masked and the gateway's `referee_id` is not exposed.
1382
+ * @category Referrals
1349
1383
  */
1350
1384
  interface Referral {
1351
- /** Id da indicação. */
1385
+ /** Referral id. */
1352
1386
  id: string;
1353
- /** Nome do indicado, como o gateway manda; `null` quando vazio. É dado pessoal: não registre em logs. */
1387
+ /** Referee's name, as the gateway sends it; `null` when empty. It is personal data: do not log it. */
1354
1388
  refereeName: string | null;
1355
1389
  /**
1356
- * E-mail do indicado mascarado: primeiro caractere da parte local e um `*` por caractere restante,
1357
- * domínio inteiro (`ana@exemplo.com` → `a**@exemplo.com`; parte local de 1 caractere vira `*`).
1358
- * `null` quando o gateway manda vazio ou algo que não é um e-mail. O e-mail cru nunca é exposto.
1390
+ * Referee's masked email: first character of the local part and one `*` per remaining character,
1391
+ * whole domain (`ana@exemplo.com` → `a**@exemplo.com`; a 1-character local part becomes `*`).
1392
+ * `null` when the gateway sends empty or something that is not an email. The raw email is never exposed.
1359
1393
  */
1360
1394
  refereeEmailMasked: string | null;
1361
- /** Código de indicação usado. */
1395
+ /** Referral code used. */
1362
1396
  code: string;
1363
- /** Situação. */
1397
+ /** Status. */
1364
1398
  status: ReferralStatus;
1365
- /** Bônus de quem indicou, em unidades menores. */
1399
+ /** Referrer's bonus, in minor units. */
1366
1400
  referrerBonus: number;
1367
- /** Bônus do indicado, em unidades menores. */
1401
+ /** Referee's bonus, in minor units. */
1368
1402
  refereeBonus: number;
1369
- /** Quando a indicação foi criada (ISO 8601, UTC); `null` se o gateway não manda. */
1403
+ /** When the referral was created (ISO 8601, UTC); `null` if the gateway does not send it. */
1370
1404
  createdAt: string | null;
1371
- /** Quando foi concluída (ISO 8601, UTC); `null` enquanto não concluída. */
1405
+ /** When it was completed (ISO 8601, UTC); `null` while not completed. */
1372
1406
  completedAt: string | null;
1373
- /** Quando expira (ISO 8601, UTC); `null` quando não expira ou o gateway não manda. */
1407
+ /** When it expires (ISO 8601, UTC); `null` when it does not expire or the gateway does not send it. */
1374
1408
  expiresAt: string | null;
1375
1409
  }
1376
1410
  /**
1377
- * Entrada de {@link ReferralsApi.listHistory}.
1378
- * @category Indicações
1411
+ * Input of {@link ReferralsApi.listHistory}.
1412
+ * @category Referrals
1379
1413
  */
1380
1414
  interface ListReferralsInput {
1381
- /** Página (começa em 1; inteiro ≥ 1). Padrão do gateway: 1. */
1415
+ /** Page (starts at 1; integer ≥ 1). Gateway default: 1. */
1382
1416
  page?: number;
1383
- /** Itens por página (inteiro de 1 a 100). Padrão do gateway: 20 (fora da faixa também vira 20). */
1417
+ /** Items per page (integer from 1 to 100). Gateway default: 20 (out of range also becomes 20). */
1384
1418
  perPage?: number;
1385
1419
  }
1386
1420
  /**
1387
- * Página do histórico de indicações, com os totais de todas as páginas.
1388
- * @category Indicações
1421
+ * Page of the referral history, with the totals across all pages.
1422
+ * @category Referrals
1389
1423
  */
1390
1424
  type ReferralHistory = Page<Referral> & {
1391
- /** Quantas indicações estão concluídas, em todas as páginas (inteiro). */
1425
+ /** How many referrals are completed, across all pages (integer). */
1392
1426
  completedCount: number;
1393
- /** Total ganho com indicações, em unidades menores (a moeda não vem junto). */
1427
+ /** Total earned from referrals, in minor units (the currency does not come with it). */
1394
1428
  totalEarned: number;
1395
1429
  };
1396
1430
  /**
1397
- * Entrada de {@link ReferralsApi.register}.
1398
- * @category Indicações
1431
+ * Input of {@link ReferralsApi.register}.
1432
+ * @category Referrals
1399
1433
  */
1400
1434
  interface RegisterReferralInput {
1401
- /** Código de indicação de outro jogador (texto não vazio; espaços nas pontas são removidos). */
1435
+ /** Another player's referral code (non-empty text; leading and trailing spaces are removed). */
1402
1436
  code: string;
1403
1437
  }
1404
1438
  /**
1405
- * Indicação registrada por {@link ReferralsApi.register}.
1406
- * @category Indicações
1439
+ * Referral registered by {@link ReferralsApi.register}.
1440
+ * @category Referrals
1407
1441
  */
1408
1442
  interface RegisteredReferral {
1409
- /** Id da indicação. */
1443
+ /** Referral id. */
1410
1444
  id: string;
1411
- /** Código de indicação registrado. */
1445
+ /** Referral code registered. */
1412
1446
  code: string;
1413
- /** Situação inicial (provavelmente `pending`; o contrato não diz). */
1447
+ /** Initial status (probably `pending`; the contract does not say). */
1414
1448
  status: ReferralStatus;
1415
- /** Bônus do indicado, em unidades menores. */
1449
+ /** Referee's bonus, in minor units. */
1416
1450
  refereeBonus: number;
1417
- /** Quando foi criada (ISO 8601, UTC); `null` se o gateway não manda. */
1451
+ /** When it was created (ISO 8601, UTC); `null` if the gateway does not send it. */
1418
1452
  createdAt: string | null;
1419
1453
  }
1420
1454
  /**
1421
- * Indicações do jogador. Os três métodos exigem login. Quem está se cadastrando informa o código em
1422
- * `auth.register({ referralCode })` do core; `register` daqui vale para quem já tem conta.
1423
- * @category Indicações
1455
+ * The player's referrals. All three methods require login. Whoever is signing up passes the code in the core's
1456
+ * `auth.register({ referralCode })`; the `register` here is for someone who already has an account.
1457
+ * @category Referrals
1424
1458
  */
1425
1459
  interface ReferralsApi {
1426
1460
  /**
1427
- * Código, link e totais de indicação do jogador.
1461
+ * The player's referral code, link and totals.
1428
1462
  * @example
1429
1463
  * const referral = await igaming.referrals.get()
1430
1464
  * console.log(referral.code, referral.link, referral.totalEarned)
1431
- * @throws {EnginexError} `UNAUTHENTICATED` sem sessão; `VALIDATION_ERROR` em `validation: 'strict'`
1432
- * se um valor de dinheiro não for um número finito ou se um contador não for um inteiro ≥ 0.
1465
+ * @throws {EnginexError} `UNAUTHENTICATED` without a session; `VALIDATION_ERROR` in `validation: 'strict'`
1466
+ * if a money value is not a finite number or if a counter is not an integer ≥ 0.
1433
1467
  */
1434
1468
  get(params?: NoParams, options?: CallOptions): Promise<ReferralInfo>;
1435
1469
  /**
1436
- * Histórico de indicações, paginado. A paginação vem dentro de `data` (não no `meta` do envelope):
1437
- * o SDK monta o `Page` e calcula `totalPages` (`0` sem itens); uma página além do fim devolve
1470
+ * Referral history, paginated. Pagination comes inside `data` (not in the envelope's `meta`):
1471
+ * the SDK builds the `Page` and computes `totalPages` (`0` without items); a page beyond the end returns
1438
1472
  * `items: []`.
1439
1473
  * @example
1440
1474
  * const { items, totalPages, completedCount } = await igaming.referrals.listHistory({ perPage: 20 })
1441
1475
  * items.forEach((r) => console.log(r.refereeEmailMasked, r.status))
1442
- * @throws {EnginexError} `CONFIGURATION_ERROR` (sem request) para `page` que não é inteiro ≥ 1 ou
1443
- * `perPage` fora de 1–100 ou não inteiro; `UNAUTHENTICATED` sem sessão; `VALIDATION_ERROR` em
1444
- * `validation: 'strict'` se o status for desconhecido ou o dinheiro não for um número finito.
1476
+ * @throws {EnginexError} `CONFIGURATION_ERROR` (without a request) for a `page` that is not an integer ≥ 1 or
1477
+ * a `perPage` outside 1–100 or not an integer; `UNAUTHENTICATED` without a session; `VALIDATION_ERROR` in
1478
+ * `validation: 'strict'` if the status is unknown or the money is not a finite number.
1445
1479
  */
1446
1480
  listHistory(input?: ListReferralsInput, options?: CallOptions): Promise<ReferralHistory>;
1447
1481
  /**
1448
- * Registra o código de indicação de outro jogador na conta logada (depois do cadastro). Responde
1482
+ * Registers another player's referral code on the logged-in account (after signup). Answers
1449
1483
  * HTTP 201.
1450
1484
  * @example
1451
1485
  * const result = await igaming.referrals.register({ code: 'ANA123' })
1452
1486
  * console.log(result.status, result.refereeBonus)
1453
- * @throws {EnginexError} `CONFIGURATION_ERROR` (sem request) se `code` não for um texto não vazio;
1454
- * `UNAUTHENTICATED` sem sessão; o serviço recusa código inexistente, já usado ou fora de regra:
1455
- * decida por `error.code` (o contrato não lista os códigos).
1487
+ * @throws {EnginexError} `CONFIGURATION_ERROR` (without a request) if `code` is not non-empty text;
1488
+ * `UNAUTHENTICATED` without a session; the service refuses a nonexistent, already used or out-of-rule code:
1489
+ * decide by `error.code` (the contract does not list the codes).
1456
1490
  */
1457
1491
  register(input: RegisterReferralInput, options?: CallOptions): Promise<RegisteredReferral>;
1458
1492
  }
1459
1493
 
1460
1494
  /**
1461
- * Sessão do sportsbook FIRST criada por {@link SportsbookApi.createSession}.
1495
+ * FIRST sportsbook session created by {@link SportsbookApi.createSession}.
1462
1496
  *
1463
- * **Sensível:** `launchUrl` carrega o token de operador do jogador (`operatorToken`). Use-a só para
1464
- * abrir o sportsbook (iframe) e nunca a registre em logs, analytics, rastreamento de erros.
1497
+ * **Sensitive:** `launchUrl` carries the player's operator token (`operatorToken`). Use it only to
1498
+ * open the sportsbook (iframe) and never log it to logs, analytics, error tracking.
1465
1499
  * @category Sportsbook
1466
1500
  */
1467
1501
  interface SportsbookSession {
1468
1502
  /**
1469
- * URL do sportsbook FIRST já com o token de operador na query — não registre em logs. Sempre
1470
- * absoluta (http/https); resposta com outra coisa é `VALIDATION_ERROR`.
1503
+ * FIRST sportsbook URL already with the operator token in the query — do not log it. Always
1504
+ * absolute (http/https); a response with anything else is `VALIDATION_ERROR`.
1471
1505
  */
1472
1506
  launchUrl: string;
1473
- /** Validade da sessão a partir da resposta, em segundos (sempre maior que zero). */
1507
+ /** Session validity from the response, in seconds (always greater than zero). */
1474
1508
  expiresInSeconds: number;
1475
1509
  /**
1476
- * Instante de expiração em milissegundos desde a época (como `Date.now()`): relógio do cliente no
1477
- * momento da resposta mais `expiresInSeconds * 1000`. Reutilize a sessão até `expiresAt - 30_000`.
1510
+ * Expiration instant in milliseconds since the epoch (like `Date.now()`): the client's clock at the
1511
+ * moment of the response plus `expiresInSeconds * 1000`. Reuse the session until `expiresAt - 30_000`.
1478
1512
  */
1479
1513
  expiresAt: number;
1480
1514
  }
1481
1515
  /**
1482
- * Sportsbook FIRST (`GET /first/session`). O provedor e a configuração vêm de
1483
- * `enginex.config.getSportsbook()`, do core.
1516
+ * FIRST sportsbook (`GET /first/session`). The provider and the configuration come from
1517
+ * the core's `enginex.config.getSportsbook()`.
1484
1518
  * @category Sportsbook
1485
1519
  */
1486
1520
  interface SportsbookApi {
1487
1521
  /**
1488
- * Cria a sessão do FIRST para o jogador logado: devolve a URL do sportsbook (com o token de
1489
- * operador) para carregar num iframe. Exige login. Não há cache no SDK: cada chamada gera um token
1490
- * novo; reutilize a sessão até `expiresAt - 30_000` e chame antes
1491
- * `enginex.config.getSportsbook()` para confirmar `enabled && provider === 'first'`.
1522
+ * Creates the FIRST session for the logged-in player: returns the sportsbook URL (with the
1523
+ * operator token) to load in an iframe. Requires login. There is no cache in the SDK: each call generates a new
1524
+ * token; reuse the session until `expiresAt - 30_000` and call
1525
+ * `enginex.config.getSportsbook()` first to confirm `enabled && provider === 'first'`.
1492
1526
  *
1493
- * **A URL devolvida carrega o token de operador.** O SDK a entrega só no retorno: nenhum hook
1494
- * (`onRequest`/`onResponse`/`onError`) nem `onValidationIssue` a recebe, e a resposta é validada
1495
- * sempre em modo estrito. O token separado (`operator_token`) nunca é exposto. Não registre a URL
1496
- * em logs, analytics nem rastreamento de erros.
1527
+ * **The returned URL carries the operator token.** The SDK delivers it only in the return value: no hook
1528
+ * (`onRequest`/`onResponse`/`onError`) nor `onValidationIssue` receives it, and the response is always
1529
+ * validated in strict mode. The separate token (`operator_token`) is never exposed. Do not log the URL
1530
+ * to logs, analytics or error tracking.
1497
1531
  * @example
1498
1532
  * const sb = await enginex.config.getSportsbook()
1499
1533
  * if (sb.enabled && sb.provider === 'first') {
1500
1534
  * const { launchUrl, expiresAt } = await igaming.sportsbook.createSession()
1501
1535
  * iframe.src = launchUrl
1502
1536
  * }
1503
- * @throws {EnginexError} `UNAUTHENTICATED` sem sessão; o code do envelope do gateway quando o FIRST
1504
- * não está habilitado para o operador (HTTP 400) e `UNAVAILABLE` (503) quando a configuração do FIRST está
1505
- * incompleta, o serviço de sessão está fora ou a configuração de sportsbook do serviço de apostas
1506
- * não está disponível; `VALIDATION_ERROR` se `launch_url` não for
1507
- * http(s) absoluta ou `expires_in_seconds` não for maior que zero.
1537
+ * @throws {EnginexError} `UNAUTHENTICATED` without a session; the gateway envelope's code when FIRST
1538
+ * is not enabled for the operator (HTTP 400) and `UNAVAILABLE` (503) when the FIRST configuration is
1539
+ * incomplete, the session service is down or the bets service's sportsbook configuration
1540
+ * is not available; `VALIDATION_ERROR` if `launch_url` is not an
1541
+ * absolute http(s) URL or `expires_in_seconds` is not greater than zero.
1508
1542
  */
1509
1543
  createSession(params?: NoParams, options?: CallOptions): Promise<SportsbookSession>;
1510
1544
  }
1511
1545
 
1512
1546
  /**
1513
- * Namespaces de iGaming de um cliente do SDK, devolvidos por {@link createIgaming}. Todo request
1514
- * passa pelo cliente do app: mesma sessão, renovação de tokens, tenant, locale, hooks, validação e
1547
+ * iGaming namespaces of an SDK client, returned by {@link createIgaming}. Every request
1548
+ * goes through the app's client: same session, token renewal, tenant, locale, hooks, validation and
1515
1549
  * `dispose()`.
1516
- * @category Cliente
1550
+ * @category Client
1517
1551
  */
1518
1552
  interface IgamingClient {
1519
- /** Catálogo, abertura de jogos e histórico do cassino. */
1553
+ /** Catalog, game launch and casino history. */
1520
1554
  casino: CasinoApi;
1521
- /** Campanhas de bônus (ofertas, opt-in, resgate) e promo codes. */
1555
+ /** Bonus campaigns (offers, opt-in, redemption) and promo codes. */
1522
1556
  bonus: BonusApi;
1523
- /** Missões do operador e o progresso do jogador. */
1557
+ /** Operator missions and the player's progress. */
1524
1558
  missions: MissionsApi;
1525
- /** Fidelidade: saldo de pontos, tier, benefícios e resgate. */
1559
+ /** Loyalty: points balance, tier, benefits and redemption. */
1526
1560
  loyalty: LoyaltyApi;
1527
- /** Indicações: código e link, histórico (e-mail do indicado mascarado) e registro de código. */
1561
+ /** Referrals: code and link, history (the referee's email masked) and code registration. */
1528
1562
  referrals: ReferralsApi;
1529
- /** Sportsbook FIRST: sessão para abrir o sportsbook num iframe. */
1563
+ /** FIRST sportsbook: session to open the sportsbook in an iframe. */
1530
1564
  sportsbook: SportsbookApi;
1531
1565
  }
1532
1566
  /**
1533
- * Cria os namespaces de iGaming sobre um cliente de `@getenginex/sdk`. Não cria sessão, tenant nem
1534
- * transporte próprios e não faz nenhum request: chame uma vez por cliente (no browser, um por app;
1535
- * no servidor, um por request, junto com o cliente).
1567
+ * Creates the iGaming namespaces on top of a `@getenginex/sdk` client. It creates no session, tenant or
1568
+ * transport of its own and makes no request: call it once per client (in the browser, one per app;
1569
+ * on the server, one per request, together with the client).
1536
1570
  *
1537
- * Depois de `enginex.dispose()`, `createIgaming` ainda aceita o cliente, mas todo método de iGaming
1538
- * rejeita com `CONFIGURATION_ERROR`, como os métodos do core.
1539
- * @param client - O cliente devolvido por `createEnginexClient` (o próprio objeto, não uma cópia).
1571
+ * After `enginex.dispose()`, `createIgaming` still accepts the client, but every iGaming method
1572
+ * rejects with `CONFIGURATION_ERROR`, like the core methods.
1573
+ * @param client - The client returned by `createEnginexClient` (the object itself, not a copy).
1540
1574
  * @example
1541
1575
  * import { createEnginexClient } from '@getenginex/sdk'
1542
1576
  * import { createIgaming } from '@getenginex/sdk-igaming'
1543
1577
  *
1544
1578
  * export const enginex = createEnginexClient({ locale: 'pt-BR' })
1545
1579
  * export const igaming = createIgaming(enginex)
1546
- * @throws {EnginexError} `CONFIGURATION_ERROR` se `client` não for um cliente criado por
1547
- * `createEnginexClient` (ex.: um objeto qualquer ou uma cópia `{ ...enginex }`), ou se foi criado
1548
- * por uma cópia de `@getenginex/sdk` incompatível (instale uma única versão do core). Identifique
1549
- * com `isEnginexError(error, 'CONFIGURATION_ERROR')`.
1550
- * @category Cliente
1580
+ * @throws {EnginexError} `CONFIGURATION_ERROR` if `client` is not a client created by
1581
+ * `createEnginexClient` (e.g. an arbitrary object or a `{ ...enginex }` copy), or if it was created
1582
+ * by an incompatible copy of `@getenginex/sdk` (install a single core version). Identify
1583
+ * with `isEnginexError(error, 'CONFIGURATION_ERROR')`.
1584
+ * @category Client
1551
1585
  */
1552
1586
  declare function createIgaming(client: EnginexClient): IgamingClient;
1553
1587
 
1554
- export { type ActivityAggregateQualification, type BalanceCreditReward, type BiggestWinner, type BonusApi, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CasinoActivitySelector, type CasinoApi, type CasinoFreeSpinsReward, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type DepositSettledQualification, type Game, type GameCategory, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GetBiggestWinnersInput, type IgamingClient, type LaunchGameInput, type ListGamesInput, type ListMissionsInput, type ListReferralsInput, type LoyaltyApi, type LoyaltyStatus, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PromoCodeOffer, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralStatus, type ReferralsApi, type RegisterReferralInput, type RegisteredReferral, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming };
1588
+ export { type ActivityAggregateQualification, type BalanceCreditReward, type BiggestWinner, type BonusApi, type CampaignCashoutMode, type CampaignContent, type CampaignEntryPolicyCode, type CampaignExactRatio, type CampaignLocalizedContent, type CampaignMaximumBet, type CampaignMoney, type CampaignOddsPolicy, type CampaignOffer, type CampaignParticipation, type CampaignParticipationStatus, type CampaignPercentCalculation, type CampaignPolicy, type CampaignProductScope, type CampaignQualification, type CampaignReward, type CampaignRewardClaimPolicyCode, type CampaignRewardKind, type CampaignRewardValidity, type CampaignRoundingMode, type CampaignStackingPolicy, type CampaignTermsAcceptance, type CampaignTermsAcceptanceRecord, type CampaignTimeWindow, type CampaignUsePolicy, type CampaignWageringPolicy, type CasinoActivitySelector, type CasinoApi, type CasinoFreeSpinsReward, type CasinoPageInput, type CasinoTransaction, type CasinoTransactionType, type DepositSettledQualification, type Game, type GameCategory, type GameLaunch, type GameProvider, type GameSession, type GameSessionStatus, type GameSort, type GetBiggestWinnersInput, type IgamingClient, type LaunchGameInput, type LaunchTarget, type ListGamesInput, type ListMissionsInput, type ListReferralsInput, type LoyaltyApi, type LoyaltyStatus, type Mission, type MissionObjectiveType, type MissionRewardType, type MissionType, type MissionsApi, type OptInInput, type PromoCodeOffer, type RedeemPointsInput, type RedeemedPoints, type RedemptionType, type Referral, type ReferralHistory, type ReferralInfo, type ReferralStatus, type ReferralsApi, type RegisterReferralInput, type RegisteredReferral, type SportsActivitySelector, type SportsBetCoverageReward, type SportsBetType, type SportsBonusBetReward, type SportsbookApi, type SportsbookSession, type UserEventQualification, type UserMission, type UserMissionStatus, createIgaming };