keepset 0.31.0 → 0.32.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.
@@ -89,7 +89,7 @@ declare const CollectionArchiveSchema: z.ZodObject<{
89
89
  pattern: z.ZodString;
90
90
  }, z.core.$strict>]>;
91
91
  }, z.core.$strict>;
92
- /** How the downloaded bytes unpack into the file the parser reads, or for a collection the files it reads one by one. A `members` selector gives every member it matches, at least one, in path order. A workbook (`xlsx`) is read as the CSV of its named sheet, with dates as ISO 8601 text, for the `csv-table` parser. */
92
+ /** How the downloaded bytes unpack into the file the parser reads, or for a collection the files it reads one by one. A `members` selector gives every member it matches, at least one, in path order. A member that is an archive in its turn (a contest bundle that ships its problems as a zip inside the zip) is unpacked by `inner`. A workbook (`xlsx`) is read as the CSV of its named sheet, with dates as ISO 8601 text, for the `csv-table` parser. */
93
93
  declare const ArchiveSchema: z.ZodUnion<readonly [z.ZodObject<{
94
94
  kind: z.ZodLiteral<"none">;
95
95
  }, z.core.$strict>, z.ZodObject<{
@@ -107,6 +107,22 @@ declare const ArchiveSchema: z.ZodUnion<readonly [z.ZodObject<{
107
107
  }, z.core.$strict>, z.ZodObject<{
108
108
  pattern: z.ZodString;
109
109
  }, z.core.$strict>]>;
110
+ inner: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
111
+ kind: z.ZodLiteral<"gzip">;
112
+ }, z.core.$strict>, z.ZodObject<{
113
+ kind: z.ZodEnum<{
114
+ zip: "zip";
115
+ tar: "tar";
116
+ "tar.gz": "tar.gz";
117
+ }>;
118
+ member: z.ZodUnion<readonly [z.ZodObject<{
119
+ path: z.ZodString;
120
+ }, z.core.$strict>, z.ZodObject<{
121
+ extensions: z.ZodArray<z.ZodString>;
122
+ }, z.core.$strict>, z.ZodObject<{
123
+ pattern: z.ZodString;
124
+ }, z.core.$strict>]>;
125
+ }, z.core.$strict>]>>;
110
126
  }, z.core.$strict>, z.ZodObject<{
111
127
  kind: z.ZodEnum<{
112
128
  zip: "zip";
@@ -169,6 +185,19 @@ declare const ParserSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
169
185
  "utf-8": "utf-8";
170
186
  latin1: "latin1";
171
187
  }>;
188
+ }, z.core.$strict>, z.ZodObject<{
189
+ format: z.ZodLiteral<"ucinet-dl">;
190
+ encoding: z.ZodEnum<{
191
+ "utf-8": "utf-8";
192
+ latin1: "latin1";
193
+ }>;
194
+ matrix: z.ZodInt;
195
+ }, z.core.$strict>, z.ZodObject<{
196
+ format: z.ZodLiteral<"gd-contest">;
197
+ encoding: z.ZodEnum<{
198
+ "utf-8": "utf-8";
199
+ latin1: "latin1";
200
+ }>;
172
201
  }, z.core.$strict>, z.ZodObject<{
173
202
  format: z.ZodLiteral<"customer-points">;
174
203
  encoding: z.ZodEnum<{
@@ -270,6 +299,22 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
270
299
  }, z.core.$strict>, z.ZodObject<{
271
300
  pattern: z.ZodString;
272
301
  }, z.core.$strict>]>;
302
+ inner: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
303
+ kind: z.ZodLiteral<"gzip">;
304
+ }, z.core.$strict>, z.ZodObject<{
305
+ kind: z.ZodEnum<{
306
+ zip: "zip";
307
+ tar: "tar";
308
+ "tar.gz": "tar.gz";
309
+ }>;
310
+ member: z.ZodUnion<readonly [z.ZodObject<{
311
+ path: z.ZodString;
312
+ }, z.core.$strict>, z.ZodObject<{
313
+ extensions: z.ZodArray<z.ZodString>;
314
+ }, z.core.$strict>, z.ZodObject<{
315
+ pattern: z.ZodString;
316
+ }, z.core.$strict>]>;
317
+ }, z.core.$strict>]>>;
273
318
  }, z.core.$strict>, z.ZodObject<{
274
319
  kind: z.ZodEnum<{
275
320
  zip: "zip";
@@ -322,6 +367,19 @@ declare const RecipeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
322
367
  "utf-8": "utf-8";
323
368
  latin1: "latin1";
324
369
  }>;
370
+ }, z.core.$strict>, z.ZodObject<{
371
+ format: z.ZodLiteral<"ucinet-dl">;
372
+ encoding: z.ZodEnum<{
373
+ "utf-8": "utf-8";
374
+ latin1: "latin1";
375
+ }>;
376
+ matrix: z.ZodInt;
377
+ }, z.core.$strict>, z.ZodObject<{
378
+ format: z.ZodLiteral<"gd-contest">;
379
+ encoding: z.ZodEnum<{
380
+ "utf-8": "utf-8";
381
+ latin1: "latin1";
382
+ }>;
325
383
  }, z.core.$strict>, z.ZodObject<{
326
384
  format: z.ZodLiteral<"customer-points">;
327
385
  encoding: z.ZodEnum<{
@@ -478,6 +536,22 @@ declare const EntrySchema: z.ZodObject<{
478
536
  }, z.core.$strict>, z.ZodObject<{
479
537
  pattern: z.ZodString;
480
538
  }, z.core.$strict>]>;
539
+ inner: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
540
+ kind: z.ZodLiteral<"gzip">;
541
+ }, z.core.$strict>, z.ZodObject<{
542
+ kind: z.ZodEnum<{
543
+ zip: "zip";
544
+ tar: "tar";
545
+ "tar.gz": "tar.gz";
546
+ }>;
547
+ member: z.ZodUnion<readonly [z.ZodObject<{
548
+ path: z.ZodString;
549
+ }, z.core.$strict>, z.ZodObject<{
550
+ extensions: z.ZodArray<z.ZodString>;
551
+ }, z.core.$strict>, z.ZodObject<{
552
+ pattern: z.ZodString;
553
+ }, z.core.$strict>]>;
554
+ }, z.core.$strict>]>>;
481
555
  }, z.core.$strict>, z.ZodObject<{
482
556
  kind: z.ZodEnum<{
483
557
  zip: "zip";
@@ -530,6 +604,19 @@ declare const EntrySchema: z.ZodObject<{
530
604
  "utf-8": "utf-8";
531
605
  latin1: "latin1";
532
606
  }>;
607
+ }, z.core.$strict>, z.ZodObject<{
608
+ format: z.ZodLiteral<"ucinet-dl">;
609
+ encoding: z.ZodEnum<{
610
+ "utf-8": "utf-8";
611
+ latin1: "latin1";
612
+ }>;
613
+ matrix: z.ZodInt;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ format: z.ZodLiteral<"gd-contest">;
616
+ encoding: z.ZodEnum<{
617
+ "utf-8": "utf-8";
618
+ latin1: "latin1";
619
+ }>;
533
620
  }, z.core.$strict>, z.ZodObject<{
534
621
  format: z.ZodLiteral<"customer-points">;
535
622
  encoding: z.ZodEnum<{
@@ -662,6 +749,18 @@ declare const EntrySchema: z.ZodObject<{
662
749
  } | {
663
750
  pattern: string;
664
751
  };
752
+ inner?: {
753
+ kind: "gzip";
754
+ } | {
755
+ kind: "zip" | "tar" | "tar.gz";
756
+ member: {
757
+ path: string;
758
+ } | {
759
+ extensions: string[];
760
+ } | {
761
+ pattern: string;
762
+ };
763
+ } | undefined;
665
764
  } | {
666
765
  kind: "xlsx";
667
766
  sheet: string;
@@ -705,6 +804,13 @@ declare const EntrySchema: z.ZodObject<{
705
804
  } | {
706
805
  format: "pajek";
707
806
  encoding: "utf-8" | "latin1";
807
+ } | {
808
+ format: "ucinet-dl";
809
+ encoding: "utf-8" | "latin1";
810
+ matrix: number;
811
+ } | {
812
+ format: "gd-contest";
813
+ encoding: "utf-8" | "latin1";
708
814
  } | {
709
815
  format: "customer-points";
710
816
  encoding: "utf-8" | "latin1";
@@ -922,6 +1028,22 @@ declare const CatalogueIndexSchema: z.ZodObject<{
922
1028
  }, z.core.$strict>, z.ZodObject<{
923
1029
  pattern: z.ZodString;
924
1030
  }, z.core.$strict>]>;
1031
+ inner: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1032
+ kind: z.ZodLiteral<"gzip">;
1033
+ }, z.core.$strict>, z.ZodObject<{
1034
+ kind: z.ZodEnum<{
1035
+ zip: "zip";
1036
+ tar: "tar";
1037
+ "tar.gz": "tar.gz";
1038
+ }>;
1039
+ member: z.ZodUnion<readonly [z.ZodObject<{
1040
+ path: z.ZodString;
1041
+ }, z.core.$strict>, z.ZodObject<{
1042
+ extensions: z.ZodArray<z.ZodString>;
1043
+ }, z.core.$strict>, z.ZodObject<{
1044
+ pattern: z.ZodString;
1045
+ }, z.core.$strict>]>;
1046
+ }, z.core.$strict>]>>;
925
1047
  }, z.core.$strict>, z.ZodObject<{
926
1048
  kind: z.ZodEnum<{
927
1049
  zip: "zip";
@@ -974,6 +1096,19 @@ declare const CatalogueIndexSchema: z.ZodObject<{
974
1096
  "utf-8": "utf-8";
975
1097
  latin1: "latin1";
976
1098
  }>;
1099
+ }, z.core.$strict>, z.ZodObject<{
1100
+ format: z.ZodLiteral<"ucinet-dl">;
1101
+ encoding: z.ZodEnum<{
1102
+ "utf-8": "utf-8";
1103
+ latin1: "latin1";
1104
+ }>;
1105
+ matrix: z.ZodInt;
1106
+ }, z.core.$strict>, z.ZodObject<{
1107
+ format: z.ZodLiteral<"gd-contest">;
1108
+ encoding: z.ZodEnum<{
1109
+ "utf-8": "utf-8";
1110
+ latin1: "latin1";
1111
+ }>;
977
1112
  }, z.core.$strict>, z.ZodObject<{
978
1113
  format: z.ZodLiteral<"customer-points">;
979
1114
  encoding: z.ZodEnum<{
@@ -1106,6 +1241,18 @@ declare const CatalogueIndexSchema: z.ZodObject<{
1106
1241
  } | {
1107
1242
  pattern: string;
1108
1243
  };
1244
+ inner?: {
1245
+ kind: "gzip";
1246
+ } | {
1247
+ kind: "zip" | "tar" | "tar.gz";
1248
+ member: {
1249
+ path: string;
1250
+ } | {
1251
+ extensions: string[];
1252
+ } | {
1253
+ pattern: string;
1254
+ };
1255
+ } | undefined;
1109
1256
  } | {
1110
1257
  kind: "xlsx";
1111
1258
  sheet: string;
@@ -1149,6 +1296,13 @@ declare const CatalogueIndexSchema: z.ZodObject<{
1149
1296
  } | {
1150
1297
  format: "pajek";
1151
1298
  encoding: "utf-8" | "latin1";
1299
+ } | {
1300
+ format: "ucinet-dl";
1301
+ encoding: "utf-8" | "latin1";
1302
+ matrix: number;
1303
+ } | {
1304
+ format: "gd-contest";
1305
+ encoding: "utf-8" | "latin1";
1152
1306
  } | {
1153
1307
  format: "customer-points";
1154
1308
  encoding: "utf-8" | "latin1";
@@ -1270,6 +1424,18 @@ declare const CatalogueIndexSchema: z.ZodObject<{
1270
1424
  } | {
1271
1425
  pattern: string;
1272
1426
  };
1427
+ inner?: {
1428
+ kind: "gzip";
1429
+ } | {
1430
+ kind: "zip" | "tar" | "tar.gz";
1431
+ member: {
1432
+ path: string;
1433
+ } | {
1434
+ extensions: string[];
1435
+ } | {
1436
+ pattern: string;
1437
+ };
1438
+ } | undefined;
1273
1439
  } | {
1274
1440
  kind: "xlsx";
1275
1441
  sheet: string;
@@ -1313,6 +1479,13 @@ declare const CatalogueIndexSchema: z.ZodObject<{
1313
1479
  } | {
1314
1480
  format: "pajek";
1315
1481
  encoding: "utf-8" | "latin1";
1482
+ } | {
1483
+ format: "ucinet-dl";
1484
+ encoding: "utf-8" | "latin1";
1485
+ matrix: number;
1486
+ } | {
1487
+ format: "gd-contest";
1488
+ encoding: "utf-8" | "latin1";
1316
1489
  } | {
1317
1490
  format: "customer-points";
1318
1491
  encoding: "utf-8" | "latin1";
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as CrosswalkReference, A as Catalogue, B as ManifestSchema, C as JsonScalarSchema, Ct as waybackUrl, D as GraphNodeSchema, E as GraphNode, F as NamespaceNode, G as ArchiveMember, H as parseManifest, I as createCatalogue, J as Citation, K as ArchiveMemberSchema, L as Lineage, M as CatalogueIndexSchema, N as Dataset, O as GraphV1, P as DatasetQuery, Q as ColumnNameSchema, R as LineageSchema, S as JsonScalar, St as parseEntry, T as GraphEdgeSchema, U as AliasSchema, V as SemVerSchema, W as Archive, X as CollectionArchive, Y as CitationSchema, Z as CollectionArchiveSchema, _ as TasksV1, _t as SnapshotSchema, a as CategoryTargets, at as IdSchema, b as Instance, bt as SubjectSchema, c as countTarget, ct as Namespace, d as getCollectionTarget, dt as ParserSchema, et as CrosswalkReferenceSchema, f as getTarget, ft as RESERVED_META_KEYS, g as TaskSchema, gt as Snapshot, h as Task, ht as RelativePathSchema, i as CategoryTarget, it as HttpUrlSchema, j as CatalogueIndex, k as GraphV1Schema, l as countedKeys, lt as NamespaceSchema, m as listCategories, mt as RecipeSchema, n as CategoryId, nt as Entry, o as CollectionTarget, ot as Licence, p as kindOf, pt as Recipe, q as ArchiveSchema, r as CategoryIdSchema, rt as EntrySchema, s as CountedKey, st as LicenceSchema, t as Category, tt as DocumentArchive, u as getCategory, ut as Parser, v as TasksV1Schema, vt as Source, w as GraphEdge, x as collectionOf, xt as WaybackTimestampSchema, y as Collection, yt as SourceSchema, z as Manifest } from "./categories-DepJEi4o.js";
1
+ import { $ as CrosswalkReference, A as Catalogue, B as ManifestSchema, C as JsonScalarSchema, Ct as waybackUrl, D as GraphNodeSchema, E as GraphNode, F as NamespaceNode, G as ArchiveMember, H as parseManifest, I as createCatalogue, J as Citation, K as ArchiveMemberSchema, L as Lineage, M as CatalogueIndexSchema, N as Dataset, O as GraphV1, P as DatasetQuery, Q as ColumnNameSchema, R as LineageSchema, S as JsonScalar, St as parseEntry, T as GraphEdgeSchema, U as AliasSchema, V as SemVerSchema, W as Archive, X as CollectionArchive, Y as CitationSchema, Z as CollectionArchiveSchema, _ as TasksV1, _t as SnapshotSchema, a as CategoryTargets, at as IdSchema, b as Instance, bt as SubjectSchema, c as countTarget, ct as Namespace, d as getCollectionTarget, dt as ParserSchema, et as CrosswalkReferenceSchema, f as getTarget, ft as RESERVED_META_KEYS, g as TaskSchema, gt as Snapshot, h as Task, ht as RelativePathSchema, i as CategoryTarget, it as HttpUrlSchema, j as CatalogueIndex, k as GraphV1Schema, l as countedKeys, lt as NamespaceSchema, m as listCategories, mt as RecipeSchema, n as CategoryId, nt as Entry, o as CollectionTarget, ot as Licence, p as kindOf, pt as Recipe, q as ArchiveSchema, r as CategoryIdSchema, rt as EntrySchema, s as CountedKey, st as LicenceSchema, t as Category, tt as DocumentArchive, u as getCategory, ut as Parser, v as TasksV1Schema, vt as Source, w as GraphEdge, x as collectionOf, xt as WaybackTimestampSchema, y as Collection, yt as SourceSchema, z as Manifest } from "./categories-HwqAn-Lc.js";
2
2
  import { Crosswalk } from "crossmap";
3
3
  //#region src/errors.d.ts
4
4
  /** The root of this package's error taxonomy: every error keepset throws is a `KeepsetError`, so callers can catch the family with one check. */
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as ArchiveError, A as WaybackTimestampSchema, B as countedKeys, C as ParserSchema, D as SnapshotSchema, E as RelativePathSchema, F as groupsOf, G as listCategories, H as getCollectionTarget, I as namesOf, J as collectionOf, K as TaskSchema, M as toIssues, N as waybackUrl, O as SourceSchema, P as NAME_SEPARATOR, Q as JsonScalarSchema, R as CategoryIdSchema, S as NamespaceSchema, T as RecipeSchema, U as getTarget, V as getCategory, W as kindOf, X as GraphNodeSchema, Y as GraphEdgeSchema, Z as GraphV1Schema, _ as CrosswalkReferenceSchema, a as CatalogueIndexSchema, at as RecipeError, b as IdSchema, c as ManifestSchema, d as AliasSchema, et as CatalogueSyntaxError, f as ArchiveMemberSchema, g as ColumnNameSchema, h as CollectionArchiveSchema, i as listNamespaces, it as NativeParseError, j as parseEntry, k as SubjectSchema, l as SemVerSchema, m as CitationSchema, n as getManifest, nt as DatasetNotFoundError, o as createCatalogue, ot as UnknownCategoryError, p as ArchiveSchema, q as TasksV1Schema, r as listDatasets, rt as KeepsetError, s as LineageSchema, t as getDataset, tt as DatasetAmbiguousError, u as parseManifest, v as EntrySchema, w as RESERVED_META_KEYS, x as LicenceSchema, y as HttpUrlSchema, z as countTarget } from "./bundled-DV_kxyz2.js";
1
+ import { $ as ArchiveError, A as WaybackTimestampSchema, B as countedKeys, C as ParserSchema, D as SnapshotSchema, E as RelativePathSchema, F as groupsOf, G as listCategories, H as getCollectionTarget, I as namesOf, J as collectionOf, K as TaskSchema, M as toIssues, N as waybackUrl, O as SourceSchema, P as NAME_SEPARATOR, Q as JsonScalarSchema, R as CategoryIdSchema, S as NamespaceSchema, T as RecipeSchema, U as getTarget, V as getCategory, W as kindOf, X as GraphNodeSchema, Y as GraphEdgeSchema, Z as GraphV1Schema, _ as CrosswalkReferenceSchema, a as CatalogueIndexSchema, at as RecipeError, b as IdSchema, c as ManifestSchema, d as AliasSchema, et as CatalogueSyntaxError, f as ArchiveMemberSchema, g as ColumnNameSchema, h as CollectionArchiveSchema, i as listNamespaces, it as NativeParseError, j as parseEntry, k as SubjectSchema, l as SemVerSchema, m as CitationSchema, n as getManifest, nt as DatasetNotFoundError, o as createCatalogue, ot as UnknownCategoryError, p as ArchiveSchema, q as TasksV1Schema, r as listDatasets, rt as KeepsetError, s as LineageSchema, t as getDataset, tt as DatasetAmbiguousError, u as parseManifest, v as EntrySchema, w as RESERVED_META_KEYS, x as LicenceSchema, y as HttpUrlSchema, z as countTarget } from "./bundled-3xBd8sP5.js";
2
2
  import { validateCrosswalk } from "crossmap";
3
3
  //#region src/serialise.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { N as Dataset, gt as Snapshot, i as CategoryTarget, nt as Entry, o as CollectionTarget, vt as Source } from "../categories-DepJEi4o.js";
1
+ import { N as Dataset, gt as Snapshot, i as CategoryTarget, nt as Entry, o as CollectionTarget, vt as Source } from "../categories-HwqAn-Lc.js";
2
2
  //#region src/node/fetch-dataset.d.ts
3
3
  /** The network port a recipe downloads through: `downloadRaw` by default, which returns the bytes exactly as served, or a stand-in under test. */
4
4
  export type FetchPort = (url: string, init: {