@uipath/skills 1.199.0 → 1.200.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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/CODEOWNERS +14 -8
- package/README.md +18 -3
- package/assets/skill-status.json +9 -1
- package/assets/uip-catalog-snapshot.json +227 -21
- package/package.json +11 -2
- package/scripts/npm-package-lifecycle.mjs +46 -0
- package/skills/uipath-admin/SKILL.md +5 -1
- package/skills/uipath-admin/references/audit-commands.md +1 -1
- package/skills/uipath-admin/references/audit-workflow-guide.md +9 -0
- package/skills/uipath-agents/SKILL.md +2 -2
- package/skills/uipath-agents/references/lowcode/capabilities/context/index.md +7 -0
- package/skills/uipath-agents/references/lowcode/capabilities/integration-service/integration-service.md +5 -6
- package/skills/uipath-agents/references/lowcode/critical-rules/critical-rules.md +1 -1
- package/skills/uipath-agents/references/lowcode/evaluations/evaluation-sets.md +5 -0
- package/skills/uipath-agents/references/lowcode/project-lifecycle.md +3 -3
- package/skills/uipath-agents/references/lowcode/prompting/autonomous-agent-prompting-guide.md +3 -2
- package/skills/uipath-api-workflow/SKILL.md +2 -1
- package/skills/uipath-api-workflow/references/cli-reference.md +3 -3
- package/skills/uipath-coded-apps/SKILL.md +3 -2
- package/skills/uipath-coded-apps/assets/fixtures/governance-dashboard-starter-kit.tar.gz +0 -0
- package/skills/uipath-coded-apps/assets/templates/web-app-template.md +1 -1
- package/skills/uipath-coded-apps/references/create-web-app.md +60 -48
- package/skills/uipath-coded-apps/references/dashboards/CAPABILITY.md +2 -2
- package/skills/uipath-coded-apps/references/dashboards/plugins/build/impl.md +2 -2
- package/skills/uipath-coded-apps/references/dashboards/primitives/tier-resolution.md +16 -16
- package/skills/uipath-coded-apps/references/oauth-scopes.md +28 -272
- package/skills/uipath-coded-apps/references/sdk/action-center.md +26 -243
- package/skills/uipath-coded-apps/references/sdk/agents.md +20 -130
- package/skills/uipath-coded-apps/references/sdk/conversational-agent.md +52 -706
- package/skills/uipath-coded-apps/references/sdk/data-fabric.md +20 -237
- package/skills/uipath-coded-apps/references/sdk/feedback.md +4 -139
- package/skills/uipath-coded-apps/references/sdk/governance-traces.md +7 -55
- package/skills/uipath-coded-apps/references/sdk/governance.md +4 -44
- package/skills/uipath-coded-apps/references/sdk/imports.md +77 -35
- package/skills/uipath-coded-apps/references/sdk/maestro.md +29 -406
- package/skills/uipath-coded-apps/references/sdk/orchestrator.md +30 -324
- package/skills/uipath-coded-apps/references/sdk/pagination.md +9 -67
- package/skills/uipath-coded-apps/references/sdk/traces.md +8 -43
- package/skills/uipath-functions/SKILL.md +23 -23
- package/skills/uipath-governance/SKILL.md +5 -4
- package/skills/uipath-governance/references/cli-cheatsheet.md +2 -1
- package/skills/uipath-governance/references/compliance-pack/coverage/impl.md +143 -58
- package/skills/uipath-governance/references/compliance-pack/restore/impl.md +61 -0
- package/skills/uipath-human-in-the-loop/SKILL.md +4 -2
- package/skills/uipath-insights/SKILL.md +17 -18
- package/skills/uipath-ixp/SKILL.md +12 -7
- package/skills/uipath-ixp/references/cli-reference.md +71 -9
- package/skills/uipath-ixp/references/improve-prompts-guide.md +23 -9
- package/skills/uipath-ixp/references/label-documents-guide.md +33 -5
- package/skills/uipath-maestro-bpmn/SKILL.md +15 -14
- package/skills/uipath-maestro-bpmn/references/cli-conventions.md +15 -6
- package/skills/uipath-maestro-bpmn/references/structural-bpmn.md +18 -17
- package/skills/uipath-maestro-case/SKILL.md +46 -33
- package/skills/uipath-maestro-case/assets/templates/sdd-template.md +77 -37
- package/skills/uipath-maestro-case/assets/templates/sdd-viewer.html +0 -2
- package/skills/uipath-maestro-case/references/bindings-and-expressions.md +3 -1
- package/skills/uipath-maestro-case/references/bindings-v2-sync.md +2 -2
- package/skills/uipath-maestro-case/references/brownfield.md +15 -5
- package/skills/uipath-maestro-case/references/case-commands.md +19 -3
- package/skills/uipath-maestro-case/references/case-editing-operations.md +24 -21
- package/skills/uipath-maestro-case/references/case-schema.md +38 -16
- package/skills/uipath-maestro-case/references/connector-trigger-common.md +15 -8
- package/skills/uipath-maestro-case/references/evals/evals.json +35 -18
- package/skills/uipath-maestro-case/references/implementation.md +86 -71
- package/skills/uipath-maestro-case/references/phase-0-interview.md +92 -23
- package/skills/uipath-maestro-case/references/phased-execution.md +70 -55
- package/skills/uipath-maestro-case/references/placeholder-tasks.md +5 -5
- package/skills/uipath-maestro-case/references/planning.md +57 -9
- package/skills/uipath-maestro-case/references/plugins/case/impl-json.md +7 -5
- package/skills/uipath-maestro-case/references/plugins/case/planning.md +1 -1
- package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/impl-json.md +5 -5
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/impl-json.md +41 -5
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/planning.md +27 -3
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/impl-json.md +6 -6
- package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/planning.md +3 -1
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/impl-json.md +20 -7
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +37 -4
- package/skills/uipath-maestro-case/references/plugins/sla/impl-json.md +24 -13
- package/skills/uipath-maestro-case/references/plugins/sla/planning.md +9 -3
- package/skills/uipath-maestro-case/references/plugins/stages/impl-json.md +4 -0
- package/skills/uipath-maestro-case/references/plugins/stages/planning.md +4 -1
- package/skills/uipath-maestro-case/references/plugins/tasks/action/impl-json.md +3 -1
- package/skills/uipath-maestro-case/references/plugins/tasks/action/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/agent/impl-json.md +3 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/agent/planning.md +4 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/impl-json.md +3 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/planning.md +4 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/case-management/impl-json.md +3 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/case-management/planning.md +4 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/impl-json.md +1 -1
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/impl-json.md +1 -1
- package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/planning.md +2 -0
- package/skills/uipath-maestro-case/references/plugins/tasks/create-inline-common.md +1 -1
- package/skills/uipath-maestro-case/references/plugins/tasks/process/impl-json.md +3 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/process/planning.md +6 -4
- package/skills/uipath-maestro-case/references/plugins/tasks/rpa/impl-json.md +3 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/rpa/planning.md +4 -2
- package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/impl-json.md +4 -3
- package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/planning.md +4 -0
- package/skills/uipath-maestro-case/references/plugins/triggers/event/impl-json.md +17 -14
- package/skills/uipath-maestro-case/references/plugins/triggers/event/planning.md +1 -1
- package/skills/uipath-maestro-case/references/plugins/triggers/manual/impl-json.md +13 -10
- package/skills/uipath-maestro-case/references/plugins/triggers/timer/impl-json.md +18 -16
- package/skills/uipath-maestro-case/references/plugins/triggers/timer/planning.md +2 -2
- package/skills/uipath-maestro-case/references/plugins/variables/bindings/impl-json.md +1 -1
- package/skills/uipath-maestro-case/references/plugins/variables/global-vars/impl-json.md +11 -9
- package/skills/uipath-maestro-case/references/plugins/variables/io-binding/impl-json.md +6 -2
- package/skills/uipath-maestro-case/references/plugins/variables/io-binding/planning.md +19 -1
- package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
- package/skills/uipath-maestro-case/references/sdd-generation-rules.md +155 -51
- package/skills/uipath-maestro-case/references/sla-response-shapes.md +74 -0
- package/skills/uipath-maestro-flow/SKILL.md +4 -3
- package/skills/uipath-maestro-flow/references/author/CAPABILITY.md +3 -0
- package/skills/uipath-maestro-flow/references/author/references/editing-operations-json.md +10 -17
- package/skills/uipath-maestro-flow/references/author/references/editing-operations.md +1 -1
- package/skills/uipath-maestro-flow/references/author/references/greenfield.md +8 -6
- package/skills/uipath-maestro-flow/references/author/references/planning-impl.md +1 -1
- package/skills/uipath-maestro-flow/references/author/references/plugins/agent/impl.md +4 -9
- package/skills/uipath-maestro-flow/references/author/references/plugins/agentic-process/impl.md +3 -7
- package/skills/uipath-maestro-flow/references/author/references/plugins/api-workflow/impl.md +5 -8
- package/skills/uipath-maestro-flow/references/author/references/plugins/connector/impl.md +11 -4
- package/skills/uipath-maestro-flow/references/author/references/plugins/flow/impl.md +3 -7
- package/skills/uipath-maestro-flow/references/author/references/plugins/inline-agent/impl.md +14 -17
- package/skills/uipath-maestro-flow/references/author/references/plugins/ixp/impl.md +60 -13
- package/skills/uipath-maestro-flow/references/author/references/plugins/queue/impl.md +2 -14
- package/skills/uipath-maestro-flow/references/author/references/plugins/rpa/impl.md +4 -9
- package/skills/uipath-maestro-flow/references/author/references/plugins/script/impl.md +3 -0
- package/skills/uipath-maestro-flow/references/author/references/plugins/subflow/impl.md +5 -9
- package/skills/uipath-maestro-flow/references/author/references/plugins/transform/impl.md +13 -0
- package/skills/uipath-maestro-flow/references/shared/action-nodes.md +2 -2
- package/skills/uipath-maestro-flow/references/shared/file-format.md +16 -12
- package/skills/uipath-maestro-flow/references/shared/variables-and-expressions.md +3 -3
- package/skills/uipath-planner/SKILL.md +1 -1
- package/skills/uipath-planner/references/non-pdd-lane-guide.md +1 -1
- package/skills/uipath-platform/SKILL.md +1 -1
- package/skills/uipath-platform/references/data-fabric/bulk-import.md +10 -27
- package/skills/uipath-platform/references/data-fabric/choice-sets.md +7 -64
- package/skills/uipath-platform/references/data-fabric/data-fabric.md +76 -267
- package/skills/uipath-platform/references/data-fabric/entity-schema.md +23 -99
- package/skills/uipath-platform/references/data-fabric/file-attachments.md +5 -28
- package/skills/uipath-platform/references/data-fabric/filter-platform-contract.md +2 -2
- package/skills/uipath-platform/references/data-fabric/records-query.md +11 -32
- package/skills/uipath-platform/references/integration-service/reference-resolution.md +6 -2
- package/skills/uipath-platform/references/licensing/consumables-report.md +18 -0
- package/skills/uipath-platform/references/licensing/licensing.md +1 -1
- package/skills/uipath-platform/references/orchestrator/run-jobs.md +9 -2
- package/skills/uipath-platform/references/orchestrator/setup-environment.md +9 -0
- package/skills/uipath-platform/references/traces/feedback.md +4 -1
- package/skills/uipath-process-mining/SKILL.md +97 -0
- package/skills/uipath-process-mining/references/app-types.md +66 -0
- package/skills/uipath-process-mining/references/data-model.md +130 -0
- package/skills/uipath-process-mining/references/lifecycle-and-rbac.md +67 -0
- package/skills/uipath-process-mining/references/model-editing.md +112 -0
- package/skills/uipath-process-mining/references/pre-flight.md +119 -0
- package/skills/uipath-process-mining/references/querying.md +66 -0
- package/skills/uipath-process-mining/references/transformations.md +80 -0
- package/skills/uipath-process-mining/references/uip-pm-cli.md +145 -0
- package/skills/uipath-review/SKILL.md +23 -18
- package/skills/uipath-review/references/agents/agent-grading-rubric.md +1 -1
- package/skills/uipath-review/references/agents/agent-review-checklist.md +0 -4
- package/skills/uipath-review/references/agents/agents-coded-rules.md +1 -10
- package/skills/uipath-review/references/agents/agents-lowcode-rules.md +3 -6
- package/skills/uipath-review/references/agents/guardrails/coded-guardrails-review.md +62 -14
- package/skills/uipath-review/references/agents/guardrails/guardrails-review.md +60 -4
- package/skills/uipath-review/references/review-workflow-guide.md +3 -2
- package/skills/uipath-review/references/rule-catalog-workflow.md +4 -5
- package/skills/uipath-rpa/.maintenance/pattern-card-maintenance.md +20 -0
- package/skills/uipath-rpa/SKILL.md +57 -55
- package/skills/uipath-rpa/agents/uipath-project-discovery-agent.md +75 -19
- package/skills/uipath-rpa/assets/codedworkflow-template.md +245 -11
- package/skills/uipath-rpa/references/cli-reference.md +229 -6
- package/skills/uipath-rpa/references/coded/codedworkflow-reference.md +158 -2
- package/skills/uipath-rpa/references/coded/integration-service-guide.md +6 -5
- package/skills/uipath-rpa/references/coded/operations-guide.md +273 -5
- package/skills/uipath-rpa/references/coded-vs-xaml-guide.md +3 -3
- package/skills/uipath-rpa/references/common-pattern-card.md +303 -0
- package/skills/uipath-rpa/references/data-manipulation-guide.md +18 -3
- package/skills/uipath-rpa/references/debugging.md +0 -2
- package/skills/uipath-rpa/references/environment-setup.md +309 -1
- package/skills/uipath-rpa/references/error-handling-guide.md +1 -1
- package/skills/uipath-rpa/references/execution-maps-guide.md +110 -0
- package/skills/uipath-rpa/references/is-connector-xaml-guide.md +58 -4
- package/skills/uipath-rpa/references/legacy/activity-docs/Excel.md +1 -1
- package/skills/uipath-rpa/references/legacy/activity-docs/_DU-PROCESS.md +0 -2
- package/skills/uipath-rpa/references/legacy/activity-docs/_INDEX.md +2 -2
- package/skills/uipath-rpa/references/legacy/activity-docs/_PATTERNS.md +1 -1
- package/skills/uipath-rpa/references/legacy/activity-docs/_REFRAMEWORK.md +2 -7
- package/skills/uipath-rpa/references/legacy/cli-reference.md +599 -0
- package/skills/uipath-rpa/references/legacy/error-handling-guide.md +2 -2
- package/skills/uipath-rpa/references/legacy/legacy-mode-guide.md +16 -16
- package/skills/uipath-rpa/references/legacy/project-organization-guide.md +2 -2
- package/skills/uipath-rpa/references/legacy/selector-guide.md +163 -1
- package/skills/uipath-rpa/references/legacy/testing-guide.md +246 -3
- package/skills/uipath-rpa/references/legacy/xaml-basics-and-rules.md +267 -2
- package/skills/uipath-rpa/references/library-authoring-guide.md +4 -3
- package/skills/uipath-rpa/references/testing-guide.md +2 -28
- package/skills/uipath-rpa/references/trigger-pattern-guide.md +1 -1
- package/skills/uipath-rpa/references/xaml/canvas-layout-guide.md +140 -33
- package/skills/uipath-rpa/references/xaml/common-pitfalls.md +57 -240
- package/skills/uipath-rpa/references/xaml/csharp-activity-binding-guide.md +42 -2
- package/skills/uipath-rpa/references/xaml/long-running-workflow-guide.md +1 -1
- package/skills/uipath-rpa/references/xaml/xaml-basics-and-rules.md +194 -228
- package/skills/uipath-solution/references/activate-and-manage.md +22 -0
- package/skills/uipath-solution/references/develop-solution.md +26 -2
- package/skills/uipath-solution/references/pack-and-deploy.md +43 -9
- package/skills/uipath-test/SKILL.md +4 -4
- package/skills/uipath-test/references/playwright-first-mile-guide.md +5 -4
- package/skills/uipath-test/references/publish-and-link-guide.md +2 -2
- package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/playbooks/click-silent-no-op.md +5 -5
- package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/playbooks/queue-operation-failed.md +20 -4
- package/skills/uipath-troubleshoot/references/activity-packages/classic-activities/summary.md +1 -1
- package/skills/uipath-troubleshoot/references/activity-packages/csv-activities/playbooks/read-csv-file-not-found.md +12 -0
- package/skills/uipath-troubleshoot/references/activity-packages/mail-activities/playbooks/send-outlook-mail-failures.md +12 -1
- package/skills/uipath-troubleshoot/references/activity-packages/system-activities/playbooks/get-asset-activity-bug-silent-failure.md +2 -1
- package/skills/uipath-troubleshoot/references/activity-packages/terminal-activities/playbooks/terminal-session-connection-failed.md +5 -1
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/click-silent-no-op.md +5 -5
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/dependency-version-conflict.md +27 -6
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/napplicationcard-view-generation-failed.md +10 -0
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/scope-container-wrong-page.md +1 -1
- package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/summary.md +1 -1
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/overview.md +4 -0
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-auth-401-403.md +44 -0
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-connection-failure.md +2 -1
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-content-type-rejected.md +37 -0
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/http-request-proxy-blocked.md +39 -0
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/package-version-mismatch.md +42 -0
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/playbooks/securestring-misuse-analyzer.md +41 -0
- package/skills/uipath-troubleshoot/references/activity-packages/web-activities/summary.md +5 -0
- package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/connector-null-reference.md +14 -1
- package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/connector-runtime-exception.md +2 -0
- package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/is-activities-prerelease-not-found.md +39 -0
- package/skills/uipath-troubleshoot/references/products/integration-service/playbooks/response-content-too-large.md +41 -0
- package/skills/uipath-troubleshoot/references/products/integration-service/summary.md +9 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/console-conflict-login-to-console.md +40 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/credential-store-unavailable.md +42 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/executor-start-transient-rerun.md +49 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-consecutive-system-exceptions.md +47 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-faulted-session-timeout.md +19 -19
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-output-too-large.md +47 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/job-stopped-generic-exit-code.md +55 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/known-issue-robot-defect.md +40 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/platform-incident-correlation.md +45 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/screen-capture-handle-invalid.md +43 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/serverless-license-quota.md +43 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/serverless-time-limit-exceeded.md +34 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/playbooks/workstation-in-use-machine-slots.md +40 -0
- package/skills/uipath-troubleshoot/references/products/orchestrator/summary.md +13 -1
- package/version-manifest.json +2 -2
- package/skills/uipath-maestro-bpmn/validator/README.md +0 -224
- package/skills/uipath-maestro-bpmn/validator/model.mjs +0 -419
- package/skills/uipath-maestro-bpmn/validator/package.json +0 -17
- package/skills/uipath-maestro-bpmn/validator/rules.mjs +0 -1403
- package/skills/uipath-maestro-bpmn/validator/samples/invalid-conditional-and-variable.bpmn +0 -25
- package/skills/uipath-maestro-bpmn/validator/samples/valid-baseline.bpmn +0 -52
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/A.2.0.bpmn +0 -157
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/A.2.1.bpmn +0 -333
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/B.1.0.bpmn +0 -598
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/B.2.0.bpmn +0 -1709
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.2.0.bpmn +0 -564
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.3.0.bpmn +0 -671
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.4.0.bpmn +0 -1045
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.5.0.bpmn +0 -1176
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.6.0.bpmn +0 -670
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/C.7.0.bpmn +0 -466
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Can_Parse_Complex_Process_With_Task_Gateway_BoundaryEvent_etc.bpmn +0 -74
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/ExclusiveGatewayDefaultFlow.bpmn +0 -32
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/ExternalAgentWorkflow.bpmn +0 -62
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Golden_Scenario.initial.bpmn +0 -361
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/InclusiveJoinRouteAwayBranch.bpmn +0 -62
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_AsyncExecution_And_Create_CorrectModel.bpmn +0 -74
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_IXP_ExtractionValidation_And_Create_CorrectModel.bpmn +0 -35
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_IXP_Extraction_FileUpload_And_Create_CorrectModel.bpmn +0 -33
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_IXP_Extraction_JobAttachment_And_Create_CorrectModel.bpmn +0 -35
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/Parse_SubProcess_With_Multiple_Element_Types.bpmn +0 -76
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/StartEventWithOutputs.bpmn +0 -36
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/StartGatewayEnd.bpmn +0 -44
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/all elements.bpmn +0 -516
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/all_sequence_flow_types.bpmn +0 -173
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/demo.bpmn +0 -181
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/subprocess-example-001-collapsed.bpmn +0 -126
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/subprocess-example-001-expanded.bpmn +0 -122
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/expected-findings/subprocess-example-003-collapsed_deeply-nested.bpmn +0 -438
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/A.1.0.bpmn +0 -87
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/A.3.0.bpmn +0 -165
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ApiWorkflow.bpmn +0 -39
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnNestedSubProcessTests.bpmn +0 -102
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnTimerBoundaryEvents.bpmn +0 -160
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnXmlWithCatchAllErrorEventSubProcess.bpmn +0 -45
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/BpmnXmlWithSpecificErrorEventSubProcess.bpmn +0 -46
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/CaseManagementWithConstantIdentifier.bpmn +0 -218
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ErrorBoundary.bpmn +0 -78
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ErrorPropagationInEventSubprocess.bpmn +0 -340
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/EventBasedGatewayFirstCatcherWins.bpmn +0 -56
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Example-EventBasedGateway.bpmn +0 -117
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ExclusiveGatewayConditional.bpmn +0 -45
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ExclusiveGatewaySharedEndEvent.bpmn +0 -45
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ExclusiveWithParallelGateway.bpmn +0 -68
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/FourScriptTasks.bpmn +0 -84
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/HitlTaskOnly.bpmn +0 -55
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/InclusiveGatewayForkJoin.bpmn +0 -69
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_BPMN_Elements_And_Create_CorrectModel.bpmn +0 -20
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_HttpRequest_ServiceTask_And_Create_Correct_Model.bpmn +0 -34
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_MessageBoundaryEvent_And_Create_CorrectModel.bpmn +0 -87
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_Script_Task_V2_And_Create_Correct_Model.bpmn +0 -31
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/Parse_Sets_Containers_Properly.bpmn +0 -129
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/ScriptWritesVariableThenGatewayBranches.bpmn +0 -59
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/boundaryevent.bpmn +0 -30
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/collapsed-subprocess.bpmn +0 -83
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/connectable-types.bpmn +0 -85
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/extensions-orchestrator-start-job.bpmn +0 -80
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/multiparticipantpool.bpmn +0 -77
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/nestedsubprocess.bpmn +0 -36
- package/skills/uipath-maestro-bpmn/validator/test/fixtures/known-good/simple.bpmn +0 -59
- package/skills/uipath-maestro-bpmn/validator/test/integration.test.mjs +0 -146
- package/skills/uipath-maestro-bpmn/validator/test/model-helpers.mjs +0 -42
- package/skills/uipath-maestro-bpmn/validator/test/ported-rule-tests.mjs +0 -983
- package/skills/uipath-maestro-bpmn/validator/test/run-tests.mjs +0 -530
- package/skills/uipath-maestro-bpmn/validator/uipath-moddle.v1.json +0 -715
- package/skills/uipath-maestro-bpmn/validator/validate-bpmn.mjs +0 -164
- package/skills/uipath-review/references/agents/agents-common-rules.md +0 -32
- package/skills/uipath-rpa/assets/before-after-hooks-template.md +0 -115
- package/skills/uipath-rpa/assets/helper-utility-template.md +0 -22
- package/skills/uipath-rpa/assets/testcase-template.md +0 -92
- package/skills/uipath-rpa/references/coded/coding-guidelines.md +0 -255
- package/skills/uipath-rpa/references/coded/inspect-package-guide.md +0 -80
- package/skills/uipath-rpa/references/coded/third-party-packages-guide.md +0 -67
- package/skills/uipath-rpa/references/connector-capabilities.md +0 -79
- package/skills/uipath-rpa/references/legacy/activity-docs/Testing.md +0 -95
- package/skills/uipath-rpa/references/legacy/activity-docs/UIAutomation.md +0 -159
- package/skills/uipath-rpa/references/legacy/common-pitfalls.md +0 -318
- package/skills/uipath-rpa/references/legacy/discovery-workflow.md +0 -147
- package/skills/uipath-rpa/references/legacy/environment-setup.md +0 -78
- package/skills/uipath-rpa/references/legacy/project-structure.md +0 -206
- package/skills/uipath-rpa/references/legacy/test-data-guide.md +0 -142
- package/skills/uipath-rpa/references/legacy/validation-and-fixing.md +0 -154
- package/skills/uipath-rpa/references/project-structure-guide.md +0 -168
- package/skills/uipath-rpa/references/project-structure.md +0 -135
- package/skills/uipath-rpa/references/publishing-guide.md +0 -80
- package/skills/uipath-rpa/references/validation-guide.md +0 -170
- package/skills/uipath-rpa/references/xaml/csharp-expression-pitfalls.md +0 -43
- package/skills/uipath-rpa/references/xaml/flowchart-guide.md +0 -113
- package/skills/uipath-rpa/references/xaml/workflow-guide.md +0 -258
|
@@ -1,44 +1,65 @@
|
|
|
1
|
-
# SDK
|
|
2
|
-
|
|
3
|
-
Read this when writing TypeScript code that imports classes, types, or options from `@uipath/uipath-typescript`. The SDK uses subpath exports — service classes are **not** importable from the package root.
|
|
4
|
-
|
|
5
|
-
## Subpath → Exports
|
|
6
|
-
|
|
7
|
-
| Subpath | Classes |
|
|
8
|
-
|---------|---------|
|
|
9
|
-
| `@uipath/uipath-typescript/core` | `UiPath`, `UiPathError`, `UiPathSDKConfig`, `PaginationCursor`, `PaginationOptions`, `PaginatedResponse`, `NonPaginatedResponse` |
|
|
10
|
-
| `@uipath/uipath-typescript/entities` | `Entities`, `ChoiceSets` |
|
|
11
|
-
| `@uipath/uipath-typescript/tasks` | `Tasks` |
|
|
12
|
-
| `@uipath/uipath-typescript/maestro-processes` | `MaestroProcesses`, `ProcessInstances`, `ProcessIncidents` |
|
|
13
|
-
| `@uipath/uipath-typescript/cases` | `Cases`, `CaseInstances` |
|
|
14
|
-
| `@uipath/uipath-typescript/assets` | `Assets` |
|
|
15
|
-
| `@uipath/uipath-typescript/queues` | `Queues` |
|
|
16
|
-
| `@uipath/uipath-typescript/buckets` | `Buckets` |
|
|
17
|
-
| `@uipath/uipath-typescript/processes` | `Processes` |
|
|
18
|
-
| `@uipath/uipath-typescript/jobs` | `Jobs` |
|
|
19
|
-
| `@uipath/uipath-typescript/attachments` | `Attachments` |
|
|
20
|
-
| `@uipath/uipath-typescript/agents` | `Agents`, `AgentListSortColumn`, `AgentErrorSortColumn` (Insights RTM — SDK ≥ 1.4.1) |
|
|
21
|
-
| `@uipath/uipath-typescript/traces` | `AgentTraces`, `AgentTraceExecutionType`, `Traces` (generic spans — `Traces.getById(traceId)`) (Insights RTM — SDK ≥ 1.4.1) |
|
|
22
|
-
| `@uipath/uipath-typescript/agent-memory` | `AgentMemory`, `AgentMemoryExecutionType` (SDK ≥ 1.4.1) |
|
|
23
|
-
| `@uipath/uipath-typescript/governance` | `Governance`, `PolicyEvaluationResult` (SDK ≥ 1.4.1) |
|
|
24
|
-
| `@uipath/uipath-typescript/conversational-agent` | `ConversationalAgent`, `Exchanges`, `Messages` |
|
|
25
|
-
| `@uipath/uipath-typescript/feedback` | `Feedback` |
|
|
26
|
-
|
|
27
|
-
## Type Imports
|
|
28
|
-
|
|
29
|
-
Types, enums, and option interfaces are exported from the **same subpath** as their service class. Use `import type` for type-only imports:
|
|
1
|
+
# SDK Reference Protocol
|
|
30
2
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
3
|
+
The installed package is the authoritative reference for the `@uipath/uipath-typescript` SDK. This folder's files contain ONLY knowledge the package cannot carry; everything else is read from `node_modules`.
|
|
4
|
+
|
|
5
|
+
## Where to look things up
|
|
6
|
+
|
|
7
|
+
| Need | Source (inside `node_modules/@uipath/uipath-typescript/`) |
|
|
8
|
+
|---|---|
|
|
9
|
+
| Which subpaths exist | `ls dist/` — every directory is an import subpath: `@uipath/uipath-typescript/<dir>` |
|
|
10
|
+
| Which subpath exports a class | `grep -l "class <Name>" dist/*/index.d.ts` |
|
|
11
|
+
| Method signatures, params, return types, usage examples | `dist/<subpath>/index.d.ts` — full JSDoc, matches the installed version exactly (call only members NOT tagged `@internal` — see rule 5) |
|
|
12
|
+
| Per-method OAuth scopes | `docs/oauth-scopes.md` (shipped with newer SDK versions; fallback: [../oauth-scopes.md](../oauth-scopes.md) § Per-method scope lookup) |
|
|
13
|
+
| Types, enums, option interfaces | same `dist/<subpath>/index.d.ts` as their service class — use `import type` for type-only imports |
|
|
14
|
+
| Version a capability was introduced in (when it is **absent** from the installed types) | `release-metadata.json` — see *When a capability is missing from the installed types* below |
|
|
15
|
+
|
|
16
|
+
Rules:
|
|
17
|
+
|
|
18
|
+
1. Before calling a service you have not used in this session, Read its `dist/<subpath>/index.d.ts`.
|
|
19
|
+
2. If `node_modules` is absent, run the install step first (the app cannot build without it — see the scaffold workflow).
|
|
20
|
+
3. NEVER guess or recall method names, signatures, or scopes from memory — SDK versions differ; the installed package is the contract.
|
|
21
|
+
4. Task-level scope **bundles** and widget scopes: [../oauth-scopes.md](../oauth-scopes.md). Cross-service traps and server-side behavior the types cannot express: the per-domain files in this folder.
|
|
22
|
+
5. **Call only methods that are NOT tagged `@internal`.** The shipped `.d.ts` includes members whose JSDoc carries an `@internal` tag — these are not a supported API and may change or disappear without notice. Ignore them when picking a method. This restricts *calling* `@internal` **methods**; referencing an `@internal` **type** that a public method's signature already exposes is unavoidable and fine.
|
|
23
|
+
6. If a capability you expect is **absent** from the installed `.d.ts`, do not conclude it is impossible or invent it — resolve the required SDK version via *When a capability is missing from the installed types* below.
|
|
24
|
+
|
|
25
|
+
## When a capability is missing from the installed types
|
|
26
|
+
|
|
27
|
+
A subpath, service class, or method you need is not in the installed `.d.ts`. It may require a newer SDK. Resolve the version to upgrade to from **`release-metadata.json`** — a map the SDK ships of every public capability → the version each was introduced in:
|
|
28
|
+
|
|
29
|
+
- Installed copy: `node_modules/@uipath/uipath-typescript/release-metadata.json` (matches the installed version).
|
|
30
|
+
- Latest copy: `https://unpkg.com/@uipath/uipath-typescript@latest/release-metadata.json` (needed to see capabilities newer than what is installed).
|
|
31
|
+
|
|
32
|
+
Find the service by `name` in the `services` array, then the method by `name` in that service's `methods`. **Every public service and method is listed**, so absence from the file means it does not exist — there is no inheritance to apply. Then:
|
|
33
|
+
|
|
34
|
+
1. **Present in the installed `.d.ts`** → use it (you are not in this flow).
|
|
35
|
+
2. **In the file with a `since` version `V`** (and no `deleted`), absent locally → tell the user: *"`<capability>` requires `@uipath/uipath-typescript` ≥ `V`; installed is `<version>` — upgrade to use it."*
|
|
36
|
+
3. **`since: null`** → baseline (shipped before tracking; present in every tracked version); absence locally means the install is older than tracking or corrupt — advise reinstall / upgrade to latest.
|
|
37
|
+
4. **Entry has `deleted` = `D`** → the capability was removed in `D`. Tell the user it is gone as of `D` and to use `replacedBy` if present; do not try to call it. (No entry sets `deleted` today.)
|
|
38
|
+
5. **Absent from the latest file entirely** → the capability does not exist in the SDK. Do not fabricate it; route to the correct skill or tell the user it is unavailable.
|
|
39
|
+
6. **Cannot fetch the latest copy (offline / no network)** → read the installed `release-metadata.json`; if it also lacks the capability, tell the user it is not in their installed SDK and may need a newer version — point them to the changelog or `npm view @uipath/uipath-typescript`.
|
|
40
|
+
|
|
41
|
+
Name the exact `since` when the file has it; never silently build a lesser version or guess a number.
|
|
42
|
+
|
|
43
|
+
## Version history (frozen)
|
|
44
|
+
|
|
45
|
+
<!-- FROZEN: historical "requires SDK >= x.y.z" minimums, snapshot at the release-metadata.json cutover. Do NOT add NEW version gates here — from now on a capability's introduction version lives ONLY in the SDK's release-metadata.json (resolved via the fallback above). This table is a frozen convenience for pre-cutover minimums; release-metadata.json is authoritative. -->
|
|
46
|
+
|
|
47
|
+
Pre-cutover minimums (authoritative source: `release-metadata.json`):
|
|
48
|
+
|
|
49
|
+
| Capability | Min SDK |
|
|
50
|
+
|---|---|
|
|
51
|
+
| `agents`, `agent-memory`, `traces`, `governance` subpaths (Insights RTM) | 1.4.1 |
|
|
52
|
+
| Agents Insights aggregates — `getSummary`, `getTopErrorCount`, `getTopConsumption`, `getIncidentDistribution`, `getUnitConsumptionSummary` | 1.5.0 |
|
|
53
|
+
| AgentTraces governance — `getGovernanceDecisions`, `getGovernanceSummary` | 1.5.1 |
|
|
54
|
+
| `EntityFieldDataType.MULTILINE_MAX` | 1.5.2 |
|
|
55
|
+
| Maestro analytics on `MaestroProcesses` / `Cases` — `getTop*`, `getInstanceStatusTimeline`, `getElementStats`, `getInstanceStats`, `getIncidentsTimeline` | 1.3.9 to 1.5.1 by method — see `release-metadata.json` |
|
|
56
|
+
| `Notifications` service | 1.5.1 |
|
|
36
57
|
|
|
37
58
|
## Anti-patterns
|
|
38
59
|
|
|
39
60
|
### Never import service classes from the package root
|
|
40
61
|
|
|
41
|
-
Service classes are only available via subpath imports. Root-level imports
|
|
62
|
+
Service classes are only available via subpath imports. Root-level imports fail at build time.
|
|
42
63
|
|
|
43
64
|
```typescript
|
|
44
65
|
// ❌ Wrong — service classes are not exported from the root
|
|
@@ -60,3 +81,24 @@ const items = await sdk.entities.getAll();
|
|
|
60
81
|
const entities = new Entities(sdk);
|
|
61
82
|
const items = await entities.getAll();
|
|
62
83
|
```
|
|
84
|
+
|
|
85
|
+
### Never call methods tagged `@internal`
|
|
86
|
+
|
|
87
|
+
The SDK does not strip `@internal` from its published types, so `@internal` methods are visible in `dist/<subpath>/index.d.ts` right alongside the public ones. They are internal plumbing — unsupported, undocumented, and subject to change without a version bump. A method being *readable* in the `.d.ts` does not make it callable API.
|
|
88
|
+
|
|
89
|
+
```typescript
|
|
90
|
+
// A method whose JSDoc carries an @internal tag:
|
|
91
|
+
/**
|
|
92
|
+
* ...
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
someInternalMethod(...)
|
|
96
|
+
|
|
97
|
+
// ❌ Wrong — it is in the types, but @internal means "not for you"
|
|
98
|
+
await service.someInternalMethod(...);
|
|
99
|
+
|
|
100
|
+
// ✓ Correct — use the public method that does the job
|
|
101
|
+
await service.getAll(...);
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Referencing an `@internal` **type** in a signature you cannot avoid (e.g. a public method returns one) is fine — the rule is about not **calling** `@internal` **methods**.
|
|
@@ -1,437 +1,60 @@
|
|
|
1
|
-
# Maestro
|
|
1
|
+
# Maestro — Traps & Server Behavior
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Signatures/params/examples: `dist/maestro-processes/index.d.ts`, `dist/cases/index.d.ts`. Per-method scopes: shipped `docs/oauth-scopes.md`. This file covers only what neither can express.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import { MaestroProcesses, ProcessInstances, ProcessIncidents } from '@uipath/uipath-typescript/maestro-processes';
|
|
7
|
-
import { Cases, CaseInstances } from '@uipath/uipath-typescript/cases';
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Scopes
|
|
11
|
-
|
|
12
|
-
- All Maestro operations: `PIMS`
|
|
13
|
-
- ProcessInstances.getBpmn: also requires `OR.Execution.Read`
|
|
14
|
-
- CaseInstances.getActionTasks: also requires `OR.Tasks` or `OR.Tasks.Read`
|
|
15
|
-
|
|
16
|
-
## Types to Import
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
// Maestro Processes
|
|
20
|
-
import type {
|
|
21
|
-
MaestroProcessGetAllResponse,
|
|
22
|
-
RawMaestroProcessGetAllResponse,
|
|
23
|
-
ProcessMethods,
|
|
24
|
-
} from '@uipath/uipath-typescript/maestro-processes';
|
|
25
|
-
|
|
26
|
-
// Process Instances
|
|
27
|
-
import type {
|
|
28
|
-
ProcessInstanceGetResponse,
|
|
29
|
-
RawProcessInstanceGetResponse,
|
|
30
|
-
ProcessInstanceMethods,
|
|
31
|
-
ProcessInstanceGetAllWithPaginationOptions,
|
|
32
|
-
ProcessInstanceGetAllOptions,
|
|
33
|
-
ProcessInstanceOperationOptions,
|
|
34
|
-
ProcessInstanceOperationResponse,
|
|
35
|
-
ProcessInstanceExecutionHistoryResponse,
|
|
36
|
-
BpmnXmlString,
|
|
37
|
-
ProcessInstanceGetVariablesResponse,
|
|
38
|
-
ProcessInstanceGetVariablesOptions,
|
|
39
|
-
ProcessInstanceRun,
|
|
40
|
-
} from '@uipath/uipath-typescript/maestro-processes';
|
|
41
|
-
|
|
42
|
-
// Process Incidents
|
|
43
|
-
import type {
|
|
44
|
-
ProcessIncidentGetResponse,
|
|
45
|
-
ProcessIncidentGetAllResponse,
|
|
46
|
-
} from '@uipath/uipath-typescript/maestro-processes';
|
|
47
|
-
|
|
48
|
-
// Analytics / Insights (MaestroProcesses + Cases)
|
|
49
|
-
import type {
|
|
50
|
-
TimelineOptions,
|
|
51
|
-
TopQueryOptions,
|
|
52
|
-
InstanceStatusTimelineResponse,
|
|
53
|
-
ProcessGetTopRunCountResponse,
|
|
54
|
-
ProcessGetTopFaultedCountResponse,
|
|
55
|
-
ProcessGetTopDurationResponse,
|
|
56
|
-
} from '@uipath/uipath-typescript/maestro-processes';
|
|
57
|
-
|
|
58
|
-
// Cases
|
|
59
|
-
import type {
|
|
60
|
-
CaseGetAllResponse,
|
|
61
|
-
CaseGetTopRunCountResponse,
|
|
62
|
-
CaseGetTopFaultedCountResponse,
|
|
63
|
-
CaseGetTopDurationResponse,
|
|
64
|
-
} from '@uipath/uipath-typescript/cases';
|
|
65
|
-
|
|
66
|
-
// Case Instances
|
|
67
|
-
import type {
|
|
68
|
-
CaseInstanceGetResponse,
|
|
69
|
-
RawCaseInstanceGetResponse,
|
|
70
|
-
CaseInstanceMethods,
|
|
71
|
-
CaseInstanceGetAllWithPaginationOptions,
|
|
72
|
-
CaseInstanceGetAllOptions,
|
|
73
|
-
CaseInstanceOperationOptions,
|
|
74
|
-
CaseInstanceOperationResponse,
|
|
75
|
-
CaseInstanceReopenOptions,
|
|
76
|
-
CaseGetStageResponse,
|
|
77
|
-
CaseInstanceExecutionHistoryResponse,
|
|
78
|
-
StageTask,
|
|
79
|
-
SlaSummaryResponse,
|
|
80
|
-
CaseInstanceStageSLAOptions,
|
|
81
|
-
CaseInstanceStageSLAResponse,
|
|
82
|
-
} from '@uipath/uipath-typescript/cases';
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Enums
|
|
86
|
-
|
|
87
|
-
```typescript
|
|
88
|
-
import {
|
|
89
|
-
ProcessIncidentStatus, // Open, Closed
|
|
90
|
-
ProcessIncidentType, // System, User, Deployment
|
|
91
|
-
ProcessIncidentSeverity, // Error, Warning
|
|
92
|
-
DebugMode, // None, Default, StepByStep, SingleStep
|
|
93
|
-
TimeInterval, // Hour = 'HOUR', Day = 'DAY', Week = 'WEEK' (analytics time-axis grouping)
|
|
94
|
-
InstanceFinalStatus, // status value in getInstanceStatusTimeline() entries
|
|
95
|
-
} from '@uipath/uipath-typescript/maestro-processes';
|
|
5
|
+
> **Scope fork warning:** this service family splits across TWO scope bundles — instance/process operations use `PIMS`, while the analytics/SLA methods use the Insights bundle (`Insights Insights.RealTimeData OR.Folders.Read`; SLA also needs `PIMS`). Do not assume service-uniform scopes; check the shipped table per method. A 403 on analytics means the External App lacks the Insights bundle — surface it as a permissions message.
|
|
96
6
|
|
|
97
|
-
|
|
98
|
-
StageTaskType, // external-agent, rpa, process, agent, action, api-workflow
|
|
99
|
-
EscalationRecipientScope, // user, usergroup
|
|
100
|
-
EscalationActionType, // notification
|
|
101
|
-
EscalationTriggerType, // sla-breached, at-risk
|
|
102
|
-
SLADurationUnit, // h, d, w, m
|
|
103
|
-
} from '@uipath/uipath-typescript/cases';
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
## MaestroProcesses Service
|
|
7
|
+
## Traps
|
|
107
8
|
|
|
108
|
-
###
|
|
9
|
+
### `folderKey` is a GUID, not a `folderId`
|
|
109
10
|
|
|
110
|
-
|
|
11
|
+
Maestro responses include `folderKey` (GUID string) but NOT `folderId` (number). If you need an Orchestrator method that requires `folderId` (e.g., `Processes.start()`), bridge via `Processes.getAll()` — see "Bridging folderKey ↔ folderId" in [orchestrator.md](orchestrator.md). **NEVER use `parseInt(folderKey)`** — it returns `NaN`.
|
|
111
12
|
|
|
112
|
-
|
|
13
|
+
### `name` is NOT `processKey`
|
|
113
14
|
|
|
114
|
-
|
|
15
|
+
The human-readable process name (e.g., `"Loan.Origination.and.Review"`) is the `name` field. The `processKey` is a separate internal identifier. When the user provides a process name, first call `MaestroProcesses.getAll()`, find the process where `name` matches, then use its `processKey` and `folderKey`:
|
|
115
16
|
|
|
116
17
|
```typescript
|
|
117
|
-
const
|
|
118
|
-
const allProcesses = await maestroProcesses.getAll();
|
|
18
|
+
const allProcesses = await new MaestroProcesses(sdk).getAll();
|
|
119
19
|
const target = allProcesses.find(p => p.name === 'Loan.Origination.and.Review');
|
|
120
20
|
if (!target) throw new Error('Process not found');
|
|
121
|
-
// Now use target.processKey and target.folderKey for instance queries
|
|
122
21
|
const instances = await processInstances.getAll({ processKey: target.processKey, pageSize: 20 });
|
|
123
22
|
```
|
|
124
23
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Returns `Promise<ProcessIncidentGetResponse[]>`. Each incident has: `instanceId`, `elementId`, `folderKey`, `processKey`, `incidentId`, `incidentStatus`, `incidentType`, `errorCode`, `errorMessage`, `errorTime`, `errorDetails`, `debugMode`, `incidentSeverity`, `incidentElementActivityType`, `incidentElementActivityName`.
|
|
128
|
-
|
|
129
|
-
### Analytics / Insights methods
|
|
130
|
-
|
|
131
|
-
Tenant-wide, time-ranged aggregates for dashboards. **All require `Insights.RealTimeData Insights OR.Folders.Read` scope** (not `PIMS`) — a separate scope bundle from the rest of Maestro. `startTime`/`endTime` are `Date` objects. Use these instead of fetching raw instances and aggregating client-side (which only sees one page — see [pagination.md](pagination.md)).
|
|
132
|
-
|
|
133
|
-
#### getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions)
|
|
134
|
-
|
|
135
|
-
Returns `Promise<InstanceStatusTimelineResponse[]>` — instance counts bucketed across the time axis. `TimelineOptions` supports `groupBy` and a `TimeInterval` (`Hour` / `Day` / `Week`) controlling bucket size. Use for "instances over time" charts. Each entry: `startTime: string` (bucket start, local tz, e.g. `"5/8/2026 12:00:00 AM"`), `status: InstanceFinalStatus`, `count: number`.
|
|
136
|
-
|
|
137
|
-
#### getTopRunCount(startTime: Date, endTime: Date, options?: TopQueryOptions)
|
|
24
|
+
**NEVER use the process name as the processKey.**
|
|
138
25
|
|
|
139
|
-
|
|
26
|
+
### `reopen()` — where the required `stageId` comes from
|
|
140
27
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
Returns `Promise<ProcessGetTopFaultedCountResponse[]>` — processes ranked by faulted-instance count. Each entry: `name`, `packageId`, `processKey`, `faultedCount: number`.
|
|
144
|
-
|
|
145
|
-
#### getTopExecutionDuration(startTime: Date, endTime: Date, options?: TopQueryOptions)
|
|
146
|
-
|
|
147
|
-
Returns `Promise<ProcessGetTopDurationResponse[]>` — processes ranked by execution duration. Each entry: `name`, `packageId`, `processKey`, `duration: number`.
|
|
148
|
-
|
|
149
|
-
```typescript
|
|
150
|
-
import { MaestroProcesses, TimeInterval } from '@uipath/uipath-typescript/maestro-processes';
|
|
151
|
-
|
|
152
|
-
const maestro = new MaestroProcesses(sdk);
|
|
153
|
-
const end = new Date();
|
|
154
|
-
const start = new Date(end.getTime() - 7 * 24 * 60 * 60 * 1000); // last 7 days
|
|
155
|
-
|
|
156
|
-
const timeline = await maestro.getInstanceStatusTimeline(start, end, { groupBy: TimeInterval.Day });
|
|
157
|
-
const busiest = await maestro.getTopRunCount(start, end);
|
|
158
|
-
const flakiest = await maestro.getTopFaultedCount(start, end);
|
|
159
|
-
const slowest = await maestro.getTopExecutionDuration(start, end);
|
|
160
|
-
```
|
|
28
|
+
Get it from `getStages()` on the case instance.
|
|
161
29
|
|
|
162
|
-
|
|
30
|
+
### Rendering `getVariables()` output — MANDATORY
|
|
163
31
|
|
|
164
|
-
|
|
32
|
+
See [../patterns.md](../patterns.md) section "Rendering Process Instance Data". **NEVER dump raw JSON** — parse `globalVariables` / `elements` and render structured UI.
|
|
165
33
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
## ProcessIncidents Service
|
|
169
|
-
|
|
170
|
-
Standalone service exported from `@uipath/uipath-typescript/maestro-processes` (same subpath as `MaestroProcesses` and `ProcessInstances`). Use it when you need incidents across **all folders** without first resolving a specific `processKey` or `instanceId`.
|
|
171
|
-
|
|
172
|
-
### getAll()
|
|
173
|
-
|
|
174
|
-
Returns `Promise<ProcessIncidentGetAllResponse[]>`. Each summary has aggregated fields like `processKey`, `errorMessage`, `count`, `firstOccuranceTime`.
|
|
175
|
-
|
|
176
|
-
```typescript
|
|
177
|
-
import { ProcessIncidents } from '@uipath/uipath-typescript/maestro-processes';
|
|
178
|
-
|
|
179
|
-
const processIncidents = new ProcessIncidents(sdk);
|
|
180
|
-
const incidents = await processIncidents.getAll();
|
|
181
|
-
for (const incident of incidents) {
|
|
182
|
-
console.log(`${incident.processKey}: ${incident.errorMessage} (count: ${incident.count})`);
|
|
183
|
-
}
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### When to use which incident accessor
|
|
34
|
+
## Which incident accessor when
|
|
187
35
|
|
|
188
36
|
| Scope | Use |
|
|
189
37
|
|---|---|
|
|
190
38
|
| All incidents across all folders (summary rollup) | `new ProcessIncidents(sdk).getAll()` — returns `ProcessIncidentGetAllResponse[]` |
|
|
191
|
-
| All incidents for one process | `MaestroProcesses.getIncidents(processKey, folderKey)` or `process.getIncidents()`
|
|
192
|
-
| Incidents on a single instance | `ProcessInstances.getIncidents(instanceId, folderKey)` or `instance.getIncidents()`
|
|
193
|
-
|
|
194
|
-
Note that `ProcessIncidentGetAllResponse` (summary) and `ProcessIncidentGetResponse` (per-incident detail) are different shapes.
|
|
195
|
-
|
|
196
|
-
## ProcessInstanceGetResponse Fields
|
|
197
|
-
|
|
198
|
-
`instanceId: string`, `packageKey: string`, `packageId: string`, `packageVersion: string`, `latestRunId: string`, `latestRunStatus: string`, `processKey: string`, `folderKey: string`, `userId: number`, `instanceDisplayName: string`, `startedByUser: string`, `source: string`, `creatorUserKey: string`, `startedTime: string`, `completedTime: string | null`, `instanceRuns: ProcessInstanceRun[]`. Plus all `ProcessInstanceMethods`.
|
|
199
|
-
|
|
200
|
-
## ProcessInstances Service
|
|
201
|
-
|
|
202
|
-
### getAll(options?: ProcessInstanceGetAllWithPaginationOptions)
|
|
203
|
-
|
|
204
|
-
Returns `NonPaginatedResponse<ProcessInstanceGetResponse>` or `PaginatedResponse<ProcessInstanceGetResponse>`. Token-based pagination. Filter options: `processKey`, `packageId`, `packageVersion`, `errorCode`.
|
|
205
|
-
|
|
206
|
-
### getById(id: string, folderKey: string)
|
|
207
|
-
|
|
208
|
-
Returns `Promise<ProcessInstanceGetResponse>` with attached methods.
|
|
209
|
-
|
|
210
|
-
### cancel(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions)
|
|
211
|
-
|
|
212
|
-
Returns `Promise<OperationResponse<ProcessInstanceOperationResponse>>`. Options: `{ comment?: string }`.
|
|
213
|
-
|
|
214
|
-
### pause(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions)
|
|
215
|
-
|
|
216
|
-
Same signature and return type as cancel.
|
|
217
|
-
|
|
218
|
-
### resume(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions)
|
|
219
|
-
|
|
220
|
-
Same signature and return type as cancel.
|
|
221
|
-
|
|
222
|
-
### getExecutionHistory(instanceId: string)
|
|
223
|
-
|
|
224
|
-
Returns `Promise<ProcessInstanceExecutionHistoryResponse[]>`. Each span has: `id`, `traceId`, `parentId`, `name`, `startedTime`, `endTime`, `attributes`, `createdTime`, `updatedTime?`, `expiredTime`.
|
|
225
|
-
|
|
226
|
-
### getBpmn(instanceId: string, folderKey: string)
|
|
227
|
-
|
|
228
|
-
Returns `Promise<BpmnXmlString>` (a string of BPMN XML).
|
|
229
|
-
|
|
230
|
-
### getVariables(instanceId: string, folderKey: string, options?: ProcessInstanceGetVariablesOptions)
|
|
231
|
-
|
|
232
|
-
Returns `Promise<ProcessInstanceGetVariablesResponse>` with `{ elements, globalVariables, instanceId, parentElementId }`. Options: `{ parentElementId?: string }`.
|
|
233
|
-
|
|
234
|
-
**Response structure:**
|
|
235
|
-
|
|
236
|
-
- `globalVariables: GlobalVariableMetaData[]` — Named variables with types. Each has:
|
|
237
|
-
- `id: string` — unique identifier
|
|
238
|
-
- `name: string` — human-readable variable name (e.g., `"loanAmount"`, `"applicantName"`)
|
|
239
|
-
- `type: string` — value type (`"integer"`, `"string"`, `"boolean"`, or custom types)
|
|
240
|
-
- `value: any` — the current value (can be primitive, object, or array)
|
|
241
|
-
- `source: string` — name of the BPMN element that set/owns this variable
|
|
242
|
-
- `elementId: string` — BPMN element ID
|
|
243
|
-
- `elements: ElementMetaData[]` — Per-element execution data (activity steps). Each has:
|
|
244
|
-
- `elementId: string` — BPMN element ID (e.g., `"Activity_XYRXSH"`)
|
|
245
|
-
- `elementRunId: string` — unique run identifier
|
|
246
|
-
- `isMarker: boolean` — whether this is a marker element
|
|
247
|
-
- `inputs: Record<string, any>` — input arguments passed to the element (can be deeply nested objects)
|
|
248
|
-
- `inputDefinitions: Record<string, any>` — schema/definitions for inputs
|
|
249
|
-
- `outputs: Record<string, any>` — output values produced by the element (can be deeply nested objects)
|
|
250
|
-
|
|
251
|
-
**UI rendering — MANDATORY:** See [../patterns.md](../patterns.md) section "Rendering Process Instance Data" for how to display variables and element data properly. **NEVER dump raw JSON** — always parse and render structured UI.
|
|
252
|
-
|
|
253
|
-
### getIncidents(instanceId: string, folderKey: string)
|
|
254
|
-
|
|
255
|
-
Returns `Promise<ProcessIncidentGetResponse[]>`.
|
|
256
|
-
|
|
257
|
-
## ProcessInstance-Attached Methods (ProcessInstanceMethods)
|
|
258
|
-
|
|
259
|
-
Returned by `getAll()` and `getById()` on each `ProcessInstanceGetResponse`:
|
|
260
|
-
|
|
261
|
-
- `instance.cancel(options?)` -> `Promise<OperationResponse<ProcessInstanceOperationResponse>>`
|
|
262
|
-
- `instance.pause(options?)` -> `Promise<OperationResponse<ProcessInstanceOperationResponse>>`
|
|
263
|
-
- `instance.resume(options?)` -> `Promise<OperationResponse<ProcessInstanceOperationResponse>>`
|
|
264
|
-
- `instance.getIncidents()` -> `Promise<ProcessIncidentGetResponse[]>`
|
|
265
|
-
- `instance.getExecutionHistory()` -> `Promise<ProcessInstanceExecutionHistoryResponse[]>`
|
|
266
|
-
- `instance.getBpmn()` -> `Promise<BpmnXmlString>`
|
|
267
|
-
- `instance.getVariables(options?)` -> `Promise<ProcessInstanceGetVariablesResponse>`
|
|
268
|
-
|
|
269
|
-
## Cases Service
|
|
270
|
-
|
|
271
|
-
### getAll()
|
|
272
|
-
|
|
273
|
-
Returns `Promise<CaseGetAllResponse[]>`. Each case has: `processKey`, `packageId`, `name`, `folderKey`, `folderName`, `packageVersions`, `versionCount`, plus instance count fields (same as MaestroProcesses).
|
|
274
|
-
|
|
275
|
-
**Example response** — a **bare top-level array** (no `.items` wrapper):
|
|
276
|
-
|
|
277
|
-
```json
|
|
278
|
-
[
|
|
279
|
-
{
|
|
280
|
-
"name": "Loan Processing", "processKey": "case-proc-uuid",
|
|
281
|
-
"folderKey": "f-1001", "folderName": "Lending", "versionCount": 2,
|
|
282
|
-
"pendingCount": 5, "runningCount": 3, "completedCount": 125,
|
|
283
|
-
"faultedCount": 1, "pausedCount": 0, "cancelledCount": 2
|
|
284
|
-
}
|
|
285
|
-
]
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
> **Semantics:** same shape as `MaestroProcesses.getAll` — bare array, counts pre-aggregated per case process. Chart `runningCount` / `completedCount` / `faultedCount` directly.
|
|
289
|
-
|
|
290
|
-
### Analytics / Insights methods
|
|
291
|
-
|
|
292
|
-
Same signatures and scope as the MaestroProcesses analytics methods above (`Insights.RealTimeData Insights OR.Folders.Read`), but scoped to cases:
|
|
293
|
-
|
|
294
|
-
- `getInstanceStatusTimeline(startTime: Date, endTime: Date, options?: TimelineOptions)` → `Promise<InstanceStatusTimelineResponse[]>`
|
|
295
|
-
- `getTopRunCount(startTime: Date, endTime: Date, options?: TopQueryOptions)` → `Promise<CaseGetTopRunCountResponse[]>`
|
|
296
|
-
- `getTopFaultedCount(startTime: Date, endTime: Date, options?: TopQueryOptions)` → `Promise<CaseGetTopFaultedCountResponse[]>`
|
|
297
|
-
- `getTopExecutionDuration(startTime: Date, endTime: Date, options?: TopQueryOptions)` → `Promise<CaseGetTopDurationResponse[]>`
|
|
298
|
-
|
|
299
|
-
## CaseInstanceGetResponse Fields
|
|
300
|
-
|
|
301
|
-
`instanceId: string`, `packageKey: string`, `packageId: string`, `packageVersion: string`, `latestRunId: string`, `latestRunStatus: string`, `processKey: string`, `folderKey: string`, `userId: number`, `instanceDisplayName: string`, `startedByUser: string`, `source: string`, `creatorUserKey: string`, `startedTime: string`, `completedTime: string`, `instanceRuns: CaseInstanceRun[]`, `caseAppConfig?: CaseAppConfig`, `caseType?: string`, `caseTitle?: string`. Plus all `CaseInstanceMethods`.
|
|
302
|
-
|
|
303
|
-
## CaseInstanceExecutionHistoryResponse Fields
|
|
304
|
-
|
|
305
|
-
`creationUserKey: string | null`, `folderKey: string`, `instanceDisplayName: string`, `instanceId: string`, `packageId: string`, `packageKey: string`, `packageVersion: string`, `processKey: string`, `source: string`, `status: string`, `startedTime: string`, `completedTime: string | null`, `elementExecutions: ElementExecutionMetadata[]`.
|
|
306
|
-
|
|
307
|
-
## CaseGetStageResponse Fields
|
|
308
|
-
|
|
309
|
-
`id: string`, `name: string`, `sla?: StageSLA`, `status: string`, `tasks: StageTask[][]`.
|
|
310
|
-
|
|
311
|
-
## StageTask Fields
|
|
312
|
-
|
|
313
|
-
`id: string`, `name: string`, `completedTime: string`, `startedTime: string`, `status: string`, `type: StageTaskType`.
|
|
314
|
-
|
|
315
|
-
## CaseInstances Service
|
|
316
|
-
|
|
317
|
-
### getAll(options?: CaseInstanceGetAllWithPaginationOptions)
|
|
318
|
-
|
|
319
|
-
Returns `NonPaginatedResponse<CaseInstanceGetResponse>` or `PaginatedResponse<CaseInstanceGetResponse>`. Filter options: `processKey`, `packageId`, `packageVersion`, `errorCode`.
|
|
320
|
-
|
|
321
|
-
### getById(instanceId: string, folderKey: string)
|
|
322
|
-
|
|
323
|
-
Returns `Promise<CaseInstanceGetResponse>` with attached methods.
|
|
324
|
-
|
|
325
|
-
### close(instanceId: string, folderKey: string, options?: CaseInstanceOperationOptions)
|
|
326
|
-
|
|
327
|
-
Returns `Promise<OperationResponse<CaseInstanceOperationResponse>>`. Options: `{ comment?: string }`.
|
|
328
|
-
|
|
329
|
-
### pause / resume
|
|
330
|
-
|
|
331
|
-
Same signature pattern as close.
|
|
332
|
-
|
|
333
|
-
### reopen(instanceId: string, folderKey: string, options: CaseInstanceReopenOptions)
|
|
334
|
-
|
|
335
|
-
Options: `{ stageId: string, comment?: string }`. The `stageId` is required - get it from `getStages()`.
|
|
336
|
-
|
|
337
|
-
### getStages(caseInstanceId: string, folderKey: string)
|
|
338
|
-
|
|
339
|
-
Returns `Promise<CaseGetStageResponse[]>`. Each stage has: `id`, `name`, `sla`, `status`, `tasks: StageTask[][]`.
|
|
340
|
-
|
|
341
|
-
### getExecutionHistory(instanceId: string, folderKey: string)
|
|
342
|
-
|
|
343
|
-
Returns `Promise<CaseInstanceExecutionHistoryResponse>` with `{ elementExecutions, instanceId, status, startedTime, completedTime, ... }`.
|
|
344
|
-
|
|
345
|
-
### getActionTasks(caseInstanceId: string, options?: TaskGetAllOptions)
|
|
346
|
-
|
|
347
|
-
Returns `NonPaginatedResponse<TaskGetResponse>` or `PaginatedResponse<TaskGetResponse>`. Requires `OR.Tasks` scope.
|
|
348
|
-
|
|
349
|
-
### getSlaSummary(options?)
|
|
350
|
-
|
|
351
|
-
Returns `NonPaginatedResponse<SlaSummaryResponse>` or `PaginatedResponse<SlaSummaryResponse>` (pass pagination options to get the paginated shape). Tenant-wide SLA rollup across case instances. **Requires `Insights.RealTimeData Insights OR.Folders.Read PIMS` scope.**
|
|
352
|
-
|
|
353
|
-
### getStagesSlaSummary(options?: CaseInstanceStageSLAOptions)
|
|
354
|
-
|
|
355
|
-
Returns `Promise<CaseInstanceStageSLAResponse[]>` — per-stage SLA breakdown. Same scope as `getSlaSummary`. **Note:** Exact response fields are not fully published; check the TypeScript types.
|
|
356
|
-
|
|
357
|
-
## CaseInstance-Attached Methods (CaseInstanceMethods)
|
|
358
|
-
|
|
359
|
-
- `instance.close(options?)` -> `Promise<OperationResponse<CaseInstanceOperationResponse>>`
|
|
360
|
-
- `instance.pause(options?)` -> `Promise<OperationResponse<CaseInstanceOperationResponse>>`
|
|
361
|
-
- `instance.resume(options?)` -> `Promise<OperationResponse<CaseInstanceOperationResponse>>`
|
|
362
|
-
- `instance.reopen(options)` -> `Promise<OperationResponse<CaseInstanceOperationResponse>>`
|
|
363
|
-
- `instance.getExecutionHistory()` -> `Promise<CaseInstanceExecutionHistoryResponse>`
|
|
364
|
-
- `instance.getStages()` -> `Promise<CaseGetStageResponse[]>`
|
|
365
|
-
- `instance.getActionTasks(options?)` -> pagination-aware, returns tasks
|
|
366
|
-
|
|
367
|
-
## Usage Example
|
|
368
|
-
|
|
369
|
-
```typescript
|
|
370
|
-
import { useMemo, useEffect, useState } from 'react';
|
|
371
|
-
import { useAuth } from '../hooks/useAuth';
|
|
372
|
-
import { ProcessInstances } from '@uipath/uipath-typescript/maestro-processes';
|
|
373
|
-
import type { ProcessInstanceGetResponse } from '@uipath/uipath-typescript/maestro-processes';
|
|
374
|
-
|
|
375
|
-
function InstanceDashboard() {
|
|
376
|
-
const { sdk } = useAuth();
|
|
377
|
-
const processInstances = useMemo(() => new ProcessInstances(sdk), [sdk]);
|
|
378
|
-
const [instances, setInstances] = useState<ProcessInstanceGetResponse[]>([]);
|
|
379
|
-
|
|
380
|
-
useEffect(() => {
|
|
381
|
-
const load = async () => {
|
|
382
|
-
const result = await processInstances.getAll({ pageSize: 20 });
|
|
383
|
-
setInstances(result.items);
|
|
384
|
-
};
|
|
385
|
-
load();
|
|
386
|
-
}, [processInstances]);
|
|
387
|
-
|
|
388
|
-
const handleCancel = async (instance: ProcessInstanceGetResponse) => {
|
|
389
|
-
const result = await instance.cancel({ comment: 'Cancelled from dashboard' });
|
|
390
|
-
if (result.success) {
|
|
391
|
-
// Refresh list
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
return (
|
|
396
|
-
<div>
|
|
397
|
-
{instances.map(inst => (
|
|
398
|
-
<div key={inst.instanceId}>
|
|
399
|
-
<span>{inst.instanceDisplayName} - {inst.latestRunStatus}</span>
|
|
400
|
-
<button onClick={() => handleCancel(inst)}>Cancel</button>
|
|
401
|
-
</div>
|
|
402
|
-
))}
|
|
403
|
-
</div>
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
```
|
|
407
|
-
|
|
408
|
-
## Maestro Insights — RTM (SDK ≥ 1.4.x)
|
|
409
|
-
|
|
410
|
-
> Scopes: Top/timeline/element methods need `Insights Insights.RealTimeData OR.Folders.Read`; the SLA methods additionally need **`PIMS`**. These use the Insights RTM host (NOT PIMS) — contrast with `Cases.getAll`/`CaseInstances.getAll`. Surface a 403 as a permissions message (the External App may lack the scopes in this environment).
|
|
411
|
-
|
|
412
|
-
`Cases` (`@uipath/uipath-typescript/cases`) and `MaestroProcesses` (`@uipath/uipath-typescript/maestro-processes`) expose the **same six methods** with identical signatures. `CaseInstances` (`@uipath/uipath-typescript/cases`) adds the two SLA methods.
|
|
413
|
-
|
|
414
|
-
**Positional `Date` args** (`start, end`) for the six analytics methods; `getSlaSummary` takes an **options object**. All return a **bare array** except `getSlaSummary` (rows on `.items`).
|
|
39
|
+
| All incidents for one process | `MaestroProcesses.getIncidents(processKey, folderKey)` or `process.getIncidents()` |
|
|
40
|
+
| Incidents on a single instance | `ProcessInstances.getIncidents(instanceId, folderKey)` or `instance.getIncidents()` |
|
|
415
41
|
|
|
416
|
-
|
|
417
|
-
|--------|------------------------|-------|
|
|
418
|
-
| `getTopRunCount(start, end, options?)` | `{ packageId, processKey, runCount, name }` | ≤5, ranked. `options`: `{ packageId?, processKey?, version? }` |
|
|
419
|
-
| `getTopFaultedCount(start, end, options?)` | `{ packageId, processKey, faultedCount, name }` | ≤10, ranked |
|
|
420
|
-
| `getTopExecutionDuration(start, end, options?)` | `{ packageId, processKey, duration, name }` | ≤5, `duration` in ms |
|
|
421
|
-
| `getTopElementFailedCount(start, end, options?)` | `{ elementName, elementType, processKey, failedCount }` | ≤10, BPMN elements |
|
|
422
|
-
| `getInstanceStatusTimeline(start, end, options?)` | `{ startTime, status, count }` | `status` ∈ `Completed`/`Faulted`/`Cancelled`; `startTime` is a LOCALE string; `options`: `{ groupBy?: TimeInterval }` (HOUR/DAY/WEEK, default DAY) |
|
|
423
|
-
| `getElementStats(processKey, packageId, start, end, packageVersion)` | `{ elementId, successCount, failCount, terminatedCount, pausedCount, inProgressCount, minDurationMs, maxDurationMs, avgDurationMs, p50DurationMs, p95DurationMs, p99DurationMs }` | all positional args |
|
|
42
|
+
`ProcessIncidentGetAllResponse` (summary) and `ProcessIncidentGetResponse` (per-incident detail) are different shapes.
|
|
424
43
|
|
|
425
|
-
|
|
44
|
+
## Analytics / Insights RTM — server behavior the types don't show
|
|
426
45
|
|
|
427
|
-
`CaseInstances` SLA methods
|
|
46
|
+
`Cases` and `MaestroProcesses` expose the same six analytics methods; `CaseInstances` adds the two SLA methods.
|
|
428
47
|
|
|
429
|
-
| Method |
|
|
430
|
-
|
|
431
|
-
| `
|
|
432
|
-
| `
|
|
48
|
+
| Method | Server behavior |
|
|
49
|
+
|--------|----------------|
|
|
50
|
+
| `getTopRunCount` | ≤5 rows, ranked |
|
|
51
|
+
| `getTopFaultedCount` | ≤10 rows, ranked |
|
|
52
|
+
| `getTopExecutionDuration` | ≤5 rows, `duration` in **ms** |
|
|
53
|
+
| `getTopElementFailedCount` | ≤10 rows, BPMN elements |
|
|
54
|
+
| `getInstanceStatusTimeline` | `startTime` is a **LOCALE string**, not ISO |
|
|
433
55
|
|
|
434
|
-
|
|
56
|
+
- For Cases, `name` is derived from `packageId` (CaseManagement prefix stripped); for MaestroProcesses, `name === packageId`.
|
|
57
|
+
- `slaStatus`: **compare as strings** (`'At Risk'`, `'Overdue'`, …) — do not import the enum (avoids TS narrowing errors; values are stable).
|
|
435
58
|
|
|
436
59
|
### Module patterns
|
|
437
60
|
|