@xmobitea/gn-typescript-client 2.6.8 → 2.6.9

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 (91) hide show
  1. package/LICENSE +198 -5
  2. package/dist/gearn.js.client.js +3 -11
  3. package/dist/gearn.js.client.min.js +1 -1
  4. package/dist/index.js +3 -11
  5. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +0 -1
  6. package/dist/runtime/entity/models/DashboardModels.d.ts +7 -7
  7. package/dist/runtime/entity/models/GroupModels.d.ts +0 -1
  8. package/dist/runtime/entity/models/MultiplayerModels.d.ts +1 -1
  9. package/package.json +2 -2
  10. package/responseModel/chatgpt/Authenticate.json +724 -0
  11. package/responseModel/chatgpt/CharacterPlayer.json +1890 -0
  12. package/responseModel/chatgpt/CloudScript.json +254 -0
  13. package/responseModel/chatgpt/Content.json +273 -0
  14. package/responseModel/chatgpt/Dashboard.json +4110 -0
  15. package/responseModel/chatgpt/GamePlayer.json +2306 -0
  16. package/responseModel/chatgpt/Generic.json +253 -0
  17. package/responseModel/chatgpt/Group.json +1509 -0
  18. package/responseModel/chatgpt/Inventory.json +1211 -0
  19. package/responseModel/chatgpt/MasterPlayer.json +3801 -0
  20. package/responseModel/chatgpt/Multiplayer.json +634 -0
  21. package/responseModel/chatgpt/StoreInventory.json +1099 -0
  22. package/responseModel/clients/AuthenticateModels.json +271 -0
  23. package/responseModel/clients/CharacterPlayerModels.json +792 -0
  24. package/responseModel/clients/CloudScriptModels.json +191 -0
  25. package/responseModel/clients/ContentModels.json +178 -0
  26. package/responseModel/clients/DashboardModels.json +5423 -0
  27. package/responseModel/clients/GamePlayerModels.json +781 -0
  28. package/responseModel/clients/GenericModels.json +344 -0
  29. package/responseModel/clients/GroupModels.json +705 -0
  30. package/responseModel/clients/InventoryModels.json +568 -0
  31. package/responseModel/clients/MasterPlayerModels.json +1281 -0
  32. package/responseModel/clients/MultiplayerModels.json +439 -0
  33. package/responseModel/clients/StoreInventoryModels.json +971 -0
  34. package/responseModel/finalChatgpt/Authenticate.json +1475 -0
  35. package/responseModel/finalChatgpt/CharacterPlayer.json +4104 -0
  36. package/responseModel/finalChatgpt/CloudScript.json +515 -0
  37. package/responseModel/finalChatgpt/Content.json +536 -0
  38. package/responseModel/finalChatgpt/Dashboard.json +6712 -0
  39. package/responseModel/finalChatgpt/GamePlayer.json +5142 -0
  40. package/responseModel/finalChatgpt/Generic.json +333 -0
  41. package/responseModel/finalChatgpt/Group.json +3232 -0
  42. package/responseModel/finalChatgpt/Inventory.json +2606 -0
  43. package/responseModel/finalChatgpt/MasterPlayer.json +8385 -0
  44. package/responseModel/finalChatgpt/Multiplayer.json +1196 -0
  45. package/responseModel/finalChatgpt/StoreInventory.json +2085 -0
  46. package/responseModel/finals/Authenticate.json +1460 -0
  47. package/responseModel/finals/CharacterPlayer.json +3639 -0
  48. package/responseModel/finals/CloudScript.json +465 -0
  49. package/responseModel/finals/Content.json +479 -0
  50. package/responseModel/finals/Dashboard.json +6718 -0
  51. package/responseModel/finals/GamePlayer.json +4291 -0
  52. package/responseModel/finals/Generic.json +345 -0
  53. package/responseModel/finals/Group.json +2885 -0
  54. package/responseModel/finals/Inventory.json +2309 -0
  55. package/responseModel/finals/MasterPlayer.json +7018 -0
  56. package/responseModel/finals/Multiplayer.json +1082 -0
  57. package/responseModel/finals/StoreInventory.json +1979 -0
  58. package/responseModel/finalsShort/Authenticate.json +723 -0
  59. package/responseModel/finalsShort/CharacterPlayer.json +1889 -0
  60. package/responseModel/finalsShort/CloudScript.json +253 -0
  61. package/responseModel/finalsShort/Content.json +272 -0
  62. package/responseModel/finalsShort/Dashboard.json +4109 -0
  63. package/responseModel/finalsShort/GamePlayer.json +2305 -0
  64. package/responseModel/finalsShort/Generic.json +252 -0
  65. package/responseModel/finalsShort/Group.json +1508 -0
  66. package/responseModel/finalsShort/Inventory.json +1210 -0
  67. package/responseModel/finalsShort/MasterPlayer.json +3800 -0
  68. package/responseModel/finalsShort/Multiplayer.json +633 -0
  69. package/responseModel/finalsShort/StoreInventory.json +1098 -0
  70. package/responseModel/operationResponse/AuthenticateResponseModels.json +77 -0
  71. package/responseModel/operationResponse/CharacterPlayerResponseModels.json +217 -0
  72. package/responseModel/operationResponse/CloudScriptResponseModels.json +25 -0
  73. package/responseModel/operationResponse/ContentResponseModels.json +33 -0
  74. package/responseModel/operationResponse/DashboardResponseModels.json +109 -0
  75. package/responseModel/operationResponse/GamePlayerResponseModels.json +213 -0
  76. package/responseModel/operationResponse/GroupResponseModels.json +165 -0
  77. package/responseModel/operationResponse/InventoryResponseModels.json +141 -0
  78. package/responseModel/operationResponse/MasterPlayerResponseModels.json +349 -0
  79. package/responseModel/operationResponse/MultiplayerResponseModels.json +45 -0
  80. package/responseModel/operationResponse/StoreInventoryResponseModels.json +61 -0
  81. package/responseModel/servers/Authenticate.json +1328 -0
  82. package/responseModel/servers/CharacterPlayer.json +3199 -0
  83. package/responseModel/servers/CloudScript.json +278 -0
  84. package/responseModel/servers/Content.json +324 -0
  85. package/responseModel/servers/GamePlayer.json +3844 -0
  86. package/responseModel/servers/Group.json +2454 -0
  87. package/responseModel/servers/Inventory.json +1964 -0
  88. package/responseModel/servers/MasterAdmin.json +5569 -0
  89. package/responseModel/servers/MasterPlayer.json +5924 -0
  90. package/responseModel/servers/Multiplayer.json +545 -0
  91. package/responseModel/servers/StoreInventory.json +1290 -0
@@ -0,0 +1,515 @@
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
+ }