@xmobitea/gn-typescript-client 2.6.8 → 2.6.9-tsc
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/LICENSE +198 -5
- package/dist/index.js +337 -34170
- package/dist/runtime/GNNetwork.js +250 -0
- package/dist/runtime/GNNetworkAuthenticateApi.js +122 -0
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +968 -0
- package/dist/runtime/GNNetworkCloudScriptApi.js +104 -0
- package/dist/runtime/GNNetworkContentApi.js +140 -0
- package/dist/runtime/GNNetworkDashboardApi.js +170 -0
- package/dist/runtime/GNNetworkGamePlayerApi.js +950 -0
- package/dist/runtime/GNNetworkGroupApi.js +734 -0
- package/dist/runtime/GNNetworkInventoryApi.js +626 -0
- package/dist/runtime/GNNetworkMasterPlayerApi.js +1550 -0
- package/dist/runtime/GNNetworkMultiplayerApi.js +194 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.js +266 -0
- package/dist/runtime/common/Action0.js +1 -0
- package/dist/runtime/common/Action1.js +1 -0
- package/dist/runtime/common/Action2.js +1 -0
- package/dist/runtime/common/Action3.js +1 -0
- package/dist/runtime/common/Action4.js +1 -0
- package/dist/runtime/common/GNData.js +211 -0
- package/dist/runtime/config/GNServerSettings.js +149 -0
- package/dist/runtime/constant/Commands.js +19 -0
- package/dist/runtime/constant/EventCode.js +8 -0
- package/dist/runtime/constant/OperationCode.js +221 -0
- package/dist/runtime/constant/ReturnCode.js +14 -0
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
- package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
- package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
- package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
- package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
- package/dist/runtime/constant/enumType/ItemType.js +5 -0
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
- package/dist/runtime/constant/enumType/OwnerType.js +9 -0
- package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
- package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
- package/dist/runtime/constant/enumType/RequestRole.js +6 -0
- package/dist/runtime/constant/enumType/RequestType.js +15 -0
- package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
- package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
- package/dist/runtime/constant/errorCode/ErrorCode.js +52 -0
- package/dist/runtime/constant/parameterCode/ParameterCode.js +617 -0
- package/dist/runtime/entity/DataMember.js +208 -0
- package/dist/runtime/entity/GNMetadata.js +11 -0
- package/dist/runtime/entity/InvalidMember.js +1 -0
- package/dist/runtime/entity/OperationEvent.js +24 -0
- package/dist/runtime/entity/OperationHelper.js +24 -0
- package/dist/runtime/entity/OperationRequest.js +42 -0
- package/dist/runtime/entity/OperationResponse.js +73 -0
- package/dist/runtime/entity/models/AuthenticateModels.js +426 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +188 -0
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +0 -1
- package/dist/runtime/entity/models/CharacterPlayerModels.js +1433 -0
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1386 -0
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
- package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +138 -0
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
- package/dist/runtime/entity/models/ContentModels.js +203 -0
- package/dist/runtime/entity/models/ContentRequestModels.js +190 -0
- package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
- package/dist/runtime/entity/models/DashboardModels.d.ts +7 -7
- package/dist/runtime/entity/models/DashboardModels.js +3002 -0
- package/dist/runtime/entity/models/DashboardRequestModels.js +268 -0
- package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
- package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +1360 -0
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
- package/dist/runtime/entity/models/GenericModels.js +177 -0
- package/dist/runtime/entity/models/GroupModels.d.ts +0 -1
- package/dist/runtime/entity/models/GroupModels.js +1135 -0
- package/dist/runtime/entity/models/GroupRequestModels.js +1048 -0
- package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
- package/dist/runtime/entity/models/InventoryModels.js +915 -0
- package/dist/runtime/entity/models/InventoryRequestModels.js +892 -0
- package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
- package/dist/runtime/entity/models/MasterPlayerModels.js +2573 -0
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2228 -0
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
- package/dist/runtime/entity/models/MultiplayerModels.d.ts +1 -1
- package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +268 -0
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
- package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +372 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
- package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
- package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
- package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
- package/dist/runtime/helper/CodeHelper.js +63 -0
- package/dist/runtime/helper/ConverterService.js +275 -0
- package/dist/runtime/helper/EnumUtility.js +33 -0
- package/dist/runtime/helper/GNSupport.js +8 -0
- package/dist/runtime/helper/GNUtils.js +72 -0
- package/dist/runtime/helper/MessagePackConverterService.js +9 -0
- package/dist/runtime/logger/GNDebug.js +29 -0
- package/dist/runtime/networking/AuthenticateStatus.js +14 -0
- package/dist/runtime/networking/IPeer.js +1 -0
- package/dist/runtime/networking/NetworkingPeer.js +178 -0
- package/dist/runtime/networking/OperationPending.js +53 -0
- package/dist/runtime/networking/PeerBase.js +161 -0
- package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +43 -0
- package/dist/runtime/networking/http/HttpPeer.js +122 -0
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +164 -0
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +130 -0
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +165 -0
- package/dist/runtime/networking/socket/SocketPeer.js +115 -0
- package/dist/runtime/typescript/ServiceUpdate.js +12 -0
- package/package.json +2 -2
- package/responseModel/chatgpt/Authenticate.json +724 -0
- package/responseModel/chatgpt/CharacterPlayer.json +1890 -0
- package/responseModel/chatgpt/CloudScript.json +254 -0
- package/responseModel/chatgpt/Content.json +273 -0
- package/responseModel/chatgpt/Dashboard.json +4110 -0
- package/responseModel/chatgpt/GamePlayer.json +2306 -0
- package/responseModel/chatgpt/Generic.json +253 -0
- package/responseModel/chatgpt/Group.json +1509 -0
- package/responseModel/chatgpt/Inventory.json +1211 -0
- package/responseModel/chatgpt/MasterPlayer.json +3801 -0
- package/responseModel/chatgpt/Multiplayer.json +634 -0
- package/responseModel/chatgpt/StoreInventory.json +1099 -0
- package/responseModel/clients/AuthenticateModels.json +271 -0
- package/responseModel/clients/CharacterPlayerModels.json +792 -0
- package/responseModel/clients/CloudScriptModels.json +191 -0
- package/responseModel/clients/ContentModels.json +178 -0
- package/responseModel/clients/DashboardModels.json +5423 -0
- package/responseModel/clients/GamePlayerModels.json +781 -0
- package/responseModel/clients/GenericModels.json +344 -0
- package/responseModel/clients/GroupModels.json +705 -0
- package/responseModel/clients/InventoryModels.json +568 -0
- package/responseModel/clients/MasterPlayerModels.json +1281 -0
- package/responseModel/clients/MultiplayerModels.json +439 -0
- package/responseModel/clients/StoreInventoryModels.json +971 -0
- package/responseModel/finalChatgpt/Authenticate.json +1475 -0
- package/responseModel/finalChatgpt/CharacterPlayer.json +4104 -0
- package/responseModel/finalChatgpt/CloudScript.json +515 -0
- package/responseModel/finalChatgpt/Content.json +536 -0
- package/responseModel/finalChatgpt/Dashboard.json +6712 -0
- package/responseModel/finalChatgpt/GamePlayer.json +5142 -0
- package/responseModel/finalChatgpt/Generic.json +333 -0
- package/responseModel/finalChatgpt/Group.json +3232 -0
- package/responseModel/finalChatgpt/Inventory.json +2606 -0
- package/responseModel/finalChatgpt/MasterPlayer.json +8385 -0
- package/responseModel/finalChatgpt/Multiplayer.json +1196 -0
- package/responseModel/finalChatgpt/StoreInventory.json +2085 -0
- package/responseModel/finals/Authenticate.json +1460 -0
- package/responseModel/finals/CharacterPlayer.json +3639 -0
- package/responseModel/finals/CloudScript.json +465 -0
- package/responseModel/finals/Content.json +479 -0
- package/responseModel/finals/Dashboard.json +6718 -0
- package/responseModel/finals/GamePlayer.json +4291 -0
- package/responseModel/finals/Generic.json +345 -0
- package/responseModel/finals/Group.json +2885 -0
- package/responseModel/finals/Inventory.json +2309 -0
- package/responseModel/finals/MasterPlayer.json +7018 -0
- package/responseModel/finals/Multiplayer.json +1082 -0
- package/responseModel/finals/StoreInventory.json +1979 -0
- package/responseModel/finalsShort/Authenticate.json +723 -0
- package/responseModel/finalsShort/CharacterPlayer.json +1889 -0
- package/responseModel/finalsShort/CloudScript.json +253 -0
- package/responseModel/finalsShort/Content.json +272 -0
- package/responseModel/finalsShort/Dashboard.json +4109 -0
- package/responseModel/finalsShort/GamePlayer.json +2305 -0
- package/responseModel/finalsShort/Generic.json +252 -0
- package/responseModel/finalsShort/Group.json +1508 -0
- package/responseModel/finalsShort/Inventory.json +1210 -0
- package/responseModel/finalsShort/MasterPlayer.json +3800 -0
- package/responseModel/finalsShort/Multiplayer.json +633 -0
- package/responseModel/finalsShort/StoreInventory.json +1098 -0
- package/responseModel/operationResponse/AuthenticateResponseModels.json +77 -0
- package/responseModel/operationResponse/CharacterPlayerResponseModels.json +217 -0
- package/responseModel/operationResponse/CloudScriptResponseModels.json +25 -0
- package/responseModel/operationResponse/ContentResponseModels.json +33 -0
- package/responseModel/operationResponse/DashboardResponseModels.json +109 -0
- package/responseModel/operationResponse/GamePlayerResponseModels.json +213 -0
- package/responseModel/operationResponse/GroupResponseModels.json +165 -0
- package/responseModel/operationResponse/InventoryResponseModels.json +141 -0
- package/responseModel/operationResponse/MasterPlayerResponseModels.json +349 -0
- package/responseModel/operationResponse/MultiplayerResponseModels.json +45 -0
- package/responseModel/operationResponse/StoreInventoryResponseModels.json +61 -0
- package/responseModel/servers/Authenticate.json +1328 -0
- package/responseModel/servers/CharacterPlayer.json +3199 -0
- package/responseModel/servers/CloudScript.json +278 -0
- package/responseModel/servers/Content.json +324 -0
- package/responseModel/servers/GamePlayer.json +3844 -0
- package/responseModel/servers/Group.json +2454 -0
- package/responseModel/servers/Inventory.json +1964 -0
- package/responseModel/servers/MasterAdmin.json +5569 -0
- package/responseModel/servers/MasterPlayer.json +5924 -0
- package/responseModel/servers/Multiplayer.json +545 -0
- package/responseModel/servers/StoreInventory.json +1290 -0
- package/dist/gearn.js.client.js +0 -46892
- package/dist/gearn.js.client.min.js +0 -2
- package/dist/gearn.js.client.min.js.LICENSE.txt +0 -14
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
{
|
|
2
|
+
"requestType": "CloudScript",
|
|
3
|
+
"description": "API requests related to managing and executing server-side CloudScript functions.",
|
|
4
|
+
"operations": [
|
|
5
|
+
{
|
|
6
|
+
"operationCode": "AddFunction",
|
|
7
|
+
"details": [
|
|
8
|
+
{
|
|
9
|
+
"role": "Client",
|
|
10
|
+
"requestData": [
|
|
11
|
+
{
|
|
12
|
+
"code": "Script",
|
|
13
|
+
"description": "The full JavaScript or TypeScript source code of the CloudScript function.",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"code": "CanExecute",
|
|
18
|
+
"description": "Indicates whether this function can be invoked by clients.",
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"code": "IsLive",
|
|
23
|
+
"description": "Whether this function version is live and callable in production.",
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"description": "Deploy a new CloudScript function to the server, including its code and access configuration."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"operationCode": "EditFunction",
|
|
33
|
+
"details": [
|
|
34
|
+
{
|
|
35
|
+
"role": "Client",
|
|
36
|
+
"requestData": [
|
|
37
|
+
{
|
|
38
|
+
"code": "Version",
|
|
39
|
+
"description": "The version identifier of the CloudScript function.",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"code": "CanExecute",
|
|
44
|
+
"description": "Indicates whether this function can be invoked by clients.",
|
|
45
|
+
"type": "boolean"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"code": "IsLive",
|
|
49
|
+
"description": "Whether this function version is live and callable in production.",
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"description": "Modify the code or metadata of an existing CloudScript function by version."
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"operationCode": "ExecuteFunction",
|
|
59
|
+
"details": [
|
|
60
|
+
{
|
|
61
|
+
"role": "Client",
|
|
62
|
+
"requestData": [
|
|
63
|
+
{
|
|
64
|
+
"code": "UserId",
|
|
65
|
+
"description": "The unique identifier of the player for whom the function is being executed.",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"code": "FunctionName",
|
|
70
|
+
"description": "The name of the function to be executed.",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"code": "FunctionParameters",
|
|
75
|
+
"description": "A JSON object containing input arguments to pass to the function.",
|
|
76
|
+
"type": "object"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"code": "Version",
|
|
80
|
+
"description": "The version identifier of the CloudScript function.",
|
|
81
|
+
"type": "string"
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"role": "Server",
|
|
87
|
+
"requestData": [
|
|
88
|
+
{
|
|
89
|
+
"code": "UserId",
|
|
90
|
+
"description": "The unique identifier of the player for whom the function is being executed.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"description": "Run a deployed CloudScript function with optional input parameters."
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"operationCode": "GetFunction",
|
|
100
|
+
"details": [
|
|
101
|
+
{
|
|
102
|
+
"role": "Client",
|
|
103
|
+
"requestData": [
|
|
104
|
+
{
|
|
105
|
+
"code": "Version",
|
|
106
|
+
"description": "The version identifier of the CloudScript function.",
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"description": "Retrieve the source code and metadata of a specific CloudScript function version."
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"operationCode": "GetFunctions",
|
|
116
|
+
"details": [],
|
|
117
|
+
"description": "List all available versions of deployed CloudScript functions."
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"models": [
|
|
121
|
+
{
|
|
122
|
+
"name": "AddFunctionResponseData",
|
|
123
|
+
"details": [
|
|
124
|
+
{
|
|
125
|
+
"code": "Version",
|
|
126
|
+
"description": "The version assigned to the CloudScript function.",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"code": "ErrorMessage",
|
|
131
|
+
"description": "The error message if the operation failed.",
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"extends": null,
|
|
136
|
+
"description": "Contains metadata about the newly deployed CloudScript function."
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"name": "EditFunctionResponseData",
|
|
140
|
+
"details": [
|
|
141
|
+
{
|
|
142
|
+
"code": "ErrorMessage",
|
|
143
|
+
"description": "The error message if the operation failed.",
|
|
144
|
+
"type": "string"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"extends": null,
|
|
148
|
+
"description": "Result of a CloudScript function code update operation."
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "ExecuteFunctionResponseData",
|
|
152
|
+
"details": [
|
|
153
|
+
{
|
|
154
|
+
"code": "Status",
|
|
155
|
+
"description": "The numeric status code returned from execution.",
|
|
156
|
+
"type": "number"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"code": "ExecutionTimeInMs",
|
|
160
|
+
"description": "Time in milliseconds taken to execute the function.",
|
|
161
|
+
"type": "number"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"code": "MemoryUsedInBytes",
|
|
165
|
+
"description": "Amount of memory used during function execution.",
|
|
166
|
+
"type": "number"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"code": "FunctionResult",
|
|
170
|
+
"description": "The returned output from the executed function.",
|
|
171
|
+
"type": "any"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"code": "ErrorMessage",
|
|
175
|
+
"description": "The error message if the operation failed.",
|
|
176
|
+
"type": "string"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"code": "FunctionLogs",
|
|
180
|
+
"description": "A list of log messages generated during execution.",
|
|
181
|
+
"type": "Array<string>"
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
"extends": null,
|
|
185
|
+
"description": "Result of executing a CloudScript function, including return value and metrics."
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "GetFunctionResponseData",
|
|
189
|
+
"details": [
|
|
190
|
+
{
|
|
191
|
+
"code": "Script",
|
|
192
|
+
"description": "The JavaScript or TypeScript source code of the function.",
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"code": "CanExecute",
|
|
197
|
+
"description": "Whether this function version can be executed.",
|
|
198
|
+
"type": "boolean"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"code": "IsLive",
|
|
202
|
+
"description": "Whether this function version is currently live.",
|
|
203
|
+
"type": "boolean"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"code": "TsCreate",
|
|
207
|
+
"description": "The timestamp when the function version was created.",
|
|
208
|
+
"type": "number"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"extends": null,
|
|
212
|
+
"description": "Details of a specific CloudScript function, including source and flags."
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "FunctionResponseData",
|
|
216
|
+
"details": [
|
|
217
|
+
{
|
|
218
|
+
"code": "Version",
|
|
219
|
+
"description": "The version assigned to the CloudScript function.",
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"code": "CanExecute",
|
|
224
|
+
"description": "Whether this function version can be executed.",
|
|
225
|
+
"type": "boolean"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"extends": null,
|
|
229
|
+
"description": "Metadata for a CloudScript function version."
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "GetFunctionsResponseData",
|
|
233
|
+
"details": [
|
|
234
|
+
{
|
|
235
|
+
"code": "Results",
|
|
236
|
+
"description": "A list of available function versions.",
|
|
237
|
+
"type": "Array<FunctionResponseData>"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"code": "LatestVersion",
|
|
241
|
+
"description": "The latest version number of the function.",
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"code": "LiveLatestVersion",
|
|
246
|
+
"description": "The latest version number currently marked as live.",
|
|
247
|
+
"type": "string"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"extends": null,
|
|
251
|
+
"description": "List of all versions of deployed CloudScript functions."
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
{
|
|
2
|
+
"requestType": "Content",
|
|
3
|
+
"description": "API requests for managing game-related content such as downloadable assets, thumbnails, and external catalog references.",
|
|
4
|
+
"operations": [
|
|
5
|
+
{
|
|
6
|
+
"operationCode": "CreateNewFileUploadInfo",
|
|
7
|
+
"details": [
|
|
8
|
+
{
|
|
9
|
+
"role": "Client",
|
|
10
|
+
"requestData": [
|
|
11
|
+
{
|
|
12
|
+
"code": "FileName",
|
|
13
|
+
"description": "FileName used in this context.",
|
|
14
|
+
"type": "string"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"description": "Perform operation: CreateNewFileUploadInfo"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"operationCode": "GetContentData",
|
|
23
|
+
"details": [
|
|
24
|
+
{
|
|
25
|
+
"role": "Client",
|
|
26
|
+
"requestData": [
|
|
27
|
+
{
|
|
28
|
+
"code": "Keys",
|
|
29
|
+
"description": "Keys used in this context.",
|
|
30
|
+
"type": "Array<string>"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"code": "Label",
|
|
34
|
+
"description": "Label used in this context.",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"defaultValue": "\"\""
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"description": "Perform operation: GetContentData"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"operationCode": "GetFileUploadInfoList",
|
|
45
|
+
"details": [
|
|
46
|
+
{
|
|
47
|
+
"role": "Client",
|
|
48
|
+
"requestData": [
|
|
49
|
+
{
|
|
50
|
+
"code": "Skip",
|
|
51
|
+
"description": "Skip used in this context.",
|
|
52
|
+
"type": "number",
|
|
53
|
+
"defaultValue": "0"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"code": "Limit",
|
|
57
|
+
"description": "Limit used in this context.",
|
|
58
|
+
"type": "number",
|
|
59
|
+
"defaultValue": "10"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"description": "Perform operation: GetFileUploadInfoList"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"operationCode": "GetFileUploadInfo",
|
|
68
|
+
"details": [
|
|
69
|
+
{
|
|
70
|
+
"role": "Client",
|
|
71
|
+
"requestData": [
|
|
72
|
+
{
|
|
73
|
+
"code": "FileId",
|
|
74
|
+
"description": "FileId used in this context.",
|
|
75
|
+
"type": "string"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"description": "Perform operation: GetFileUploadInfo"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"operationCode": "RemoveFileUploadInfo",
|
|
84
|
+
"details": [
|
|
85
|
+
{
|
|
86
|
+
"role": "Client",
|
|
87
|
+
"requestData": [
|
|
88
|
+
{
|
|
89
|
+
"code": "FileId",
|
|
90
|
+
"description": "FileId used in this context.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"code": "Reason",
|
|
95
|
+
"description": "Reason used in this context.",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"defaultValue": "\"\""
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"description": "Perform operation: RemoveFileUploadInfo"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"operationCode": "RequestDownloadFileUploadInfo",
|
|
106
|
+
"details": [
|
|
107
|
+
{
|
|
108
|
+
"role": "Client",
|
|
109
|
+
"requestData": [
|
|
110
|
+
{
|
|
111
|
+
"code": "FileId",
|
|
112
|
+
"description": "FileId used in this context.",
|
|
113
|
+
"type": "string"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"description": "Perform operation: RequestDownloadFileUploadInfo"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"operationCode": "SetContentData",
|
|
122
|
+
"details": [
|
|
123
|
+
{
|
|
124
|
+
"role": "Client",
|
|
125
|
+
"requestData": [
|
|
126
|
+
{
|
|
127
|
+
"code": "Configs",
|
|
128
|
+
"description": "Configs used in this context.",
|
|
129
|
+
"type": "Array<ContentDataParam>"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"code": "Label",
|
|
133
|
+
"description": "Label used in this context.",
|
|
134
|
+
"type": "string"
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"description": "Perform operation: SetContentData"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"models": [
|
|
143
|
+
{
|
|
144
|
+
"name": "ContentDataParam",
|
|
145
|
+
"details": [
|
|
146
|
+
{
|
|
147
|
+
"code": "Key",
|
|
148
|
+
"description": "Key field in ContentDataParam.",
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"code": "Data",
|
|
153
|
+
"description": "Data field in ContentDataParam.",
|
|
154
|
+
"type": "GNHashtable"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"description": "Data model for ContentDataParam."
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "FileIdUploadResponseData",
|
|
161
|
+
"details": [
|
|
162
|
+
{
|
|
163
|
+
"code": "FileId",
|
|
164
|
+
"description": "FileId field in FileIdUploadResponseData.",
|
|
165
|
+
"type": "string"
|
|
166
|
+
}
|
|
167
|
+
],
|
|
168
|
+
"extends": null,
|
|
169
|
+
"description": "Data model for FileIdUploadResponseData."
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "GetContentDataResponseData",
|
|
173
|
+
"details": [
|
|
174
|
+
{
|
|
175
|
+
"code": "Configs",
|
|
176
|
+
"description": "Configs field in GetContentDataResponseData.",
|
|
177
|
+
"type": "Array<ContentDataParam>"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"extends": null,
|
|
181
|
+
"description": "Data model for GetContentDataResponseData."
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "GetFileUploadInfoListResponseData",
|
|
185
|
+
"details": [
|
|
186
|
+
{
|
|
187
|
+
"code": "Results",
|
|
188
|
+
"description": "Results field in GetFileUploadInfoListResponseData.",
|
|
189
|
+
"type": "Array<FileIdUploadResponseData>"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"extends": null,
|
|
193
|
+
"description": "Data model for GetFileUploadInfoListResponseData."
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"name": "FileUploadItem",
|
|
197
|
+
"details": [
|
|
198
|
+
{
|
|
199
|
+
"code": "MimeType",
|
|
200
|
+
"description": "MimeType field in FileUploadItem.",
|
|
201
|
+
"type": "string"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"code": "Size",
|
|
205
|
+
"description": "Size field in FileUploadItem.",
|
|
206
|
+
"type": "number"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"code": "FolderFileName",
|
|
210
|
+
"description": "FolderFileName field in FileUploadItem.",
|
|
211
|
+
"type": "string"
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"extends": null,
|
|
215
|
+
"description": "Data model for FileUploadItem."
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"name": "GetFileUploadInfoResponseData",
|
|
219
|
+
"details": [
|
|
220
|
+
{
|
|
221
|
+
"code": "FileName",
|
|
222
|
+
"description": "FileName field in GetFileUploadInfoResponseData.",
|
|
223
|
+
"type": "string"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"code": "TsCreate",
|
|
227
|
+
"description": "TsCreate field in GetFileUploadInfoResponseData.",
|
|
228
|
+
"type": "number"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"code": "RemoveStatus",
|
|
232
|
+
"description": "RemoveStatus field in GetFileUploadInfoResponseData.",
|
|
233
|
+
"type": "GenericModels.RemoveStatusItem"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"code": "TsUploadExpire",
|
|
237
|
+
"description": "TsUploadExpire field in GetFileUploadInfoResponseData.",
|
|
238
|
+
"type": "number"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"code": "FileUpload",
|
|
242
|
+
"description": "FileUpload field in GetFileUploadInfoResponseData.",
|
|
243
|
+
"type": "FileUploadItem"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"code": "FileId",
|
|
247
|
+
"description": "FileId field in GetFileUploadInfoResponseData.",
|
|
248
|
+
"type": "string"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"extends": null,
|
|
252
|
+
"description": "Data model for GetFileUploadInfoResponseData."
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"name": "RequestDownloadFileUploadInfoResponseData",
|
|
256
|
+
"details": [
|
|
257
|
+
{
|
|
258
|
+
"code": "DownloadToken",
|
|
259
|
+
"description": "DownloadToken field in RequestDownloadFileUploadInfoResponseData.",
|
|
260
|
+
"type": "string"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"extends": null,
|
|
264
|
+
"description": "Data model for RequestDownloadFileUploadInfoResponseData."
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "EmptyResponseData",
|
|
268
|
+
"details": [],
|
|
269
|
+
"extends": null,
|
|
270
|
+
"description": "Data model for EmptyResponseData."
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
}
|