@xmobitea/gn-typescript-client 2.6.13 → 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 (286) hide show
  1. package/AGENTS.md +37 -0
  2. package/README.MD +420 -1
  3. package/dist/gearn.js.client.js +25056 -1056
  4. package/dist/gearn.js.client.min.js +1 -1
  5. package/dist/index.d.ts +30 -0
  6. package/dist/index.js +24236 -212
  7. package/dist/runtime/GNNetwork.d.ts +687 -3
  8. package/dist/runtime/GNNetworkAuthenticateApi.d.ts +327 -0
  9. package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +1026 -0
  10. package/dist/runtime/GNNetworkCloudScriptApi.d.ts +141 -0
  11. package/dist/runtime/GNNetworkContentApi.d.ts +243 -0
  12. package/dist/runtime/GNNetworkDashboardApi.d.ts +221 -0
  13. package/dist/runtime/GNNetworkGamePlayerApi.d.ts +1033 -0
  14. package/dist/runtime/GNNetworkGroupApi.d.ts +783 -0
  15. package/dist/runtime/GNNetworkInventoryApi.d.ts +673 -0
  16. package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +1614 -6
  17. package/dist/runtime/GNNetworkMultiplayerApi.d.ts +234 -0
  18. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +309 -0
  19. package/dist/runtime/common/Action0.d.ts +30 -0
  20. package/dist/runtime/common/Action1.d.ts +32 -0
  21. package/dist/runtime/common/Action2.d.ts +21 -0
  22. package/dist/runtime/common/Action3.d.ts +16 -0
  23. package/dist/runtime/common/Action4.d.ts +17 -0
  24. package/dist/runtime/common/GNData.d.ts +368 -0
  25. package/dist/runtime/config/GNServerSettings.d.ts +442 -12
  26. package/dist/runtime/constant/Commands.d.ts +80 -0
  27. package/dist/runtime/constant/EventCode.d.ts +48 -0
  28. package/dist/runtime/constant/OperationCode.d.ts +74 -1
  29. package/dist/runtime/constant/ReturnCode.d.ts +72 -0
  30. package/dist/runtime/constant/enumType/ExecuteResponseStatus.d.ts +31 -0
  31. package/dist/runtime/constant/enumType/FriendStatus.d.ts +39 -0
  32. package/dist/runtime/constant/enumType/GoogleLoginType.d.ts +23 -0
  33. package/dist/runtime/constant/enumType/GroupStatus.d.ts +32 -0
  34. package/dist/runtime/constant/enumType/InvalidMemberType.d.ts +75 -0
  35. package/dist/runtime/constant/enumType/ItemType.d.ts +23 -0
  36. package/dist/runtime/constant/enumType/MatchStatus.d.ts +30 -0
  37. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.d.ts +24 -0
  38. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.d.ts +34 -0
  39. package/dist/runtime/constant/enumType/OwnerType.d.ts +40 -0
  40. package/dist/runtime/constant/enumType/PermissionDataItem.d.ts +22 -0
  41. package/dist/runtime/constant/enumType/PushPlatformType.d.ts +18 -0
  42. package/dist/runtime/constant/enumType/RequestRole.d.ts +32 -0
  43. package/dist/runtime/constant/enumType/RequestType.d.ts +70 -0
  44. package/dist/runtime/constant/enumType/StoreItemType.d.ts +21 -0
  45. package/dist/runtime/constant/enumType/StoreReceiveType.d.ts +30 -0
  46. package/dist/runtime/constant/errorCode/ErrorCode.d.ts +190 -8
  47. package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +35 -5
  48. package/dist/runtime/entity/DataMember.d.ts +338 -0
  49. package/dist/runtime/entity/GNMetadata.d.ts +101 -0
  50. package/dist/runtime/entity/InvalidMember.d.ts +28 -0
  51. package/dist/runtime/entity/OperationEvent.d.ts +49 -0
  52. package/dist/runtime/entity/OperationRequest.d.ts +108 -0
  53. package/dist/runtime/entity/OperationResponse.d.ts +110 -0
  54. package/dist/runtime/entity/models/AuthenticateModels.d.ts +115 -0
  55. package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +131 -0
  56. package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +131 -0
  57. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +625 -1
  58. package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +972 -0
  59. package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +332 -0
  60. package/dist/runtime/entity/models/CloudScriptModels.d.ts +109 -0
  61. package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +107 -0
  62. package/dist/runtime/entity/models/CloudScriptResponseModels.d.ts +46 -0
  63. package/dist/runtime/entity/models/ContentModels.d.ts +124 -0
  64. package/dist/runtime/entity/models/ContentRequestModels.d.ts +152 -0
  65. package/dist/runtime/entity/models/ContentResponseModels.d.ts +58 -0
  66. package/dist/runtime/entity/models/DashboardModels.d.ts +371 -8
  67. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +172 -0
  68. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +170 -0
  69. package/dist/runtime/entity/models/GamePlayerModels.d.ts +644 -1
  70. package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +959 -0
  71. package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +333 -1
  72. package/dist/runtime/entity/models/GenericModels.d.ts +94 -0
  73. package/dist/runtime/entity/models/GroupModels.d.ts +484 -2
  74. package/dist/runtime/entity/models/GroupRequestModels.d.ts +737 -0
  75. package/dist/runtime/entity/models/GroupResponseModels.d.ts +254 -0
  76. package/dist/runtime/entity/models/InventoryModels.d.ts +415 -0
  77. package/dist/runtime/entity/models/InventoryRequestModels.d.ts +629 -0
  78. package/dist/runtime/entity/models/InventoryResponseModels.d.ts +218 -0
  79. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1065 -3
  80. package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +1560 -6
  81. package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +532 -1
  82. package/dist/runtime/entity/models/MultiplayerModels.d.ts +199 -0
  83. package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +196 -0
  84. package/dist/runtime/entity/models/MultiplayerResponseModels.d.ts +74 -0
  85. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +262 -0
  86. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +268 -0
  87. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +98 -0
  88. package/dist/runtime/entity/request/CustomOperationRequest.d.ts +99 -0
  89. package/dist/runtime/entity/response/CustomOperationResponse.d.ts +118 -0
  90. package/dist/runtime/entity/response/GetAuthInfoResponse.d.ts +53 -0
  91. package/dist/runtime/entity/response/HealthCheckResponse.d.ts +56 -0
  92. package/dist/runtime/entity/response/UploadFileResponse.d.ts +19 -0
  93. package/dist/runtime/helper/CodeHelper.d.ts +122 -0
  94. package/dist/runtime/helper/ConverterService.d.ts +74 -0
  95. package/dist/runtime/helper/EnumUtility.d.ts +63 -0
  96. package/dist/runtime/helper/GNSupport.d.ts +64 -4
  97. package/dist/runtime/helper/GNUtils.d.ts +54 -0
  98. package/dist/runtime/helper/MessagePackConverterService.d.ts +48 -0
  99. package/dist/runtime/helper/OperationHelper.d.ts +51 -0
  100. package/dist/runtime/helper/StorageService.d.ts +48 -8
  101. package/dist/runtime/logger/GNDebug.d.ts +117 -0
  102. package/dist/runtime/networking/AuthenticateStatus.d.ts +64 -0
  103. package/dist/runtime/networking/IPeer.d.ts +83 -0
  104. package/dist/runtime/networking/NetworkingPeer.d.ts +256 -1
  105. package/dist/runtime/networking/OperationPending.d.ts +112 -0
  106. package/dist/runtime/networking/PeerBase.d.ts +231 -0
  107. package/dist/runtime/networking/handler/IServerEventHandler.d.ts +84 -0
  108. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +69 -0
  109. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +49 -0
  110. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +50 -0
  111. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +41 -0
  112. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +47 -0
  113. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +46 -0
  114. package/dist/runtime/networking/http/HttpPeer.d.ts +173 -0
  115. package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +87 -0
  116. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +113 -0
  117. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +145 -0
  118. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +198 -0
  119. package/dist/runtime/networking/socket/SocketPeer.d.ts +155 -0
  120. package/dist/runtime/typescript/ServiceUpdate.d.ts +46 -0
  121. package/docs/AI_CHEATSHEET.md +211 -0
  122. package/docs/COOKBOOK.md +912 -0
  123. package/docs/RULES.md +307 -0
  124. package/docs/ai-manifest.json +725 -0
  125. package/docs/guides/AUTHENTICATE.md +246 -0
  126. package/docs/guides/CHARACTER_PLAYER.md +439 -0
  127. package/docs/guides/CLOUDSCRIPT.md +335 -0
  128. package/docs/guides/COCOS_CREATOR_INTEGRATION.md +150 -0
  129. package/docs/guides/CONTENT.md +291 -0
  130. package/docs/guides/DASHBOARD.md +262 -0
  131. package/docs/guides/GAME_PLAYER.md +473 -0
  132. package/docs/guides/GROUP.md +412 -0
  133. package/docs/guides/INVENTORY.md +375 -0
  134. package/docs/guides/MASTER_PLAYER.md +458 -0
  135. package/docs/guides/MULTIPLAYER.md +303 -0
  136. package/docs/guides/STORE_INVENTORY.md +313 -0
  137. package/docs/llms-full.txt +43 -0
  138. package/docs/reference/API_AUTHENTICATE.md +75 -0
  139. package/docs/reference/API_CHARACTER_PLAYER.md +226 -0
  140. package/docs/reference/API_CLOUDSCRIPT.md +82 -0
  141. package/docs/reference/API_CONTENT.md +88 -0
  142. package/docs/reference/API_DASHBOARD.md +82 -0
  143. package/docs/reference/API_GAME_PLAYER.md +223 -0
  144. package/docs/reference/API_GROUP.md +187 -0
  145. package/docs/reference/API_INDEX.md +57 -0
  146. package/docs/reference/API_INVENTORY.md +169 -0
  147. package/docs/reference/API_MASTER_PLAYER.md +323 -0
  148. package/docs/reference/API_MULTIPLAYER.md +97 -0
  149. package/docs/reference/API_STORE_INVENTORY.md +109 -0
  150. package/docs/reference/CONFIG.md +107 -0
  151. package/docs/reference/DTO_INDEX.md +2543 -0
  152. package/docs/reference/ENUMS.md +433 -0
  153. package/docs/reference/ERROR_HANDLING.md +159 -0
  154. package/docs/reference/EVENTS.md +188 -0
  155. package/docs/reference/PERMISSION_RULES.md +55 -0
  156. package/docs/reference/dto/AUTHENTICATE.md +619 -0
  157. package/docs/reference/dto/CHARACTER_PLAYER.md +3686 -0
  158. package/docs/reference/dto/CLOUDSCRIPT.md +400 -0
  159. package/docs/reference/dto/CONTENT.md +548 -0
  160. package/docs/reference/dto/DASHBOARD.md +1980 -0
  161. package/docs/reference/dto/GAME_PLAYER.md +3631 -0
  162. package/docs/reference/dto/GENERIC.md +151 -0
  163. package/docs/reference/dto/GROUP.md +2842 -0
  164. package/docs/reference/dto/INVENTORY.md +2385 -0
  165. package/docs/reference/dto/MASTER_PLAYER.md +6024 -0
  166. package/docs/reference/dto/MULTIPLAYER.md +850 -0
  167. package/docs/reference/dto/STORE_INVENTORY.md +1262 -0
  168. package/llms.txt +47 -0
  169. package/package.json +12 -3
  170. package/GNServerSettings.debug.json +0 -21
  171. package/docs/COCOS_CREATOR_INTEGRATION.md +0 -116
  172. package/examples/cocos-creator/GearNExample.ts.txt +0 -176
  173. package/srcSwift/Package.swift +0 -32
  174. package/srcSwift/Sources/GearN/runtime/GNNetwork.swift +0 -530
  175. package/srcSwift/Sources/GearN/runtime/GNNetworkAuthenticateApi.swift +0 -178
  176. package/srcSwift/Sources/GearN/runtime/GNNetworkCharacterPlayerApi.swift +0 -1162
  177. package/srcSwift/Sources/GearN/runtime/GNNetworkCloudScriptApi.swift +0 -154
  178. package/srcSwift/Sources/GearN/runtime/GNNetworkContentApi.swift +0 -208
  179. package/srcSwift/Sources/GearN/runtime/GNNetworkDashboardApi.swift +0 -240
  180. package/srcSwift/Sources/GearN/runtime/GNNetworkGamePlayerApi.swift +0 -1369
  181. package/srcSwift/Sources/GearN/runtime/GNNetworkGroupApi.swift +0 -1100
  182. package/srcSwift/Sources/GearN/runtime/GNNetworkInventoryApi.swift +0 -937
  183. package/srcSwift/Sources/GearN/runtime/GNNetworkMasterPlayerApi.swift +0 -2323
  184. package/srcSwift/Sources/GearN/runtime/GNNetworkMultiplayerApi.swift +0 -298
  185. package/srcSwift/Sources/GearN/runtime/GNNetworkStoreInventoryApi.swift +0 -397
  186. package/srcSwift/Sources/GearN/runtime/common/Action0.swift +0 -3
  187. package/srcSwift/Sources/GearN/runtime/common/Action1.swift +0 -3
  188. package/srcSwift/Sources/GearN/runtime/common/Action2.swift +0 -3
  189. package/srcSwift/Sources/GearN/runtime/common/Action3.swift +0 -3
  190. package/srcSwift/Sources/GearN/runtime/common/Action4.swift +0 -3
  191. package/srcSwift/Sources/GearN/runtime/common/GNArray.swift +0 -204
  192. package/srcSwift/Sources/GearN/runtime/common/GNData.swift +0 -108
  193. package/srcSwift/Sources/GearN/runtime/common/GNHashtable.swift +0 -200
  194. package/srcSwift/Sources/GearN/runtime/config/GNServerSettings.swift +0 -95
  195. package/srcSwift/Sources/GearN/runtime/constant/Commands.swift +0 -28
  196. package/srcSwift/Sources/GearN/runtime/constant/EventCode.swift +0 -10
  197. package/srcSwift/Sources/GearN/runtime/constant/OperationCode.swift +0 -252
  198. package/srcSwift/Sources/GearN/runtime/constant/ReturnCode.swift +0 -19
  199. package/srcSwift/Sources/GearN/runtime/constant/enumType/ExecuteResponseStatus.swift +0 -9
  200. package/srcSwift/Sources/GearN/runtime/constant/enumType/FriendStatus.swift +0 -8
  201. package/srcSwift/Sources/GearN/runtime/constant/enumType/GoogleLoginType.swift +0 -6
  202. package/srcSwift/Sources/GearN/runtime/constant/enumType/GroupStatus.swift +0 -8
  203. package/srcSwift/Sources/GearN/runtime/constant/enumType/InvalidMemberType.swift +0 -19
  204. package/srcSwift/Sources/GearN/runtime/constant/enumType/ItemType.swift +0 -6
  205. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingMemberStatus.swift +0 -7
  206. package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingTicketStatus.swift +0 -9
  207. package/srcSwift/Sources/GearN/runtime/constant/enumType/OwnerType.swift +0 -10
  208. package/srcSwift/Sources/GearN/runtime/constant/enumType/PermissionDataItem.swift +0 -6
  209. package/srcSwift/Sources/GearN/runtime/constant/enumType/PushPlatformType.swift +0 -6
  210. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestRole.swift +0 -7
  211. package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestType.swift +0 -16
  212. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreItemType.swift +0 -6
  213. package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreReceiveType.swift +0 -9
  214. package/srcSwift/Sources/GearN/runtime/constant/errorCode/ErrorCode.swift +0 -58
  215. package/srcSwift/Sources/GearN/runtime/constant/parameterCode/ParameterCode.swift +0 -672
  216. package/srcSwift/Sources/GearN/runtime/entity/DataMember.swift +0 -196
  217. package/srcSwift/Sources/GearN/runtime/entity/GNMetadata.swift +0 -9
  218. package/srcSwift/Sources/GearN/runtime/entity/InvalidMember.swift +0 -11
  219. package/srcSwift/Sources/GearN/runtime/entity/OperationEvent.swift +0 -38
  220. package/srcSwift/Sources/GearN/runtime/entity/OperationHelper.swift +0 -28
  221. package/srcSwift/Sources/GearN/runtime/entity/OperationRequest.swift +0 -62
  222. package/srcSwift/Sources/GearN/runtime/entity/OperationResponse.swift +0 -98
  223. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateModels.swift +0 -351
  224. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateRequestModels.swift +0 -81
  225. package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateResponseModels.swift +0 -108
  226. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerModels.swift +0 -1045
  227. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerRequestModels.swift +0 -821
  228. package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerResponseModels.swift +0 -588
  229. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptModels.swift +0 -187
  230. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptRequestModels.swift +0 -84
  231. package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptResponseModels.swift +0 -59
  232. package/srcSwift/Sources/GearN/runtime/entity/models/ContentModels.swift +0 -195
  233. package/srcSwift/Sources/GearN/runtime/entity/models/ContentRequestModels.swift +0 -116
  234. package/srcSwift/Sources/GearN/runtime/entity/models/ContentResponseModels.swift +0 -81
  235. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardModels.swift +0 -426
  236. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardRequestModels.swift +0 -160
  237. package/srcSwift/Sources/GearN/runtime/entity/models/DashboardResponseModels.swift +0 -82
  238. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerModels.swift +0 -1334
  239. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerRequestModels.swift +0 -643
  240. package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerResponseModels.swift +0 -213
  241. package/srcSwift/Sources/GearN/runtime/entity/models/GenericModels.swift +0 -171
  242. package/srcSwift/Sources/GearN/runtime/entity/models/GroupModels.swift +0 -850
  243. package/srcSwift/Sources/GearN/runtime/entity/models/GroupRequestModels.swift +0 -485
  244. package/srcSwift/Sources/GearN/runtime/entity/models/GroupResponseModels.swift +0 -165
  245. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryModels.swift +0 -679
  246. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryRequestModels.swift +0 -413
  247. package/srcSwift/Sources/GearN/runtime/entity/models/InventoryResponseModels.swift +0 -141
  248. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerModels.swift +0 -378
  249. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerRequestModels.swift +0 -147
  250. package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerResponseModels.swift +0 -318
  251. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerModels.swift +0 -319
  252. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerRequestModels.swift +0 -125
  253. package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerResponseModels.swift +0 -45
  254. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryModels.swift +0 -633
  255. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryRequestModels.swift +0 -173
  256. package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryResponseModels.swift +0 -61
  257. package/srcSwift/Sources/GearN/runtime/entity/request/CustomOperationRequest.swift +0 -42
  258. package/srcSwift/Sources/GearN/runtime/entity/response/CustomOperationResponse.swift +0 -49
  259. package/srcSwift/Sources/GearN/runtime/entity/response/GetAuthInfoResponse.swift +0 -43
  260. package/srcSwift/Sources/GearN/runtime/entity/response/HealthCheckResponse.swift +0 -86
  261. package/srcSwift/Sources/GearN/runtime/entity/response/UploadFileResponse.swift +0 -15
  262. package/srcSwift/Sources/GearN/runtime/helper/CodeHelper.swift +0 -107
  263. package/srcSwift/Sources/GearN/runtime/helper/ConverterService.swift +0 -98
  264. package/srcSwift/Sources/GearN/runtime/helper/EnumUtility.swift +0 -34
  265. package/srcSwift/Sources/GearN/runtime/helper/GNSupport.swift +0 -41
  266. package/srcSwift/Sources/GearN/runtime/helper/GNUtils.swift +0 -66
  267. package/srcSwift/Sources/GearN/runtime/helper/MessagePackConverterService.swift +0 -21
  268. package/srcSwift/Sources/GearN/runtime/helper/StorageService.swift +0 -29
  269. package/srcSwift/Sources/GearN/runtime/logger/GNDebug.swift +0 -33
  270. package/srcSwift/Sources/GearN/runtime/networking/AuthenticateStatus.swift +0 -24
  271. package/srcSwift/Sources/GearN/runtime/networking/IPeer.swift +0 -8
  272. package/srcSwift/Sources/GearN/runtime/networking/NetworkingPeer.swift +0 -368
  273. package/srcSwift/Sources/GearN/runtime/networking/OperationPending.swift +0 -81
  274. package/srcSwift/Sources/GearN/runtime/networking/PeerBase.swift +0 -228
  275. package/srcSwift/Sources/GearN/runtime/networking/handler/IServerEventHandler.swift +0 -20
  276. package/srcSwift/Sources/GearN/runtime/networking/http/HttpPeer.swift +0 -226
  277. package/srcSwift/Sources/GearN/runtime/networking/http/HttpTypes.swift +0 -24
  278. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingHttpPeerBase.swift +0 -13
  279. package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingPeerUrlSession.swift +0 -125
  280. package/srcSwift/Sources/GearN/runtime/networking/request/NetRequest.swift +0 -19
  281. package/srcSwift/Sources/GearN/runtime/networking/response/NetResponse.swift +0 -13
  282. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingPeerSocketIOClient.swift +0 -244
  283. package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingSocketPeerBase.swift +0 -59
  284. package/srcSwift/Sources/GearN/runtime/networking/socket/SocketPeer.swift +0 -136
  285. package/tsconfig-build.cocos.json +0 -31
  286. package/webpack.config.cocos.mjs +0 -78
@@ -2,113 +2,244 @@ import { RequestRole } from "./../../constant/enumType/RequestRole";
2
2
  import { RequestType } from "./../../constant/enumType/RequestType";
3
3
  import { CustomOperationRequestAbstract } from "./../request/CustomOperationRequest";
4
4
  import { AuthenticateModels } from "./AuthenticateModels";
5
+ /**
6
+ * Typed request wrappers for the Authenticate domain.
7
+ *
8
+ * Each class in this namespace extends
9
+ * {@link CustomOperationRequestAbstract} and binds a typed
10
+ * `*RequestData` DTO from {@link AuthenticateModels} to the
11
+ * matching {@link OperationCode}, plus the
12
+ * {@link RequestType.Authenticate} domain and
13
+ * {@link RequestRole.Client} permission scope.
14
+ *
15
+ * Application code rarely instantiates these directly — the
16
+ * `GNNetwork.authenticate.*` helpers in
17
+ * {@link AuthenticateApi} build them under the hood. Reach for
18
+ * the raw wrapper only when issuing a request through the
19
+ * low-level helpers such as
20
+ * {@link GNNetwork.sendViaHttpTRequestTResponse}.
21
+ *
22
+ * Wire-format conversion happens in
23
+ * {@link CustomOperationRequestAbstract.build} which serialises
24
+ * the DTO via {@link ConverterService.serializeObject}.
25
+ */
5
26
  export declare namespace AuthenticateRequestModels {
27
+ /**
28
+ * Maps the LoginByAccount operation to a typed request wrapper.
29
+ */
6
30
  class LoginByAccountOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByAccountRequestData> {
7
31
  protected operationCode: string;
8
32
  protected requestType: RequestType;
9
33
  protected role: RequestRole;
34
+ /**
35
+ * Creates a new LoginByAccountOperationRequest instance.
36
+ */
10
37
  constructor(requestData: AuthenticateModels.LoginByAccountRequestData, timeout: number);
11
38
  }
39
+ /**
40
+ * Maps the LoginByAndroidDeviceId operation to a typed request wrapper.
41
+ */
12
42
  class LoginByAndroidDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByAndroidDeviceIdRequestData> {
13
43
  protected operationCode: string;
14
44
  protected requestType: RequestType;
15
45
  protected role: RequestRole;
46
+ /**
47
+ * Creates a new LoginByAndroidDeviceIdOperationRequest instance.
48
+ */
16
49
  constructor(requestData: AuthenticateModels.LoginByAndroidDeviceIdRequestData, timeout: number);
17
50
  }
51
+ /**
52
+ * Maps the LoginByApple operation to a typed request wrapper.
53
+ */
18
54
  class LoginByAppleOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByAppleRequestData> {
19
55
  protected operationCode: string;
20
56
  protected requestType: RequestType;
21
57
  protected role: RequestRole;
58
+ /**
59
+ * Creates a new LoginByAppleOperationRequest instance.
60
+ */
22
61
  constructor(requestData: AuthenticateModels.LoginByAppleRequestData, timeout: number);
23
62
  }
63
+ /**
64
+ * Maps the LoginByCustomDeviceId operation to a typed request wrapper.
65
+ */
24
66
  class LoginByCustomDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByCustomDeviceIdRequestData> {
25
67
  protected operationCode: string;
26
68
  protected requestType: RequestType;
27
69
  protected role: RequestRole;
70
+ /**
71
+ * Creates a new LoginByCustomDeviceIdOperationRequest instance.
72
+ */
28
73
  constructor(requestData: AuthenticateModels.LoginByCustomDeviceIdRequestData, timeout: number);
29
74
  }
75
+ /**
76
+ * Maps the LoginByCustomId operation to a typed request wrapper.
77
+ */
30
78
  class LoginByCustomIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByCustomIdRequestData> {
31
79
  protected operationCode: string;
32
80
  protected requestType: RequestType;
33
81
  protected role: RequestRole;
82
+ /**
83
+ * Creates a new LoginByCustomIdOperationRequest instance.
84
+ */
34
85
  constructor(requestData: AuthenticateModels.LoginByCustomIdRequestData, timeout: number);
35
86
  }
87
+ /**
88
+ * Maps the LoginByEditorDeviceId operation to a typed request wrapper.
89
+ */
36
90
  class LoginByEditorDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByEditorDeviceIdRequestData> {
37
91
  protected operationCode: string;
38
92
  protected requestType: RequestType;
39
93
  protected role: RequestRole;
94
+ /**
95
+ * Creates a new LoginByEditorDeviceIdOperationRequest instance.
96
+ */
40
97
  constructor(requestData: AuthenticateModels.LoginByEditorDeviceIdRequestData, timeout: number);
41
98
  }
99
+ /**
100
+ * Maps the LoginByFacebook operation to a typed request wrapper.
101
+ */
42
102
  class LoginByFacebookOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByFacebookRequestData> {
43
103
  protected operationCode: string;
44
104
  protected requestType: RequestType;
45
105
  protected role: RequestRole;
106
+ /**
107
+ * Creates a new LoginByFacebookOperationRequest instance.
108
+ */
46
109
  constructor(requestData: AuthenticateModels.LoginByFacebookRequestData, timeout: number);
47
110
  }
111
+ /**
112
+ * Maps the LoginByGenericService operation to a typed request wrapper.
113
+ */
48
114
  class LoginByGenericServiceOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByGenericServiceRequestData> {
49
115
  protected operationCode: string;
50
116
  protected requestType: RequestType;
51
117
  protected role: RequestRole;
118
+ /**
119
+ * Creates a new LoginByGenericServiceOperationRequest instance.
120
+ */
52
121
  constructor(requestData: AuthenticateModels.LoginByGenericServiceRequestData, timeout: number);
53
122
  }
123
+ /**
124
+ * Maps the LoginByGoogle operation to a typed request wrapper.
125
+ */
54
126
  class LoginByGoogleOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByGoogleRequestData> {
55
127
  protected operationCode: string;
56
128
  protected requestType: RequestType;
57
129
  protected role: RequestRole;
130
+ /**
131
+ * Creates a new LoginByGoogleOperationRequest instance.
132
+ */
58
133
  constructor(requestData: AuthenticateModels.LoginByGoogleRequestData, timeout: number);
59
134
  }
135
+ /**
136
+ * Maps the LoginByGooglePlayGameService operation to a typed request wrapper.
137
+ */
60
138
  class LoginByGooglePlayGameServiceOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByGooglePlayGameServiceRequestData> {
61
139
  protected operationCode: string;
62
140
  protected requestType: RequestType;
63
141
  protected role: RequestRole;
142
+ /**
143
+ * Creates a new LoginByGooglePlayGameServiceOperationRequest instance.
144
+ */
64
145
  constructor(requestData: AuthenticateModels.LoginByGooglePlayGameServiceRequestData, timeout: number);
65
146
  }
147
+ /**
148
+ * Maps the LoginByGameCenter operation to a typed request wrapper.
149
+ */
66
150
  class LoginByGameCenterOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByGameCenterRequestData> {
67
151
  protected operationCode: string;
68
152
  protected requestType: RequestType;
69
153
  protected role: RequestRole;
154
+ /**
155
+ * Creates a new LoginByGameCenterOperationRequest instance.
156
+ */
70
157
  constructor(requestData: AuthenticateModels.LoginByGameCenterRequestData, timeout: number);
71
158
  }
159
+ /**
160
+ * Maps the LoginByiOSDeviceId operation to a typed request wrapper.
161
+ */
72
162
  class LoginByiOSDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByiOSDeviceIdRequestData> {
73
163
  protected operationCode: string;
74
164
  protected requestType: RequestType;
75
165
  protected role: RequestRole;
166
+ /**
167
+ * Creates a new LoginByiOSDeviceIdOperationRequest instance.
168
+ */
76
169
  constructor(requestData: AuthenticateModels.LoginByiOSDeviceIdRequestData, timeout: number);
77
170
  }
171
+ /**
172
+ * Maps the LoginByLinuxDeviceId operation to a typed request wrapper.
173
+ */
78
174
  class LoginByLinuxDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByLinuxDeviceIdRequestData> {
79
175
  protected operationCode: string;
80
176
  protected requestType: RequestType;
81
177
  protected role: RequestRole;
178
+ /**
179
+ * Creates a new LoginByLinuxDeviceIdOperationRequest instance.
180
+ */
82
181
  constructor(requestData: AuthenticateModels.LoginByLinuxDeviceIdRequestData, timeout: number);
83
182
  }
183
+ /**
184
+ * Maps the LoginByMacOSDeviceId operation to a typed request wrapper.
185
+ */
84
186
  class LoginByMacOSDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByMacOSDeviceIdRequestData> {
85
187
  protected operationCode: string;
86
188
  protected requestType: RequestType;
87
189
  protected role: RequestRole;
190
+ /**
191
+ * Creates a new LoginByMacOSDeviceIdOperationRequest instance.
192
+ */
88
193
  constructor(requestData: AuthenticateModels.LoginByMacOSDeviceIdRequestData, timeout: number);
89
194
  }
195
+ /**
196
+ * Maps the LoginByWindowsDeviceId operation to a typed request wrapper.
197
+ */
90
198
  class LoginByWindowsDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByWindowsDeviceIdRequestData> {
91
199
  protected operationCode: string;
92
200
  protected requestType: RequestType;
93
201
  protected role: RequestRole;
202
+ /**
203
+ * Creates a new LoginByWindowsDeviceIdOperationRequest instance.
204
+ */
94
205
  constructor(requestData: AuthenticateModels.LoginByWindowsDeviceIdRequestData, timeout: number);
95
206
  }
207
+ /**
208
+ * Maps the LoginByWindowsPhoneDeviceId operation to a typed request wrapper.
209
+ */
96
210
  class LoginByWindowsPhoneDeviceIdOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData> {
97
211
  protected operationCode: string;
98
212
  protected requestType: RequestType;
99
213
  protected role: RequestRole;
214
+ /**
215
+ * Creates a new LoginByWindowsPhoneDeviceIdOperationRequest instance.
216
+ */
100
217
  constructor(requestData: AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData, timeout: number);
101
218
  }
219
+ /**
220
+ * Maps the RegisterAccount operation to a typed request wrapper.
221
+ */
102
222
  class RegisterAccountOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.RegisterAccountRequestData> {
103
223
  protected operationCode: string;
104
224
  protected requestType: RequestType;
105
225
  protected role: RequestRole;
226
+ /**
227
+ * Creates a new RegisterAccountOperationRequest instance.
228
+ */
106
229
  constructor(requestData: AuthenticateModels.RegisterAccountRequestData, timeout: number);
107
230
  }
231
+ /**
232
+ * Maps the `RefreshAuthToken` operation to a typed request wrapper.
233
+ *
234
+ * The wrapped request body is intentionally empty; auth context still comes from the current token.
235
+ */
108
236
  class RefreshAuthTokenOperationRequest extends CustomOperationRequestAbstract<AuthenticateModels.RefreshAuthTokenRequestData> {
109
237
  protected operationCode: string;
110
238
  protected requestType: RequestType;
111
239
  protected role: RequestRole;
240
+ /**
241
+ * Creates a new RefreshAuthTokenOperationRequest instance.
242
+ */
112
243
  constructor(requestData: AuthenticateModels.RefreshAuthTokenRequestData, timeout: number);
113
244
  }
114
245
  }
@@ -1,58 +1,189 @@
1
1
  import { CustomOperationResponseAbstract } from "./../response/CustomOperationResponse";
2
2
  import { AuthenticateModels } from "./AuthenticateModels";
3
+ /**
4
+ * Typed response wrappers for the Authenticate domain.
5
+ *
6
+ * Each class extends {@link CustomOperationResponseAbstract} and
7
+ * binds the corresponding response DTO from
8
+ * {@link AuthenticateModels}. Most login flows resolve to the
9
+ * shared {@link AuthenticateModels.AuthenticateResponseData},
10
+ * which carries the auth token plus the optional profile fields
11
+ * requested via `infoRequestParam`.
12
+ *
13
+ * Exceptions:
14
+ * - `loginByGenericService` resolves to
15
+ * {@link AuthenticateModels.GenericServiceAuthenticateResponseData}
16
+ * so the provider-specific `errorMessage` field is preserved.
17
+ * - `refreshAuthToken` resolves to
18
+ * {@link AuthenticateModels.RefreshAuthTokenResponseData},
19
+ * which only carries the new token plus optional ban state.
20
+ *
21
+ * Application code reads the typed payload through
22
+ * `response.responseData` after confirming
23
+ * `response.hasReturnCodeError() === false` and
24
+ * `response.errorCode === ErrorCode.Ok`.
25
+ */
3
26
  export declare namespace AuthenticateResponseModels {
27
+ /**
28
+ * Maps the LoginByAccount operation to a typed response wrapper.
29
+ */
4
30
  class LoginByAccountOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
31
+ /**
32
+ * Creates a new LoginByAccountOperationResponse instance.
33
+ */
5
34
  constructor();
6
35
  }
36
+ /**
37
+ * Maps the LoginByAndroidDeviceId operation to a typed response wrapper.
38
+ */
7
39
  class LoginByAndroidDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
40
+ /**
41
+ * Creates a new LoginByAndroidDeviceIdOperationResponse instance.
42
+ */
8
43
  constructor();
9
44
  }
45
+ /**
46
+ * Maps the LoginByApple operation to a typed response wrapper.
47
+ */
10
48
  class LoginByAppleOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
49
+ /**
50
+ * Creates a new LoginByAppleOperationResponse instance.
51
+ */
11
52
  constructor();
12
53
  }
54
+ /**
55
+ * Maps the LoginByCustomDeviceId operation to a typed response wrapper.
56
+ */
13
57
  class LoginByCustomDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
58
+ /**
59
+ * Creates a new LoginByCustomDeviceIdOperationResponse instance.
60
+ */
14
61
  constructor();
15
62
  }
63
+ /**
64
+ * Maps the LoginByCustomId operation to a typed response wrapper.
65
+ */
16
66
  class LoginByCustomIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
67
+ /**
68
+ * Creates a new LoginByCustomIdOperationResponse instance.
69
+ */
17
70
  constructor();
18
71
  }
72
+ /**
73
+ * Maps the LoginByEditorDeviceId operation to a typed response wrapper.
74
+ */
19
75
  class LoginByEditorDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
76
+ /**
77
+ * Creates a new LoginByEditorDeviceIdOperationResponse instance.
78
+ */
20
79
  constructor();
21
80
  }
81
+ /**
82
+ * Maps the LoginByFacebook operation to a typed response wrapper.
83
+ */
22
84
  class LoginByFacebookOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
85
+ /**
86
+ * Creates a new LoginByFacebookOperationResponse instance.
87
+ */
23
88
  constructor();
24
89
  }
90
+ /**
91
+ * Maps the LoginByGenericService operation to a typed response wrapper.
92
+ */
25
93
  class LoginByGenericServiceOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.GenericServiceAuthenticateResponseData> {
94
+ /**
95
+ * Creates a new LoginByGenericServiceOperationResponse instance.
96
+ */
26
97
  constructor();
27
98
  }
99
+ /**
100
+ * Maps the LoginByGoogle operation to a typed response wrapper.
101
+ */
28
102
  class LoginByGoogleOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
103
+ /**
104
+ * Creates a new LoginByGoogleOperationResponse instance.
105
+ */
29
106
  constructor();
30
107
  }
108
+ /**
109
+ * Maps the LoginByGooglePlayGameService operation to a typed response wrapper.
110
+ */
31
111
  class LoginByGooglePlayGameServiceOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
112
+ /**
113
+ * Creates a new LoginByGooglePlayGameServiceOperationResponse instance.
114
+ */
32
115
  constructor();
33
116
  }
117
+ /**
118
+ * Maps the LoginByGameCenter operation to a typed response wrapper.
119
+ */
34
120
  class LoginByGameCenterOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
121
+ /**
122
+ * Creates a new LoginByGameCenterOperationResponse instance.
123
+ */
35
124
  constructor();
36
125
  }
126
+ /**
127
+ * Maps the LoginByiOSDeviceId operation to a typed response wrapper.
128
+ */
37
129
  class LoginByiOSDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
130
+ /**
131
+ * Creates a new LoginByiOSDeviceIdOperationResponse instance.
132
+ */
38
133
  constructor();
39
134
  }
135
+ /**
136
+ * Maps the LoginByLinuxDeviceId operation to a typed response wrapper.
137
+ */
40
138
  class LoginByLinuxDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
139
+ /**
140
+ * Creates a new LoginByLinuxDeviceIdOperationResponse instance.
141
+ */
41
142
  constructor();
42
143
  }
144
+ /**
145
+ * Maps the LoginByMacOSDeviceId operation to a typed response wrapper.
146
+ */
43
147
  class LoginByMacOSDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
148
+ /**
149
+ * Creates a new LoginByMacOSDeviceIdOperationResponse instance.
150
+ */
44
151
  constructor();
45
152
  }
153
+ /**
154
+ * Maps the LoginByWindowsDeviceId operation to a typed response wrapper.
155
+ */
46
156
  class LoginByWindowsDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
157
+ /**
158
+ * Creates a new LoginByWindowsDeviceIdOperationResponse instance.
159
+ */
47
160
  constructor();
48
161
  }
162
+ /**
163
+ * Maps the LoginByWindowsPhoneDeviceId operation to a typed response wrapper.
164
+ */
49
165
  class LoginByWindowsPhoneDeviceIdOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
166
+ /**
167
+ * Creates a new LoginByWindowsPhoneDeviceIdOperationResponse instance.
168
+ */
50
169
  constructor();
51
170
  }
171
+ /**
172
+ * Maps the RegisterAccount operation to a typed response wrapper.
173
+ */
52
174
  class RegisterAccountOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.AuthenticateResponseData> {
175
+ /**
176
+ * Creates a new RegisterAccountOperationResponse instance.
177
+ */
53
178
  constructor();
54
179
  }
180
+ /**
181
+ * Maps the RefreshAuthToken operation to a typed response wrapper.
182
+ */
55
183
  class RefreshAuthTokenOperationResponse extends CustomOperationResponseAbstract<AuthenticateModels.RefreshAuthTokenResponseData> {
184
+ /**
185
+ * Creates a new RefreshAuthTokenOperationResponse instance.
186
+ */
56
187
  constructor();
57
188
  }
58
189
  }