@defold-typescript/library-types 0.23.0 → 0.25.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 (130) hide show
  1. package/NOTICE +2 -3
  2. package/api-doc/boom.json +3872 -0
  3. package/api-doc/bridge.json +10 -5
  4. package/api-doc/bzAnim.json +338 -0
  5. package/api-doc/checkpoint.json +127 -0
  6. package/api-doc/decore.json +1 -1
  7. package/api-doc/defcon.json +150 -0
  8. package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
  9. package/api-doc/defsave.json +518 -0
  10. package/api-doc/deftest.json +745 -0
  11. package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
  12. package/api-doc/druid.json +90 -92
  13. package/api-doc/event.json +16 -16
  14. package/api-doc/gooey.json +2050 -0
  15. package/api-doc/in.accelerometer.json +75 -1
  16. package/api-doc/in.button.json +17 -10
  17. package/api-doc/in.cursor.json +26 -0
  18. package/api-doc/in.gesture.json +401 -6
  19. package/api-doc/in.keyboard.json +2 -0
  20. package/api-doc/in.mapper.json +12 -8
  21. package/api-doc/in.onscreen.json +61 -5
  22. package/api-doc/in.state.json +61 -13
  23. package/api-doc/in.textbox.json +23 -12
  24. package/api-doc/in.triggers.json +336 -0
  25. package/api-doc/lang.json +5 -5
  26. package/api-doc/log.json +1 -1
  27. package/api-doc/metrics.fps.json +61 -2
  28. package/api-doc/metrics.mem.json +61 -2
  29. package/api-doc/monarch.monarch.json +249 -7
  30. package/api-doc/monarch.transitions.easings.json +19 -26
  31. package/api-doc/monarch.transitions.gui.json +782 -79
  32. package/api-doc/nakama.engine.defold.json +31 -18
  33. package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
  34. package/api-doc/nakama.session.json +315 -0
  35. package/api-doc/nakama.socket.json +3356 -0
  36. package/api-doc/nakama.util.log.json +32 -4
  37. package/api-doc/narrator.json +1 -1
  38. package/api-doc/openapi/nakama.nakama.json +7680 -0
  39. package/api-doc/orthographic.camera.json +96 -98
  40. package/api-doc/orthographic.json +602 -0
  41. package/api-doc/panthera.json +1183 -0
  42. package/api-doc/{persist.persist.json → persist.json} +26 -1
  43. package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
  44. package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
  45. package/api-doc/richtext.color.json +77 -0
  46. package/api-doc/richtext.richtext.json +375 -5
  47. package/api-doc/saver.saver.json +2 -1
  48. package/api-doc/saver.storage.json +2 -1
  49. package/api-doc/shutter.json +551 -0
  50. package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
  51. package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
  52. package/authored-targets.json +433 -0
  53. package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
  54. package/generated/bridge.d.ts +5 -5
  55. package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
  56. package/generated/checkpoint.d.ts +62 -0
  57. package/generated/decore.d.ts +1 -1
  58. package/generated/defcon.d.ts +43 -0
  59. package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
  60. package/generated/defsave.d.ts +144 -0
  61. package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
  62. package/generated/druid.d.ts +81 -79
  63. package/generated/event.d.ts +15 -15
  64. package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
  65. package/generated/in.onscreen.d.ts +5 -0
  66. package/generated/in.textbox.d.ts +4 -0
  67. package/generated/lang.d.ts +5 -5
  68. package/generated/log.d.ts +1 -1
  69. package/generated/metrics.fps.d.ts +19 -1
  70. package/generated/metrics.mem.d.ts +19 -1
  71. package/generated/monarch.monarch.d.ts +44 -1
  72. package/generated/monarch.transitions.easings.d.ts +0 -1
  73. package/generated/monarch.transitions.gui.d.ts +96 -12
  74. package/generated/nakama.d.ts +1158 -0
  75. package/generated/nakama.engine.defold.d.ts +3 -1
  76. package/generated/nakama.session.d.ts +95 -0
  77. package/generated/nakama.socket.d.ts +706 -0
  78. package/generated/nakama.util.log.d.ts +6 -0
  79. package/generated/narrator.d.ts +1 -1
  80. package/generated/openapi/nakama.nakama.d.ts +884 -0
  81. package/generated/orthographic.camera.d.ts +24 -38
  82. package/generated/orthographic.d.ts +155 -0
  83. package/generated/panthera.d.ts +170 -0
  84. package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
  85. package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
  86. package/generated/proto.d.ts +4 -4
  87. package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
  88. package/generated/richtext.color.d.ts +15 -0
  89. package/generated/saver.saver.d.ts +2 -0
  90. package/generated/saver.storage.d.ts +2 -0
  91. package/generated/shutter.d.ts +183 -0
  92. package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
  93. package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
  94. package/library-classification.json +0 -156
  95. package/library-targets.json +1 -218
  96. package/luals-targets.json +56 -3
  97. package/openapi-targets.json +17 -0
  98. package/package.json +7 -57
  99. package/scripts/__snapshots__/parse-luals.test.ts.snap +164 -10
  100. package/scripts/apply-luals-overrides.ts +39 -7
  101. package/scripts/authored-parity.ts +718 -0
  102. package/scripts/emit-library-dts.ts +94 -17
  103. package/scripts/extract-api-doc.ts +214 -42
  104. package/scripts/fidelity-floor.ts +178 -0
  105. package/scripts/import-upstream-docs.ts +125 -0
  106. package/scripts/lower-api-doc.ts +21 -3
  107. package/scripts/luals-fidelity.ts +16 -11
  108. package/scripts/map-luals-types.ts +52 -21
  109. package/scripts/parse-lua-surface.ts +187 -0
  110. package/scripts/parse-luals.ts +50 -4
  111. package/scripts/parse-markdown-api.ts +247 -0
  112. package/scripts/parse-openapi-api.ts +313 -0
  113. package/scripts/sync-authored-types.ts +249 -0
  114. package/scripts/sync-library-types.ts +99 -3
  115. package/scripts/sync-luals-types.ts +14 -1
  116. package/scripts/sync-markdown-types.ts +761 -0
  117. package/scripts/sync-openapi-types.ts +308 -0
  118. package/scripts/sync-script-api-types.ts +16 -17
  119. package/api-doc/boom.boom.json +0 -26
  120. package/api-doc/bzAnim.bzLibrary.json +0 -156
  121. package/api-doc/defcon.console.json +0 -109
  122. package/api-doc/defsave.defsave.json +0 -175
  123. package/api-doc/deftest.deftest.json +0 -71
  124. package/api-doc/gooey.gooey.json +0 -963
  125. package/api-doc/starly.starly.json +0 -488
  126. package/generated/defcon.console.d.ts +0 -24
  127. package/generated/defsave.defsave.d.ts +0 -31
  128. package/generated/nakama.nakama.d.ts +0 -594
  129. package/generated/starly.starly.d.ts +0 -148
  130. /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
@@ -0,0 +1,315 @@
1
+ {
2
+ "info": {
3
+ "namespace": "nakama.session",
4
+ "brief": "",
5
+ "description": ""
6
+ },
7
+ "elements": [
8
+ {
9
+ "type": "FUNCTION",
10
+ "name": "is_token_expired_soon",
11
+ "brief": "Whether the session's access token expires within the next twenty-four hours.",
12
+ "description": "Whether the session's access token expires within the next twenty-four hours.\nRefresh the session while this is true rather than waiting for it to expire.",
13
+ "parameters": [
14
+ {
15
+ "name": "session",
16
+ "doc": "A session created with `create`.",
17
+ "types": [
18
+ "Session"
19
+ ],
20
+ "is_optional": "False"
21
+ }
22
+ ],
23
+ "returnvalues": [
24
+ {
25
+ "name": "",
26
+ "doc": "",
27
+ "types": [
28
+ "boolean"
29
+ ]
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "type": "FUNCTION",
35
+ "name": "is_token_expired",
36
+ "brief": "Whether the session's access token has already expired.",
37
+ "description": "Whether the session's access token has already expired.",
38
+ "parameters": [
39
+ {
40
+ "name": "session",
41
+ "doc": "A session created with `create`.",
42
+ "types": [
43
+ "Session"
44
+ ],
45
+ "is_optional": "False"
46
+ }
47
+ ],
48
+ "returnvalues": [
49
+ {
50
+ "name": "",
51
+ "doc": "",
52
+ "types": [
53
+ "boolean"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ {
59
+ "type": "FUNCTION",
60
+ "name": "expired",
61
+ "brief": "Upstream's backwards-compatible alias of `is_token_expired`, kept because older",
62
+ "description": "Upstream's backwards-compatible alias of `is_token_expired`, kept because older\ncode calls it. New code should call `is_token_expired`.",
63
+ "parameters": [
64
+ {
65
+ "name": "session",
66
+ "doc": "A session created with `create`.",
67
+ "types": [
68
+ "Session"
69
+ ],
70
+ "is_optional": "False"
71
+ }
72
+ ],
73
+ "returnvalues": [
74
+ {
75
+ "name": "",
76
+ "doc": "",
77
+ "types": [
78
+ "boolean"
79
+ ]
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "type": "FUNCTION",
85
+ "name": "is_refresh_token_expired",
86
+ "brief": "Whether the session's refresh token has expired. A session created without a",
87
+ "description": "Whether the session's refresh token has expired. A session created without a\nrefresh token counts as expired, there being nothing left to refresh with.",
88
+ "parameters": [
89
+ {
90
+ "name": "session",
91
+ "doc": "A session created with `create`.",
92
+ "types": [
93
+ "Session"
94
+ ],
95
+ "is_optional": "False"
96
+ }
97
+ ],
98
+ "returnvalues": [
99
+ {
100
+ "name": "",
101
+ "doc": "",
102
+ "types": [
103
+ "boolean"
104
+ ]
105
+ }
106
+ ]
107
+ },
108
+ {
109
+ "type": "FUNCTION",
110
+ "name": "create",
111
+ "brief": "Builds a session from an authentication response, decoding the tokens it carries",
112
+ "description": "Builds a session from an authentication response, decoding the tokens it carries\nto read their expiry, username, user id and session variables.",
113
+ "parameters": [
114
+ {
115
+ "name": "data",
116
+ "doc": "The authentication response, which must carry a `token`.",
117
+ "types": [
118
+ "SessionData"
119
+ ],
120
+ "is_optional": "False"
121
+ }
122
+ ],
123
+ "returnvalues": [
124
+ {
125
+ "name": "",
126
+ "doc": "",
127
+ "types": [
128
+ "Session"
129
+ ]
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "type": "FUNCTION",
135
+ "name": "store",
136
+ "brief": "Writes a session to disk under the project title, so it survives a restart.",
137
+ "description": "Writes a session to disk under the project title, so it survives a restart.",
138
+ "parameters": [
139
+ {
140
+ "name": "session",
141
+ "doc": "The session to store.",
142
+ "types": [
143
+ "Session"
144
+ ],
145
+ "is_optional": "False"
146
+ },
147
+ {
148
+ "name": "id",
149
+ "doc": "Names the saved session. Defaults to `nakama`.",
150
+ "types": [
151
+ "string"
152
+ ],
153
+ "is_optional": "True"
154
+ }
155
+ ],
156
+ "returnvalues": [
157
+ {
158
+ "name": "",
159
+ "doc": "Whether the save succeeded.",
160
+ "types": [
161
+ "boolean"
162
+ ]
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "type": "FUNCTION",
168
+ "name": "restore",
169
+ "brief": "Reads back a session written by `store`.",
170
+ "description": "Reads back a session written by `store`.",
171
+ "parameters": [
172
+ {
173
+ "name": "id",
174
+ "doc": "The name the session was stored under. Defaults to `nakama`.",
175
+ "types": [
176
+ "string"
177
+ ],
178
+ "is_optional": "True"
179
+ }
180
+ ],
181
+ "returnvalues": [
182
+ {
183
+ "name": "",
184
+ "doc": "The stored session, or `nil` if nothing usable was stored under that name.",
185
+ "types": [
186
+ "Session | undefined"
187
+ ]
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "type": "TYPEDEF",
193
+ "name": "Session",
194
+ "properties": [
195
+ {
196
+ "name": "created",
197
+ "brief": "When `create` built this session, from `os.time()`.",
198
+ "description": "When `create` built this session, from `os.time()`.",
199
+ "types": [
200
+ "number"
201
+ ]
202
+ },
203
+ {
204
+ "name": "token",
205
+ "brief": "The access token the server issued, as the JWT string it arrived as.",
206
+ "description": "The access token the server issued, as the JWT string it arrived as.",
207
+ "types": [
208
+ "string"
209
+ ]
210
+ },
211
+ {
212
+ "name": "expires",
213
+ "brief": "The access token's `exp` claim, in seconds since the epoch.",
214
+ "description": "The access token's `exp` claim, in seconds since the epoch.",
215
+ "types": [
216
+ "number"
217
+ ]
218
+ },
219
+ {
220
+ "name": "username",
221
+ "brief": "The username the access token's `usn` claim carries.",
222
+ "description": "The username the access token's `usn` claim carries.",
223
+ "types": [
224
+ "string"
225
+ ]
226
+ },
227
+ {
228
+ "name": "user_id",
229
+ "brief": "The user id the access token's `uid` claim carries.",
230
+ "description": "The user id the access token's `uid` claim carries.",
231
+ "types": [
232
+ "string"
233
+ ]
234
+ },
235
+ {
236
+ "name": "vars",
237
+ "brief": "The session variables the access token's `vrs` claim carries, if any.",
238
+ "description": "The session variables the access token's `vrs` claim carries, if any.",
239
+ "types": [
240
+ "unknown"
241
+ ],
242
+ "is_optional": "True"
243
+ },
244
+ {
245
+ "name": "refresh_token",
246
+ "brief": "The refresh token the server issued, if the response carried one.",
247
+ "description": "The refresh token the server issued, if the response carried one.",
248
+ "types": [
249
+ "string"
250
+ ],
251
+ "is_optional": "True"
252
+ },
253
+ {
254
+ "name": "refresh_token_expires",
255
+ "brief": "The refresh token's `exp` claim, in seconds since the epoch.",
256
+ "description": "The refresh token's `exp` claim, in seconds since the epoch.",
257
+ "types": [
258
+ "number"
259
+ ],
260
+ "is_optional": "True"
261
+ },
262
+ {
263
+ "name": "refresh_token_username",
264
+ "brief": "The username the refresh token's `usn` claim carries.",
265
+ "description": "The username the refresh token's `usn` claim carries.",
266
+ "types": [
267
+ "string"
268
+ ],
269
+ "is_optional": "True"
270
+ },
271
+ {
272
+ "name": "refresh_token_user_id",
273
+ "brief": "The user id the refresh token's `uid` claim carries.",
274
+ "description": "The user id the refresh token's `uid` claim carries.",
275
+ "types": [
276
+ "string"
277
+ ],
278
+ "is_optional": "True"
279
+ },
280
+ {
281
+ "name": "refresh_token_vars",
282
+ "brief": "The session variables the refresh token's `vrs` claim carries.",
283
+ "description": "The session variables the refresh token's `vrs` claim carries.",
284
+ "types": [
285
+ "unknown"
286
+ ],
287
+ "is_optional": "True"
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "type": "TYPEDEF",
293
+ "name": "SessionData",
294
+ "properties": [
295
+ {
296
+ "name": "token",
297
+ "brief": "",
298
+ "description": "",
299
+ "types": [
300
+ "string"
301
+ ]
302
+ },
303
+ {
304
+ "name": "refresh_token",
305
+ "brief": "",
306
+ "description": "",
307
+ "types": [
308
+ "string"
309
+ ],
310
+ "is_optional": "True"
311
+ }
312
+ ]
313
+ }
314
+ ]
315
+ }