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