@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.
- package/AGENTS.md +37 -0
- package/README.MD +420 -1
- package/dist/gearn.js.client.js +71354 -0
- package/dist/gearn.js.client.min.js +2 -0
- package/dist/gearn.js.client.min.js.LICENSE.txt +14 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +58386 -339
- package/dist/runtime/GNNetwork.d.ts +687 -3
- package/dist/runtime/GNNetworkAuthenticateApi.d.ts +327 -0
- package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +1026 -0
- package/dist/runtime/GNNetworkCloudScriptApi.d.ts +141 -0
- package/dist/runtime/GNNetworkContentApi.d.ts +243 -0
- package/dist/runtime/GNNetworkDashboardApi.d.ts +221 -0
- package/dist/runtime/GNNetworkGamePlayerApi.d.ts +1033 -0
- package/dist/runtime/GNNetworkGroupApi.d.ts +783 -0
- package/dist/runtime/GNNetworkInventoryApi.d.ts +673 -0
- package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +1614 -6
- package/dist/runtime/GNNetworkMultiplayerApi.d.ts +234 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +309 -0
- package/dist/runtime/common/Action0.d.ts +30 -0
- package/dist/runtime/common/Action1.d.ts +32 -0
- package/dist/runtime/common/Action2.d.ts +21 -0
- package/dist/runtime/common/Action3.d.ts +16 -0
- package/dist/runtime/common/Action4.d.ts +17 -0
- package/dist/runtime/common/GNData.d.ts +368 -0
- package/dist/runtime/config/GNServerSettings.d.ts +442 -12
- package/dist/runtime/constant/Commands.d.ts +80 -0
- package/dist/runtime/constant/EventCode.d.ts +48 -0
- package/dist/runtime/constant/OperationCode.d.ts +74 -1
- package/dist/runtime/constant/ReturnCode.d.ts +72 -0
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.d.ts +31 -0
- package/dist/runtime/constant/enumType/FriendStatus.d.ts +39 -0
- package/dist/runtime/constant/enumType/GoogleLoginType.d.ts +23 -0
- package/dist/runtime/constant/enumType/GroupStatus.d.ts +32 -0
- package/dist/runtime/constant/enumType/InvalidMemberType.d.ts +75 -0
- package/dist/runtime/constant/enumType/ItemType.d.ts +23 -0
- package/dist/runtime/constant/enumType/MatchStatus.d.ts +30 -0
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.d.ts +24 -0
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.d.ts +34 -0
- package/dist/runtime/constant/enumType/OwnerType.d.ts +40 -0
- package/dist/runtime/constant/enumType/PermissionDataItem.d.ts +22 -0
- package/dist/runtime/constant/enumType/PushPlatformType.d.ts +18 -0
- package/dist/runtime/constant/enumType/RequestRole.d.ts +32 -0
- package/dist/runtime/constant/enumType/RequestType.d.ts +70 -0
- package/dist/runtime/constant/enumType/StoreItemType.d.ts +21 -0
- package/dist/runtime/constant/enumType/StoreReceiveType.d.ts +30 -0
- package/dist/runtime/constant/errorCode/ErrorCode.d.ts +190 -8
- package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +35 -5
- package/dist/runtime/entity/DataMember.d.ts +338 -0
- package/dist/runtime/entity/GNMetadata.d.ts +101 -0
- package/dist/runtime/entity/InvalidMember.d.ts +28 -0
- package/dist/runtime/entity/OperationEvent.d.ts +49 -0
- package/dist/runtime/entity/OperationRequest.d.ts +108 -0
- package/dist/runtime/entity/OperationResponse.d.ts +110 -0
- package/dist/runtime/entity/models/AuthenticateModels.d.ts +115 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +131 -0
- package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +131 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +625 -1
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +972 -0
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +332 -0
- package/dist/runtime/entity/models/CloudScriptModels.d.ts +109 -0
- package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +107 -0
- package/dist/runtime/entity/models/CloudScriptResponseModels.d.ts +46 -0
- package/dist/runtime/entity/models/ContentModels.d.ts +124 -0
- package/dist/runtime/entity/models/ContentRequestModels.d.ts +152 -0
- package/dist/runtime/entity/models/ContentResponseModels.d.ts +58 -0
- package/dist/runtime/entity/models/DashboardModels.d.ts +371 -8
- package/dist/runtime/entity/models/DashboardRequestModels.d.ts +172 -0
- package/dist/runtime/entity/models/DashboardResponseModels.d.ts +170 -0
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +644 -1
- package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +959 -0
- package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +333 -1
- package/dist/runtime/entity/models/GenericModels.d.ts +94 -0
- package/dist/runtime/entity/models/GroupModels.d.ts +484 -2
- package/dist/runtime/entity/models/GroupRequestModels.d.ts +737 -0
- package/dist/runtime/entity/models/GroupResponseModels.d.ts +254 -0
- package/dist/runtime/entity/models/InventoryModels.d.ts +415 -0
- package/dist/runtime/entity/models/InventoryRequestModels.d.ts +629 -0
- package/dist/runtime/entity/models/InventoryResponseModels.d.ts +218 -0
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1065 -3
- package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +1560 -6
- package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +532 -1
- package/dist/runtime/entity/models/MultiplayerModels.d.ts +199 -0
- package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +196 -0
- package/dist/runtime/entity/models/MultiplayerResponseModels.d.ts +74 -0
- package/dist/runtime/entity/models/StoreInventoryModels.d.ts +262 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +268 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +98 -0
- package/dist/runtime/entity/request/CustomOperationRequest.d.ts +99 -0
- package/dist/runtime/entity/response/CustomOperationResponse.d.ts +118 -0
- package/dist/runtime/entity/response/GetAuthInfoResponse.d.ts +53 -0
- package/dist/runtime/entity/response/HealthCheckResponse.d.ts +56 -0
- package/dist/runtime/entity/response/UploadFileResponse.d.ts +19 -0
- package/dist/runtime/helper/CodeHelper.d.ts +122 -0
- package/dist/runtime/helper/ConverterService.d.ts +74 -0
- package/dist/runtime/helper/EnumUtility.d.ts +63 -0
- package/dist/runtime/helper/GNSupport.d.ts +64 -4
- package/dist/runtime/helper/GNUtils.d.ts +54 -0
- package/dist/runtime/helper/MessagePackConverterService.d.ts +48 -0
- package/dist/runtime/helper/OperationHelper.d.ts +51 -0
- package/dist/runtime/helper/StorageService.d.ts +48 -8
- package/dist/runtime/logger/GNDebug.d.ts +117 -0
- package/dist/runtime/networking/AuthenticateStatus.d.ts +64 -0
- package/dist/runtime/networking/IPeer.d.ts +83 -0
- package/dist/runtime/networking/NetworkingPeer.d.ts +256 -1
- package/dist/runtime/networking/OperationPending.d.ts +112 -0
- package/dist/runtime/networking/PeerBase.d.ts +231 -0
- package/dist/runtime/networking/handler/IServerEventHandler.d.ts +84 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +69 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +49 -0
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +50 -0
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +41 -0
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +47 -0
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +46 -0
- package/dist/runtime/networking/http/HttpPeer.d.ts +173 -0
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +87 -0
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +113 -0
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +145 -0
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +198 -0
- package/dist/runtime/networking/socket/SocketPeer.d.ts +155 -0
- package/dist/runtime/typescript/ServiceUpdate.d.ts +46 -0
- package/docs/AI_CHEATSHEET.md +211 -0
- package/docs/COOKBOOK.md +912 -0
- package/docs/RULES.md +307 -0
- package/docs/ai-manifest.json +725 -0
- package/docs/guides/AUTHENTICATE.md +246 -0
- package/docs/guides/CHARACTER_PLAYER.md +439 -0
- package/docs/guides/CLOUDSCRIPT.md +335 -0
- package/docs/guides/COCOS_CREATOR_INTEGRATION.md +150 -0
- package/docs/guides/CONTENT.md +291 -0
- package/docs/guides/DASHBOARD.md +262 -0
- package/docs/guides/GAME_PLAYER.md +473 -0
- package/docs/guides/GROUP.md +412 -0
- package/docs/guides/INVENTORY.md +375 -0
- package/docs/guides/MASTER_PLAYER.md +458 -0
- package/docs/guides/MULTIPLAYER.md +303 -0
- package/docs/guides/STORE_INVENTORY.md +313 -0
- package/docs/llms-full.txt +43 -0
- package/docs/reference/API_AUTHENTICATE.md +75 -0
- package/docs/reference/API_CHARACTER_PLAYER.md +226 -0
- package/docs/reference/API_CLOUDSCRIPT.md +82 -0
- package/docs/reference/API_CONTENT.md +88 -0
- package/docs/reference/API_DASHBOARD.md +82 -0
- package/docs/reference/API_GAME_PLAYER.md +223 -0
- package/docs/reference/API_GROUP.md +187 -0
- package/docs/reference/API_INDEX.md +57 -0
- package/docs/reference/API_INVENTORY.md +169 -0
- package/docs/reference/API_MASTER_PLAYER.md +323 -0
- package/docs/reference/API_MULTIPLAYER.md +97 -0
- package/docs/reference/API_STORE_INVENTORY.md +109 -0
- package/docs/reference/CONFIG.md +107 -0
- package/docs/reference/DTO_INDEX.md +2543 -0
- package/docs/reference/ENUMS.md +433 -0
- package/docs/reference/ERROR_HANDLING.md +159 -0
- package/docs/reference/EVENTS.md +188 -0
- package/docs/reference/PERMISSION_RULES.md +55 -0
- package/docs/reference/dto/AUTHENTICATE.md +619 -0
- package/docs/reference/dto/CHARACTER_PLAYER.md +3686 -0
- package/docs/reference/dto/CLOUDSCRIPT.md +400 -0
- package/docs/reference/dto/CONTENT.md +548 -0
- package/docs/reference/dto/DASHBOARD.md +1980 -0
- package/docs/reference/dto/GAME_PLAYER.md +3631 -0
- package/docs/reference/dto/GENERIC.md +151 -0
- package/docs/reference/dto/GROUP.md +2842 -0
- package/docs/reference/dto/INVENTORY.md +2385 -0
- package/docs/reference/dto/MASTER_PLAYER.md +6024 -0
- package/docs/reference/dto/MULTIPLAYER.md +850 -0
- package/docs/reference/dto/STORE_INVENTORY.md +1262 -0
- package/llms.txt +47 -0
- package/package.json +11 -2
- package/GNServerSettings.debug.json +0 -21
- package/dist/runtime/GNNetwork.js +0 -273
- package/dist/runtime/GNNetworkAuthenticateApi.js +0 -122
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -968
- package/dist/runtime/GNNetworkCloudScriptApi.js +0 -104
- package/dist/runtime/GNNetworkContentApi.js +0 -140
- package/dist/runtime/GNNetworkDashboardApi.js +0 -170
- package/dist/runtime/GNNetworkGamePlayerApi.js +0 -950
- package/dist/runtime/GNNetworkGroupApi.js +0 -734
- package/dist/runtime/GNNetworkInventoryApi.js +0 -626
- package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -1550
- package/dist/runtime/GNNetworkMultiplayerApi.js +0 -194
- package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -266
- package/dist/runtime/common/Action0.js +0 -1
- package/dist/runtime/common/Action1.js +0 -1
- package/dist/runtime/common/Action2.js +0 -1
- package/dist/runtime/common/Action3.js +0 -1
- package/dist/runtime/common/Action4.js +0 -1
- package/dist/runtime/common/GNData.js +0 -209
- package/dist/runtime/config/GNServerSettings.js +0 -156
- package/dist/runtime/constant/Commands.js +0 -20
- package/dist/runtime/constant/EventCode.js +0 -8
- package/dist/runtime/constant/OperationCode.js +0 -221
- package/dist/runtime/constant/ReturnCode.js +0 -14
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
- package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
- package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
- package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
- package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
- package/dist/runtime/constant/enumType/ItemType.js +0 -5
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
- package/dist/runtime/constant/enumType/OwnerType.js +0 -9
- package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
- package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
- package/dist/runtime/constant/enumType/RequestRole.js +0 -6
- package/dist/runtime/constant/enumType/RequestType.js +0 -15
- package/dist/runtime/constant/enumType/StoreItemType.js +0 -5
- package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
- package/dist/runtime/constant/errorCode/ErrorCode.js +0 -52
- package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -617
- package/dist/runtime/entity/DataMember.js +0 -208
- package/dist/runtime/entity/GNMetadata.js +0 -11
- package/dist/runtime/entity/InvalidMember.js +0 -1
- package/dist/runtime/entity/OperationEvent.js +0 -24
- package/dist/runtime/entity/OperationRequest.js +0 -42
- package/dist/runtime/entity/OperationResponse.js +0 -73
- package/dist/runtime/entity/models/AuthenticateModels.js +0 -426
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -188
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
- package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1433
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1386
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -376
- package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -138
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
- package/dist/runtime/entity/models/ContentModels.js +0 -203
- package/dist/runtime/entity/models/ContentRequestModels.js +0 -190
- package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
- package/dist/runtime/entity/models/DashboardModels.js +0 -3002
- package/dist/runtime/entity/models/DashboardRequestModels.js +0 -268
- package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
- package/dist/runtime/entity/models/GamePlayerModels.js +0 -1591
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1360
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
- package/dist/runtime/entity/models/GenericModels.js +0 -177
- package/dist/runtime/entity/models/GroupModels.js +0 -1135
- package/dist/runtime/entity/models/GroupRequestModels.js +0 -1048
- package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
- package/dist/runtime/entity/models/InventoryModels.js +0 -915
- package/dist/runtime/entity/models/InventoryRequestModels.js +0 -892
- package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
- package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2573
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2228
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
- package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -268
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
- package/dist/runtime/entity/models/StoreInventoryModels.js +0 -797
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -372
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -103
- package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
- package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
- package/dist/runtime/entity/response/HealthCheckResponse.js +0 -2
- package/dist/runtime/entity/response/UploadFileResponse.js +0 -2
- package/dist/runtime/helper/CodeHelper.js +0 -63
- package/dist/runtime/helper/ConverterService.js +0 -275
- package/dist/runtime/helper/EnumUtility.js +0 -33
- package/dist/runtime/helper/GNSupport.js +0 -47
- package/dist/runtime/helper/GNUtils.js +0 -72
- package/dist/runtime/helper/MessagePackConverterService.js +0 -9
- package/dist/runtime/helper/OperationHelper.js +0 -24
- package/dist/runtime/helper/StorageService.js +0 -62
- package/dist/runtime/logger/GNDebug.js +0 -29
- package/dist/runtime/networking/AuthenticateStatus.js +0 -14
- package/dist/runtime/networking/IPeer.js +0 -1
- package/dist/runtime/networking/NetworkingPeer.js +0 -210
- package/dist/runtime/networking/OperationPending.js +0 -53
- package/dist/runtime/networking/PeerBase.js +0 -161
- package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -43
- package/dist/runtime/networking/http/HttpPeer.js +0 -123
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -9
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -179
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -130
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -165
- package/dist/runtime/networking/socket/SocketPeer.js +0 -115
- package/dist/runtime/typescript/ServiceUpdate.js +0 -22
- package/docs/COCOS_CREATOR_INTEGRATION.md +0 -116
- package/examples/cocos-creator/GearNExample.ts.txt +0 -176
- package/srcSwift/Package.swift +0 -32
- package/srcSwift/Sources/GearN/runtime/GNNetwork.swift +0 -530
- package/srcSwift/Sources/GearN/runtime/GNNetworkAuthenticateApi.swift +0 -178
- package/srcSwift/Sources/GearN/runtime/GNNetworkCharacterPlayerApi.swift +0 -1162
- package/srcSwift/Sources/GearN/runtime/GNNetworkCloudScriptApi.swift +0 -154
- package/srcSwift/Sources/GearN/runtime/GNNetworkContentApi.swift +0 -208
- package/srcSwift/Sources/GearN/runtime/GNNetworkDashboardApi.swift +0 -240
- package/srcSwift/Sources/GearN/runtime/GNNetworkGamePlayerApi.swift +0 -1369
- package/srcSwift/Sources/GearN/runtime/GNNetworkGroupApi.swift +0 -1100
- package/srcSwift/Sources/GearN/runtime/GNNetworkInventoryApi.swift +0 -937
- package/srcSwift/Sources/GearN/runtime/GNNetworkMasterPlayerApi.swift +0 -2323
- package/srcSwift/Sources/GearN/runtime/GNNetworkMultiplayerApi.swift +0 -298
- package/srcSwift/Sources/GearN/runtime/GNNetworkStoreInventoryApi.swift +0 -397
- package/srcSwift/Sources/GearN/runtime/common/Action0.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action1.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action2.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action3.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action4.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/GNArray.swift +0 -204
- package/srcSwift/Sources/GearN/runtime/common/GNData.swift +0 -108
- package/srcSwift/Sources/GearN/runtime/common/GNHashtable.swift +0 -200
- package/srcSwift/Sources/GearN/runtime/config/GNServerSettings.swift +0 -95
- package/srcSwift/Sources/GearN/runtime/constant/Commands.swift +0 -28
- package/srcSwift/Sources/GearN/runtime/constant/EventCode.swift +0 -10
- package/srcSwift/Sources/GearN/runtime/constant/OperationCode.swift +0 -252
- package/srcSwift/Sources/GearN/runtime/constant/ReturnCode.swift +0 -19
- package/srcSwift/Sources/GearN/runtime/constant/enumType/ExecuteResponseStatus.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/constant/enumType/FriendStatus.swift +0 -8
- package/srcSwift/Sources/GearN/runtime/constant/enumType/GoogleLoginType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/GroupStatus.swift +0 -8
- package/srcSwift/Sources/GearN/runtime/constant/enumType/InvalidMemberType.swift +0 -19
- package/srcSwift/Sources/GearN/runtime/constant/enumType/ItemType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingMemberStatus.swift +0 -7
- package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingTicketStatus.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/constant/enumType/OwnerType.swift +0 -10
- package/srcSwift/Sources/GearN/runtime/constant/enumType/PermissionDataItem.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/PushPlatformType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestRole.swift +0 -7
- package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestType.swift +0 -16
- package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreItemType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreReceiveType.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/constant/errorCode/ErrorCode.swift +0 -58
- package/srcSwift/Sources/GearN/runtime/constant/parameterCode/ParameterCode.swift +0 -672
- package/srcSwift/Sources/GearN/runtime/entity/DataMember.swift +0 -196
- package/srcSwift/Sources/GearN/runtime/entity/GNMetadata.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/entity/InvalidMember.swift +0 -11
- package/srcSwift/Sources/GearN/runtime/entity/OperationEvent.swift +0 -38
- package/srcSwift/Sources/GearN/runtime/entity/OperationHelper.swift +0 -28
- package/srcSwift/Sources/GearN/runtime/entity/OperationRequest.swift +0 -62
- package/srcSwift/Sources/GearN/runtime/entity/OperationResponse.swift +0 -98
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateModels.swift +0 -351
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateRequestModels.swift +0 -81
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateResponseModels.swift +0 -108
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerModels.swift +0 -1045
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerRequestModels.swift +0 -821
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerResponseModels.swift +0 -588
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptModels.swift +0 -187
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptRequestModels.swift +0 -84
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptResponseModels.swift +0 -59
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentModels.swift +0 -195
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentRequestModels.swift +0 -116
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentResponseModels.swift +0 -81
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardModels.swift +0 -426
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardRequestModels.swift +0 -160
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardResponseModels.swift +0 -82
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerModels.swift +0 -1334
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerRequestModels.swift +0 -643
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerResponseModels.swift +0 -213
- package/srcSwift/Sources/GearN/runtime/entity/models/GenericModels.swift +0 -171
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupModels.swift +0 -850
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupRequestModels.swift +0 -485
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupResponseModels.swift +0 -165
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryModels.swift +0 -679
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryRequestModels.swift +0 -413
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryResponseModels.swift +0 -141
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerModels.swift +0 -378
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerRequestModels.swift +0 -147
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerResponseModels.swift +0 -318
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerModels.swift +0 -319
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerRequestModels.swift +0 -125
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerResponseModels.swift +0 -45
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryModels.swift +0 -633
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryRequestModels.swift +0 -173
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryResponseModels.swift +0 -61
- package/srcSwift/Sources/GearN/runtime/entity/request/CustomOperationRequest.swift +0 -42
- package/srcSwift/Sources/GearN/runtime/entity/response/CustomOperationResponse.swift +0 -49
- package/srcSwift/Sources/GearN/runtime/entity/response/GetAuthInfoResponse.swift +0 -43
- package/srcSwift/Sources/GearN/runtime/entity/response/HealthCheckResponse.swift +0 -86
- package/srcSwift/Sources/GearN/runtime/entity/response/UploadFileResponse.swift +0 -15
- package/srcSwift/Sources/GearN/runtime/helper/CodeHelper.swift +0 -107
- package/srcSwift/Sources/GearN/runtime/helper/ConverterService.swift +0 -98
- package/srcSwift/Sources/GearN/runtime/helper/EnumUtility.swift +0 -34
- package/srcSwift/Sources/GearN/runtime/helper/GNSupport.swift +0 -41
- package/srcSwift/Sources/GearN/runtime/helper/GNUtils.swift +0 -66
- package/srcSwift/Sources/GearN/runtime/helper/MessagePackConverterService.swift +0 -21
- package/srcSwift/Sources/GearN/runtime/helper/StorageService.swift +0 -29
- package/srcSwift/Sources/GearN/runtime/logger/GNDebug.swift +0 -33
- package/srcSwift/Sources/GearN/runtime/networking/AuthenticateStatus.swift +0 -24
- package/srcSwift/Sources/GearN/runtime/networking/IPeer.swift +0 -8
- package/srcSwift/Sources/GearN/runtime/networking/NetworkingPeer.swift +0 -368
- package/srcSwift/Sources/GearN/runtime/networking/OperationPending.swift +0 -81
- package/srcSwift/Sources/GearN/runtime/networking/PeerBase.swift +0 -228
- package/srcSwift/Sources/GearN/runtime/networking/handler/IServerEventHandler.swift +0 -20
- package/srcSwift/Sources/GearN/runtime/networking/http/HttpPeer.swift +0 -226
- package/srcSwift/Sources/GearN/runtime/networking/http/HttpTypes.swift +0 -24
- package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingHttpPeerBase.swift +0 -13
- package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingPeerUrlSession.swift +0 -125
- package/srcSwift/Sources/GearN/runtime/networking/request/NetRequest.swift +0 -19
- package/srcSwift/Sources/GearN/runtime/networking/response/NetResponse.swift +0 -13
- package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingPeerSocketIOClient.swift +0 -244
- package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingSocketPeerBase.swift +0 -59
- package/srcSwift/Sources/GearN/runtime/networking/socket/SocketPeer.swift +0 -136
- package/tsconfig-build.cocos.json +0 -31
- 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
|
|
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
|
}
|