@mondarth/fvtt-package-catalogue-contract 0.0.0 → 0.2.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/README.md CHANGED
@@ -15,6 +15,19 @@ const response = await fetch(new URL(releasesPath({ type: 'module', id: 'midi-qo
15
15
  const { releases } = ReleasesResponse.parse(await response.json());
16
16
  ```
17
17
 
18
+ A universe, for the resolver, is posted:
19
+
20
+ ```ts
21
+ import { API_KEY_HEADER, UNIVERSE_PATH, UniverseResponse } from '@mondarth/fvtt-package-catalogue-contract';
22
+
23
+ const response = await fetch(new URL(UNIVERSE_PATH, base), {
24
+ method: 'POST',
25
+ headers: { [API_KEY_HEADER]: key, 'Content-Type': 'application/json' },
26
+ body: JSON.stringify({ packages: [{ type: 'module', id: 'midi-qol' }] }),
27
+ });
28
+ const { universe, pending } = UniverseResponse.parse(await response.json());
29
+ ```
30
+
18
31
  ## Licence
19
32
 
20
33
  MIT
package/dist/api.d.ts CHANGED
@@ -21,6 +21,14 @@ export declare const CLIENT_HEADER = "X-Catalogue-Client";
21
21
  * @returns The path, under {@link API_BASE}
22
22
  */
23
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.
30
+ */
31
+ export declare const MAX_UNIVERSE_PACKAGES = 1000;
24
32
  /** `GET /api/v1/packages/:type/:id/releases`: every release of a package the catalogue knows. */
25
33
  export declare const ReleasesResponse: z.ZodObject<{
26
34
  package: z.ZodObject<{
@@ -136,6 +144,161 @@ export declare const ReleasesResponse: z.ZodObject<{
136
144
  asOf: z.ZodNullable<z.ZodISODateTime>;
137
145
  }, z.core.$strip>;
138
146
  export type ReleasesResponse = z.infer<typeof ReleasesResponse>;
147
+ /** `POST /api/v1/universe`: the packages to start from, such as those a world has enabled. */
148
+ export declare const UniverseRequest: z.ZodObject<{
149
+ packages: z.ZodArray<z.ZodObject<{
150
+ type: z.ZodEnum<{
151
+ module: "module";
152
+ system: "system";
153
+ world: "world";
154
+ }>;
155
+ id: z.ZodString;
156
+ }, z.core.$strip>>;
157
+ }, z.core.$strip>;
158
+ export type UniverseRequest = z.infer<typeof UniverseRequest>;
159
+ /**
160
+ * `POST /api/v1/universe`: the packages asked for and every package their releases require or run in, as far as the
161
+ * catalogue holds them, with Foundry VTT's builds.
162
+ */
163
+ export declare const UniverseResponse: z.ZodObject<{
164
+ universe: z.ZodObject<{
165
+ core: z.ZodArray<z.ZodObject<{
166
+ version: z.ZodString;
167
+ generation: z.ZodInt;
168
+ channel: z.ZodEnum<{
169
+ development: "development";
170
+ prototype: "prototype";
171
+ stable: "stable";
172
+ testing: "testing";
173
+ }>;
174
+ }, z.core.$strip>>;
175
+ releases: z.ZodArray<z.ZodObject<{
176
+ package: z.ZodObject<{
177
+ type: z.ZodEnum<{
178
+ module: "module";
179
+ system: "system";
180
+ world: "world";
181
+ }>;
182
+ id: z.ZodString;
183
+ }, z.core.$strip>;
184
+ version: z.ZodString;
185
+ compatibility: z.ZodObject<{
186
+ minimum: z.ZodExactOptional<z.ZodString>;
187
+ maximum: z.ZodExactOptional<z.ZodString>;
188
+ verified: z.ZodExactOptional<z.ZodString>;
189
+ }, z.core.$strip>;
190
+ relationships: z.ZodObject<{
191
+ requires: z.ZodArray<z.ZodObject<{
192
+ package: z.ZodObject<{
193
+ type: z.ZodEnum<{
194
+ module: "module";
195
+ system: "system";
196
+ world: "world";
197
+ }>;
198
+ id: z.ZodString;
199
+ }, z.core.$strip>;
200
+ compatibility: z.ZodObject<{
201
+ minimum: z.ZodExactOptional<z.ZodString>;
202
+ maximum: z.ZodExactOptional<z.ZodString>;
203
+ verified: z.ZodExactOptional<z.ZodString>;
204
+ }, z.core.$strip>;
205
+ manifest: z.ZodExactOptional<z.ZodURL>;
206
+ reason: z.ZodExactOptional<z.ZodString>;
207
+ }, z.core.$strip>>;
208
+ systems: z.ZodArray<z.ZodObject<{
209
+ package: z.ZodObject<{
210
+ type: z.ZodEnum<{
211
+ module: "module";
212
+ system: "system";
213
+ world: "world";
214
+ }>;
215
+ id: z.ZodString;
216
+ }, z.core.$strip>;
217
+ compatibility: z.ZodObject<{
218
+ minimum: z.ZodExactOptional<z.ZodString>;
219
+ maximum: z.ZodExactOptional<z.ZodString>;
220
+ verified: z.ZodExactOptional<z.ZodString>;
221
+ }, z.core.$strip>;
222
+ manifest: z.ZodExactOptional<z.ZodURL>;
223
+ reason: z.ZodExactOptional<z.ZodString>;
224
+ }, z.core.$strip>>;
225
+ conflicts: z.ZodArray<z.ZodObject<{
226
+ package: z.ZodObject<{
227
+ type: z.ZodEnum<{
228
+ module: "module";
229
+ system: "system";
230
+ world: "world";
231
+ }>;
232
+ id: z.ZodString;
233
+ }, z.core.$strip>;
234
+ compatibility: z.ZodObject<{
235
+ minimum: z.ZodExactOptional<z.ZodString>;
236
+ maximum: z.ZodExactOptional<z.ZodString>;
237
+ verified: z.ZodExactOptional<z.ZodString>;
238
+ }, z.core.$strip>;
239
+ manifest: z.ZodExactOptional<z.ZodURL>;
240
+ reason: z.ZodExactOptional<z.ZodString>;
241
+ }, z.core.$strip>>;
242
+ recommends: z.ZodArray<z.ZodObject<{
243
+ package: z.ZodObject<{
244
+ type: z.ZodEnum<{
245
+ module: "module";
246
+ system: "system";
247
+ world: "world";
248
+ }>;
249
+ id: z.ZodString;
250
+ }, z.core.$strip>;
251
+ compatibility: z.ZodObject<{
252
+ minimum: z.ZodExactOptional<z.ZodString>;
253
+ maximum: z.ZodExactOptional<z.ZodString>;
254
+ verified: z.ZodExactOptional<z.ZodString>;
255
+ }, z.core.$strip>;
256
+ manifest: z.ZodExactOptional<z.ZodURL>;
257
+ reason: z.ZodExactOptional<z.ZodString>;
258
+ }, z.core.$strip>>;
259
+ }, z.core.$strip>;
260
+ manifest: z.ZodExactOptional<z.ZodURL>;
261
+ download: z.ZodExactOptional<z.ZodURL>;
262
+ versionManifest: z.ZodExactOptional<z.ZodURL>;
263
+ protected: z.ZodBoolean;
264
+ origin: z.ZodString;
265
+ detail: z.ZodEnum<{
266
+ listed: "listed";
267
+ loaded: "loaded";
268
+ }>;
269
+ listing: z.ZodExactOptional<z.ZodObject<{
270
+ minimum: z.ZodExactOptional<z.ZodString>;
271
+ maximum: z.ZodExactOptional<z.ZodString>;
272
+ verified: z.ZodExactOptional<z.ZodString>;
273
+ }, z.core.$strip>>;
274
+ unlisted: z.ZodExactOptional<z.ZodBoolean>;
275
+ loadFailed: z.ZodExactOptional<z.ZodBoolean>;
276
+ }, z.core.$strip>>;
277
+ }, z.core.$strip>;
278
+ gaps: z.ZodArray<z.ZodObject<{
279
+ source: z.ZodString;
280
+ url: z.ZodString;
281
+ reason: z.ZodEnum<{
282
+ budget: "budget";
283
+ http: "http";
284
+ invalid: "invalid";
285
+ network: "network";
286
+ }>;
287
+ status: z.ZodExactOptional<z.ZodInt>;
288
+ package: z.ZodExactOptional<z.ZodString>;
289
+ version: z.ZodExactOptional<z.ZodString>;
290
+ }, z.core.$strip>>;
291
+ pending: z.ZodArray<z.ZodObject<{
292
+ type: z.ZodEnum<{
293
+ module: "module";
294
+ system: "system";
295
+ world: "world";
296
+ }>;
297
+ id: z.ZodString;
298
+ }, z.core.$strip>>;
299
+ asOf: z.ZodNullable<z.ZodISODateTime>;
300
+ }, z.core.$strip>;
301
+ export type UniverseResponse = z.infer<typeof UniverseResponse>;
139
302
  /** `GET /api/v1/status`: what the catalogue holds. */
140
303
  export declare const StatusResponse: z.ZodObject<{
141
304
  apiVersion: z.ZodLiteral<"v1">;
package/dist/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE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,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,sDAAsD;AACtD,eAAO,MAAM,cAAc;;;;;;iBAOzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,4FAA4F;AAC5F,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
@@ -4,6 +4,7 @@
4
4
  import { z } from 'zod';
5
5
  import { PackageRef } from './package.js';
6
6
  import { Release } from './release.js';
7
+ import { SourceGap, Universe } from './universe.js';
7
8
  /** The version of the API these schemas describe; part of every path. */
8
9
  export const API_VERSION = 'v1';
9
10
  /** The path every endpoint of this API version is under. */
@@ -24,6 +25,14 @@ export const CLIENT_HEADER = 'X-Catalogue-Client';
24
25
  export function releasesPath({ type, id }) {
25
26
  return `${API_BASE}/packages/${type}/${encodeURIComponent(id)}/releases`;
26
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.
34
+ */
35
+ export const MAX_UNIVERSE_PACKAGES = 1000;
27
36
  /** When the answer's data was last brought up to date, as an ISO 8601 time, or null if never. */
28
37
  const AsOf = z.iso.datetime().nullable();
29
38
  /** `GET /api/v1/packages/:type/:id/releases`: every release of a package the catalogue knows. */
@@ -32,6 +41,26 @@ export const ReleasesResponse = z.object({
32
41
  releases: z.array(Release),
33
42
  asOf: AsOf,
34
43
  });
44
+ /** `POST /api/v1/universe`: the packages to start from, such as those a world has enabled. */
45
+ export const UniverseRequest = z.object({
46
+ packages: z.array(PackageRef).min(1).max(MAX_UNIVERSE_PACKAGES),
47
+ });
48
+ /**
49
+ * `POST /api/v1/universe`: the packages asked for and every package their releases require or run in, as far as the
50
+ * catalogue holds them, with Foundry VTT's builds.
51
+ */
52
+ export const UniverseResponse = z.object({
53
+ universe: Universe,
54
+ /** What the catalogue's sources could not fetch or read for these packages. */
55
+ gaps: z.array(SourceGap),
56
+ /**
57
+ * Packages asked for or needed that the catalogue does not hold yet. They are queued for it to fetch; until then, a
58
+ * client finds them elsewhere, such as through EMMA's proxy.
59
+ */
60
+ pending: z.array(PackageRef),
61
+ /** The oldest time any of the packages held was brought up to date. */
62
+ asOf: AsOf,
63
+ });
35
64
  /** `GET /api/v1/status`: what the catalogue holds. */
36
65
  export const StatusResponse = z.object({
37
66
  apiVersion: z.literal(API_VERSION),
package/dist/api.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,yEAAyE;AACzE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;AAEhC,4DAA4D;AAC5D,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,WAAW,EAAE,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GA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BAA4B;AAC5B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC;IAC9B,aAAa;IACb,cAAc;IACd,WAAW;IACX,oBAAoB;IACpB,cAAc;IACd,aAAa;IACb,UAAU;CACX,CAAC,CAAC;AAGH,wCAAwC;AACxC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,SAAS;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,5 +9,5 @@ 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 { API_BASE, API_KEY_HEADER, API_VERSION, CLIENT_HEADER, ErrorCode, ErrorResponse, HealthResponse, ReleasesResponse, StatusResponse, releasesPath, } from './api.js';
12
+ export { API_BASE, API_KEY_HEADER, API_VERSION, CLIENT_HEADER, ErrorCode, ErrorResponse, HealthResponse, MAX_UNIVERSE_PACKAGES, ReleasesResponse, StatusResponse, UNIVERSE_PATH, UniverseRequest, UniverseResponse, releasesPath, } from './api.js';
13
13
  //# sourceMappingURL=index.d.ts.map
@@ -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,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,YAAY,GACb,MAAM,UAAU,CAAC"}
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,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,YAAY,GACb,MAAM,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -9,5 +9,5 @@ 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 { API_BASE, API_KEY_HEADER, API_VERSION, CLIENT_HEADER, ErrorCode, ErrorResponse, HealthResponse, ReleasesResponse, StatusResponse, releasesPath, } from './api.js';
12
+ export { API_BASE, API_KEY_HEADER, API_VERSION, CLIENT_HEADER, ErrorCode, ErrorResponse, HealthResponse, MAX_UNIVERSE_PACKAGES, ReleasesResponse, StatusResponse, UNIVERSE_PATH, UniverseRequest, UniverseResponse, releasesPath, } from './api.js';
13
13
  //# 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,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,YAAY,GACb,MAAM,UAAU,CAAC"}
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,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,SAAS,EACT,aAAa,EACb,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,YAAY,GACb,MAAM,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondarth/fvtt-package-catalogue-contract",
3
- "version": "0.0.0",
3
+ "version": "0.2.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",