@uipath/maestro-builder-sdk 6.102.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.
package/dist/api-index.md CHANGED
@@ -105,7 +105,7 @@ could hand you spans for a version you do not have.
105
105
  | `conversationalAgent` | function | `dist/nodes/agent/flow/factories.d.ts:65-89` | Actions | A CONVERSATIONAL agent (`uipath.agent.conversational`) — it answers one turn of a live chat, reading the transcript… |
106
106
  | `ConversationalAgentInputs` | interface | `dist/nodes/agent/flow/spec.d.ts:45-102` | Option shapes | What `conversationalAgent()` takes: the agent's instructions and model, how it gets its turn, and the resources it… |
107
107
  | `ConversationalAgentSettings` | interface | `dist/nodes/agent/flow/spec.d.ts:13-37` | Supporting types | How a conversational agent gets its turn — the node's own `conversationalAgentSettings` sub-object. |
108
- | `ConversationAppearance` | interface | `dist/nodes/trigger/flow/spec.d.ts:55-71` | Supporting types | How the chat that starts a conversation-triggered flow looks: the conversation trigger's `appearance` (1.3), the same… |
108
+ | `ConversationAppearance` | interface | `dist/nodes/trigger/flow/spec.d.ts:64-80` | Supporting types | How the chat that starts a conversation-triggered flow looks: the conversation trigger's `appearance` (1.3), the same… |
109
109
  | `conversationContext` | function | `dist/nodes/conversation/flow/factories.d.ts:44-58` | Actions | READ a conversation's transcript so far without waiting (`uipath.conversational.get-conversation-context`) — the shape a… |
110
110
  | `ConversationContextInputs` | interface | `dist/nodes/conversation/flow/spec.d.ts:37-44` | Option shapes | 2 field(s) |
111
111
  | `conversationTrigger` | function | `dist/nodes/trigger/flow/factories.d.ts:61-103` | Actions | Start the flow when a new CONVERSATION is created (`core.trigger.conversation`) — the entry point for a chat-driven… |
@@ -140,7 +140,7 @@ could hand you spans for a version you do not have.
140
140
  | `EdgeRoute` | interface | `dist/flow-sdk.d.ts:634-648` | Supporting types | One edge's route: user-dragged bends and/or the auto-router's waypoints. |
141
141
  | `endCall` | function | `dist/nodes/agent/flow/factories.d.ts:32-39` | Actions | Hang up (`uipath.conversational.voice.end-call`). |
142
142
  | `EndCallInputs` | interface | `dist/nodes/agent/flow/spec.d.ts:113-121` | Option shapes | What `endCall()` takes: the call to hang up. |
143
- | `EntityRef` | interface | `dist/core/resource-resolution.d.ts:18-28` | Supporting types | A Data Fabric entity by name and folder path: a ResourceRef of kind `Entity`, spelled as the plain object a field that… |
143
+ | `EntityRef` | interface | `dist/core/resource-resolution.d.ts:19-29` | Supporting types | A Data Fabric entity by name and folder path: a ResourceRef of kind `Entity`, spelled as the plain object a field that… |
144
144
  | `entryInput` | function | `dist/core/expr.d.ts:62-72` | Expressions and types | Reference an ENTRY POINT's scoped input: `entryInput('nightly', 'batchDate')` reads `$vars.nightly.output.batchDate` —… |
145
145
  | `err` | function | `dist/core/expr.d.ts:153-246` | Expressions and types | Reference a FAILED step's error → `$vars.<step>.error[.<field>]`. |
146
146
  | `ErrorEnvelopeField` | type | `dist/core/expr.d.ts:142-152` | Supporting types | The fields a failure envelope carries. |
@@ -245,15 +245,15 @@ could hand you spans for a version you do not have.
245
245
  | `resolvedEventValue` | function | `dist/core/lookups.d.ts:185-201` | Generated descriptors | resolvedValue for a token on an event's `where`. |
246
246
  | `resolvedValue` | function | `dist/core/lookups.d.ts:177-184` | Generated descriptors | The recorded id for a token, or `undefined`. |
247
247
  | `resolveEventWhere` | function | `dist/core/lookups.d.ts:242-259` | Generated descriptors | An event subscription's `where` with every lookup token swapped for the id `registry prepare --resolve` recorded, or a… |
248
- | `ResourceRef` | interface | `dist/core/resource-resolution.d.ts:3-17` | Supporting types | A solution resource by kind and name, and — for one in an Orchestrator folder — that folder's PATH (`Shared`,… |
249
- | `ResourceToken` | interface | `dist/core/resource-resolution.d.ts:157-167` | Supporting types | A solution resource as a connector input: what `resource()` and `entity()` return. |
248
+ | `ResourceRef` | interface | `dist/core/resource-resolution.d.ts:4-18` | Supporting types | A solution resource by kind and name, and — for one in an Orchestrator folder — that folder's PATH (`Shared`,… |
249
+ | `ResourceToken` | interface | `dist/core/resource-resolution.d.ts:166-176` | Supporting types | A solution resource as a connector input: what `resource()` and `entity()` return. |
250
250
  | `ReturnFieldType` | type | `dist/core/actions.d.ts:285-302` | Supporting types | A JSON-schema-ish type for one field of a step's declared `returns`. |
251
251
  | `ReturnOptions` | interface | `dist/flow-sdk.d.ts:369-410` | Option shapes | `.return(...)`-specific options. |
252
252
  | `rpaWorkflow` | function | `dist/nodes/process/flow/factories.d.ts:8-52` | Actions | Invoke a deployed RPA (robotic process automation) workflow — a classic UI-automation process, published to… |
253
253
  | `RpaWorkflowInputs` | interface | `dist/nodes/process/flow/spec.d.ts:11-71` | Option shapes | 7 field(s) |
254
254
  | `SCHEDULE_PRESETS` | const | `dist/nodes/trigger/flow/spec.d.ts:8-15` | Actions | The eight intervals the designer offers in its Frequency dropdown. |
255
255
  | `scheduled` | function | `dist/nodes/trigger/flow/factories.d.ts:12-31` | Actions | Start the flow on a recurring schedule instead of on demand. |
256
- | `ScheduledInputs` | interface | `dist/nodes/trigger/flow/spec.d.ts:29-42` | Option shapes | 1 field(s) |
256
+ | `ScheduledInputs` | interface | `dist/nodes/trigger/flow/spec.d.ts:29-51` | Option shapes | 1 field(s) |
257
257
  | `ScheduleEvery` | type | `dist/nodes/trigger/flow/spec.d.ts:17-28` | Supporting types | How often a scheduled flow runs, as an ISO-8601 repeating interval: `R/` followed by a duration. |
258
258
  | `SchedulePreset` | type | `dist/nodes/trigger/flow/spec.d.ts:16` | Supporting types | |
259
259
  | `script` | function | `dist/nodes/script/flow/factories.d.ts:8-38` | Actions | Declare an inline script action, as a TypeScript function the compiler checks. |
@@ -267,7 +267,7 @@ could hand you spans for a version you do not have.
267
267
  | `sendMessage` | function | `dist/nodes/conversation/flow/factories.d.ts:8-26` | Actions | Post an assistant message into a live conversation (`uipath.conversational.send-message`). |
268
268
  | `SendMessageInputs` | interface | `dist/nodes/conversation/flow/spec.d.ts:8-27` | Option shapes | 4 field(s) |
269
269
  | `ShownField` | interface | `dist/core/actions.d.ts:222-237` | Supporting types | A value the reviewer READS: shown on the form, filled in from the flow. |
270
- | `StartingPrompt` | interface | `dist/nodes/trigger/flow/spec.d.ts:43-54` | Supporting types | One suggestion the chat shows before the user types: a chip labelled `displayPrompt` that sends `actualPrompt` to the… |
270
+ | `StartingPrompt` | interface | `dist/nodes/trigger/flow/spec.d.ts:52-63` | Supporting types | One suggestion the chat shows before the user types: a chip labelled `displayPrompt` that sends `actualPrompt` to the… |
271
271
  | `Step` | type | `dist/flow-sdk.d.ts:446-566` | Supporting types | |
272
272
  | `StepList` | class | `dist/flow-sdk.d.ts:771-1255` | Builders | Collects a sequence of steps. |
273
273
  | `StepOptions` | interface | `dist/flow-sdk.d.ts:298-318` | Option shapes | The options of `.step()`: the NodeOptions, plus `draft` for a node the canvas saved unfinished. |
@@ -292,7 +292,7 @@ could hand you spans for a version you do not have.
292
292
  | `TriggerDescriptor` | type | `dist/core/connectors.d.ts:143-151` | Generated descriptors | A generated, typed connector-trigger descriptor: TriggerMeta branded with phantom `where`/output types. |
293
293
  | `TriggerMeta` | interface | `dist/core/connectors.d.ts:133-142` | Generated descriptors | Runtime metadata a generated trigger descriptor carries. |
294
294
  | `TriggerOptions` | interface | `dist/core/actions.d.ts:1113-1160` | Option shapes | The typed `onEvent`/`waitForEvent` options — everything an EventSubscription carries except `connector`/`event`, which… |
295
- | `TriggerSpec` | type | `dist/nodes/trigger/flow/spec.d.ts:72-91` | Supporting types | What starts the flow. |
295
+ | `TriggerSpec` | type | `dist/nodes/trigger/flow/spec.d.ts:81-100` | Supporting types | What starts the flow. |
296
296
  | `TypeDesc` | type | `dist/core/expr.d.ts:404` | Supporting types | |
297
297
  | `types` | const | `dist/core/expr.d.ts:388-403` | Expressions and types | Variable type descriptors (map to Flow variable `type` values). |
298
298
  | `unresolvedLookupMessage` | function | `dist/core/lookups.d.ts:202-211` | Generated descriptors | The message for a lookup nothing has resolved — the command that fixes it. |
@@ -466,7 +466,7 @@ could hand you spans for a version you do not have.
466
466
  | `DataServiceOpts` | interface | `dist/bpmn/bpmn-sdk.d.ts:1241-1299` | Option shapes | Options for `.dataService()` — one UiPath Data Fabric (Data Service) record or file operation. |
467
467
  | `DefinitionsRegistry` | class | `dist/bpmn/bpmn-sdk.d.ts:2273-2296` | Supporting types | Collects definitions-level message/error declarations, de-duped by name. |
468
468
  | `EndOpts` | interface | `dist/bpmn/bpmn-sdk.d.ts:827-851` | Option shapes | Options for `.endEvent()`. |
469
- | `EntityRef` | interface | `dist/core/resource-resolution.d.ts:18-28` | Supporting types | A Data Fabric entity by name and folder path: a ResourceRef of kind `Entity`, spelled as the plain object a field that… |
469
+ | `EntityRef` | interface | `dist/core/resource-resolution.d.ts:19-29` | Supporting types | A Data Fabric entity by name and folder path: a ResourceRef of kind `Entity`, spelled as the plain object a field that… |
470
470
  | `ErrorDecl` | interface | `dist/bpmn/bpmn-sdk.d.ts:496-504` | Supporting types | A definitions-level `bpmn:error` declaration, referenced by error events. |
471
471
  | `ErrorHandlerOpts` | interface | `dist/bpmn/bpmn-sdk.d.ts:1997-2009` | Option shapes | Options for ActivityBuilder.onError. |
472
472
  | `ErrorLike` | type | `dist/bpmn/bpmn-sdk.d.ts:44-55` | Supporting types | What an author passes for an error definition. |
@@ -46,7 +46,7 @@ not find it either.
46
46
  | --- | --- | --- | --- |
47
47
  | `__lookup` | property | `LookupToken` | `dist/core/lookups.d.ts:46-51` |
48
48
  | `__outputs` | property | `FlowNode` | `dist/core/node-classes.d.ts:146-150` |
49
- | `__resource` | property | `ResourceToken` | `dist/core/resource-resolution.d.ts:166` |
49
+ | `__resource` | property | `ResourceToken` | `dist/core/resource-resolution.d.ts:175` |
50
50
  | `$guardrailType` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:372` |
51
51
  | `$guardrailType` | property | `CustomGuardrail` | `dist/core/actions.d.ts:359` |
52
52
  | `action` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:376` |
@@ -59,7 +59,7 @@ not find it either.
59
59
  | `actions` | property | `HumanTaskAppOpts` | `dist/bpmn/bpmn-sdk.d.ts:1558-1567` |
60
60
  | `actionSchema` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:220-244` |
61
61
  | `activity` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3205-3243` |
62
- | `actualPrompt` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:50-51` |
62
+ | `actualPrompt` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:59-60` |
63
63
  | `additionalOutputs` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:98-102` |
64
64
  | `agent` | property | `FlowActionSpecs` | `dist/nodes/process/flow/spec.d.ts:415-418` |
65
65
  | `agent` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1326-1335` |
@@ -314,7 +314,7 @@ not find it either.
314
314
  | `displayName` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:65` |
315
315
  | `displayName` | property | `SlaOpts` | `dist/case/case-sdk.d.ts:255-260` |
316
316
  | `displayName` | property | `TriggerMeta` | `dist/core/connectors.d.ts:140-141` |
317
- | `displayPrompt` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:48-49` |
317
+ | `displayPrompt` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:57-58` |
318
318
  | `document` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:419-423` |
319
319
  | `documentClassify` | property | `FlowActionSpecs` | `dist/nodes/document/flow/spec.d.ts:187-190` |
320
320
  | `documentExtraction` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:1004-1005` |
@@ -388,7 +388,7 @@ not find it either.
388
388
  | `eventSubProcess` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3254-3307` |
389
389
  | `eventSubscription` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:290-291` |
390
390
  | `eventTrigger` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3126-3148` |
391
- | `every` | property | `ScheduledInputs` | `dist/nodes/trigger/flow/spec.d.ts:30-41` |
391
+ | `every` | property | `ScheduledInputs` | `dist/nodes/trigger/flow/spec.d.ts:30-50` |
392
392
  | `every` | property | `TimerTriggerOpts` | `dist/case/case-sdk.d.ts:300-308` |
393
393
  | `exception` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:1029` |
394
394
  | `exceptionStage` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:2112-2119` |
@@ -451,7 +451,7 @@ not find it either.
451
451
  | `folder` | property | `ConnectorOpts` | `dist/core/actions.d.ts:24-25` |
452
452
  | `folder` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:685-690` |
453
453
  | `folder` | property | `DataServiceOpts` | `dist/bpmn/bpmn-sdk.d.ts:1276-1288` |
454
- | `folder` | property | `EntityRef` | `dist/core/resource-resolution.d.ts:26-27` |
454
+ | `folder` | property | `EntityRef` | `dist/core/resource-resolution.d.ts:27-28` |
455
455
  | `folder` | property | `EventSubscription` | `dist/core/actions.d.ts:1199-1200` |
456
456
  | `folder` | property | `ExternalTaskOptions` | `dist/case/case-sdk.d.ts:717-718` |
457
457
  | `folder` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1748-1749` |
@@ -459,7 +459,7 @@ not find it either.
459
459
  | `folder` | property | `HttpRequestConnector` | `dist/case/case-sdk.d.ts:617-618` |
460
460
  | `folder` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1424-1425` |
461
461
  | `folder` | property | `QueueItemOpts` | `dist/bpmn/bpmn-sdk.d.ts:1490-1491` |
462
- | `folder` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:15-16` |
462
+ | `folder` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:16-17` |
463
463
  | `folder` | property | `TriggerOptions` | `dist/core/actions.d.ts:1156-1157` |
464
464
  | `folderKey` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:583-584` |
465
465
  | `folderKey` | property | `CaseDocumentExtractionSpec` | `dist/case/case-sdk.d.ts:639-644` |
@@ -548,7 +548,7 @@ not find it either.
548
548
  | `id` | property | `PinnedFlowId` | `dist/bpmn/bpmn-sdk.d.ts:1887-1888` |
549
549
  | `id` | property | `SchemaEntry` | `dist/bpmn/bpmn-sdk.d.ts:1168-1169` |
550
550
  | `id` | property | `ShownField` | `dist/core/actions.d.ts:224-225` |
551
- | `id` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:52-53` |
551
+ | `id` | property | `StartingPrompt` | `dist/nodes/trigger/flow/spec.d.ts:61-62` |
552
552
  | `id` | property | `StickyNote` | `dist/flow-sdk.d.ts:673-682` |
553
553
  | `id` | property | `SwitchArm` | `dist/flow-sdk.d.ts:213-219` |
554
554
  | `id` | property | `VarEntry` | `dist/bpmn/bpmn-sdk.d.ts:1159-1160` |
@@ -648,7 +648,7 @@ not find it either.
648
648
  | `kind` | property | `McpToolRef` | `dist/core/actions.d.ts:466` |
649
649
  | `kind` | property | `ProcessToolRef` | `dist/core/actions.d.ts:743` |
650
650
  | `kind` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:494` |
651
- | `kind` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:11-12` |
651
+ | `kind` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:12-13` |
652
652
  | `kind` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:55` |
653
653
  | `kind` | property | `WhenExpression` | `dist/case/case-sdk.d.ts:166-167` |
654
654
  | `kValue` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:589-590` |
@@ -784,7 +784,7 @@ not find it either.
784
784
  | `name` | property | `DataServiceFolderEntity` | `dist/bpmn/data-service.d.ts:141-142` |
785
785
  | `name` | property | `DataServiceOpts` | `dist/bpmn/bpmn-sdk.d.ts:1255-1256` |
786
786
  | `name` | property | `EndOpts` | `dist/bpmn/bpmn-sdk.d.ts:832-833` |
787
- | `name` | property | `EntityRef` | `dist/core/resource-resolution.d.ts:24-25` |
787
+ | `name` | property | `EntityRef` | `dist/core/resource-resolution.d.ts:25-26` |
788
788
  | `name` | property | `ErrorDecl` | `dist/bpmn/bpmn-sdk.d.ts:500-501` |
789
789
  | `name` | property | `EscalationRef` | `dist/core/actions.d.ts:814-815` |
790
790
  | `name` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:2097-2098` |
@@ -819,7 +819,7 @@ not find it either.
819
819
  | `name` | property | `RegistryOutput` | `dist/bpmn/typed-node.d.ts:79` |
820
820
  | `name` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:495-496` |
821
821
  | `name` | property | `ResolvedEventTriggerOpts` | `dist/case/case-sdk.d.ts:369-370` |
822
- | `name` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:13-14` |
822
+ | `name` | property | `ResourceRef` | `dist/core/resource-resolution.d.ts:14-15` |
823
823
  | `name` | property | `ReturnOptions` | `dist/flow-sdk.d.ts:384-409` |
824
824
  | `name` | property | `RpaWorkflowInputs` | `dist/nodes/process/flow/spec.d.ts:23-24` |
825
825
  | `name` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:991-992` |
@@ -945,7 +945,7 @@ not find it either.
945
945
  | `payload` | property | `SubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1145-1152` |
946
946
  | `payload` | property | `ThrowOpts` | `dist/bpmn/bpmn-sdk.d.ts:872-873` |
947
947
  | `persona` | property | `VoiceSettings` | `dist/nodes/agent/flow/spec.d.ts:136-137` |
948
- | `personalWorkspaceConnectionsOnly` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:66-70` |
948
+ | `personalWorkspaceConnectionsOnly` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:75-79` |
949
949
  | `pinnedFlowIds` | property | `SugarRegistry` | `dist/bpmn/bpmn-sdk.d.ts:2212-2219` |
950
950
  | `placements` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:116-129` |
951
951
  | `plainTask` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2586-2619` |
@@ -1177,7 +1177,7 @@ not find it either.
1177
1177
  | `startEntryPointId` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:2150-2151` |
1178
1178
  | `startEvent` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2467-2483` |
1179
1179
  | `startId` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:2144-2145` |
1180
- | `startingPrompts` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:64-65` |
1180
+ | `startingPrompts` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:73-74` |
1181
1181
  | `startName` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:2146-2147` |
1182
1182
  | `startPayload` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:2148-2149` |
1183
1183
  | `startProcess` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2804-2823` |
@@ -1375,8 +1375,8 @@ not find it either.
1375
1375
  | `waitForTimer` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:1514-1520` |
1376
1376
  | `waypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:636-641` |
1377
1377
  | `webSearchGrounding` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:616-620` |
1378
- | `welcomeDescription` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:62-63` |
1379
- | `welcomeTitle` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:60-61` |
1378
+ | `welcomeDescription` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:71-72` |
1379
+ | `welcomeTitle` | property | `ConversationAppearance` | `dist/nodes/trigger/flow/spec.d.ts:69-70` |
1380
1380
  | `when` | property | `FormFieldCondition` | `dist/core/actions.d.ts:136-137` |
1381
1381
  | `when` | property | `SlaOpts` | `dist/case/case-sdk.d.ts:261-267` |
1382
1382
  | `when` | property | `SwitchArm` | `dist/flow-sdk.d.ts:206-211` |
@@ -0,0 +1,94 @@
1
+ /**
2
+ * A Data Fabric entity's columns, as `registry prepare --entity` records them
3
+ * beside the entity's keys in the resource ledger (#1980).
4
+ *
5
+ * Data Fabric DROPS a column it does not know instead of rejecting it, and only
6
+ * logs a write it refuses, so a typo in a filter, a sort, a `set` key or a
7
+ * choice-set label validates clean and runs green. The schema is tenant data:
8
+ * nothing offline can tell a real column from a typo. `prepare` reads it once
9
+ * (`uip df entities get`, and `uip df choice-sets list-values` for each choice
10
+ * set) and `check` reads it from the ledger, the way it reads the keys.
11
+ *
12
+ * This module is the portable half: the recorded shape and the lookup `check`
13
+ * makes. Reading the tenant is `registry/prepare/entity-schema.ts`'s.
14
+ */
15
+ import { type EntityRef, type ResourceResolution, type ResourceResolutions } from './resource-resolution.js';
16
+ /** One value of a choice set: the label an author sees, and the number Data Fabric stores and compares. */
17
+ export interface EntityChoiceValue {
18
+ /** The value's name, e.g. `'Active'`. */
19
+ name: string;
20
+ /** Its display name, when it differs from the name. */
21
+ displayName?: string;
22
+ /** What a filter compares and a write stores: `0`, `1`, … */
23
+ numberId: number;
24
+ }
25
+ /** One column of a Data Fabric entity, as `prepare` recorded it. */
26
+ export interface EntityFieldSchema {
27
+ /** The column's name, exactly as Data Fabric spells it (names are case-sensitive). */
28
+ name: string;
29
+ /** Its display name, when it differs from the name. */
30
+ displayName?: string;
31
+ /**
32
+ * Data Fabric's type name, `FieldDataType.Name`: `STRING`, `MULTILINE_TEXT`,
33
+ * `INTEGER`, `DECIMAL`, `BOOLEAN`, `DATE`, `DATETIME_WITH_TZ`, `UUID`,
34
+ * `RELATIONSHIP`, `CHOICE_SET_SINGLE`, `CHOICE_SET_MULTIPLE`, `FILE`, …
35
+ */
36
+ type: string;
37
+ /** `IsRequired`: Data Fabric rejects a write that sends null for this column. */
38
+ required: boolean;
39
+ /** A column Data Fabric assigns (`Id`, `CreateTime`, …): never writable. */
40
+ system?: true;
41
+ /** The column has a server default, so an insert may leave it out. */
42
+ hasDefault?: true;
43
+ /** A unique or primary-key column. */
44
+ unique?: true;
45
+ /** A file column: the native family cannot write it. */
46
+ attachment?: true;
47
+ /** An auto-number column, which Data Fabric assigns. */
48
+ autoNumber?: true;
49
+ /** The longest text the column holds, for a text type. */
50
+ lengthLimit?: number;
51
+ /** For a `RELATIONSHIP` column: the related entity, and the display column the reference carries. */
52
+ reference?: {
53
+ entity: string;
54
+ entityId?: string;
55
+ displayField?: string;
56
+ };
57
+ /** For a choice-set column: the set, and its values when `prepare` could read them. */
58
+ choiceSet?: {
59
+ name: string;
60
+ id: string;
61
+ values?: EntityChoiceValue[];
62
+ };
63
+ }
64
+ /** Where a step's entity lives, as the step names it. */
65
+ export interface EntityScopeRef {
66
+ entity: string | EntityRef;
67
+ folderKey?: string;
68
+ }
69
+ /** The recorded schema for a step's entity, and the row it came from. */
70
+ export interface RecordedEntitySchema {
71
+ fields: readonly EntityFieldSchema[];
72
+ row: ResourceResolution;
73
+ }
74
+ /**
75
+ * The schema `prepare --entity` recorded for the entity a step names, or
76
+ * `undefined` when there is none to trust.
77
+ *
78
+ * - `{ name, folder }` reads its own row ({@link lookupResource}), the one
79
+ * `compile` takes its keys from.
80
+ * - A plain name reads the fresh `Entity` rows of that name whose scope is the
81
+ * step's: the row with the step's `folderKey`, or a tenant-level row when the
82
+ * step has none. Exactly one distinct entity must match; two (a name in two
83
+ * folders, recorded under different references) is no answer, never a guess.
84
+ *
85
+ * A row older than one session counts as absent, as it does for the keys: an
86
+ * entity edited since would be judged by its old columns.
87
+ *
88
+ * @param resources - The ledger rows `check` was given.
89
+ * @param scope - The step's `entity` and `folderKey`.
90
+ * @param now - The clock, for freshness.
91
+ */
92
+ export declare function recordedEntitySchema(resources: ResourceResolutions | undefined, scope: EntityScopeRef, now?: number): RecordedEntitySchema | undefined;
93
+ /** The column named exactly `name`, or `undefined`. */
94
+ export declare function entityField(fields: readonly EntityFieldSchema[], name: string): EntityFieldSchema | undefined;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * A Data Fabric entity's columns, as `registry prepare --entity` records them
3
+ * beside the entity's keys in the resource ledger (#1980).
4
+ *
5
+ * Data Fabric DROPS a column it does not know instead of rejecting it, and only
6
+ * logs a write it refuses, so a typo in a filter, a sort, a `set` key or a
7
+ * choice-set label validates clean and runs green. The schema is tenant data:
8
+ * nothing offline can tell a real column from a typo. `prepare` reads it once
9
+ * (`uip df entities get`, and `uip df choice-sets list-values` for each choice
10
+ * set) and `check` reads it from the ledger, the way it reads the keys.
11
+ *
12
+ * This module is the portable half: the recorded shape and the lookup `check`
13
+ * makes. Reading the tenant is `registry/prepare/entity-schema.ts`'s.
14
+ */
15
+ import { ENTITY_KIND, entityResource, isEntityRef, lookupResource, resourceRowIsFresh, } from './resource-resolution.js';
16
+ /**
17
+ * The schema `prepare --entity` recorded for the entity a step names, or
18
+ * `undefined` when there is none to trust.
19
+ *
20
+ * - `{ name, folder }` reads its own row ({@link lookupResource}), the one
21
+ * `compile` takes its keys from.
22
+ * - A plain name reads the fresh `Entity` rows of that name whose scope is the
23
+ * step's: the row with the step's `folderKey`, or a tenant-level row when the
24
+ * step has none. Exactly one distinct entity must match; two (a name in two
25
+ * folders, recorded under different references) is no answer, never a guess.
26
+ *
27
+ * A row older than one session counts as absent, as it does for the keys: an
28
+ * entity edited since would be judged by its old columns.
29
+ *
30
+ * @param resources - The ledger rows `check` was given.
31
+ * @param scope - The step's `entity` and `folderKey`.
32
+ * @param now - The clock, for freshness.
33
+ */
34
+ export function recordedEntitySchema(resources, scope, now = Date.now()) {
35
+ if (resources === undefined)
36
+ return undefined;
37
+ if (isEntityRef(scope.entity)) {
38
+ const row = lookupResource(resources, entityResource(scope.entity), now);
39
+ return row?.fields !== undefined ? { fields: row.fields, row } : undefined;
40
+ }
41
+ const name = scope.entity;
42
+ const matches = new Map();
43
+ for (const row of Object.values(resources)) {
44
+ if (row.kind !== ENTITY_KIND || row.name !== name || row.fields === undefined || !resourceRowIsFresh(row, now))
45
+ continue;
46
+ const sameScope = scope.folderKey !== undefined ? row.folderKey === scope.folderKey : row.scope === 'tenant';
47
+ if (sameScope)
48
+ matches.set(row.folderKey ?? '', row);
49
+ }
50
+ if (matches.size !== 1)
51
+ return undefined;
52
+ const row = [...matches.values()][0];
53
+ return { fields: row.fields, row };
54
+ }
55
+ /** The column named exactly `name`, or `undefined`. */
56
+ export function entityField(fields, name) {
57
+ return fields.find((f) => f.name === name);
58
+ }
@@ -256,10 +256,13 @@ export declare const REFUSALS: {
256
256
  readonly CONV_AGENT_SETTINGS_MODE: "lint";
257
257
  readonly CUSTOM_FIELDS_UNPREPARED: "lint";
258
258
  readonly DANGLING_FLOW: "lowering";
259
+ readonly DATAFABRIC_CHOICE_VALUE: "lint";
260
+ readonly DATAFABRIC_CHOICE_WRITE_VALUE: "lint";
259
261
  readonly DATAFABRIC_DELETE_HAS_NO_OUTPUT: "lint";
260
262
  readonly DATAFABRIC_EMPTY_SET: "lint";
261
263
  readonly DATAFABRIC_EMPTY_VALUES: "lint";
262
264
  readonly DATAFABRIC_ENTITY_REF_INVALID: "lowering";
265
+ readonly DATAFABRIC_FIELD_TYPE: "lint";
263
266
  readonly DATAFABRIC_FILTER_BLANK_VALUE: "lint";
264
267
  readonly DATAFABRIC_FOLDER_NO_RESOURCE_KEY: "lint";
265
268
  readonly DATAFABRIC_FROMREAD_MULTIPLE: "lint";
@@ -267,11 +270,14 @@ export declare const REFUSALS: {
267
270
  readonly DATAFABRIC_IN_REQUIRES_MULTIPLE: "lint";
268
271
  readonly DATAFABRIC_LIMIT_RANGE: "lint";
269
272
  readonly DATAFABRIC_NO_ENTITY: "lint";
273
+ readonly DATAFABRIC_NULL_REQUIRED: "lint";
270
274
  readonly DATAFABRIC_QUERY_OPTS_WITHOUT_MULTIPLE: "lint";
271
275
  readonly DATAFABRIC_RECORD_REF: "lowering";
276
+ readonly DATAFABRIC_REQUIRED_MISSING: "lint";
272
277
  readonly DATAFABRIC_RESOURCE_KEY_NO_FOLDER: "lowering";
273
278
  readonly DATAFABRIC_RESULT_MODE_VERSION: "lowering";
274
279
  readonly DATAFABRIC_SYSTEM_COLUMN: "lint";
280
+ readonly DATAFABRIC_UNKNOWN_FIELD: "lint";
275
281
  readonly DEAD_END: "lint";
276
282
  readonly DECLARATION_SHAPE: "lowering";
277
283
  readonly DECLARATION_TYPE_NOT_FLOW: "lowering";
@@ -673,6 +679,7 @@ export declare const REFUSALS: {
673
679
  readonly RULE_STAGE_AND_STAGES: "lowering";
674
680
  readonly RULE_TASKS_REQUIRED: "lint";
675
681
  readonly RULE_UNKNOWN_OPTION: "lowering";
682
+ readonly SCHEDULE_CRON_INVALID: "lint";
676
683
  readonly SCHEDULE_CRON_VERSION: "lowering";
677
684
  readonly SCHEDULE_INTERVAL_VERSION: "lowering";
678
685
  readonly SCHEDULE_NEVER_FIRES: "lint";
@@ -330,10 +330,13 @@ export const REFUSALS = {
330
330
  CONV_AGENT_SETTINGS_MODE: 'lint',
331
331
  CUSTOM_FIELDS_UNPREPARED: 'lint',
332
332
  DANGLING_FLOW: 'lowering',
333
+ DATAFABRIC_CHOICE_VALUE: 'lint',
334
+ DATAFABRIC_CHOICE_WRITE_VALUE: 'lint',
333
335
  DATAFABRIC_DELETE_HAS_NO_OUTPUT: 'lint',
334
336
  DATAFABRIC_EMPTY_SET: 'lint',
335
337
  DATAFABRIC_EMPTY_VALUES: 'lint',
336
338
  DATAFABRIC_ENTITY_REF_INVALID: 'lowering',
339
+ DATAFABRIC_FIELD_TYPE: 'lint',
337
340
  DATAFABRIC_FILTER_BLANK_VALUE: 'lint',
338
341
  DATAFABRIC_FOLDER_NO_RESOURCE_KEY: 'lint',
339
342
  DATAFABRIC_FROMREAD_MULTIPLE: 'lint',
@@ -341,11 +344,14 @@ export const REFUSALS = {
341
344
  DATAFABRIC_IN_REQUIRES_MULTIPLE: 'lint',
342
345
  DATAFABRIC_LIMIT_RANGE: 'lint',
343
346
  DATAFABRIC_NO_ENTITY: 'lint',
347
+ DATAFABRIC_NULL_REQUIRED: 'lint',
344
348
  DATAFABRIC_QUERY_OPTS_WITHOUT_MULTIPLE: 'lint',
345
349
  DATAFABRIC_RECORD_REF: 'lowering',
350
+ DATAFABRIC_REQUIRED_MISSING: 'lint',
346
351
  DATAFABRIC_RESOURCE_KEY_NO_FOLDER: 'lowering',
347
352
  DATAFABRIC_RESULT_MODE_VERSION: 'lowering',
348
353
  DATAFABRIC_SYSTEM_COLUMN: 'lint',
354
+ DATAFABRIC_UNKNOWN_FIELD: 'lint',
349
355
  DEAD_END: 'lint',
350
356
  DECLARATION_SHAPE: 'lowering',
351
357
  DECLARATION_TYPE_NOT_FLOW: 'lowering',
@@ -749,6 +755,7 @@ export const REFUSALS = {
749
755
  RULE_STAGE_AND_STAGES: 'lowering',
750
756
  RULE_TASKS_REQUIRED: 'lint',
751
757
  RULE_UNKNOWN_OPTION: 'lowering',
758
+ SCHEDULE_CRON_INVALID: 'lint',
752
759
  SCHEDULE_CRON_VERSION: 'lowering',
753
760
  SCHEDULE_INTERVAL_VERSION: 'lowering',
754
761
  SCHEDULE_NEVER_FIRES: 'lint',
@@ -1,3 +1,4 @@
1
+ import type { EntityFieldSchema } from './entity-schema.js';
1
2
  /** The kind a Data Fabric entity is catalogued under. */
2
3
  export declare const ENTITY_KIND = "Entity";
3
4
  /**
@@ -55,6 +56,14 @@ export interface ResourceResolution {
55
56
  * the author's reference and rebuilds the copy instead of treating it as authored.
56
57
  */
57
58
  aliasOf?: string;
59
+ /**
60
+ * For an entity: its columns, as `prepare --entity` read them from the tenant
61
+ * (#1980). `check` validates a step's column names, value types, choice-set
62
+ * values and nullability against them. Absent when the schema could not be
63
+ * read (a solution-authored entity, a failed read) or for a row written
64
+ * before prepare recorded it; `check` then checks no column.
65
+ */
66
+ fields?: EntityFieldSchema[];
58
67
  }
59
68
  /** Every recorded resolution, keyed by {@link resourceLedgerKey}. */
60
69
  export type ResourceResolutions = Readonly<Record<string, ResourceResolution>>;