@xmobitea/gn-typescript-client 2.6.13-tsc → 2.6.14

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 (400) hide show
  1. package/AGENTS.md +37 -0
  2. package/README.MD +420 -1
  3. package/dist/gearn.js.client.js +71354 -0
  4. package/dist/gearn.js.client.min.js +2 -0
  5. package/dist/gearn.js.client.min.js.LICENSE.txt +14 -0
  6. package/dist/index.d.ts +30 -0
  7. package/dist/index.js +58386 -339
  8. package/dist/runtime/GNNetwork.d.ts +687 -3
  9. package/dist/runtime/GNNetworkAuthenticateApi.d.ts +327 -0
  10. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +1026 -0
  11. package/dist/runtime/GNNetworkCloudScriptApi.d.ts +141 -0
  12. package/dist/runtime/GNNetworkContentApi.d.ts +243 -0
  13. package/dist/runtime/GNNetworkDashboardApi.d.ts +221 -0
  14. package/dist/runtime/GNNetworkGamePlayerApi.d.ts +1033 -0
  15. package/dist/runtime/GNNetworkGroupApi.d.ts +783 -0
  16. package/dist/runtime/GNNetworkInventoryApi.d.ts +673 -0
  17. package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +1614 -6
  18. package/dist/runtime/GNNetworkMultiplayerApi.d.ts +234 -0
  19. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +309 -0
  20. package/dist/runtime/common/Action0.d.ts +30 -0
  21. package/dist/runtime/common/Action1.d.ts +32 -0
  22. package/dist/runtime/common/Action2.d.ts +21 -0
  23. package/dist/runtime/common/Action3.d.ts +16 -0
  24. package/dist/runtime/common/Action4.d.ts +17 -0
  25. package/dist/runtime/common/GNData.d.ts +368 -0
  26. package/dist/runtime/config/GNServerSettings.d.ts +442 -12
  27. package/dist/runtime/constant/Commands.d.ts +80 -0
  28. package/dist/runtime/constant/EventCode.d.ts +48 -0
  29. package/dist/runtime/constant/OperationCode.d.ts +74 -1
  30. package/dist/runtime/constant/ReturnCode.d.ts +72 -0
  31. package/dist/runtime/constant/enumType/ExecuteResponseStatus.d.ts +31 -0
  32. package/dist/runtime/constant/enumType/FriendStatus.d.ts +39 -0
  33. package/dist/runtime/constant/enumType/GoogleLoginType.d.ts +23 -0
  34. package/dist/runtime/constant/enumType/GroupStatus.d.ts +32 -0
  35. package/dist/runtime/constant/enumType/InvalidMemberType.d.ts +75 -0
  36. package/dist/runtime/constant/enumType/ItemType.d.ts +23 -0
  37. package/dist/runtime/constant/enumType/MatchStatus.d.ts +30 -0
  38. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.d.ts +24 -0
  39. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.d.ts +34 -0
  40. package/dist/runtime/constant/enumType/OwnerType.d.ts +40 -0
  41. package/dist/runtime/constant/enumType/PermissionDataItem.d.ts +22 -0
  42. package/dist/runtime/constant/enumType/PushPlatformType.d.ts +18 -0
  43. package/dist/runtime/constant/enumType/RequestRole.d.ts +32 -0
  44. package/dist/runtime/constant/enumType/RequestType.d.ts +70 -0
  45. package/dist/runtime/constant/enumType/StoreItemType.d.ts +21 -0
  46. package/dist/runtime/constant/enumType/StoreReceiveType.d.ts +30 -0
  47. package/dist/runtime/constant/errorCode/ErrorCode.d.ts +190 -8
  48. package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +35 -5
  49. package/dist/runtime/entity/DataMember.d.ts +338 -0
  50. package/dist/runtime/entity/GNMetadata.d.ts +101 -0
  51. package/dist/runtime/entity/InvalidMember.d.ts +28 -0
  52. package/dist/runtime/entity/OperationEvent.d.ts +49 -0
  53. package/dist/runtime/entity/OperationRequest.d.ts +108 -0
  54. package/dist/runtime/entity/OperationResponse.d.ts +110 -0
  55. package/dist/runtime/entity/models/AuthenticateModels.d.ts +115 -0
  56. package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +131 -0
  57. package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +131 -0
  58. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +625 -1
  59. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +972 -0
  60. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +332 -0
  61. package/dist/runtime/entity/models/CloudScriptModels.d.ts +109 -0
  62. package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +107 -0
  63. package/dist/runtime/entity/models/CloudScriptResponseModels.d.ts +46 -0
  64. package/dist/runtime/entity/models/ContentModels.d.ts +124 -0
  65. package/dist/runtime/entity/models/ContentRequestModels.d.ts +152 -0
  66. package/dist/runtime/entity/models/ContentResponseModels.d.ts +58 -0
  67. package/dist/runtime/entity/models/DashboardModels.d.ts +371 -8
  68. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +172 -0
  69. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +170 -0
  70. package/dist/runtime/entity/models/GamePlayerModels.d.ts +644 -1
  71. package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +959 -0
  72. package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +333 -1
  73. package/dist/runtime/entity/models/GenericModels.d.ts +94 -0
  74. package/dist/runtime/entity/models/GroupModels.d.ts +484 -2
  75. package/dist/runtime/entity/models/GroupRequestModels.d.ts +737 -0
  76. package/dist/runtime/entity/models/GroupResponseModels.d.ts +254 -0
  77. package/dist/runtime/entity/models/InventoryModels.d.ts +415 -0
  78. package/dist/runtime/entity/models/InventoryRequestModels.d.ts +629 -0
  79. package/dist/runtime/entity/models/InventoryResponseModels.d.ts +218 -0
  80. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1065 -3
  81. package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +1560 -6
  82. package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +532 -1
  83. package/dist/runtime/entity/models/MultiplayerModels.d.ts +199 -0
  84. package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +196 -0
  85. package/dist/runtime/entity/models/MultiplayerResponseModels.d.ts +74 -0
  86. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +262 -0
  87. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +268 -0
  88. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +98 -0
  89. package/dist/runtime/entity/request/CustomOperationRequest.d.ts +99 -0
  90. package/dist/runtime/entity/response/CustomOperationResponse.d.ts +118 -0
  91. package/dist/runtime/entity/response/GetAuthInfoResponse.d.ts +53 -0
  92. package/dist/runtime/entity/response/HealthCheckResponse.d.ts +56 -0
  93. package/dist/runtime/entity/response/UploadFileResponse.d.ts +19 -0
  94. package/dist/runtime/helper/CodeHelper.d.ts +122 -0
  95. package/dist/runtime/helper/ConverterService.d.ts +74 -0
  96. package/dist/runtime/helper/EnumUtility.d.ts +63 -0
  97. package/dist/runtime/helper/GNSupport.d.ts +64 -4
  98. package/dist/runtime/helper/GNUtils.d.ts +54 -0
  99. package/dist/runtime/helper/MessagePackConverterService.d.ts +48 -0
  100. package/dist/runtime/helper/OperationHelper.d.ts +51 -0
  101. package/dist/runtime/helper/StorageService.d.ts +48 -8
  102. package/dist/runtime/logger/GNDebug.d.ts +117 -0
  103. package/dist/runtime/networking/AuthenticateStatus.d.ts +64 -0
  104. package/dist/runtime/networking/IPeer.d.ts +83 -0
  105. package/dist/runtime/networking/NetworkingPeer.d.ts +256 -1
  106. package/dist/runtime/networking/OperationPending.d.ts +112 -0
  107. package/dist/runtime/networking/PeerBase.d.ts +231 -0
  108. package/dist/runtime/networking/handler/IServerEventHandler.d.ts +84 -0
  109. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +69 -0
  110. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +49 -0
  111. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +50 -0
  112. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +41 -0
  113. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +47 -0
  114. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +46 -0
  115. package/dist/runtime/networking/http/HttpPeer.d.ts +173 -0
  116. package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +87 -0
  117. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +113 -0
  118. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +145 -0
  119. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +198 -0
  120. package/dist/runtime/networking/socket/SocketPeer.d.ts +155 -0
  121. package/dist/runtime/typescript/ServiceUpdate.d.ts +46 -0
  122. package/docs/AI_CHEATSHEET.md +211 -0
  123. package/docs/COOKBOOK.md +912 -0
  124. package/docs/RULES.md +307 -0
  125. package/docs/ai-manifest.json +725 -0
  126. package/docs/guides/AUTHENTICATE.md +246 -0
  127. package/docs/guides/CHARACTER_PLAYER.md +439 -0
  128. package/docs/guides/CLOUDSCRIPT.md +335 -0
  129. package/docs/guides/COCOS_CREATOR_INTEGRATION.md +150 -0
  130. package/docs/guides/CONTENT.md +291 -0
  131. package/docs/guides/DASHBOARD.md +262 -0
  132. package/docs/guides/GAME_PLAYER.md +473 -0
  133. package/docs/guides/GROUP.md +412 -0
  134. package/docs/guides/INVENTORY.md +375 -0
  135. package/docs/guides/MASTER_PLAYER.md +458 -0
  136. package/docs/guides/MULTIPLAYER.md +303 -0
  137. package/docs/guides/STORE_INVENTORY.md +313 -0
  138. package/docs/llms-full.txt +43 -0
  139. package/docs/reference/API_AUTHENTICATE.md +75 -0
  140. package/docs/reference/API_CHARACTER_PLAYER.md +226 -0
  141. package/docs/reference/API_CLOUDSCRIPT.md +82 -0
  142. package/docs/reference/API_CONTENT.md +88 -0
  143. package/docs/reference/API_DASHBOARD.md +82 -0
  144. package/docs/reference/API_GAME_PLAYER.md +223 -0
  145. package/docs/reference/API_GROUP.md +187 -0
  146. package/docs/reference/API_INDEX.md +57 -0
  147. package/docs/reference/API_INVENTORY.md +169 -0
  148. package/docs/reference/API_MASTER_PLAYER.md +323 -0
  149. package/docs/reference/API_MULTIPLAYER.md +97 -0
  150. package/docs/reference/API_STORE_INVENTORY.md +109 -0
  151. package/docs/reference/CONFIG.md +107 -0
  152. package/docs/reference/DTO_INDEX.md +2543 -0
  153. package/docs/reference/ENUMS.md +433 -0
  154. package/docs/reference/ERROR_HANDLING.md +159 -0
  155. package/docs/reference/EVENTS.md +188 -0
  156. package/docs/reference/PERMISSION_RULES.md +55 -0
  157. package/docs/reference/dto/AUTHENTICATE.md +619 -0
  158. package/docs/reference/dto/CHARACTER_PLAYER.md +3686 -0
  159. package/docs/reference/dto/CLOUDSCRIPT.md +400 -0
  160. package/docs/reference/dto/CONTENT.md +548 -0
  161. package/docs/reference/dto/DASHBOARD.md +1980 -0
  162. package/docs/reference/dto/GAME_PLAYER.md +3631 -0
  163. package/docs/reference/dto/GENERIC.md +151 -0
  164. package/docs/reference/dto/GROUP.md +2842 -0
  165. package/docs/reference/dto/INVENTORY.md +2385 -0
  166. package/docs/reference/dto/MASTER_PLAYER.md +6024 -0
  167. package/docs/reference/dto/MULTIPLAYER.md +850 -0
  168. package/docs/reference/dto/STORE_INVENTORY.md +1262 -0
  169. package/llms.txt +47 -0
  170. package/package.json +11 -2
  171. package/GNServerSettings.debug.json +0 -21
  172. package/dist/runtime/GNNetwork.js +0 -273
  173. package/dist/runtime/GNNetworkAuthenticateApi.js +0 -122
  174. package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -968
  175. package/dist/runtime/GNNetworkCloudScriptApi.js +0 -104
  176. package/dist/runtime/GNNetworkContentApi.js +0 -140
  177. package/dist/runtime/GNNetworkDashboardApi.js +0 -170
  178. package/dist/runtime/GNNetworkGamePlayerApi.js +0 -950
  179. package/dist/runtime/GNNetworkGroupApi.js +0 -734
  180. package/dist/runtime/GNNetworkInventoryApi.js +0 -626
  181. package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -1550
  182. package/dist/runtime/GNNetworkMultiplayerApi.js +0 -194
  183. package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -266
  184. package/dist/runtime/common/Action0.js +0 -1
  185. package/dist/runtime/common/Action1.js +0 -1
  186. package/dist/runtime/common/Action2.js +0 -1
  187. package/dist/runtime/common/Action3.js +0 -1
  188. package/dist/runtime/common/Action4.js +0 -1
  189. package/dist/runtime/common/GNData.js +0 -209
  190. package/dist/runtime/config/GNServerSettings.js +0 -156
  191. package/dist/runtime/constant/Commands.js +0 -20
  192. package/dist/runtime/constant/EventCode.js +0 -8
  193. package/dist/runtime/constant/OperationCode.js +0 -221
  194. package/dist/runtime/constant/ReturnCode.js +0 -14
  195. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
  196. package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
  197. package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
  198. package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
  199. package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
  200. package/dist/runtime/constant/enumType/ItemType.js +0 -5
  201. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
  202. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
  203. package/dist/runtime/constant/enumType/OwnerType.js +0 -9
  204. package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
  205. package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
  206. package/dist/runtime/constant/enumType/RequestRole.js +0 -6
  207. package/dist/runtime/constant/enumType/RequestType.js +0 -15
  208. package/dist/runtime/constant/enumType/StoreItemType.js +0 -5
  209. package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
  210. package/dist/runtime/constant/errorCode/ErrorCode.js +0 -52
  211. package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -617
  212. package/dist/runtime/entity/DataMember.js +0 -208
  213. package/dist/runtime/entity/GNMetadata.js +0 -11
  214. package/dist/runtime/entity/InvalidMember.js +0 -1
  215. package/dist/runtime/entity/OperationEvent.js +0 -24
  216. package/dist/runtime/entity/OperationRequest.js +0 -42
  217. package/dist/runtime/entity/OperationResponse.js +0 -73
  218. package/dist/runtime/entity/models/AuthenticateModels.js +0 -426
  219. package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -188
  220. package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
  221. package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1433
  222. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1386
  223. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -376
  224. package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
  225. package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -138
  226. package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
  227. package/dist/runtime/entity/models/ContentModels.js +0 -203
  228. package/dist/runtime/entity/models/ContentRequestModels.js +0 -190
  229. package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
  230. package/dist/runtime/entity/models/DashboardModels.js +0 -3002
  231. package/dist/runtime/entity/models/DashboardRequestModels.js +0 -268
  232. package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
  233. package/dist/runtime/entity/models/GamePlayerModels.js +0 -1591
  234. package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1360
  235. package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
  236. package/dist/runtime/entity/models/GenericModels.js +0 -177
  237. package/dist/runtime/entity/models/GroupModels.js +0 -1135
  238. package/dist/runtime/entity/models/GroupRequestModels.js +0 -1048
  239. package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
  240. package/dist/runtime/entity/models/InventoryModels.js +0 -915
  241. package/dist/runtime/entity/models/InventoryRequestModels.js +0 -892
  242. package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
  243. package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2573
  244. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2228
  245. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
  246. package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
  247. package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -268
  248. package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
  249. package/dist/runtime/entity/models/StoreInventoryModels.js +0 -797
  250. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -372
  251. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -103
  252. package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
  253. package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
  254. package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
  255. package/dist/runtime/entity/response/HealthCheckResponse.js +0 -2
  256. package/dist/runtime/entity/response/UploadFileResponse.js +0 -2
  257. package/dist/runtime/helper/CodeHelper.js +0 -63
  258. package/dist/runtime/helper/ConverterService.js +0 -275
  259. package/dist/runtime/helper/EnumUtility.js +0 -33
  260. package/dist/runtime/helper/GNSupport.js +0 -47
  261. package/dist/runtime/helper/GNUtils.js +0 -72
  262. package/dist/runtime/helper/MessagePackConverterService.js +0 -9
  263. package/dist/runtime/helper/OperationHelper.js +0 -24
  264. package/dist/runtime/helper/StorageService.js +0 -62
  265. package/dist/runtime/logger/GNDebug.js +0 -29
  266. package/dist/runtime/networking/AuthenticateStatus.js +0 -14
  267. package/dist/runtime/networking/IPeer.js +0 -1
  268. package/dist/runtime/networking/NetworkingPeer.js +0 -210
  269. package/dist/runtime/networking/OperationPending.js +0 -53
  270. package/dist/runtime/networking/PeerBase.js +0 -161
  271. package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
  272. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
  273. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
  274. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
  275. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
  276. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
  277. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -43
  278. package/dist/runtime/networking/http/HttpPeer.js +0 -123
  279. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -9
  280. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -179
  281. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -130
  282. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -165
  283. package/dist/runtime/networking/socket/SocketPeer.js +0 -115
  284. package/dist/runtime/typescript/ServiceUpdate.js +0 -22
  285. package/docs/COCOS_CREATOR_INTEGRATION.md +0 -116
  286. package/examples/cocos-creator/GearNExample.ts.txt +0 -176
  287. package/srcSwift/Package.swift +0 -32
  288. package/srcSwift/Sources/GearN/runtime/GNNetwork.swift +0 -530
  289. package/srcSwift/Sources/GearN/runtime/GNNetworkAuthenticateApi.swift +0 -178
  290. package/srcSwift/Sources/GearN/runtime/GNNetworkCharacterPlayerApi.swift +0 -1162
  291. package/srcSwift/Sources/GearN/runtime/GNNetworkCloudScriptApi.swift +0 -154
  292. package/srcSwift/Sources/GearN/runtime/GNNetworkContentApi.swift +0 -208
  293. package/srcSwift/Sources/GearN/runtime/GNNetworkDashboardApi.swift +0 -240
  294. package/srcSwift/Sources/GearN/runtime/GNNetworkGamePlayerApi.swift +0 -1369
  295. package/srcSwift/Sources/GearN/runtime/GNNetworkGroupApi.swift +0 -1100
  296. package/srcSwift/Sources/GearN/runtime/GNNetworkInventoryApi.swift +0 -937
  297. package/srcSwift/Sources/GearN/runtime/GNNetworkMasterPlayerApi.swift +0 -2323
  298. package/srcSwift/Sources/GearN/runtime/GNNetworkMultiplayerApi.swift +0 -298
  299. package/srcSwift/Sources/GearN/runtime/GNNetworkStoreInventoryApi.swift +0 -397
  300. package/srcSwift/Sources/GearN/runtime/common/Action0.swift +0 -3
  301. package/srcSwift/Sources/GearN/runtime/common/Action1.swift +0 -3
  302. package/srcSwift/Sources/GearN/runtime/common/Action2.swift +0 -3
  303. package/srcSwift/Sources/GearN/runtime/common/Action3.swift +0 -3
  304. package/srcSwift/Sources/GearN/runtime/common/Action4.swift +0 -3
  305. package/srcSwift/Sources/GearN/runtime/common/GNArray.swift +0 -204
  306. package/srcSwift/Sources/GearN/runtime/common/GNData.swift +0 -108
  307. package/srcSwift/Sources/GearN/runtime/common/GNHashtable.swift +0 -200
  308. package/srcSwift/Sources/GearN/runtime/config/GNServerSettings.swift +0 -95
  309. package/srcSwift/Sources/GearN/runtime/constant/Commands.swift +0 -28
  310. package/srcSwift/Sources/GearN/runtime/constant/EventCode.swift +0 -10
  311. package/srcSwift/Sources/GearN/runtime/constant/OperationCode.swift +0 -252
  312. package/srcSwift/Sources/GearN/runtime/constant/ReturnCode.swift +0 -19
  313. package/srcSwift/Sources/GearN/runtime/constant/enumType/ExecuteResponseStatus.swift +0 -9
  314. package/srcSwift/Sources/GearN/runtime/constant/enumType/FriendStatus.swift +0 -8
  315. package/srcSwift/Sources/GearN/runtime/constant/enumType/GoogleLoginType.swift +0 -6
  316. package/srcSwift/Sources/GearN/runtime/constant/enumType/GroupStatus.swift +0 -8
  317. package/srcSwift/Sources/GearN/runtime/constant/enumType/InvalidMemberType.swift +0 -19
  318. package/srcSwift/Sources/GearN/runtime/constant/enumType/ItemType.swift +0 -6
  319. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingMemberStatus.swift +0 -7
  320. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingTicketStatus.swift +0 -9
  321. package/srcSwift/Sources/GearN/runtime/constant/enumType/OwnerType.swift +0 -10
  322. package/srcSwift/Sources/GearN/runtime/constant/enumType/PermissionDataItem.swift +0 -6
  323. package/srcSwift/Sources/GearN/runtime/constant/enumType/PushPlatformType.swift +0 -6
  324. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestRole.swift +0 -7
  325. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestType.swift +0 -16
  326. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreItemType.swift +0 -6
  327. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreReceiveType.swift +0 -9
  328. package/srcSwift/Sources/GearN/runtime/constant/errorCode/ErrorCode.swift +0 -58
  329. package/srcSwift/Sources/GearN/runtime/constant/parameterCode/ParameterCode.swift +0 -672
  330. package/srcSwift/Sources/GearN/runtime/entity/DataMember.swift +0 -196
  331. package/srcSwift/Sources/GearN/runtime/entity/GNMetadata.swift +0 -9
  332. package/srcSwift/Sources/GearN/runtime/entity/InvalidMember.swift +0 -11
  333. package/srcSwift/Sources/GearN/runtime/entity/OperationEvent.swift +0 -38
  334. package/srcSwift/Sources/GearN/runtime/entity/OperationHelper.swift +0 -28
  335. package/srcSwift/Sources/GearN/runtime/entity/OperationRequest.swift +0 -62
  336. package/srcSwift/Sources/GearN/runtime/entity/OperationResponse.swift +0 -98
  337. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateModels.swift +0 -351
  338. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateRequestModels.swift +0 -81
  339. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateResponseModels.swift +0 -108
  340. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerModels.swift +0 -1045
  341. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerRequestModels.swift +0 -821
  342. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerResponseModels.swift +0 -588
  343. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptModels.swift +0 -187
  344. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptRequestModels.swift +0 -84
  345. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptResponseModels.swift +0 -59
  346. package/srcSwift/Sources/GearN/runtime/entity/models/ContentModels.swift +0 -195
  347. package/srcSwift/Sources/GearN/runtime/entity/models/ContentRequestModels.swift +0 -116
  348. package/srcSwift/Sources/GearN/runtime/entity/models/ContentResponseModels.swift +0 -81
  349. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardModels.swift +0 -426
  350. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardRequestModels.swift +0 -160
  351. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardResponseModels.swift +0 -82
  352. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerModels.swift +0 -1334
  353. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerRequestModels.swift +0 -643
  354. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerResponseModels.swift +0 -213
  355. package/srcSwift/Sources/GearN/runtime/entity/models/GenericModels.swift +0 -171
  356. package/srcSwift/Sources/GearN/runtime/entity/models/GroupModels.swift +0 -850
  357. package/srcSwift/Sources/GearN/runtime/entity/models/GroupRequestModels.swift +0 -485
  358. package/srcSwift/Sources/GearN/runtime/entity/models/GroupResponseModels.swift +0 -165
  359. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryModels.swift +0 -679
  360. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryRequestModels.swift +0 -413
  361. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryResponseModels.swift +0 -141
  362. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerModels.swift +0 -378
  363. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerRequestModels.swift +0 -147
  364. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerResponseModels.swift +0 -318
  365. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerModels.swift +0 -319
  366. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerRequestModels.swift +0 -125
  367. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerResponseModels.swift +0 -45
  368. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryModels.swift +0 -633
  369. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryRequestModels.swift +0 -173
  370. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryResponseModels.swift +0 -61
  371. package/srcSwift/Sources/GearN/runtime/entity/request/CustomOperationRequest.swift +0 -42
  372. package/srcSwift/Sources/GearN/runtime/entity/response/CustomOperationResponse.swift +0 -49
  373. package/srcSwift/Sources/GearN/runtime/entity/response/GetAuthInfoResponse.swift +0 -43
  374. package/srcSwift/Sources/GearN/runtime/entity/response/HealthCheckResponse.swift +0 -86
  375. package/srcSwift/Sources/GearN/runtime/entity/response/UploadFileResponse.swift +0 -15
  376. package/srcSwift/Sources/GearN/runtime/helper/CodeHelper.swift +0 -107
  377. package/srcSwift/Sources/GearN/runtime/helper/ConverterService.swift +0 -98
  378. package/srcSwift/Sources/GearN/runtime/helper/EnumUtility.swift +0 -34
  379. package/srcSwift/Sources/GearN/runtime/helper/GNSupport.swift +0 -41
  380. package/srcSwift/Sources/GearN/runtime/helper/GNUtils.swift +0 -66
  381. package/srcSwift/Sources/GearN/runtime/helper/MessagePackConverterService.swift +0 -21
  382. package/srcSwift/Sources/GearN/runtime/helper/StorageService.swift +0 -29
  383. package/srcSwift/Sources/GearN/runtime/logger/GNDebug.swift +0 -33
  384. package/srcSwift/Sources/GearN/runtime/networking/AuthenticateStatus.swift +0 -24
  385. package/srcSwift/Sources/GearN/runtime/networking/IPeer.swift +0 -8
  386. package/srcSwift/Sources/GearN/runtime/networking/NetworkingPeer.swift +0 -368
  387. package/srcSwift/Sources/GearN/runtime/networking/OperationPending.swift +0 -81
  388. package/srcSwift/Sources/GearN/runtime/networking/PeerBase.swift +0 -228
  389. package/srcSwift/Sources/GearN/runtime/networking/handler/IServerEventHandler.swift +0 -20
  390. package/srcSwift/Sources/GearN/runtime/networking/http/HttpPeer.swift +0 -226
  391. package/srcSwift/Sources/GearN/runtime/networking/http/HttpTypes.swift +0 -24
  392. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingHttpPeerBase.swift +0 -13
  393. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingPeerUrlSession.swift +0 -125
  394. package/srcSwift/Sources/GearN/runtime/networking/request/NetRequest.swift +0 -19
  395. package/srcSwift/Sources/GearN/runtime/networking/response/NetResponse.swift +0 -13
  396. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingPeerSocketIOClient.swift +0 -244
  397. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingSocketPeerBase.swift +0 -59
  398. package/srcSwift/Sources/GearN/runtime/networking/socket/SocketPeer.swift +0 -136
  399. package/tsconfig-build.cocos.json +0 -31
  400. package/webpack.config.cocos.mjs +0 -78
@@ -1,4 +1,26 @@
1
+ /**
2
+ * Write-permission policy for a configured data-item key.
3
+ *
4
+ * The GearN backend lets each game declare its own custom-data
5
+ * keys (player data, statistics, currencies, tags). For each key
6
+ * the catalog can specify whether the value can be overwritten by
7
+ * subsequent normal-flow writes or whether it is treated as
8
+ * write-once / set-once.
9
+ *
10
+ * Surfaced in catalog metadata responses; the runtime enforces
11
+ * the rule when the matching `set*` operation runs.
12
+ */
1
13
  export declare enum PermissionDataItem {
14
+ /**
15
+ * Once written, the value cannot be replaced through normal
16
+ * write flows. Useful for first-creation timestamps,
17
+ * commitment tokens, or values that should only be reset by
18
+ * privileged admin operations.
19
+ */
2
20
  ReadOnly = 1,
21
+ /**
22
+ * Standard read/write semantics — subsequent writes replace
23
+ * the previous value.
24
+ */
3
25
  CanOverride = 2
4
26
  }
@@ -1,4 +1,22 @@
1
+ /**
2
+ * Mobile platform discriminator for push-notification registrations.
3
+ *
4
+ * Used when a player registers a device token with the GearN
5
+ * backend so the server can later route a push through the right
6
+ * platform service (FCM for Android, APNS for iOS).
7
+ *
8
+ * Surfaced on
9
+ * `MasterPlayerModels.PushNotificationRegistration.platformType`.
10
+ */
1
11
  export declare enum PushPlatformType {
12
+ /**
13
+ * Android — the registered token is an FCM token consumed by
14
+ * the backend's Firebase integration.
15
+ */
2
16
  Android = 1,
17
+ /**
18
+ * iOS — the registered token is an APNS token consumed by the
19
+ * backend's Apple push integration.
20
+ */
3
21
  iOS = 2
4
22
  }
@@ -1,5 +1,37 @@
1
+ /**
2
+ * Trust-boundary discriminator carried with every request.
3
+ *
4
+ * The backend evaluates the active auth token against a different
5
+ * permission table for each role, and the SDK uses the role to
6
+ * pick the correct secret key when calling routes that require
7
+ * one. The role is part of the wire frame produced by
8
+ * {@link OperationHelper.toSocketData} and the URL produced by
9
+ * {@link HttpPeer.send}.
10
+ *
11
+ * Each generated `*Api` namespace exposes the matching
12
+ * `.server` / `.admin` sub-namespaces when the underlying
13
+ * operations support those roles. Application code rarely picks
14
+ * a role manually — call the `.server.*` / `.admin.*` methods
15
+ * instead.
16
+ */
1
17
  export declare enum RequestRole {
18
+ /**
19
+ * Administrative scope. Reserved for operations tooling that
20
+ * authenticated as an admin account
21
+ * (`loginByAdminAccount`). The backend evaluates the token
22
+ * against the admin permission table.
23
+ */
2
24
  Admin = 1,
25
+ /**
26
+ * Trusted backend / server-to-server scope. Reserved for
27
+ * trusted backends like a game server or webhook handler
28
+ * authenticating with a server-side secret key.
29
+ */
3
30
  Server = 2,
31
+ /**
32
+ * Public client scope. Used by player applications running on
33
+ * untrusted devices. Most operations exposed by the SDK
34
+ * default to this role.
35
+ */
4
36
  Client = 3
5
37
  }
@@ -1,14 +1,84 @@
1
+ /**
2
+ * Logical request domain used to route an operation to the right
3
+ * backend handler.
4
+ *
5
+ * Every request frame carries a {@link RequestType} plus an
6
+ * {@link OperationCode}; together they uniquely identify the
7
+ * operation. The SDK uses {@link CodeHelper.getRequestTypeName} to
8
+ * convert the numeric value to the lowercase-first-letter string
9
+ * the backend expects on the wire (e.g. `RequestType.Authenticate`
10
+ * → `"authenticate"` in the URL or socket frame).
11
+ *
12
+ * The numeric ordinals are part of the stable wire contract
13
+ * because they are used by every generated `*OperationRequest`
14
+ * subclass. Do not reorder.
15
+ */
1
16
  export declare enum RequestType {
17
+ /**
18
+ * Custom application-defined operations — reserved for code
19
+ * that ships its own ad-hoc handlers on the backend. The
20
+ * SDK's typed wrappers do not use this value directly.
21
+ */
2
22
  Custom = 0,
23
+ /**
24
+ * Authentication, registration, refresh-token and identity
25
+ * link/unlink operations. Routed through
26
+ * `GNNetwork.authenticate`.
27
+ */
3
28
  Authenticate = 1,
29
+ /**
30
+ * Per-character profile, friend, group and notification
31
+ * operations. Routed through `GNNetwork.characterPlayer`.
32
+ */
4
33
  CharacterPlayer = 2,
34
+ /**
35
+ * Content / file metadata, upload-token and download-token
36
+ * operations. Routed through `GNNetwork.content`.
37
+ */
5
38
  Content = 3,
39
+ /**
40
+ * Account-level player operations (master-player profile,
41
+ * link state, friends, groups, notifications). Routed through
42
+ * `GNNetwork.gamePlayer`.
43
+ */
6
44
  GamePlayer = 4,
45
+ /**
46
+ * Group / guild metadata, member roles, message wall, group
47
+ * currencies, group statistics. Routed through
48
+ * `GNNetwork.group`.
49
+ */
7
50
  Group = 5,
51
+ /**
52
+ * Inventory item metadata, ownership ledger, statistics, audit
53
+ * log. Routed through `GNNetwork.inventory`.
54
+ */
8
55
  Inventory = 6,
56
+ /**
57
+ * Master-player account / identity / profile operations
58
+ * (one master player per GearN account). Routed through
59
+ * `GNNetwork.masterPlayer`.
60
+ */
9
61
  MasterPlayer = 7,
62
+ /**
63
+ * Store catalog, purchase, gift, receipt validation and audit
64
+ * operations. Routed through `GNNetwork.storeInventory`.
65
+ */
10
66
  StoreInventory = 8,
67
+ /**
68
+ * Dashboard / admin operations. Routed through
69
+ * `GNNetwork.dashboard`. The backend evaluates admin
70
+ * privileges from the auth token, so this domain is not
71
+ * limited to {@link RequestRole.Admin}.
72
+ */
11
73
  Dashboard = 9,
74
+ /**
75
+ * Matchmaking ticket lifecycle and match-history operations.
76
+ * Routed through `GNNetwork.multiplayer`.
77
+ */
12
78
  Multiplayer = 10,
79
+ /**
80
+ * CloudScript execute, publish and version-management
81
+ * operations. Routed through `GNNetwork.cloudScript`.
82
+ */
13
83
  CloudScript = 11
14
84
  }
@@ -1,4 +1,25 @@
1
+ /**
2
+ * Discriminator for store catalog entries that controls whether the
3
+ * item can be re-purchased.
4
+ *
5
+ * Distinct from {@link ItemType} — `ItemType` describes how the
6
+ * **inventory ledger** stacks instances, whereas `StoreItemType`
7
+ * controls what the **storefront** allows the player to buy.
8
+ *
9
+ * Configured at store-catalog setup time and surfaced on
10
+ * `StoreInventoryModels.StoreItemCatalog.storeItemType`.
11
+ */
1
12
  export declare enum StoreItemType {
13
+ /**
14
+ * One-time purchase — the storefront refuses subsequent buy
15
+ * attempts. Use for permanent unlocks (no-ads, premium pass,
16
+ * cosmetic packs).
17
+ */
2
18
  NonConsumable = 1,
19
+ /**
20
+ * Re-purchasable — players may buy and consume the item
21
+ * repeatedly. Use for currency packs, energy refills,
22
+ * single-use boosters.
23
+ */
3
24
  Consumable = 2
4
25
  }
@@ -1,7 +1,37 @@
1
+ /**
2
+ * Provenance of a store-issued item that ends up in a player's
3
+ * inventory.
4
+ *
5
+ * Recorded on `StoreInventoryModels.PurchaseLog.receiveType` so the
6
+ * application can distinguish soft-currency in-game purchases
7
+ * from hard-currency platform receipts. Hard-currency entries
8
+ * also carry the matching receipt validation data on the same log
9
+ * row.
10
+ */
1
11
  export declare enum StoreReceiveType {
12
+ /**
13
+ * Standard in-game purchase paid for with player currencies
14
+ * (gold, gems, soft currency, ...). No platform receipt.
15
+ */
2
16
  Buy = 1,
17
+ /**
18
+ * Free gift / reward issued by gameplay or by an admin (login
19
+ * bonus, mail attachment, support compensation).
20
+ */
3
21
  Present = 2,
22
+ /**
23
+ * Platform purchase verified through Apple App Store receipt
24
+ * validation.
25
+ */
4
26
  AppleAppStore = 3,
27
+ /**
28
+ * Platform purchase verified through Facebook Store receipt
29
+ * validation.
30
+ */
5
31
  FacebookStore = 4,
32
+ /**
33
+ * Platform purchase verified through Google Play receipt
34
+ * validation.
35
+ */
6
36
  GooglePlayStore = 5
7
37
  }
@@ -1,52 +1,234 @@
1
+ /**
2
+ * Domain-level error codes carried **inside successful responses**.
3
+ *
4
+ * These are **not** transport errors — for transport-level
5
+ * failures see {@link ReturnCode}. The two-tier model:
6
+ * - {@link ReturnCode} describes "did the request reach the server,
7
+ * pass validation, and produce a response?".
8
+ * - `ErrorCode` describes "given that the request was processed,
9
+ * what did the business logic return?".
10
+ *
11
+ * The SDK reads this value out of `ParameterCode.ErrorCode` on
12
+ * the response parameter bag inside
13
+ * {@link CustomOperationResponse.setupOperationResponse} and
14
+ * exposes it as `responseObject.errorCode`. Application code
15
+ * checks both layers in order:
16
+ *
17
+ * ```ts
18
+ * if (response.hasReturnCodeError()) return showTransportError(response);
19
+ * if (response.errorCode !== ErrorCode.Ok) return showDomainError(response);
20
+ * // success path: read response.responseData
21
+ * ```
22
+ *
23
+ * The error catalogue is intentionally large because the GearN
24
+ * backend uses fine-grained codes so the application can pick the
25
+ * right localised user message. Most codes are self-explanatory
26
+ * but the per-entry comments below capture any non-obvious
27
+ * scenarios (rate-limit triggers, prerequisite chains, ...).
28
+ *
29
+ * Wire-protocol contract: the numeric values are persisted in
30
+ * server logs and analytics so reordering them is a
31
+ * coordinated-change operation.
32
+ */
1
33
  export declare class ErrorCode {
34
+ /**
35
+ * The business operation completed successfully.
36
+ */
2
37
  static readonly Ok: number;
38
+ /**
39
+ * The requested username/account does not exist.
40
+ */
3
41
  static readonly AccountNotFound: number;
42
+ /**
43
+ * The provided account password is incorrect.
44
+ */
4
45
  static readonly AccountPasswordWrong: number;
46
+ /**
47
+ * The requested username already exists and cannot be created again.
48
+ */
5
49
  static readonly AccountUsernameExists: number;
50
+ /**
51
+ * The provided token could not be verified or decoded.
52
+ */
6
53
  static readonly VerifyTokenError: number;
54
+ /**
55
+ * An external/provider verification step failed.
56
+ */
7
57
  static readonly VerifyFailed: number;
58
+ /**
59
+ * The target character player does not exist.
60
+ */
8
61
  static readonly CharacterPlayerNotFound: number;
62
+ /**
63
+ * The target wallet or owner does not have enough currency to complete the operation.
64
+ */
9
65
  static readonly NotEnoughCurrency: number;
66
+ /**
67
+ * The requested key does not exist in the target data set.
68
+ */
10
69
  static readonly KeyNotFound: number;
70
+ /**
71
+ * The target inventory item does not exist.
72
+ */
11
73
  static readonly ItemNotFound: number;
74
+ /**
75
+ * The referenced catalog id does not exist.
76
+ */
12
77
  static readonly CatalogIdNotFound: number;
78
+ /**
79
+ * The target group does not exist.
80
+ */
13
81
  static readonly GroupNotFound: number;
82
+ /**
83
+ * The resolved owner entity does not exist.
84
+ */
14
85
  static readonly OwnerNotFound: number;
86
+ /**
87
+ * The referenced class id does not exist.
88
+ */
15
89
  static readonly ClassIdNotFound: number;
90
+ /**
91
+ * The target group member or relationship member does not exist.
92
+ */
16
93
  static readonly MemberNotFound: number;
94
+ /**
95
+ * The player is not currently a member of the target group.
96
+ */
17
97
  static readonly PlayerNotMember: number;
98
+ /**
99
+ * The target game player does not exist.
100
+ */
18
101
  static readonly GamePlayerNotFound: number;
102
+ /**
103
+ * The requested file metadata or physical file does not exist.
104
+ */
19
105
  static readonly FileNotFound: number;
106
+ /**
107
+ * The file metadata exists but the file content has not been uploaded yet.
108
+ */
20
109
  static readonly FileNotUpload: number;
110
+ /**
111
+ * The requested owner type is not supported by the target operation.
112
+ */
21
113
  static readonly OwnerTypeNotSupport: number;
114
+ /**
115
+ * The item cannot be stacked, so amount-based operations are invalid.
116
+ */
22
117
  static readonly ItemNotStackable: number;
118
+ /**
119
+ * The target game does not exist.
120
+ */
23
121
  static readonly GameNotFound: number;
24
- static readonly GameIsExists: number;
122
+ /**
123
+ * The game already exists and cannot be created again with the same identity.
124
+ */
125
+ static readonly GameExists: number;
126
+ /**
127
+ * The requested secret-info record does not exist.
128
+ */
25
129
  static readonly SecretInfoNotFound: number;
26
- static readonly SecretInfoIsExists: number;
130
+ /**
131
+ * The secret-info record already exists.
132
+ */
133
+ static readonly SecretInfoExists: number;
134
+ /**
135
+ * The requested external identity is not linked to the current account.
136
+ */
27
137
  static readonly ExternalNotLinked: number;
138
+ /**
139
+ * The external identity is already linked to a different account.
140
+ */
28
141
  static readonly ExternalLinkedOtherAccount: number;
142
+ /**
143
+ * The external provider/value pair conflicts with an existing linked value.
144
+ */
29
145
  static readonly ExternalLinkedOtherValue: number;
146
+ /**
147
+ * The target master player does not exist.
148
+ */
30
149
  static readonly MasterPlayerNotFound: number;
150
+ /**
151
+ * The target store item does not exist.
152
+ */
31
153
  static readonly StoreItemNotFound: number;
154
+ /**
155
+ * The buyer entity does not exist.
156
+ */
32
157
  static readonly BuyerNotFound: number;
158
+ /**
159
+ * The requested store item cannot be purchased in the current state or by the current buyer.
160
+ */
33
161
  static readonly CanNotBuyThisStoreItem: number;
162
+ /**
163
+ * An exception occurred while validating a platform receipt.
164
+ */
34
165
  static readonly ExceptionWhenValidateReceipt: number;
166
+ /**
167
+ * The target store/provider configuration is invalid.
168
+ */
35
169
  static readonly StoreInvalid: number;
170
+ /**
171
+ * The provided purchase receipt is invalid.
172
+ */
36
173
  static readonly ReceiptInvalid: number;
37
- static readonly StoreItemHadBeenRemove: number;
38
- static readonly DisplayNameHasUse: number;
174
+ /**
175
+ * The target store item was removed and can no longer be used for purchase flows.
176
+ */
177
+ static readonly StoreItemRemoved: number;
178
+ /**
179
+ * The requested display name is already in use.
180
+ */
181
+ static readonly DisplayNameUsed: number;
182
+ /**
183
+ * The target player is currently banned.
184
+ */
39
185
  static readonly PlayerBan: number;
186
+ /**
187
+ * The target matchmaking ticket does not exist.
188
+ */
40
189
  static readonly MatchmakingTicketNotFound: number;
190
+ /**
191
+ * The matchmaking ticket already completed and cannot be joined or modified further.
192
+ */
41
193
  static readonly MatchmakingTicketAlreadyCompleted: number;
42
- static readonly MatchmakingPlayerHasNotJoinedTicket: number;
194
+ /**
195
+ * The player is not a member of the referenced matchmaking ticket.
196
+ */
197
+ static readonly MatchmakingPlayerNotJoinedTicket: number;
198
+ /**
199
+ * The requested match does not exist.
200
+ */
43
201
  static readonly MatchNotFound: number;
44
- static readonly MatchmakingPlayerHasJoinedOtherTicket: number;
202
+ /**
203
+ * The player already joined a different matchmaking ticket that conflicts with this request.
204
+ */
205
+ static readonly MatchmakingPlayerJoinedOtherTicket: number;
206
+ /**
207
+ * The referenced matchmaking queue does not exist.
208
+ */
45
209
  static readonly MatchmakingQueueNotFound: number;
210
+ /**
211
+ * The requested ticket size violates queue configuration.
212
+ */
46
213
  static readonly TicketSizeError: number;
214
+ /**
215
+ * CloudScript execution failed inside the target function.
216
+ */
47
217
  static readonly ExecuteError: number;
218
+ /**
219
+ * The requested CloudScript version is invalid or unavailable.
220
+ */
48
221
  static readonly VersionInvalid: number;
222
+ /**
223
+ * The provided email address is syntactically or semantically invalid.
224
+ */
49
225
  static readonly EmailInvalid: number;
50
- static readonly StoreItemHadPurchaseAndNonConsumable: number;
51
- static readonly StoreItemHadExists: number;
226
+ /**
227
+ * The buyer already owns this non-consumable store item.
228
+ */
229
+ static readonly StoreItemPurchasedAndNonConsumable: number;
230
+ /**
231
+ * The store item already exists and cannot be created again with the same identity.
232
+ */
233
+ static readonly StoreItemExists: number;
52
234
  }
@@ -1,3 +1,35 @@
1
+ /**
2
+ * Wire-level parameter key catalogue.
3
+ *
4
+ * Every value here is the literal string used as a dictionary key
5
+ * inside the {@link GNHashtable} payloads exchanged between the
6
+ * SDK and the GearN backend. The `@*DataMember({ code: ... })`
7
+ * decorators on the model classes consume these constants to map
8
+ * a TypeScript property name onto the matching wire key (and the
9
+ * inverse for deserialisation).
10
+ *
11
+ * The constants are also used directly by:
12
+ * - {@link PeerBase.onResponseHandler} when it reads
13
+ * `ReturnCode`, `Parameters`, `DebugMessage`, `ResponseId`,
14
+ * `InvalidRequestParameters` from the raw response.
15
+ * - The auth-token / user-id / `Ts` mirror inside the same handler.
16
+ * - {@link SocketPeer.onEventHandler} when it pulls `EventCode`
17
+ * and `Parameters` from a server-pushed event frame.
18
+ *
19
+ * Wire-protocol contract: renaming a value here without a
20
+ * coordinated backend change breaks every operation that uses
21
+ * it. The list grows over time but ordering is irrelevant — keys
22
+ * are looked up by name, not by index.
23
+ *
24
+ * Reading the entries: each constant is named in `PascalCase` and
25
+ * holds the matching `camelCase` wire key. Use the matching
26
+ * `@*DataMember` decorator to bind a property to a key:
27
+ *
28
+ * ```ts
29
+ * @StringDataMember({ code: ParameterCode.Username, mustNonNull: true })
30
+ * public username: string;
31
+ * ```
32
+ */
1
33
  export declare class ParameterCode {
2
34
  static readonly AuthToken: string;
3
35
  static readonly Ts: string;
@@ -205,7 +237,7 @@ export declare class ParameterCode {
205
237
  static readonly Group: string;
206
238
  static readonly Inventory: string;
207
239
  static readonly StoreInventory: string;
208
- static readonly MasterAdmin: string;
240
+ static readonly Dashboard: string;
209
241
  static readonly LoginByAccount: string;
210
242
  static readonly LoginByAndroidDeviceId: string;
211
243
  static readonly LoginByApple: string;
@@ -260,7 +292,7 @@ export declare class ParameterCode {
260
292
  static readonly SetDisplayName: string;
261
293
  static readonly GetTsCreate: string;
262
294
  static readonly GetIpAddressCreate: string;
263
- static readonly SetTsLastLogin: string;
295
+ static readonly UpdateTsLastLogin: string;
264
296
  static readonly GetTsLastLogin: string;
265
297
  static readonly SetPlayerBan: string;
266
298
  static readonly GetPlayerBan: string;
@@ -611,7 +643,5 @@ export declare class ParameterCode {
611
643
  static readonly OwnerIds: string;
612
644
  static readonly GetStoreUsed: string;
613
645
  static readonly RemoveStoreUsed: string;
614
- static readonly AdminSecretKeys: string;
615
- static readonly ServerSecretKeys: string;
616
- static readonly PlayerSecretKeys: string;
646
+ static readonly SecretKeys: string;
617
647
  }