@coasys/ad4m-connect 0.13.0-test-9 → 0.13.0-test-interpretation

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/core.js CHANGED
@@ -39,7 +39,7 @@ var __async = (__this, __arguments, generator) => {
39
39
  };
40
40
 
41
41
  // ../package.json
42
- var version = "0.13.0-test-9";
42
+ var version = "0.13.0-test-interpretation";
43
43
 
44
44
  // src/utils.ts
45
45
  function isEmbedded() {
@@ -395,15 +395,16 @@ var ApiClient = class {
395
395
  if (this._wsReady)
396
396
  await this._wsReady;
397
397
  }
398
- async call(type, params) {
398
+ async call(type, params, timeoutMs) {
399
399
  await this._ready();
400
400
  const id = nextId();
401
401
  const message = { id, type, params: params || {} };
402
+ const effectiveTimeout = timeoutMs ?? DEFAULT_TIMEOUT_MS;
402
403
  return new Promise((resolve, reject) => {
403
404
  const timer = setTimeout(() => {
404
405
  this._pendingCalls.delete(id);
405
- reject(new RpcError(408, `RPC call '${type}' timed out after ${DEFAULT_TIMEOUT_MS}ms`));
406
- }, DEFAULT_TIMEOUT_MS);
406
+ reject(new RpcError(408, `RPC call '${type}' timed out after ${effectiveTimeout}ms`));
407
+ }, effectiveTimeout);
407
408
  this._pendingCalls.set(id, {
408
409
  resolve,
409
410
  reject,
@@ -1126,6 +1127,13 @@ var SHACLShape = class {
1126
1127
  target: `literal:string:${JSON.stringify(this.destructor_actions)}`
1127
1128
  });
1128
1129
  }
1130
+ if (this.interpretationHint) {
1131
+ links.push({
1132
+ source: this.nodeShapeUri,
1133
+ predicate: "ad4m://interpretation_hint",
1134
+ target: `literal:string:${this.interpretationHint}`
1135
+ });
1136
+ }
1129
1137
  for (let i = 0; i < this.properties.length; i++) {
1130
1138
  const prop = this.properties[i];
1131
1139
  let propShapeId;
@@ -1314,6 +1322,20 @@ var SHACLShape = class {
1314
1322
  target: `literal:string:${JSON.stringify(prop.transform)}`
1315
1323
  });
1316
1324
  }
1325
+ if (prop.interpretationHint) {
1326
+ links.push({
1327
+ source: propShapeId,
1328
+ predicate: "ad4m://interpretation_hint",
1329
+ target: `literal:string:${prop.interpretationHint}`
1330
+ });
1331
+ }
1332
+ if (prop.identity) {
1333
+ links.push({
1334
+ source: propShapeId,
1335
+ predicate: "ad4m://identity",
1336
+ target: `literal:string:true`
1337
+ });
1338
+ }
1317
1339
  }
1318
1340
  return links;
1319
1341
  }
@@ -1336,6 +1358,10 @@ var SHACLShape = class {
1336
1358
  } catch (e) {
1337
1359
  }
1338
1360
  }
1361
+ const classHintLink = links.find((l) => l.source === shapeUri && l.predicate === "ad4m://interpretation_hint");
1362
+ if (classHintLink) {
1363
+ shape.interpretationHint = classHintLink.target.replace(/^literal:\/\/string:|^literal:string:/, "");
1364
+ }
1339
1365
  const propShapeLinks = links.filter((l) => l.source === shapeUri && l.predicate === "sh://property");
1340
1366
  for (const propLink of propShapeLinks) {
1341
1367
  const propShapeId = propLink.target;
@@ -1496,6 +1522,14 @@ var SHACLShape = class {
1496
1522
  val = val.substring(8);
1497
1523
  prop.filter = val === "true";
1498
1524
  }
1525
+ const interpretationHintLink = links.find((l) => l.source === propShapeId && l.predicate === "ad4m://interpretation_hint");
1526
+ if (interpretationHintLink) {
1527
+ prop.interpretationHint = interpretationHintLink.target.replace(/^literal:\/\/string:|^literal:string:/, "");
1528
+ }
1529
+ const identityLink = links.find((l) => l.source === propShapeId && l.predicate === "ad4m://identity");
1530
+ if (identityLink) {
1531
+ prop.identity = identityLink.target.replace(/^literal:\/\/string:|^literal:string:/, "") === "true";
1532
+ }
1499
1533
  const transformLink = links.find((l) => l.source === propShapeId && l.predicate === "ad4m://transform");
1500
1534
  if (transformLink) {
1501
1535
  const jsonStr = transformLink.target.replace(/^literal:\/\/string:|^literal:string:/, "");
@@ -1518,6 +1552,7 @@ var SHACLShape = class {
1518
1552
  node_shape_uri: this.nodeShapeUri,
1519
1553
  target_class: this.targetClass,
1520
1554
  parent_shapes: this.parentShapes.length > 0 ? this.parentShapes : void 0,
1555
+ interpretation_hint: this.interpretationHint,
1521
1556
  properties: this.properties.map((p) => ({
1522
1557
  path: p.path,
1523
1558
  name: p.name,
@@ -1544,7 +1579,8 @@ var SHACLShape = class {
1544
1579
  where_filter: p.whereFilter,
1545
1580
  where_predicates: p.wherePredicates,
1546
1581
  filter: p.filter,
1547
- transform: p.transform
1582
+ transform: p.transform,
1583
+ interpretation_hint: p.interpretationHint
1548
1584
  })),
1549
1585
  constructor_actions: this.constructor_actions,
1550
1586
  destructor_actions: this.destructor_actions
@@ -1582,7 +1618,8 @@ var SHACLShape = class {
1582
1618
  whereFilter: p.where_filter,
1583
1619
  wherePredicates: p.where_predicates,
1584
1620
  filter: p.filter,
1585
- transform: p.transform
1621
+ transform: p.transform,
1622
+ interpretationHint: p.interpretation_hint
1586
1623
  });
1587
1624
  }
1588
1625
  if (json.constructor_actions) {
@@ -1596,10 +1633,13 @@ var SHACLShape = class {
1596
1633
  shape.addParentShape(ps);
1597
1634
  }
1598
1635
  }
1636
+ if (json.interpretation_hint) {
1637
+ shape.interpretationHint = json.interpretation_hint;
1638
+ }
1599
1639
  return shape;
1600
1640
  }
1601
1641
  };
1602
- function buildSHACL(subjectName, target, properties, allRelationsMeta, conformanceFilterFn, seedCache) {
1642
+ function buildSHACL(subjectName, target, properties, allRelationsMeta, conformanceFilterFn, seedCache, interpretationHint) {
1603
1643
  const obj = target.prototype;
1604
1644
  let namespace = "ad4m://";
1605
1645
  if (Object.keys(properties).length > 0) {
@@ -1622,6 +1662,9 @@ function buildSHACL(subjectName, target, properties, allRelationsMeta, conforman
1622
1662
  const shapeUri = `${namespace}${subjectName}Shape`;
1623
1663
  const targetClass = `${namespace}${subjectName}`;
1624
1664
  const shape = new SHACLShape(shapeUri, targetClass);
1665
+ if (interpretationHint) {
1666
+ shape.interpretationHint = interpretationHint;
1667
+ }
1625
1668
  if (seedCache) {
1626
1669
  seedCache({ shape, name: subjectName });
1627
1670
  }
@@ -1682,6 +1725,12 @@ function buildSHACL(subjectName, target, properties, allRelationsMeta, conforman
1682
1725
  if (propMeta.transform) {
1683
1726
  propShape.transform = propMeta.transform;
1684
1727
  }
1728
+ if (propMeta.interpretationHint) {
1729
+ propShape.interpretationHint = propMeta.interpretationHint;
1730
+ }
1731
+ if (propMeta.identity) {
1732
+ propShape.identity = true;
1733
+ }
1685
1734
  if (propMeta.prologSetter) {
1686
1735
  console.warn(`[SHACL Generation] Custom Prolog setter for property '${propName}' in class '${subjectName}' is not yet supported. The property will be created without setter actions. Consider using standard writable properties or provide explicit SHACL JSON.`);
1687
1736
  } else if (propMeta.writable && propMeta.through) {
@@ -1955,6 +2004,61 @@ function buildConformanceFilter(relationPredicate, targetClass) {
1955
2004
  return void 0;
1956
2005
  }
1957
2006
  }
2007
+ function applyPropertyMetadata(opts) {
2008
+ return function(target, key) {
2009
+ const writable = opts.readOnly ? false : opts.through ? true : false;
2010
+ if (opts.required && !opts.initial) {
2011
+ throw new Error("SubjectProperty requires an 'initial' option if 'required' is true");
2012
+ }
2013
+ if (!opts.through && !opts.prologGetter && !opts.getter) {
2014
+ throw new Error("SubjectProperty requires either 'through' or 'prologGetter' or 'getter' option");
2015
+ }
2016
+ const ctor = target.constructor;
2017
+ if (!propertyRegistry.has(ctor))
2018
+ propertyRegistry.set(ctor, {});
2019
+ propertyRegistry.get(ctor)[key] = { ...opts, writable };
2020
+ if (writable) {
2021
+ const value = key;
2022
+ target[`set${capitalize(value)}`] = () => {
2023
+ };
2024
+ }
2025
+ Object.defineProperty(target, key, { configurable: true, writable: true });
2026
+ };
2027
+ }
2028
+ function Optional(opts) {
2029
+ return applyPropertyMetadata({
2030
+ ...opts,
2031
+ required: opts.required ?? false,
2032
+ readOnly: opts.readOnly ?? false
2033
+ });
2034
+ }
2035
+ function Flag(opts) {
2036
+ return function(target, key) {
2037
+ if (!opts.through && !opts.value) {
2038
+ throw new Error("SubjectFlag requires a 'through' and 'value' option");
2039
+ }
2040
+ if (!opts.through) {
2041
+ throw new Error("SubjectFlag requires a 'through' option");
2042
+ }
2043
+ if (!opts.value) {
2044
+ throw new Error("SubjectFlag requires a 'value' option");
2045
+ }
2046
+ const entry = {
2047
+ through: opts.through,
2048
+ required: true,
2049
+ initial: opts.value,
2050
+ flag: true,
2051
+ readOnly: true,
2052
+ writable: false
2053
+ };
2054
+ const ctor = target.constructor;
2055
+ if (!propertyRegistry.has(ctor))
2056
+ propertyRegistry.set(ctor, {});
2057
+ propertyRegistry.get(ctor)[key] = entry;
2058
+ target[key] = opts.value;
2059
+ Object.defineProperty(target, key, { configurable: true, writable: true });
2060
+ };
2061
+ }
1958
2062
  function Model$1(opts) {
1959
2063
  return function(target) {
1960
2064
  target.prototype.className = opts.name;
@@ -1963,11 +2067,76 @@ function Model$1(opts) {
1963
2067
  return buildSDNA(opts.name, target.prototype, getPropertiesMetadata(target), getRelationsMetadata(target));
1964
2068
  };
1965
2069
  target.generateSHACL = function() {
1966
- return getMemoizedSHACL(target, (seed) => buildSHACL(opts.name, target, getPropertiesMetadata(target), getRelationsMetadata(target), buildConformanceFilter, seed));
2070
+ return getMemoizedSHACL(target, (seed) => buildSHACL(opts.name, target, getPropertiesMetadata(target), getRelationsMetadata(target), buildConformanceFilter, seed, opts.interpretationHint));
1967
2071
  };
1968
2072
  Object.defineProperty(target, "type", { configurable: true });
1969
2073
  };
1970
2074
  }
2075
+ function Property(opts) {
2076
+ const required = opts.required ?? false;
2077
+ return applyPropertyMetadata({
2078
+ ...opts,
2079
+ required,
2080
+ readOnly: opts.readOnly ?? false,
2081
+ resolveLanguage: opts.resolveLanguage ?? "literal",
2082
+ initial: opts.initial ?? (required ? "literal:string:uninitialized" : void 0)
2083
+ });
2084
+ }
2085
+ function resolveRelationArgs(first, second) {
2086
+ const opts = typeof first === "function" ? { ...second || {}, target: first } : first;
2087
+ if (opts.getter) {
2088
+ if (opts.through) {
2089
+ throw new Error("Relation decorator: `getter` and `through` are mutually exclusive. Use `getter` alone for custom read-only relations, or `through` (with optional `target`) for standard link-based relations.");
2090
+ }
2091
+ if (opts.target) {
2092
+ throw new Error("Relation decorator: `getter` and `target` are mutually exclusive. `target` auto-generates a conformance getter from the model shape; providing both is contradictory.");
2093
+ }
2094
+ if (opts.where) {
2095
+ throw new Error("Relation decorator: `where` and `getter` are mutually exclusive. Use `where` for DSL-based filtering, or `getter` for raw getter expression.");
2096
+ }
2097
+ return opts;
2098
+ }
2099
+ if (!opts.through) {
2100
+ opts.through = "ad4m://has_child";
2101
+ }
2102
+ if (opts.where) {
2103
+ if (opts.filter === false) {
2104
+ throw new Error("Relation decorator: `where` and `filter: false` are contradictory. `where` adds filtering constraints; `filter: false` disables filtering.");
2105
+ }
2106
+ }
2107
+ return opts;
2108
+ }
2109
+ function HasMany(first, second) {
2110
+ const opts = resolveRelationArgs(first, second);
2111
+ return function(target, key) {
2112
+ const ctor = target.constructor;
2113
+ if (!relationRegistry.has(ctor))
2114
+ relationRegistry.set(ctor, {});
2115
+ const map = relationRegistry.get(ctor);
2116
+ map[key] = {
2117
+ predicate: opts.through,
2118
+ target: opts.target,
2119
+ kind: "hasMany",
2120
+ local: opts.local,
2121
+ ...opts.getter && { getter: opts.getter },
2122
+ ...opts.filter !== void 0 && { filter: opts.filter },
2123
+ ...opts.where && { where: opts.where }
2124
+ };
2125
+ const relKey = key;
2126
+ if (opts.through) {
2127
+ target[`add${capitalize(relKey)}`] = async function(arg, batchId) {
2128
+ return this.addRelationValue(relKey, arg, batchId);
2129
+ };
2130
+ target[`remove${capitalize(relKey)}`] = async function(arg, batchId) {
2131
+ return this.removeRelationValue(relKey, arg, batchId);
2132
+ };
2133
+ target[`set${capitalize(relKey)}`] = async function(arg, batchId) {
2134
+ return this.setRelationValues(relKey, arg, batchId);
2135
+ };
2136
+ }
2137
+ Object.defineProperty(target, relKey, { configurable: true, writable: true });
2138
+ };
2139
+ }
1971
2140
  var cache = /* @__PURE__ */ new Map();
1972
2141
  var DEFAULT_TTL_MS = 200;
1973
2142
  function makeKey(perspectiveUUID, queryText) {
@@ -2475,6 +2644,24 @@ var PerspectiveProxy = class {
2475
2644
  async get(query) {
2476
2645
  return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").queryLinks(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid, query);
2477
2646
  }
2647
+ async runInterpretation(transcript, basePrefix, classes) {
2648
+ return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").runInterpretation(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid, transcript, basePrefix, classes);
2649
+ }
2650
+ async addAutoProcessor(config) {
2651
+ return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").addAutoProcessor(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid, config);
2652
+ }
2653
+ async interpretationOverlays() {
2654
+ return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").interpretationOverlays(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid);
2655
+ }
2656
+ async acceptInterpretation(base, property) {
2657
+ return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").acceptInterpretation(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid, base, property);
2658
+ }
2659
+ async rejectInterpretation(base, property) {
2660
+ return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").rejectInterpretation(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid, base, property);
2661
+ }
2662
+ async addAutoProcessorEventListener(cb) {
2663
+ return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").addAutoProcessorEventListener(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid, cb);
2664
+ }
2478
2665
  async infer(query) {
2479
2666
  return await __classPrivateFieldGet$a(this, _PerspectiveProxy_client, "f").queryProlog(__classPrivateFieldGet$a(this, _PerspectiveProxy_handle, "f").uuid, query);
2480
2667
  }
@@ -3604,6 +3791,31 @@ var PerspectiveClient = class {
3604
3791
  async linkMutations(uuid, mutations, status) {
3605
3792
  return __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").call("perspective.linkMutations", { uuid, mutations, status });
3606
3793
  }
3794
+ async runInterpretation(uuid, transcript, basePrefix, classes) {
3795
+ const RUN_INTERPRETATION_TIMEOUT_MS = 20 * 60 * 1e3;
3796
+ return __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").call("perspective.runInterpretation", { uuid, transcript, basePrefix, classes }, RUN_INTERPRETATION_TIMEOUT_MS);
3797
+ }
3798
+ async addAutoProcessor(uuid, config) {
3799
+ return __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").call("perspective.addAutoProcessor", { uuid, ...config });
3800
+ }
3801
+ async interpretationOverlays(uuid) {
3802
+ return __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").call("perspective.interpretationOverlays", { uuid });
3803
+ }
3804
+ async acceptInterpretation(uuid, base, property) {
3805
+ return __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").call("perspective.acceptInterpretation", { uuid, base, property });
3806
+ }
3807
+ async rejectInterpretation(uuid, base, property) {
3808
+ return __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").call("perspective.rejectInterpretation", { uuid, base, property });
3809
+ }
3810
+ async addAutoProcessorEventListener(uuid, cb) {
3811
+ const unsub = __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").subscribe((data) => {
3812
+ if (data.type === "auto-processor-event" && data.perspectiveUuid === uuid) {
3813
+ cb(data);
3814
+ }
3815
+ });
3816
+ __classPrivateFieldGet$9(this, _PerspectiveClient_unsubscribers, "f").push(unsub);
3817
+ await __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").waitForSubscription();
3818
+ }
3607
3819
  async addLinkExpression(uuid, link, status = "shared", batchId) {
3608
3820
  return __classPrivateFieldGet$9(this, _PerspectiveClient_apiClient, "f").call("perspective.addLinkExpression", { uuid, link, status, batchId });
3609
3821
  }
@@ -9035,7 +9247,7 @@ var AIClient = class {
9035
9247
  async embed(modelId, text) {
9036
9248
  const aiEmbed = await __classPrivateFieldGet$2(this, _AIClient_apiClient, "f").call("ai.embed", { modelId, text });
9037
9249
  const compressed = base64Js.toByteArray(aiEmbed);
9038
- const decompressed = JSON.parse(pako.inflate(compressed, { to: "string" }));
9250
+ const decompressed = JSON.parse(new TextDecoder().decode(pako.inflate(compressed)));
9039
9251
  return decompressed;
9040
9252
  }
9041
9253
  async openTranscriptionStream(modelId, streamCallback, params) {
@@ -10895,6 +11107,139 @@ var PerspectiveState;
10895
11107
  PerspectiveState2["LinkLanguageInstalledButNotSynced"] = "LINK_LANGUAGE_INSTALLED_BUT_NOT_SYNCED";
10896
11108
  PerspectiveState2["Synced"] = "SYNCED";
10897
11109
  })(PerspectiveState || (PerspectiveState = {}));
11110
+ var __decorate = function(decorators, target, key, desc) {
11111
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
11112
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
11113
+ r = Reflect.decorate(decorators, target, key, desc);
11114
+ else
11115
+ for (var i = decorators.length - 1; i >= 0; i--)
11116
+ if (d = decorators[i])
11117
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
11118
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
11119
+ };
11120
+ var __metadata = function(k, v) {
11121
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
11122
+ return Reflect.metadata(k, v);
11123
+ };
11124
+ var AutoProcessorConfig = class AutoProcessorConfig2 extends Ad4mModel {
11125
+ constructor() {
11126
+ super(...arguments);
11127
+ this.type = "ad4m://AutoProcessor";
11128
+ this.processorId = "";
11129
+ this.sourceScopeQuery = "";
11130
+ this.interpretationClasses = [];
11131
+ this.debounceMs = "200";
11132
+ this.batchMax = "32";
11133
+ this.claimTtlMs = "60000";
11134
+ }
11135
+ };
11136
+ __decorate([
11137
+ Flag({ through: "rdf://type", value: "ad4m://AutoProcessor" }),
11138
+ __metadata("design:type", String)
11139
+ ], AutoProcessorConfig.prototype, "type", void 0);
11140
+ __decorate([
11141
+ Property({ through: "ad4m://processor_id", required: true, identity: true }),
11142
+ __metadata("design:type", String)
11143
+ ], AutoProcessorConfig.prototype, "processorId", void 0);
11144
+ __decorate([
11145
+ Property({ through: "ad4m://source_scope_query", required: true }),
11146
+ __metadata("design:type", String)
11147
+ ], AutoProcessorConfig.prototype, "sourceScopeQuery", void 0);
11148
+ __decorate([
11149
+ Optional({ through: "ad4m://base_prefix", resolveLanguage: "literal" }),
11150
+ __metadata("design:type", String)
11151
+ ], AutoProcessorConfig.prototype, "basePrefix", void 0);
11152
+ __decorate([
11153
+ HasMany({ through: "ad4m://interpretation_class" }),
11154
+ __metadata("design:type", Array)
11155
+ ], AutoProcessorConfig.prototype, "interpretationClasses", void 0);
11156
+ __decorate([
11157
+ Property({ through: "ad4m://debounce_ms", required: true }),
11158
+ __metadata("design:type", String)
11159
+ ], AutoProcessorConfig.prototype, "debounceMs", void 0);
11160
+ __decorate([
11161
+ Optional({ through: "ad4m://batch_min", resolveLanguage: "literal" }),
11162
+ __metadata("design:type", String)
11163
+ ], AutoProcessorConfig.prototype, "batchMin", void 0);
11164
+ __decorate([
11165
+ Property({ through: "ad4m://batch_max", required: true }),
11166
+ __metadata("design:type", String)
11167
+ ], AutoProcessorConfig.prototype, "batchMax", void 0);
11168
+ __decorate([
11169
+ Optional({ through: "ad4m://max_wait_ms", resolveLanguage: "literal" }),
11170
+ __metadata("design:type", String)
11171
+ ], AutoProcessorConfig.prototype, "maxWaitMs", void 0);
11172
+ __decorate([
11173
+ Property({ through: "ad4m://claim_ttl_ms", required: true }),
11174
+ __metadata("design:type", String)
11175
+ ], AutoProcessorConfig.prototype, "claimTtlMs", void 0);
11176
+ __decorate([
11177
+ Optional({ through: "ad4m://source_window_ms", resolveLanguage: "literal" }),
11178
+ __metadata("design:type", String)
11179
+ ], AutoProcessorConfig.prototype, "sourceWindowMs", void 0);
11180
+ __decorate([
11181
+ Optional({ through: "ad4m://dedup_strategy", resolveLanguage: "literal" }),
11182
+ __metadata("design:type", String)
11183
+ ], AutoProcessorConfig.prototype, "dedupStrategy", void 0);
11184
+ AutoProcessorConfig = __decorate([
11185
+ Model$1({ name: "AutoProcessorConfig" })
11186
+ ], AutoProcessorConfig);
11187
+ var InterpretationRun = class InterpretationRun2 extends Ad4mModel {
11188
+ constructor() {
11189
+ super(...arguments);
11190
+ this.type = "ad4m://interpretation-run";
11191
+ this.runId = "";
11192
+ this.sources = [];
11193
+ }
11194
+ };
11195
+ __decorate([
11196
+ Flag({ through: "ad4m://type", value: "ad4m://interpretation-run" }),
11197
+ __metadata("design:type", String)
11198
+ ], InterpretationRun.prototype, "type", void 0);
11199
+ __decorate([
11200
+ Property({ through: "ad4m://interp/run_id", required: true, identity: true }),
11201
+ __metadata("design:type", String)
11202
+ ], InterpretationRun.prototype, "runId", void 0);
11203
+ __decorate([
11204
+ Optional({ through: "ad4m://interp/model", resolveLanguage: "literal" }),
11205
+ __metadata("design:type", String)
11206
+ ], InterpretationRun.prototype, "model", void 0);
11207
+ __decorate([
11208
+ Optional({ through: "ad4m://interp/prompt_version", resolveLanguage: "literal" }),
11209
+ __metadata("design:type", String)
11210
+ ], InterpretationRun.prototype, "promptVersion", void 0);
11211
+ __decorate([
11212
+ Optional({ through: "ad4m://interp/ran_at", resolveLanguage: "literal" }),
11213
+ __metadata("design:type", String)
11214
+ ], InterpretationRun.prototype, "ranAt", void 0);
11215
+ __decorate([
11216
+ Optional({ through: "ad4m://interp/processor", resolveLanguage: "literal" }),
11217
+ __metadata("design:type", String)
11218
+ ], InterpretationRun.prototype, "processor", void 0);
11219
+ __decorate([
11220
+ HasMany({ through: "ad4m://interp/sources" }),
11221
+ __metadata("design:type", Array)
11222
+ ], InterpretationRun.prototype, "sources", void 0);
11223
+ InterpretationRun = __decorate([
11224
+ Model$1({ name: "InterpretationRun" })
11225
+ ], InterpretationRun);
11226
+ var InterpretationOverlay = class InterpretationOverlay2 extends Ad4mModel {
11227
+ constructor() {
11228
+ super(...arguments);
11229
+ this.kind = "";
11230
+ }
11231
+ };
11232
+ __decorate([
11233
+ Property({ through: "ad4m://interp/kind", required: true, resolveLanguage: "literal" }),
11234
+ __metadata("design:type", String)
11235
+ ], InterpretationOverlay.prototype, "kind", void 0);
11236
+ __decorate([
11237
+ Optional({ through: "ad4m://interp/run", resolveLanguage: "literal" }),
11238
+ __metadata("design:type", String)
11239
+ ], InterpretationOverlay.prototype, "run", void 0);
11240
+ InterpretationOverlay = __decorate([
11241
+ Model$1({ name: "InterpretationOverlay" })
11242
+ ], InterpretationOverlay);
10898
11243
  var PerspectiveDiffExpression = class extends ExpressionGeneric() {
10899
11244
  };
10900
11245
  var _SmartLiteral_perspective;