@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,75 +2,182 @@ import { RequestRole } from "./../../constant/enumType/RequestRole";
2
2
  import { RequestType } from "./../../constant/enumType/RequestType";
3
3
  import { CustomOperationRequestAbstract } from "./../request/CustomOperationRequest";
4
4
  import { CloudScriptModels } from "./CloudScriptModels";
5
+ /**
6
+ * Typed request wrappers for the CloudScript domain.
7
+ *
8
+ * Each class extends {@link CustomOperationRequestAbstract} and
9
+ * binds a typed `*RequestData` DTO from
10
+ * {@link CloudScriptModels} to:
11
+ * - the matching {@link OperationCode};
12
+ * - the {@link RequestType.CloudScript} domain;
13
+ * - the appropriate {@link RequestRole} based on the wrapper
14
+ * name prefix.
15
+ *
16
+ * Both execution wrappers (`ExecuteFunction*`) and management
17
+ * wrappers (`AddFunction*`, `SetFunction*`, etc.) share the
18
+ * same {@link RequestType.CloudScript} value — they are
19
+ * distinguished only by their operation code and required
20
+ * role.
21
+ */
5
22
  export declare namespace CloudScriptRequestModels {
23
+ /**
24
+ * Maps the AddFunction operation to a typed request wrapper.
25
+ */
6
26
  class AddFunctionOperationRequest extends CustomOperationRequestAbstract<CloudScriptModels.AddFunctionRequestData> {
7
27
  protected operationCode: string;
8
28
  protected requestType: RequestType;
9
29
  protected role: RequestRole;
30
+ /**
31
+ * Creates a new AddFunctionOperationRequest instance.
32
+ */
10
33
  constructor(requestData: CloudScriptModels.AddFunctionRequestData, timeout: number);
11
34
  }
35
+ /**
36
+ * Maps the ServerAddFunction operation to a typed request wrapper.
37
+ */
12
38
  class ServerAddFunctionOperationRequest extends AddFunctionOperationRequest {
13
39
  protected role: RequestRole;
40
+ /**
41
+ * Creates a new ServerAddFunctionOperationRequest instance.
42
+ */
14
43
  constructor(requestData: CloudScriptModels.ServerAddFunctionRequestData, timeout: number);
15
44
  }
45
+ /**
46
+ * Maps the AdminAddFunction operation to a typed request wrapper.
47
+ */
16
48
  class AdminAddFunctionOperationRequest extends AddFunctionOperationRequest {
17
49
  protected role: RequestRole;
50
+ /**
51
+ * Creates a new AdminAddFunctionOperationRequest instance.
52
+ */
18
53
  constructor(requestData: CloudScriptModels.AdminAddFunctionRequestData, timeout: number);
19
54
  }
55
+ /**
56
+ * Maps the EditFunction operation to a typed request wrapper.
57
+ */
20
58
  class EditFunctionOperationRequest extends CustomOperationRequestAbstract<CloudScriptModels.EditFunctionRequestData> {
21
59
  protected operationCode: string;
22
60
  protected requestType: RequestType;
23
61
  protected role: RequestRole;
62
+ /**
63
+ * Creates a new EditFunctionOperationRequest instance.
64
+ */
24
65
  constructor(requestData: CloudScriptModels.EditFunctionRequestData, timeout: number);
25
66
  }
67
+ /**
68
+ * Maps the ServerEditFunction operation to a typed request wrapper.
69
+ */
26
70
  class ServerEditFunctionOperationRequest extends EditFunctionOperationRequest {
27
71
  protected role: RequestRole;
72
+ /**
73
+ * Creates a new ServerEditFunctionOperationRequest instance.
74
+ */
28
75
  constructor(requestData: CloudScriptModels.ServerEditFunctionRequestData, timeout: number);
29
76
  }
77
+ /**
78
+ * Maps the AdminEditFunction operation to a typed request wrapper.
79
+ */
30
80
  class AdminEditFunctionOperationRequest extends EditFunctionOperationRequest {
31
81
  protected role: RequestRole;
82
+ /**
83
+ * Creates a new AdminEditFunctionOperationRequest instance.
84
+ */
32
85
  constructor(requestData: CloudScriptModels.AdminEditFunctionRequestData, timeout: number);
33
86
  }
87
+ /**
88
+ * Maps the ExecuteFunction operation to a typed request wrapper.
89
+ */
34
90
  class ExecuteFunctionOperationRequest extends CustomOperationRequestAbstract<CloudScriptModels.ExecuteFunctionRequestData> {
35
91
  protected operationCode: string;
36
92
  protected requestType: RequestType;
37
93
  protected role: RequestRole;
94
+ /**
95
+ * Creates a new ExecuteFunctionOperationRequest instance.
96
+ */
38
97
  constructor(requestData: CloudScriptModels.ExecuteFunctionRequestData, timeout: number);
39
98
  }
99
+ /**
100
+ * Maps the ServerExecuteFunction operation to a typed request wrapper.
101
+ */
40
102
  class ServerExecuteFunctionOperationRequest extends ExecuteFunctionOperationRequest {
41
103
  protected role: RequestRole;
104
+ /**
105
+ * Creates a new ServerExecuteFunctionOperationRequest instance.
106
+ */
42
107
  constructor(requestData: CloudScriptModels.ServerExecuteFunctionRequestData, timeout: number);
43
108
  }
109
+ /**
110
+ * Maps the AdminExecuteFunction operation to a typed request wrapper.
111
+ */
44
112
  class AdminExecuteFunctionOperationRequest extends ExecuteFunctionOperationRequest {
45
113
  protected role: RequestRole;
114
+ /**
115
+ * Creates a new AdminExecuteFunctionOperationRequest instance.
116
+ */
46
117
  constructor(requestData: CloudScriptModels.AdminExecuteFunctionRequestData, timeout: number);
47
118
  }
119
+ /**
120
+ * Maps the GetFunction operation to a typed request wrapper.
121
+ */
48
122
  class GetFunctionOperationRequest extends CustomOperationRequestAbstract<CloudScriptModels.GetFunctionRequestData> {
49
123
  protected operationCode: string;
50
124
  protected requestType: RequestType;
51
125
  protected role: RequestRole;
126
+ /**
127
+ * Creates a new GetFunctionOperationRequest instance.
128
+ */
52
129
  constructor(requestData: CloudScriptModels.GetFunctionRequestData, timeout: number);
53
130
  }
131
+ /**
132
+ * Maps the ServerGetFunction operation to a typed request wrapper.
133
+ */
54
134
  class ServerGetFunctionOperationRequest extends GetFunctionOperationRequest {
55
135
  protected role: RequestRole;
136
+ /**
137
+ * Creates a new ServerGetFunctionOperationRequest instance.
138
+ */
56
139
  constructor(requestData: CloudScriptModels.ServerGetFunctionRequestData, timeout: number);
57
140
  }
141
+ /**
142
+ * Maps the AdminGetFunction operation to a typed request wrapper.
143
+ */
58
144
  class AdminGetFunctionOperationRequest extends GetFunctionOperationRequest {
59
145
  protected role: RequestRole;
146
+ /**
147
+ * Creates a new AdminGetFunctionOperationRequest instance.
148
+ */
60
149
  constructor(requestData: CloudScriptModels.AdminGetFunctionRequestData, timeout: number);
61
150
  }
151
+ /**
152
+ * Maps the GetFunctions operation to a typed request wrapper.
153
+ */
62
154
  class GetFunctionsOperationRequest extends CustomOperationRequestAbstract<CloudScriptModels.GetFunctionsRequestData> {
63
155
  protected operationCode: string;
64
156
  protected requestType: RequestType;
65
157
  protected role: RequestRole;
158
+ /**
159
+ * Creates a new GetFunctionsOperationRequest instance.
160
+ */
66
161
  constructor(requestData: CloudScriptModels.GetFunctionsRequestData, timeout: number);
67
162
  }
163
+ /**
164
+ * Maps the ServerGetFunctions operation to a typed request wrapper.
165
+ */
68
166
  class ServerGetFunctionsOperationRequest extends GetFunctionsOperationRequest {
69
167
  protected role: RequestRole;
168
+ /**
169
+ * Creates a new ServerGetFunctionsOperationRequest instance.
170
+ */
70
171
  constructor(requestData: CloudScriptModels.ServerGetFunctionsRequestData, timeout: number);
71
172
  }
173
+ /**
174
+ * Maps the AdminGetFunctions operation to a typed request wrapper.
175
+ */
72
176
  class AdminGetFunctionsOperationRequest extends GetFunctionsOperationRequest {
73
177
  protected role: RequestRole;
178
+ /**
179
+ * Creates a new AdminGetFunctionsOperationRequest instance.
180
+ */
74
181
  constructor(requestData: CloudScriptModels.AdminGetFunctionsRequestData, timeout: number);
75
182
  }
76
183
  }
@@ -1,19 +1,65 @@
1
1
  import { CustomOperationResponseAbstract } from "./../response/CustomOperationResponse";
2
2
  import { CloudScriptModels } from "./CloudScriptModels";
3
+ /**
4
+ * Typed response wrappers for the CloudScript domain.
5
+ *
6
+ * Each class extends {@link CustomOperationResponseAbstract}
7
+ * and binds a response DTO from {@link CloudScriptModels}.
8
+ *
9
+ * - **Execute flows** return the function result plus runtime
10
+ * telemetry: execution time, memory used, log lines emitted
11
+ * by the script, and an {@link ExecuteResponseStatus}
12
+ * discriminator describing the outcome
13
+ * (`Ok` / `Exception` / `FunctionNameNotFound` /
14
+ * `VersionInvalid` / `Timeout`).
15
+ * - **Management flows** return version metadata and any
16
+ * validation feedback the backend produced when accepting
17
+ * the new function source.
18
+ */
3
19
  export declare namespace CloudScriptResponseModels {
20
+ /**
21
+ * Maps the AddFunction operation to a typed response wrapper.
22
+ */
4
23
  class AddFunctionOperationResponse extends CustomOperationResponseAbstract<CloudScriptModels.AddFunctionResponseData> {
24
+ /**
25
+ * Creates a new AddFunctionOperationResponse instance.
26
+ */
5
27
  constructor();
6
28
  }
29
+ /**
30
+ * Maps the EditFunction operation to a typed response wrapper.
31
+ */
7
32
  class EditFunctionOperationResponse extends CustomOperationResponseAbstract<CloudScriptModels.EditFunctionResponseData> {
33
+ /**
34
+ * Creates a new EditFunctionOperationResponse instance.
35
+ */
8
36
  constructor();
9
37
  }
38
+ /**
39
+ * Maps the ExecuteFunction operation to a typed response wrapper.
40
+ */
10
41
  class ExecuteFunctionOperationResponse extends CustomOperationResponseAbstract<CloudScriptModels.ExecuteFunctionResponseData> {
42
+ /**
43
+ * Creates a new ExecuteFunctionOperationResponse instance.
44
+ */
11
45
  constructor();
12
46
  }
47
+ /**
48
+ * Maps the GetFunction operation to a typed response wrapper.
49
+ */
13
50
  class GetFunctionOperationResponse extends CustomOperationResponseAbstract<CloudScriptModels.GetFunctionResponseData> {
51
+ /**
52
+ * Creates a new GetFunctionOperationResponse instance.
53
+ */
14
54
  constructor();
15
55
  }
56
+ /**
57
+ * Maps the GetFunctions operation to a typed response wrapper.
58
+ */
16
59
  class GetFunctionsOperationResponse extends CustomOperationResponseAbstract<CloudScriptModels.GetFunctionsResponseData> {
60
+ /**
61
+ * Creates a new GetFunctionsOperationResponse instance.
62
+ */
17
63
  constructor();
18
64
  }
19
65
  }
@@ -1,87 +1,211 @@
1
1
  import { GNHashtable } from "./../../common/GNData";
2
2
  import { GenericModels } from "./GenericModels";
3
+ /**
4
+ * Reusable request and response DTOs for the Content domain.
5
+ *
6
+ * The Content domain manages two distinct kinds of content:
7
+ *
8
+ * 1. **`contentData` blobs** — small structured values keyed by
9
+ * a content key (`ContentDataParam.key`, `minLength: 2,
10
+ * maxLength: 32, mustNonNull: true`). Useful for game-wide
11
+ * config, MOTD strings, remote config flags. Manipulated via
12
+ * `getContentData` / `setContentData`.
13
+ *
14
+ * 2. **File uploads** — binary blobs identified by a `fileId`.
15
+ * The typed operations only manage the **metadata** slot;
16
+ * the actual byte transfer happens through
17
+ * {@link GNNetwork.uploadFile} (push) and
18
+ * {@link GNNetwork.getDownloadFileUrl} (pull). The standard
19
+ * workflow is:
20
+ *
21
+ * ```
22
+ * create upload info → returns fileId + upload token
23
+ * ↓
24
+ * GNNetwork.uploadFile (out of band, multipart POST)
25
+ * ↓
26
+ * request download info → returns short-lived download token
27
+ * ↓
28
+ * GNNetwork.getDownloadFileUrl (out of band, plain GET)
29
+ * ```
30
+ *
31
+ * Each request DTO has three role variants
32
+ * (`Client*`, `Server*`, `Admin*`) corresponding to the matching
33
+ * sub-namespace on `GNNetwork.content`. Server / Admin variants
34
+ * usually accept additional `userId` / `ownerId` parameters so
35
+ * trusted callers can act on behalf of any player.
36
+ */
3
37
  export declare namespace ContentModels {
38
+ /**
39
+ * Defines the reusable parameter block ContentDataParam.
40
+ */
4
41
  class ContentDataParam {
5
42
  key: string;
6
43
  data: GNHashtable;
7
44
  }
45
+ /**
46
+ * Allocates a new upload slot before the binary payload is uploaded through the separate upload helper.
47
+ */
8
48
  class CreateNewFileUploadInfoRequestData {
9
49
  fileName: string;
10
50
  }
51
+ /**
52
+ * Defines the request payload for ServerCreateNewFileUploadInfo.
53
+ */
11
54
  class ServerCreateNewFileUploadInfoRequestData extends CreateNewFileUploadInfoRequestData {
12
55
  }
56
+ /**
57
+ * Defines the request payload for AdminCreateNewFileUploadInfo.
58
+ */
13
59
  class AdminCreateNewFileUploadInfoRequestData extends ServerCreateNewFileUploadInfoRequestData {
14
60
  }
61
+ /**
62
+ * Reads content configuration blobs, optionally filtered by key list and label.
63
+ */
15
64
  class GetContentDataRequestData {
16
65
  keys?: Array<string>;
17
66
  label?: string;
18
67
  }
68
+ /**
69
+ * Defines the request payload for ServerGetContentData.
70
+ */
19
71
  class ServerGetContentDataRequestData extends GetContentDataRequestData {
20
72
  }
73
+ /**
74
+ * Defines the request payload for AdminGetContentData.
75
+ */
21
76
  class AdminGetContentDataRequestData extends ServerGetContentDataRequestData {
22
77
  }
78
+ /**
79
+ * Defines the request payload for GetFileUploadInfoList.
80
+ */
23
81
  class GetFileUploadInfoListRequestData {
24
82
  skip?: number;
25
83
  limit?: number;
26
84
  }
85
+ /**
86
+ * Defines the request payload for ServerGetFileUploadInfoList.
87
+ */
27
88
  class ServerGetFileUploadInfoListRequestData extends GetFileUploadInfoListRequestData {
28
89
  }
90
+ /**
91
+ * Defines the request payload for AdminGetFileUploadInfoList.
92
+ */
29
93
  class AdminGetFileUploadInfoListRequestData extends ServerGetFileUploadInfoListRequestData {
30
94
  }
95
+ /**
96
+ * Defines the request payload for GetFileUploadInfo.
97
+ */
31
98
  class GetFileUploadInfoRequestData {
32
99
  fileId: string;
33
100
  }
101
+ /**
102
+ * Defines the request payload for ServerGetFileUploadInfo.
103
+ */
34
104
  class ServerGetFileUploadInfoRequestData extends GetFileUploadInfoRequestData {
35
105
  }
106
+ /**
107
+ * Defines the request payload for AdminGetFileUploadInfo.
108
+ */
36
109
  class AdminGetFileUploadInfoRequestData extends ServerGetFileUploadInfoRequestData {
37
110
  }
111
+ /**
112
+ * Defines the request payload for RemoveFileUploadInfo.
113
+ */
38
114
  class RemoveFileUploadInfoRequestData {
39
115
  fileId: string;
40
116
  reason?: string;
41
117
  }
118
+ /**
119
+ * Defines the request payload for ServerRemoveFileUploadInfo.
120
+ */
42
121
  class ServerRemoveFileUploadInfoRequestData extends RemoveFileUploadInfoRequestData {
43
122
  }
123
+ /**
124
+ * Defines the request payload for AdminRemoveFileUploadInfo.
125
+ */
44
126
  class AdminRemoveFileUploadInfoRequestData extends ServerRemoveFileUploadInfoRequestData {
45
127
  }
128
+ /**
129
+ * Requests a short-lived download token for an existing uploaded file.
130
+ */
46
131
  class RequestDownloadFileUploadInfoRequestData {
47
132
  fileId: string;
48
133
  }
134
+ /**
135
+ * Defines the request payload for ServerRequestDownloadFileUploadInfo.
136
+ */
49
137
  class ServerRequestDownloadFileUploadInfoRequestData extends RequestDownloadFileUploadInfoRequestData {
50
138
  }
139
+ /**
140
+ * Defines the request payload for AdminRequestDownloadFileUploadInfo.
141
+ */
51
142
  class AdminRequestDownloadFileUploadInfoRequestData extends ServerRequestDownloadFileUploadInfoRequestData {
52
143
  }
144
+ /**
145
+ * Defines the request payload for SetContentData.
146
+ */
53
147
  class SetContentDataRequestData {
54
148
  configs: Array<ContentDataParam>;
55
149
  label?: string;
56
150
  }
151
+ /**
152
+ * Defines the request payload for ServerSetContentData.
153
+ */
57
154
  class ServerSetContentDataRequestData extends SetContentDataRequestData {
58
155
  }
156
+ /**
157
+ * Defines the request payload for AdminSetContentData.
158
+ */
59
159
  class AdminSetContentDataRequestData extends ServerSetContentDataRequestData {
60
160
  }
161
+ /**
162
+ * Returns the backend-generated file ID for follow-up upload or download workflows.
163
+ */
61
164
  class FileIdUploadResponseData {
62
165
  fileId: string;
63
166
  }
167
+ /**
168
+ * Defines the response payload for GetContentData.
169
+ */
64
170
  class GetContentDataResponseData {
65
171
  configs: Array<ContentDataParam>;
66
172
  }
173
+ /**
174
+ * Defines the response payload for GetFileUploadInfoList.
175
+ */
67
176
  class GetFileUploadInfoListResponseData {
68
177
  results: Array<FileIdUploadResponseData>;
69
178
  }
179
+ /**
180
+ * Describes upload metadata stored for one file entry.
181
+ */
70
182
  class FileUploadItem {
71
183
  mimeType: string;
72
184
  size: number;
73
185
  folderFileName: string;
74
186
  }
187
+ /**
188
+ * Returns metadata for one uploaded file entry.
189
+ */
75
190
  class GetFileUploadInfoResponseData extends FileIdUploadResponseData {
76
191
  fileName: string;
77
192
  tsCreate: number;
78
193
  removeStatus: GenericModels.RemoveStatusItem;
194
+ /**
195
+ * Upload-expiration timestamp for unfinished uploads when present.
196
+ */
79
197
  tsUploadExpire?: number;
80
198
  fileUpload?: FileUploadItem;
81
199
  }
200
+ /**
201
+ * Returns the download token consumed by the SDK download helper.
202
+ */
82
203
  class RequestDownloadFileUploadInfoResponseData {
83
204
  downloadToken: string;
84
205
  }
206
+ /**
207
+ * Defines an intentionally empty response payload.
208
+ */
85
209
  class EmptyResponseData {
86
210
  }
87
211
  }