@uipath/maestro-builder-sdk 6.85.1 → 6.85.3

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
@@ -118,11 +118,11 @@ could hand you spans for a version you do not have.
118
118
  | `DelayInputs` | type | `dist/nodes/delay/flow/spec.d.ts:14-35` | Option shapes | |
119
119
  | `descriptor` | function | `dist/core/connectors.d.ts:111-123` | Generated descriptors | Brand a descriptor literal with its input/output types (zero runtime cost). |
120
120
  | `dim` | function | `dist/flow-sdk.d.ts:584-606` | Flow construction | A node's size on the canvas, in pixels — the third argument of at. |
121
- | `documentClassify` | function | `dist/nodes/document/flow/factories.d.ts:8-16` | Actions | Classify a document into a document type (`uipath.document.classify`). |
121
+ | `documentClassify` | function | `dist/nodes/document/flow/factories.d.ts:8-19` | Actions | Classify a document into a document type (`uipath.document.classify`). |
122
122
  | `DocumentClassifyInputs` | interface | `dist/nodes/document/flow/spec.d.ts:10-20` | Option shapes | What `documentClassify()` takes: the document, and how to split and classify it. |
123
123
  | `DocValidationInputs` | interface | `dist/nodes/hitl/flow/spec.d.ts:76-99` | Option shapes | The Document Validation task's subject — `variant: 'document-validation'` only. |
124
124
  | `DoWhileOptions` | interface | `dist/flow-sdk.d.ts:409-418` | Option shapes | Do-while options. |
125
- | `dynamicExtract` | function | `dist/nodes/document/flow/factories.d.ts:17-27` | Actions | Extract fields from a document with an INLINE schema — Dynamic Extract (`uipath.ixp.extract-document-builder`), the… |
125
+ | `dynamicExtract` | function | `dist/nodes/document/flow/factories.d.ts:20-30` | Actions | Extract fields from a document with an INLINE schema — Dynamic Extract (`uipath.ixp.extract-document-builder`), the… |
126
126
  | `DynamicExtractInputs` | interface | `dist/nodes/document/flow/spec.d.ts:21-56` | Option shapes | What `dynamicExtract()` takes: the document and the fields to extract from it. |
127
127
  | `EdgeRoute` | interface | `dist/flow-sdk.d.ts:607-621` | Supporting types | One edge's route: user-dragged bends and/or the auto-router's waypoints. |
128
128
  | `endCall` | function | `dist/nodes/agent/flow/factories.d.ts:26-33` | Actions | Hang up (`uipath.conversational.voice.end-call`). |
@@ -183,7 +183,7 @@ could hand you spans for a version you do not have.
183
183
  | `InOutField` | interface | `dist/core/actions.d.ts:243-260` | Supporting types | A value the reviewer READS **and can correct**: pre-filled from the flow, editable on the form, and the (possibly… |
184
184
  | `input` | function | `dist/core/expr.d.ts:44-61` | Expressions and types | Reference a flow input by name → `$vars.<triggerId>.output.<name>`. |
185
185
  | `isLookupToken` | function | `dist/core/lookups.d.ts:53-54` | Generated descriptors | True when `v` is an unresolved LookupToken. |
186
- | `ixpExtract` | function | `dist/nodes/document/flow/factories.d.ts:28-82` | Actions | Extract fields from a document with a published IxP project — the platform's **Extract** node (`uipath.ixp.*`, service… |
186
+ | `ixpExtract` | function | `dist/nodes/document/flow/factories.d.ts:31-85` | Actions | Extract fields from a document with a published IxP project — the platform's **Extract** node (`uipath.ixp.*`, service… |
187
187
  | `IxpExtractInputs` | interface | `dist/nodes/document/flow/spec.d.ts:74-149` | Option shapes | What `ixpExtract()` takes: the IxP project's extractor, its identity on the tenant, and the document. |
188
188
  | `IxpToolRef` | interface | `dist/core/actions.d.ts:668-706` | Supporting types | A published IxP (Intelligent eXtraction Platform) project as a tool — the agent decides when to extract a document and… |
189
189
  | `js` | function | `dist/core/expr.d.ts:247-282` | Expressions and types | Build a raw JS *expression* (a condition or computation). |
@@ -567,6 +567,8 @@ export declare const REFUSALS: {
567
567
  readonly PARALLEL_HAS_NO_OUTPUT: "lint";
568
568
  readonly PARALLEL_REF_JOIN: "lint";
569
569
  readonly PARALLEL_TOO_FEW_ARMS: "lint";
570
+ readonly PATTERN_NO_ATTACHMENT: "lint";
571
+ readonly PATTERN_NO_PROMPT: "lint";
570
572
  readonly PORT_ALREADY_ROUTED: "lowering";
571
573
  readonly PORT_EMPTY_PATH: "lowering";
572
574
  readonly PORT_NO_SOURCE_STEP: "lowering";
@@ -640,6 +640,8 @@ export const REFUSALS = {
640
640
  PARALLEL_HAS_NO_OUTPUT: 'lint',
641
641
  PARALLEL_REF_JOIN: 'lint',
642
642
  PARALLEL_TOO_FEW_ARMS: 'lint',
643
+ PATTERN_NO_ATTACHMENT: 'lint',
644
+ PATTERN_NO_PROMPT: 'lint',
643
645
  PORT_ALREADY_ROUTED: 'lowering',
644
646
  PORT_EMPTY_PATH: 'lowering',
645
647
  PORT_NO_SOURCE_STEP: 'lowering',
@@ -4956,7 +4956,8 @@
4956
4956
  "description": "Create a complex summary of a document",
4957
4957
  "display": {
4958
4958
  "label": "Summarize",
4959
- "icon": "sigma"
4959
+ "icon": "sigma",
4960
+ "isPreview": true
4960
4961
  },
4961
4962
  "handleConfiguration": [
4962
4963
  {
@@ -5006,7 +5007,11 @@
5006
5007
  "returnCitations": {
5007
5008
  "type": "boolean"
5008
5009
  }
5009
- }
5010
+ },
5011
+ "required": [
5012
+ "attachment",
5013
+ "prompt"
5014
+ ]
5010
5015
  },
5011
5016
  "inputDefaults": {
5012
5017
  "attachment": "",
@@ -5117,7 +5122,7 @@
5117
5122
  "name": "inputs.attachment",
5118
5123
  "type": "file",
5119
5124
  "label": "Attachment",
5120
- "description": "File or document to analyze with Summarize",
5125
+ "description": "The summary is generated from this file or document.",
5121
5126
  "validation": {
5122
5127
  "required": true,
5123
5128
  "messages": {
@@ -5130,12 +5135,12 @@
5130
5135
  "type": "custom",
5131
5136
  "component": "prompt-editor",
5132
5137
  "label": "Prompt",
5133
- "description": "Specify the task or query for Summarize to process",
5138
+ "description": "The prompt defines what the summary should focus on.",
5134
5139
  "componentProps": {
5135
5140
  "multiline": true,
5136
5141
  "minRows": 4,
5137
5142
  "maxRows": 20,
5138
- "placeholder": "Specify the task or query for Summarize to process"
5143
+ "placeholder": "Summarize the key findings and risks"
5139
5144
  },
5140
5145
  "validation": {
5141
5146
  "required": true,
@@ -5155,8 +5160,8 @@
5155
5160
  {
5156
5161
  "name": "inputs.returnCitations",
5157
5162
  "type": "checkbox",
5158
- "label": "Return Citations",
5159
- "description": "When enabled, Summarize will include inline citations and references to source materials in the generated response. This helps trace information back to original sources and verify accuracy."
5163
+ "label": "Include citations",
5164
+ "description": "Citations link generated summaries to source material."
5160
5165
  }
5161
5166
  ]
5162
5167
  }
@@ -5166,7 +5171,7 @@
5166
5171
  "uipath.pattern.batch-transform@1.0": {
5167
5172
  "nodeType": "uipath.pattern.batch-transform",
5168
5173
  "version": "1.0",
5169
- "category": "data-operations",
5174
+ "category": "data",
5170
5175
  "tags": [
5171
5176
  "batch",
5172
5177
  "transform",
@@ -5176,7 +5181,7 @@
5176
5181
  "supportsErrorHandling": true,
5177
5182
  "description": "Add AI-generated columns to a CSV",
5178
5183
  "display": {
5179
- "label": "Batch Transform",
5184
+ "label": "Batch transform",
5180
5185
  "icon": "grid-2x2-plus"
5181
5186
  },
5182
5187
  "handleConfiguration": [
@@ -5230,7 +5235,11 @@
5230
5235
  "outputColumns": {
5231
5236
  "type": "array"
5232
5237
  }
5233
- }
5238
+ },
5239
+ "required": [
5240
+ "attachment",
5241
+ "prompt"
5242
+ ]
5234
5243
  },
5235
5244
  "inputDefaults": {
5236
5245
  "attachment": "",
@@ -5292,7 +5301,7 @@
5292
5301
  },
5293
5302
  "form": {
5294
5303
  "id": "batch-transform-properties",
5295
- "title": "Batch Transform Configuration",
5304
+ "title": "Batch transform configuration",
5296
5305
  "sections": [
5297
5306
  {
5298
5307
  "id": "source",
@@ -5304,7 +5313,7 @@
5304
5313
  "name": "inputs.attachment",
5305
5314
  "type": "file",
5306
5315
  "label": "Attachment",
5307
- "description": "CSV file to transform",
5316
+ "description": "The output is generated from this CSV file.",
5308
5317
  "validation": {
5309
5318
  "required": true,
5310
5319
  "messages": {
@@ -5317,12 +5326,12 @@
5317
5326
  "type": "custom",
5318
5327
  "component": "prompt-editor",
5319
5328
  "label": "Prompt",
5320
- "description": "Specify the task or query for batch processing",
5329
+ "description": "The prompt defines how each row in the CSV file is processed.",
5321
5330
  "componentProps": {
5322
5331
  "multiline": true,
5323
5332
  "minRows": 4,
5324
5333
  "maxRows": 20,
5325
- "placeholder": "Specify the task or query for batch processing"
5334
+ "placeholder": "Extract the company name and renewal date from each item"
5326
5335
  },
5327
5336
  "validation": {
5328
5337
  "required": true,
@@ -5335,7 +5344,7 @@
5335
5344
  "name": "inputs.enableWebSearchGrounding",
5336
5345
  "type": "checkbox",
5337
5346
  "label": "Enable web search grounding",
5338
- "description": "When enabled, batch transform can use web search to ground or enrich results during processing."
5347
+ "description": "Web search can ground or enrich transformation results."
5339
5348
  }
5340
5349
  ]
5341
5350
  },
@@ -5350,11 +5359,11 @@
5350
5359
  "type": "custom",
5351
5360
  "component": "output-columns-editor",
5352
5361
  "label": "",
5353
- "description": "Define the columns to be added to the output data",
5362
+ "description": "These columns are added to the output data.",
5354
5363
  "componentProps": {
5355
5364
  "maxColumns": 10,
5356
5365
  "namePlaceholder": "Column name",
5357
- "descriptionPlaceholder": "Describe what this new column should contain",
5366
+ "descriptionPlaceholder": "Company name or Renewal date",
5358
5367
  "addButtonPlacement": "footer"
5359
5368
  }
5360
5369
  }
@@ -6570,7 +6579,8 @@
6570
6579
  "supportsErrorHandling": true,
6571
6580
  "display": {
6572
6581
  "label": "Classify",
6573
- "icon": "file-search"
6582
+ "icon": "tag",
6583
+ "isPreview": true
6574
6584
  },
6575
6585
  "handleConfiguration": [
6576
6586
  {
@@ -6590,6 +6600,16 @@
6590
6600
  "id": "success",
6591
6601
  "type": "source",
6592
6602
  "handleType": "output"
6603
+ },
6604
+ {
6605
+ "id": "error",
6606
+ "label": "Error",
6607
+ "type": "source",
6608
+ "handleType": "output",
6609
+ "visible": "{inputs.errorHandlingEnabled}",
6610
+ "constraints": {
6611
+ "maxConnections": 1
6612
+ }
6593
6613
  }
6594
6614
  ]
6595
6615
  }
@@ -6610,9 +6630,14 @@
6610
6630
  ],
6611
6631
  "outputs": [
6612
6632
  {
6613
- "id": "ClassificationResult",
6633
+ "id": "document_type",
6614
6634
  "direction": "out",
6615
- "type": "object"
6635
+ "type": "string"
6636
+ },
6637
+ {
6638
+ "id": "segments",
6639
+ "direction": "out",
6640
+ "type": "array"
6616
6641
  }
6617
6642
  ],
6618
6643
  "runCapability": "unsupported",
@@ -6654,6 +6679,9 @@
6654
6679
  },
6655
6680
  "splitPages": {
6656
6681
  "type": "boolean"
6682
+ },
6683
+ "classificationSchema": {
6684
+ "type": "object"
6657
6685
  }
6658
6686
  },
6659
6687
  "required": [
@@ -6662,157 +6690,241 @@
6662
6690
  },
6663
6691
  "inputDefaults": {
6664
6692
  "modelConfig": {
6665
- "model_version": "gemini_2_5_flash",
6666
- "temperature": null,
6667
- "top_p": null,
6668
- "seed": null,
6669
- "frequency_penalty": null
6693
+ "model_version": "gemini_2_5_flash"
6670
6694
  },
6671
6695
  "fileRef": "",
6672
6696
  "pageRange": "",
6673
- "splitPages": false
6697
+ "splitPages": false,
6698
+ "classificationSchema": {
6699
+ "generalInstructions": "",
6700
+ "classes": []
6701
+ }
6674
6702
  },
6675
6703
  "outputDefinition": {
6676
6704
  "output": {
6677
6705
  "type": "object",
6678
6706
  "source": "=this",
6679
6707
  "var": "output",
6708
+ "typeName": "ClassifyDocumentOutput",
6680
6709
  "schema": {
6681
6710
  "$schema": "http://json-schema.org/draft-07/schema#",
6682
6711
  "type": "object",
6712
+ "description": "Processed document emitted by an IDP processor run.",
6683
6713
  "properties": {
6684
- "ClassificationResult": {
6685
- "type": "array",
6686
- "items": {
6687
- "type": "object",
6688
- "properties": {
6689
- "DocumentTypeId": {
6690
- "type": [
6691
- "string",
6692
- "null"
6693
- ]
6694
- },
6695
- "DocumentId": {
6696
- "type": [
6697
- "string",
6698
- "null"
6699
- ]
6700
- },
6701
- "Confidence": {
6702
- "type": "number",
6703
- "format": "float",
6704
- "minimum": -3.402823669209385e+38,
6705
- "maximum": 3.402823669209385e+38
6706
- },
6707
- "OcrConfidence": {
6708
- "type": "number",
6709
- "format": "float",
6710
- "minimum": -3.402823669209385e+38,
6711
- "maximum": 3.402823669209385e+38
6712
- },
6713
- "Reference": {
6714
+ "version": {
6715
+ "type": "string",
6716
+ "description": "Output contract version, for forward evolution and backwards-compatibility handling."
6717
+ },
6718
+ "type": {
6719
+ "type": "string",
6720
+ "enum": [
6721
+ "Extraction",
6722
+ "Classification"
6723
+ ],
6724
+ "const": "Classification",
6725
+ "description": "Processor kind that produced the document; fixes the shape of result and taxonomy. Possible values: Extraction, Classification."
6726
+ },
6727
+ "result": {
6728
+ "type": "object",
6729
+ "description": "The engine output: the processor values plus their attribution.",
6730
+ "properties": {
6731
+ "output": {
6732
+ "type": "object",
6733
+ "description": "Processor output, one property per taxonomy field, typed by the taxonomy."
6734
+ },
6735
+ "attribution": {
6736
+ "type": "object",
6737
+ "description": "Per-value provenance keyed by RFC 6901 JSON Pointer into output (e.g. \"/Net pay\").",
6738
+ "additionalProperties": {
6714
6739
  "type": "object",
6715
6740
  "properties": {
6716
- "TextStartIndex": {
6717
- "type": "integer",
6718
- "format": "int32",
6719
- "minimum": -2147483648,
6720
- "maximum": 2147483647
6721
- },
6722
- "TextLength": {
6723
- "type": "integer",
6724
- "format": "int32",
6725
- "minimum": -2147483648,
6726
- "maximum": 2147483647
6741
+ "confidence": {
6742
+ "type": "number",
6743
+ "minimum": 0,
6744
+ "maximum": 1
6727
6745
  },
6728
- "Tokens": {
6729
- "type": [
6730
- "array",
6731
- "null"
6732
- ],
6746
+ "sources": {
6747
+ "type": "array",
6733
6748
  "items": {
6734
6749
  "type": "object",
6750
+ "description": "Where a value was read from; one entry per attachment page.",
6735
6751
  "properties": {
6736
- "TextStartIndex": {
6737
- "type": "integer",
6738
- "format": "int32",
6739
- "minimum": -2147483648,
6740
- "maximum": 2147483647
6741
- },
6742
- "TextLength": {
6743
- "type": "integer",
6744
- "format": "int32",
6745
- "minimum": -2147483648,
6746
- "maximum": 2147483647
6747
- },
6748
- "Page": {
6749
- "type": "integer",
6750
- "format": "int32",
6751
- "minimum": -2147483648,
6752
- "maximum": 2147483647
6753
- },
6754
- "PageWidth": {
6755
- "type": "number",
6756
- "format": "float",
6757
- "minimum": -3.402823669209385e+38,
6758
- "maximum": 3.402823669209385e+38
6752
+ "attachmentId": {
6753
+ "type": "string",
6754
+ "description": "Attachment (document) the value was read from."
6759
6755
  },
6760
- "PageHeight": {
6761
- "type": "number",
6762
- "format": "float",
6763
- "minimum": -3.402823669209385e+38,
6764
- "maximum": 3.402823669209385e+38
6756
+ "pageNumber": {
6757
+ "type": "integer"
6765
6758
  },
6766
- "Boxes": {
6767
- "type": [
6768
- "array",
6769
- "null"
6770
- ],
6759
+ "boundingBoxes": {
6760
+ "type": "array",
6771
6761
  "items": {
6772
- "maxItems": 4,
6773
- "minItems": 4,
6774
- "type": "array",
6775
- "items": {
6776
- "type": "number"
6777
- }
6762
+ "type": "object",
6763
+ "properties": {
6764
+ "xMin": {
6765
+ "type": "number"
6766
+ },
6767
+ "xMax": {
6768
+ "type": "number"
6769
+ },
6770
+ "yMin": {
6771
+ "type": "number"
6772
+ },
6773
+ "yMax": {
6774
+ "type": "number"
6775
+ }
6776
+ },
6777
+ "required": [
6778
+ "xMin",
6779
+ "xMax",
6780
+ "yMin",
6781
+ "yMax"
6782
+ ]
6778
6783
  }
6779
6784
  }
6780
6785
  },
6781
- "additionalProperties": false
6786
+ "required": [
6787
+ "attachmentId",
6788
+ "pageNumber",
6789
+ "boundingBoxes"
6790
+ ]
6782
6791
  }
6783
6792
  }
6784
6793
  },
6785
- "additionalProperties": false
6786
- },
6787
- "DocumentBounds": {
6788
- "type": "object",
6789
- "properties": {
6790
- "PageCount": {
6791
- "type": "integer",
6792
- "format": "int32",
6793
- "minimum": -2147483648,
6794
- "maximum": 2147483647
6795
- },
6796
- "PageRange": {
6797
- "type": [
6798
- "string",
6799
- "null"
6800
- ]
6801
- }
6802
- },
6803
- "additionalProperties": false
6804
- },
6805
- "ClassifierName": {
6806
- "type": [
6807
- "string",
6808
- "null"
6794
+ "required": [
6795
+ "confidence",
6796
+ "sources"
6809
6797
  ]
6810
6798
  }
6811
6799
  },
6812
- "additionalProperties": false
6813
- }
6800
+ "traceContext": {
6801
+ "type": "object",
6802
+ "description": "Trace context of the producing run, as the engine wrote it; the same ids are lifted into metadata.",
6803
+ "properties": {
6804
+ "traceId": {
6805
+ "type": "string",
6806
+ "minLength": 1,
6807
+ "description": "W3C trace id of the producing run."
6808
+ },
6809
+ "spanId": {
6810
+ "type": "string",
6811
+ "minLength": 1,
6812
+ "description": "The producing span."
6813
+ },
6814
+ "folderKey": {
6815
+ "type": "string",
6816
+ "description": "Folder the producing run executed in."
6817
+ }
6818
+ },
6819
+ "required": [
6820
+ "traceId",
6821
+ "spanId",
6822
+ "folderKey"
6823
+ ]
6824
+ }
6825
+ },
6826
+ "required": [
6827
+ "output",
6828
+ "attribution",
6829
+ "traceContext"
6830
+ ]
6831
+ },
6832
+ "taxonomy": {
6833
+ "type": "object",
6834
+ "description": "The classification schema the result was produced against."
6835
+ },
6836
+ "metadata": {
6837
+ "type": "object",
6838
+ "description": "Identifiers of the run and the document, for calling back into the platform, plus the model configuration the run executed with. New run or document descriptors are added here.",
6839
+ "properties": {
6840
+ "pipelineRunId": {
6841
+ "type": "string",
6842
+ "description": "GUID of the IDP pipeline run that produced this output; ties it back to the Processor run for support and debugging."
6843
+ },
6844
+ "folderKey": {
6845
+ "type": "string",
6846
+ "description": "Folder the producing run executed in; the x-uipath-folderkey for Traces, Buckets and Feedback calls."
6847
+ },
6848
+ "traceId": {
6849
+ "type": "string",
6850
+ "minLength": 1,
6851
+ "description": "W3C trace id of the producing run; the key to its spans and artifacts in the Traces service."
6852
+ },
6853
+ "spanId": {
6854
+ "type": "string",
6855
+ "minLength": 1,
6856
+ "description": "The producing span; the Feedback anchor."
6857
+ },
6858
+ "modelConfig": {
6859
+ "type": "object",
6860
+ "description": "The processor configuration this run used. It grows with the processor: read the keys you know and tolerate the rest.",
6861
+ "properties": {
6862
+ "prompt": {
6863
+ "type": "string",
6864
+ "description": "The overall instructions the author wrote for the operation."
6865
+ },
6866
+ "extractionStrategy": {
6867
+ "type": "string",
6868
+ "description": "The configured extraction strategy (e.g. ZeroShot, DynamicExtract)."
6869
+ },
6870
+ "attributionStrategy": {
6871
+ "type": "string",
6872
+ "description": "The configured attribution strategy (e.g. WordId, Visual); it decides what result.attribution can carry."
6873
+ },
6874
+ "languageSupport": {
6875
+ "type": [
6876
+ "string",
6877
+ "null"
6878
+ ],
6879
+ "description": "The configured language support (e.g. auto): the setting, not the language detected in the document."
6880
+ },
6881
+ "layoutParsing": {
6882
+ "type": [
6883
+ "string",
6884
+ "null"
6885
+ ],
6886
+ "description": "The configured layout parsing (e.g. uipath-figure-to-text)."
6887
+ },
6888
+ "overrides": {
6889
+ "type": [
6890
+ "string",
6891
+ "null"
6892
+ ],
6893
+ "description": "Engine-level overrides set on the processor, as a serialized JSON string; parse it before reading."
6894
+ },
6895
+ "modelOverride": {
6896
+ "type": [
6897
+ "string",
6898
+ "null"
6899
+ ],
6900
+ "description": "The model the run was configured with (e.g. gemini-2.5-flash); null when the processor runs on the default."
6901
+ }
6902
+ },
6903
+ "required": [
6904
+ "prompt",
6905
+ "languageSupport",
6906
+ "modelOverride",
6907
+ "extractionStrategy",
6908
+ "attributionStrategy"
6909
+ ]
6910
+ }
6911
+ },
6912
+ "required": [
6913
+ "pipelineRunId",
6914
+ "folderKey",
6915
+ "traceId",
6916
+ "spanId",
6917
+ "modelConfig"
6918
+ ]
6814
6919
  }
6815
- }
6920
+ },
6921
+ "required": [
6922
+ "version",
6923
+ "type",
6924
+ "result",
6925
+ "taxonomy",
6926
+ "metadata"
6927
+ ]
6816
6928
  }
6817
6929
  },
6818
6930
  "error": {
@@ -6860,20 +6972,6 @@
6860
6972
  "id": "classify-document-properties",
6861
6973
  "title": "Classify configuration",
6862
6974
  "sections": [
6863
- {
6864
- "id": "model-config",
6865
- "title": "Model",
6866
- "collapsible": true,
6867
- "defaultExpanded": true,
6868
- "fields": [
6869
- {
6870
- "name": "inputs.modelConfig",
6871
- "type": "custom",
6872
- "component": "classify-model-config",
6873
- "label": ""
6874
- }
6875
- ]
6876
- },
6877
6975
  {
6878
6976
  "id": "file-input",
6879
6977
  "title": "File input",
@@ -6884,7 +6982,7 @@
6884
6982
  "name": "inputs.fileRef",
6885
6983
  "type": "file",
6886
6984
  "label": "File",
6887
- "description": "The document type is determined from this file.",
6985
+ "description": "File to classify",
6888
6986
  "validation": {
6889
6987
  "required": true,
6890
6988
  "messages": {
@@ -6902,12 +7000,33 @@
6902
7000
  {
6903
7001
  "name": "inputs.splitPages",
6904
7002
  "type": "switch",
6905
- "label": "Split pages"
7003
+ "label": "Split pages",
7004
+ "description": "Split document packets into individual documents."
7005
+ }
7006
+ ]
7007
+ },
7008
+ {
7009
+ "id": "model-config",
7010
+ "title": "Model config",
7011
+ "collapsible": true,
7012
+ "defaultExpanded": true,
7013
+ "fields": [
7014
+ {
7015
+ "name": "inputs.modelConfig",
7016
+ "type": "custom",
7017
+ "component": "classify-model-config",
7018
+ "label": ""
6906
7019
  }
6907
7020
  ]
6908
7021
  }
6909
7022
  ]
6910
- }
7023
+ },
7024
+ "takeoverTabs": [
7025
+ "definition",
7026
+ "datasets",
7027
+ "evaluators",
7028
+ "evalRuns"
7029
+ ]
6911
7030
  },
6912
7031
  "uipath.ixp.extract-document-builder@1.0.0": {
6913
7032
  "nodeType": "uipath.ixp.extract-document-builder",
@@ -1,8 +1,8 @@
1
- import { aiPatternNodeTypes } from './node-type.js';
1
+ import { AI_PATTERN_DIAGNOSTICS, aiPatternNodeTypes } from './node-type.js';
2
2
  export const aiPatternsFlowFamily = {
3
3
  id: 'ai-patterns',
4
4
  title: 'AI patterns',
5
5
  types: aiPatternNodeTypes,
6
- // No node-local rules: what an AI-pattern step could get wrong is the service's to say.
7
- diagnostics: {},
6
+ // Only the two inputs both definitions require; the rest is the service's to say.
7
+ diagnostics: AI_PATTERN_DIAGNOSTICS,
8
8
  };
@@ -1,3 +1,4 @@
1
+ import type { DiagnosticCatalog } from '../../../core/nodes/family.js';
1
2
  import type { FlowNodeType } from '../../../flow-node-type.js';
2
3
  import type { BatchTransformInputs, SummarizeInputs } from './spec.js';
3
4
  export type SummarizeSpec = {
@@ -8,4 +9,11 @@ export type BatchTransformSpec = {
8
9
  kind: 'batchTransform';
9
10
  inputs: BatchTransformInputs;
10
11
  };
12
+ /**
13
+ * Both definitions list `attachment` and `prompt` in `inputDefinition.required`,
14
+ * as the designer's form does, so `uip maestro flow validate` refuses a node
15
+ * without either. `serialize` drops an input the author left out, so check says
16
+ * so first, naming the step.
17
+ */
18
+ export declare const AI_PATTERN_DIAGNOSTICS: DiagnosticCatalog;
11
19
  export declare const aiPatternNodeTypes: (FlowNodeType<SummarizeSpec> | FlowNodeType<BatchTransformSpec>)[];
@@ -5,6 +5,27 @@
5
5
  * serialized output and printed source unchanged.
6
6
  */
7
7
  import { Expr } from '../../../core/expr.js';
8
+ /**
9
+ * Both definitions list `attachment` and `prompt` in `inputDefinition.required`,
10
+ * as the designer's form does, so `uip maestro flow validate` refuses a node
11
+ * without either. `serialize` drops an input the author left out, so check says
12
+ * so first, naming the step.
13
+ */
14
+ export const AI_PATTERN_DIAGNOSTICS = {
15
+ PATTERN_NO_ATTACHMENT: { severity: 'error', summary: 'no attachment, so the AI service has no file to read' },
16
+ PATTERN_NO_PROMPT: { severity: 'error', summary: 'no prompt, so the AI service is not told what to do' },
17
+ };
18
+ function isBlank(v) {
19
+ return v === undefined || v === null || (typeof v === 'string' && v.trim() === '');
20
+ }
21
+ function checkRequired(inputs, ctx) {
22
+ if (isBlank(inputs.attachment)) {
23
+ ctx.report('PATTERN_NO_ATTACHMENT', `"${ctx.step}" has no attachment. Pass a file input or an upstream attachment, e.g. attachment: input('documentFile').`);
24
+ }
25
+ if (isBlank(inputs.prompt)) {
26
+ ctx.report('PATTERN_NO_PROMPT', `"${ctx.step}" has no prompt. Say what the service should do with the file.`);
27
+ }
28
+ }
8
29
  /** A value as the author wrote it: an expression back to an Expr, a literal string as itself, any other JSON as is. */
9
30
  function lifted(raw, ctx) {
10
31
  const text = Array.isArray(raw) ? undefined : ctx.sourceText(raw);
@@ -58,6 +79,7 @@ const summarizeType = {
58
79
  ['returnCitations', inputs.returnCitations === true ? 'true' : undefined],
59
80
  ],
60
81
  }),
82
+ check: ({ inputs }, ctx) => checkRequired(inputs, ctx),
61
83
  // Deliberately none: references in the prompt, the attachment and the columns are not checked.
62
84
  expressions: () => [],
63
85
  output: () => ({ kind: 'opaque' }),
@@ -99,6 +121,7 @@ const batchTransformType = {
99
121
  ['enableWebSearchGrounding', inputs.enableWebSearchGrounding === true ? 'true' : undefined],
100
122
  ],
101
123
  }),
124
+ check: ({ inputs }, ctx) => checkRequired(inputs, ctx),
102
125
  // Deliberately none, as for Summarize.
103
126
  expressions: () => [],
104
127
  output: () => ({ kind: 'opaque' }),
@@ -43,15 +43,19 @@ function delayAt(version) {
43
43
  serialize: ({ inputs }) => ({ inputs: delayInputs(inputs) }),
44
44
  // The three spellings delayInputs writes — `{ timerType, timerPreset,
45
45
  // timerValue? }` for a duration and `{ timerType: 'timeDate', timerDate }`
46
- // for an absolute wait — back to the factory's one.
47
- deserialize: (node) => {
46
+ // for an absolute wait — back to the factory's one. Each value is read
47
+ // through `ctx.sourceText`, not as a bare string: compile's migrate wraps an
48
+ // `=js:` duration or date into a `{ type: 'jsExpression', expression }`
49
+ // envelope (Studio Web writes the same), and a string-only read turned that
50
+ // into `duration: ""` — the wait silently lost on the next round trip (#1671).
51
+ deserialize: (node, ctx) => {
48
52
  const inputs = node.inputs ?? {};
53
+ const text = (raw) => ctx.sourceText(raw) ?? '';
49
54
  if (inputs.timerType === 'timeDate') {
50
- return { kind: 'delay', inputs: { until: typeof inputs.timerDate === 'string' ? inputs.timerDate : '' } };
55
+ return { kind: 'delay', inputs: { until: text(inputs.timerDate) } };
51
56
  }
52
- const duration = inputs.timerPreset === 'custom'
53
- ? (typeof inputs.timerValue === 'string' ? inputs.timerValue : '')
54
- : (typeof inputs.timerPreset === 'string' ? inputs.timerPreset : '');
57
+ const preset = text(inputs.timerPreset);
58
+ const duration = preset === 'custom' ? text(inputs.timerValue) : preset;
55
59
  return { kind: 'delay', inputs: { duration } };
56
60
  },
57
61
  check: ({ inputs }, ctx) => checkDelay(inputs, ctx),
@@ -7,8 +7,11 @@ import { type ActionSpec } from '../../../core/actions.js';
7
7
  import type { DocumentClassifyInputs, DynamicExtractInputs, IxpExtractInputs } from './spec.js';
8
8
  /**
9
9
  * Classify a document into a document type (`uipath.document.classify`). The
10
- * result publishes `ClassificationResult` — an array of typed classifications
11
- * with page ranges and confidences.
10
+ * output is the IDP `ProcessedDocument` envelope the designer declares:
11
+ * `version`, `type` (`'Classification'`), `result` (the processor's `output`,
12
+ * its `attribution` and `traceContext`), `taxonomy` and `metadata` (run ids
13
+ * and the model configuration). Read the answer at
14
+ * `$vars.<step>.output.result.output`.
12
15
  *
13
16
  * @param inputs - The file reference and optional page range / split / model settings.
14
17
  * @returns An action spec to pass to `.step(name, …)`.
@@ -6,8 +6,11 @@
6
6
  import { builtinActionSpec } from '../../../core/actions.js';
7
7
  /**
8
8
  * Classify a document into a document type (`uipath.document.classify`). The
9
- * result publishes `ClassificationResult` — an array of typed classifications
10
- * with page ranges and confidences.
9
+ * output is the IDP `ProcessedDocument` envelope the designer declares:
10
+ * `version`, `type` (`'Classification'`), `result` (the processor's `output`,
11
+ * its `attribution` and `traceContext`), `taxonomy` and `metadata` (run ids
12
+ * and the model configuration). Read the answer at
13
+ * `$vars.<step>.output.result.output`.
11
14
  *
12
15
  * @param inputs - The file reference and optional page range / split / model settings.
13
16
  * @returns An action spec to pass to `.step(name, …)`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.85.1",
3
+ "version": "6.85.3",
4
4
  "description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.uipath.com/maestro",
@@ -103,5 +103,5 @@
103
103
  "@types/node": "^22.7.0",
104
104
  "esbuild": "^0.28.1"
105
105
  },
106
- "gitref": "00ce3422d667b81d16eea77762636a51babd0e4a"
106
+ "gitref": "78e095c8f23759ce52656ba998e071c274a11c03"
107
107
  }