@smartico/public-api 0.0.379 → 0.0.381

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.
Files changed (219) hide show
  1. package/.nvmrc +1 -1
  2. package/CLAUDE.md +103 -0
  3. package/README.md +53 -2
  4. package/dist/Base/ClassId.d.ts +2 -0
  5. package/dist/Jackpots/JackpotDetails.d.ts +14 -15
  6. package/dist/Jackpots/JackpotPot.d.ts +10 -6
  7. package/dist/Raffle/GetRaffleWonPrizesRequest.d.ts +9 -0
  8. package/dist/Raffle/GetRaffleWonPrizesResponse.d.ts +52 -0
  9. package/dist/Raffle/index.d.ts +2 -0
  10. package/dist/SmarticoAPI.d.ts +6 -1
  11. package/dist/SmarticoLib/index.d.ts +5 -1
  12. package/dist/Store/BuyStoreItemErrorCode.d.ts +9 -1
  13. package/dist/Tournaments/TournamentRegistrationError.d.ts +3 -1
  14. package/dist/WSAPI/WSAPI.d.ts +13 -1235
  15. package/dist/WSAPI/WSAPIAvatars.d.ts +296 -0
  16. package/dist/WSAPI/WSAPIBase.d.ts +71 -0
  17. package/dist/WSAPI/WSAPIBonuses.d.ts +240 -0
  18. package/dist/WSAPI/WSAPIClans.d.ts +388 -0
  19. package/dist/WSAPI/WSAPIGamePick.d.ts +593 -0
  20. package/dist/WSAPI/WSAPIGeneral.d.ts +172 -0
  21. package/dist/WSAPI/WSAPIInbox.d.ts +615 -0
  22. package/dist/WSAPI/WSAPIJackpots.d.ts +344 -0
  23. package/dist/WSAPI/WSAPILeaderBoard.d.ts +139 -0
  24. package/dist/WSAPI/WSAPIMiniGames.d.ts +510 -0
  25. package/dist/WSAPI/WSAPIMissions.d.ts +517 -0
  26. package/dist/WSAPI/WSAPIRaffles.d.ts +643 -0
  27. package/dist/WSAPI/WSAPIStore.d.ts +656 -0
  28. package/dist/WSAPI/WSAPITournaments.d.ts +501 -0
  29. package/dist/WSAPI/WSAPITypes.d.ts +376 -205
  30. package/dist/WSAPI/WSAPIUser.d.ts +533 -0
  31. package/dist/index.js +6745 -1661
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.modern.mjs +6324 -1342
  34. package/dist/index.modern.mjs.map +1 -1
  35. package/docs/Callbacks.md +162 -0
  36. package/docs/SmarticoObject.md +445 -0
  37. package/docs/Transforms.md +99 -0
  38. package/docs/api/README.md +82 -2
  39. package/docs/api/classes/WSAPIAvatars.md +344 -0
  40. package/docs/api/classes/WSAPIBonuses.md +271 -0
  41. package/docs/api/classes/WSAPIClans.md +436 -0
  42. package/docs/api/classes/WSAPIGamePick.md +710 -0
  43. package/docs/api/classes/WSAPIGeneral.md +212 -0
  44. package/docs/api/classes/WSAPIInbox.md +801 -0
  45. package/docs/api/classes/WSAPIJackpots.md +439 -0
  46. package/docs/api/classes/WSAPILeaderBoard.md +157 -0
  47. package/docs/api/classes/WSAPIMiniGames.md +612 -0
  48. package/docs/api/classes/WSAPIMissions.md +590 -0
  49. package/docs/api/classes/WSAPIRaffles.md +773 -0
  50. package/docs/api/classes/WSAPIStore.md +719 -0
  51. package/docs/api/classes/WSAPITournaments.md +571 -0
  52. package/docs/api/classes/WSAPIUser.md +637 -0
  53. package/docs/api/documents/Callbacks.md +162 -0
  54. package/docs/api/documents/SmarticoObject.md +445 -0
  55. package/docs/api/documents/Transforms.md +99 -0
  56. package/docs/api/enumerations/AchievementClaimPeriodTypeId.md +13 -0
  57. package/docs/api/enumerations/BonusStatus-1.md +11 -6
  58. package/docs/api/enumerations/BuyStoreItemErrorCode.md +32 -0
  59. package/docs/api/enumerations/JoinClanErrorCode.md +81 -0
  60. package/docs/api/enumerations/TournamentRegistrationError.md +12 -0
  61. package/docs/api/functions/clanTournamentPlayersTransform.md +13 -0
  62. package/docs/api/interfaces/AvatarCustomized.md +25 -0
  63. package/docs/api/interfaces/AvatarDefinition.md +94 -0
  64. package/docs/api/interfaces/AvatarPrompt.md +45 -0
  65. package/docs/api/interfaces/BonusMetaMap-1.md +4 -1
  66. package/docs/api/interfaces/BonusTemplateMetaMap-1.md +9 -4
  67. package/docs/api/interfaces/Clan.md +4 -0
  68. package/docs/api/interfaces/ClanInfo.md +109 -0
  69. package/docs/api/interfaces/ClanMember.md +53 -0
  70. package/docs/api/interfaces/ClanPrizePublicMeta.md +41 -0
  71. package/docs/api/interfaces/ClanPrizeStructureEntry.md +7 -1
  72. package/docs/api/interfaces/ClanPublicMeta.md +4 -0
  73. package/docs/api/interfaces/ClanTournamentPlayerRaw.md +67 -0
  74. package/docs/api/interfaces/GemsDiamondsLog.md +43 -0
  75. package/docs/api/interfaces/GetClanInfoResponse.md +61 -0
  76. package/docs/api/interfaces/GetClanTournamentPlayersResponse.md +81 -0
  77. package/docs/api/interfaces/GetRaffleWonPrizesRequest.md +59 -0
  78. package/docs/api/interfaces/GetRaffleWonPrizesResponse.md +95 -0
  79. package/docs/api/interfaces/InboxMarkMessageAction.md +10 -2
  80. package/docs/api/interfaces/JackpotDetails.md +14 -15
  81. package/docs/api/interfaces/JackpotPot.md +9 -6
  82. package/docs/api/interfaces/LeaderBoardDetailsT.md +14 -8
  83. package/docs/api/interfaces/LeaderBoardUserT.md +8 -5
  84. package/docs/api/interfaces/LeaderBoardsRewardsT.md +7 -0
  85. package/docs/api/interfaces/PointsLog.md +43 -0
  86. package/docs/api/interfaces/RaffleWonPrize.md +59 -0
  87. package/docs/api/interfaces/RaffleWonPrizePublicMeta.md +27 -0
  88. package/docs/api/interfaces/RaffleWonPrizeUser.md +43 -0
  89. package/docs/api/interfaces/SAWTemplateUI.md +10 -0
  90. package/docs/api/interfaces/TAchCategory.md +14 -4
  91. package/docs/api/interfaces/TAvatarCustomized.md +4 -4
  92. package/docs/api/interfaces/TAvatarDefinition.md +13 -14
  93. package/docs/api/interfaces/TAvatarPrompt.md +6 -6
  94. package/docs/api/interfaces/TBonus.md +16 -8
  95. package/docs/api/interfaces/TBuyStoreItemResult.md +4 -11
  96. package/docs/api/interfaces/TClaimBonusResult.md +5 -5
  97. package/docs/api/interfaces/TClan.md +8 -4
  98. package/docs/api/interfaces/TClanInfo.md +47 -0
  99. package/docs/api/interfaces/TClanJoinResult.md +11 -1
  100. package/docs/api/interfaces/TClanTournamentPlayer.md +55 -0
  101. package/docs/api/interfaces/TClanTournamentPlayersResult.md +27 -0
  102. package/docs/api/interfaces/TClans.md +3 -1
  103. package/docs/api/interfaces/TGetTranslations.md +4 -0
  104. package/docs/api/interfaces/TInboxMessage.md +14 -6
  105. package/docs/api/interfaces/TInboxMessageBody.md +18 -12
  106. package/docs/api/interfaces/TLevel.md +17 -20
  107. package/docs/api/interfaces/TLevelCurrent.md +19 -18
  108. package/docs/api/interfaces/TMiniGamePlayBatchResult.md +14 -6
  109. package/docs/api/interfaces/TMiniGamePlayResult.md +9 -4
  110. package/docs/api/interfaces/TMissionClaimRewardResult.md +6 -3
  111. package/docs/api/interfaces/TMissionOptInResult.md +6 -3
  112. package/docs/api/interfaces/TMissionOrBadge.md +5 -4
  113. package/docs/api/interfaces/TRaffleOptinResponse.md +4 -2
  114. package/docs/api/interfaces/TSegmentCheckResult.md +10 -0
  115. package/docs/api/interfaces/TSetAvatarResult.md +3 -3
  116. package/docs/api/interfaces/TStoreItem.md +11 -1
  117. package/docs/api/interfaces/TTournament.md +1 -1
  118. package/docs/api/interfaces/TTournamentDetailed.md +9 -1
  119. package/docs/api/interfaces/TTournamentRegistrationResult.md +4 -2
  120. package/docs/api/interfaces/TUICustomSection.md +23 -19
  121. package/docs/api/interfaces/TUserProfile.md +18 -16
  122. package/docs/api/interfaces/TransformedRaffleClaimPrizeResponse.md +6 -2
  123. package/docs/api/interfaces/UserAchievement.md +1 -1
  124. package/docs/api/interfaces/UserLevelExtraCountersT.md +9 -2
  125. package/docs/api/type-aliases/ActivityLogEntry.md +3 -0
  126. package/docs/native/ADDING_METHODS.md +7 -2
  127. package/docs/native/PROTOCOL.md +337 -0
  128. package/docs/ui/avatars/UIGuide_getAvatarPrompts.md +100 -0
  129. package/docs/ui/avatars/UIGuide_getAvatarsCustomized.md +90 -0
  130. package/docs/ui/avatars/UIGuide_getAvatarsList.md +105 -0
  131. package/docs/ui/avatars/UIGuide_setAvatar.md +118 -0
  132. package/docs/ui/bonuses/UIGuide_claimBonus.md +144 -0
  133. package/docs/ui/bonuses/UIGuide_getBonuses.md +176 -0
  134. package/docs/ui/clans/UIGuide_getClanInfo.md +153 -0
  135. package/docs/ui/clans/UIGuide_getClans.md +172 -0
  136. package/docs/ui/clans/UIGuide_joinClan.md +196 -0
  137. package/docs/ui/gamepick/UIGuide_gamePickGetActiveRound.md +99 -0
  138. package/docs/ui/gamepick/UIGuide_gamePickGetActiveRounds.md +76 -0
  139. package/docs/ui/gamepick/UIGuide_gamePickGetBoard.md +81 -0
  140. package/docs/ui/gamepick/UIGuide_gamePickGetGameInfo.md +78 -0
  141. package/docs/ui/gamepick/UIGuide_gamePickGetHistory.md +55 -0
  142. package/docs/ui/gamepick/UIGuide_gamePickGetRoundInfoForUser.md +71 -0
  143. package/docs/ui/gamepick/UIGuide_gamePickGetUserInfo.md +64 -0
  144. package/docs/ui/gamepick/UIGuide_gamePickSubmitSelection.md +103 -0
  145. package/docs/ui/gamepick/UIGuide_gamePickSubmitSelectionQuiz.md +67 -0
  146. package/docs/ui/general/UIGuide_getCustomSections.md +137 -0
  147. package/docs/ui/general/UIGuide_getRelatedItemsForGame.md +140 -0
  148. package/docs/ui/inbox/UIGuide_deleteInboxMessage.md +135 -0
  149. package/docs/ui/inbox/UIGuide_getInboxMessageBody.md +133 -0
  150. package/docs/ui/inbox/UIGuide_getInboxMessages.md +186 -0
  151. package/docs/ui/inbox/UIGuide_markInboxMessageAsRead.md +122 -0
  152. package/docs/ui/inbox/UIGuide_markUnmarkInboxMessageAsFavorite.md +84 -0
  153. package/docs/ui/jackpots/UIGuide_getJackpotEligibleGames.md +73 -0
  154. package/docs/ui/jackpots/UIGuide_getJackpotWinners.md +83 -0
  155. package/docs/ui/jackpots/UIGuide_jackpotGet.md +138 -0
  156. package/docs/ui/jackpots/UIGuide_jackpotOptIn.md +85 -0
  157. package/docs/ui/jackpots/UIGuide_jackpotOptOut.md +65 -0
  158. package/docs/ui/leaderboard/UIGuide_getLeaderBoard.md +166 -0
  159. package/docs/ui/minigames/UIGuide_getMiniGames.md +153 -0
  160. package/docs/ui/minigames/UIGuide_getMiniGamesHistory.md +90 -0
  161. package/docs/ui/minigames/UIGuide_playMiniGame.md +150 -0
  162. package/docs/ui/minigames/UIGuide_playMiniGameBatch.md +128 -0
  163. package/docs/ui/missions/UIGuide_getAchCategories.md +17 -0
  164. package/docs/ui/missions/UIGuide_getBadges.md +237 -0
  165. package/docs/ui/missions/UIGuide_getMissions.md +268 -0
  166. package/docs/ui/missions/UIGuide_requestMissionClaimReward.md +21 -0
  167. package/docs/ui/missions/UIGuide_requestMissionOptIn.md +16 -0
  168. package/docs/ui/raffles/UIGuide_claimRafflePrize.md +99 -0
  169. package/docs/ui/raffles/UIGuide_getRaffleDrawRun.md +117 -0
  170. package/docs/ui/raffles/UIGuide_getRaffleDrawRunsHistory.md +92 -0
  171. package/docs/ui/raffles/UIGuide_getRaffleWonPrizes.md +120 -0
  172. package/docs/ui/raffles/UIGuide_getRaffles.md +175 -0
  173. package/docs/ui/raffles/UIGuide_requestRaffleOptin.md +114 -0
  174. package/docs/ui/store/UIGuide_buyStoreItem.md +133 -0
  175. package/docs/ui/store/UIGuide_getStoreCategories.md +19 -0
  176. package/docs/ui/store/UIGuide_getStoreItems.md +264 -0
  177. package/docs/ui/store/UIGuide_getStorePurchasedItems.md +122 -0
  178. package/docs/ui/tournaments/UIGuide_getClanTournamentPlayers.md +140 -0
  179. package/docs/ui/tournaments/UIGuide_getTournamentInstanceInfo.md +265 -0
  180. package/docs/ui/tournaments/UIGuide_getTournamentsList.md +236 -0
  181. package/docs/ui/tournaments/UIGuide_registerInTournament.md +156 -0
  182. package/docs/ui/user/UIGuide_getActivityLog.md +130 -0
  183. package/docs/ui/user/UIGuide_getLevels.md +167 -0
  184. package/docs/ui/user/UIGuide_getUserProfile.md +213 -0
  185. package/package.json +3 -3
  186. package/scripts/postdoc-cleanup.js +195 -0
  187. package/src/Base/ClassId.ts +2 -0
  188. package/src/Jackpots/JackpotDetails.ts +14 -15
  189. package/src/Jackpots/JackpotPot.ts +10 -6
  190. package/src/Missions/MissionsUtils.ts +5 -2
  191. package/src/Raffle/GetRaffleWonPrizesRequest.ts +12 -0
  192. package/src/Raffle/GetRaffleWonPrizesResponse.ts +56 -0
  193. package/src/Raffle/index.ts +3 -1
  194. package/src/SmarticoAPI.ts +14 -1
  195. package/src/SmarticoLib/index.ts +4 -0
  196. package/src/Store/BuyStoreItemErrorCode.ts +8 -0
  197. package/src/Store/StoreItem.ts +1 -0
  198. package/src/Store/StoreItemPurchased.ts +1 -0
  199. package/src/Store/StoreItemType.ts +1 -1
  200. package/src/Tournaments/TournamentRegistrationError.ts +4 -0
  201. package/src/WSAPI/WSAPI.ts +27 -2007
  202. package/src/WSAPI/WSAPIAvatars.ts +345 -0
  203. package/src/WSAPI/WSAPIBase.ts +93 -0
  204. package/src/WSAPI/WSAPIBonuses.ts +268 -0
  205. package/src/WSAPI/WSAPIClans.ts +417 -0
  206. package/src/WSAPI/WSAPIGamePick.ts +667 -0
  207. package/src/WSAPI/WSAPIGeneral.ts +199 -0
  208. package/src/WSAPI/WSAPIInbox.ts +711 -0
  209. package/src/WSAPI/WSAPIJackpots.ts +448 -0
  210. package/src/WSAPI/WSAPILeaderBoard.ts +154 -0
  211. package/src/WSAPI/WSAPIMiniGames.ts +597 -0
  212. package/src/WSAPI/WSAPIMissions.ts +572 -0
  213. package/src/WSAPI/WSAPIRaffles.ts +703 -0
  214. package/src/WSAPI/WSAPIStore.ts +732 -0
  215. package/src/WSAPI/WSAPITournaments.ts +541 -0
  216. package/src/WSAPI/WSAPITypes.ts +376 -207
  217. package/src/WSAPI/WSAPIUser.ts +606 -0
  218. package/tsconfig.json +26 -2
  219. package/docs/api/classes/WSAPI.md +0 -1927
@@ -1,12 +1,15 @@
1
1
  # Interface: JackpotPot
2
2
 
3
+ Live snapshot of one jackpot pot's value and temperature.
4
+ Embedded on `JackpotDetails.pot`; refreshed at the 1 s SDK cache TTL.
5
+
3
6
  ## Properties
4
7
 
5
8
  ### jp\_template\_id
6
9
 
7
10
  > **jp\_template\_id**: `number`
8
11
 
9
- ID of the jackpot template
12
+ Template ID this pot belongs to.
10
13
 
11
14
  ***
12
15
 
@@ -14,7 +17,7 @@ ID of the jackpot template
14
17
 
15
18
  > **jp\_pot\_id**: `number`
16
19
 
17
- ID of the jackpot pot
20
+ Stable numeric ID of the current pot instance (rotates when the pot explodes).
18
21
 
19
22
  ***
20
23
 
@@ -22,7 +25,7 @@ ID of the jackpot pot
22
25
 
23
26
  > **current\_pot\_amount**: `number`
24
27
 
25
- currency of the jackpot pot in the Jackput base currency
28
+ Current pot amount in the jackpot's native currency (`jp_currency`).
26
29
 
27
30
  ***
28
31
 
@@ -30,7 +33,7 @@ currency of the jackpot pot in the Jackput base currency
30
33
 
31
34
  > **current\_pot\_amount\_user\_currency**: `number`
32
35
 
33
- currency of the jackpot pot in the user wallet currency
36
+ Current pot amount converted to the user's wallet currency (`user_currency`).
34
37
 
35
38
  ***
36
39
 
@@ -38,7 +41,7 @@ currency of the jackpot pot in the user wallet currency
38
41
 
39
42
  > **explode\_date\_ts**: `number`
40
43
 
41
- the date/time when this pot exploded
44
+ Unix ms timestamp of when this pot last exploded; `0` if it has never exploded.
42
45
 
43
46
  ***
44
47
 
@@ -46,4 +49,4 @@ the date/time when this pot exploded
46
49
 
47
50
  > **current\_pot\_temperature**: [`JackPotTemparature`](../enumerations/JackPotTemparature.md)
48
51
 
49
- current pot temperature
52
+ Heat band of the pot relative to its explosion range; see [JackPotTemparature](../enumerations/JackPotTemparature.md).
@@ -1,12 +1,16 @@
1
1
  # Interface: LeaderBoardDetailsT
2
2
 
3
+ LeaderBoardDetailsT describes one period's leaderboard.
4
+ Returned by `_smartico.api.getLeaderBoard(periodType, getPreviousPeriod?)`.
5
+ May be `undefined` at runtime when no board is configured for the requested period.
6
+
3
7
  ## Properties
4
8
 
5
9
  ### board\_id
6
10
 
7
11
  > **board\_id**: `number`
8
12
 
9
- ID of the leaderboard
13
+ Stable ID of the leaderboard.
10
14
 
11
15
  ***
12
16
 
@@ -14,7 +18,7 @@ ID of the leaderboard
14
18
 
15
19
  > **name**: `string`
16
20
 
17
- Name of the leaderboard
21
+ Operator-defined display name.
18
22
 
19
23
  ***
20
24
 
@@ -22,7 +26,7 @@ Name of the leaderboard
22
26
 
23
27
  > **description**: `string`
24
28
 
25
- Description of the leaderboard
29
+ Operator-defined description (HTML allowed).
26
30
 
27
31
  ***
28
32
 
@@ -30,7 +34,7 @@ Description of the leaderboard
30
34
 
31
35
  > **rules**: `string`
32
36
 
33
- Rules of the leaderboard
37
+ Operator-defined rules / terms (HTML allowed).
34
38
 
35
39
  ***
36
40
 
@@ -38,7 +42,7 @@ Rules of the leaderboard
38
42
 
39
43
  > **period\_type\_id**: [`LeaderBoardPeriodType`](../enumerations/LeaderBoardPeriodType.md)
40
44
 
41
- Leaderboard period type ID
45
+ Period type this board is bound to ([LeaderBoardPeriodType](../enumerations/LeaderBoardPeriodType.md)).
42
46
 
43
47
  ***
44
48
 
@@ -46,7 +50,7 @@ Leaderboard period type ID
46
50
 
47
51
  > **rewards**: [`LeaderBoardsRewardsT`](LeaderBoardsRewardsT.md)[]
48
52
 
49
- Leaderboard points rewards
53
+ Per-place prize table; the array length is the number of paid places.
50
54
 
51
55
  ***
52
56
 
@@ -54,7 +58,7 @@ Leaderboard points rewards
54
58
 
55
59
  > **users**: [`LeaderBoardUserT`](LeaderBoardUserT.md)[]
56
60
 
57
- Leaderboard users
61
+ Top-20 ranked entries (server-capped), sorted by `position` ASC.
58
62
 
59
63
  ***
60
64
 
@@ -62,4 +66,6 @@ Leaderboard users
62
66
 
63
67
  > `optional` **me?**: [`LeaderBoardUserT`](LeaderBoardUserT.md)
64
68
 
65
- Info about current user in leaderboard
69
+ Current user's own entry. `undefined` for visitor sessions.
70
+ For authenticated users, `position === -1` means the user is
71
+ unranked / outside the ranked window.
@@ -1,12 +1,14 @@
1
1
  # Interface: LeaderBoardUserT
2
2
 
3
+ LeaderBoardUserT describes one participant row on a leaderboard.
4
+
3
5
  ## Properties
4
6
 
5
7
  ### public\_username
6
8
 
7
9
  > **public\_username**: `string`
8
10
 
9
- The username of the participant
11
+ Display username (operator-defined alias).
10
12
 
11
13
  ***
12
14
 
@@ -14,7 +16,7 @@ The username of the participant
14
16
 
15
17
  > **avatar\_url**: `string`
16
18
 
17
- The URL to the avatar of the participant
19
+ Resolved CDN URL for the participant's avatar.
18
20
 
19
21
  ***
20
22
 
@@ -22,7 +24,8 @@ The URL to the avatar of the participant
22
24
 
23
25
  > **position**: `number`
24
26
 
25
- The position of the participant in the leaderboard
27
+ Rank in the leaderboard (DENSE_RANK over all participants).
28
+ `-1` on the `me` entry signals "unranked / outside the window".
26
29
 
27
30
  ***
28
31
 
@@ -30,7 +33,7 @@ The position of the participant in the leaderboard
30
33
 
31
34
  > **points**: `number`
32
35
 
33
- The points of the participant in the leaderboard
36
+ Participant's points for this period.
34
37
 
35
38
  ***
36
39
 
@@ -38,4 +41,4 @@ The points of the participant in the leaderboard
38
41
 
39
42
  > **is\_me**: `boolean`
40
43
 
41
- The indicator if the participant is current user
44
+ `true` when this row is the current authenticated user.
@@ -1,13 +1,20 @@
1
1
  # Interface: LeaderBoardsRewardsT
2
2
 
3
+ LeaderBoardsRewardsT describes one place's prize on a leaderboard.
4
+ Leaderboard prizes are always gamification points (never gems / diamonds / items).
5
+
3
6
  ## Properties
4
7
 
5
8
  ### place
6
9
 
7
10
  > **place**: `number`
8
11
 
12
+ Place number (1-based).
13
+
9
14
  ***
10
15
 
11
16
  ### points
12
17
 
13
18
  > **points**: `number`
19
+
20
+ Gamification points awarded to the user occupying this place at period finalization.
@@ -0,0 +1,43 @@
1
+ # Interface: PointsLog
2
+
3
+ ## Properties
4
+
5
+ ### create\_date
6
+
7
+ > **create\_date**: `number`
8
+
9
+ ***
10
+
11
+ ### user\_ext\_id
12
+
13
+ > **user\_ext\_id**: `string`
14
+
15
+ ***
16
+
17
+ ### crm\_brand\_id
18
+
19
+ > **crm\_brand\_id**: `number`
20
+
21
+ ***
22
+
23
+ ### points\_collected
24
+
25
+ > **points\_collected**: `number`
26
+
27
+ ***
28
+
29
+ ### user\_points\_ever
30
+
31
+ > **user\_points\_ever**: `number`
32
+
33
+ ***
34
+
35
+ ### user\_points\_balance
36
+
37
+ > **user\_points\_balance**: `number`
38
+
39
+ ***
40
+
41
+ ### source\_type\_id
42
+
43
+ > **source\_type\_id**: [`PointChangeSourceType`](../enumerations/PointChangeSourceType.md)
@@ -0,0 +1,59 @@
1
+ # Interface: RaffleWonPrize
2
+
3
+ A single prize the user won within the raffle.
4
+
5
+ ## Properties
6
+
7
+ ### raf\_won\_id
8
+
9
+ > **raf\_won\_id**: `number`
10
+
11
+ Unique ID of the winning row (pass to `claimRafflePrize` when `requires_claim` is `true`).
12
+
13
+ ***
14
+
15
+ ### prize\_id
16
+
17
+ > **prize\_id**: `number`
18
+
19
+ ID of the prize definition.
20
+
21
+ ***
22
+
23
+ ### raffle\_run\_id
24
+
25
+ > **raffle\_run\_id**: `number`
26
+
27
+ Run-instance ID of the draw that awarded this prize.
28
+
29
+ ***
30
+
31
+ ### draw\_id
32
+
33
+ > **draw\_id**: `number`
34
+
35
+ Schedule ID of the draw that awarded this prize.
36
+
37
+ ***
38
+
39
+ ### public\_meta
40
+
41
+ > **public\_meta**: [`RaffleWonPrizePublicMeta`](RaffleWonPrizePublicMeta.md)
42
+
43
+ Presentation meta (name / image).
44
+
45
+ ***
46
+
47
+ ### requires\_claim
48
+
49
+ > **requires\_claim**: `boolean`
50
+
51
+ Whether this prize requires a claim action from the user.
52
+
53
+ ***
54
+
55
+ ### claimed\_date
56
+
57
+ > **claimed\_date**: `number`
58
+
59
+ Epoch ms when the prize was claimed; `null` when not yet claimed.
@@ -0,0 +1,27 @@
1
+ # Interface: RaffleWonPrizePublicMeta
2
+
3
+ Presentation meta for a won prize.
4
+
5
+ ## Properties
6
+
7
+ ### name
8
+
9
+ > **name**: `string`
10
+
11
+ Name of the prize, e.g. '1 $'.
12
+
13
+ ***
14
+
15
+ ### hide\_chance\_to\_win
16
+
17
+ > **hide\_chance\_to\_win**: `boolean`
18
+
19
+ Indicates whether the chance to win should be hidden in the UI.
20
+
21
+ ***
22
+
23
+ ### image\_url
24
+
25
+ > **image\_url**: `string`
26
+
27
+ URL of the image that represents the prize.
@@ -0,0 +1,43 @@
1
+ # Interface: RaffleWonPrizeUser
2
+
3
+ The user the won-prizes list belongs to.
4
+
5
+ ## Properties
6
+
7
+ ### user\_id
8
+
9
+ > **user\_id**: `number`
10
+
11
+ Internal user ID.
12
+
13
+ ***
14
+
15
+ ### avatar\_id
16
+
17
+ > **avatar\_id**: `string`
18
+
19
+ Avatar image: a full URL for a system avatar, otherwise an avatar token to resolve against the widget's avatar domain.
20
+
21
+ ***
22
+
23
+ ### avatar\_real\_id
24
+
25
+ > **avatar\_real\_id**: `number`
26
+
27
+ Numeric ID of the user's selected avatar definition.
28
+
29
+ ***
30
+
31
+ ### public\_username?
32
+
33
+ > `optional` **public\_username?**: `string`
34
+
35
+ Public username; server-masked for other users (e.g. `"32:r*****"`).
36
+
37
+ ***
38
+
39
+ ### avatar\_url?
40
+
41
+ > `optional` **avatar\_url?**: `string`
42
+
43
+ Always `null` on the wire — use `avatar_id`.
@@ -563,3 +563,13 @@ controlling obstacle frequency and game speed.
563
563
  | `SAWGameDifficultyType.EASY = 1` | Easy |
564
564
  | `SAWGameDifficultyType.MEDIUM = 2` | Medium |
565
565
  | `SAWGameDifficultyType.HARD = 3` | Hard |
566
+
567
+ ***
568
+
569
+ ### voyager\_seed\_window\_min?
570
+
571
+ > `optional` **voyager\_seed\_window\_min?**: `number`
572
+
573
+ Minutes for the Voyager seed window.
574
+ The seed window is the range of seeds that can be used to generate the map.
575
+ The seed window is used to ensure that the map is generated the same way for each player.
@@ -1,6 +1,14 @@
1
1
  # Interface: TAchCategory
2
2
 
3
- TAchCategory describes the badge category item. Each badge item can be assigned to 1 or more categories
3
+ TAchCategory describes a mission/badge category. Categories are
4
+ operator-defined groupings, configured per-label by the brand operator,
5
+ shared across BOTH missions and badges — the same list is returned for
6
+ both entity types. A mission or badge can belong to **zero or more**
7
+ categories (many-to-many) via its `category_ids: number[]` field on
8
+ `TMissionOrBadge`.
9
+
10
+ Returned by `_smartico.api.getAchCategories()`. See that method's TSDoc
11
+ for translation, refresh, and rendering details.
4
12
 
5
13
  ## Properties
6
14
 
@@ -8,7 +16,8 @@ TAchCategory describes the badge category item. Each badge item can be assigned
8
16
 
9
17
  > **id**: `number`
10
18
 
11
- ID of the badge category
19
+ Stable numeric ID of the category. Used as the key when joining to
20
+ `TMissionOrBadge.category_ids: number[]`.
12
21
 
13
22
  ***
14
23
 
@@ -16,7 +25,7 @@ ID of the badge category
16
25
 
17
26
  > **name**: `string`
18
27
 
19
- Name of the badge category
28
+ Display name of the category, pre-translated server-side. Never null.
20
29
 
21
30
  ***
22
31
 
@@ -24,4 +33,5 @@ Name of the badge category
24
33
 
25
34
  > **order**: `number`
26
35
 
27
- Order of the badge category among other categories. Default value is 1
36
+ Relative display position (lower = appears first). Default 1 when the
37
+ operator did not configure an explicit order.
@@ -1,6 +1,6 @@
1
1
  # Interface: TAvatarCustomized
2
2
 
3
- TAvatarCustomized describes an AI-customized version of a base avatar
3
+ One AI-generated variant of a base avatar. Returned by `getAvatarsCustomized()`.
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,7 +8,7 @@ TAvatarCustomized describes an AI-customized version of a base avatar
8
8
 
9
9
  > **avatar\_real\_id**: `number`
10
10
 
11
- The avatar_real_id of the base avatar this customization was generated from
11
+ `avatar_real_id` of the base avatar this variant was generated from.
12
12
 
13
13
  ***
14
14
 
@@ -16,7 +16,7 @@ The avatar_real_id of the base avatar this customization was generated from
16
16
 
17
17
  > **url**: `string`
18
18
 
19
- Full CDN URL of the AI-generated customized avatar image
19
+ Absolute CDN URL of the AI-generated image. Can be passed as `avatar_url` to `setAvatar()`.
20
20
 
21
21
  ***
22
22
 
@@ -24,4 +24,4 @@ Full CDN URL of the AI-generated customized avatar image
24
24
 
25
25
  > **dt\_created**: `string`
26
26
 
27
- ISO date string when the customization was created
27
+ ISO date string of when the variant was generated.
@@ -1,6 +1,6 @@
1
1
  # Interface: TAvatarDefinition
2
2
 
3
- TAvatarDefinition describes a single avatar available in the avatar catalog.
3
+ One avatar in the user's catalog. Returned by `getAvatarsList()`.
4
4
  Fields from the raw `public_meta` object are flattened to the top level.
5
5
 
6
6
  ## Properties
@@ -9,7 +9,7 @@ Fields from the raw `public_meta` object are flattened to the top level.
9
9
 
10
10
  > **avatar\_real\_id**: `number`
11
11
 
12
- Unique identifier of the avatar
12
+ Stable numeric identifier of the avatar. Primary key passed to `setAvatar()`.
13
13
 
14
14
  ***
15
15
 
@@ -17,7 +17,7 @@ Unique identifier of the avatar
17
17
 
18
18
  > **is\_default**: `boolean`
19
19
 
20
- Whether this avatar is the default one
20
+ True when this is the system default avatar for the label.
21
21
 
22
22
  ***
23
23
 
@@ -25,7 +25,7 @@ Whether this avatar is the default one
25
25
 
26
26
  > **hide\_until\_achieved**: `boolean`
27
27
 
28
- If true, avatar is hidden until user achieves/unlocks it
28
+ When true and `is_given === false`, the avatar should be hidden from the user (surprise unlock).
29
29
 
30
30
  ***
31
31
 
@@ -33,7 +33,7 @@ If true, avatar is hidden until user achieves/unlocks it
33
33
 
34
34
  > **priority**: `number`
35
35
 
36
- Display priority — lower value means higher position in the grid
36
+ Display position; lower = earlier in the grid.
37
37
 
38
38
  ***
39
39
 
@@ -41,7 +41,7 @@ Display priority — lower value means higher position in the grid
41
41
 
42
42
  > `optional` **description?**: `string`
43
43
 
44
- Optional description of the avatar (from public_meta)
44
+ Optional description shown alongside the avatar in detail views.
45
45
 
46
46
  ***
47
47
 
@@ -49,7 +49,7 @@ Optional description of the avatar (from public_meta)
49
49
 
50
50
  > **url**: `string`
51
51
 
52
- Raw image path/URL of the avatar as returned by the server (from public_meta)
52
+ Raw image path as returned by the server (relative or absolute).
53
53
 
54
54
  ***
55
55
 
@@ -57,7 +57,7 @@ Raw image path/URL of the avatar as returned by the server (from public_meta)
57
57
 
58
58
  > **avatar\_url**: `string`
59
59
 
60
- Full CDN URL of the avatar image, built from avatar_domain + url
60
+ Absolute CDN URL of the avatar image; built from the configured avatar domain + `url`.
61
61
 
62
62
  ***
63
63
 
@@ -65,8 +65,7 @@ Full CDN URL of the avatar image, built from avatar_domain + url
65
65
 
66
66
  > **avatar\_source\_type\_id**: `number`
67
67
 
68
- Source type of the avatar.
69
- 0 = free (always available to all users), other values = earned/purchased
68
+ Source type. `0` = free / always available; non-zero = earned or purchased.
70
69
 
71
70
  ***
72
71
 
@@ -74,7 +73,7 @@ Source type of the avatar.
74
73
 
75
74
  > `optional` **active\_from\_date?**: `string`
76
75
 
77
- ISO date string from which the avatar becomes available
76
+ ISO date string from which the avatar becomes available; undefined when no start window.
78
77
 
79
78
  ***
80
79
 
@@ -82,7 +81,7 @@ ISO date string from which the avatar becomes available
82
81
 
83
82
  > `optional` **active\_till\_date?**: `string`
84
83
 
85
- ISO date string until which the avatar is available
84
+ ISO date string until which the avatar is available; undefined when no end window.
86
85
 
87
86
  ***
88
87
 
@@ -90,7 +89,7 @@ ISO date string until which the avatar is available
90
89
 
91
90
  > **is\_given**: `boolean`
92
91
 
93
- Whether the avatar has been granted/given to the current user
92
+ True when the user owns / has unlocked this avatar.
94
93
 
95
94
  ***
96
95
 
@@ -98,4 +97,4 @@ Whether the avatar has been granted/given to the current user
98
97
 
99
98
  > `optional` **is\_in\_use?**: `boolean`
100
99
 
101
- Whether this avatar is currently in use by the user
100
+ True when this avatar is the user's currently active profile avatar.
@@ -1,6 +1,6 @@
1
1
  # Interface: TAvatarPrompt
2
2
 
3
- TAvatarPrompt describes an AI style prompt available for avatar customization.
3
+ One AI style prompt for avatar customization. Returned by `getAvatarPrompts()`.
4
4
  Fields from the raw `public_meta` object are flattened to the top level.
5
5
 
6
6
  ## Properties
@@ -9,7 +9,7 @@ Fields from the raw `public_meta` object are flattened to the top level.
9
9
 
10
10
  > **prompt\_id**: `number`
11
11
 
12
- Unique identifier of the AI customization prompt
12
+ Stable numeric identifier of the prompt.
13
13
 
14
14
  ***
15
15
 
@@ -17,7 +17,7 @@ Unique identifier of the AI customization prompt
17
17
 
18
18
  > **name**: `string`
19
19
 
20
- Display name of the prompt style, e.g. "Cartoon", "Watercolor" (from public_meta)
20
+ Display name of the style, e.g. "Cartoon", "Watercolor".
21
21
 
22
22
  ***
23
23
 
@@ -25,7 +25,7 @@ Display name of the prompt style, e.g. "Cartoon", "Watercolor" (from public_meta
25
25
 
26
26
  > **icon\_url**: `string`
27
27
 
28
- Full CDN URL of the prompt style icon image (from public_meta)
28
+ Absolute CDN URL of the prompt's preview icon.
29
29
 
30
30
  ***
31
31
 
@@ -33,7 +33,7 @@ Full CDN URL of the prompt style icon image (from public_meta)
33
33
 
34
34
  > **cost\_currency\_type\_id**: `number`
35
35
 
36
- Currency type used to pay for this customization (0=points, 1=gems, 2=diamonds)
36
+ Currency used to pay for the customization. `0` = points, `1` = gems, `2` = diamonds.
37
37
 
38
38
  ***
39
39
 
@@ -41,4 +41,4 @@ Currency type used to pay for this customization (0=points, 1=gems, 2=diamonds)
41
41
 
42
42
  > **cost\_value**: `number`
43
43
 
44
- Cost amount in the given currency
44
+ Cost amount in the currency named by `cost_currency_type_id`.