@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,32 @@
1
+ /**
2
+ * Canonical operation-code strings recognised by the GearN backend.
3
+ *
4
+ * Every typed `*OperationRequest` wrapper sets one of these values
5
+ * as its `operationCode`, the SDK transports embed the value into
6
+ * the wire frame produced by {@link OperationHelper.toSocketData}
7
+ * and the URL produced by {@link HttpPeer.send}, and log lines
8
+ * surface the same string for traceability.
9
+ *
10
+ * Grouping inside this class mirrors the backend's capability
11
+ * areas (dashboard / authenticate / link / unlink / character /
12
+ * game-player / master-player / group / inventory / store /
13
+ * multiplayer / cloudscript / content). Each group maps roughly
14
+ * to a {@link RequestType} value and to a public `*Api`
15
+ * namespace on {@link GNNetwork}, but the mapping is not strictly
16
+ * one-to-one: dashboard operations span several `*Api` instances
17
+ * (`.dashboard`, `.authenticate.admin`, ...) because the backend
18
+ * resolves the role from the auth token rather than from a
19
+ * dedicated request type.
20
+ *
21
+ * Adding a new code: extend the matching group and ship a typed
22
+ * wrapper that references the new name, plus the matching method
23
+ * on the relevant `*Api` class. Renaming an existing code requires
24
+ * a coordinated backend change.
25
+ */
1
26
  export declare class OperationCode {
27
+ /**
28
+ * Dashboard and administrative maintenance operations.
29
+ */
2
30
  static readonly LoginByAdminAccount: string;
3
31
  static readonly ChangePasswordAdminAccount: string;
4
32
  static readonly GetGameList: string;
@@ -25,6 +53,9 @@ export declare class OperationCode {
25
53
  static readonly GetBackupStatisticsLeaderboardVersion: string;
26
54
  static readonly GetServerGameData: string;
27
55
  static readonly DeleteInDatabase: string;
56
+ /**
57
+ * Client authentication and account-bootstrap operations.
58
+ */
28
59
  static readonly LoginByAccount: string;
29
60
  static readonly LoginByAndroidDeviceId: string;
30
61
  static readonly LoginByApple: string;
@@ -40,6 +71,9 @@ export declare class OperationCode {
40
71
  static readonly LoginByWindowsDeviceId: string;
41
72
  static readonly LoginByWindowsPhoneDeviceId: string;
42
73
  static readonly RegisterAccount: string;
74
+ /**
75
+ * External identity link operations for existing accounts.
76
+ */
43
77
  static readonly LinkAccount: string;
44
78
  static readonly LinkAndroidDeviceId: string;
45
79
  static readonly LinkApple: string;
@@ -54,6 +88,9 @@ export declare class OperationCode {
54
88
  static readonly LinkMacOSDeviceId: string;
55
89
  static readonly LinkWindowsDeviceId: string;
56
90
  static readonly LinkWindowsPhoneDeviceId: string;
91
+ /**
92
+ * External identity unlink operations for existing accounts.
93
+ */
57
94
  static readonly UnlinkAccount: string;
58
95
  static readonly UnlinkAndroidDeviceId: string;
59
96
  static readonly UnlinkApple: string;
@@ -68,6 +105,9 @@ export declare class OperationCode {
68
105
  static readonly UnlinkMacOSDeviceId: string;
69
106
  static readonly UnlinkWindowsDeviceId: string;
70
107
  static readonly UnlinkWindowsPhoneDeviceId: string;
108
+ /**
109
+ * Shared profile metadata operations reused across player-like entities.
110
+ */
71
111
  static readonly AddSegment: string;
72
112
  static readonly RemoveSegment: string;
73
113
  static readonly GetSegment: string;
@@ -96,6 +136,9 @@ export declare class OperationCode {
96
136
  static readonly GetCustomData: string;
97
137
  static readonly SetPlayerData: string;
98
138
  static readonly GetPlayerData: string;
139
+ /**
140
+ * Composite profile and search operations.
141
+ */
99
142
  static readonly GetPlayerInformation: string;
100
143
  static readonly GetPlayersWithApple: string;
101
144
  static readonly GetPlayersWithFacebook: string;
@@ -144,7 +187,7 @@ export declare class OperationCode {
144
187
  static readonly GetItemInformation: string;
145
188
  static readonly GetAmount: string;
146
189
  static readonly GetItemType: string;
147
- static readonly SetTsLastLogin: string;
190
+ static readonly UpdateTsLastLogin: string;
148
191
  static readonly SetRemoveStatus: string;
149
192
  static readonly SetAmount: string;
150
193
  static readonly RemoveGroup: string;
@@ -161,6 +204,9 @@ export declare class OperationCode {
161
204
  static readonly SetOwner: string;
162
205
  static readonly RemoveGroupItem: string;
163
206
  static readonly GetClassId: string;
207
+ /**
208
+ * Store catalog and commerce operations.
209
+ */
164
210
  static readonly GetStoreItemInformation: string;
165
211
  static readonly GetStoreItemsWithTag: string;
166
212
  static readonly CreateStoreItem: string;
@@ -173,6 +219,9 @@ export declare class OperationCode {
173
219
  static readonly GetFriendStatisticsLeaderboard: string;
174
220
  static readonly SetEmail: string;
175
221
  static readonly GetEmail: string;
222
+ /**
223
+ * Content/file metadata upload and download operations.
224
+ */
176
225
  static readonly CreateNewFileUploadInfo: string;
177
226
  static readonly GetFileUploadInfo: string;
178
227
  static readonly RequestDownloadFileUploadInfo: string;
@@ -180,6 +229,9 @@ export declare class OperationCode {
180
229
  static readonly GetFileUploadInfoList: string;
181
230
  static readonly SetStoreItemInformation: string;
182
231
  static readonly RefreshAuthToken: string;
232
+ /**
233
+ * Multiplayer matchmaking and match-query operations.
234
+ */
183
235
  static readonly CancelAllMatchmakingTicket: string;
184
236
  static readonly CancelMatchmakingTicket: string;
185
237
  static readonly CreateMatchmakingTicket: string;
@@ -189,11 +241,17 @@ export declare class OperationCode {
189
241
  static readonly JoinMatchmakingTicket: string;
190
242
  static readonly ListMatchmakingTicketsForPlayer: string;
191
243
  static readonly GetCurrencyLeaderboard: string;
244
+ /**
245
+ * CloudScript management and execution operations.
246
+ */
192
247
  static readonly ExecuteFunction: string;
193
248
  static readonly GetFunctions: string;
194
249
  static readonly AddFunction: string;
195
250
  static readonly EditFunction: string;
196
251
  static readonly GetFunction: string;
252
+ /**
253
+ * Provider-specific platform login/link/unlink and lookup operations.
254
+ */
197
255
  static readonly LoginByGooglePlayGameService: string;
198
256
  static readonly LoginByGameCenter: string;
199
257
  static readonly LinkGooglePlayGameService: string;
@@ -204,18 +262,33 @@ export declare class OperationCode {
204
262
  static readonly GetPlayersWithGameCenter: string;
205
263
  static readonly GetLastLoginLeaderboard: string;
206
264
  static readonly GetCreateLeaderboard: string;
265
+ /**
266
+ * Administrative multiplayer inspection operations.
267
+ */
207
268
  static readonly GetAllMatchmakingTicket: string;
208
269
  static readonly GetAllMatch: string;
270
+ /**
271
+ * Event-delivery, audit-log, and realtime utility operations.
272
+ */
209
273
  static readonly SendSocketOperationEvent: string;
210
274
  static readonly GetStatisticsLog: string;
211
275
  static readonly GetCurrencyLog: string;
276
+ /**
277
+ * Store gifting and store-log inspection operations.
278
+ */
212
279
  static readonly PresentStoreItem: string;
213
280
  static readonly GetStoreLog: string;
281
+ /**
282
+ * Outbound email and push-notification operations.
283
+ */
214
284
  static readonly SendEmail: string;
215
285
  static readonly SendPushNotification: string;
216
286
  static readonly AddPushNotification: string;
217
287
  static readonly RemovePushNotification: string;
218
288
  static readonly GetPushNotification: string;
289
+ /**
290
+ * Post-purchase store-usage tracking operations.
291
+ */
219
292
  static readonly GetStoreUsed: string;
220
293
  static readonly RemoveStoreUsed: string;
221
294
  }
@@ -1,14 +1,86 @@
1
+ /**
2
+ * Transport-level return codes surfaced through
3
+ * {@link OperationResponse.getReturnCode}.
4
+ *
5
+ * These codes describe **transport**, gateway, authorisation,
6
+ * validation, throttling and operation-level execution status —
7
+ * **not** business-domain errors. Domain errors travel inside
8
+ * successful responses through {@link ErrorCode} and are checked
9
+ * only after the transport return code is `Ok`.
10
+ *
11
+ * Wire-protocol contract: the codes here are mirrored verbatim
12
+ * onto every response, plus synthesised by
13
+ * {@link PeerBase.service} for client-side timeouts. Adding a new
14
+ * value requires a coordinated backend change.
15
+ *
16
+ * Read order for callers:
17
+ * 1. Inspect {@link OperationResponse.getReturnCode} (or the
18
+ * typed wrapper's {@link CustomOperationResponse.hasReturnCodeError}).
19
+ * Anything other than {@link Ok} indicates a transport failure.
20
+ * 2. When the return code is {@link Ok}, switch to the business
21
+ * layer and inspect `errorCode` (from {@link ErrorCode}) on the
22
+ * typed response.
23
+ *
24
+ * Value conventions:
25
+ * - `1`: the request completed successfully at the protocol level.
26
+ * - `0`: the request failed without a more specific mapped return
27
+ * code.
28
+ * - negative values: the request was rejected, timed out, or
29
+ * failed before a valid business response could be produced.
30
+ */
1
31
  export declare class ReturnCode {
32
+ /**
33
+ * The selected secret key is missing, wrong, or does not match the current route/game context.
34
+ */
2
35
  static readonly SecretInvalid: number;
36
+ /**
37
+ * The serialized request payload exceeded the maximum size accepted by the backend.
38
+ */
3
39
  static readonly MaxSizeRequestReject: number;
40
+ /**
41
+ * The backend rejected the request because the current caller exceeded a request-rate limit.
42
+ */
4
43
  static readonly MaxRequestReject: number;
44
+ /**
45
+ * The backend rejected the request because the current concurrent-user/session limit was exceeded.
46
+ */
5
47
  static readonly MaxCCUReject: number;
48
+ /**
49
+ * The target operation exists, but the caller is not authorized for the selected role or target resource.
50
+ */
6
51
  static readonly OperationNotAuthorized: number;
52
+ /**
53
+ * The request shape or one or more request-member values are invalid.
54
+ * When available, inspect `invalidMembers` for field-level details.
55
+ */
7
56
  static readonly InvalidRequestParameters: number;
57
+ /**
58
+ * The requested operation code is unknown or is not valid for the selected request type/role.
59
+ */
8
60
  static readonly OperationInvalid: number;
61
+ /**
62
+ * The backend hit an unhandled internal failure before producing a valid business response.
63
+ */
9
64
  static readonly InternalServerError: number;
65
+ /**
66
+ * The operation is known and the secret key is valid, but the permission rules attached
67
+ * to the current secret key do not allow this operation in the current target context.
68
+ * This usually maps to missing `selfEnable`, `otherSelfEnable`, `serverSelfEnable`,
69
+ * or `adminSelfEnable` permission for the resolved request.
70
+ */
10
71
  static readonly OperationNotAllow: number;
72
+ /**
73
+ * The request timed out before a response was received.
74
+ * This code may be synthesized by the SDK timeout layer as well as returned by the backend.
75
+ */
11
76
  static readonly OperationTimeout: number;
77
+ /**
78
+ * The request failed, but no more specific low-level return code was mapped.
79
+ */
12
80
  static readonly UnknownError: number;
81
+ /**
82
+ * The request completed successfully at protocol level and produced a response payload.
83
+ * Callers must still validate the business `errorCode` in that payload.
84
+ */
13
85
  static readonly Ok: number;
14
86
  }
@@ -1,7 +1,38 @@
1
+ /**
2
+ * Result discriminator returned by `executeFunction*` operations on
3
+ * `GNNetwork.cloudScript`.
4
+ *
5
+ * CloudScript runs server-side scripts on demand — this enum
6
+ * distinguishes the four well-known failure modes from a clean
7
+ * success so the application can show the right error message.
8
+ *
9
+ * Surfaced on
10
+ * `CloudScriptModels.ExecuteFunctionResponseData.executeResponseStatus`.
11
+ */
1
12
  export declare enum ExecuteResponseStatus {
13
+ /**
14
+ * Function ran to completion and returned a result. Inspect
15
+ * `executeResult` for the script's output.
16
+ */
2
17
  Ok = 1,
18
+ /**
19
+ * Function ran but threw an exception. Inspect
20
+ * `executeException` / `debugMessage` for the captured error.
21
+ */
3
22
  Exception = 2,
23
+ /**
24
+ * The script version exists but does not export a function
25
+ * with the requested name.
26
+ */
4
27
  FunctionNameNotFound = 3,
28
+ /**
29
+ * The selected script version is invalid, missing, or has
30
+ * been retired.
31
+ */
5
32
  VersionInvalid = 4,
33
+ /**
34
+ * The function exceeded the configured execution-time limit
35
+ * and was aborted.
36
+ */
6
37
  Timeout = 5
7
38
  }
@@ -1,6 +1,45 @@
1
+ /**
2
+ * Lifecycle states for a friend relationship between two
3
+ * GearN players.
4
+ *
5
+ * The state describes the relationship from the perspective of the
6
+ * **viewing** player — the same friendship reads as
7
+ * `WaitingAccept` for the side that received the invite and
8
+ * `SentRequestAndWaitingAccept` for the side that sent it.
9
+ *
10
+ * The numeric values are persisted into the
11
+ * {@link CharacterPlayerFriendUpdate} / {@link GamePlayerFriendUpdate}
12
+ * payloads (decoded from the wire as `FriendItem.status`) and are
13
+ * therefore part of the stable backend contract — do not reorder.
14
+ *
15
+ * Typical state transitions:
16
+ * - `NotFriend` → `SentRequestAndWaitingAccept` after the local
17
+ * player issues `acceptCharacterPlayerFriend` /
18
+ * `addGamePlayerFriend` (or equivalent).
19
+ * - `WaitingAccept` → `Friend` once the remote player accepts.
20
+ * - Any state → `NotFriend` after a `removeFriend` call.
21
+ */
1
22
  export declare enum FriendStatus {
23
+ /**
24
+ * Both sides have accepted; the relationship is active.
25
+ */
2
26
  Friend = 1,
27
+ /**
28
+ * The viewing player received an invite and has not acted on
29
+ * it yet. Use this state to show "Accept / Decline" UI.
30
+ */
3
31
  WaitingAccept = 2,
32
+ /**
33
+ * The viewing player sent an invite and is waiting for the
34
+ * other side to accept. Use this state to show
35
+ * "Cancel request" UI.
36
+ */
4
37
  SentRequestAndWaitingAccept = 3,
38
+ /**
39
+ * No friendship relation. This is the implicit value when the
40
+ * backend has no row at all — the SDK still includes it
41
+ * explicitly so list queries can express "all known players,
42
+ * none friended yet".
43
+ */
5
44
  NotFriend = 4
6
45
  }
@@ -1,4 +1,27 @@
1
+ /**
2
+ * Discriminator for the Google credential supplied to
3
+ * `loginByGoogle` / `linkGoogle`.
4
+ *
5
+ * Google's identity stack issues two distinct token types. The
6
+ * GearN backend cannot tell them apart from the wire, so the
7
+ * client passes this enum alongside the `token` field to indicate
8
+ * which validation path the backend should run.
9
+ *
10
+ * Used by {@link AuthenticateModels.LoginByGoogleRequestData.type}
11
+ * and the matching `linkGoogle` model.
12
+ */
1
13
  export declare enum GoogleLoginType {
14
+ /**
15
+ * OAuth 2.0 access token obtained from a server-side or client
16
+ * SDK login flow. Validated by the backend by introspecting
17
+ * the token against Google's userinfo endpoint.
18
+ */
2
19
  AccessToken = 1,
20
+ /**
21
+ * OpenID Connect ID token (JWT). Validated by the backend by
22
+ * verifying the signature against Google's published JWKS.
23
+ * Preferred for native sign-in flows because the JWT contains
24
+ * the user identity directly.
25
+ */
3
26
  IdToken = 2
4
27
  }
@@ -1,6 +1,38 @@
1
+ /**
2
+ * Lifecycle states for a player's membership in a group.
3
+ *
4
+ * Mirrors {@link FriendStatus} but for group membership. The state
5
+ * describes the relationship from the perspective of the **viewing**
6
+ * player — the same pending invitation reads as `WaitingAccept` for
7
+ * the player that received it and `SentRequestAndWaitingAccept` for
8
+ * the player that asked to join.
9
+ *
10
+ * The numeric values are persisted into
11
+ * {@link CharacterPlayerGroupUpdate} / {@link GamePlayerGroupUpdate}
12
+ * payloads (decoded as `GroupItem.status`) and are part of the
13
+ * stable backend contract.
14
+ */
1
15
  export declare enum GroupStatus {
16
+ /**
17
+ * The player is an active member of the group with full
18
+ * membership privileges (subject to role).
19
+ */
2
20
  Member = 1,
21
+ /**
22
+ * The player received an invitation and has not acted on it
23
+ * yet. Use to show "Accept / Decline" UI.
24
+ */
3
25
  WaitingAccept = 2,
26
+ /**
27
+ * The player asked to join the group and is waiting for an
28
+ * existing member with the right permission to accept. Use to
29
+ * show "Cancel request" UI.
30
+ */
4
31
  SentRequestAndWaitingAccept = 3,
32
+ /**
33
+ * No active membership. Like {@link FriendStatus.NotFriend},
34
+ * this state is explicit so list queries can include
35
+ * non-member players too.
36
+ */
5
37
  NotMember = 4
6
38
  }
@@ -1,17 +1,92 @@
1
+ /**
2
+ * Validation failure categories used by the GearN backend when it
3
+ * rejects a malformed request.
4
+ *
5
+ * Each entry describes **why** a specific request parameter failed
6
+ * validation. The backend ships a list of `[code, type]` pairs in
7
+ * the `invalidRequestParameters` array of a response with
8
+ * `ReturnCode.InvalidRequestParameters`; the SDK decodes those
9
+ * pairs into typed {@link InvalidMember} entries accessible via
10
+ * {@link OperationResponse.getInvalidMembers}.
11
+ *
12
+ * The categories cover the validation rules declared by the
13
+ * `@*DataMember` decorator family:
14
+ * - `*Null` — `mustNonNull = true` was violated.
15
+ * - `*MinLength` / `*MaxLength` — string / hashtable / array
16
+ * length bounds.
17
+ * - `Number*` — numeric range / integer constraints.
18
+ * - `DataRequired` — the parameter was missing entirely.
19
+ * - `TypeInvalid` — the value was present but had the wrong
20
+ * runtime type.
21
+ * - `UnknownError` — backend-side rejection that does not map to
22
+ * any of the above.
23
+ */
1
24
  export declare enum InvalidMemberType {
25
+ /**
26
+ * Catch-all category for backend-side validation rejections
27
+ * that do not fit any of the structured cases below.
28
+ */
2
29
  UnknownError = 1,
30
+ /**
31
+ * The parameter is required but the request did not include
32
+ * it (the wire payload had no entry for the matching `code`).
33
+ */
3
34
  DataRequired = 2,
35
+ /**
36
+ * The parameter was present but had a runtime type the backend
37
+ * did not expect (e.g. a number where a string was declared).
38
+ */
4
39
  TypeInvalid = 3,
40
+ /**
41
+ * `@StringDataMember({ mustNonNull: true })` was violated — the
42
+ * value was `null`.
43
+ */
5
44
  StringNull = 4,
45
+ /**
46
+ * String length is below the configured `minLength`.
47
+ */
6
48
  StringMinLength = 5,
49
+ /**
50
+ * String length is above the configured `maxLength`.
51
+ */
7
52
  StringMaxLength = 6,
53
+ /**
54
+ * Numeric value is below the configured `minValue`.
55
+ */
8
56
  NumberMinValue = 7,
57
+ /**
58
+ * Numeric value is above the configured `maxValue`.
59
+ */
9
60
  NumberMaxValue = 8,
61
+ /**
62
+ * `@NumberDataMember({ mustInt: true })` was violated — the
63
+ * value was a fractional number.
64
+ */
10
65
  NumberMustInt = 9,
66
+ /**
67
+ * `@GNHashtableDataMember({ mustNonNull: true })` was violated.
68
+ */
11
69
  GNHashtableNull = 10,
70
+ /**
71
+ * `GNHashtable` member key count is below the configured
72
+ * `minLength`.
73
+ */
12
74
  GNHashtableMinLength = 11,
75
+ /**
76
+ * `GNHashtable` member key count is above the configured
77
+ * `maxLength`.
78
+ */
13
79
  GNHashtableMaxLength = 12,
80
+ /**
81
+ * `@GNArrayDataMember({ mustNonNull: true })` was violated.
82
+ */
14
83
  GNArrayNull = 13,
84
+ /**
85
+ * `GNArray` element count is below the configured `minLength`.
86
+ */
15
87
  GNArrayMinLength = 14,
88
+ /**
89
+ * `GNArray` element count is above the configured `maxLength`.
90
+ */
16
91
  GNArrayMaxLength = 15
17
92
  }
@@ -1,4 +1,27 @@
1
+ /**
2
+ * Stacking discriminator for inventory item catalog entries.
3
+ *
4
+ * Decides how the GearN backend tracks ownership when a player
5
+ * acquires multiple units of the same catalog item — as separate
6
+ * ledger rows ({@link NonStackable}) or as a single row with an
7
+ * integer amount ({@link Stackable}).
8
+ *
9
+ * Configured at catalog setup time and surfaced on
10
+ * `InventoryModels.ItemMetadata.itemType`. The SDK does not
11
+ * convert between the two on the fly — choose the value that
12
+ * matches the gameplay semantics of the item.
13
+ */
1
14
  export declare enum ItemType {
15
+ /**
16
+ * Each acquisition produces a unique inventory row with its
17
+ * own item id. Use for items that need to track per-instance
18
+ * state (durability, custom name, equipped slot, ...).
19
+ */
2
20
  NonStackable = 1,
21
+ /**
22
+ * Repeated acquisitions accumulate into a single inventory
23
+ * row whose `amount` field carries the count. Use for
24
+ * fungible currencies-as-items, consumables, materials.
25
+ */
3
26
  Stackable = 2
4
27
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Lifecycle states for the **match** record produced once a
3
+ * matchmaking ticket succeeds.
4
+ *
5
+ * Distinct from {@link MatchmakingTicketStatus}, which tracks the
6
+ * earlier stages (waiting for members, finding a match). A single
7
+ * ticket eventually produces one match record whose state then
8
+ * progresses through the values below until the gameplay session
9
+ * starts or is cancelled.
10
+ *
11
+ * Surfaced on `MultiplayerModels.MatchEntry.status`.
12
+ */
13
+ export declare enum MatchStatus {
14
+ /**
15
+ * The match was created but the dedicated server allocation
16
+ * has not yet completed. Connection details are unavailable.
17
+ */
18
+ WaitingForServer = 1,
19
+ /**
20
+ * The dedicated server is ready and the match record carries
21
+ * connection details. The application can connect.
22
+ */
23
+ Matched = 2,
24
+ /**
25
+ * The match was cancelled before completion (server
26
+ * allocation failure, manual cancel). Application should
27
+ * abort the lobby flow.
28
+ */
29
+ Canceled = 3
30
+ }
@@ -1,5 +1,29 @@
1
+ /**
2
+ * Per-member state inside a matchmaking ticket.
3
+ *
4
+ * GearN tickets can include multiple players (party / pre-made
5
+ * group matchmaking). Each player has their own independent
6
+ * confirmation lifecycle described by this enum. Once every
7
+ * member is `Joined`, the ticket can transition out of
8
+ * {@link MatchmakingTicketStatus.WaitingForMembers}.
9
+ *
10
+ * Surfaced on
11
+ * `MultiplayerModels.TicketMember.matchmakingMemberStatus`.
12
+ */
1
13
  export declare enum MatchmakingMemberStatus {
14
+ /**
15
+ * The ticket creator declared the member but the player has
16
+ * not joined / confirmed yet (e.g. invitation pending).
17
+ */
2
18
  Pending = 1,
19
+ /**
20
+ * The member confirmed and is part of the active ticket.
21
+ */
3
22
  Joined = 2,
23
+ /**
24
+ * The member declined or left the ticket. The ticket may
25
+ * still complete if it had enough remaining members; the SDK
26
+ * keeps the cancelled entry in the roster for audit purposes.
27
+ */
4
28
  Canceled = 3
5
29
  }
@@ -1,7 +1,41 @@
1
+ /**
2
+ * Lifecycle states for a matchmaking ticket.
3
+ *
4
+ * Tickets progress through these states in order: members confirm,
5
+ * the matchmaking engine searches, a match is allocated, and
6
+ * finally the dedicated server reports ready. Cancellation can
7
+ * happen from any state.
8
+ *
9
+ * Distinct from {@link MatchStatus}, which describes the **match**
10
+ * record produced once the ticket succeeds.
11
+ *
12
+ * Surfaced on `MultiplayerModels.TicketEntry.status`.
13
+ */
1
14
  export declare enum MatchmakingTicketStatus {
15
+ /**
16
+ * Some declared members have not joined the ticket yet — see
17
+ * {@link MatchmakingMemberStatus.Pending}.
18
+ */
2
19
  WaitingForMembers = 1,
20
+ /**
21
+ * All members are joined; the matchmaking engine is searching
22
+ * for opponents matching the ticket's queue / criteria.
23
+ */
3
24
  WaitingForMatch = 2,
25
+ /**
26
+ * A match was found; the backend is provisioning the
27
+ * dedicated server. Connection details are not yet available.
28
+ */
4
29
  WaitingForServer = 3,
30
+ /**
31
+ * The dedicated server is ready and the ticket points at a
32
+ * match record. Use the match id to look up
33
+ * {@link MatchStatus.Matched} connection details.
34
+ */
5
35
  Matched = 4,
36
+ /**
37
+ * The ticket was cancelled before completion (member declined,
38
+ * matchmaking timed out, server allocation failed).
39
+ */
6
40
  Canceled = 5
7
41
  }
@@ -1,8 +1,48 @@
1
+ /**
2
+ * Discriminator for the entity that owns a given resource (an
3
+ * inventory row, a stored data item, a currency balance, ...).
4
+ *
5
+ * GearN keeps its data model normalised around a top-level
6
+ * "owner" concept so the same resource type can attach to a
7
+ * master player, a single character, a group, a store,
8
+ * etc. The wire payload always pairs an `OwnerType` with the
9
+ * owner's id.
10
+ *
11
+ * Surfaced through `GenericModels` resource entries (currency,
12
+ * statistics, custom data) and `InventoryModels.InventoryItem`.
13
+ */
1
14
  export declare enum OwnerType {
15
+ /**
16
+ * Master-player account — the top-level user record (one per
17
+ * GearN account). Use for cross-character resources like
18
+ * account-level wallets or profile metadata.
19
+ */
2
20
  MasterPlayer = 1,
21
+ /**
22
+ * Game-player entity — the per-game profile attached to a
23
+ * master player. Use for resources scoped to a single game
24
+ * but shared across that game's characters.
25
+ */
3
26
  GamePlayer = 2,
27
+ /**
28
+ * Character-player entity — the per-character profile.
29
+ * Use for resources isolated to a single in-game character.
30
+ */
4
31
  CharacterPlayer = 3,
32
+ /**
33
+ * Group entity — guild / clan. Use for shared group
34
+ * inventories, group currencies, group statistics.
35
+ */
5
36
  Group = 4,
37
+ /**
38
+ * Inventory item — an inventory row may itself own nested
39
+ * resources (e.g. socketed gems on an equipment item).
40
+ */
6
41
  Inventory = 5,
42
+ /**
43
+ * Store-inventory entity — a store catalog or its
44
+ * configuration row. Used by audit / analytics flows that
45
+ * track resources tied to a specific storefront.
46
+ */
7
47
  StoreInventory = 6
8
48
  }