@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
|
@@ -2,47 +2,374 @@ import { Action1 } from "./common/Action1";
|
|
|
2
2
|
import { GNHashtable } from "./common/GNData";
|
|
3
3
|
import { AuthenticateModels } from "./entity/models/AuthenticateModels";
|
|
4
4
|
import { AuthenticateResponseModels } from "./entity/models/AuthenticateResponseModels";
|
|
5
|
+
/**
|
|
6
|
+
* Public client-scoped namespace for the Authenticate domain.
|
|
7
|
+
*
|
|
8
|
+
* Reachable through {@link GNNetwork.authenticate} after
|
|
9
|
+
* {@link GNNetwork.init}. Exposes every login flow, the
|
|
10
|
+
* registration flow, and the refresh-token flow as both
|
|
11
|
+
* callback-style and Promise-style methods.
|
|
12
|
+
*
|
|
13
|
+
* Common contract for every method on this class:
|
|
14
|
+
* - Routes through HTTP using {@link RequestType.Authenticate} and
|
|
15
|
+
* {@link RequestRole.Client}. The matching wire-level operation
|
|
16
|
+
* code is taken from {@link OperationCode}; refer to each
|
|
17
|
+
* `*OperationRequest` wrapper in
|
|
18
|
+
* {@link AuthenticateRequestModels} for the exact mapping.
|
|
19
|
+
* - On success the response embeds the freshly minted auth token
|
|
20
|
+
* plus the profile fields requested through `infoRequestParam`.
|
|
21
|
+
* {@link PeerBase.onResponseHandler} mirrors the `authToken`
|
|
22
|
+
* and `userId` parameters into {@link AuthenticateStatus} and
|
|
23
|
+
* {@link StorageService} automatically — subsequent calls do
|
|
24
|
+
* not need to repeat the credential.
|
|
25
|
+
* - The standard parameter set
|
|
26
|
+
* (`overrideAuthToken`, `overrideSecretKey`, `customTags`,
|
|
27
|
+
* `timeout`) is documented on {@link GNNetwork.sendViaHttp} and
|
|
28
|
+
* applies identically here.
|
|
29
|
+
*
|
|
30
|
+
* The companion {@link ServerAuthenticateApi} and
|
|
31
|
+
* {@link AdminAuthenticateApi} sub-namespaces exist for API
|
|
32
|
+
* symmetry — they are currently empty because the Authenticate
|
|
33
|
+
* domain does not yet expose server-scoped or admin-scoped public
|
|
34
|
+
* operations.
|
|
35
|
+
*/
|
|
5
36
|
export declare class AuthenticateApi {
|
|
37
|
+
/**
|
|
38
|
+
* Server-scoped Authenticate sub-namespace. Reserved — no
|
|
39
|
+
* public methods are exposed today.
|
|
40
|
+
*/
|
|
6
41
|
server: ServerAuthenticateApi;
|
|
42
|
+
/**
|
|
43
|
+
* Admin-scoped Authenticate sub-namespace. Reserved — no
|
|
44
|
+
* public methods are exposed today.
|
|
45
|
+
*/
|
|
7
46
|
admin: AdminAuthenticateApi;
|
|
47
|
+
/**
|
|
48
|
+
* Logs the player in with a GearN username + password pair.
|
|
49
|
+
*
|
|
50
|
+
* Backed by {@link OperationCode.LoginByAccount} with
|
|
51
|
+
* {@link AuthenticateModels.LoginByAccountRequestData} as the
|
|
52
|
+
* request DTO. Username constraints: `minLength: 6,
|
|
53
|
+
* maxLength: 32, mustNonNull: true`. Password constraints:
|
|
54
|
+
* `minLength: 6, maxLength: 64, mustNonNull: true`.
|
|
55
|
+
* `infoRequestParam` controls which optional profile fields
|
|
56
|
+
* are included in the response.
|
|
57
|
+
*
|
|
58
|
+
* Domain failures surface through `response.errorCode`:
|
|
59
|
+
* - {@link ErrorCode.AccountNotFound} — username unknown.
|
|
60
|
+
* - {@link ErrorCode.AccountPasswordWrong} — password
|
|
61
|
+
* mismatch.
|
|
62
|
+
*
|
|
63
|
+
* @param requestData Typed login DTO.
|
|
64
|
+
* @param onResponse Optional callback receiving
|
|
65
|
+
* {@link AuthenticateResponseModels.LoginByAccountOperationResponse}.
|
|
66
|
+
* @param overrideAuthToken Optional one-shot auth token. Pass
|
|
67
|
+
* `null` to use the cached token.
|
|
68
|
+
* @param overrideSecretKey Optional one-shot secret key.
|
|
69
|
+
* @param customTags Optional routing / telemetry tags.
|
|
70
|
+
* @param timeout Per-request timeout in seconds.
|
|
71
|
+
* Defaults to
|
|
72
|
+
* {@link OperationRequest.defaultTimeOut}.
|
|
73
|
+
*/
|
|
8
74
|
loginByAccount(requestData: AuthenticateModels.LoginByAccountRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByAccountOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
75
|
+
/**
|
|
76
|
+
* Promise-based wrapper around {@link loginByAccount}.
|
|
77
|
+
*
|
|
78
|
+
* The promise always resolves; transport / domain failures
|
|
79
|
+
* surface through `response.hasReturnCodeError()` and
|
|
80
|
+
* `response.errorCode`.
|
|
81
|
+
*/
|
|
9
82
|
loginByAccountAsync(requestData: AuthenticateModels.LoginByAccountRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByAccountOperationResponse>;
|
|
83
|
+
/**
|
|
84
|
+
* Logs the player in with an Android-platform device id.
|
|
85
|
+
*
|
|
86
|
+
* Backed by {@link OperationCode.LoginByAndroidDeviceId} with
|
|
87
|
+
* {@link AuthenticateModels.LoginByAndroidDeviceIdRequestData}.
|
|
88
|
+
* The device id is constrained to `minLength: 6,
|
|
89
|
+
* maxLength: 64, mustNonNull: true`. Set
|
|
90
|
+
* `createPlayerIfNotExists = true` on the DTO to
|
|
91
|
+
* auto-provision a player record on first sign-in.
|
|
92
|
+
*
|
|
93
|
+
* Pair with `linkAndroidDeviceId` (on
|
|
94
|
+
* `GNNetwork.masterPlayer`) to attach an existing GearN
|
|
95
|
+
* account to a device id, and with `unlinkAndroidDeviceId` to
|
|
96
|
+
* detach it.
|
|
97
|
+
*/
|
|
10
98
|
loginByAndroidDeviceId(requestData: AuthenticateModels.LoginByAndroidDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
99
|
+
/**
|
|
100
|
+
* Promise-based wrapper around {@link loginByAndroidDeviceId}.
|
|
101
|
+
*/
|
|
11
102
|
loginByAndroidDeviceIdAsync(requestData: AuthenticateModels.LoginByAndroidDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByAndroidDeviceIdOperationResponse>;
|
|
103
|
+
/**
|
|
104
|
+
* Logs the player in with an Apple Sign-In token.
|
|
105
|
+
*
|
|
106
|
+
* Backed by {@link OperationCode.LoginByApple} with
|
|
107
|
+
* {@link AuthenticateModels.LoginByAppleRequestData}. Token
|
|
108
|
+
* constrained to `minLength: 32, maxLength: 2048,
|
|
109
|
+
* mustNonNull: true`. The backend introspects the token
|
|
110
|
+
* against Apple's identity service before issuing a GearN
|
|
111
|
+
* auth token.
|
|
112
|
+
*
|
|
113
|
+
* Domain failures: {@link ErrorCode.VerifyTokenError} when
|
|
114
|
+
* the token cannot be decoded,
|
|
115
|
+
* {@link ErrorCode.VerifyFailed} when Apple rejects the
|
|
116
|
+
* verification.
|
|
117
|
+
*/
|
|
12
118
|
loginByApple(requestData: AuthenticateModels.LoginByAppleRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByAppleOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
119
|
+
/**
|
|
120
|
+
* Promise-based wrapper around {@link loginByApple}.
|
|
121
|
+
*/
|
|
13
122
|
loginByAppleAsync(requestData: AuthenticateModels.LoginByAppleRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByAppleOperationResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Logs the player in with a developer-defined custom device
|
|
125
|
+
* id.
|
|
126
|
+
*
|
|
127
|
+
* Backed by {@link OperationCode.LoginByCustomDeviceId} with
|
|
128
|
+
* {@link AuthenticateModels.LoginByCustomDeviceIdRequestData}.
|
|
129
|
+
* Use this when the application wants full control over the
|
|
130
|
+
* device-fingerprint algorithm (game-specific salt, blended
|
|
131
|
+
* hardware ids, ...). Constraints: `minLength: 6,
|
|
132
|
+
* maxLength: 64, mustNonNull: true`.
|
|
133
|
+
*/
|
|
14
134
|
loginByCustomDeviceId(requestData: AuthenticateModels.LoginByCustomDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
135
|
+
/**
|
|
136
|
+
* Promise-based wrapper around {@link loginByCustomDeviceId}.
|
|
137
|
+
*/
|
|
15
138
|
loginByCustomDeviceIdAsync(requestData: AuthenticateModels.LoginByCustomDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByCustomDeviceIdOperationResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* Logs the player in with a developer-defined custom user id.
|
|
141
|
+
*
|
|
142
|
+
* Backed by {@link OperationCode.LoginByCustomId} with
|
|
143
|
+
* {@link AuthenticateModels.LoginByCustomIdRequestData}.
|
|
144
|
+
* Distinct from {@link loginByCustomDeviceId} — the custom id
|
|
145
|
+
* is treated as a stable user identifier (e.g. an external
|
|
146
|
+
* account id from a federated identity service) rather than a
|
|
147
|
+
* device fingerprint.
|
|
148
|
+
*/
|
|
16
149
|
loginByCustomId(requestData: AuthenticateModels.LoginByCustomIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByCustomIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
150
|
+
/**
|
|
151
|
+
* Promise-based wrapper around {@link loginByCustomId}.
|
|
152
|
+
*/
|
|
17
153
|
loginByCustomIdAsync(requestData: AuthenticateModels.LoginByCustomIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByCustomIdOperationResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Logs the player in with an editor-only device id.
|
|
156
|
+
*
|
|
157
|
+
* Backed by {@link OperationCode.LoginByEditorDeviceId} with
|
|
158
|
+
* {@link AuthenticateModels.LoginByEditorDeviceIdRequestData}.
|
|
159
|
+
* Reserved for the GearN-supported editor / development
|
|
160
|
+
* runtime so QA accounts can sign in without a production
|
|
161
|
+
* device id.
|
|
162
|
+
*/
|
|
18
163
|
loginByEditorDeviceId(requestData: AuthenticateModels.LoginByEditorDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
164
|
+
/**
|
|
165
|
+
* Promise-based wrapper around {@link loginByEditorDeviceId}.
|
|
166
|
+
*/
|
|
19
167
|
loginByEditorDeviceIdAsync(requestData: AuthenticateModels.LoginByEditorDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByEditorDeviceIdOperationResponse>;
|
|
168
|
+
/**
|
|
169
|
+
* Logs the player in with a Facebook access token.
|
|
170
|
+
*
|
|
171
|
+
* Backed by {@link OperationCode.LoginByFacebook} with
|
|
172
|
+
* {@link AuthenticateModels.LoginByFacebookRequestData}.
|
|
173
|
+
* Token constrained to `minLength: 32, maxLength: 2048,
|
|
174
|
+
* mustNonNull: true`. Backend introspects the token against
|
|
175
|
+
* Facebook's Graph API.
|
|
176
|
+
*/
|
|
20
177
|
loginByFacebook(requestData: AuthenticateModels.LoginByFacebookRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByFacebookOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
178
|
+
/**
|
|
179
|
+
* Promise-based wrapper around {@link loginByFacebook}.
|
|
180
|
+
*/
|
|
21
181
|
loginByFacebookAsync(requestData: AuthenticateModels.LoginByFacebookRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByFacebookOperationResponse>;
|
|
182
|
+
/**
|
|
183
|
+
* Logs the player in through a backend-configured generic
|
|
184
|
+
* identity provider.
|
|
185
|
+
*
|
|
186
|
+
* Backed by {@link OperationCode.LoginByGenericService} with
|
|
187
|
+
* {@link AuthenticateModels.LoginByGenericServiceRequestData}.
|
|
188
|
+
* `serviceName` selects which configured provider integration
|
|
189
|
+
* to invoke (`minLength: 6, maxLength: 32,
|
|
190
|
+
* mustNonNull: true`). `serviceData` is provider-defined;
|
|
191
|
+
* check the backend documentation for the schema each
|
|
192
|
+
* integration expects.
|
|
193
|
+
*
|
|
194
|
+
* Returns the extended
|
|
195
|
+
* {@link AuthenticateModels.GenericServiceAuthenticateResponseData}
|
|
196
|
+
* shape via
|
|
197
|
+
* {@link AuthenticateResponseModels.LoginByGenericServiceOperationResponse}
|
|
198
|
+
* so provider-specific error messages can be surfaced.
|
|
199
|
+
*/
|
|
22
200
|
loginByGenericService(requestData: AuthenticateModels.LoginByGenericServiceRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByGenericServiceOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
201
|
+
/**
|
|
202
|
+
* Promise-based wrapper around {@link loginByGenericService}.
|
|
203
|
+
*/
|
|
23
204
|
loginByGenericServiceAsync(requestData: AuthenticateModels.LoginByGenericServiceRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByGenericServiceOperationResponse>;
|
|
205
|
+
/**
|
|
206
|
+
* Logs the player in with a Google credential.
|
|
207
|
+
*
|
|
208
|
+
* Backed by {@link OperationCode.LoginByGoogle} with
|
|
209
|
+
* {@link AuthenticateModels.LoginByGoogleRequestData}. The
|
|
210
|
+
* `type` field on the DTO must be a {@link GoogleLoginType}
|
|
211
|
+
* value (`AccessToken` or `IdToken`) so the backend uses the
|
|
212
|
+
* correct validation path.
|
|
213
|
+
*/
|
|
24
214
|
loginByGoogle(requestData: AuthenticateModels.LoginByGoogleRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByGoogleOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
215
|
+
/**
|
|
216
|
+
* Promise-based wrapper around {@link loginByGoogle}.
|
|
217
|
+
*/
|
|
25
218
|
loginByGoogleAsync(requestData: AuthenticateModels.LoginByGoogleRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByGoogleOperationResponse>;
|
|
219
|
+
/**
|
|
220
|
+
* Logs the player in with a Google Play Game Services token.
|
|
221
|
+
*
|
|
222
|
+
* Backed by
|
|
223
|
+
* {@link OperationCode.LoginByGooglePlayGameService} with
|
|
224
|
+
* {@link AuthenticateModels.LoginByGooglePlayGameServiceRequestData}.
|
|
225
|
+
* Distinct from {@link loginByGoogle} because the Play Games
|
|
226
|
+
* token comes from a different OAuth surface and is
|
|
227
|
+
* validated against a separate Google endpoint.
|
|
228
|
+
*/
|
|
26
229
|
loginByGooglePlayGameService(requestData: AuthenticateModels.LoginByGooglePlayGameServiceRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
230
|
+
/**
|
|
231
|
+
* Promise-based wrapper around
|
|
232
|
+
* {@link loginByGooglePlayGameService}.
|
|
233
|
+
*/
|
|
27
234
|
loginByGooglePlayGameServiceAsync(requestData: AuthenticateModels.LoginByGooglePlayGameServiceRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByGooglePlayGameServiceOperationResponse>;
|
|
235
|
+
/**
|
|
236
|
+
* Logs the player in with a Game Center signature bundle.
|
|
237
|
+
*
|
|
238
|
+
* Backed by {@link OperationCode.LoginByGameCenter} with
|
|
239
|
+
* {@link AuthenticateModels.LoginByGameCenterRequestData}.
|
|
240
|
+
* Apple Game Center authentication is signature-based — the
|
|
241
|
+
* client must supply the player id, name, the public-key URL,
|
|
242
|
+
* the signature, the salt, and the timestamp produced by the
|
|
243
|
+
* iOS Game Center SDK. The backend re-validates the signature
|
|
244
|
+
* against Apple's published public key.
|
|
245
|
+
*/
|
|
28
246
|
loginByGameCenter(requestData: AuthenticateModels.LoginByGameCenterRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByGameCenterOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
247
|
+
/**
|
|
248
|
+
* Promise-based wrapper around {@link loginByGameCenter}.
|
|
249
|
+
*/
|
|
29
250
|
loginByGameCenterAsync(requestData: AuthenticateModels.LoginByGameCenterRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByGameCenterOperationResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* Logs the player in with an iOS-platform device id.
|
|
253
|
+
*
|
|
254
|
+
* Backed by {@link OperationCode.LoginByiOSDeviceId} with
|
|
255
|
+
* {@link AuthenticateModels.LoginByiOSDeviceIdRequestData}.
|
|
256
|
+
* Same constraints / behaviour as
|
|
257
|
+
* {@link loginByAndroidDeviceId} but for iOS device
|
|
258
|
+
* identifiers (typically the Identifier-for-Vendor).
|
|
259
|
+
*/
|
|
30
260
|
loginByiOSDeviceId(requestData: AuthenticateModels.LoginByiOSDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
261
|
+
/**
|
|
262
|
+
* Promise-based wrapper around {@link loginByiOSDeviceId}.
|
|
263
|
+
*/
|
|
31
264
|
loginByiOSDeviceIdAsync(requestData: AuthenticateModels.LoginByiOSDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByiOSDeviceIdOperationResponse>;
|
|
265
|
+
/**
|
|
266
|
+
* Logs the player in with a Linux-platform device id.
|
|
267
|
+
*
|
|
268
|
+
* Backed by {@link OperationCode.LoginByLinuxDeviceId} with
|
|
269
|
+
* {@link AuthenticateModels.LoginByLinuxDeviceIdRequestData}.
|
|
270
|
+
* Same shape as the other device-id flows — primarily used
|
|
271
|
+
* by dedicated-server clients or Linux-based desktop builds.
|
|
272
|
+
*/
|
|
32
273
|
loginByLinuxDeviceId(requestData: AuthenticateModels.LoginByLinuxDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
274
|
+
/**
|
|
275
|
+
* Promise-based wrapper around {@link loginByLinuxDeviceId}.
|
|
276
|
+
*/
|
|
33
277
|
loginByLinuxDeviceIdAsync(requestData: AuthenticateModels.LoginByLinuxDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByLinuxDeviceIdOperationResponse>;
|
|
278
|
+
/**
|
|
279
|
+
* Logs the player in with a macOS-platform device id.
|
|
280
|
+
*
|
|
281
|
+
* Backed by {@link OperationCode.LoginByMacOSDeviceId} with
|
|
282
|
+
* {@link AuthenticateModels.LoginByMacOSDeviceIdRequestData}.
|
|
283
|
+
*/
|
|
34
284
|
loginByMacOSDeviceId(requestData: AuthenticateModels.LoginByMacOSDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
285
|
+
/**
|
|
286
|
+
* Promise-based wrapper around {@link loginByMacOSDeviceId}.
|
|
287
|
+
*/
|
|
35
288
|
loginByMacOSDeviceIdAsync(requestData: AuthenticateModels.LoginByMacOSDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByMacOSDeviceIdOperationResponse>;
|
|
289
|
+
/**
|
|
290
|
+
* Logs the player in with a Windows-platform device id.
|
|
291
|
+
*
|
|
292
|
+
* Backed by {@link OperationCode.LoginByWindowsDeviceId} with
|
|
293
|
+
* {@link AuthenticateModels.LoginByWindowsDeviceIdRequestData}.
|
|
294
|
+
*/
|
|
36
295
|
loginByWindowsDeviceId(requestData: AuthenticateModels.LoginByWindowsDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
296
|
+
/**
|
|
297
|
+
* Promise-based wrapper around {@link loginByWindowsDeviceId}.
|
|
298
|
+
*/
|
|
37
299
|
loginByWindowsDeviceIdAsync(requestData: AuthenticateModels.LoginByWindowsDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByWindowsDeviceIdOperationResponse>;
|
|
300
|
+
/**
|
|
301
|
+
* Logs the player in with a Windows Phone device id.
|
|
302
|
+
*
|
|
303
|
+
* Backed by
|
|
304
|
+
* {@link OperationCode.LoginByWindowsPhoneDeviceId} with
|
|
305
|
+
* {@link AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData}.
|
|
306
|
+
* Kept for backward compatibility; new integrations should
|
|
307
|
+
* prefer {@link loginByWindowsDeviceId} on Windows Mobile
|
|
308
|
+
* targets.
|
|
309
|
+
*/
|
|
38
310
|
loginByWindowsPhoneDeviceId(requestData: AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData, onResponse?: Action1<AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
311
|
+
/**
|
|
312
|
+
* Promise-based wrapper around
|
|
313
|
+
* {@link loginByWindowsPhoneDeviceId}.
|
|
314
|
+
*/
|
|
39
315
|
loginByWindowsPhoneDeviceIdAsync(requestData: AuthenticateModels.LoginByWindowsPhoneDeviceIdRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.LoginByWindowsPhoneDeviceIdOperationResponse>;
|
|
316
|
+
/**
|
|
317
|
+
* Creates a new GearN account by username + password and signs
|
|
318
|
+
* it in.
|
|
319
|
+
*
|
|
320
|
+
* Backed by {@link OperationCode.RegisterAccount} with
|
|
321
|
+
* {@link AuthenticateModels.RegisterAccountRequestData}. Same
|
|
322
|
+
* username / password constraints as {@link loginByAccount}.
|
|
323
|
+
*
|
|
324
|
+
* Domain failure: {@link ErrorCode.AccountUsernameExists}
|
|
325
|
+
* when the username is already taken.
|
|
326
|
+
*/
|
|
40
327
|
registerAccount(requestData: AuthenticateModels.RegisterAccountRequestData, onResponse?: Action1<AuthenticateResponseModels.RegisterAccountOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
328
|
+
/**
|
|
329
|
+
* Promise-based wrapper around {@link registerAccount}.
|
|
330
|
+
*/
|
|
41
331
|
registerAccountAsync(requestData: AuthenticateModels.RegisterAccountRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.RegisterAccountOperationResponse>;
|
|
332
|
+
/**
|
|
333
|
+
* Refreshes the cached auth token.
|
|
334
|
+
*
|
|
335
|
+
* Backed by {@link OperationCode.RefreshAuthToken} with
|
|
336
|
+
* {@link AuthenticateModels.RefreshAuthTokenRequestData}
|
|
337
|
+
* (intentionally empty — the auth context comes from the
|
|
338
|
+
* cached token or from `overrideAuthToken`).
|
|
339
|
+
*
|
|
340
|
+
* Returns
|
|
341
|
+
* {@link AuthenticateResponseModels.RefreshAuthTokenOperationResponse}
|
|
342
|
+
* carrying only the new auth token plus optional ban state —
|
|
343
|
+
* profile fields are **not** included even when
|
|
344
|
+
* `infoRequestParam` was used during the original login.
|
|
345
|
+
*
|
|
346
|
+
* The {@link PeerBase.onResponseHandler} mirror keeps both the
|
|
347
|
+
* cache and the persistent {@link StorageService} entry up to
|
|
348
|
+
* date automatically.
|
|
349
|
+
*/
|
|
42
350
|
refreshAuthToken(requestData: AuthenticateModels.RefreshAuthTokenRequestData, onResponse?: Action1<AuthenticateResponseModels.RefreshAuthTokenOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
351
|
+
/**
|
|
352
|
+
* Promise-based wrapper around {@link refreshAuthToken}.
|
|
353
|
+
*/
|
|
43
354
|
refreshAuthTokenAsync(requestData: AuthenticateModels.RefreshAuthTokenRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<AuthenticateResponseModels.RefreshAuthTokenOperationResponse>;
|
|
44
355
|
}
|
|
356
|
+
/**
|
|
357
|
+
* Server-scoped Authenticate sub-namespace — placeholder.
|
|
358
|
+
*
|
|
359
|
+
* Reserved for future server-only authentication operations
|
|
360
|
+
* (delegated login flows, server-side token issuance). Currently
|
|
361
|
+
* exposes no public methods, but is allocated by
|
|
362
|
+
* {@link AuthenticateApi} so the `.server` property name is
|
|
363
|
+
* always defined.
|
|
364
|
+
*/
|
|
45
365
|
export declare class ServerAuthenticateApi {
|
|
46
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* Admin-scoped Authenticate sub-namespace — placeholder.
|
|
369
|
+
*
|
|
370
|
+
* Reserved for future admin-only authentication operations.
|
|
371
|
+
* Allocated for the same symmetry reason as
|
|
372
|
+
* {@link ServerAuthenticateApi}.
|
|
373
|
+
*/
|
|
47
374
|
export declare class AdminAuthenticateApi {
|
|
48
375
|
}
|