@defold-typescript/library-types 0.23.0 → 0.24.0

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 (120) hide show
  1. package/api-doc/boom.json +3870 -0
  2. package/api-doc/bridge.json +10 -5
  3. package/api-doc/bzAnim.json +338 -0
  4. package/api-doc/decore.json +1 -1
  5. package/api-doc/defcon.json +150 -0
  6. package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
  7. package/api-doc/defsave.json +518 -0
  8. package/api-doc/deftest.json +741 -0
  9. package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
  10. package/api-doc/druid.json +90 -92
  11. package/api-doc/event.json +16 -16
  12. package/api-doc/gooey.json +2050 -0
  13. package/api-doc/in.accelerometer.json +75 -1
  14. package/api-doc/in.button.json +17 -10
  15. package/api-doc/in.cursor.json +26 -0
  16. package/api-doc/in.gesture.json +401 -6
  17. package/api-doc/in.keyboard.json +2 -0
  18. package/api-doc/in.mapper.json +12 -8
  19. package/api-doc/in.onscreen.json +61 -5
  20. package/api-doc/in.state.json +61 -13
  21. package/api-doc/in.textbox.json +23 -12
  22. package/api-doc/in.triggers.json +336 -0
  23. package/api-doc/lang.json +5 -5
  24. package/api-doc/log.json +1 -1
  25. package/api-doc/metrics.fps.json +61 -2
  26. package/api-doc/metrics.mem.json +61 -2
  27. package/api-doc/monarch.monarch.json +249 -7
  28. package/api-doc/monarch.transitions.easings.json +19 -26
  29. package/api-doc/monarch.transitions.gui.json +782 -79
  30. package/api-doc/nakama.engine.defold.json +31 -18
  31. package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
  32. package/api-doc/nakama.util.log.json +32 -4
  33. package/api-doc/narrator.json +1 -1
  34. package/api-doc/openapi/nakama.nakama.json +7680 -0
  35. package/api-doc/orthographic.camera.json +96 -98
  36. package/api-doc/orthographic.json +602 -0
  37. package/api-doc/panthera.json +1183 -0
  38. package/api-doc/{persist.persist.json → persist.json} +26 -1
  39. package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
  40. package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
  41. package/api-doc/richtext.color.json +77 -0
  42. package/api-doc/richtext.richtext.json +375 -5
  43. package/api-doc/saver.saver.json +2 -1
  44. package/api-doc/saver.storage.json +2 -1
  45. package/api-doc/{starly.starly.json → starly.json} +1 -1
  46. package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
  47. package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
  48. package/authored-targets.json +403 -0
  49. package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
  50. package/generated/bridge.d.ts +5 -5
  51. package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
  52. package/generated/decore.d.ts +1 -1
  53. package/generated/defcon.d.ts +43 -0
  54. package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
  55. package/generated/defsave.d.ts +144 -0
  56. package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
  57. package/generated/druid.d.ts +81 -79
  58. package/generated/event.d.ts +15 -15
  59. package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
  60. package/generated/in.onscreen.d.ts +5 -0
  61. package/generated/in.textbox.d.ts +4 -0
  62. package/generated/lang.d.ts +5 -5
  63. package/generated/log.d.ts +1 -1
  64. package/generated/metrics.fps.d.ts +19 -1
  65. package/generated/metrics.mem.d.ts +19 -1
  66. package/generated/monarch.monarch.d.ts +44 -1
  67. package/generated/monarch.transitions.easings.d.ts +0 -1
  68. package/generated/monarch.transitions.gui.d.ts +96 -12
  69. package/generated/nakama.d.ts +1158 -0
  70. package/generated/nakama.engine.defold.d.ts +3 -1
  71. package/generated/nakama.util.log.d.ts +6 -0
  72. package/generated/narrator.d.ts +1 -1
  73. package/generated/openapi/nakama.nakama.d.ts +884 -0
  74. package/generated/orthographic.camera.d.ts +24 -38
  75. package/generated/orthographic.d.ts +155 -0
  76. package/generated/panthera.d.ts +170 -0
  77. package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
  78. package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
  79. package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
  80. package/generated/richtext.color.d.ts +15 -0
  81. package/generated/saver.saver.d.ts +2 -0
  82. package/generated/saver.storage.d.ts +2 -0
  83. package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
  84. package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
  85. package/library-classification.json +0 -156
  86. package/library-targets.json +1 -218
  87. package/luals-targets.json +56 -3
  88. package/openapi-targets.json +17 -0
  89. package/package.json +7 -57
  90. package/scripts/__snapshots__/parse-luals.test.ts.snap +164 -10
  91. package/scripts/apply-luals-overrides.ts +39 -7
  92. package/scripts/authored-parity.ts +718 -0
  93. package/scripts/emit-library-dts.ts +94 -17
  94. package/scripts/extract-api-doc.ts +189 -38
  95. package/scripts/fidelity-floor.ts +178 -0
  96. package/scripts/import-upstream-docs.ts +125 -0
  97. package/scripts/lower-api-doc.ts +21 -3
  98. package/scripts/luals-fidelity.ts +16 -11
  99. package/scripts/map-luals-types.ts +52 -21
  100. package/scripts/parse-lua-surface.ts +187 -0
  101. package/scripts/parse-luals.ts +50 -4
  102. package/scripts/parse-markdown-api.ts +247 -0
  103. package/scripts/parse-openapi-api.ts +313 -0
  104. package/scripts/sync-authored-types.ts +249 -0
  105. package/scripts/sync-library-types.ts +99 -3
  106. package/scripts/sync-luals-types.ts +14 -1
  107. package/scripts/sync-markdown-types.ts +761 -0
  108. package/scripts/sync-openapi-types.ts +308 -0
  109. package/scripts/sync-script-api-types.ts +16 -17
  110. package/api-doc/boom.boom.json +0 -26
  111. package/api-doc/bzAnim.bzLibrary.json +0 -156
  112. package/api-doc/defcon.console.json +0 -109
  113. package/api-doc/defsave.defsave.json +0 -175
  114. package/api-doc/deftest.deftest.json +0 -71
  115. package/api-doc/gooey.gooey.json +0 -963
  116. package/generated/defcon.console.d.ts +0 -24
  117. package/generated/defsave.defsave.d.ts +0 -31
  118. package/generated/nakama.nakama.d.ts +0 -594
  119. /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
  120. /package/generated/{starly.starly.d.ts → starly.d.ts} +0 -0
@@ -0,0 +1,518 @@
1
+ {
2
+ "info": {
3
+ "namespace": "defsave",
4
+ "brief": "Save and load config and user data persistently between a Defold project's sessions",
5
+ "description": "Save and load config and user data persistently between a Defold project's sessions"
6
+ },
7
+ "elements": [
8
+ {
9
+ "type": "VARIABLE",
10
+ "name": "autosave",
11
+ "brief": "Set to true to autosave all loaded files that are changed on a timer",
12
+ "description": "Set to true to autosave all loaded files that are changed on a timer",
13
+ "types": [
14
+ "boolean"
15
+ ]
16
+ },
17
+ {
18
+ "type": "VARIABLE",
19
+ "name": "autosave_timer",
20
+ "brief": "Amount of seconds between autosaves if changes have been made",
21
+ "description": "Amount of seconds between autosaves if changes have been made",
22
+ "types": [
23
+ "number"
24
+ ]
25
+ },
26
+ {
27
+ "type": "VARIABLE",
28
+ "name": "timer",
29
+ "brief": "Current timer value, only increases if autosave is enabled",
30
+ "description": "Current timer value, only increases if autosave is enabled",
31
+ "types": [
32
+ "number"
33
+ ]
34
+ },
35
+ {
36
+ "type": "VARIABLE",
37
+ "name": "changed",
38
+ "brief": "Locally used but can be useful to have exposed",
39
+ "description": "Locally used but can be useful to have exposed",
40
+ "types": [
41
+ "boolean"
42
+ ]
43
+ },
44
+ {
45
+ "type": "VARIABLE",
46
+ "name": "verbose",
47
+ "brief": "If true then more information will be printed, such as autosaves",
48
+ "description": "If true then more information will be printed, such as autosaves",
49
+ "types": [
50
+ "boolean"
51
+ ]
52
+ },
53
+ {
54
+ "type": "VARIABLE",
55
+ "name": "block_reloading",
56
+ "brief": "If true then files already loaded will never be overwritten with a reload",
57
+ "description": "If true then files already loaded will never be overwritten with a reload",
58
+ "types": [
59
+ "boolean"
60
+ ]
61
+ },
62
+ {
63
+ "type": "VARIABLE",
64
+ "name": "appname",
65
+ "brief": "Determines part of the path for saving files to",
66
+ "description": "Determines part of the path for saving files to",
67
+ "types": [
68
+ "string"
69
+ ]
70
+ },
71
+ {
72
+ "type": "VARIABLE",
73
+ "name": "loaded",
74
+ "brief": "List of files currently loaded",
75
+ "description": "List of files currently loaded",
76
+ "types": [
77
+ "LuaMap<string, unknown>"
78
+ ]
79
+ },
80
+ {
81
+ "type": "VARIABLE",
82
+ "name": "sysinfo",
83
+ "brief": "System information captured at module load",
84
+ "description": "System information captured at module load",
85
+ "types": [
86
+ "ReturnType<typeof sys.get_sys_info>"
87
+ ]
88
+ },
89
+ {
90
+ "type": "VARIABLE",
91
+ "name": "use_default_data",
92
+ "brief": "If true will attempt to load default data from the default_data table when loading an empty file",
93
+ "description": "If true will attempt to load default data from the default_data table when loading an empty file",
94
+ "types": [
95
+ "boolean"
96
+ ]
97
+ },
98
+ {
99
+ "type": "VARIABLE",
100
+ "name": "enable_encryption",
101
+ "brief": "If true then all data saved and loaded will be encrypted with AES - SLOWER",
102
+ "description": "If true then all data saved and loaded will be encrypted with AES - SLOWER",
103
+ "types": [
104
+ "boolean"
105
+ ]
106
+ },
107
+ {
108
+ "type": "VARIABLE",
109
+ "name": "encryption_key",
110
+ "brief": "Pick an encryption key to use if you're using encryption",
111
+ "description": "Pick an encryption key to use if you're using encryption",
112
+ "types": [
113
+ "string"
114
+ ]
115
+ },
116
+ {
117
+ "type": "VARIABLE",
118
+ "name": "enable_obfuscation",
119
+ "brief": "If true then all data saved and loaded will be XOR obfuscated - FASTER",
120
+ "description": "If true then all data saved and loaded will be XOR obfuscated - FASTER",
121
+ "types": [
122
+ "boolean"
123
+ ]
124
+ },
125
+ {
126
+ "type": "VARIABLE",
127
+ "name": "obfuscation_key",
128
+ "brief": "Pick an obfuscation key to use if you're using obfuscation; the longer the key the better",
129
+ "description": "Pick an obfuscation key to use if you're using obfuscation; the longer the key the better",
130
+ "types": [
131
+ "string"
132
+ ]
133
+ },
134
+ {
135
+ "type": "VARIABLE",
136
+ "name": "use_serialize",
137
+ "brief": "If true then data is serialized with sys.serialize rather than encoded as JSON",
138
+ "description": "If true then data is serialized with sys.serialize rather than encoded as JSON",
139
+ "types": [
140
+ "boolean"
141
+ ]
142
+ },
143
+ {
144
+ "type": "VARIABLE",
145
+ "name": "default_data",
146
+ "brief": "Default data to set files to if any cannot be loaded",
147
+ "description": "Default data to set files to if any cannot be loaded",
148
+ "types": [
149
+ "LuaMap<string, unknown>"
150
+ ]
151
+ },
152
+ {
153
+ "type": "FUNCTION",
154
+ "name": "set_appname",
155
+ "brief": "",
156
+ "description": "",
157
+ "parameters": [
158
+ {
159
+ "name": "name",
160
+ "doc": "",
161
+ "types": [
162
+ "string"
163
+ ],
164
+ "is_optional": "False"
165
+ }
166
+ ],
167
+ "returnvalues": []
168
+ },
169
+ {
170
+ "type": "FUNCTION",
171
+ "name": "obfuscate",
172
+ "brief": "XOR the input against a key, cycling the key as needed. Defaults to obfuscation_key.",
173
+ "description": "XOR the input against a key, cycling the key as needed. Defaults to obfuscation_key.",
174
+ "parameters": [
175
+ {
176
+ "name": "input",
177
+ "doc": "",
178
+ "types": [
179
+ "string"
180
+ ],
181
+ "is_optional": "False"
182
+ },
183
+ {
184
+ "name": "key",
185
+ "doc": "",
186
+ "types": [
187
+ "string"
188
+ ],
189
+ "is_optional": "True"
190
+ }
191
+ ],
192
+ "returnvalues": [
193
+ {
194
+ "name": "",
195
+ "doc": "",
196
+ "types": [
197
+ "string"
198
+ ]
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "type": "FUNCTION",
204
+ "name": "get_file_path",
205
+ "brief": "The save path a file resolves to, or nil when no file was given",
206
+ "description": "The save path a file resolves to, or nil when no file was given",
207
+ "parameters": [
208
+ {
209
+ "name": "file",
210
+ "doc": "",
211
+ "types": [
212
+ "string"
213
+ ],
214
+ "is_optional": "False"
215
+ }
216
+ ],
217
+ "returnvalues": [
218
+ {
219
+ "name": "",
220
+ "doc": "",
221
+ "types": [
222
+ "string | undefined"
223
+ ]
224
+ }
225
+ ]
226
+ },
227
+ {
228
+ "type": "FUNCTION",
229
+ "name": "load",
230
+ "brief": "",
231
+ "description": "",
232
+ "parameters": [
233
+ {
234
+ "name": "file",
235
+ "doc": "",
236
+ "types": [
237
+ "string"
238
+ ],
239
+ "is_optional": "False"
240
+ }
241
+ ],
242
+ "returnvalues": [
243
+ {
244
+ "name": "",
245
+ "doc": "",
246
+ "types": [
247
+ "boolean | undefined"
248
+ ]
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "type": "FUNCTION",
254
+ "name": "get",
255
+ "brief": "",
256
+ "description": "",
257
+ "parameters": [
258
+ {
259
+ "name": "file",
260
+ "doc": "",
261
+ "types": [
262
+ "string"
263
+ ],
264
+ "is_optional": "False"
265
+ },
266
+ {
267
+ "name": "key",
268
+ "doc": "",
269
+ "types": [
270
+ "string"
271
+ ],
272
+ "is_optional": "False"
273
+ }
274
+ ],
275
+ "returnvalues": [
276
+ {
277
+ "name": "",
278
+ "doc": "",
279
+ "types": [
280
+ "unknown"
281
+ ]
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ "type": "FUNCTION",
287
+ "name": "set",
288
+ "brief": "",
289
+ "description": "",
290
+ "parameters": [
291
+ {
292
+ "name": "file",
293
+ "doc": "",
294
+ "types": [
295
+ "string"
296
+ ],
297
+ "is_optional": "False"
298
+ },
299
+ {
300
+ "name": "key",
301
+ "doc": "",
302
+ "types": [
303
+ "string"
304
+ ],
305
+ "is_optional": "False"
306
+ },
307
+ {
308
+ "name": "value",
309
+ "doc": "",
310
+ "types": [
311
+ "any"
312
+ ],
313
+ "is_optional": "False"
314
+ }
315
+ ],
316
+ "returnvalues": [
317
+ {
318
+ "name": "",
319
+ "doc": "",
320
+ "types": [
321
+ "boolean | undefined"
322
+ ]
323
+ }
324
+ ]
325
+ },
326
+ {
327
+ "type": "FUNCTION",
328
+ "name": "save",
329
+ "brief": "",
330
+ "description": "",
331
+ "parameters": [
332
+ {
333
+ "name": "file",
334
+ "doc": "",
335
+ "types": [
336
+ "string"
337
+ ],
338
+ "is_optional": "False"
339
+ },
340
+ {
341
+ "name": "force",
342
+ "doc": "",
343
+ "types": [
344
+ "boolean"
345
+ ],
346
+ "is_optional": "True"
347
+ }
348
+ ],
349
+ "returnvalues": [
350
+ {
351
+ "name": "",
352
+ "doc": "",
353
+ "types": [
354
+ "boolean | undefined"
355
+ ]
356
+ }
357
+ ]
358
+ },
359
+ {
360
+ "type": "FUNCTION",
361
+ "name": "save_all",
362
+ "brief": "You can save all files at once. By default, it will only actually save files with changes, but you can force saving all files by setting the force flag to true.",
363
+ "description": "You can save all files at once. By default, it will only actually save files with changes, but you can force saving all files by setting the force flag to true.",
364
+ "parameters": [
365
+ {
366
+ "name": "force",
367
+ "doc": "false only saves changed files and true saves all files",
368
+ "types": [
369
+ "boolean"
370
+ ],
371
+ "is_optional": "True"
372
+ }
373
+ ],
374
+ "returnvalues": []
375
+ },
376
+ {
377
+ "type": "FUNCTION",
378
+ "name": "key_exists",
379
+ "brief": "Whether a key is set on a loaded file. Returns nil when the file is loaded but the key is absent.",
380
+ "description": "Whether a key is set on a loaded file. Returns nil when the file is loaded but the key is absent.",
381
+ "parameters": [
382
+ {
383
+ "name": "file",
384
+ "doc": "",
385
+ "types": [
386
+ "string"
387
+ ],
388
+ "is_optional": "False"
389
+ },
390
+ {
391
+ "name": "key",
392
+ "doc": "",
393
+ "types": [
394
+ "string"
395
+ ],
396
+ "is_optional": "False"
397
+ }
398
+ ],
399
+ "returnvalues": [
400
+ {
401
+ "name": "",
402
+ "doc": "",
403
+ "types": [
404
+ "boolean | undefined"
405
+ ]
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "type": "FUNCTION",
411
+ "name": "isset",
412
+ "brief": "Alias of key_exists",
413
+ "description": "Alias of key_exists",
414
+ "parameters": [
415
+ {
416
+ "name": "file",
417
+ "doc": "",
418
+ "types": [
419
+ "string"
420
+ ],
421
+ "is_optional": "False"
422
+ },
423
+ {
424
+ "name": "key",
425
+ "doc": "",
426
+ "types": [
427
+ "string"
428
+ ],
429
+ "is_optional": "False"
430
+ }
431
+ ],
432
+ "returnvalues": [
433
+ {
434
+ "name": "",
435
+ "doc": "",
436
+ "types": [
437
+ "boolean | undefined"
438
+ ]
439
+ }
440
+ ]
441
+ },
442
+ {
443
+ "type": "FUNCTION",
444
+ "name": "reset_to_default",
445
+ "brief": "Reset a file to its default_data entry, or to empty when it has none",
446
+ "description": "Reset a file to its default_data entry, or to empty when it has none",
447
+ "parameters": [
448
+ {
449
+ "name": "file",
450
+ "doc": "",
451
+ "types": [
452
+ "string"
453
+ ],
454
+ "is_optional": "False"
455
+ }
456
+ ],
457
+ "returnvalues": [
458
+ {
459
+ "name": "",
460
+ "doc": "",
461
+ "types": [
462
+ "boolean | undefined"
463
+ ]
464
+ }
465
+ ]
466
+ },
467
+ {
468
+ "type": "FUNCTION",
469
+ "name": "is_loaded",
470
+ "brief": "Whether a file is currently in the loaded list",
471
+ "description": "Whether a file is currently in the loaded list",
472
+ "parameters": [
473
+ {
474
+ "name": "file",
475
+ "doc": "",
476
+ "types": [
477
+ "string"
478
+ ],
479
+ "is_optional": "False"
480
+ }
481
+ ],
482
+ "returnvalues": [
483
+ {
484
+ "name": "",
485
+ "doc": "",
486
+ "types": [
487
+ "boolean"
488
+ ]
489
+ }
490
+ ]
491
+ },
492
+ {
493
+ "type": "FUNCTION",
494
+ "name": "update",
495
+ "brief": "In your update, if you want autosave to be enabled, you will need to include",
496
+ "description": "In your update, if you want autosave to be enabled, you will need to include",
497
+ "parameters": [
498
+ {
499
+ "name": "dt",
500
+ "doc": "",
501
+ "types": [
502
+ "number"
503
+ ],
504
+ "is_optional": "False"
505
+ }
506
+ ],
507
+ "returnvalues": []
508
+ },
509
+ {
510
+ "type": "FUNCTION",
511
+ "name": "final",
512
+ "brief": "Save all loaded files; call from your script's final",
513
+ "description": "Save all loaded files; call from your script's final",
514
+ "parameters": [],
515
+ "returnvalues": []
516
+ }
517
+ ]
518
+ }