@uipath/maestro-builder-sdk 6.101.0 → 6.103.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/api-index.md +22 -22
  2. package/dist/api-members.md +30 -30
  3. package/dist/core/actions.d.ts +6 -0
  4. package/dist/core/actions.js +7 -0
  5. package/dist/core/binding-messages.d.ts +33 -1
  6. package/dist/core/binding-messages.js +51 -0
  7. package/dist/core/connector-option-keys.d.ts +4 -0
  8. package/dist/core/connector-option-keys.js +9 -0
  9. package/dist/core/entity-schema.d.ts +94 -0
  10. package/dist/core/entity-schema.js +58 -0
  11. package/dist/core/event-subscription.d.ts +8 -0
  12. package/dist/core/event-subscription.js +2 -4
  13. package/dist/core/nodes/node-type.d.ts +25 -0
  14. package/dist/core/nodes/versioned.d.ts +3 -1
  15. package/dist/core/nodes/versioned.js +1 -0
  16. package/dist/core/option-keys.d.ts +62 -0
  17. package/dist/core/option-keys.js +66 -0
  18. package/dist/core/refusals.d.ts +10 -0
  19. package/dist/core/refusals.js +12 -0
  20. package/dist/core/resource-resolution.d.ts +9 -0
  21. package/dist/flow-node-type.d.ts +31 -1
  22. package/dist/flow-option-keys.d.ts +22 -0
  23. package/dist/flow-option-keys.js +33 -0
  24. package/dist/flow-sdk.js +5 -9
  25. package/dist/nodes/agent/flow/inline-agent.js +2 -4
  26. package/dist/nodes/agent/flow/node-type.js +12 -0
  27. package/dist/nodes/ai-patterns/flow/node-type.js +6 -0
  28. package/dist/nodes/connector/flow/event-trigger.js +4 -2
  29. package/dist/nodes/connector/flow/event-wait.js +4 -2
  30. package/dist/nodes/connector/flow/node-type.js +5 -4
  31. package/dist/nodes/connector/flow/raw-node.js +1 -1
  32. package/dist/nodes/conversation/flow/node-type.js +9 -0
  33. package/dist/nodes/data-fabric/flow/check.js +214 -0
  34. package/dist/nodes/data-fabric/flow/verbs.js +10 -0
  35. package/dist/nodes/delay/flow/node-type.js +4 -0
  36. package/dist/nodes/document/flow/ixp.js +4 -0
  37. package/dist/nodes/document/flow/node-type.js +6 -0
  38. package/dist/nodes/hitl/flow/node-type.js +4 -0
  39. package/dist/nodes/http/flow/check.js +55 -0
  40. package/dist/nodes/http/flow/node-type.js +7 -4
  41. package/dist/nodes/process/flow/node-type.js +10 -0
  42. package/dist/nodes/queue/flow/node-type.js +4 -0
  43. package/dist/nodes/script/flow/node-type.js +4 -0
  44. package/dist/nodes/transform/flow/node-type.js +4 -0
  45. package/dist/nodes/trigger/flow/check.js +193 -2
  46. package/dist/nodes/trigger/flow/node-type.js +6 -0
  47. package/dist/nodes/trigger/flow/spec.d.ts +10 -1
  48. package/dist/registry/prepare/entity-schema.d.ts +40 -0
  49. package/dist/registry/prepare/entity-schema.js +135 -0
  50. package/dist/registry/prepare/resources.d.ts +12 -5
  51. package/dist/registry/prepare/resources.js +26 -4
  52. package/dist/registry/prepare-cli.js +38 -3
  53. package/dist/registry/uip/commands.d.ts +19 -0
  54. package/dist/registry/uip/commands.js +25 -0
  55. package/dist/serialize.js +73 -1
  56. package/package.json +2 -2
package/dist/flow-sdk.js CHANGED
@@ -1041,18 +1041,14 @@ class FlowBuilder extends StepList {
1041
1041
  }
1042
1042
  const b = new StepList();
1043
1043
  prefixFn?.(b);
1044
+ // A key the options type does not name is kept as written, so the
1045
+ // serializer refuses it (FLOW_UNKNOWN_OPTION) instead of dropping it.
1046
+ const { inputs: _inputs, version, label, updates, ...unknown } = options ?? {};
1047
+ const kept = { ...(version !== undefined ? { version } : {}), ...(label !== undefined ? { label } : {}), ...(updates !== undefined ? { updates } : {}), ...unknown };
1044
1048
  this._entryPoints.push({
1045
1049
  id,
1046
1050
  trigger: trigger,
1047
- ...(options?.version !== undefined || options?.label !== undefined || options?.updates !== undefined
1048
- ? {
1049
- options: {
1050
- ...(options.version !== undefined ? { version: options.version } : {}),
1051
- ...(options.label !== undefined ? { label: options.label } : {}),
1052
- ...(options.updates !== undefined ? { updates: options.updates } : {}),
1053
- },
1054
- }
1055
- : {}),
1051
+ ...(Object.keys(kept).length > 0 ? { options: kept } : {}),
1056
1052
  inputs,
1057
1053
  steps: b.steps,
1058
1054
  });
@@ -433,8 +433,7 @@ export function attachAgentResources(s, ctx, source, who, toolVariables = new Ma
433
433
  // Its labels are bindings.json's to judge, as a connector step's are:
434
434
  // refused ahead of the library, so a run without one still hears about them.
435
435
  const where = `${who.toLowerCase()} "${step}"'s connector tool "${tr.connector}/${tr.operation}"`;
436
- ctx.resolveBinding(tr.connection, 'connection', where, { key: tr.connector, action: tr.operation });
437
- ctx.resolveBinding(tr.folder, 'folder', where, { key: tr.connector, action: tr.operation });
436
+ ctx.resolveBindingPair(tr, where, { key: tr.connector, action: tr.operation });
438
437
  // Its node id is still claimed, as with a library, so the ids derived
439
438
  // for the tools after it, and another resource's `nodeId` that takes
440
439
  // one, are judged as compile with a library judges them.
@@ -464,8 +463,7 @@ export function attachAgentResources(s, ctx, source, who, toolVariables = new Ma
464
463
  // Emitting none of them left the tool with no connection anywhere.
465
464
  const where = `${who.toLowerCase()} "${step}"'s connector tool "${tr.connector}/${tr.operation}"`;
466
465
  const target = { key: tr.connector, action: tr.operation };
467
- const conn = ctx.resolveBinding(tr.connection, 'connection', where, target);
468
- const folder = ctx.resolveBinding(tr.folder, 'folder', where, target);
466
+ const { connectionId: conn, folderKey: folder } = ctx.resolveBindingPair(tr, where, target);
469
467
  ctx.bindConnection({
470
468
  model: rc.v1def?.model, connectorKey: rc.connectorKey, connectionId: conn,
471
469
  ...(folder !== undefined ? { folderKey: folder } : {}),
@@ -18,6 +18,7 @@ import { checkAgentResources, checkConversationalAgent, checkInlineAgent, checkI
18
18
  import { INLINE_AGENT_DEFAULT_VERSION, INLINE_AGENT_VERSIONS, attachAgentResources, toolArguments, serializeInlineAgent, } from './inline-agent.js';
19
19
  import { liftAgentResources, liftInlineAgent, printInlineAgent } from './inline-agent-lift.js';
20
20
  import { INLINE_AGENT } from './resources.js';
21
+ import { declareKeys } from '../../../core/option-keys.js';
21
22
  const CREATE_OUTGOING_CALL = 'uipath.conversational.voice.create-outgoing-call';
22
23
  const END_CALL = 'uipath.conversational.voice.end-call';
23
24
  const VOICE_AGENT = 'uipath.agent.voice';
@@ -380,8 +381,15 @@ function createOutgoingCallAt(version) {
380
381
  output: opaque,
381
382
  };
382
383
  }
384
+ /** Every key of each agent factory's options (builder-sdk#1990); `tsc` holds each list to its type. */
385
+ const CALL_OPTIONS = { inputs: declareKeys({ from: true, to: true }) };
386
+ const END_CALL_OPTIONS = { inputs: declareKeys({ callContext: true }) };
387
+ const VOICE_AGENT_OPTIONS = { inputs: declareKeys({ systemPrompt: true, inputs: true, callContext: true, voice: true, maxIterations: true, source: true, context: true, tools: true, escalation: true }) };
388
+ const CONVERSATIONAL_AGENT_OPTIONS = { inputs: declareKeys({ systemPrompt: true, model: true, settings: true, endExchange: true, temperature: true, maxTokenPerResponse: true, modelMaxTokens: true, maxIterations: true, guardrails: true, source: true, context: true, tools: true, escalation: true }) };
389
+ const INLINE_AGENT_OPTIONS = { inputs: declareKeys({ model: true, systemPrompt: true, userPrompt: true, inputs: true, returns: true, source: true, temperature: true, maxTokenPerResponse: true, modelMaxTokens: true, maxIterations: true, mode: true, guardrails: true, memory: true, context: true, tools: true, escalation: true }) };
383
390
  const createOutgoingCall = {
384
391
  kind: 'createOutgoingCall', typeName: CREATE_OUTGOING_CALL, factory: 'createOutgoingCall',
392
+ optionKeys: CALL_OPTIONS,
385
393
  // 1.1 is definition-only: its output's `callContext` also declares `from` and
386
394
  // `to` (the two numbers). The node itself is the same at both versions. An
387
395
  // unpinned step writes 1.1; `{ version: '1.0' }`, which decompile prints for
@@ -391,6 +399,7 @@ const createOutgoingCall = {
391
399
  };
392
400
  const endCall10 = {
393
401
  kind: 'endCall', typeName: END_CALL, version: '1.0', factory: 'endCall', definition: 'bundled',
402
+ optionKeys: END_CALL_OPTIONS,
394
403
  rawNode: { factory: 'endCall()' },
395
404
  serialize: (spec, ctx) => serializeCall(spec, ctx, END_CALL),
396
405
  deserialize: (node) => liftCall(node, 'endCall'),
@@ -431,6 +440,7 @@ function conversationalAgentAt(version) {
431
440
  }
432
441
  const voiceAgent = {
433
442
  kind: 'voiceAgent', typeName: VOICE_AGENT, factory: 'voiceAgent',
443
+ optionKeys: VOICE_AGENT_OPTIONS,
434
444
  // 1.0 is the first bundled entry, which is what the node was emitted at before
435
445
  // the port; 1.1 adds the error port and is reached by `{ version: '1.1' }`.
436
446
  defaultVersion: '1.0',
@@ -438,6 +448,7 @@ const voiceAgent = {
438
448
  };
439
449
  const conversationalAgent = {
440
450
  kind: 'conversationalAgent', typeName: CONVERSATIONAL_AGENT, factory: 'conversationalAgent',
451
+ optionKeys: CONVERSATIONAL_AGENT_OPTIONS,
441
452
  defaultVersion: '1.6',
442
453
  versions: { '1.6': conversationalAgentAt('1.6'), '1.7': conversationalAgentAt('1.7') },
443
454
  };
@@ -464,6 +475,7 @@ function inlineAgentAt(version) {
464
475
  }
465
476
  const inlineAgent = {
466
477
  kind: 'inlineAgent', typeName: INLINE_AGENT, factory: 'inlineAgent',
478
+ optionKeys: INLINE_AGENT_OPTIONS,
467
479
  // The NEWEST bundled version, not the first (#956): `mode` and `memory` no
468
480
  // longer pick one, so every call shape gets the current definition.
469
481
  defaultVersion: INLINE_AGENT_DEFAULT_VERSION,
@@ -6,6 +6,7 @@
6
6
  * serialized output and printed source unchanged.
7
7
  */
8
8
  import { Expr } from '../../../core/expr.js';
9
+ import { declareKeys } from '../../../core/option-keys.js';
9
10
  /**
10
11
  * Both definitions list `attachment` and `prompt` in `inputDefinition.required`,
11
12
  * as the designer's form does, so `uip maestro flow validate` refuses a node
@@ -91,12 +92,17 @@ function summarizeAt(version) {
91
92
  output: () => ({ kind: 'opaque' }),
92
93
  };
93
94
  }
95
+ /** Every key of each factory's options (builder-sdk#1990); `tsc` holds each list to its type. */
96
+ const SUMMARIZE_OPTIONS = { inputs: declareKeys({ attachment: true, prompt: true, returnCitations: true }) };
97
+ const BATCH_TRANSFORM_OPTIONS = { inputs: declareKeys({ attachment: true, prompt: true, outputColumns: true, enableWebSearchGrounding: true }) };
94
98
  const summarizeType = {
95
99
  kind: 'summarize', typeName: 'uipath.pattern.deep-rag', factory: 'summarize', defaultVersion: '1.1',
100
+ optionKeys: SUMMARIZE_OPTIONS,
96
101
  versions: { '1.1': summarizeAt('1.1'), '1.0': summarizeAt('1.0') },
97
102
  };
98
103
  const batchTransformType = {
99
104
  kind: 'batchTransform', typeName: 'uipath.pattern.batch-transform', version: '1.0', factory: 'batchTransform',
105
+ optionKeys: BATCH_TRANSFORM_OPTIONS,
100
106
  definition: 'bundled',
101
107
  rawNode: { factory: 'batchTransform()' },
102
108
  serialize: ({ inputs }, ctx) => ({
@@ -16,6 +16,7 @@
16
16
  * docs/NODE_TYPE_ARCHITECTURE_DESIGN.md.
17
17
  */
18
18
  import { eventDetail, eventTarget, libraryRequiredForEvent, refuseUnverifiedByoa, resolveEvent } from '../../../core/event-subscription.js';
19
+ import { EVENT_SUBSCRIPTION_KEYS } from '../../../core/connector-option-keys.js';
19
20
  import { liftSubscription, printSubscription, splitEvent } from './event-wait.js';
20
21
  const CONNECTOR_PREFIX = 'uipath.connector.';
21
22
  const PREFIXES = [`${CONNECTOR_PREFIX}trigger.`, `${CONNECTOR_PREFIX}event.`];
@@ -32,8 +33,7 @@ function serializeEventTrigger(spec, ctx) {
32
33
  // mid-flow connector's does, so the pair goes into the flow's `bindings[]` (G-19).
33
34
  const target = eventTarget(sub);
34
35
  const bindingSite = root.isDefault ? 'event trigger' : 'onEvent() entry point';
35
- const connectionId = ctx.resolveBinding(sub.connection, 'connection', bindingSite, target);
36
- const folderKey = ctx.resolveBinding(sub.folder, 'folder', bindingSite, target);
36
+ const { connectionId, folderKey } = ctx.resolveBindingPair(sub, bindingSite, target);
37
37
  ctx.bindConnection({
38
38
  model: rc.v1def?.model,
39
39
  connectorKey: rc.connectorKey, connectionId,
@@ -53,6 +53,8 @@ function serializeEventTrigger(spec, ctx) {
53
53
  }
54
54
  export const eventTriggerType = {
55
55
  kind: 'event',
56
+ // The stringly form's subscription is the author's own object; the descriptor form's is built by the factory.
57
+ optionKeys: { subscription: EVENT_SUBSCRIPTION_KEYS },
56
58
  typeName: `${CONNECTOR_PREFIX}*`,
57
59
  typeNamePrefix: CONNECTOR_PREFIX,
58
60
  // Any name under the two prefixes, an eventless one included: a root of that
@@ -1,3 +1,4 @@
1
+ import { EVENT_SUBSCRIPTION_KEYS } from '../../../core/connector-option-keys.js';
1
2
  import { bindingMissingMessage, missingBindingLabels } from '../../../core/binding-messages.js';
2
3
  import { prepareCommand } from '../../../core/cli-spelling.js';
3
4
  import { commentText } from '../../../core/comment-text.js';
@@ -62,8 +63,7 @@ function serializeEventWait(spec, ctx) {
62
63
  // The platform reaches the connection through the flow's `bindings[]`, as for
63
64
  // a connector operation (board G-19). `eventDetail` refused a node without
64
65
  // both labels, so both resolve here.
65
- const connectionId = ctx.resolveBinding(sub.connection, 'connection', site, target);
66
- const folderKey = ctx.resolveBinding(sub.folder, 'folder', site, target);
66
+ const { connectionId, folderKey } = ctx.resolveBindingPair(sub, site, target);
67
67
  ctx.bindConnection({
68
68
  model: rc.v1def?.model,
69
69
  connectorKey: rc.connectorKey, connectionId: connectionId,
@@ -191,6 +191,8 @@ const eventWait10 = {
191
191
  };
192
192
  export const eventWaitNodeType = {
193
193
  kind: 'waitEvent', typeName: `${EVENT_PREFIX}*`, typeNamePrefix: EVENT_PREFIX, factory: 'waitForEvent',
194
+ // The stringly form's subscription is the author's own object; the descriptor form's is built by the factory.
195
+ optionKeys: { subscription: EVENT_SUBSCRIPTION_KEYS },
194
196
  typeNameMatches: (typeName) => splitEvent(typeName) !== undefined,
195
197
  versionedByDefinition: true,
196
198
  defaultVersion: eventWait10.version,
@@ -1,3 +1,4 @@
1
+ import { CONNECTOR_OPTION_KEYS } from '../../../core/connector-option-keys.js';
1
2
  import { BindingRefusal, bindingMissingMessage, missingBindingLabels } from '../../../core/binding-messages.js';
2
3
  import { PULL_COMMAND, prepareCommand } from '../../../core/cli-spelling.js';
3
4
  import { carriedConnector, carriedDefinitionMismatch, carriedOperationOf, carriedOperationRefusal, } from '../../../core/carried-connector-operation.js';
@@ -119,8 +120,7 @@ function serializeConnector(spec, ctx) {
119
120
  const missing = missingBindingLabels(spec);
120
121
  if (missing.length > 0 && !ctx.drafting)
121
122
  throw new BindingRefusal('BINDING_MISSING', bindingMissingMessage(where, missing, target));
122
- const connection = ctx.resolveBinding(spec.connection, 'connection', where, target);
123
- ctx.resolveBinding(spec.folder, 'folder', where, target);
123
+ const { connectionId: connection } = ctx.resolveBindingPair(spec, where, target);
124
124
  // The connection rides on the refusal, so check's stand-in for this step
125
125
  // still takes part in the file-wide CONNECTION_CONNECTOR_CONFLICT rule.
126
126
  throw new LibraryRequiredRefusal(`connector "${step}" needs a library (pass --library / set $FLOW_SDK_LIBRARY_JSON).`, connection !== undefined && typeof spec.key === 'string' && spec.key !== '' ? { connector: spec.key, connection } : undefined);
@@ -201,8 +201,7 @@ function serializeConnector(spec, ctx) {
201
201
  ctx.draft(refusal.code, refusal.message);
202
202
  unbound = true;
203
203
  }
204
- const conn = ctx.resolveBinding(spec.connection, 'connection', where, target);
205
- const folder = ctx.resolveBinding(spec.folder, 'folder', where, target);
204
+ const { connectionId: conn, folderKey: folder } = ctx.resolveBindingPair(spec, where, target);
206
205
  // The platform reaches the connection through the flow's `bindings[]`, never
207
206
  // through `inputs.detail` — without this pair the run faults with `[102010]`
208
207
  // (board G-19).
@@ -443,6 +442,8 @@ const connector10 = {
443
442
  };
444
443
  export const connectorNodeType = {
445
444
  kind: 'connector', typeName: `${CONNECTOR_PREFIX}*`, typeNamePrefix: CONNECTOR_PREFIX, factory: 'connector',
445
+ // `inputs` are the connector's own fields, which the library checks (CONNECTOR_INPUT); only the options object is closed here.
446
+ optionKeys: { options: CONNECTOR_OPTION_KEYS },
446
447
  typeNameMatches: (typeName) => splitOperation(typeName) !== undefined,
447
448
  versionedByDefinition: true,
448
449
  defaultVersion: connector10.version,
@@ -41,7 +41,7 @@ export function connectorRawNodeRefusal(nodeType) {
41
41
  return (`rawNode("${nodeType}") names a connector operation. A raw node keeps its inputs verbatim, so the `
42
42
  + `emitted node would have no inputs.detail and no connection binding: \`validate\` only warns `
43
43
  + `("Connector is not configured") and the run can never reach Integration Service. `
44
- + `Author it as connector('${key}', '${action}', { ...inputs }, { connection: '<binding>', folder: '<binding>' }). `
44
+ + `Author it as connector('${key}', '${action}', { ...inputs }, { connection: '<connection-label>', folder: '<folder-label>' }). `
45
45
  + `If compile then refuses an input the static library does not carry, run `
46
46
  + `\`${prepareCommand(key, action)}\` — it discovers the connection, writes bindings.json `
47
47
  + `and loads the connection-resolved fields into ./.flow-sdk/connectors-local/ (add \`-f <parent>=<value>\`, e.g. `
@@ -8,6 +8,8 @@
8
8
  import { Expr, toExpr } from '../../../core/expr.js';
9
9
  import { jsonClone } from '../../../core/json-clone.js';
10
10
  import { checkConversational } from './check.js';
11
+ import { declareKeys } from '../../../core/option-keys.js';
12
+ import { ownEntry } from '../../../core/own-entry.js';
11
13
  /**
12
14
  * The definition's `inputDefaults`, which supply the fixed fields the platform's
13
15
  * schema requires (`role: 'assistant'` and `mimeType: 'text/markdown'` on send,
@@ -104,9 +106,16 @@ function conversationAt(kind, typeName, version) {
104
106
  output: () => ({ kind: 'opaque' }),
105
107
  };
106
108
  }
109
+ /** Every key of each factory's options (builder-sdk#1990), by kind; `tsc` holds each list to its type. */
110
+ const CONVERSATION_OPTIONS = {
111
+ sendMessage: { inputs: declareKeys({ conversationId: true, exchangeId: true, content: true, endExchange: true }) },
112
+ waitForMessage: { inputs: declareKeys({ conversationId: true, numExchanges: true }) },
113
+ conversationContext: { inputs: declareKeys({ conversationId: true, exchangeLimit: true }) },
114
+ };
107
115
  function conversationType(kind, typeName, versions) {
108
116
  return {
109
117
  kind, typeName, factory: kind, defaultVersion: '1.0',
118
+ optionKeys: ownEntry(CONVERSATION_OPTIONS, kind),
110
119
  versions: Object.fromEntries(versions.map((v) => [v, conversationAt(kind, typeName, v)])),
111
120
  };
112
121
  }
@@ -6,6 +6,8 @@
6
6
  */
7
7
  import { entityPrepareCommand, } from '../../../core/resource-resolution.js';
8
8
  import { Expr } from '../../../core/expr.js';
9
+ import { nearestName } from '../../../core/edit-distance.js';
10
+ import { entityField, recordedEntitySchema, } from '../../../core/entity-schema.js';
9
11
  export const DATA_FABRIC_DIAGNOSTICS = {
10
12
  DATAFABRIC_NO_ENTITY: { severity: 'error', summary: 'a verb names no entity' },
11
13
  DATAFABRIC_EMPTY_VALUES: { severity: 'error', summary: 'a create writes no non-blank column' },
@@ -20,6 +22,12 @@ export const DATA_FABRIC_DIAGNOSTICS = {
20
22
  DATAFABRIC_FROMREAD_UNKNOWN: { severity: 'error', summary: '{ fromRead } names no read step' },
21
23
  DATAFABRIC_FROMREAD_MULTIPLE: { severity: 'error', summary: "{ fromRead } names a resultMode: 'multiple' query" },
22
24
  DATAFABRIC_DELETE_HAS_NO_OUTPUT: { severity: 'error', summary: "a read of a delete's output" },
25
+ DATAFABRIC_UNKNOWN_FIELD: { severity: 'error', summary: 'a column the recorded entity schema does not have' },
26
+ DATAFABRIC_FIELD_TYPE: { severity: 'error', summary: "a literal that is not a value of its column's type" },
27
+ DATAFABRIC_CHOICE_VALUE: { severity: 'error', summary: "a choice-set filter literal that is not one of the set's numberIds" },
28
+ DATAFABRIC_CHOICE_WRITE_VALUE: { severity: 'warning', summary: "a choice-set write literal that is not one of the set's numberIds" },
29
+ DATAFABRIC_NULL_REQUIRED: { severity: 'error', summary: 'an update that blanks a non-nullable column' },
30
+ DATAFABRIC_REQUIRED_MISSING: { severity: 'error', summary: 'a create that leaves a mandatory column out' },
23
31
  };
24
32
  function checkEntity(inputs, ctx) {
25
33
  // An object is `{ name, folder }`, whose shape the serializer judges
@@ -34,6 +42,9 @@ export function checkRead(inputs, ctx) {
34
42
  checkEntity(inputs, ctx);
35
43
  checkQuery(inputs, ctx);
36
44
  checkScope(inputs, ctx);
45
+ const schema = schemaOf(inputs, ctx);
46
+ if (schema !== undefined)
47
+ checkReadColumns(inputs, schema, ctx);
37
48
  }
38
49
  export function checkCreate(inputs, ctx) {
39
50
  checkEntity(inputs, ctx);
@@ -50,6 +61,9 @@ export function checkCreate(inputs, ctx) {
50
61
  }
51
62
  checkColumns(Object.keys(inputs.values ?? {}), 'values', ctx);
52
63
  checkScope(inputs, ctx);
64
+ const schema = schemaOf(inputs, ctx);
65
+ if (schema !== undefined)
66
+ checkWriteColumns(inputs.values ?? {}, 'values', schema, ctx);
53
67
  }
54
68
  export function checkUpdate(inputs, ctx) {
55
69
  checkEntity(inputs, ctx);
@@ -58,6 +72,9 @@ export function checkUpdate(inputs, ctx) {
58
72
  }
59
73
  checkColumns(Object.keys(inputs.set ?? {}), 'set', ctx);
60
74
  checkScope(inputs, ctx);
75
+ const schema = schemaOf(inputs, ctx);
76
+ if (schema !== undefined)
77
+ checkWriteColumns(inputs.set ?? {}, 'set', schema, ctx);
61
78
  }
62
79
  export function checkWrite(inputs, ctx) {
63
80
  checkEntity(inputs, ctx);
@@ -171,3 +188,200 @@ export function checkFromRead(placements, ctx) {
171
188
  }
172
189
  }
173
190
  }
191
+ // ─── Columns, against the schema `prepare --entity` recorded (#1980) ───────────
192
+ //
193
+ // Data Fabric DROPS a column it does not know rather than rejecting it, and the
194
+ // engine only LOGS a write Data Fabric refuses. So a misspelt filter field reads
195
+ // every record, a misspelt sort returns an arbitrary slice, a misspelt `set` key
196
+ // writes nothing, and a choice-set label in a filter matches nothing — each one
197
+ // validates clean and runs green. Nothing offline can tell a real column from a
198
+ // typo; the ledger can, once `prepare --entity` has read the entity's columns.
199
+ // With no recorded schema these rules say nothing, as before.
200
+ /** The schema recorded for the step's entity, or `undefined`. */
201
+ function schemaOf(inputs, ctx) {
202
+ if (inputs.entity === undefined || (typeof inputs.entity === 'string' && inputs.entity.trim() === ''))
203
+ return undefined;
204
+ return recordedEntitySchema(ctx.options.resources, {
205
+ entity: inputs.entity,
206
+ ...(inputs.folderKey !== undefined ? { folderKey: inputs.folderKey } : {}),
207
+ });
208
+ }
209
+ /** Where the judged columns came from, and how to refresh them: the tail of every message. */
210
+ function provenance(schema) {
211
+ const { row } = schema;
212
+ const ref = row.folderPath !== null ? { name: row.name, folder: row.folderPath } : { name: row.name };
213
+ return ` (columns as \`registry prepare --entity\` recorded them at ${row.resolvedAt ?? 'an unknown time'}; `
214
+ + `if the entity changed since, re-run ${entityPrepareCommand(ref)})`;
215
+ }
216
+ /** `"Stauts"` → `did you mean "Status"?`, or the column list when nothing is close. */
217
+ function nearMiss(name, fields) {
218
+ const names = fields.map((f) => f.name);
219
+ const near = nearestName(name, names);
220
+ if (near !== undefined)
221
+ return `did you mean ${JSON.stringify(near)}? (names are case-sensitive)`;
222
+ const own = fields.filter((f) => f.system !== true).map((f) => f.name);
223
+ return `its columns are ${own.map((n) => JSON.stringify(n)).join(', ')}, plus the system columns`;
224
+ }
225
+ /**
226
+ * The column a query names, or a reason it names none. A dotted related path
227
+ * (`customer.Name`) resolves its first segment, which must be a relationship
228
+ * column; the deeper segments are the related entity's, which the schema does
229
+ * not hold.
230
+ */
231
+ function queryColumn(path, fields) {
232
+ const [head] = path.split('.');
233
+ const field = entityField(fields, head);
234
+ if (field === undefined)
235
+ return { problem: `has no column ${JSON.stringify(head)}: ${nearMiss(head, fields)}` };
236
+ if (path.includes('.') && field.reference === undefined) {
237
+ return { problem: `has no relationship column ${JSON.stringify(head)} to reach ${JSON.stringify(path)} through: ${JSON.stringify(head)} is ${field.type}` };
238
+ }
239
+ return path.includes('.') ? {} : { field };
240
+ }
241
+ function checkReadColumns(inputs, schema, ctx) {
242
+ const entity = JSON.stringify(schema.row.name);
243
+ const unknown = (path, where, effect, problem) => {
244
+ ctx.report('DATAFABRIC_UNKNOWN_FIELD', `"${ctx.step}" ${where} ${JSON.stringify(path)}, but entity ${entity} ${problem}. `
245
+ + `Data Fabric drops a column it does not know instead of rejecting it, so ${effect}.${provenance(schema)}`);
246
+ };
247
+ for (const f of inputs.filters ?? []) {
248
+ const { field, problem } = queryColumn(f.field, schema.fields);
249
+ if (problem !== undefined) {
250
+ unknown(f.field, 'filters on', 'the row filters nothing and the read matches more records than meant', problem);
251
+ continue;
252
+ }
253
+ if (field !== undefined)
254
+ checkValue(field, f.value, `its filter on ${JSON.stringify(f.field)}`, f.operator ?? '=', schema, ctx);
255
+ }
256
+ if (inputs.sort !== undefined) {
257
+ const { problem } = queryColumn(inputs.sort.field, schema.fields);
258
+ if (problem !== undefined)
259
+ unknown(inputs.sort.field, 'sorts on', 'the rows come back unsorted and a limited slice is arbitrary', problem);
260
+ }
261
+ for (const name of inputs.fields ?? []) {
262
+ const { problem } = queryColumn(name, schema.fields);
263
+ if (problem !== undefined)
264
+ unknown(name, 'selects', 'the column is simply missing from every record the step publishes', problem);
265
+ }
266
+ }
267
+ /** A column Data Fabric lets a write set: not system-assigned, not a file, not an auto-number. */
268
+ function writable(field) {
269
+ return field.system !== true && field.attachment !== true && field.autoNumber !== true && !SYSTEM_COLUMNS.has(field.name);
270
+ }
271
+ const isBlank = (v) => !(v instanceof Expr) && String(v ?? '').trim() === '';
272
+ function checkWriteColumns(values, option, schema, ctx) {
273
+ const entity = JSON.stringify(schema.row.name);
274
+ for (const [name, value] of Object.entries(values)) {
275
+ // System columns are DATAFABRIC_SYSTEM_COLUMN's, whatever the schema says.
276
+ if (SYSTEM_COLUMNS.has(name))
277
+ continue;
278
+ const field = entityField(schema.fields, name);
279
+ if (field === undefined) {
280
+ ctx.report('DATAFABRIC_UNKNOWN_FIELD', `"${ctx.step}" writes ${JSON.stringify(name)} in { ${option} }, but entity ${entity} has no such column: `
281
+ + `${nearMiss(name, schema.fields)}. Data Fabric drops a column it does not know instead of rejecting it, so the `
282
+ + `${option === 'set' ? 'update' : 'create'} runs green without writing it.${provenance(schema)}`);
283
+ continue;
284
+ }
285
+ // A blank update writes an explicit null (flow-workbench `buildWriteBodyFromFieldValues`,
286
+ // `emptyValue: 'null'`), which a non-nullable column rejects — and the engine
287
+ // only logs the rejection. A blank create is omitted instead, which is the
288
+ // missing-column rule below.
289
+ if (option === 'set' && isBlank(value) && field.required && writable(field)) {
290
+ ctx.report('DATAFABRIC_NULL_REQUIRED', `"${ctx.step}" sets ${JSON.stringify(name)} to a blank value, which an update writes as null, `
291
+ + `but ${JSON.stringify(name)} is required (non-nullable) on entity ${entity}. Data Fabric rejects the write and the engine only `
292
+ + `logs it, so the record comes back unchanged and the run goes green.${provenance(schema)}`, `give ${JSON.stringify(name)} a real value, or leave it out of { set } to keep the current one`);
293
+ continue;
294
+ }
295
+ checkValue(field, value, `{ ${option} } ${JSON.stringify(name)}`, '=', schema, ctx);
296
+ }
297
+ if (option === 'values') {
298
+ // What an insert must carry: required, writable, and with no server default
299
+ // (flow-workbench `isMandatoryEntityWriteField`). A blank is omitted from the
300
+ // insert, so it counts as missing.
301
+ const missing = schema.fields.filter((f) => f.required && f.hasDefault !== true && writable(f)
302
+ && (!Object.hasOwn(values, f.name) || isBlank(values[f.name])));
303
+ if (missing.length) {
304
+ ctx.report('DATAFABRIC_REQUIRED_MISSING', `"${ctx.step}" creates a record without ${missing.map((f) => JSON.stringify(f.name)).join(', ')}, `
305
+ + `which entity ${entity} requires and has no default for. Data Fabric rejects the insert and the engine only logs it, so the run `
306
+ + `goes green having created nothing.${provenance(schema)}`, `values: { ${missing.map((f) => `${f.name}: <value>`).join(', ')} }`);
307
+ }
308
+ }
309
+ }
310
+ /** The operators whose value is one value of the column's type; `contains` and friends match text, `in` takes a list. */
311
+ const TYPED_OPERATORS = new Set(['=', '!=', '>', '>=', '<', '<=']);
312
+ const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
313
+ /** What a literal of the column's type looks like, or `undefined` for a type whose text anything can be. */
314
+ function typeShape(type) {
315
+ switch (type) {
316
+ case 'INTEGER':
317
+ case 'BIG_INTEGER':
318
+ case 'AUTO_NUMBER':
319
+ return { test: (v) => /^-?\d+$/.test(v), what: 'a whole number', example: "'42'" };
320
+ case 'DECIMAL':
321
+ case 'FLOAT':
322
+ case 'DOUBLE':
323
+ return { test: (v) => /^-?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+)?$/.test(v), what: 'a number', example: "'12.50'" };
324
+ case 'BOOLEAN':
325
+ // Any case: nothing shows Data Fabric rejects `'True'`, so check does not either.
326
+ return { test: (v) => /^(true|false)$/i.test(v), what: "'true' or 'false'", example: "'true'" };
327
+ case 'UUID':
328
+ case 'RELATIONSHIP':
329
+ return { test: (v) => UUID.test(v), what: 'a record id (a GUID)', example: "'3f2c…-…'" };
330
+ case 'DATE':
331
+ return { test: (v) => /^\d{4}-\d{2}-\d{2}$/.test(v), what: 'a date, YYYY-MM-DD', example: "'2026-11-13'" };
332
+ case 'DATETIME':
333
+ case 'DATETIME_WITH_TZ':
334
+ return {
335
+ test: (v) => /^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2}(\.\d+)?)?(Z|[+-]\d{2}:?\d{2})?)?$/.test(v) && Number.isFinite(Date.parse(v)),
336
+ what: 'an ISO 8601 date-time', example: "'2026-11-13T09:30:00Z'",
337
+ };
338
+ default:
339
+ return undefined;
340
+ }
341
+ }
342
+ /**
343
+ * A literal against its column: a choice-set column takes one of the set's
344
+ * `numberId`s, never a label; any other typed column takes a value of its type.
345
+ * An expression is judged at run time, and a blank is the blank rules' business.
346
+ */
347
+ function checkValue(field, value, where, operator, schema, ctx) {
348
+ if (value instanceof Expr || typeof value !== 'string')
349
+ return;
350
+ const literal = value.trim();
351
+ if (literal === '' || literal.startsWith('=js:') || !TYPED_OPERATORS.has(operator))
352
+ return;
353
+ if (field.type === 'CHOICE_SET_SINGLE') {
354
+ const choices = field.choiceSet?.values;
355
+ if (choices === undefined || choices.length === 0)
356
+ return;
357
+ if (/^-?\d+$/.test(literal) && choices.some((c) => c.numberId === Number(literal)))
358
+ return;
359
+ const lower = literal.toLowerCase();
360
+ const label = choices.find((c) => c.name.toLowerCase() === lower || c.displayName?.toLowerCase() === lower);
361
+ const set = `choice set ${JSON.stringify(field.choiceSet.name || field.choiceSet.id)}`;
362
+ const listed = choices.map((c) => `${c.numberId} = ${c.displayName ?? c.name}`).join(', ');
363
+ // A filter compares the numberId (the platform's query; a label matches
364
+ // nothing), so a filter is an error. That a WRITE stores only the numberId,
365
+ // and drops a label, is not confirmed, so a write is a warning.
366
+ if (!where.startsWith('its filter')) {
367
+ ctx.report('DATAFABRIC_CHOICE_WRITE_VALUE', label !== undefined
368
+ ? `"${ctx.step}": ${where} writes the label ${JSON.stringify(literal)} to ${JSON.stringify(field.name)}, a ${set} column, which stores `
369
+ + `the choice's numberId. A filter on a label matches nothing; a write of one may be dropped too. Write the numberId.${provenance(schema)}`
370
+ : `"${ctx.step}": ${where} is ${JSON.stringify(literal)}, which is not a value of ${set} (${listed}).${provenance(schema)}`, label !== undefined ? `'${label.numberId}' (${label.displayName ?? label.name})` : `one of: ${listed}`);
371
+ return;
372
+ }
373
+ ctx.report('DATAFABRIC_CHOICE_VALUE', label !== undefined
374
+ ? `"${ctx.step}": ${where} uses the label ${JSON.stringify(literal)}, but ${JSON.stringify(field.name)} is a ${set} column, which `
375
+ + `compares the choice's numberId, never its label — a label matches nothing, silently.${provenance(schema)}`
376
+ : `"${ctx.step}": ${where} is ${JSON.stringify(literal)}, which is not a value of ${set} (${listed}).${provenance(schema)}`, label !== undefined ? `'${label.numberId}' (${label.displayName ?? label.name})` : `one of: ${listed}`);
377
+ return;
378
+ }
379
+ const shape = typeShape(field.type);
380
+ if (shape === undefined || shape.test(literal))
381
+ return;
382
+ ctx.report('DATAFABRIC_FIELD_TYPE', `"${ctx.step}": ${where} is ${JSON.stringify(literal)}, but ${JSON.stringify(field.name)} is ${field.type} and takes ${shape.what}. `
383
+ + (where.startsWith('its filter')
384
+ ? 'Data Fabric cannot compare the column with it, so the read matches nothing or faults at run time.'
385
+ : 'Data Fabric rejects the value and the engine only logs the rejection, so the write runs green without it.')
386
+ + provenance(schema), `a literal like ${shape.example}, or an expression that produces one`);
387
+ }
@@ -2,6 +2,7 @@ import { applyScope, baseConfig, entityConfigOf, fieldRows, filterRows, liftFiel
2
2
  import { checkCreate, checkRead, checkUpdate, checkWrite } from './check.js';
3
3
  import { rawNodeAdvice } from './raw.js';
4
4
  import { CompileRefusal } from '../../../core/compile-refusal.js';
5
+ import { declareKeys } from '../../../core/option-keys.js';
5
6
  /**
6
7
  * Every Data Fabric node carries no node-level `model`, whichever path emits it
7
8
  * (a verb, or a rawNode of its definition). Studio Web never writes one
@@ -143,14 +144,21 @@ function liftFilters(q) {
143
144
  }
144
145
  return [];
145
146
  }
147
+ /** Every key of each verb's options (builder-sdk#1990); `tsc` holds each list to its type. */
148
+ const READ_OPTIONS = { inputs: declareKeys({ entity: true, filters: true, resultMode: true, limit: true, skip: true, sort: true, fields: true, folderKey: true, resourceKey: true }) };
149
+ const CREATE_OPTIONS = { inputs: declareKeys({ entity: true, values: true, folderKey: true, resourceKey: true }) };
150
+ const UPDATE_OPTIONS = { inputs: declareKeys({ entity: true, record: true, set: true, folderKey: true, resourceKey: true }) };
151
+ const DELETE_OPTIONS = { inputs: declareKeys({ entity: true, record: true, folderKey: true, resourceKey: true }) };
146
152
  export const dataFabricRead = {
147
153
  kind: 'dataFabricRead', typeName: 'core.datafabric.read', factory: 'dataFabricRead', defaultVersion: '1.0',
154
+ optionKeys: READ_OPTIONS,
148
155
  versions: { '1.0': readAt('1.0'), '1.4': readAt('1.4') },
149
156
  select: ({ inputs }) => (inputs?.resultMode !== undefined ? '1.4' : '1.0'),
150
157
  };
151
158
  // ─── create ────────────────────────────────────────────────────────────────────
152
159
  export const dataFabricCreate = {
153
160
  kind: 'dataFabricCreate', typeName: 'core.datafabric.create', version: '1.3', factory: 'dataFabricCreate',
161
+ optionKeys: CREATE_OPTIONS,
154
162
  definition: 'bundled', nodeModel: NODE_MODEL, rawNode: CREATE_ADVICE,
155
163
  serialize: ({ inputs }, ctx) => {
156
164
  const scope = resolvedScope(inputs, ctx);
@@ -207,11 +215,13 @@ function updateAt(version) {
207
215
  }
208
216
  export const dataFabricUpdate = {
209
217
  kind: 'dataFabricUpdate', typeName: 'core.datafabric.update', factory: 'dataFabricUpdate', defaultVersion: '1.0',
218
+ optionKeys: UPDATE_OPTIONS,
210
219
  versions: { '1.0': updateAt('1.0'), '1.3': updateAt('1.3') },
211
220
  };
212
221
  // ─── delete ────────────────────────────────────────────────────────────────────
213
222
  export const dataFabricDelete = {
214
223
  kind: 'dataFabricDelete', typeName: 'core.datafabric.delete', version: '1.3', factory: 'dataFabricDelete',
224
+ optionKeys: DELETE_OPTIONS,
215
225
  definition: 'bundled', nodeModel: NODE_MODEL, rawNode: DELETE_ADVICE,
216
226
  serialize: ({ inputs }, ctx) => {
217
227
  const scope = resolvedScope(inputs, ctx);
@@ -1,5 +1,6 @@
1
1
  import { DELAY_PRESETS } from './spec.js';
2
2
  import { checkDelay } from './check.js';
3
+ import { declareKeys } from '../../../core/option-keys.js';
3
4
  /**
4
5
  * Encode a delay's single `duration` into the two inputs the platform's node
5
6
  * carries — the SAME split as the scheduled trigger above, on the same field
@@ -69,7 +70,10 @@ function delayAt(version) {
69
70
  }),
70
71
  };
71
72
  }
73
+ /** Every key of `delay()`'s options (builder-sdk#1990); `tsc` holds the list to `DelayInputs`. */
74
+ const DELAY_OPTIONS = { inputs: declareKeys({ duration: true, until: true }) };
72
75
  export const delayNodeType = {
73
76
  kind: 'delay', typeName: 'core.logic.delay', factory: 'delay', defaultVersion: '1.0.0',
77
+ optionKeys: DELAY_OPTIONS,
74
78
  versions: { '1.0.0': delayAt('1.0.0'), '1.0': delayAt('1.0') },
75
79
  };
@@ -15,6 +15,7 @@ import { Expr } from '../../../core/expr.js';
15
15
  import { jsonClone } from '../../../core/json-clone.js';
16
16
  import { parseIxpProjectType } from './spec.js';
17
17
  import { CompileRefusal } from '../../../core/compile-refusal.js';
18
+ import { declareKeys } from '../../../core/option-keys.js';
18
19
  const IXP_PREFIX = 'uipath.ixp.';
19
20
  export const IXP_DIAGNOSTICS = {
20
21
  IXP_FORBIDDEN_INPUT: { severity: 'error', summary: 'an IxP step setting an input the current node does not declare' },
@@ -390,8 +391,11 @@ const ixpExtract10 = {
390
391
  expressions: () => [],
391
392
  output: () => ({ kind: 'opaque' }),
392
393
  };
394
+ /** Every key of `ixpExtract()`'s options (builder-sdk#1990); `tsc` holds the list to `IxpExtractInputs`. */
395
+ const IXP_EXTRACT_OPTIONS = { inputs: declareKeys({ project: true, modelName: true, name: true, folderName: true, fileRef: true, pageRange: true, versionTag: true, folderPath: true, description: true }) };
393
396
  export const ixpExtractNodeType = {
394
397
  kind: 'ixpExtract', typeName: `${IXP_PREFIX}*`, typeNamePrefix: IXP_PREFIX, factory: 'ixpExtract',
398
+ optionKeys: IXP_EXTRACT_OPTIONS,
395
399
  // An extractor is a tail of two uuids; Dynamic Extract's
396
400
  // `uipath.ixp.extract-document-builder` and the older tails are not.
397
401
  typeNameMatches: (typeName) => parseIxpProjectType(typeName) !== undefined,
@@ -9,6 +9,7 @@
9
9
  */
10
10
  import { toExpr } from '../../../core/expr.js';
11
11
  import { jsonClone } from '../../../core/json-clone.js';
12
+ import { declareKeys } from '../../../core/option-keys.js';
12
13
  export const DOCUMENT_DIAGNOSTICS = {
13
14
  DOC_NO_FILEREF: { severity: 'error', summary: 'no fileRef, so nothing to classify or extract from' },
14
15
  EXTRACT_SCHEMA_SHAPE: { severity: 'error', summary: 'a Dynamic Extract schema that is not an object' },
@@ -96,8 +97,12 @@ function liftClassificationSchema(node, ctx) {
96
97
  }
97
98
  return raw;
98
99
  }
100
+ /** Every key of each factory's options (builder-sdk#1990); `tsc` holds each list to its type. */
101
+ const CLASSIFY_OPTIONS = { inputs: declareKeys({ fileRef: true, pageRange: true, splitPages: true, modelConfig: true, classificationSchema: true }) };
102
+ const DYNAMIC_EXTRACT_OPTIONS = { inputs: declareKeys({ fileRef: true, model: true, schema: true, pageRange: true, modelConfig: true }) };
99
103
  export const documentClassifyNodeType = {
100
104
  kind: 'documentClassify', typeName: 'uipath.document.classify', version: '1.0', factory: 'documentClassify',
105
+ optionKeys: CLASSIFY_OPTIONS,
101
106
  definition: 'bundled', rawNode: { factory: 'documentClassify()' },
102
107
  serialize: ({ inputs }, ctx) => {
103
108
  const d = defaults('uipath.document.classify', '1.0', ctx);
@@ -149,6 +154,7 @@ export const documentClassifyNodeType = {
149
154
  };
150
155
  export const dynamicExtractNodeType = {
151
156
  kind: 'dynamicExtract', typeName: 'uipath.ixp.extract-document-builder', version: '1.0.0', factory: 'dynamicExtract',
157
+ optionKeys: DYNAMIC_EXTRACT_OPTIONS,
152
158
  definition: 'bundled', rawNode: { factory: 'dynamicExtract()' },
153
159
  serialize: ({ inputs }, ctx) => {
154
160
  const d = defaults('uipath.ixp.extract-document-builder', '1.0.0', ctx);
@@ -24,6 +24,7 @@ import { appAnswerSchemas, appContract, appInputSchema, liftActionSchema, normal
24
24
  import { checkHitl, checkHitlRead } from './check.js';
25
25
  import { CompileRefusal } from '../../../core/compile-refusal.js';
26
26
  import { processResourceBindings } from '../../../core/process-resource.js';
27
+ import { declareKeys } from '../../../core/option-keys.js';
27
28
  const BASE = 'uipath.human-in-the-loop';
28
29
  const QUICK_FORM = 'uipath.human-in-the-loop.quick-form';
29
30
  const ACTION_APP = 'uipath.human-in-the-loop.coded-action-app';
@@ -948,9 +949,12 @@ function hitlAt(typeName, version, factory) {
948
949
  && (inputs?.outcomes ?? []).some((o, i) => port === `outcome-${outcomeIdOf(o, i)}`),
949
950
  };
950
951
  }
952
+ /** Every key of `hitl()`'s options (builder-sdk#1990); `tsc` holds the list to `HitlInputs`. */
953
+ const HITL_OPTIONS = { inputs: declareKeys({ variant: true, app: true, title: true, priority: true, fields: true, outcomes: true, recipient: true, labels: true, outcomePorts: true, exposeError: true, legacyCompleted: true, document: true }) };
951
954
  function hitlType(typeName, versions, factory, variant) {
952
955
  return {
953
956
  kind: 'hitl', typeName, factory: 'hitl', defaultVersion: '1.0',
957
+ optionKeys: HITL_OPTIONS,
954
958
  versions: Object.fromEntries(versions.map((v) => [v, hitlAt(typeName, v, factory)])),
955
959
  // The base node is the one an absent or UNKNOWN variant resolves to, as it
956
960
  // always has: its serialize refuses the unknown one (HITL_VARIANT_UNKNOWN).