@lincs.project/webannotation-schema 1.2.0 → 1.2.2

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/index.js CHANGED
@@ -32,9 +32,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
32
32
 
33
33
  // ../../node_modules/fs-extra/node_modules/universalify/index.js
34
34
  var require_universalify = __commonJS({
35
- "../../node_modules/fs-extra/node_modules/universalify/index.js"(exports) {
35
+ "../../node_modules/fs-extra/node_modules/universalify/index.js"(exports2) {
36
36
  "use strict";
37
- exports.fromCallback = function(fn) {
37
+ exports2.fromCallback = function(fn) {
38
38
  return Object.defineProperty(function() {
39
39
  if (typeof arguments[arguments.length - 1] === "function")
40
40
  fn.apply(this, arguments);
@@ -51,7 +51,7 @@ var require_universalify = __commonJS({
51
51
  }
52
52
  }, "name", { value: fn.name });
53
53
  };
54
- exports.fromPromise = function(fn) {
54
+ exports2.fromPromise = function(fn) {
55
55
  return Object.defineProperty(function() {
56
56
  const cb = arguments[arguments.length - 1];
57
57
  if (typeof cb !== "function")
@@ -65,7 +65,7 @@ var require_universalify = __commonJS({
65
65
 
66
66
  // ../../node_modules/graceful-fs/polyfills.js
67
67
  var require_polyfills = __commonJS({
68
- "../../node_modules/graceful-fs/polyfills.js"(exports, module2) {
68
+ "../../node_modules/graceful-fs/polyfills.js"(exports2, module2) {
69
69
  "use strict";
70
70
  var constants = require("constants");
71
71
  var origCwd = process.cwd;
@@ -382,7 +382,7 @@ var require_polyfills = __commonJS({
382
382
 
383
383
  // ../../node_modules/graceful-fs/legacy-streams.js
384
384
  var require_legacy_streams = __commonJS({
385
- "../../node_modules/graceful-fs/legacy-streams.js"(exports, module2) {
385
+ "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
386
386
  "use strict";
387
387
  var Stream = require("stream").Stream;
388
388
  module2.exports = legacy;
@@ -482,7 +482,7 @@ var require_legacy_streams = __commonJS({
482
482
 
483
483
  // ../../node_modules/graceful-fs/clone.js
484
484
  var require_clone = __commonJS({
485
- "../../node_modules/graceful-fs/clone.js"(exports, module2) {
485
+ "../../node_modules/graceful-fs/clone.js"(exports2, module2) {
486
486
  "use strict";
487
487
  module2.exports = clone;
488
488
  var getPrototypeOf = Object.getPrototypeOf || function(obj) {
@@ -505,7 +505,7 @@ var require_clone = __commonJS({
505
505
 
506
506
  // ../../node_modules/graceful-fs/graceful-fs.js
507
507
  var require_graceful_fs = __commonJS({
508
- "../../node_modules/graceful-fs/graceful-fs.js"(exports, module2) {
508
+ "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
509
509
  "use strict";
510
510
  var fs4 = require("fs");
511
511
  var polyfills = require_polyfills();
@@ -876,7 +876,7 @@ var require_graceful_fs = __commonJS({
876
876
 
877
877
  // ../../node_modules/fs-extra/lib/fs/index.js
878
878
  var require_fs = __commonJS({
879
- "../../node_modules/fs-extra/lib/fs/index.js"(exports) {
879
+ "../../node_modules/fs-extra/lib/fs/index.js"(exports2) {
880
880
  "use strict";
881
881
  var u = require_universalify().fromCallback;
882
882
  var fs4 = require_graceful_fs();
@@ -920,12 +920,12 @@ var require_fs = __commonJS({
920
920
  if (key === "promises") {
921
921
  return;
922
922
  }
923
- exports[key] = fs4[key];
923
+ exports2[key] = fs4[key];
924
924
  });
925
925
  api.forEach((method) => {
926
- exports[method] = u(fs4[method]);
926
+ exports2[method] = u(fs4[method]);
927
927
  });
928
- exports.exists = function(filename, callback) {
928
+ exports2.exists = function(filename, callback) {
929
929
  if (typeof callback === "function") {
930
930
  return fs4.exists(filename, callback);
931
931
  }
@@ -933,7 +933,7 @@ var require_fs = __commonJS({
933
933
  return fs4.exists(filename, resolve);
934
934
  });
935
935
  };
936
- exports.read = function(fd, buffer, offset, length, position, callback) {
936
+ exports2.read = function(fd, buffer, offset, length, position, callback) {
937
937
  if (typeof callback === "function") {
938
938
  return fs4.read(fd, buffer, offset, length, position, callback);
939
939
  }
@@ -945,7 +945,7 @@ var require_fs = __commonJS({
945
945
  });
946
946
  });
947
947
  };
948
- exports.write = function(fd, buffer, ...args) {
948
+ exports2.write = function(fd, buffer, ...args) {
949
949
  if (typeof args[args.length - 1] === "function") {
950
950
  return fs4.write(fd, buffer, ...args);
951
951
  }
@@ -962,7 +962,7 @@ var require_fs = __commonJS({
962
962
 
963
963
  // ../../node_modules/fs-extra/lib/mkdirs/win32.js
964
964
  var require_win32 = __commonJS({
965
- "../../node_modules/fs-extra/lib/mkdirs/win32.js"(exports, module2) {
965
+ "../../node_modules/fs-extra/lib/mkdirs/win32.js"(exports2, module2) {
966
966
  "use strict";
967
967
  var path4 = require("path");
968
968
  function getRootPath(p) {
@@ -986,7 +986,7 @@ var require_win32 = __commonJS({
986
986
 
987
987
  // ../../node_modules/fs-extra/lib/mkdirs/mkdirs.js
988
988
  var require_mkdirs = __commonJS({
989
- "../../node_modules/fs-extra/lib/mkdirs/mkdirs.js"(exports, module2) {
989
+ "../../node_modules/fs-extra/lib/mkdirs/mkdirs.js"(exports2, module2) {
990
990
  "use strict";
991
991
  var fs4 = require_graceful_fs();
992
992
  var path4 = require("path");
@@ -1047,7 +1047,7 @@ var require_mkdirs = __commonJS({
1047
1047
 
1048
1048
  // ../../node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js
1049
1049
  var require_mkdirs_sync = __commonJS({
1050
- "../../node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(exports, module2) {
1050
+ "../../node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js"(exports2, module2) {
1051
1051
  "use strict";
1052
1052
  var fs4 = require_graceful_fs();
1053
1053
  var path4 = require("path");
@@ -1098,7 +1098,7 @@ var require_mkdirs_sync = __commonJS({
1098
1098
 
1099
1099
  // ../../node_modules/fs-extra/lib/mkdirs/index.js
1100
1100
  var require_mkdirs2 = __commonJS({
1101
- "../../node_modules/fs-extra/lib/mkdirs/index.js"(exports, module2) {
1101
+ "../../node_modules/fs-extra/lib/mkdirs/index.js"(exports2, module2) {
1102
1102
  "use strict";
1103
1103
  var u = require_universalify().fromCallback;
1104
1104
  var mkdirs = u(require_mkdirs());
@@ -1117,7 +1117,7 @@ var require_mkdirs2 = __commonJS({
1117
1117
 
1118
1118
  // ../../node_modules/fs-extra/lib/util/utimes.js
1119
1119
  var require_utimes = __commonJS({
1120
- "../../node_modules/fs-extra/lib/util/utimes.js"(exports, module2) {
1120
+ "../../node_modules/fs-extra/lib/util/utimes.js"(exports2, module2) {
1121
1121
  "use strict";
1122
1122
  var fs4 = require_graceful_fs();
1123
1123
  var os = require("os");
@@ -1196,7 +1196,7 @@ var require_utimes = __commonJS({
1196
1196
 
1197
1197
  // ../../node_modules/fs-extra/lib/util/buffer.js
1198
1198
  var require_buffer = __commonJS({
1199
- "../../node_modules/fs-extra/lib/util/buffer.js"(exports, module2) {
1199
+ "../../node_modules/fs-extra/lib/util/buffer.js"(exports2, module2) {
1200
1200
  "use strict";
1201
1201
  module2.exports = function(size) {
1202
1202
  if (typeof Buffer.allocUnsafe === "function") {
@@ -1213,7 +1213,7 @@ var require_buffer = __commonJS({
1213
1213
 
1214
1214
  // ../../node_modules/fs-extra/lib/copy-sync/copy-sync.js
1215
1215
  var require_copy_sync = __commonJS({
1216
- "../../node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports, module2) {
1216
+ "../../node_modules/fs-extra/lib/copy-sync/copy-sync.js"(exports2, module2) {
1217
1217
  "use strict";
1218
1218
  var fs4 = require_graceful_fs();
1219
1219
  var path4 = require("path");
@@ -1382,7 +1382,7 @@ var require_copy_sync = __commonJS({
1382
1382
 
1383
1383
  // ../../node_modules/fs-extra/lib/copy-sync/index.js
1384
1384
  var require_copy_sync2 = __commonJS({
1385
- "../../node_modules/fs-extra/lib/copy-sync/index.js"(exports, module2) {
1385
+ "../../node_modules/fs-extra/lib/copy-sync/index.js"(exports2, module2) {
1386
1386
  "use strict";
1387
1387
  module2.exports = {
1388
1388
  copySync: require_copy_sync()
@@ -1392,7 +1392,7 @@ var require_copy_sync2 = __commonJS({
1392
1392
 
1393
1393
  // ../../node_modules/fs-extra/lib/path-exists/index.js
1394
1394
  var require_path_exists = __commonJS({
1395
- "../../node_modules/fs-extra/lib/path-exists/index.js"(exports, module2) {
1395
+ "../../node_modules/fs-extra/lib/path-exists/index.js"(exports2, module2) {
1396
1396
  "use strict";
1397
1397
  var u = require_universalify().fromPromise;
1398
1398
  var fs4 = require_fs();
@@ -1408,7 +1408,7 @@ var require_path_exists = __commonJS({
1408
1408
 
1409
1409
  // ../../node_modules/fs-extra/lib/copy/copy.js
1410
1410
  var require_copy = __commonJS({
1411
- "../../node_modules/fs-extra/lib/copy/copy.js"(exports, module2) {
1411
+ "../../node_modules/fs-extra/lib/copy/copy.js"(exports2, module2) {
1412
1412
  "use strict";
1413
1413
  var fs4 = require_graceful_fs();
1414
1414
  var path4 = require("path");
@@ -1648,7 +1648,7 @@ var require_copy = __commonJS({
1648
1648
 
1649
1649
  // ../../node_modules/fs-extra/lib/copy/index.js
1650
1650
  var require_copy2 = __commonJS({
1651
- "../../node_modules/fs-extra/lib/copy/index.js"(exports, module2) {
1651
+ "../../node_modules/fs-extra/lib/copy/index.js"(exports2, module2) {
1652
1652
  "use strict";
1653
1653
  var u = require_universalify().fromCallback;
1654
1654
  module2.exports = {
@@ -1659,7 +1659,7 @@ var require_copy2 = __commonJS({
1659
1659
 
1660
1660
  // ../../node_modules/fs-extra/lib/remove/rimraf.js
1661
1661
  var require_rimraf = __commonJS({
1662
- "../../node_modules/fs-extra/lib/remove/rimraf.js"(exports, module2) {
1662
+ "../../node_modules/fs-extra/lib/remove/rimraf.js"(exports2, module2) {
1663
1663
  "use strict";
1664
1664
  var fs4 = require_graceful_fs();
1665
1665
  var path4 = require("path");
@@ -1910,7 +1910,7 @@ var require_rimraf = __commonJS({
1910
1910
 
1911
1911
  // ../../node_modules/fs-extra/lib/remove/index.js
1912
1912
  var require_remove = __commonJS({
1913
- "../../node_modules/fs-extra/lib/remove/index.js"(exports, module2) {
1913
+ "../../node_modules/fs-extra/lib/remove/index.js"(exports2, module2) {
1914
1914
  "use strict";
1915
1915
  var u = require_universalify().fromCallback;
1916
1916
  var rimraf = require_rimraf();
@@ -1923,7 +1923,7 @@ var require_remove = __commonJS({
1923
1923
 
1924
1924
  // ../../node_modules/fs-extra/lib/empty/index.js
1925
1925
  var require_empty = __commonJS({
1926
- "../../node_modules/fs-extra/lib/empty/index.js"(exports, module2) {
1926
+ "../../node_modules/fs-extra/lib/empty/index.js"(exports2, module2) {
1927
1927
  "use strict";
1928
1928
  var u = require_universalify().fromCallback;
1929
1929
  var fs4 = require("fs");
@@ -1973,7 +1973,7 @@ var require_empty = __commonJS({
1973
1973
 
1974
1974
  // ../../node_modules/fs-extra/lib/ensure/file.js
1975
1975
  var require_file = __commonJS({
1976
- "../../node_modules/fs-extra/lib/ensure/file.js"(exports, module2) {
1976
+ "../../node_modules/fs-extra/lib/ensure/file.js"(exports2, module2) {
1977
1977
  "use strict";
1978
1978
  var u = require_universalify().fromCallback;
1979
1979
  var path4 = require("path");
@@ -2028,7 +2028,7 @@ var require_file = __commonJS({
2028
2028
 
2029
2029
  // ../../node_modules/fs-extra/lib/ensure/link.js
2030
2030
  var require_link = __commonJS({
2031
- "../../node_modules/fs-extra/lib/ensure/link.js"(exports, module2) {
2031
+ "../../node_modules/fs-extra/lib/ensure/link.js"(exports2, module2) {
2032
2032
  "use strict";
2033
2033
  var u = require_universalify().fromCallback;
2034
2034
  var path4 = require("path");
@@ -2094,7 +2094,7 @@ var require_link = __commonJS({
2094
2094
 
2095
2095
  // ../../node_modules/fs-extra/lib/ensure/symlink-paths.js
2096
2096
  var require_symlink_paths = __commonJS({
2097
- "../../node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports, module2) {
2097
+ "../../node_modules/fs-extra/lib/ensure/symlink-paths.js"(exports2, module2) {
2098
2098
  "use strict";
2099
2099
  var path4 = require("path");
2100
2100
  var fs4 = require_graceful_fs();
@@ -2176,7 +2176,7 @@ var require_symlink_paths = __commonJS({
2176
2176
 
2177
2177
  // ../../node_modules/fs-extra/lib/ensure/symlink-type.js
2178
2178
  var require_symlink_type = __commonJS({
2179
- "../../node_modules/fs-extra/lib/ensure/symlink-type.js"(exports, module2) {
2179
+ "../../node_modules/fs-extra/lib/ensure/symlink-type.js"(exports2, module2) {
2180
2180
  "use strict";
2181
2181
  var fs4 = require_graceful_fs();
2182
2182
  function symlinkType(srcpath, type, callback) {
@@ -2211,7 +2211,7 @@ var require_symlink_type = __commonJS({
2211
2211
 
2212
2212
  // ../../node_modules/fs-extra/lib/ensure/symlink.js
2213
2213
  var require_symlink = __commonJS({
2214
- "../../node_modules/fs-extra/lib/ensure/symlink.js"(exports, module2) {
2214
+ "../../node_modules/fs-extra/lib/ensure/symlink.js"(exports2, module2) {
2215
2215
  "use strict";
2216
2216
  var u = require_universalify().fromCallback;
2217
2217
  var path4 = require("path");
@@ -2280,7 +2280,7 @@ var require_symlink = __commonJS({
2280
2280
 
2281
2281
  // ../../node_modules/fs-extra/lib/ensure/index.js
2282
2282
  var require_ensure = __commonJS({
2283
- "../../node_modules/fs-extra/lib/ensure/index.js"(exports, module2) {
2283
+ "../../node_modules/fs-extra/lib/ensure/index.js"(exports2, module2) {
2284
2284
  "use strict";
2285
2285
  var file = require_file();
2286
2286
  var link2 = require_link();
@@ -2307,7 +2307,7 @@ var require_ensure = __commonJS({
2307
2307
 
2308
2308
  // ../../node_modules/fs-extra/node_modules/jsonfile/index.js
2309
2309
  var require_jsonfile = __commonJS({
2310
- "../../node_modules/fs-extra/node_modules/jsonfile/index.js"(exports, module2) {
2310
+ "../../node_modules/fs-extra/node_modules/jsonfile/index.js"(exports2, module2) {
2311
2311
  "use strict";
2312
2312
  var _fs;
2313
2313
  try {
@@ -2425,7 +2425,7 @@ var require_jsonfile = __commonJS({
2425
2425
 
2426
2426
  // ../../node_modules/fs-extra/lib/json/jsonfile.js
2427
2427
  var require_jsonfile2 = __commonJS({
2428
- "../../node_modules/fs-extra/lib/json/jsonfile.js"(exports, module2) {
2428
+ "../../node_modules/fs-extra/lib/json/jsonfile.js"(exports2, module2) {
2429
2429
  "use strict";
2430
2430
  var u = require_universalify().fromCallback;
2431
2431
  var jsonFile = require_jsonfile();
@@ -2441,7 +2441,7 @@ var require_jsonfile2 = __commonJS({
2441
2441
 
2442
2442
  // ../../node_modules/fs-extra/lib/json/output-json.js
2443
2443
  var require_output_json = __commonJS({
2444
- "../../node_modules/fs-extra/lib/json/output-json.js"(exports, module2) {
2444
+ "../../node_modules/fs-extra/lib/json/output-json.js"(exports2, module2) {
2445
2445
  "use strict";
2446
2446
  var path4 = require("path");
2447
2447
  var mkdir = require_mkdirs2();
@@ -2471,7 +2471,7 @@ var require_output_json = __commonJS({
2471
2471
 
2472
2472
  // ../../node_modules/fs-extra/lib/json/output-json-sync.js
2473
2473
  var require_output_json_sync = __commonJS({
2474
- "../../node_modules/fs-extra/lib/json/output-json-sync.js"(exports, module2) {
2474
+ "../../node_modules/fs-extra/lib/json/output-json-sync.js"(exports2, module2) {
2475
2475
  "use strict";
2476
2476
  var fs4 = require_graceful_fs();
2477
2477
  var path4 = require("path");
@@ -2490,7 +2490,7 @@ var require_output_json_sync = __commonJS({
2490
2490
 
2491
2491
  // ../../node_modules/fs-extra/lib/json/index.js
2492
2492
  var require_json = __commonJS({
2493
- "../../node_modules/fs-extra/lib/json/index.js"(exports, module2) {
2493
+ "../../node_modules/fs-extra/lib/json/index.js"(exports2, module2) {
2494
2494
  "use strict";
2495
2495
  var u = require_universalify().fromCallback;
2496
2496
  var jsonFile = require_jsonfile2();
@@ -2508,7 +2508,7 @@ var require_json = __commonJS({
2508
2508
 
2509
2509
  // ../../node_modules/fs-extra/lib/move-sync/index.js
2510
2510
  var require_move_sync = __commonJS({
2511
- "../../node_modules/fs-extra/lib/move-sync/index.js"(exports, module2) {
2511
+ "../../node_modules/fs-extra/lib/move-sync/index.js"(exports2, module2) {
2512
2512
  "use strict";
2513
2513
  var fs4 = require_graceful_fs();
2514
2514
  var path4 = require("path");
@@ -2609,7 +2609,7 @@ var require_move_sync = __commonJS({
2609
2609
 
2610
2610
  // ../../node_modules/fs-extra/lib/move/index.js
2611
2611
  var require_move = __commonJS({
2612
- "../../node_modules/fs-extra/lib/move/index.js"(exports, module2) {
2612
+ "../../node_modules/fs-extra/lib/move/index.js"(exports2, module2) {
2613
2613
  "use strict";
2614
2614
  var u = require_universalify().fromCallback;
2615
2615
  var fs4 = require_graceful_fs();
@@ -2692,7 +2692,7 @@ var require_move = __commonJS({
2692
2692
 
2693
2693
  // ../../node_modules/fs-extra/lib/output/index.js
2694
2694
  var require_output = __commonJS({
2695
- "../../node_modules/fs-extra/lib/output/index.js"(exports, module2) {
2695
+ "../../node_modules/fs-extra/lib/output/index.js"(exports2, module2) {
2696
2696
  "use strict";
2697
2697
  var u = require_universalify().fromCallback;
2698
2698
  var fs4 = require_graceful_fs();
@@ -2734,7 +2734,7 @@ var require_output = __commonJS({
2734
2734
 
2735
2735
  // ../../node_modules/fs-extra/lib/index.js
2736
2736
  var require_lib = __commonJS({
2737
- "../../node_modules/fs-extra/lib/index.js"(exports, module2) {
2737
+ "../../node_modules/fs-extra/lib/index.js"(exports2, module2) {
2738
2738
  "use strict";
2739
2739
  module2.exports = Object.assign(
2740
2740
  {},
@@ -2768,35 +2768,122 @@ var require_lib = __commonJS({
2768
2768
  var src_exports = {};
2769
2769
  __export(src_exports, {
2770
2770
  Body: () => Body,
2771
+ BodyChoice: () => BodyChoice,
2772
+ BodyEntityType: () => BodyEntityType,
2773
+ Certainty: () => Certainty,
2774
+ Citation: () => Citation,
2775
+ CitationEntityType: () => CitationEntityType,
2776
+ ConceptualObject: () => ConceptualObject,
2777
+ ConceptualObjectEntityType: () => ConceptualObjectEntityType,
2778
+ Correction: () => Correction,
2779
+ CorrectionEntityType: () => CorrectionEntityType,
2771
2780
  DATE_RANGE_PATTERN: () => DATE_RANGE_PATTERN,
2781
+ Date: () => Date2,
2782
+ DateEntityType: () => DateEntityType,
2783
+ Description: () => Description,
2784
+ Event: () => Event,
2785
+ EventEntityType: () => EventEntityType,
2786
+ Keyword: () => Keyword,
2787
+ KeywordEntityType: () => KeywordEntityType,
2788
+ KeywordFolksnomy: () => KeywordFolksnomy,
2789
+ KeywordFolksnomyEntityType: () => KeywordFolksnomyEntityType,
2790
+ Label: () => Label,
2791
+ Link: () => Link,
2792
+ LinkEntityType: () => LinkEntityType,
2772
2793
  Motivation: () => Motivation,
2794
+ Note: () => Note,
2795
+ NoteEntityType: () => NoteEntityType,
2796
+ Organization: () => Organization,
2797
+ OrganizationEntityType: () => OrganizationEntityType,
2773
2798
  Person: () => Person,
2774
2799
  PersonEntityType: () => PersonEntityType,
2800
+ PhysicalThing: () => PhysicalThing,
2801
+ PhysicalThingEntityType: () => PhysicalThingEntityType,
2802
+ Place: () => Place,
2803
+ PlaceEntityType: () => PlaceEntityType,
2804
+ Precision: () => Precision,
2805
+ Quality: () => Quality,
2806
+ RangeSelector: () => RangeSelector,
2807
+ Selector: () => Selector,
2775
2808
  Software: () => Software,
2809
+ Source: () => Source,
2776
2810
  Status: () => Status,
2777
2811
  Target: () => Target,
2812
+ TextPositionSelector: () => TextPositionSelector,
2813
+ TextPositionSelectorExtended: () => TextPositionSelectorExtended,
2814
+ TextQuoteSelector: () => TextQuoteSelector,
2815
+ TextQuoteSelectorExtended: () => TextQuoteSelectorExtended,
2778
2816
  User: () => User,
2779
2817
  VERSION: () => VERSION,
2780
2818
  ValidateResult: () => ValidateResult,
2781
2819
  ValidationError: () => ValidationError,
2782
2820
  WebAnnotation: () => WebAnnotation,
2821
+ Work: () => Work,
2822
+ WorkEntityType: () => WorkEntityType,
2823
+ XpathSelector: () => XpathSelector,
2824
+ XpathSelectorExtended: () => XpathSelectorExtended,
2783
2825
  ajv: () => ajv,
2826
+ bodyChoiceSchema: () => bodyChoiceSchema,
2827
+ bodyEntityTypeSchema: () => bodyEntityTypeSchema,
2784
2828
  bodyIdDescription: () => bodyIdDescription,
2785
2829
  bodySchema: () => bodySchema,
2830
+ certaintySchema: () => certaintySchema,
2831
+ citationEntityTypeSchema: () => citationEntityTypeSchema,
2832
+ citationSchema: () => citationSchema,
2833
+ conceptualObjectEntityTypeSchema: () => conceptualObjectEntityTypeSchema,
2834
+ conceptualObjectSchema: () => conceptualObjectSchema,
2786
2835
  contextUri: () => contextUri,
2836
+ correctionEntityTypeSchema: () => correctionEntityTypeSchema,
2837
+ correctionSchema: () => correctionSchema,
2787
2838
  creatorSchema: () => creatorSchema,
2839
+ dateEntityTypeSchema: () => dateEntityTypeSchema,
2840
+ dateSchema: () => dateSchema,
2788
2841
  definitionSchema: () => definitionSchema,
2789
2842
  defsId: () => defsId,
2843
+ descriptionSchema: () => descriptionSchema,
2844
+ eventEntityTypeSchema: () => eventEntityTypeSchema,
2845
+ eventSchema: () => eventSchema,
2846
+ formatSchema: () => formatSchema,
2847
+ keywordEntityTypeSchema: () => keywordEntityTypeSchema,
2848
+ keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
2849
+ keywordFolksnomySchema: () => keywordFolksnomySchema,
2850
+ keywordSchema: () => keywordSchema,
2851
+ labelSchema: () => labelSchema,
2852
+ languageSchema: () => languageSchema,
2853
+ linkEntityTypeSchema: () => linkEntityTypeSchema,
2854
+ linkSchema: () => linkSchema,
2855
+ noteEntityTypeSchema: () => noteEntityTypeSchema,
2856
+ noteSchema: () => noteSchema,
2857
+ organizationEntityTypeSchema: () => organizationEntityTypeSchema,
2858
+ organizationSchema: () => organizationSchema,
2790
2859
  personEntityTypeSchema: () => personEntityTypeSchema,
2791
2860
  personSchema: () => personSchema,
2861
+ physicalThingEntityTypeSchema: () => physicalThingEntityTypeSchema,
2862
+ physicalThingSchema: () => physicalThingSchema,
2863
+ placeEntityTypeSchema: () => placeEntityTypeSchema,
2864
+ placeSchema: () => placeSchema,
2865
+ precisionSchema: () => precisionSchema,
2866
+ rangeSelectorSchema: () => rangeSelectorSchema,
2792
2867
  schemaContext: () => schemaContext,
2793
2868
  schemaId: () => schemaId,
2869
+ selectorIdDescription: () => selectorIdDescription,
2870
+ selectorRefinedByDescription: () => selectorRefinedByDescription,
2871
+ selectorSchema: () => selectorSchema,
2794
2872
  softwareSchema: () => softwareSchema,
2873
+ sourceSchema: () => sourceSchema,
2795
2874
  targetSchema: () => targetSchema,
2875
+ textPositionSelectorExtendedSchema: () => textPositionSelectorExtendedSchema,
2876
+ textPositionSelectorSchema: () => textPositionSelectorSchema,
2877
+ textQuoteSelectorExtendedSchema: () => textQuoteSelectorExtendedSchema,
2878
+ textQuoteSelectorSchema: () => textQuoteSelectorSchema,
2796
2879
  v1: () => v1_exports,
2797
2880
  validate: () => validate,
2798
2881
  validator: () => validator,
2799
- webAnnotationSchema: () => webAnnotationSchema
2882
+ webAnnotationSchema: () => webAnnotationSchema,
2883
+ workEntityTypeSchema: () => workEntityTypeSchema,
2884
+ workSchema: () => workSchema,
2885
+ xpathSelectorExtendedSchema: () => xpathSelectorExtendedSchema,
2886
+ xpathSelectorSchema: () => xpathSelectorSchema
2800
2887
  });
2801
2888
  module.exports = __toCommonJS(src_exports);
2802
2889
 
@@ -2896,7 +2983,7 @@ var softwareSchema = {
2896
2983
  };
2897
2984
 
2898
2985
  // src/v1/schema/definitions/body/index.ts
2899
- var import_zod16 = require("zod");
2986
+ var import_zod17 = require("zod");
2900
2987
 
2901
2988
  // src/v1/schema/definitions/body/citation.ts
2902
2989
  var import_zod3 = require("zod");
@@ -2958,6 +3045,18 @@ var citationEntityTypeSchema = {
2958
3045
  { type: "string", const: "crm:E73_Information_Object" }
2959
3046
  ]
2960
3047
  };
3048
+ var citationSchema = {
3049
+ type: "object",
3050
+ description: "A citation entity",
3051
+ properties: {
3052
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3053
+ entityType: citationEntityTypeSchema,
3054
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3055
+ label: { $ref: "defs.jsonld#/definitions/label" },
3056
+ description: { $ref: "defs.jsonld#/definitions/description" }
3057
+ },
3058
+ required: ["id", "entityType"]
3059
+ };
2961
3060
 
2962
3061
  // src/v1/schema/definitions/body/conceptualObject.ts
2963
3062
  var import_zod4 = require("zod");
@@ -2989,6 +3088,18 @@ var conceptualObjectEntityTypeSchema = {
2989
3088
  }
2990
3089
  ]
2991
3090
  };
3091
+ var conceptualObjectSchema = {
3092
+ type: "object",
3093
+ description: "A conceptual object entity",
3094
+ properties: {
3095
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3096
+ entityType: conceptualObjectEntityTypeSchema,
3097
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3098
+ label: { $ref: "defs.jsonld#/definitions/label" },
3099
+ description: { $ref: "defs.jsonld#/definitions/description" }
3100
+ },
3101
+ required: ["id", "entityType"]
3102
+ };
2992
3103
 
2993
3104
  // src/v1/schema/definitions/body/correction.ts
2994
3105
  var import_zod5 = require("zod");
@@ -3011,9 +3122,26 @@ var correctionEntityTypeSchema = {
3011
3122
  { type: "string", const: "crm:E33_Linguistic_Object" }
3012
3123
  ]
3013
3124
  };
3125
+ var correctionSchema = {
3126
+ type: "object",
3127
+ description: "A correction entity",
3128
+ properties: {
3129
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3130
+ type: { type: "string", const: "TextualBody" },
3131
+ entityType: correctionEntityTypeSchema,
3132
+ value: { type: "string" }
3133
+ },
3134
+ required: ["id", "type", "entityType", "value"]
3135
+ // errorMessage: {
3136
+ // properties: {
3137
+ // type: 'must be exacty "TextualBody"',
3138
+ // },
3139
+ // },
3140
+ };
3014
3141
 
3015
3142
  // src/v1/schema/definitions/body/date.ts
3016
3143
  var import_zod6 = require("zod");
3144
+ var DATE_RANGE_PATTERN = "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$";
3017
3145
  var DateEntityType = import_zod6.z.tuple([import_zod6.z.literal("xsd:date"), import_zod6.z.literal("crm:E52_Time-Span")]);
3018
3146
  var Date2 = import_zod6.z.object({
3019
3147
  id: import_zod6.z.string().url().describe(bodyIdDescription),
@@ -3032,12 +3160,33 @@ var dateEntityTypeSchema = {
3032
3160
  { type: "string", const: "crm:E52_Time-Span" }
3033
3161
  ]
3034
3162
  };
3163
+ var dateSchema = {
3164
+ type: "object",
3165
+ description: "A date entity",
3166
+ properties: {
3167
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3168
+ type: { type: "string", const: "TextualBody" },
3169
+ entityType: dateEntityTypeSchema,
3170
+ value: { type: "string", pattern: DATE_RANGE_PATTERN },
3171
+ certainty: { type: "string", $ref: "defs.jsonld#/definitions/certainty" },
3172
+ precision: { type: "string", $ref: "defs.jsonld#/definitions/precision" }
3173
+ },
3174
+ required: ["id", "type", "entityType", "value"]
3175
+ // errorMessage: {
3176
+ // properties: {
3177
+ // type: 'must be exacty "TextualBody"',
3178
+ // },
3179
+ // },
3180
+ };
3035
3181
 
3036
3182
  // src/v1/schema/definitions/body/event.ts
3037
3183
  var import_zod7 = require("zod");
3038
- var EventEntityType = import_zod7.z.union([
3039
- import_zod7.z.literal("crm:E5_Event"),
3040
- import_zod7.z.literal("YET TO BE DEFINED A CLASS FOR FICTIONAL EVENTS")
3184
+ var EventEntityType = import_zod7.z.tuple([
3185
+ import_zod7.z.literal("YET TO BE DEFINED EVENT CLASS"),
3186
+ import_zod7.z.union([
3187
+ import_zod7.z.literal("crm:E5_Event").describe("Real Event"),
3188
+ import_zod7.z.literal("crm:E89_Propositional_Object").describe("Fictional Event")
3189
+ ])
3041
3190
  ]);
3042
3191
  var Event = import_zod7.z.object({
3043
3192
  id: import_zod7.z.string().url().describe(bodyIdDescription),
@@ -3045,17 +3194,33 @@ var Event = import_zod7.z.object({
3045
3194
  certainty: Certainty.optional(),
3046
3195
  label: Label.optional(),
3047
3196
  description: Description.optional()
3048
- }).describe("Organization");
3197
+ }).describe("Event");
3049
3198
  var eventEntityTypeSchema = {
3050
- oneOf: [
3051
- { type: "string", const: "crm:E5_Event", description: "Real Event" },
3199
+ type: "array",
3200
+ minItems: 2,
3201
+ maxItems: 2,
3202
+ items: [
3203
+ { type: "string", const: "YET TO BE DEFINED EVENT CLASS" },
3052
3204
  {
3053
- type: "string",
3054
- const: "YET TO BE DEFINED A CLASS FOR FICTIONAL EVENTS",
3055
- description: "Fictional Event"
3205
+ oneOf: [
3206
+ { type: "string", const: "crm:E5_Event", description: "Real Event" },
3207
+ { type: "string", const: "crm:E89_Propositional_Object", description: "Fictional Event" }
3208
+ ]
3056
3209
  }
3057
3210
  ]
3058
3211
  };
3212
+ var eventSchema = {
3213
+ type: "object",
3214
+ description: "An event entity",
3215
+ properties: {
3216
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3217
+ entityType: eventEntityTypeSchema,
3218
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3219
+ label: { $ref: "defs.jsonld#/definitions/label" },
3220
+ description: { $ref: "defs.jsonld#/definitions/description" }
3221
+ },
3222
+ required: ["id", "entityType"]
3223
+ };
3059
3224
 
3060
3225
  // src/v1/schema/definitions/body/keyword.ts
3061
3226
  var import_zod8 = require("zod");
@@ -3079,6 +3244,18 @@ var keywordEntityTypeSchema = {
3079
3244
  { type: "string", const: "crmdig:D1_Digital_Object" }
3080
3245
  ]
3081
3246
  };
3247
+ var keywordSchema = {
3248
+ type: "object",
3249
+ description: "A keyword entity",
3250
+ properties: {
3251
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3252
+ entityType: keywordEntityTypeSchema,
3253
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3254
+ label: { $ref: "defs.jsonld#/definitions/label" },
3255
+ description: { $ref: "defs.jsonld#/definitions/description" }
3256
+ },
3257
+ required: ["id", "entityType"]
3258
+ };
3082
3259
  var KeywordFolksnomyEntityType = import_zod8.z.tuple([
3083
3260
  import_zod8.z.literal("crm:E55_Type"),
3084
3261
  import_zod8.z.literal("crm:E33_Linguistic_Object")
@@ -3098,6 +3275,22 @@ var keywordFolksnomyEntityTypeSchema = {
3098
3275
  { type: "string", const: "crm:E33_Linguistic_Object" }
3099
3276
  ]
3100
3277
  };
3278
+ var keywordFolksnomySchema = {
3279
+ type: "object",
3280
+ description: "A keyword entity",
3281
+ properties: {
3282
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3283
+ type: { type: "string", const: "TextualBody" },
3284
+ entityType: keywordFolksnomyEntityTypeSchema,
3285
+ value: { type: "string" }
3286
+ },
3287
+ required: ["id", "type", "entityType", "value"]
3288
+ // errorMessage: {
3289
+ // properties: {
3290
+ // type: 'must be exacty "TextualBody"',
3291
+ // },
3292
+ // },
3293
+ };
3101
3294
 
3102
3295
  // src/v1/schema/definitions/body/link.ts
3103
3296
  var import_zod9 = require("zod");
@@ -3112,6 +3305,16 @@ var linkEntityTypeSchema = {
3112
3305
  type: "string",
3113
3306
  const: "crmdig:D1_Digital_Object"
3114
3307
  };
3308
+ var linkSchema = {
3309
+ type: "object",
3310
+ description: "A link entity",
3311
+ properties: {
3312
+ id: { type: "string", format: "uri", description: idDescription },
3313
+ entityType: linkEntityTypeSchema,
3314
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" }
3315
+ },
3316
+ required: ["id", "entityType"]
3317
+ };
3115
3318
 
3116
3319
  // src/v1/schema/definitions/body/note.ts
3117
3320
  var import_zod10 = require("zod");
@@ -3127,6 +3330,25 @@ var noteEntityTypeSchema = {
3127
3330
  type: "string",
3128
3331
  const: "crm:E33_Linguistic_Object"
3129
3332
  };
3333
+ var noteSchema = {
3334
+ type: "object",
3335
+ description: "A note entity",
3336
+ properties: {
3337
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3338
+ type: { type: "string", const: "TextualBody" },
3339
+ entityType: noteEntityTypeSchema,
3340
+ additionalType: {
3341
+ oneOf: [{ type: "string" }, { type: "array", items: { type: "string" } }]
3342
+ },
3343
+ value: { type: "string" }
3344
+ },
3345
+ required: ["id", "type", "entityType", "value"]
3346
+ // errorMessage: {
3347
+ // properties: {
3348
+ // type: 'must be exacty "TextualBody"',
3349
+ // },
3350
+ // },
3351
+ };
3130
3352
 
3131
3353
  // src/v1/schema/definitions/body/organization.ts
3132
3354
  var import_zod11 = require("zod");
@@ -3162,6 +3384,18 @@ var organizationEntityTypeSchema = {
3162
3384
  }
3163
3385
  ]
3164
3386
  };
3387
+ var organizationSchema = {
3388
+ type: "object",
3389
+ description: "A organization entity",
3390
+ properties: {
3391
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3392
+ entityType: organizationEntityTypeSchema,
3393
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3394
+ label: { $ref: "defs.jsonld#/definitions/label" },
3395
+ description: { $ref: "defs.jsonld#/definitions/description" }
3396
+ },
3397
+ required: ["id", "entityType"]
3398
+ };
3165
3399
 
3166
3400
  // src/v1/schema/definitions/body/person.ts
3167
3401
  var import_zod12 = require("zod");
@@ -3236,6 +3470,18 @@ var physicalThingEntityTypeSchema = {
3236
3470
  }
3237
3471
  ]
3238
3472
  };
3473
+ var physicalThingSchema = {
3474
+ type: "object",
3475
+ description: "A physical thing entity",
3476
+ properties: {
3477
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3478
+ entityType: physicalThingEntityTypeSchema,
3479
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3480
+ label: { $ref: "defs.jsonld#/definitions/label" },
3481
+ description: { $ref: "defs.jsonld#/definitions/description" }
3482
+ },
3483
+ required: ["id", "entityType"]
3484
+ };
3239
3485
 
3240
3486
  // src/v1/schema/definitions/body/place.ts
3241
3487
  var import_zod14 = require("zod");
@@ -3268,6 +3514,19 @@ var placeEntityTypeSchema = {
3268
3514
  }
3269
3515
  ]
3270
3516
  };
3517
+ var placeSchema = {
3518
+ type: "object",
3519
+ description: "A place entity",
3520
+ properties: {
3521
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3522
+ entityType: placeEntityTypeSchema,
3523
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3524
+ precision: { $ref: "defs.jsonld#/definitions/precision" },
3525
+ label: { $ref: "defs.jsonld#/definitions/label" },
3526
+ description: { $ref: "defs.jsonld#/definitions/description" }
3527
+ },
3528
+ required: ["id", "entityType"]
3529
+ };
3271
3530
 
3272
3531
  // src/v1/schema/definitions/body/work.ts
3273
3532
  var import_zod15 = require("zod");
@@ -3299,42 +3558,35 @@ var workEntityTypeSchema = {
3299
3558
  }
3300
3559
  ]
3301
3560
  };
3561
+ var workSchema = {
3562
+ type: "object",
3563
+ description: "A work entity",
3564
+ properties: {
3565
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3566
+ entityType: workEntityTypeSchema,
3567
+ certainty: { $ref: "defs.jsonld#/definitions/certainty" },
3568
+ label: { $ref: "defs.jsonld#/definitions/label" },
3569
+ description: { $ref: "defs.jsonld#/definitions/description" }
3570
+ },
3571
+ required: ["id", "entityType"]
3572
+ };
3302
3573
 
3303
- // src/v1/schema/definitions/body/index.ts
3304
- var bodyIdDescription = "The IRI that identifies the Body resource.";
3305
- var DATE_RANGE_PATTERN = "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$";
3306
- var Body = import_zod16.z.object({
3307
- id: import_zod16.z.string().url().describe(bodyIdDescription),
3308
- type: import_zod16.z.literal("TextualBody").optional(),
3309
- entityType: import_zod16.z.union([
3310
- PersonEntityType,
3311
- PlaceEntityType,
3312
- OrganizationEntityType,
3313
- WorkEntityType,
3314
- PhysicalThingEntityType,
3315
- ConceptualObjectEntityType,
3316
- CitationEntityType,
3317
- DateEntityType,
3318
- NoteEntityType,
3319
- CorrectionEntityType,
3320
- KeywordEntityType,
3321
- KeywordFolksnomyEntityType,
3322
- LinkEntityType,
3323
- EventEntityType
3324
- ]),
3325
- additionalType: import_zod16.z.union([import_zod16.z.string(), import_zod16.z.string().array()]).optional().describe("Extra types that refines the body"),
3326
- value: import_zod16.z.string().describe("The value of the body").optional(),
3327
- certainty: Certainty.optional(),
3328
- precision: Precision.optional(),
3574
+ // src/v1/schema/definitions/body/choice.ts
3575
+ var import_zod16 = require("zod");
3576
+ var bodyIdDescription2 = "The IRI that identifies the Body resource.";
3577
+ var BodyChoice = import_zod16.z.object({
3578
+ id: import_zod16.z.string().url().describe(bodyIdDescription2),
3579
+ type: import_zod16.z.literal("Choice"),
3580
+ entityType: BodyEntityType,
3329
3581
  label: Label.optional(),
3330
- description: Description.optional()
3331
- }).describe("Web Annotation Body");
3332
- var bodySchema = {
3582
+ items: import_zod16.z.array(Body)
3583
+ });
3584
+ var bodyChoiceSchema = {
3333
3585
  type: "object",
3334
3586
  description: "Web Annotation Body",
3335
3587
  properties: {
3336
- id: { type: "string", format: "uri", description: bodyIdDescription },
3337
- type: { type: "string", const: "TextualBody" },
3588
+ id: { type: "string", format: "uri", description: bodyIdDescription2 },
3589
+ type: { type: "string", const: "Choice" },
3338
3590
  entityType: {
3339
3591
  oneOf: [
3340
3592
  personEntityTypeSchema,
@@ -3353,6 +3605,72 @@ var bodySchema = {
3353
3605
  eventEntityTypeSchema
3354
3606
  ]
3355
3607
  },
3608
+ label: labelSchema,
3609
+ items: {
3610
+ type: "array",
3611
+ // items: bodySchema,
3612
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-assignment
3613
+ items: { $ref: "defs.jsonld#/definitions/body" }
3614
+ }
3615
+ },
3616
+ required: ["id", "type", "entityType", "items"],
3617
+ additionalProperties: false
3618
+ };
3619
+
3620
+ // src/v1/schema/definitions/body/index.ts
3621
+ var bodyIdDescription = "The IRI that identifies the Body resource.";
3622
+ var BodyEntityType = import_zod17.z.union([
3623
+ PersonEntityType,
3624
+ PlaceEntityType,
3625
+ OrganizationEntityType,
3626
+ WorkEntityType,
3627
+ PhysicalThingEntityType,
3628
+ ConceptualObjectEntityType,
3629
+ CitationEntityType,
3630
+ DateEntityType,
3631
+ NoteEntityType,
3632
+ CorrectionEntityType,
3633
+ KeywordEntityType,
3634
+ KeywordFolksnomyEntityType,
3635
+ LinkEntityType,
3636
+ EventEntityType
3637
+ ]);
3638
+ var bodyEntityTypeSchema = {
3639
+ oneOf: [
3640
+ personEntityTypeSchema,
3641
+ placeEntityTypeSchema,
3642
+ organizationEntityTypeSchema,
3643
+ workEntityTypeSchema,
3644
+ physicalThingEntityTypeSchema,
3645
+ conceptualObjectEntityTypeSchema,
3646
+ citationEntityTypeSchema,
3647
+ dateEntityTypeSchema,
3648
+ noteEntityTypeSchema,
3649
+ correctionEntityTypeSchema,
3650
+ keywordEntityTypeSchema,
3651
+ keywordFolksnomyEntityTypeSchema,
3652
+ linkEntityTypeSchema,
3653
+ eventEntityTypeSchema
3654
+ ]
3655
+ };
3656
+ var Body = import_zod17.z.object({
3657
+ id: import_zod17.z.string().url().describe(bodyIdDescription),
3658
+ type: import_zod17.z.literal("TextualBody").optional(),
3659
+ entityType: BodyEntityType,
3660
+ additionalType: import_zod17.z.union([import_zod17.z.string(), import_zod17.z.string().array()]).nullable().describe("Extra types that refines the body"),
3661
+ value: import_zod17.z.string().describe("The value of the body").optional(),
3662
+ certainty: Certainty.optional(),
3663
+ precision: Precision.optional(),
3664
+ label: Label.optional(),
3665
+ description: Description.optional()
3666
+ }).describe("Web Annotation Body");
3667
+ var bodySchema = {
3668
+ type: "object",
3669
+ description: "Web Annotation Body",
3670
+ properties: {
3671
+ id: { type: "string", format: "uri", description: bodyIdDescription },
3672
+ type: { type: "string", const: "TextualBody" },
3673
+ entityType: bodyEntityTypeSchema,
3356
3674
  additionalType: {
3357
3675
  anyOf: [{ type: "string" }, { type: "array", items: { type: "string" } }]
3358
3676
  },
@@ -3436,29 +3754,29 @@ var bodySchema = {
3436
3754
  };
3437
3755
 
3438
3756
  // src/v1/schema/definitions/target/index.ts
3439
- var import_zod23 = require("zod");
3757
+ var import_zod24 = require("zod");
3440
3758
 
3441
3759
  // src/v1/schema/definitions/target/selector/index.ts
3442
- var import_zod21 = require("zod");
3760
+ var import_zod22 = require("zod");
3443
3761
 
3444
3762
  // src/v1/schema/definitions/target/selector/range.ts
3445
- var import_zod20 = require("zod");
3763
+ var import_zod21 = require("zod");
3446
3764
 
3447
3765
  // src/v1/schema/definitions/target/selector/xpath.ts
3448
- var import_zod19 = require("zod");
3766
+ var import_zod20 = require("zod");
3449
3767
 
3450
3768
  // src/v1/schema/definitions/target/selector/textPosition.ts
3451
- var import_zod17 = require("zod");
3452
- var TextPositionSelector = import_zod17.z.object({
3453
- id: import_zod17.z.string().url().describe(selectorIdDescription),
3454
- type: import_zod17.z.tuple([import_zod17.z.literal("TextPositionSelector"), import_zod17.z.literal("crm:E73_Information_Object")]),
3455
- start: import_zod17.z.number().min(0).describe("The starting position of the segment. The first byte is character position 0."),
3456
- end: import_zod17.z.number().describe(
3769
+ var import_zod18 = require("zod");
3770
+ var TextPositionSelector = import_zod18.z.object({
3771
+ id: import_zod18.z.string().url().describe(selectorIdDescription),
3772
+ type: import_zod18.z.tuple([import_zod18.z.literal("TextPositionSelector"), import_zod18.z.literal("crm:E73_Information_Object")]),
3773
+ start: import_zod18.z.number().min(0).describe("The starting position of the segment. The first byte is character position 0."),
3774
+ end: import_zod18.z.number().describe(
3457
3775
  "The end position of the segment. The last character is not included within the segment."
3458
3776
  )
3459
3777
  }).describe("TextPosition Selector");
3460
3778
  var TextPositionSelectorExtended = TextPositionSelector.extend({
3461
- refinedBy: import_zod17.z.union([import_zod17.z.lazy(() => TextPositionSelector), import_zod17.z.lazy(() => TextQuoteSelector)]).optional().describe(selectorRefinedByDescription)
3779
+ refinedBy: import_zod18.z.union([import_zod18.z.lazy(() => TextPositionSelector), import_zod18.z.lazy(() => TextQuoteSelector)]).optional().describe(selectorRefinedByDescription)
3462
3780
  });
3463
3781
  var textPositionSelectorSchema = {
3464
3782
  type: "object",
@@ -3508,20 +3826,20 @@ var textPositionSelectorExtendedSchema = {
3508
3826
  };
3509
3827
 
3510
3828
  // src/v1/schema/definitions/target/selector/textQuote.ts
3511
- var import_zod18 = require("zod");
3512
- var TextQuoteSelector = import_zod18.z.object({
3513
- id: import_zod18.z.string().url().describe(selectorIdDescription),
3514
- type: import_zod18.z.tuple([import_zod18.z.literal("TextQuoteSelector"), import_zod18.z.literal("crm:E33_Linguistic_Object")]),
3515
- exact: import_zod18.z.string().describe("A copy of the text which is being selected, after normalization."),
3516
- prefix: import_zod18.z.string().describe(
3829
+ var import_zod19 = require("zod");
3830
+ var TextQuoteSelector = import_zod19.z.object({
3831
+ id: import_zod19.z.string().url().describe(selectorIdDescription),
3832
+ type: import_zod19.z.tuple([import_zod19.z.literal("TextQuoteSelector"), import_zod19.z.literal("crm:E33_Linguistic_Object")]),
3833
+ exact: import_zod19.z.string().describe("A copy of the text which is being selected, after normalization."),
3834
+ prefix: import_zod19.z.string().describe(
3517
3835
  "The snippet of text that occurs immediately before the text which is being selected."
3518
3836
  ),
3519
- suffix: import_zod18.z.string().describe(
3837
+ suffix: import_zod19.z.string().describe(
3520
3838
  "The snippet of text that occurs immediately after the text which is being selected."
3521
3839
  )
3522
3840
  }).describe("Quote Selector");
3523
3841
  var TextQuoteSelectorExtended = TextQuoteSelector.extend({
3524
- refinedBy: import_zod18.z.union([import_zod18.z.lazy(() => TextPositionSelector), import_zod18.z.lazy(() => TextQuoteSelector)]).optional().describe(selectorRefinedByDescription)
3842
+ refinedBy: import_zod19.z.union([import_zod19.z.lazy(() => TextPositionSelector), import_zod19.z.lazy(() => TextQuoteSelector)]).optional().describe(selectorRefinedByDescription)
3525
3843
  });
3526
3844
  var textQuoteSelectorSchema = {
3527
3845
  type: "object",
@@ -3573,13 +3891,13 @@ var textQuoteSelectorExtendedSchema = {
3573
3891
  };
3574
3892
 
3575
3893
  // src/v1/schema/definitions/target/selector/xpath.ts
3576
- var XpathSelector = import_zod19.z.object({
3577
- id: import_zod19.z.string().describe(selectorIdDescription),
3578
- type: import_zod19.z.tuple([import_zod19.z.literal("XPathSelector"), import_zod19.z.literal("crm:E73_Information_Object")]),
3579
- value: import_zod19.z.string().min(1).describe("The xpath to the selected segment.")
3894
+ var XpathSelector = import_zod20.z.object({
3895
+ id: import_zod20.z.string().describe(selectorIdDescription),
3896
+ type: import_zod20.z.tuple([import_zod20.z.literal("XPathSelector"), import_zod20.z.literal("crm:E73_Information_Object")]),
3897
+ value: import_zod20.z.string().min(1).describe("The xpath to the selected segment.")
3580
3898
  }).describe("Xpath Selector");
3581
3899
  var XpathSelectorExtended = XpathSelector.extend({
3582
- refinedBy: import_zod19.z.union([TextPositionSelector, TextQuoteSelector]).optional().describe(selectorRefinedByDescription)
3900
+ refinedBy: import_zod20.z.union([TextPositionSelector, TextQuoteSelector]).optional().describe(selectorRefinedByDescription)
3583
3901
  });
3584
3902
  var xpathSelectorSchema = {
3585
3903
  type: "object",
@@ -3623,9 +3941,9 @@ var xpathSelectorExtendedSchema = {
3623
3941
  };
3624
3942
 
3625
3943
  // src/v1/schema/definitions/target/selector/range.ts
3626
- var RangeSelector = import_zod20.z.object({
3627
- id: import_zod20.z.string().url().describe(selectorIdDescription),
3628
- type: import_zod20.z.tuple([import_zod20.z.literal("RangeSelector"), import_zod20.z.literal("crm:E73_Information_Object")]),
3944
+ var RangeSelector = import_zod21.z.object({
3945
+ id: import_zod21.z.string().url().describe(selectorIdDescription),
3946
+ type: import_zod21.z.tuple([import_zod21.z.literal("RangeSelector"), import_zod21.z.literal("crm:E73_Information_Object")]),
3629
3947
  startSelector: XpathSelector,
3630
3948
  endSelector: XpathSelector
3631
3949
  }).describe("Range Selector");
@@ -3653,7 +3971,7 @@ var rangeSelectorSchema = {
3653
3971
  // src/v1/schema/definitions/target/selector/index.ts
3654
3972
  var selectorIdDescription = "UUID that identifies the selector.";
3655
3973
  var selectorRefinedByDescription = "The relationship between a broader selector and the more specific selector that should be applied to the results of the first.";
3656
- var Selector = import_zod21.z.union([
3974
+ var Selector = import_zod22.z.union([
3657
3975
  TextQuoteSelectorExtended,
3658
3976
  TextPositionSelectorExtended,
3659
3977
  XpathSelectorExtended,
@@ -3671,16 +3989,16 @@ var selectorSchema = {
3671
3989
  };
3672
3990
 
3673
3991
  // src/v1/schema/definitions/target/source.ts
3674
- var import_zod22 = require("zod");
3992
+ var import_zod23 = require("zod");
3675
3993
  var formatDescription = "The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.";
3676
- var Format = import_zod22.z.string().min(1).describe(formatDescription);
3994
+ var Format = import_zod23.z.string().min(1).describe(formatDescription);
3677
3995
  var formatSchema = {
3678
3996
  type: "string",
3679
3997
  description: formatDescription,
3680
3998
  minLength: 1
3681
3999
  };
3682
4000
  var languageDescription = "The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.";
3683
- var Language = import_zod22.z.string().min(2).max(3).describe(languageDescription);
4001
+ var Language = import_zod23.z.string().min(2).max(3).describe(languageDescription);
3684
4002
  var languageSchema = {
3685
4003
  type: "string",
3686
4004
  description: languageDescription,
@@ -3688,15 +4006,15 @@ var languageSchema = {
3688
4006
  maxLength: 3
3689
4007
  };
3690
4008
  var sourceIdDescription = "The IRI that identifies the Target source.";
3691
- var Source = import_zod22.z.object({
3692
- id: import_zod22.z.string().url().describe(sourceIdDescription),
3693
- format: import_zod22.z.union([Format, import_zod22.z.array(Format).min(1)]).optional().describe(
4009
+ var Source = import_zod23.z.object({
4010
+ id: import_zod23.z.string().url().describe(sourceIdDescription),
4011
+ format: import_zod23.z.union([Format, import_zod23.z.array(Format).min(1)]).optional().describe(
3694
4012
  "The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."
3695
4013
  ),
3696
- language: import_zod22.z.union([Language, import_zod22.z.array(Language).min(1)]).optional().describe(
4014
+ language: import_zod23.z.union([Language, import_zod23.z.array(Language).min(1)]).optional().describe(
3697
4015
  "The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."
3698
4016
  ),
3699
- title: import_zod22.z.string().min(1, { message: "The title cannot be empty" }).optional().describe("The title of the document being annotated.")
4017
+ title: import_zod23.z.string().min(1, { message: "The title cannot be empty" }).optional().describe("The title of the document being annotated.")
3700
4018
  }).describe("Web Annotation Target");
3701
4019
  var sourceSchema = {
3702
4020
  type: "object",
@@ -3741,14 +4059,14 @@ var sourceSchema = {
3741
4059
 
3742
4060
  // src/v1/schema/definitions/target/index.ts
3743
4061
  var targetIdDescription = "The IRI that identifies the Target resource.";
3744
- var Target = import_zod23.z.object({
3745
- id: import_zod23.z.string().url().describe(targetIdDescription),
3746
- type: import_zod23.z.tuple([import_zod23.z.literal("SpecificResource"), import_zod23.z.literal("crm:E73_Information_Object")]).describe("The class of the Specific Resource."),
4062
+ var Target = import_zod24.z.object({
4063
+ id: import_zod24.z.string().url().describe(targetIdDescription),
4064
+ type: import_zod24.z.tuple([import_zod24.z.literal("SpecificResource"), import_zod24.z.literal("crm:E73_Information_Object")]).describe("The class of the Specific Resource."),
3747
4065
  source: Source,
3748
4066
  renderedVia: Software.optional().describe(
3749
4067
  "The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."
3750
4068
  ),
3751
- selector: import_zod23.z.union([Selector, import_zod23.z.array(Selector)]).describe("The relationship between a Specific Resource and a Selector. ")
4069
+ selector: import_zod24.z.union([Selector, import_zod24.z.array(Selector)]).describe("The relationship between a Specific Resource and a Selector. ")
3752
4070
  }).describe("Web Annotation Target");
3753
4071
  var targetSchema = {
3754
4072
  type: "object",
@@ -3906,13 +4224,14 @@ var definitionSchema = {
3906
4224
  textQuoteSelector: textQuoteSelectorSchema,
3907
4225
  xpathSelector: xpathSelectorSchema,
3908
4226
  rangeSelector: rangeSelectorSchema,
3909
- body: bodySchema
4227
+ body: bodySchema,
4228
+ bodyChoice: bodyChoiceSchema
3910
4229
  },
3911
4230
  required: []
3912
4231
  };
3913
4232
 
3914
4233
  // src/v1/schema/root.ts
3915
- var import_zod24 = require("zod");
4234
+ var import_zod25 = require("zod");
3916
4235
  var Status = ["draft", "approved", "published"];
3917
4236
  var Motivation = [
3918
4237
  "identifying",
@@ -3923,26 +4242,26 @@ var Motivation = [
3923
4242
  "linking",
3924
4243
  "citing"
3925
4244
  ];
3926
- var WebAnnotation = import_zod24.z.object({
3927
- "@context": import_zod24.z.tuple([
3928
- import_zod24.z.literal("http://www.w3.org/ns/anno.jsonld").describe("W3C Web Annotation Context."),
3929
- import_zod24.z.literal(contextUri).describe("LINCS Web Annotation Context.")
4245
+ var WebAnnotation = import_zod25.z.object({
4246
+ "@context": import_zod25.z.tuple([
4247
+ import_zod25.z.literal("http://www.w3.org/ns/anno.jsonld").describe("W3C Web Annotation Context."),
4248
+ import_zod25.z.literal(contextUri).describe("LINCS Web Annotation Context.")
3930
4249
  ]).describe(
3931
4250
  "The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."
3932
4251
  ),
3933
- id: import_zod24.z.string().url().describe("The identity of the Annotation."),
3934
- type: import_zod24.z.tuple([import_zod24.z.literal("Annotation"), import_zod24.z.literal("crm:E33_Linguistic_Object")]).describe("The type of the Annotation."),
3935
- motivation: import_zod24.z.tuple([import_zod24.z.enum(Motivation), import_zod24.z.literal("crm:E55_Type")]).describe("The relationship between an Annotation and a Motivation."),
3936
- created: import_zod24.z.string().datetime().describe("The time at which the resource was created."),
3937
- modified: import_zod24.z.string().datetime().optional().describe("The time at which the resource was modified, after creation."),
3938
- status: import_zod24.z.enum(Status).describe("The status of this annotation in a workflow."),
4252
+ id: import_zod25.z.string().url().describe("The identity of the Annotation."),
4253
+ type: import_zod25.z.tuple([import_zod25.z.literal("Annotation"), import_zod25.z.literal("crm:E33_Linguistic_Object")]).describe("The type of the Annotation."),
4254
+ motivation: import_zod25.z.tuple([import_zod25.z.enum(Motivation), import_zod25.z.literal("crm:E55_Type")]).describe("The relationship between an Annotation and a Motivation."),
4255
+ created: import_zod25.z.string().datetime().describe("The time at which the resource was created."),
4256
+ modified: import_zod25.z.string().datetime().optional().describe("The time at which the resource was modified, after creation."),
4257
+ status: import_zod25.z.enum(Status).describe("The status of this annotation in a workflow."),
3939
4258
  creator: User.describe("The agent responsible for creating the resource.").optional(),
3940
- contributor: import_zod24.z.array(User.describe("The agents responsible for modifying the resource.")).nonempty().optional().describe("The agents responsible for modifying the resource."),
4259
+ contributor: import_zod25.z.array(User.describe("The agents responsible for modifying the resource.")).nonempty().optional().describe("The agents responsible for modifying the resource."),
3941
4260
  generator: Software.describe(
3942
4261
  "The agent responsible for generating the serialization of the Annotation. "
3943
4262
  ),
3944
4263
  target: Target.describe("The relationship between an Annotation and its Target."),
3945
- body: import_zod24.z.union([Body, import_zod24.z.array(Body)]).describe("The relationship between an Annotation and its Body.")
4264
+ body: import_zod25.z.union([BodyChoice, Body, import_zod25.z.array(Body)]).describe("The relationship between an Annotation and its Body.")
3946
4265
  }).describe("Web Annotation Root");
3947
4266
  var webAnnotationSchema = {
3948
4267
  $id: schemaId,
@@ -4006,6 +4325,7 @@ var webAnnotationSchema = {
4006
4325
  target: { $ref: "defs.jsonld#/definitions/target" },
4007
4326
  body: {
4008
4327
  oneOf: [
4328
+ { $ref: "defs.jsonld#/definitions/bodyChoice" },
4009
4329
  { $ref: "defs.jsonld#/definitions/body" },
4010
4330
  {
4011
4331
  type: "array",
@@ -4239,18 +4559,18 @@ var import_ajv = __toESM(require("ajv"));
4239
4559
  var import_ajv_formats = __toESM(require("ajv-formats"));
4240
4560
 
4241
4561
  // src/v1/validator/types.ts
4242
- var import_zod25 = require("zod");
4243
- var ValidationError = import_zod25.z.object({
4244
- message: import_zod25.z.string(),
4245
- path: import_zod25.z.string(),
4246
- suggestion: import_zod25.z.string().optional(),
4247
- context: import_zod25.z.object({
4248
- errorType: import_zod25.z.string()
4249
- }).and(import_zod25.z.unknown())
4562
+ var import_zod26 = require("zod");
4563
+ var ValidationError = import_zod26.z.object({
4564
+ message: import_zod26.z.string(),
4565
+ path: import_zod26.z.string(),
4566
+ suggestion: import_zod26.z.string().optional(),
4567
+ context: import_zod26.z.object({
4568
+ errorType: import_zod26.z.string()
4569
+ }).and(import_zod26.z.unknown())
4250
4570
  });
4251
- var ValidateResult = import_zod25.z.object({
4252
- valid: import_zod25.z.boolean(),
4253
- errors: import_zod25.z.array(ValidationError).optional()
4571
+ var ValidateResult = import_zod26.z.object({
4572
+ valid: import_zod26.z.boolean(),
4573
+ errors: import_zod26.z.array(ValidationError).optional()
4254
4574
  });
4255
4575
 
4256
4576
  // src/v1/validator/index.ts
@@ -4284,35 +4604,122 @@ var getErrors = (annotation) => {
4284
4604
  var v1_exports = {};
4285
4605
  __export(v1_exports, {
4286
4606
  Body: () => Body,
4607
+ BodyChoice: () => BodyChoice,
4608
+ BodyEntityType: () => BodyEntityType,
4609
+ Certainty: () => Certainty,
4610
+ Citation: () => Citation,
4611
+ CitationEntityType: () => CitationEntityType,
4612
+ ConceptualObject: () => ConceptualObject,
4613
+ ConceptualObjectEntityType: () => ConceptualObjectEntityType,
4614
+ Correction: () => Correction,
4615
+ CorrectionEntityType: () => CorrectionEntityType,
4287
4616
  DATE_RANGE_PATTERN: () => DATE_RANGE_PATTERN,
4617
+ Date: () => Date2,
4618
+ DateEntityType: () => DateEntityType,
4619
+ Description: () => Description,
4620
+ Event: () => Event,
4621
+ EventEntityType: () => EventEntityType,
4622
+ Keyword: () => Keyword,
4623
+ KeywordEntityType: () => KeywordEntityType,
4624
+ KeywordFolksnomy: () => KeywordFolksnomy,
4625
+ KeywordFolksnomyEntityType: () => KeywordFolksnomyEntityType,
4626
+ Label: () => Label,
4627
+ Link: () => Link,
4628
+ LinkEntityType: () => LinkEntityType,
4288
4629
  Motivation: () => Motivation,
4630
+ Note: () => Note,
4631
+ NoteEntityType: () => NoteEntityType,
4632
+ Organization: () => Organization,
4633
+ OrganizationEntityType: () => OrganizationEntityType,
4289
4634
  Person: () => Person,
4290
4635
  PersonEntityType: () => PersonEntityType,
4636
+ PhysicalThing: () => PhysicalThing,
4637
+ PhysicalThingEntityType: () => PhysicalThingEntityType,
4638
+ Place: () => Place,
4639
+ PlaceEntityType: () => PlaceEntityType,
4640
+ Precision: () => Precision,
4641
+ Quality: () => Quality,
4642
+ RangeSelector: () => RangeSelector,
4643
+ Selector: () => Selector,
4291
4644
  Software: () => Software,
4645
+ Source: () => Source,
4292
4646
  Status: () => Status,
4293
4647
  Target: () => Target,
4648
+ TextPositionSelector: () => TextPositionSelector,
4649
+ TextPositionSelectorExtended: () => TextPositionSelectorExtended,
4650
+ TextQuoteSelector: () => TextQuoteSelector,
4651
+ TextQuoteSelectorExtended: () => TextQuoteSelectorExtended,
4294
4652
  User: () => User,
4295
4653
  VERSION: () => VERSION,
4296
4654
  ValidateResult: () => ValidateResult,
4297
4655
  ValidationError: () => ValidationError,
4298
4656
  WebAnnotation: () => WebAnnotation,
4657
+ Work: () => Work,
4658
+ WorkEntityType: () => WorkEntityType,
4659
+ XpathSelector: () => XpathSelector,
4660
+ XpathSelectorExtended: () => XpathSelectorExtended,
4299
4661
  ajv: () => ajv,
4662
+ bodyChoiceSchema: () => bodyChoiceSchema,
4663
+ bodyEntityTypeSchema: () => bodyEntityTypeSchema,
4300
4664
  bodyIdDescription: () => bodyIdDescription,
4301
4665
  bodySchema: () => bodySchema,
4666
+ certaintySchema: () => certaintySchema,
4667
+ citationEntityTypeSchema: () => citationEntityTypeSchema,
4668
+ citationSchema: () => citationSchema,
4669
+ conceptualObjectEntityTypeSchema: () => conceptualObjectEntityTypeSchema,
4670
+ conceptualObjectSchema: () => conceptualObjectSchema,
4302
4671
  contextUri: () => contextUri,
4672
+ correctionEntityTypeSchema: () => correctionEntityTypeSchema,
4673
+ correctionSchema: () => correctionSchema,
4303
4674
  creatorSchema: () => creatorSchema,
4675
+ dateEntityTypeSchema: () => dateEntityTypeSchema,
4676
+ dateSchema: () => dateSchema,
4304
4677
  definitionSchema: () => definitionSchema,
4305
4678
  defsId: () => defsId,
4679
+ descriptionSchema: () => descriptionSchema,
4680
+ eventEntityTypeSchema: () => eventEntityTypeSchema,
4681
+ eventSchema: () => eventSchema,
4682
+ formatSchema: () => formatSchema,
4306
4683
  generateAssets: () => generateAssets,
4684
+ keywordEntityTypeSchema: () => keywordEntityTypeSchema,
4685
+ keywordFolksnomyEntityTypeSchema: () => keywordFolksnomyEntityTypeSchema,
4686
+ keywordFolksnomySchema: () => keywordFolksnomySchema,
4687
+ keywordSchema: () => keywordSchema,
4688
+ labelSchema: () => labelSchema,
4689
+ languageSchema: () => languageSchema,
4690
+ linkEntityTypeSchema: () => linkEntityTypeSchema,
4691
+ linkSchema: () => linkSchema,
4692
+ noteEntityTypeSchema: () => noteEntityTypeSchema,
4693
+ noteSchema: () => noteSchema,
4694
+ organizationEntityTypeSchema: () => organizationEntityTypeSchema,
4695
+ organizationSchema: () => organizationSchema,
4307
4696
  personEntityTypeSchema: () => personEntityTypeSchema,
4308
4697
  personSchema: () => personSchema,
4698
+ physicalThingEntityTypeSchema: () => physicalThingEntityTypeSchema,
4699
+ physicalThingSchema: () => physicalThingSchema,
4700
+ placeEntityTypeSchema: () => placeEntityTypeSchema,
4701
+ placeSchema: () => placeSchema,
4702
+ precisionSchema: () => precisionSchema,
4703
+ rangeSelectorSchema: () => rangeSelectorSchema,
4309
4704
  schemaContext: () => schemaContext,
4310
4705
  schemaId: () => schemaId,
4706
+ selectorIdDescription: () => selectorIdDescription,
4707
+ selectorRefinedByDescription: () => selectorRefinedByDescription,
4708
+ selectorSchema: () => selectorSchema,
4311
4709
  softwareSchema: () => softwareSchema,
4710
+ sourceSchema: () => sourceSchema,
4312
4711
  targetSchema: () => targetSchema,
4712
+ textPositionSelectorExtendedSchema: () => textPositionSelectorExtendedSchema,
4713
+ textPositionSelectorSchema: () => textPositionSelectorSchema,
4714
+ textQuoteSelectorExtendedSchema: () => textQuoteSelectorExtendedSchema,
4715
+ textQuoteSelectorSchema: () => textQuoteSelectorSchema,
4313
4716
  validate: () => validate,
4314
4717
  validator: () => validator,
4315
- webAnnotationSchema: () => webAnnotationSchema
4718
+ webAnnotationSchema: () => webAnnotationSchema,
4719
+ workEntityTypeSchema: () => workEntityTypeSchema,
4720
+ workSchema: () => workSchema,
4721
+ xpathSelectorExtendedSchema: () => xpathSelectorExtendedSchema,
4722
+ xpathSelectorSchema: () => xpathSelectorSchema
4316
4723
  });
4317
4724
 
4318
4725
  // src/v1/generate/examples.ts
@@ -4550,58 +4957,26 @@ var person = {
4550
4957
  }
4551
4958
  };
4552
4959
 
4553
- // src/v1/mocks/body/place.ts
4554
- var commonPlaceBody = {
4555
- id: "https://www.uo.com/place",
4556
- entityType: "cwrc:place"
4557
- };
4558
- var real2 = {
4559
- ...common.annotation,
4560
- body: {
4561
- id: "https://www.uo.com/place",
4562
- entityType: "cwrc:place"
4563
- }
4564
- };
4565
- var fictional2 = {
4566
- ...common.annotation,
4567
- body: {
4568
- id: "https://www.uo.com/place",
4569
- entityType: ["cwrc:place", "crm:E89_Propositional_Object"]
4570
- }
4571
- };
4572
- var withCertainty2 = {
4960
+ // src/v1/mocks/body/choice.ts
4961
+ var annotationBodyChoice = {
4573
4962
  ...common.annotation,
4574
4963
  body: {
4575
- id: "https://www.uo.com/place",
4576
- entityType: "cwrc:place",
4577
- certainty: "edit:qualityMedium"
4964
+ id: "https://wa.lincsproject/selector/55369c00-5c43-4d1a-8462-31c74fbec545",
4965
+ type: "Choice",
4966
+ entityType: ["Person", "crm:E21_Person"],
4967
+ label: "John",
4968
+ items: [
4969
+ commonPersonBody,
4970
+ commonPersonBody,
4971
+ commonPersonBody,
4972
+ commonPersonBody,
4973
+ commonPersonBody,
4974
+ commonPersonBody
4975
+ ]
4578
4976
  }
4579
4977
  };
4580
- var withPrecision = {
4581
- ...common.annotation,
4582
- body: {
4583
- id: "https://www.uo.com/place",
4584
- entityType: "cwrc:place",
4585
- precision: "edit:qualityHigh"
4586
- }
4587
- };
4588
- var withLabelAndDescription2 = {
4589
- ...common.annotation,
4590
- body: {
4591
- id: "https://www.uo.com/place",
4592
- entityType: "cwrc:place",
4593
- label: "Paris",
4594
- description: "A place"
4595
- }
4596
- };
4597
- var place = {
4598
- valid: {
4599
- real: real2,
4600
- fictional: fictional2,
4601
- withCertainty: withCertainty2,
4602
- withPrecision,
4603
- withLabelAndDescription: withLabelAndDescription2
4604
- }
4978
+ var bodyChoice = {
4979
+ valid: annotationBodyChoice
4605
4980
  };
4606
4981
 
4607
4982
  // src/v1/mocks/body/citation.ts
@@ -4613,7 +4988,7 @@ var simple = {
4613
4988
  entityType: ["cito:Citation", "crm:E73_Information_Object"]
4614
4989
  }
4615
4990
  };
4616
- var withCertainty3 = {
4991
+ var withCertainty2 = {
4617
4992
  ...common.annotation,
4618
4993
  motivation: ["citing", "crm:E55_Type"],
4619
4994
  body: {
@@ -4622,7 +4997,7 @@ var withCertainty3 = {
4622
4997
  certainty: "edit:qualityHigh"
4623
4998
  }
4624
4999
  };
4625
- var withLabelAndDescription3 = {
5000
+ var withLabelAndDescription2 = {
4626
5001
  ...common.annotation,
4627
5002
  motivation: ["citing", "crm:E55_Type"],
4628
5003
  body: {
@@ -4635,27 +5010,27 @@ var withLabelAndDescription3 = {
4635
5010
  var citation = {
4636
5011
  valid: {
4637
5012
  simple,
4638
- withCertainty: withCertainty3,
4639
- withLabelAndDescription: withLabelAndDescription3
5013
+ withCertainty: withCertainty2,
5014
+ withLabelAndDescription: withLabelAndDescription2
4640
5015
  }
4641
5016
  };
4642
5017
 
4643
5018
  // src/v1/mocks/body/conceptualObject.ts
4644
- var real3 = {
5019
+ var real2 = {
4645
5020
  ...common.annotation,
4646
5021
  body: {
4647
5022
  id: "https://www.uo.com/conceptualObject",
4648
5023
  entityType: "crm:E28_Conceptual_Object"
4649
5024
  }
4650
5025
  };
4651
- var fictional3 = {
5026
+ var fictional2 = {
4652
5027
  ...common.annotation,
4653
5028
  body: {
4654
5029
  id: "https://www.uo.com/conceptualObject",
4655
5030
  entityType: ["crm:E28_Conceptual_Object", "wikidata:Q15831596"]
4656
5031
  }
4657
5032
  };
4658
- var withCertainty4 = {
5033
+ var withCertainty3 = {
4659
5034
  ...common.annotation,
4660
5035
  body: {
4661
5036
  id: "https://www.uo.com/conceptualObject",
@@ -4663,7 +5038,7 @@ var withCertainty4 = {
4663
5038
  certainty: "edit:qualityMedium"
4664
5039
  }
4665
5040
  };
4666
- var withLabelAndDescription4 = {
5041
+ var withLabelAndDescription3 = {
4667
5042
  ...common.annotation,
4668
5043
  body: {
4669
5044
  id: "https://www.uo.com/conceptualObject",
@@ -4674,10 +5049,10 @@ var withLabelAndDescription4 = {
4674
5049
  };
4675
5050
  var conceptualObject = {
4676
5051
  valid: {
4677
- real: real3,
4678
- fictional: fictional3,
4679
- withCertainty: withCertainty4,
4680
- withLabelAndDescription: withLabelAndDescription4
5052
+ real: real2,
5053
+ fictional: fictional2,
5054
+ withCertainty: withCertainty3,
5055
+ withLabelAndDescription: withLabelAndDescription3
4681
5056
  }
4682
5057
  };
4683
5058
 
@@ -4706,7 +5081,7 @@ var simple2 = {
4706
5081
  value: "2012-03-01T00:00:00/2012-02-01T18:21:07"
4707
5082
  }
4708
5083
  };
4709
- var withCertainty5 = {
5084
+ var withCertainty4 = {
4710
5085
  ...common.annotation,
4711
5086
  body: {
4712
5087
  id: "https://wa.lincsproject/55369c00-5c43-4d1a-8462-31c74fbec584",
@@ -4716,7 +5091,7 @@ var withCertainty5 = {
4716
5091
  certainty: "edit:qualityMedium"
4717
5092
  }
4718
5093
  };
4719
- var withPrecision2 = {
5094
+ var withPrecision = {
4720
5095
  ...common.annotation,
4721
5096
  body: {
4722
5097
  id: "https://wa.lincsproject/55369c00-5c43-4d1a-8462-31c74fbec584",
@@ -4729,8 +5104,49 @@ var withPrecision2 = {
4729
5104
  var date = {
4730
5105
  valid: {
4731
5106
  simple: simple2,
5107
+ withCertainty: withCertainty4,
5108
+ withPrecision
5109
+ }
5110
+ };
5111
+
5112
+ // src/v1/mocks/body/event.ts
5113
+ var real3 = {
5114
+ ...common.annotation,
5115
+ body: {
5116
+ id: "https://www.uo.com/event",
5117
+ entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E5_Event"]
5118
+ }
5119
+ };
5120
+ var fictional3 = {
5121
+ ...common.annotation,
5122
+ body: {
5123
+ id: "https://www.uo.com/event",
5124
+ entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E89_Propositional_Object"]
5125
+ }
5126
+ };
5127
+ var withCertainty5 = {
5128
+ ...common.annotation,
5129
+ body: {
5130
+ id: "https://www.uo.com/event",
5131
+ entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E5_Event"],
5132
+ certainty: "edit:qualityLow"
5133
+ }
5134
+ };
5135
+ var withLabelAndDescription4 = {
5136
+ ...common.annotation,
5137
+ body: {
5138
+ id: "https://www.uo.com/event",
5139
+ entityType: ["YET TO BE DEFINED EVENT CLASS", "crm:E5_Event"],
5140
+ label: "revolution",
5141
+ description: "An event"
5142
+ }
5143
+ };
5144
+ var event = {
5145
+ valid: {
5146
+ real: real3,
5147
+ fictional: fictional3,
4732
5148
  withCertainty: withCertainty5,
4733
- withPrecision: withPrecision2
5149
+ withLabelAndDescription: withLabelAndDescription4
4734
5150
  }
4735
5151
  };
4736
5152
 
@@ -4808,6 +5224,71 @@ var link = {
4808
5224
  }
4809
5225
  };
4810
5226
 
5227
+ // src/v1/mocks/body/place.ts
5228
+ var commonPlaceBody = {
5229
+ id: "https://www.uo.com/place",
5230
+ entityType: "cwrc:place"
5231
+ };
5232
+ var real4 = {
5233
+ ...common.annotation,
5234
+ body: {
5235
+ id: "https://www.uo.com/place",
5236
+ entityType: "cwrc:place"
5237
+ }
5238
+ };
5239
+ var fictional4 = {
5240
+ ...common.annotation,
5241
+ body: {
5242
+ id: "https://www.uo.com/place",
5243
+ entityType: ["cwrc:place", "crm:E89_Propositional_Object"]
5244
+ }
5245
+ };
5246
+ var withCertainty7 = {
5247
+ ...common.annotation,
5248
+ body: {
5249
+ id: "https://www.uo.com/place",
5250
+ entityType: "cwrc:place",
5251
+ certainty: "edit:qualityMedium"
5252
+ }
5253
+ };
5254
+ var withPrecision2 = {
5255
+ ...common.annotation,
5256
+ body: {
5257
+ id: "https://www.uo.com/place",
5258
+ entityType: "cwrc:place",
5259
+ precision: "edit:qualityHigh"
5260
+ }
5261
+ };
5262
+ var withLabelAndDescription5 = {
5263
+ ...common.annotation,
5264
+ body: {
5265
+ id: "https://www.uo.com/place",
5266
+ entityType: "cwrc:place",
5267
+ label: "Paris",
5268
+ description: "A place"
5269
+ }
5270
+ };
5271
+ var place = {
5272
+ valid: {
5273
+ real: real4,
5274
+ fictional: fictional4,
5275
+ withCertainty: withCertainty7,
5276
+ withPrecision: withPrecision2,
5277
+ withLabelAndDescription: withLabelAndDescription5
5278
+ }
5279
+ };
5280
+
5281
+ // src/v1/mocks/body/multipleBodies.ts
5282
+ var personPlace = {
5283
+ ...common.annotation,
5284
+ body: [commonPersonBody, commonPlaceBody]
5285
+ };
5286
+ var multipleBodies = {
5287
+ valid: {
5288
+ personPlace
5289
+ }
5290
+ };
5291
+
4811
5292
  // src/v1/mocks/body/note.ts
4812
5293
  var simple4 = {
4813
5294
  ...common.annotation,
@@ -4850,21 +5331,21 @@ var note = {
4850
5331
  };
4851
5332
 
4852
5333
  // src/v1/mocks/body/organization.ts
4853
- var real4 = {
5334
+ var real5 = {
4854
5335
  ...common.annotation,
4855
5336
  body: {
4856
5337
  id: "https://www.uo.com/organization",
4857
5338
  entityType: ["foaf:Organization", "crm:E74_Group"]
4858
5339
  }
4859
5340
  };
4860
- var fictional4 = {
5341
+ var fictional5 = {
4861
5342
  ...common.annotation,
4862
5343
  body: {
4863
5344
  id: "https://www.uo.com/organization",
4864
5345
  entityType: ["foaf:Organization", "crm:E89_Propositional_Object"]
4865
5346
  }
4866
5347
  };
4867
- var withCertainty7 = {
5348
+ var withCertainty8 = {
4868
5349
  ...common.annotation,
4869
5350
  body: {
4870
5351
  id: "https://www.uo.com/organization",
@@ -4872,7 +5353,7 @@ var withCertainty7 = {
4872
5353
  certainty: "edit:qualityHigh"
4873
5354
  }
4874
5355
  };
4875
- var withLabelAndDescription5 = {
5356
+ var withLabelAndDescription6 = {
4876
5357
  ...common.annotation,
4877
5358
  body: {
4878
5359
  id: "https://www.uo.com/organization",
@@ -4883,29 +5364,29 @@ var withLabelAndDescription5 = {
4883
5364
  };
4884
5365
  var organization = {
4885
5366
  valid: {
4886
- real: real4,
4887
- fictional: fictional4,
4888
- withCertainty: withCertainty7,
4889
- withLabelAndDescription: withLabelAndDescription5
5367
+ real: real5,
5368
+ fictional: fictional5,
5369
+ withCertainty: withCertainty8,
5370
+ withLabelAndDescription: withLabelAndDescription6
4890
5371
  }
4891
5372
  };
4892
5373
 
4893
5374
  // src/v1/mocks/body/physicalThing.ts
4894
- var real5 = {
5375
+ var real6 = {
4895
5376
  ...common.annotation,
4896
5377
  body: {
4897
5378
  id: "https://www.uo.com/pysicalThing",
4898
5379
  entityType: "crm:E18_Physical_Thing"
4899
5380
  }
4900
5381
  };
4901
- var fictional5 = {
5382
+ var fictional6 = {
4902
5383
  ...common.annotation,
4903
5384
  body: {
4904
5385
  id: "https://www.uo.com/pysicalThing",
4905
5386
  entityType: ["crm:E18_Physical_Thing", "wikidata:Q15831596"]
4906
5387
  }
4907
5388
  };
4908
- var withCertainty8 = {
5389
+ var withCertainty9 = {
4909
5390
  ...common.annotation,
4910
5391
  body: {
4911
5392
  id: "https://www.uo.com/pysicalThing",
@@ -4913,7 +5394,7 @@ var withCertainty8 = {
4913
5394
  certainty: "edit:qualityLow"
4914
5395
  }
4915
5396
  };
4916
- var withLabelAndDescription6 = {
5397
+ var withLabelAndDescription7 = {
4917
5398
  ...common.annotation,
4918
5399
  body: {
4919
5400
  id: "https://www.uo.com/pysicalThing",
@@ -4924,29 +5405,29 @@ var withLabelAndDescription6 = {
4924
5405
  };
4925
5406
  var physicalThing = {
4926
5407
  valid: {
4927
- real: real5,
4928
- fictional: fictional5,
4929
- withCertainty: withCertainty8,
4930
- withLabelAndDescription: withLabelAndDescription6
5408
+ real: real6,
5409
+ fictional: fictional6,
5410
+ withCertainty: withCertainty9,
5411
+ withLabelAndDescription: withLabelAndDescription7
4931
5412
  }
4932
5413
  };
4933
5414
 
4934
5415
  // src/v1/mocks/body/work.ts
4935
- var real6 = {
5416
+ var real7 = {
4936
5417
  ...common.annotation,
4937
5418
  body: {
4938
5419
  id: "https://www.uo.com/work",
4939
5420
  entityType: ["crm:E89_Propositional_Object", "frbroo:F1"]
4940
5421
  }
4941
5422
  };
4942
- var fictional6 = {
5423
+ var fictional7 = {
4943
5424
  ...common.annotation,
4944
5425
  body: {
4945
5426
  id: "https://www.uo.com/work",
4946
5427
  entityType: ["crm:E89_Propositional_Object", "wikidata:Q15306849"]
4947
5428
  }
4948
5429
  };
4949
- var withCertainty9 = {
5430
+ var withCertainty10 = {
4950
5431
  ...common.annotation,
4951
5432
  body: {
4952
5433
  id: "https://www.uo.com/work",
@@ -4954,7 +5435,7 @@ var withCertainty9 = {
4954
5435
  certainty: "edit:qualityUnknown"
4955
5436
  }
4956
5437
  };
4957
- var withLabelAndDescription7 = {
5438
+ var withLabelAndDescription8 = {
4958
5439
  ...common.annotation,
4959
5440
  body: {
4960
5441
  id: "https://www.uo.com/work",
@@ -4964,47 +5445,6 @@ var withLabelAndDescription7 = {
4964
5445
  }
4965
5446
  };
4966
5447
  var work = {
4967
- valid: {
4968
- real: real6,
4969
- fictional: fictional6,
4970
- withCertainty: withCertainty9,
4971
- withLabelAndDescription: withLabelAndDescription7
4972
- }
4973
- };
4974
-
4975
- // src/v1/mocks/body/event.ts
4976
- var real7 = {
4977
- ...common.annotation,
4978
- body: {
4979
- id: "https://www.uo.com/event",
4980
- entityType: "crm:E5_Event"
4981
- }
4982
- };
4983
- var fictional7 = {
4984
- ...common.annotation,
4985
- body: {
4986
- id: "https://www.uo.com/event",
4987
- entityType: "YET TO BE DEFINED A CLASS FOR FICTIONAL EVENTS"
4988
- }
4989
- };
4990
- var withCertainty10 = {
4991
- ...common.annotation,
4992
- body: {
4993
- id: "https://www.uo.com/event",
4994
- entityType: "crm:E5_Event",
4995
- certainty: "edit:qualityLow"
4996
- }
4997
- };
4998
- var withLabelAndDescription8 = {
4999
- ...common.annotation,
5000
- body: {
5001
- id: "https://www.uo.com/event",
5002
- entityType: "crm:E5_Event",
5003
- label: "revolution",
5004
- description: "An event"
5005
- }
5006
- };
5007
- var event = {
5008
5448
  valid: {
5009
5449
  real: real7,
5010
5450
  fictional: fictional7,
@@ -5013,17 +5453,6 @@ var event = {
5013
5453
  }
5014
5454
  };
5015
5455
 
5016
- // src/v1/mocks/body/index.ts
5017
- var personPlace = {
5018
- ...common.annotation,
5019
- body: [commonPersonBody, commonPlaceBody]
5020
- };
5021
- var multipleBodies = {
5022
- valid: {
5023
- personPlace
5024
- }
5025
- };
5026
-
5027
5456
  // src/v1/mocks/root/agent.ts
5028
5457
  var creatorSimple = {
5029
5458
  ...common.annotation,
@@ -5617,6 +6046,7 @@ var generateValidExamples = async () => {
5617
6046
  multipleBodies.valid.personPlace,
5618
6047
  JSON_OPTIONS
5619
6048
  );
6049
+ await import_fs_extra.default.writeJSON(import_path.default.join(FOLDER, "body_choice.jsonld"), bodyChoice.valid, JSON_OPTIONS);
5620
6050
  };
5621
6051
 
5622
6052
  // src/v1/generate/jsonld.ts
@@ -5661,33 +6091,120 @@ var generateAssets = async () => {
5661
6091
  // Annotate the CommonJS export names for ESM import in node:
5662
6092
  0 && (module.exports = {
5663
6093
  Body,
6094
+ BodyChoice,
6095
+ BodyEntityType,
6096
+ Certainty,
6097
+ Citation,
6098
+ CitationEntityType,
6099
+ ConceptualObject,
6100
+ ConceptualObjectEntityType,
6101
+ Correction,
6102
+ CorrectionEntityType,
5664
6103
  DATE_RANGE_PATTERN,
6104
+ Date,
6105
+ DateEntityType,
6106
+ Description,
6107
+ Event,
6108
+ EventEntityType,
6109
+ Keyword,
6110
+ KeywordEntityType,
6111
+ KeywordFolksnomy,
6112
+ KeywordFolksnomyEntityType,
6113
+ Label,
6114
+ Link,
6115
+ LinkEntityType,
5665
6116
  Motivation,
6117
+ Note,
6118
+ NoteEntityType,
6119
+ Organization,
6120
+ OrganizationEntityType,
5666
6121
  Person,
5667
6122
  PersonEntityType,
6123
+ PhysicalThing,
6124
+ PhysicalThingEntityType,
6125
+ Place,
6126
+ PlaceEntityType,
6127
+ Precision,
6128
+ Quality,
6129
+ RangeSelector,
6130
+ Selector,
5668
6131
  Software,
6132
+ Source,
5669
6133
  Status,
5670
6134
  Target,
6135
+ TextPositionSelector,
6136
+ TextPositionSelectorExtended,
6137
+ TextQuoteSelector,
6138
+ TextQuoteSelectorExtended,
5671
6139
  User,
5672
6140
  VERSION,
5673
6141
  ValidateResult,
5674
6142
  ValidationError,
5675
6143
  WebAnnotation,
6144
+ Work,
6145
+ WorkEntityType,
6146
+ XpathSelector,
6147
+ XpathSelectorExtended,
5676
6148
  ajv,
6149
+ bodyChoiceSchema,
6150
+ bodyEntityTypeSchema,
5677
6151
  bodyIdDescription,
5678
6152
  bodySchema,
6153
+ certaintySchema,
6154
+ citationEntityTypeSchema,
6155
+ citationSchema,
6156
+ conceptualObjectEntityTypeSchema,
6157
+ conceptualObjectSchema,
5679
6158
  contextUri,
6159
+ correctionEntityTypeSchema,
6160
+ correctionSchema,
5680
6161
  creatorSchema,
6162
+ dateEntityTypeSchema,
6163
+ dateSchema,
5681
6164
  definitionSchema,
5682
6165
  defsId,
6166
+ descriptionSchema,
6167
+ eventEntityTypeSchema,
6168
+ eventSchema,
6169
+ formatSchema,
6170
+ keywordEntityTypeSchema,
6171
+ keywordFolksnomyEntityTypeSchema,
6172
+ keywordFolksnomySchema,
6173
+ keywordSchema,
6174
+ labelSchema,
6175
+ languageSchema,
6176
+ linkEntityTypeSchema,
6177
+ linkSchema,
6178
+ noteEntityTypeSchema,
6179
+ noteSchema,
6180
+ organizationEntityTypeSchema,
6181
+ organizationSchema,
5683
6182
  personEntityTypeSchema,
5684
6183
  personSchema,
6184
+ physicalThingEntityTypeSchema,
6185
+ physicalThingSchema,
6186
+ placeEntityTypeSchema,
6187
+ placeSchema,
6188
+ precisionSchema,
6189
+ rangeSelectorSchema,
5685
6190
  schemaContext,
5686
6191
  schemaId,
6192
+ selectorIdDescription,
6193
+ selectorRefinedByDescription,
6194
+ selectorSchema,
5687
6195
  softwareSchema,
6196
+ sourceSchema,
5688
6197
  targetSchema,
6198
+ textPositionSelectorExtendedSchema,
6199
+ textPositionSelectorSchema,
6200
+ textQuoteSelectorExtendedSchema,
6201
+ textQuoteSelectorSchema,
5689
6202
  v1,
5690
6203
  validate,
5691
6204
  validator,
5692
- webAnnotationSchema
6205
+ webAnnotationSchema,
6206
+ workEntityTypeSchema,
6207
+ workSchema,
6208
+ xpathSelectorExtendedSchema,
6209
+ xpathSelectorSchema
5693
6210
  });