@smartico/public-api 0.0.430 → 0.0.432

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.
@@ -166,8 +166,9 @@ the client-side fallback.
166
166
 
167
167
  ## AI-recommended amounts
168
168
 
169
- `core_recommended_deposit_amount` and
170
- `core_recommended_casino_bet_amount` are AI-computed for the user.
169
+ `core_recommended_deposit_amount`,
170
+ `core_recommended_casino_bet_amount` and
171
+ `core_recommended_sport_bet_amount` are AI-computed for the user.
171
172
  The default Smartico UI doesn't render them — they're exposed for
172
173
  custom integrations (e.g. operator-specific deposit prompts,
173
174
  personalized bet suggestions).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.430",
3
+ "version": "0.0.432",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -201,6 +201,9 @@ export enum ClassId {
201
201
  BNR_GET_BANNER_CONTENT_REQUEST = 952,
202
202
  BNR_GET_BANNER_CONTENT_RESPONSE = 953,
203
203
 
204
+ TERMS_AND_CONDITIONS_REQUEST = 954,
205
+ TERMS_AND_CONDITIONS_RESPONSE = 955,
206
+
204
207
  /*
205
208
  !Important, if adding new messages that are 'acting' on behalf of the client,
206
209
  you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
@@ -0,0 +1,13 @@
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage';
2
+
3
+ /**
4
+ * Asks for the label's widget disclaimer ("additional T&C") text with any
5
+ * personalisation placeholders already resolved for the current player.
6
+ *
7
+ * Requires an identified session — the text is resolved against the player's
8
+ * own state, so it cannot be requested before identification.
9
+ */
10
+ export interface TermsAndConditionsRequest extends ProtocolMessage {
11
+ /** Overrides the session language used to resolve the text. Defaults to the player's language. */
12
+ force_language?: string;
13
+ }
@@ -0,0 +1,15 @@
1
+ import { ProtocolResponse } from '../Base/ProtocolResponse';
2
+
3
+ /**
4
+ * The label's widget disclaimer ("additional T&C") text, resolved for the
5
+ * current player.
6
+ *
7
+ * The value is the configured disclaimer with its personalisation placeholders
8
+ * substituted. Placeholders that cannot be resolved are left as-is rather than
9
+ * blanked. May be `null` or an empty string when no disclaimer is configured,
10
+ * in which case nothing should be rendered. The text may contain HTML.
11
+ */
12
+ export interface TermsAndConditionsResponse extends ProtocolResponse {
13
+ /** The resolved disclaimer text, or `null` / `''` when none is configured. */
14
+ widget_disclaimer_text?: string;
15
+ }
package/src/Core/index.ts CHANGED
@@ -6,5 +6,7 @@ export * from './GetTranslationsRequest';
6
6
  export * from './GetTranslationsResponse';
7
7
  export * from './PublicLabelSettings';
8
8
  export * from './PublicProperties';
9
+ export * from './TermsAndConditionsRequest';
10
+ export * from './TermsAndConditionsResponse';
9
11
  export * from './ResponseIdentify';
10
12
  export * from './TranslationArea';
@@ -5,11 +5,12 @@ import { UserAchievement } from "./UserAchievement";
5
5
  import { UserAchievementTask } from "./UserAchievementTask";
6
6
  import { BadgesTimeLimitStates } from "./BadgesTimeLimitStates";
7
7
 
8
- type UserStateParamsKeys = 'core_fav_game_top3' | 'core_fav_game_type_top3' | 'core_fav_game_provider_top3' | 'core_recommended_deposit_amount' | 'core_recommended_casino_bet_amount';
8
+ type UserStateParamsKeys = 'core_fav_game_top3' | 'core_fav_game_type_top3' | 'core_fav_game_provider_top3' | 'core_recommended_deposit_amount' | 'core_recommended_casino_bet_amount' | 'core_recommended_sport_bet_amount';
9
9
  const USER_STATE_PARAMS_KEYS_GAMES: UserStateParamsKeys[] = ['core_fav_game_top3', 'core_fav_game_type_top3', 'core_fav_game_provider_top3'];
10
10
  const USER_STATE_PARAMS_KEYS_BET_AMOUNT: UserStateParamsKeys[] = [
11
11
  'core_recommended_deposit_amount',
12
12
  'core_recommended_casino_bet_amount',
13
+ 'core_recommended_sport_bet_amount',
13
14
  ];
14
15
 
15
16
  const MINOR_WORDS = new Set([
@@ -119,6 +119,7 @@ export interface PublicProperties {
119
119
  core_registration_date?: number;
120
120
  core_recommended_deposit_amount?: number;
121
121
  core_recommended_casino_bet_amount?: number;
122
+ core_recommended_sport_bet_amount?: number;
122
123
  }
123
124
  declare enum ClassId {
124
125
  PING = 1,
@@ -849,6 +850,8 @@ export interface TUserProfile {
849
850
  core_recommended_deposit_amount?: number;
850
851
  /** The recommended casino bet amount for the user */
851
852
  core_recommended_casino_bet_amount?: number;
853
+ /** The recommended sport bet amount for the user */
854
+ core_recommended_sport_bet_amount?: number;
852
855
  }
853
856
 
854
857
  /**
@@ -280,6 +280,9 @@ export interface TUserProfile {
280
280
  /** AI-recommended casino bet amount for this user. Undefined when no
281
281
  * recommendation is currently available. */
282
282
  core_recommended_casino_bet_amount?: number;
283
+ /** AI-recommended sport bet amount for this user. Undefined when no
284
+ * recommendation is currently available. */
285
+ core_recommended_sport_bet_amount?: number;
283
286
  /** Display name of the user's current level (e.g. `"Silver"`); resolve the id via `getCurrentLevel()`. */
284
287
  ach_level_current?: string;
285
288
  /** `true` when the user is in the gamification A/B control group (gamification UI suppressed). */