@xmobitea/gn-typescript-client 2.6.9 → 2.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/gearn.js.client.js +31 -4
  2. package/dist/gearn.js.client.min.js +1 -1
  3. package/dist/index.js +31 -4
  4. package/dist/runtime/config/GNServerSettings.d.ts +3 -0
  5. package/dist/runtime/constant/Commands.d.ts +1 -0
  6. package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +2 -0
  7. package/package.json +1 -1
  8. package/responseModel/chatgpt/Authenticate.json +0 -724
  9. package/responseModel/chatgpt/CharacterPlayer.json +0 -1890
  10. package/responseModel/chatgpt/CloudScript.json +0 -254
  11. package/responseModel/chatgpt/Content.json +0 -273
  12. package/responseModel/chatgpt/Dashboard.json +0 -4110
  13. package/responseModel/chatgpt/GamePlayer.json +0 -2306
  14. package/responseModel/chatgpt/Generic.json +0 -253
  15. package/responseModel/chatgpt/Group.json +0 -1509
  16. package/responseModel/chatgpt/Inventory.json +0 -1211
  17. package/responseModel/chatgpt/MasterPlayer.json +0 -3801
  18. package/responseModel/chatgpt/Multiplayer.json +0 -634
  19. package/responseModel/chatgpt/StoreInventory.json +0 -1099
  20. package/responseModel/clients/AuthenticateModels.json +0 -271
  21. package/responseModel/clients/CharacterPlayerModels.json +0 -792
  22. package/responseModel/clients/CloudScriptModels.json +0 -191
  23. package/responseModel/clients/ContentModels.json +0 -178
  24. package/responseModel/clients/DashboardModels.json +0 -5423
  25. package/responseModel/clients/GamePlayerModels.json +0 -781
  26. package/responseModel/clients/GenericModels.json +0 -344
  27. package/responseModel/clients/GroupModels.json +0 -705
  28. package/responseModel/clients/InventoryModels.json +0 -568
  29. package/responseModel/clients/MasterPlayerModels.json +0 -1281
  30. package/responseModel/clients/MultiplayerModels.json +0 -439
  31. package/responseModel/clients/StoreInventoryModels.json +0 -971
  32. package/responseModel/finalChatgpt/Authenticate.json +0 -1475
  33. package/responseModel/finalChatgpt/CharacterPlayer.json +0 -4104
  34. package/responseModel/finalChatgpt/CloudScript.json +0 -515
  35. package/responseModel/finalChatgpt/Content.json +0 -536
  36. package/responseModel/finalChatgpt/Dashboard.json +0 -6712
  37. package/responseModel/finalChatgpt/GamePlayer.json +0 -5142
  38. package/responseModel/finalChatgpt/Generic.json +0 -333
  39. package/responseModel/finalChatgpt/Group.json +0 -3232
  40. package/responseModel/finalChatgpt/Inventory.json +0 -2606
  41. package/responseModel/finalChatgpt/MasterPlayer.json +0 -8385
  42. package/responseModel/finalChatgpt/Multiplayer.json +0 -1196
  43. package/responseModel/finalChatgpt/StoreInventory.json +0 -2085
  44. package/responseModel/finals/Authenticate.json +0 -1460
  45. package/responseModel/finals/CharacterPlayer.json +0 -3639
  46. package/responseModel/finals/CloudScript.json +0 -465
  47. package/responseModel/finals/Content.json +0 -479
  48. package/responseModel/finals/Dashboard.json +0 -6718
  49. package/responseModel/finals/GamePlayer.json +0 -4291
  50. package/responseModel/finals/Generic.json +0 -345
  51. package/responseModel/finals/Group.json +0 -2885
  52. package/responseModel/finals/Inventory.json +0 -2309
  53. package/responseModel/finals/MasterPlayer.json +0 -7018
  54. package/responseModel/finals/Multiplayer.json +0 -1082
  55. package/responseModel/finals/StoreInventory.json +0 -1979
  56. package/responseModel/finalsShort/Authenticate.json +0 -723
  57. package/responseModel/finalsShort/CharacterPlayer.json +0 -1889
  58. package/responseModel/finalsShort/CloudScript.json +0 -253
  59. package/responseModel/finalsShort/Content.json +0 -272
  60. package/responseModel/finalsShort/Dashboard.json +0 -4109
  61. package/responseModel/finalsShort/GamePlayer.json +0 -2305
  62. package/responseModel/finalsShort/Generic.json +0 -252
  63. package/responseModel/finalsShort/Group.json +0 -1508
  64. package/responseModel/finalsShort/Inventory.json +0 -1210
  65. package/responseModel/finalsShort/MasterPlayer.json +0 -3800
  66. package/responseModel/finalsShort/Multiplayer.json +0 -633
  67. package/responseModel/finalsShort/StoreInventory.json +0 -1098
  68. package/responseModel/operationResponse/AuthenticateResponseModels.json +0 -77
  69. package/responseModel/operationResponse/CharacterPlayerResponseModels.json +0 -217
  70. package/responseModel/operationResponse/CloudScriptResponseModels.json +0 -25
  71. package/responseModel/operationResponse/ContentResponseModels.json +0 -33
  72. package/responseModel/operationResponse/DashboardResponseModels.json +0 -109
  73. package/responseModel/operationResponse/GamePlayerResponseModels.json +0 -213
  74. package/responseModel/operationResponse/GroupResponseModels.json +0 -165
  75. package/responseModel/operationResponse/InventoryResponseModels.json +0 -141
  76. package/responseModel/operationResponse/MasterPlayerResponseModels.json +0 -349
  77. package/responseModel/operationResponse/MultiplayerResponseModels.json +0 -45
  78. package/responseModel/operationResponse/StoreInventoryResponseModels.json +0 -61
  79. package/responseModel/servers/Authenticate.json +0 -1328
  80. package/responseModel/servers/CharacterPlayer.json +0 -3199
  81. package/responseModel/servers/CloudScript.json +0 -278
  82. package/responseModel/servers/Content.json +0 -324
  83. package/responseModel/servers/GamePlayer.json +0 -3844
  84. package/responseModel/servers/Group.json +0 -2454
  85. package/responseModel/servers/Inventory.json +0 -1964
  86. package/responseModel/servers/MasterAdmin.json +0 -5569
  87. package/responseModel/servers/MasterPlayer.json +0 -5924
  88. package/responseModel/servers/Multiplayer.json +0 -545
  89. package/responseModel/servers/StoreInventory.json +0 -1290
@@ -1,515 +0,0 @@
1
- {
2
- "requestType": "CloudScript",
3
- "operations": [
4
- {
5
- "operationCode": "AddFunction",
6
- "details": [
7
- {
8
- "role": "Client",
9
- "requestData": [
10
- {
11
- "code": "Script",
12
- "description": "The full JavaScript or TypeScript source code of the CloudScript function.",
13
- "optional": false,
14
- "type": "string",
15
- "gnType": "String",
16
- "conditions": {
17
- "mustNonNull": true,
18
- "minLength": 0,
19
- "maxLength": null
20
- }
21
- },
22
- {
23
- "code": "CanExecute",
24
- "description": "Indicates whether this function can be invoked by clients.",
25
- "optional": false,
26
- "type": "boolean",
27
- "gnType": "Boolean",
28
- "conditions": {}
29
- },
30
- {
31
- "code": "IsLive",
32
- "description": "Whether this function version is live and callable in production.",
33
- "optional": false,
34
- "type": "boolean",
35
- "gnType": "Boolean",
36
- "conditions": {}
37
- }
38
- ]
39
- },
40
- {
41
- "role": "Server",
42
- "requestData": []
43
- },
44
- {
45
- "role": "Admin",
46
- "requestData": []
47
- }
48
- ],
49
- "responseData": [
50
- {
51
- "code": "ErrorCode",
52
- "value": [
53
- "GameNotFound",
54
- "ExecuteError",
55
- "Ok"
56
- ]
57
- },
58
- {
59
- "code": "ErrorMessage"
60
- },
61
- {
62
- "code": "Version"
63
- }
64
- ],
65
- "description": "Deploy a new CloudScript function to the server, including its code and access configuration.",
66
- "operationResponse": "AddFunctionResponseData"
67
- },
68
- {
69
- "operationCode": "EditFunction",
70
- "details": [
71
- {
72
- "role": "Client",
73
- "requestData": [
74
- {
75
- "code": "Version",
76
- "description": "The version identifier of the CloudScript function.",
77
- "optional": false,
78
- "type": "string",
79
- "gnType": "String",
80
- "conditions": {
81
- "mustNonNull": true,
82
- "minLength": 7,
83
- "maxLength": 7
84
- }
85
- },
86
- {
87
- "code": "CanExecute",
88
- "description": "Indicates whether this function can be invoked by clients.",
89
- "optional": false,
90
- "type": "boolean",
91
- "gnType": "Boolean",
92
- "conditions": {}
93
- },
94
- {
95
- "code": "IsLive",
96
- "description": "Whether this function version is live and callable in production.",
97
- "optional": false,
98
- "type": "boolean",
99
- "gnType": "Boolean",
100
- "conditions": {}
101
- }
102
- ]
103
- },
104
- {
105
- "role": "Server",
106
- "requestData": []
107
- },
108
- {
109
- "role": "Admin",
110
- "requestData": []
111
- }
112
- ],
113
- "responseData": [
114
- {
115
- "code": "ErrorCode",
116
- "value": [
117
- "GameNotFound",
118
- "Ok",
119
- "ExecuteError"
120
- ]
121
- },
122
- {
123
- "code": "ErrorMessage"
124
- }
125
- ],
126
- "description": "Modify the code or metadata of an existing CloudScript function by version.",
127
- "operationResponse": "EditFunctionResponseData"
128
- },
129
- {
130
- "operationCode": "ExecuteFunction",
131
- "details": [
132
- {
133
- "role": "Client",
134
- "requestData": [
135
- {
136
- "code": "UserId",
137
- "description": "The unique identifier of the player for whom the function is being executed.",
138
- "optional": true,
139
- "type": "string",
140
- "gnType": "String",
141
- "conditions": {
142
- "minLength": 10,
143
- "maxLength": 10
144
- }
145
- },
146
- {
147
- "code": "FunctionName",
148
- "description": "The name of the function to be executed.",
149
- "optional": false,
150
- "type": "string",
151
- "gnType": "String",
152
- "conditions": {
153
- "mustNonNull": true,
154
- "minLength": 3,
155
- "maxLength": 30
156
- }
157
- },
158
- {
159
- "code": "FunctionParameters",
160
- "description": "A JSON object containing input arguments to pass to the function.",
161
- "optional": true,
162
- "type": "object",
163
- "gnType": "DataMember",
164
- "conditions": {}
165
- },
166
- {
167
- "code": "Version",
168
- "description": "The version identifier of the CloudScript function.",
169
- "optional": true,
170
- "type": "string",
171
- "gnType": "String",
172
- "conditions": {
173
- "minLength": 7,
174
- "maxLength": 7
175
- }
176
- }
177
- ]
178
- },
179
- {
180
- "role": "Server",
181
- "requestData": [
182
- {
183
- "code": "UserId",
184
- "description": "The unique identifier of the player for whom the function is being executed.",
185
- "optional": false,
186
- "type": "string",
187
- "gnType": "String",
188
- "conditions": {
189
- "mustNonNull": true,
190
- "minLength": 10,
191
- "maxLength": 10
192
- }
193
- }
194
- ]
195
- },
196
- {
197
- "role": "Admin",
198
- "requestData": [
199
- {
200
- "code": "UserId",
201
- "description": "The unique identifier of the player for whom the function is being executed.",
202
- "optional": false,
203
- "type": "string",
204
- "gnType": "String",
205
- "conditions": {
206
- "mustNonNull": true,
207
- "minLength": 10,
208
- "maxLength": 10
209
- }
210
- }
211
- ]
212
- }
213
- ],
214
- "responseData": [
215
- {
216
- "code": "ErrorCode",
217
- "value": [
218
- "GameNotFound",
219
- "Ok",
220
- "ExecuteError"
221
- ]
222
- },
223
- {
224
- "code": "FunctionLogs"
225
- },
226
- {
227
- "code": "Status"
228
- },
229
- {
230
- "code": "ExecutionTimeInMs"
231
- },
232
- {
233
- "code": "MemoryUsedInBytes"
234
- },
235
- {
236
- "code": "FunctionResult"
237
- },
238
- {
239
- "code": "ErrorMessage"
240
- }
241
- ],
242
- "description": "Run a deployed CloudScript function with optional input parameters.",
243
- "operationResponse": "ExecuteFunctionResponseData"
244
- },
245
- {
246
- "operationCode": "GetFunction",
247
- "details": [
248
- {
249
- "role": "Client",
250
- "requestData": [
251
- {
252
- "code": "Version",
253
- "description": "The version identifier of the CloudScript function.",
254
- "optional": false,
255
- "type": "string",
256
- "gnType": "String",
257
- "conditions": {
258
- "mustNonNull": true,
259
- "minLength": 7,
260
- "maxLength": 7
261
- }
262
- }
263
- ]
264
- },
265
- {
266
- "role": "Server",
267
- "requestData": []
268
- },
269
- {
270
- "role": "Admin",
271
- "requestData": []
272
- }
273
- ],
274
- "responseData": [
275
- {
276
- "code": "ErrorCode",
277
- "value": [
278
- "GameNotFound",
279
- "Ok"
280
- ]
281
- },
282
- {
283
- "code": "Script"
284
- },
285
- {
286
- "code": "CanExecute"
287
- },
288
- {
289
- "code": "IsLive"
290
- },
291
- {
292
- "code": "TsCreate"
293
- }
294
- ],
295
- "description": "Retrieve the source code and metadata of a specific CloudScript function version.",
296
- "operationResponse": "GetFunctionResponseData"
297
- },
298
- {
299
- "operationCode": "GetFunctions",
300
- "details": [
301
- {
302
- "role": "Server",
303
- "requestData": []
304
- },
305
- {
306
- "role": "Admin",
307
- "requestData": []
308
- }
309
- ],
310
- "responseData": [
311
- {
312
- "code": "ErrorCode",
313
- "value": [
314
- "GameNotFound",
315
- "Ok"
316
- ]
317
- },
318
- {
319
- "code": "Results"
320
- },
321
- {
322
- "code": "LatestVersion"
323
- },
324
- {
325
- "code": "LiveLatestVersion"
326
- }
327
- ],
328
- "description": "List all available versions of deployed CloudScript functions.",
329
- "operationResponse": "GetFunctionsResponseData"
330
- }
331
- ],
332
- "models": [
333
- {
334
- "name": "AddFunctionResponseData",
335
- "details": [
336
- {
337
- "code": "Version",
338
- "description": "The version assigned to the CloudScript function.",
339
- "optional": false,
340
- "type": "string",
341
- "gnType": "String",
342
- "conditions": {}
343
- },
344
- {
345
- "code": "ErrorMessage",
346
- "description": "The error message if the operation failed.",
347
- "optional": false,
348
- "type": "string",
349
- "gnType": "String",
350
- "conditions": {}
351
- }
352
- ],
353
- "description": "Contains metadata about the newly deployed CloudScript function."
354
- },
355
- {
356
- "name": "EditFunctionResponseData",
357
- "details": [
358
- {
359
- "code": "ErrorMessage",
360
- "description": "The error message if the operation failed.",
361
- "optional": false,
362
- "type": "string",
363
- "gnType": "String",
364
- "conditions": {}
365
- }
366
- ],
367
- "description": "Result of a CloudScript function code update operation."
368
- },
369
- {
370
- "name": "ExecuteFunctionResponseData",
371
- "details": [
372
- {
373
- "code": "Status",
374
- "description": "The numeric status code returned from execution.",
375
- "optional": false,
376
- "type": "number",
377
- "gnType": "Number",
378
- "conditions": {}
379
- },
380
- {
381
- "code": "ExecutionTimeInMs",
382
- "description": "Time in milliseconds taken to execute the function.",
383
- "optional": false,
384
- "type": "number",
385
- "gnType": "Number",
386
- "conditions": {}
387
- },
388
- {
389
- "code": "MemoryUsedInBytes",
390
- "description": "Amount of memory used during function execution.",
391
- "optional": false,
392
- "type": "number",
393
- "gnType": "Number",
394
- "conditions": {}
395
- },
396
- {
397
- "code": "FunctionResult",
398
- "description": "The returned output from the executed function.",
399
- "optional": false,
400
- "type": "any",
401
- "gnType": "DataMember",
402
- "conditions": {}
403
- },
404
- {
405
- "code": "ErrorMessage",
406
- "description": "The error message if the operation failed.",
407
- "optional": false,
408
- "type": "string",
409
- "gnType": "String",
410
- "conditions": {}
411
- },
412
- {
413
- "code": "FunctionLogs",
414
- "description": "A list of log messages generated during execution.",
415
- "optional": false,
416
- "type": "string",
417
- "gnType": "GNArray",
418
- "conditions": {}
419
- }
420
- ],
421
- "description": "Result of executing a CloudScript function, including return value and metrics."
422
- },
423
- {
424
- "name": "GetFunctionResponseData",
425
- "details": [
426
- {
427
- "code": "Script",
428
- "description": "The JavaScript or TypeScript source code of the function.",
429
- "optional": false,
430
- "type": "string",
431
- "gnType": "String",
432
- "conditions": {}
433
- },
434
- {
435
- "code": "CanExecute",
436
- "description": "Whether this function version can be executed.",
437
- "optional": false,
438
- "type": "boolean",
439
- "gnType": "Boolean",
440
- "conditions": {}
441
- },
442
- {
443
- "code": "IsLive",
444
- "description": "Whether this function version is currently live.",
445
- "optional": false,
446
- "type": "boolean",
447
- "gnType": "Boolean",
448
- "conditions": {}
449
- },
450
- {
451
- "code": "TsCreate",
452
- "description": "The timestamp when the function version was created.",
453
- "optional": false,
454
- "type": "number",
455
- "gnType": "Number",
456
- "conditions": {}
457
- }
458
- ],
459
- "description": "Details of a specific CloudScript function, including source and flags."
460
- },
461
- {
462
- "name": "FunctionResponseData",
463
- "details": [
464
- {
465
- "code": "Version",
466
- "description": "The version assigned to the CloudScript function.",
467
- "optional": false,
468
- "type": "string",
469
- "gnType": "String",
470
- "conditions": {}
471
- },
472
- {
473
- "code": "CanExecute",
474
- "description": "Whether this function version can be executed.",
475
- "optional": false,
476
- "type": "boolean",
477
- "gnType": "Boolean",
478
- "conditions": {}
479
- }
480
- ],
481
- "description": "Metadata for a CloudScript function version."
482
- },
483
- {
484
- "name": "GetFunctionsResponseData",
485
- "details": [
486
- {
487
- "code": "Results",
488
- "description": "A list of available function versions.",
489
- "optional": false,
490
- "type": "FunctionResponseData",
491
- "gnType": "GNArray",
492
- "conditions": {}
493
- },
494
- {
495
- "code": "LatestVersion",
496
- "description": "The latest version number of the function.",
497
- "optional": false,
498
- "type": "string",
499
- "gnType": "String",
500
- "conditions": {}
501
- },
502
- {
503
- "code": "LiveLatestVersion",
504
- "description": "The latest version number currently marked as live.",
505
- "optional": false,
506
- "type": "string",
507
- "gnType": "String",
508
- "conditions": {}
509
- }
510
- ],
511
- "description": "List of all versions of deployed CloudScript functions."
512
- }
513
- ],
514
- "description": "API requests related to managing and executing server-side CloudScript functions."
515
- }