@mondarth/fvtt-package-catalogue-contract 0.4.1 → 0.5.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.
- package/dist/api.d.ts +10 -324
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +8 -67
- package/dist/api.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/v2.d.ts +23 -1
- package/dist/v2.d.ts.map +1 -1
- package/dist/v2.js +15 -2
- package/dist/v2.js.map +1 -1
- package/package.json +2 -2
package/dist/api.d.ts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The HTTP API
|
|
2
|
+
* The HTTP API, whatever its version: how to authenticate, and what every version's answers share. Each version's
|
|
3
|
+
* endpoints are in their own module (see `v2.ts`).
|
|
3
4
|
*/
|
|
4
5
|
import { z } from 'zod';
|
|
5
|
-
import { PackageRef } from './package.js';
|
|
6
|
-
/** The version of the API these schemas describe; part of every path. */
|
|
7
|
-
export declare const API_VERSION = "v1";
|
|
8
|
-
/** The path every endpoint of this API version is under. */
|
|
9
|
-
export declare const API_BASE = "/api/v1";
|
|
10
6
|
/**
|
|
11
7
|
* The header that carries the API key. Every API request needs one, except the CORS preflight.
|
|
12
8
|
* The key identifies a client rather than protecting the data, which is public.
|
|
@@ -15,135 +11,13 @@ export declare const API_KEY_HEADER = "X-API-Key";
|
|
|
15
11
|
/** The header a client names itself and its version in, such as `EMMA/0.6.0`. Optional. */
|
|
16
12
|
export declare const CLIENT_HEADER = "X-Catalogue-Client";
|
|
17
13
|
/**
|
|
18
|
-
* The
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @returns The path, under {@link API_BASE}
|
|
22
|
-
*/
|
|
23
|
-
export declare function releasesPath({ type, id }: PackageRef): string;
|
|
24
|
-
/** The path of the universe: a set of packages and everything they need. */
|
|
25
|
-
export declare const UNIVERSE_PATH = "/api/v1/universe";
|
|
26
|
-
/**
|
|
27
|
-
* The most packages a {@link UniverseRequest} may start from: far more than the modules any world enables, which for a
|
|
28
|
-
* heavily modded world can be several hundred, while still refusing an absurd request before it is walked. What a
|
|
29
|
-
* universe costs depends on its closure, not on how many packages it starts from.
|
|
14
|
+
* The most packages a lookup may start from: far more than the modules any world enables, which for a heavily modded
|
|
15
|
+
* world can be several hundred, while still refusing an absurd request before it is walked. What a lookup costs depends
|
|
16
|
+
* on its closure, not on how many packages it starts from.
|
|
30
17
|
*/
|
|
31
18
|
export declare const MAX_UNIVERSE_PACKAGES = 1000;
|
|
32
|
-
/**
|
|
33
|
-
export declare const
|
|
34
|
-
package: z.ZodObject<{
|
|
35
|
-
type: z.ZodEnum<{
|
|
36
|
-
module: "module";
|
|
37
|
-
system: "system";
|
|
38
|
-
world: "world";
|
|
39
|
-
}>;
|
|
40
|
-
id: z.ZodString;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
releases: z.ZodArray<z.ZodObject<{
|
|
43
|
-
package: z.ZodObject<{
|
|
44
|
-
type: z.ZodEnum<{
|
|
45
|
-
module: "module";
|
|
46
|
-
system: "system";
|
|
47
|
-
world: "world";
|
|
48
|
-
}>;
|
|
49
|
-
id: z.ZodString;
|
|
50
|
-
}, z.core.$strip>;
|
|
51
|
-
version: z.ZodString;
|
|
52
|
-
compatibility: z.ZodObject<{
|
|
53
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
54
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
55
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
relationships: z.ZodObject<{
|
|
58
|
-
requires: z.ZodArray<z.ZodObject<{
|
|
59
|
-
package: z.ZodObject<{
|
|
60
|
-
type: z.ZodEnum<{
|
|
61
|
-
module: "module";
|
|
62
|
-
system: "system";
|
|
63
|
-
world: "world";
|
|
64
|
-
}>;
|
|
65
|
-
id: z.ZodString;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
compatibility: z.ZodObject<{
|
|
68
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
69
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
70
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
71
|
-
}, z.core.$strip>;
|
|
72
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
73
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
74
|
-
}, z.core.$strip>>;
|
|
75
|
-
systems: z.ZodArray<z.ZodObject<{
|
|
76
|
-
package: z.ZodObject<{
|
|
77
|
-
type: z.ZodEnum<{
|
|
78
|
-
module: "module";
|
|
79
|
-
system: "system";
|
|
80
|
-
world: "world";
|
|
81
|
-
}>;
|
|
82
|
-
id: z.ZodString;
|
|
83
|
-
}, z.core.$strip>;
|
|
84
|
-
compatibility: z.ZodObject<{
|
|
85
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
86
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
87
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
90
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
91
|
-
}, z.core.$strip>>;
|
|
92
|
-
conflicts: z.ZodArray<z.ZodObject<{
|
|
93
|
-
package: z.ZodObject<{
|
|
94
|
-
type: z.ZodEnum<{
|
|
95
|
-
module: "module";
|
|
96
|
-
system: "system";
|
|
97
|
-
world: "world";
|
|
98
|
-
}>;
|
|
99
|
-
id: z.ZodString;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
compatibility: z.ZodObject<{
|
|
102
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
103
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
104
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
105
|
-
}, z.core.$strip>;
|
|
106
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
107
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
recommends: z.ZodArray<z.ZodObject<{
|
|
110
|
-
package: z.ZodObject<{
|
|
111
|
-
type: z.ZodEnum<{
|
|
112
|
-
module: "module";
|
|
113
|
-
system: "system";
|
|
114
|
-
world: "world";
|
|
115
|
-
}>;
|
|
116
|
-
id: z.ZodString;
|
|
117
|
-
}, z.core.$strip>;
|
|
118
|
-
compatibility: z.ZodObject<{
|
|
119
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
120
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
121
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
122
|
-
}, z.core.$strip>;
|
|
123
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
124
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
125
|
-
}, z.core.$strip>>;
|
|
126
|
-
}, z.core.$strip>;
|
|
127
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
128
|
-
download: z.ZodExactOptional<z.ZodURL>;
|
|
129
|
-
versionManifest: z.ZodExactOptional<z.ZodURL>;
|
|
130
|
-
protected: z.ZodBoolean;
|
|
131
|
-
origin: z.ZodString;
|
|
132
|
-
detail: z.ZodEnum<{
|
|
133
|
-
listed: "listed";
|
|
134
|
-
loaded: "loaded";
|
|
135
|
-
}>;
|
|
136
|
-
listing: z.ZodExactOptional<z.ZodObject<{
|
|
137
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
138
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
139
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
140
|
-
}, z.core.$strip>>;
|
|
141
|
-
unlisted: z.ZodExactOptional<z.ZodBoolean>;
|
|
142
|
-
loadFailed: z.ZodExactOptional<z.ZodBoolean>;
|
|
143
|
-
}, z.core.$strip>>;
|
|
144
|
-
asOf: z.ZodNullable<z.ZodISODateTime>;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
export type ReleasesResponse = z.infer<typeof ReleasesResponse>;
|
|
19
|
+
/** When the answer's data was last brought up to date, as an ISO 8601 time, or null if never. */
|
|
20
|
+
export declare const AsOf: z.ZodNullable<z.ZodISODateTime>;
|
|
147
21
|
/**
|
|
148
22
|
* Why a package cannot be had: `archived`, Foundry VTT's listing of it is archived, so its Setup screen no longer offers
|
|
149
23
|
* it; `gone`, its files are no longer there, as the catalogue's maintainers found.
|
|
@@ -170,176 +44,8 @@ export declare const UnavailablePackage: z.ZodObject<{
|
|
|
170
44
|
note: z.ZodExactOptional<z.ZodString>;
|
|
171
45
|
}, z.core.$strip>;
|
|
172
46
|
export type UnavailablePackage = z.infer<typeof UnavailablePackage>;
|
|
173
|
-
/**
|
|
174
|
-
export declare const
|
|
175
|
-
packages: z.ZodArray<z.ZodObject<{
|
|
176
|
-
type: z.ZodEnum<{
|
|
177
|
-
module: "module";
|
|
178
|
-
system: "system";
|
|
179
|
-
world: "world";
|
|
180
|
-
}>;
|
|
181
|
-
id: z.ZodString;
|
|
182
|
-
}, z.core.$strip>>;
|
|
183
|
-
}, z.core.$strip>;
|
|
184
|
-
export type UniverseRequest = z.infer<typeof UniverseRequest>;
|
|
185
|
-
/**
|
|
186
|
-
* `POST /api/v1/universe`: the packages asked for and every package their releases require or run in, as far as the
|
|
187
|
-
* catalogue holds them, with Foundry VTT's builds.
|
|
188
|
-
*/
|
|
189
|
-
export declare const UniverseResponse: z.ZodObject<{
|
|
190
|
-
universe: z.ZodObject<{
|
|
191
|
-
core: z.ZodArray<z.ZodObject<{
|
|
192
|
-
version: z.ZodString;
|
|
193
|
-
generation: z.ZodInt;
|
|
194
|
-
channel: z.ZodEnum<{
|
|
195
|
-
development: "development";
|
|
196
|
-
prototype: "prototype";
|
|
197
|
-
stable: "stable";
|
|
198
|
-
testing: "testing";
|
|
199
|
-
}>;
|
|
200
|
-
}, z.core.$strip>>;
|
|
201
|
-
releases: z.ZodArray<z.ZodObject<{
|
|
202
|
-
package: z.ZodObject<{
|
|
203
|
-
type: z.ZodEnum<{
|
|
204
|
-
module: "module";
|
|
205
|
-
system: "system";
|
|
206
|
-
world: "world";
|
|
207
|
-
}>;
|
|
208
|
-
id: z.ZodString;
|
|
209
|
-
}, z.core.$strip>;
|
|
210
|
-
version: z.ZodString;
|
|
211
|
-
compatibility: z.ZodObject<{
|
|
212
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
213
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
214
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
215
|
-
}, z.core.$strip>;
|
|
216
|
-
relationships: z.ZodObject<{
|
|
217
|
-
requires: z.ZodArray<z.ZodObject<{
|
|
218
|
-
package: z.ZodObject<{
|
|
219
|
-
type: z.ZodEnum<{
|
|
220
|
-
module: "module";
|
|
221
|
-
system: "system";
|
|
222
|
-
world: "world";
|
|
223
|
-
}>;
|
|
224
|
-
id: z.ZodString;
|
|
225
|
-
}, z.core.$strip>;
|
|
226
|
-
compatibility: z.ZodObject<{
|
|
227
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
228
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
229
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
230
|
-
}, z.core.$strip>;
|
|
231
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
232
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
233
|
-
}, z.core.$strip>>;
|
|
234
|
-
systems: z.ZodArray<z.ZodObject<{
|
|
235
|
-
package: z.ZodObject<{
|
|
236
|
-
type: z.ZodEnum<{
|
|
237
|
-
module: "module";
|
|
238
|
-
system: "system";
|
|
239
|
-
world: "world";
|
|
240
|
-
}>;
|
|
241
|
-
id: z.ZodString;
|
|
242
|
-
}, z.core.$strip>;
|
|
243
|
-
compatibility: z.ZodObject<{
|
|
244
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
245
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
246
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
249
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
250
|
-
}, z.core.$strip>>;
|
|
251
|
-
conflicts: z.ZodArray<z.ZodObject<{
|
|
252
|
-
package: z.ZodObject<{
|
|
253
|
-
type: z.ZodEnum<{
|
|
254
|
-
module: "module";
|
|
255
|
-
system: "system";
|
|
256
|
-
world: "world";
|
|
257
|
-
}>;
|
|
258
|
-
id: z.ZodString;
|
|
259
|
-
}, z.core.$strip>;
|
|
260
|
-
compatibility: z.ZodObject<{
|
|
261
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
262
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
263
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
264
|
-
}, z.core.$strip>;
|
|
265
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
266
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
recommends: z.ZodArray<z.ZodObject<{
|
|
269
|
-
package: z.ZodObject<{
|
|
270
|
-
type: z.ZodEnum<{
|
|
271
|
-
module: "module";
|
|
272
|
-
system: "system";
|
|
273
|
-
world: "world";
|
|
274
|
-
}>;
|
|
275
|
-
id: z.ZodString;
|
|
276
|
-
}, z.core.$strip>;
|
|
277
|
-
compatibility: z.ZodObject<{
|
|
278
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
279
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
280
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
281
|
-
}, z.core.$strip>;
|
|
282
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
283
|
-
reason: z.ZodExactOptional<z.ZodString>;
|
|
284
|
-
}, z.core.$strip>>;
|
|
285
|
-
}, z.core.$strip>;
|
|
286
|
-
manifest: z.ZodExactOptional<z.ZodURL>;
|
|
287
|
-
download: z.ZodExactOptional<z.ZodURL>;
|
|
288
|
-
versionManifest: z.ZodExactOptional<z.ZodURL>;
|
|
289
|
-
protected: z.ZodBoolean;
|
|
290
|
-
origin: z.ZodString;
|
|
291
|
-
detail: z.ZodEnum<{
|
|
292
|
-
listed: "listed";
|
|
293
|
-
loaded: "loaded";
|
|
294
|
-
}>;
|
|
295
|
-
listing: z.ZodExactOptional<z.ZodObject<{
|
|
296
|
-
minimum: z.ZodExactOptional<z.ZodString>;
|
|
297
|
-
maximum: z.ZodExactOptional<z.ZodString>;
|
|
298
|
-
verified: z.ZodExactOptional<z.ZodString>;
|
|
299
|
-
}, z.core.$strip>>;
|
|
300
|
-
unlisted: z.ZodExactOptional<z.ZodBoolean>;
|
|
301
|
-
loadFailed: z.ZodExactOptional<z.ZodBoolean>;
|
|
302
|
-
}, z.core.$strip>>;
|
|
303
|
-
}, z.core.$strip>;
|
|
304
|
-
gaps: z.ZodArray<z.ZodObject<{
|
|
305
|
-
source: z.ZodString;
|
|
306
|
-
url: z.ZodString;
|
|
307
|
-
reason: z.ZodEnum<{
|
|
308
|
-
budget: "budget";
|
|
309
|
-
http: "http";
|
|
310
|
-
invalid: "invalid";
|
|
311
|
-
network: "network";
|
|
312
|
-
}>;
|
|
313
|
-
status: z.ZodExactOptional<z.ZodInt>;
|
|
314
|
-
package: z.ZodExactOptional<z.ZodString>;
|
|
315
|
-
version: z.ZodExactOptional<z.ZodString>;
|
|
316
|
-
}, z.core.$strip>>;
|
|
317
|
-
pending: z.ZodArray<z.ZodObject<{
|
|
318
|
-
type: z.ZodEnum<{
|
|
319
|
-
module: "module";
|
|
320
|
-
system: "system";
|
|
321
|
-
world: "world";
|
|
322
|
-
}>;
|
|
323
|
-
id: z.ZodString;
|
|
324
|
-
}, z.core.$strip>>;
|
|
325
|
-
unavailable: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
326
|
-
package: z.ZodObject<{
|
|
327
|
-
type: z.ZodEnum<{
|
|
328
|
-
module: "module";
|
|
329
|
-
system: "system";
|
|
330
|
-
world: "world";
|
|
331
|
-
}>;
|
|
332
|
-
id: z.ZodString;
|
|
333
|
-
}, z.core.$strip>;
|
|
334
|
-
reason: z.ZodEnum<{
|
|
335
|
-
archived: "archived";
|
|
336
|
-
gone: "gone";
|
|
337
|
-
}>;
|
|
338
|
-
note: z.ZodExactOptional<z.ZodString>;
|
|
339
|
-
}, z.core.$strip>>>;
|
|
340
|
-
asOf: z.ZodNullable<z.ZodISODateTime>;
|
|
341
|
-
}, z.core.$strip>;
|
|
342
|
-
export type UniverseResponse = z.infer<typeof UniverseResponse>;
|
|
47
|
+
/** A count of none or more. */
|
|
48
|
+
export declare const Count: z.ZodInt;
|
|
343
49
|
/**
|
|
344
50
|
* How what the catalogue holds compares with Foundry VTT's index, as the catalogue last checked, once a day. Each count
|
|
345
51
|
* but the first two is of something to put right; the catalogue queues the packages concerned to be crawled again.
|
|
@@ -356,27 +62,7 @@ export declare const ConsistencyReport: z.ZodObject<{
|
|
|
356
62
|
requeued: z.ZodInt;
|
|
357
63
|
}, z.core.$strip>;
|
|
358
64
|
export type ConsistencyReport = z.infer<typeof ConsistencyReport>;
|
|
359
|
-
/** `GET /
|
|
360
|
-
export declare const StatusResponse: z.ZodObject<{
|
|
361
|
-
apiVersion: z.ZodLiteral<"v1">;
|
|
362
|
-
version: z.ZodString;
|
|
363
|
-
packages: z.ZodInt;
|
|
364
|
-
releases: z.ZodInt;
|
|
365
|
-
asOf: z.ZodNullable<z.ZodISODateTime>;
|
|
366
|
-
consistency: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
367
|
-
at: z.ZodISODateTime;
|
|
368
|
-
listed: z.ZodInt;
|
|
369
|
-
held: z.ZodInt;
|
|
370
|
-
versionsMissing: z.ZodInt;
|
|
371
|
-
latestMissing: z.ZodInt;
|
|
372
|
-
listingsDiffer: z.ZodInt;
|
|
373
|
-
archivedHeld: z.ZodInt;
|
|
374
|
-
ownMissing: z.ZodInt;
|
|
375
|
-
requeued: z.ZodInt;
|
|
376
|
-
}, z.core.$strip>>>;
|
|
377
|
-
}, z.core.$strip>;
|
|
378
|
-
export type StatusResponse = z.infer<typeof StatusResponse>;
|
|
379
|
-
/** `GET /healthz`: the server is up. It is not under {@link API_BASE}, and needs no key. */
|
|
65
|
+
/** `GET /healthz`: the server is up. It is under no version of the API, and needs no key. */
|
|
380
66
|
export declare const HealthResponse: z.ZodObject<{
|
|
381
67
|
status: z.ZodLiteral<"ok">;
|
|
382
68
|
}, z.core.$strip>;
|
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,eAAO,MAAM,cAAc,cAAc,CAAC;AAE1C,2FAA2F;AAC3F,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,iGAAiG;AACjG,eAAO,MAAM,IAAI,iCAA8B,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;EAA+B,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,+BAA+B;AAC/B,eAAO,MAAM,KAAK,UAAwB,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAmB5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,6FAA6F;AAC7F,eAAO,MAAM,cAAc;;iBAEzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,4BAA4B;AAC5B,eAAO,MAAM,SAAS;;;;;;;;EAQpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,wCAAwC;AACxC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;iBAOxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
package/dist/api.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The HTTP API
|
|
2
|
+
* The HTTP API, whatever its version: how to authenticate, and what every version's answers share. Each version's
|
|
3
|
+
* endpoints are in their own module (see `v2.ts`).
|
|
3
4
|
*/
|
|
4
5
|
import { z } from 'zod';
|
|
5
6
|
import { PackageRef } from './package.js';
|
|
6
|
-
import { Release } from './release.js';
|
|
7
|
-
import { SourceGap, Universe } from './universe.js';
|
|
8
|
-
/** The version of the API these schemas describe; part of every path. */
|
|
9
|
-
export const API_VERSION = 'v1';
|
|
10
|
-
/** The path every endpoint of this API version is under. */
|
|
11
|
-
export const API_BASE = `/api/${API_VERSION}`;
|
|
12
7
|
/**
|
|
13
8
|
* The header that carries the API key. Every API request needs one, except the CORS preflight.
|
|
14
9
|
* The key identifies a client rather than protecting the data, which is public.
|
|
@@ -17,30 +12,13 @@ export const API_KEY_HEADER = 'X-API-Key';
|
|
|
17
12
|
/** The header a client names itself and its version in, such as `EMMA/0.6.0`. Optional. */
|
|
18
13
|
export const CLIENT_HEADER = 'X-Catalogue-Client';
|
|
19
14
|
/**
|
|
20
|
-
* The
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @returns The path, under {@link API_BASE}
|
|
24
|
-
*/
|
|
25
|
-
export function releasesPath({ type, id }) {
|
|
26
|
-
return `${API_BASE}/packages/${type}/${encodeURIComponent(id)}/releases`;
|
|
27
|
-
}
|
|
28
|
-
/** The path of the universe: a set of packages and everything they need. */
|
|
29
|
-
export const UNIVERSE_PATH = `${API_BASE}/universe`;
|
|
30
|
-
/**
|
|
31
|
-
* The most packages a {@link UniverseRequest} may start from: far more than the modules any world enables, which for a
|
|
32
|
-
* heavily modded world can be several hundred, while still refusing an absurd request before it is walked. What a
|
|
33
|
-
* universe costs depends on its closure, not on how many packages it starts from.
|
|
15
|
+
* The most packages a lookup may start from: far more than the modules any world enables, which for a heavily modded
|
|
16
|
+
* world can be several hundred, while still refusing an absurd request before it is walked. What a lookup costs depends
|
|
17
|
+
* on its closure, not on how many packages it starts from.
|
|
34
18
|
*/
|
|
35
19
|
export const MAX_UNIVERSE_PACKAGES = 1000;
|
|
36
20
|
/** When the answer's data was last brought up to date, as an ISO 8601 time, or null if never. */
|
|
37
|
-
const AsOf = z.iso.datetime().nullable();
|
|
38
|
-
/** `GET /api/v1/packages/:type/:id/releases`: every release of a package the catalogue knows. */
|
|
39
|
-
export const ReleasesResponse = z.object({
|
|
40
|
-
package: PackageRef,
|
|
41
|
-
releases: z.array(Release),
|
|
42
|
-
asOf: AsOf,
|
|
43
|
-
});
|
|
21
|
+
export const AsOf = z.iso.datetime().nullable();
|
|
44
22
|
/**
|
|
45
23
|
* Why a package cannot be had: `archived`, Foundry VTT's listing of it is archived, so its Setup screen no longer offers
|
|
46
24
|
* it; `gone`, its files are no longer there, as the catalogue's maintainers found.
|
|
@@ -53,34 +31,8 @@ export const UnavailablePackage = z.object({
|
|
|
53
31
|
/** More of why, in words, such as what the maintainers found. */
|
|
54
32
|
note: z.string().min(1).exactOptional(),
|
|
55
33
|
});
|
|
56
|
-
/** `POST /api/v1/universe`: the packages to start from, such as those a world has enabled. */
|
|
57
|
-
export const UniverseRequest = z.object({
|
|
58
|
-
packages: z.array(PackageRef).min(1).max(MAX_UNIVERSE_PACKAGES),
|
|
59
|
-
});
|
|
60
|
-
/**
|
|
61
|
-
* `POST /api/v1/universe`: the packages asked for and every package their releases require or run in, as far as the
|
|
62
|
-
* catalogue holds them, with Foundry VTT's builds.
|
|
63
|
-
*/
|
|
64
|
-
export const UniverseResponse = z.object({
|
|
65
|
-
universe: Universe,
|
|
66
|
-
/** What the catalogue's sources could not fetch or read for these packages. */
|
|
67
|
-
gaps: z.array(SourceGap),
|
|
68
|
-
/**
|
|
69
|
-
* Packages asked for or needed that the catalogue does not hold yet. They are queued for it to fetch; until then, a
|
|
70
|
-
* client finds them elsewhere, such as through EMMA's proxy.
|
|
71
|
-
*/
|
|
72
|
-
pending: z.array(PackageRef),
|
|
73
|
-
/**
|
|
74
|
-
* Packages asked for or needed that cannot be had, with no releases in the universe, and not followed further. A
|
|
75
|
-
* client should leave them out of what it resolves, rather than look for them elsewhere. None from a catalogue that
|
|
76
|
-
* predates it.
|
|
77
|
-
*/
|
|
78
|
-
unavailable: z.array(UnavailablePackage).default([]),
|
|
79
|
-
/** The oldest time any of the packages held was brought up to date. */
|
|
80
|
-
asOf: AsOf,
|
|
81
|
-
});
|
|
82
34
|
/** A count of none or more. */
|
|
83
|
-
const Count = z.int().nonnegative();
|
|
35
|
+
export const Count = z.int().nonnegative();
|
|
84
36
|
/**
|
|
85
37
|
* How what the catalogue holds compares with Foundry VTT's index, as the catalogue last checked, once a day. Each count
|
|
86
38
|
* but the first two is of something to put right; the catalogue queues the packages concerned to be crawled again.
|
|
@@ -105,18 +57,7 @@ export const ConsistencyReport = z.object({
|
|
|
105
57
|
/** The packages queued to be crawled again for these. */
|
|
106
58
|
requeued: Count,
|
|
107
59
|
});
|
|
108
|
-
/** `GET /
|
|
109
|
-
export const StatusResponse = z.object({
|
|
110
|
-
apiVersion: z.literal(API_VERSION),
|
|
111
|
-
/** The catalogue's own release. */
|
|
112
|
-
version: z.string(),
|
|
113
|
-
packages: Count,
|
|
114
|
-
releases: Count,
|
|
115
|
-
asOf: AsOf,
|
|
116
|
-
/** How it last compared with Foundry VTT's index; null if it never has, or predates the check. */
|
|
117
|
-
consistency: ConsistencyReport.nullable().default(null),
|
|
118
|
-
});
|
|
119
|
-
/** `GET /healthz`: the server is up. It is not under {@link API_BASE}, and needs no key. */
|
|
60
|
+
/** `GET /healthz`: the server is up. It is under no version of the API, and needs no key. */
|
|
120
61
|
export const HealthResponse = z.object({
|
|
121
62
|
status: z.literal('ok'),
|
|
122
63
|
});
|
package/dist/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CAAC;AAE1C,2FAA2F;AAC3F,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAElD;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,IAAI,CAAC;AAE1C,iGAAiG;AACjG,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC;AAEhD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;AAG9D,6EAA6E;AAC7E,MAAM,CAAC,MAAM,kBAAkB,GAAG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AS;QACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,mDAAmD;QACnD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,aAAa,EAAE;KACtC,CAAC;CACH,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export { PackageId, PackageRef, PackageType, packageKey } from './package.js';
|
|
|
9
9
|
export { Compatibility, Relationship, Relationships, Release, ReleaseDetail, Version } from './release.js';
|
|
10
10
|
export { CoreChannel, CoreRelease } from './core.js';
|
|
11
11
|
export { SourceGap, Universe } from './universe.js';
|
|
12
|
-
export {
|
|
13
|
-
export { API_V2_BASE, API_V2_VERSION, CORE_PATH, CoreResponse, LISTING_PATH, ListedPackage, ListedVersion, ListingResponse, LOOKUP_PATH, LookupPackage, LookupPackageRequest, LookupRequest, LookupResponse, OwnManifest, PackageRelease, PendingPackage, MANIFEST_PATH, MAX_RECHECK_PACKAGES, ManifestRequest, ManifestResponse, RECHECK_MIN_SECONDS, RECHECK_PATH, RecheckRequest, RecheckResponse, RecheckedPackage, } from './v2.js';
|
|
12
|
+
export { API_KEY_HEADER, CLIENT_HEADER, ConsistencyReport, ErrorCode, ErrorResponse, HealthResponse, MAX_UNIVERSE_PACKAGES, UnavailablePackage, UnavailableReason, } from './api.js';
|
|
13
|
+
export { API_V2_BASE, API_V2_VERSION, CORE_PATH, CoreResponse, LISTING_PATH, ListedPackage, ListedVersion, ListingResponse, LOOKUP_PATH, LookupPackage, LookupPackageRequest, LookupRequest, LookupResponse, OwnManifest, PackageRelease, PendingPackage, MANIFEST_PATH, MAX_RECHECK_PACKAGES, ManifestRequest, ManifestResponse, RECHECK_MIN_SECONDS, RECHECK_PATH, RecheckRequest, RecheckResponse, RecheckedPackage, STATUS_PATH, StatusResponse, } from './v2.js';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,WAAW,EACX,cAAc,EACd,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,WAAW,EACX,cAAc,EACd,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,cAAc,GACf,MAAM,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,6 @@ export { PackageId, PackageRef, PackageType, packageKey } from './package.js';
|
|
|
9
9
|
export { Compatibility, Relationship, Relationships, Release, ReleaseDetail, Version } from './release.js';
|
|
10
10
|
export { CoreChannel, CoreRelease } from './core.js';
|
|
11
11
|
export { SourceGap, Universe } from './universe.js';
|
|
12
|
-
export {
|
|
13
|
-
export { API_V2_BASE, API_V2_VERSION, CORE_PATH, CoreResponse, LISTING_PATH, ListedPackage, ListedVersion, ListingResponse, LOOKUP_PATH, LookupPackage, LookupPackageRequest, LookupRequest, LookupResponse, OwnManifest, PackageRelease, PendingPackage, MANIFEST_PATH, MAX_RECHECK_PACKAGES, ManifestRequest, ManifestResponse, RECHECK_MIN_SECONDS, RECHECK_PATH, RecheckRequest, RecheckResponse, RecheckedPackage, } from './v2.js';
|
|
12
|
+
export { API_KEY_HEADER, CLIENT_HEADER, ConsistencyReport, ErrorCode, ErrorResponse, HealthResponse, MAX_UNIVERSE_PACKAGES, UnavailablePackage, UnavailableReason, } from './api.js';
|
|
13
|
+
export { API_V2_BASE, API_V2_VERSION, CORE_PATH, CoreResponse, LISTING_PATH, ListedPackage, ListedVersion, ListingResponse, LOOKUP_PATH, LookupPackage, LookupPackageRequest, LookupRequest, LookupResponse, OwnManifest, PackageRelease, PendingPackage, MANIFEST_PATH, MAX_RECHECK_PACKAGES, ManifestRequest, ManifestResponse, RECHECK_MIN_SECONDS, RECHECK_PATH, RecheckRequest, RecheckResponse, RecheckedPackage, STATUS_PATH, StatusResponse, } from './v2.js';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,WAAW,EACX,cAAc,EACd,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,eAAe,EACf,WAAW,EACX,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,WAAW,EACX,cAAc,EACd,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,cAAc,GACf,MAAM,SAAS,CAAC"}
|
package/dist/v2.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Version 2 of the HTTP API: answers shaped for clients that ask the catalogue alone, such as EMMA, as few times as
|
|
3
|
-
* they can. Version 1 is
|
|
3
|
+
* they can. Version 1 is retired.
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
/** The version of the API these schemas describe; part of every path. */
|
|
@@ -17,6 +17,8 @@ export declare const CORE_PATH = "/api/v2/core";
|
|
|
17
17
|
export declare const MANIFEST_PATH = "/api/v2/manifest";
|
|
18
18
|
/** The path that has packages' own manifests checked again now, as a client's "check live" asks. */
|
|
19
19
|
export declare const RECHECK_PATH = "/api/v2/recheck";
|
|
20
|
+
/** The path of what the catalogue holds. */
|
|
21
|
+
export declare const STATUS_PATH = "/api/v2/status";
|
|
20
22
|
/** The most packages one recheck may ask for: those a user means to see fresh, not every package installed. */
|
|
21
23
|
export declare const MAX_RECHECK_PACKAGES = 50;
|
|
22
24
|
/**
|
|
@@ -752,4 +754,24 @@ export declare const ManifestResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
752
754
|
problem: z.ZodLiteral<"not-manifest">;
|
|
753
755
|
}, z.core.$strip>]>;
|
|
754
756
|
export type ManifestResponse = z.infer<typeof ManifestResponse>;
|
|
757
|
+
/** `GET /api/v2/status`: what the catalogue holds. */
|
|
758
|
+
export declare const StatusResponse: z.ZodObject<{
|
|
759
|
+
apiVersion: z.ZodLiteral<"v2">;
|
|
760
|
+
version: z.ZodString;
|
|
761
|
+
packages: z.ZodInt;
|
|
762
|
+
releases: z.ZodInt;
|
|
763
|
+
asOf: z.ZodNullable<z.ZodISODateTime>;
|
|
764
|
+
consistency: z.ZodNullable<z.ZodObject<{
|
|
765
|
+
at: z.ZodISODateTime;
|
|
766
|
+
listed: z.ZodInt;
|
|
767
|
+
held: z.ZodInt;
|
|
768
|
+
versionsMissing: z.ZodInt;
|
|
769
|
+
latestMissing: z.ZodInt;
|
|
770
|
+
listingsDiffer: z.ZodInt;
|
|
771
|
+
archivedHeld: z.ZodInt;
|
|
772
|
+
ownMissing: z.ZodInt;
|
|
773
|
+
requeued: z.ZodInt;
|
|
774
|
+
}, z.core.$strip>>;
|
|
775
|
+
}, z.core.$strip>;
|
|
776
|
+
export type StatusResponse = z.infer<typeof StatusResponse>;
|
|
755
777
|
//# sourceMappingURL=v2.d.ts.map
|
package/dist/v2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../src/v2.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yEAAyE;AACzE,eAAO,MAAM,cAAc,OAAO,CAAC;AAEnC,qDAAqD;AACrD,eAAO,MAAM,WAAW,YAA2B,CAAC;AAEpD,4FAA4F;AAC5F,eAAO,MAAM,WAAW,mBAA0B,CAAC;AAEnD,wGAAwG;AACxG,eAAO,MAAM,YAAY,oBAA2B,CAAC;AAErD,wCAAwC;AACxC,eAAO,MAAM,SAAS,iBAAwB,CAAC;AAE/C,kFAAkF;AAClF,eAAO,MAAM,aAAa,qBAA4B,CAAC;AAEvD,oGAAoG;AACpG,eAAO,MAAM,YAAY,oBAA2B,CAAC;AAErD,+GAA+G;AAC/G,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAKvC,8DAA8D;AAC9D,eAAO,MAAM,oBAAoB;;;;;;;;;iBAQ/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAExE,kFAAkF;AAClF,eAAO,MAAM,aAAa;;;;;;;;;;;;iBAOxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,qFAAqF;AACrF,eAAO,MAAM,cAAc;;;;;;;;;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c;;;;;;;;;;;;;;;;;iBASzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/v2.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Version 2 of the HTTP API: answers shaped for clients that ask the catalogue alone, such as EMMA, as few times as
|
|
3
|
-
* they can. Version 1 is
|
|
3
|
+
* they can. Version 1 is retired.
|
|
4
4
|
*/
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { MAX_UNIVERSE_PACKAGES, UnavailablePackage } from './api.js';
|
|
6
|
+
import { AsOf, ConsistencyReport, Count, MAX_UNIVERSE_PACKAGES, UnavailablePackage } from './api.js';
|
|
7
7
|
import { CoreRelease } from './core.js';
|
|
8
8
|
import { PackageRef } from './package.js';
|
|
9
9
|
import { Release, Version } from './release.js';
|
|
@@ -21,6 +21,8 @@ export const CORE_PATH = `${API_V2_BASE}/core`;
|
|
|
21
21
|
export const MANIFEST_PATH = `${API_V2_BASE}/manifest`;
|
|
22
22
|
/** The path that has packages' own manifests checked again now, as a client's "check live" asks. */
|
|
23
23
|
export const RECHECK_PATH = `${API_V2_BASE}/recheck`;
|
|
24
|
+
/** The path of what the catalogue holds. */
|
|
25
|
+
export const STATUS_PATH = `${API_V2_BASE}/status`;
|
|
24
26
|
/** The most packages one recheck may ask for: those a user means to see fresh, not every package installed. */
|
|
25
27
|
export const MAX_RECHECK_PACKAGES = 50;
|
|
26
28
|
/**
|
|
@@ -191,4 +193,15 @@ export const ManifestResponse = z.union([
|
|
|
191
193
|
z.object({ ok: z.literal(false), problem: z.literal('other-type'), type: z.enum(['module', 'system']) }),
|
|
192
194
|
z.object({ ok: z.literal(false), problem: z.literal('not-manifest') }),
|
|
193
195
|
]);
|
|
196
|
+
/** `GET /api/v2/status`: what the catalogue holds. */
|
|
197
|
+
export const StatusResponse = z.object({
|
|
198
|
+
apiVersion: z.literal(API_V2_VERSION),
|
|
199
|
+
/** The catalogue's own release. */
|
|
200
|
+
version: z.string(),
|
|
201
|
+
packages: Count,
|
|
202
|
+
releases: Count,
|
|
203
|
+
asOf: AsOf,
|
|
204
|
+
/** How it last compared with Foundry VTT's index; null if it never has. */
|
|
205
|
+
consistency: ConsistencyReport.nullable(),
|
|
206
|
+
});
|
|
194
207
|
//# sourceMappingURL=v2.js.map
|
package/dist/v2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../src/v2.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../src/v2.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACrG,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEhD,yEAAyE;AACzE,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC;AAEnC,qDAAqD;AACrD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,cAAc,EAAE,CAAC;AAEpD,4FAA4F;AAC5F,MAAM,CAAC,MAAM,WAAW,GAAG,GAAG,WAAW,SAAS,CAAC;AAEnD,wGAAwG;AACxG,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,WAAW,UAAU,CAAC;AAErD,wCAAwC;AACxC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,W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1
1
|
{
|
|
2
2
|
"name": "@mondarth/fvtt-package-catalogue-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "The API contract of the Foundry VTT package catalogue: zod schemas and types of every request and response.",
|
|
5
5
|
"author": "Ulenar of Mondarth",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"zod": "^4.6.7"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@mondarth/fvtt-resolver": "^0.
|
|
45
|
+
"@mondarth/fvtt-resolver": "^0.11.0",
|
|
46
46
|
"@types/node": "^24.19.2",
|
|
47
47
|
"@vitest/coverage-v8": "^5.0.5",
|
|
48
48
|
"typescript": "npm:@typescript/typescript6@^6.0.2",
|