@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,16 @@
1
1
  # Interface: TUICustomSection
2
2
 
3
+ One operator-configured navigation entry. Returned by `getCustomSections()`.
4
+ `section_type_id` is the dispatch key — it determines which page component the
5
+ consumer mounts when the user opens this section.
6
+
3
7
  ## Properties
4
8
 
5
9
  ### id
6
10
 
7
11
  > **id**: `number`
8
12
 
9
- The ID of the custom section
13
+ Stable numeric ID of the section.
10
14
 
11
15
  ***
12
16
 
@@ -14,7 +18,7 @@ The ID of the custom section
14
18
 
15
19
  > `optional` **body?**: `string`
16
20
 
17
- The body of the custom section
21
+ Raw HTML body for `HTML_PAGE` sections; Liquid template body for `LEVELS` (Liquid) sections.
18
22
 
19
23
  ***
20
24
 
@@ -22,7 +26,7 @@ The body of the custom section
22
26
 
23
27
  > `optional` **menu\_img?**: `string`
24
28
 
25
- The image of the custom section, 64x64px
29
+ CDN URL of the section's nav icon, 64x64 px square.
26
30
 
27
31
  ***
28
32
 
@@ -30,7 +34,7 @@ The image of the custom section, 64x64px
30
34
 
31
35
  > `optional` **menu\_name?**: `string`
32
36
 
33
- The name of the custom section
37
+ Display name shown next to the nav icon. Pre-translated server-side.
34
38
 
35
39
  ***
36
40
 
@@ -38,7 +42,7 @@ The name of the custom section
38
42
 
39
43
  > `optional` **custom\_skin\_images?**: `string`
40
44
 
41
- Custom images for custom section
45
+ JSON-serialized list of skin image overrides for themed sections (e.g. `MISSION_CUSTOM_LAYOUT`).
42
46
 
43
47
  ***
44
48
 
@@ -46,7 +50,7 @@ Custom images for custom section
46
50
 
47
51
  > `optional` **section\_type\_id?**: [`AchCustomSectionType`](../enumerations/AchCustomSectionType.md)
48
52
 
49
- The particular type of custom section, can be Missions, Tournaments, Lootbox and etc
53
+ Dispatch key — see [AchCustomSectionType](../enumerations/AchCustomSectionType.md).
50
54
 
51
55
  ***
52
56
 
@@ -54,7 +58,7 @@ The particular type of custom section, can be Missions, Tournaments, Lootbox and
54
58
 
55
59
  > `optional` **theme?**: [`AchCustomLayoutTheme`](../enumerations/AchCustomLayoutTheme.md)
56
60
 
57
- Theme of the custom section
61
+ Themed-layout name for `MISSION_CUSTOM_LAYOUT` sections; see [AchCustomLayoutTheme](../enumerations/AchCustomLayoutTheme.md).
58
62
 
59
63
  ***
60
64
 
@@ -62,7 +66,7 @@ Theme of the custom section
62
66
 
63
67
  > `optional` **generic\_custom\_css?**: `string`
64
68
 
65
- Custom css for the custom section
69
+ Custom CSS for themed layouts.
66
70
 
67
71
  ***
68
72
 
@@ -70,7 +74,7 @@ Custom css for the custom section
70
74
 
71
75
  > `optional` **mission\_tabs\_options?**: [`AchMissionsTabsOptions`](../enumerations/AchMissionsTabsOptions.md)
72
76
 
73
- Tabs that can be shown in custom section, e.g Overview, No Overview, All tabs
77
+ Which tabs to render for `MISSIONS_CATEGORY` sections; see [AchMissionsTabsOptions](../enumerations/AchMissionsTabsOptions.md).
74
78
 
75
79
  ***
76
80
 
@@ -78,7 +82,7 @@ Tabs that can be shown in custom section, e.g Overview, No Overview, All tabs
78
82
 
79
83
  > `optional` **overview\_missions\_filter?**: [`AchOverviewMissionsFilter`](../enumerations/AchOverviewMissionsFilter.md)
80
84
 
81
- Filter that allow to show missions by criteria
85
+ Mission-filter rule for the Overview tab; see [AchOverviewMissionsFilter](../enumerations/AchOverviewMissionsFilter.md).
82
86
 
83
87
  ***
84
88
 
@@ -86,7 +90,7 @@ Filter that allow to show missions by criteria
86
90
 
87
91
  > `optional` **overview\_missions\_count?**: `number`
88
92
 
89
- Quantity of missions to be shown in overview
93
+ Maximum number of missions shown in the Overview tab.
90
94
 
91
95
  ***
92
96
 
@@ -94,7 +98,7 @@ Quantity of missions to be shown in overview
94
98
 
95
99
  > `optional` **url\_or\_dp?**: `string`
96
100
 
97
- URL or DP to be used for custom section
101
+ Click target for `REDIRECT_LINK` sections — either a Smartico DP string (`dp:…`) or an external URL.
98
102
 
99
103
  ***
100
104
 
@@ -102,7 +106,7 @@ URL or DP to be used for custom section
102
106
 
103
107
  > `optional` **liquid\_entity\_data?**: [`LiquidEntityData`](../enumerations/LiquidEntityData.md)[]
104
108
 
105
- Data to be used for Liquid templates
109
+ Data-context selectors for Liquid templates; see [LiquidEntityData](../enumerations/LiquidEntityData.md).
106
110
 
107
111
  ***
108
112
 
@@ -110,7 +114,7 @@ Data to be used for Liquid templates
110
114
 
111
115
  > `optional` **ach\_tournament\_id?**: `number`
112
116
 
113
- Tournament ID to be used for Liquid templates
117
+ Tournament ID for a single-tournament Liquid template (`LiquidEntityData.Tournament`).
114
118
 
115
119
  ***
116
120
 
@@ -118,7 +122,7 @@ Tournament ID to be used for Liquid templates
118
122
 
119
123
  > `optional` **show\_raw\_data?**: `boolean`
120
124
 
121
- Indicates if the data should be shown as raw data (for Liquid templates)
125
+ Operator debug flag — when `true`, Liquid renders raw context data instead of the templated HTML.
122
126
 
123
127
  ***
124
128
 
@@ -126,7 +130,7 @@ Indicates if the data should be shown as raw data (for Liquid templates)
126
130
 
127
131
  > `optional` **liquid\_template?**: `number`
128
132
 
129
- Liquid template id to be used for Liquid templates
133
+ Liquid template ID resolved server-side; the rendered body is delivered in `body`.
130
134
 
131
135
  ***
132
136
 
@@ -134,7 +138,7 @@ Liquid template id to be used for Liquid templates
134
138
 
135
139
  > `optional` **ach\_category\_ids?**: `number`[]
136
140
 
137
- List of IDs of the categories where the badge item is assigned, information about categories can be retrieved with getAchCategories method
141
+ Category IDs the section filters badges by — correlate with `getAchCategories()`.
138
142
 
139
143
  ***
140
144
 
@@ -142,7 +146,7 @@ List of IDs of the categories where the badge item is assigned, information abou
142
146
 
143
147
  > `optional` **shop\_category\_ids?**: `number`[]
144
148
 
145
- List of IDs of the categories where the store item is assigned, information about categories can be retrieved with getShopCategories method
149
+ Category IDs the section filters store items by — correlate with `getStoreCategories()`.
146
150
 
147
151
  ***
148
152
 
@@ -150,4 +154,4 @@ List of IDs of the categories where the store item is assigned, information abou
150
154
 
151
155
  > `optional` **raffle\_id?**: `number`
152
156
 
153
- ID of the raffle to be used for Liquid templates
157
+ Raffle ID for `RAFFLE` sections (and `LiquidEntityData.SingleRaffle` Liquid templates).
@@ -11,7 +11,7 @@ If you want to track the changes of the user profile, you can subscribe to the c
11
11
 
12
12
  > **core\_user\_language**: `string`
13
13
 
14
- The language of the user
14
+ Language code stored server-side for the user (e.g. `"en"`, `"de"`).
15
15
 
16
16
  ***
17
17
 
@@ -19,7 +19,8 @@ The language of the user
19
19
 
20
20
  > **ach\_points\_balance**: `number`
21
21
 
22
- The current points balance that user can use in the Store, Mini-games, Tournaments, etc..
22
+ Current spendable points balance — decremented by store purchases,
23
+ tournament buy-ins, and clan entry fees.
23
24
 
24
25
  ***
25
26
 
@@ -27,7 +28,8 @@ The current points balance that user can use in the Store, Mini-games, Tournamen
27
28
 
28
29
  > **ach\_points\_ever**: `number`
29
30
 
30
- The amount of points that user collected in total
31
+ All-time cumulative points earned. Monotonic — NOT decremented by
32
+ store purchases or clan/tournament fees.
31
33
 
32
34
  ***
33
35
 
@@ -35,7 +37,7 @@ The amount of points that user collected in total
35
37
 
36
38
  > **ach\_gems\_balance**: `number`
37
39
 
38
- The current gems balance
40
+ Current gems balance (secondary currency).
39
41
 
40
42
  ***
41
43
 
@@ -43,7 +45,7 @@ The current gems balance
43
45
 
44
46
  > **ach\_diamonds\_balance**: `number`
45
47
 
46
- The current diamonds balance
48
+ Current diamonds balance (tertiary currency).
47
49
 
48
50
  ***
49
51
 
@@ -51,10 +53,8 @@ The current diamonds balance
51
53
 
52
54
  > **core\_public\_tags**: `string`[]
53
55
 
54
- The array of the public tags set on the user object.
55
- They can be treated as server-based cookies.
56
- You can set tags using following method _smartico.event('core_public_tags_update', { core_public_tags: ['A', 'B'] } );
57
- And then you can check for the tags
56
+ Server-stored public tags on the user (uppercase strings).
57
+ Modify via `_smartico.updatePublicTags(operation, tags)`.
58
58
 
59
59
  ***
60
60
 
@@ -62,7 +62,7 @@ And then you can check for the tags
62
62
 
63
63
  > `optional` **ach\_level\_current\_id?**: `number`
64
64
 
65
- The ID of the current level of the user
65
+ FK into the level ladder; resolve via `getCurrentLevel()` or `getLevels()`.
66
66
 
67
67
  ***
68
68
 
@@ -70,7 +70,7 @@ The ID of the current level of the user
70
70
 
71
71
  > `optional` **core\_is\_test\_account?**: `boolean`
72
72
 
73
- The indicator if user is marked as test user
73
+ `true` when the user is flagged as a test account.
74
74
 
75
75
  ***
76
76
 
@@ -78,7 +78,7 @@ The indicator if user is marked as test user
78
78
 
79
79
  > `optional` **avatar\_url?**: `string`
80
80
 
81
- The URL to the user avatar
81
+ Resolved CDN URL for the user's avatar.
82
82
 
83
83
  ***
84
84
 
@@ -86,7 +86,7 @@ The URL to the user avatar
86
86
 
87
87
  > `optional` **public\_username?**: `string`
88
88
 
89
- The username of current user
89
+ Display username (operator-defined alias).
90
90
 
91
91
  ***
92
92
 
@@ -94,7 +94,7 @@ The username of current user
94
94
 
95
95
  > `optional` **core\_inbox\_unread\_count?**: `number`
96
96
 
97
- THe number of unread inbox messages
97
+ Unread inbox messages count. Push-updated in real time.
98
98
 
99
99
  ***
100
100
 
@@ -102,7 +102,8 @@ THe number of unread inbox messages
102
102
 
103
103
  > `optional` **core\_recommended\_deposit\_amount?**: `number`
104
104
 
105
- The recommended deposit amount for the user
105
+ AI-recommended deposit amount for this user. Undefined when no
106
+ recommendation is currently available.
106
107
 
107
108
  ***
108
109
 
@@ -110,4 +111,5 @@ The recommended deposit amount for the user
110
111
 
111
112
  > `optional` **core\_recommended\_casino\_bet\_amount?**: `number`
112
113
 
113
- The recommended casino bet amount for the user
114
+ AI-recommended casino bet amount for this user. Undefined when no
115
+ recommendation is currently available.
@@ -1,12 +1,16 @@
1
1
  # Interface: TransformedRaffleClaimPrizeResponse
2
2
 
3
+ Result of `_smartico.api.claimRafflePrize({raffle_id, draw_id, raffle_run_id})`.
4
+ Uses camelCase `errorCode` / `errorMessage` — distinct from most other SDK
5
+ result wrappers which use snake_case `err_code` / `err_message`.
6
+
3
7
  ## Properties
4
8
 
5
9
  ### errorCode
6
10
 
7
11
  > **errorCode**: `number`
8
12
 
9
- Error code, 0 means no error
13
+ Error code. `0` = success. See `claimRafflePrize` TSDoc for the full table.
10
14
 
11
15
  ***
12
16
 
@@ -14,4 +18,4 @@ Error code, 0 means no error
14
18
 
15
19
  > `optional` **errorMessage?**: `string`
16
20
 
17
- Error message, will be exposed only if ErrorCode is not 0
21
+ Optional error message; populated on non-zero `errorCode`.
@@ -214,4 +214,4 @@
214
214
 
215
215
  ### prize\_claim\_period\_type\_id?
216
216
 
217
- > `optional` **prize\_claim\_period\_type\_id?**: `AchievementClaimPeriodTypeId`
217
+ > `optional` **prize\_claim\_period\_type\_id?**: [`AchievementClaimPeriodTypeId`](../enumerations/AchievementClaimPeriodTypeId.md)
@@ -1,12 +1,18 @@
1
1
  # Interface: UserLevelExtraCountersT
2
2
 
3
+ UserLevelExtraCountersT exposes the user's current values for the two
4
+ label-defined sliding-window level counters. Returned by
5
+ `_smartico.api.getUserLevelExtraCounters()`. Both fields are
6
+ `undefined` on points-only labels.
7
+
3
8
  ## Properties
4
9
 
5
10
  ### level\_counter\_1?
6
11
 
7
12
  > `optional` **level\_counter\_1?**: `number`
8
13
 
9
- The counter of 1st metric used to reach the level.
14
+ Current value of the user's first level counter. Operator-defined
15
+ semantics per label. `undefined` on points-only labels.
10
16
 
11
17
  ***
12
18
 
@@ -14,4 +20,5 @@ The counter of 1st metric used to reach the level.
14
20
 
15
21
  > `optional` **level\_counter\_2?**: `number`
16
22
 
17
- The counter of 2nd metric used to reach the level.
23
+ Current value of the user's second level counter. Operator-defined
24
+ semantics per label. `undefined` on points-only labels.
@@ -0,0 +1,3 @@
1
+ # Type Alias: ActivityLogEntry
2
+
3
+ > **ActivityLogEntry** = [`PointsLog`](../interfaces/PointsLog.md) \| [`GemsDiamondsLog`](../interfaces/GemsDiamondsLog.md)
@@ -18,8 +18,13 @@ Requirements:
18
18
  1. Find request/response ClassId in ../../src/SmarticoAPI.ts and ../../src/Base/ClassId.ts
19
19
  2. Document raw message structure (not transformed T-prefixed types)
20
20
  3. For complex types — link to ../api/interfaces/*.md files
21
- 4. If raw interface MD file doesn't exist in ../api/interfaces/ — create it following typedoc style like existing files there:
22
- - Format: `# Interface: Name`, `## Properties`, `### property_name`, `• **property_name**: \`type\``, `___` separators between properties
21
+ 4. If the interface MD file doesn't exist in ../api/interfaces/, DO NOT hand-create it
22
+ there — that directory is TypeDoc output and is wiped on every `npm run doc`
23
+ (`cleanOutputDir: true`). Instead, add the interface's source `.ts` file to
24
+ `typedocOptions.entryPoints` in ../../tsconfig.json and re-run `npm run doc`;
25
+ TypeDoc then generates the interface page. (Example: `PointsLog` /
26
+ `GemsDiamondsLog` live in `src/ActivityLog/ActivityLogEntry.ts`, which must be
27
+ an entry point for their pages to exist.)
23
28
  5. Add method to Table of Contents in appropriate category
24
29
  6. Follow the same format as other methods in PROTOCOL.md (Request section with ClassId and fields table, Response section with ClassId and fields table, JSON examples where helpful)
25
30
  7. All documentation must be in English