@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,221 +1,16 @@
|
|
|
1
|
-
# Orchestrator
|
|
1
|
+
# Orchestrator — Traps & Server Behavior
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Signatures/params/examples: `dist/assets/index.d.ts`, `dist/queues/index.d.ts`, `dist/buckets/index.d.ts`, `dist/processes/index.d.ts`, `dist/jobs/index.d.ts`, `dist/attachments/index.d.ts`. Per-method scopes: shipped `docs/oauth-scopes.md`. This file covers only what neither can express.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import { Assets } from '@uipath/uipath-typescript/assets';
|
|
7
|
-
import { Queues } from '@uipath/uipath-typescript/queues';
|
|
8
|
-
import { Buckets } from '@uipath/uipath-typescript/buckets';
|
|
9
|
-
import { Processes } from '@uipath/uipath-typescript/processes';
|
|
10
|
-
import { Jobs } from '@uipath/uipath-typescript/jobs';
|
|
11
|
-
import { Attachments } from '@uipath/uipath-typescript/attachments';
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Note: Folder-Scoped Services
|
|
15
|
-
|
|
16
|
-
Assets, Queues, Buckets, and Processes are folder-scoped. Many methods require a `folderId` parameter.
|
|
17
|
-
|
|
18
|
-
**Bound methods**: `Jobs.getById()` and `Jobs.getAll()` items return response objects with attached methods (`getOutput()`, `stop()`, `resume()`, `restart()`). Assets, Queues, Buckets, Processes, and Attachments responses do **not** have attached methods — use the service directly.
|
|
19
|
-
|
|
20
|
-
## `getByName` folder identifiers
|
|
21
|
-
|
|
22
|
-
`Assets.getByName` and `Processes.getByName` accept `FolderScopedOptions` — supply one of `folderId`, `folderKey`, or `folderPath` (e.g., `'Shared/Finance'`). If multiple are supplied, server precedence is `folderPath` > `folderKey` > `folderId`.
|
|
23
|
-
|
|
24
|
-
## Types to Import
|
|
25
|
-
|
|
26
|
-
```typescript
|
|
27
|
-
// Assets
|
|
28
|
-
import type {
|
|
29
|
-
AssetGetResponse,
|
|
30
|
-
AssetGetAllOptions,
|
|
31
|
-
AssetGetByIdOptions,
|
|
32
|
-
AssetGetByNameOptions,
|
|
33
|
-
CustomKeyValuePair,
|
|
34
|
-
} from '@uipath/uipath-typescript/assets';
|
|
35
|
-
|
|
36
|
-
// Queues
|
|
37
|
-
import type {
|
|
38
|
-
QueueGetResponse,
|
|
39
|
-
QueueGetAllOptions,
|
|
40
|
-
QueueGetByIdOptions,
|
|
41
|
-
} from '@uipath/uipath-typescript/queues';
|
|
42
|
-
|
|
43
|
-
// Buckets
|
|
44
|
-
import type {
|
|
45
|
-
BucketGetResponse,
|
|
46
|
-
BucketGetAllOptions,
|
|
47
|
-
BucketGetByIdOptions,
|
|
48
|
-
BucketGetByNameOptions,
|
|
49
|
-
BucketGetFilesOptions,
|
|
50
|
-
BucketFile,
|
|
51
|
-
BucketGetFileMetaDataWithPaginationOptions,
|
|
52
|
-
BucketGetFileMetaDataOptions,
|
|
53
|
-
BucketGetReadUriOptions,
|
|
54
|
-
BucketGetUriResponse,
|
|
55
|
-
BucketUploadFileOptions,
|
|
56
|
-
BucketUploadResponse,
|
|
57
|
-
BucketDeleteFileOptions,
|
|
58
|
-
BlobItem,
|
|
59
|
-
} from '@uipath/uipath-typescript/buckets';
|
|
60
|
-
|
|
61
|
-
// Processes
|
|
62
|
-
import type {
|
|
63
|
-
ProcessGetResponse,
|
|
64
|
-
ProcessGetAllOptions,
|
|
65
|
-
ProcessGetByIdOptions,
|
|
66
|
-
ProcessGetByNameOptions,
|
|
67
|
-
ProcessStartRequest,
|
|
68
|
-
ProcessStartResponse,
|
|
69
|
-
} from '@uipath/uipath-typescript/processes';
|
|
70
|
-
|
|
71
|
-
// Jobs
|
|
72
|
-
import type {
|
|
73
|
-
JobGetResponse,
|
|
74
|
-
JobGetAllOptions,
|
|
75
|
-
JobGetByIdOptions,
|
|
76
|
-
JobStopOptions,
|
|
77
|
-
JobResumeOptions,
|
|
78
|
-
JobMethods,
|
|
79
|
-
} from '@uipath/uipath-typescript/jobs';
|
|
80
|
-
|
|
81
|
-
// Attachments
|
|
82
|
-
import type {
|
|
83
|
-
AttachmentResponse,
|
|
84
|
-
AttachmentGetByIdOptions,
|
|
85
|
-
} from '@uipath/uipath-typescript/attachments';
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
## Enums
|
|
89
|
-
|
|
90
|
-
```typescript
|
|
91
|
-
// Assets
|
|
92
|
-
import {
|
|
93
|
-
AssetValueScope, // Global, PerRobot
|
|
94
|
-
AssetValueType, // DBConnectionString, HttpConnectionString, Text, Bool, Integer, Credential, WindowsCredential, KeyValueList, Secret
|
|
95
|
-
} from '@uipath/uipath-typescript/assets';
|
|
96
|
-
|
|
97
|
-
// Buckets
|
|
98
|
-
import {
|
|
99
|
-
BucketOptions, // None, ReadOnly, AuditReadAccess, AccessDataThroughOrchestrator
|
|
100
|
-
} from '@uipath/uipath-typescript/buckets';
|
|
101
|
-
|
|
102
|
-
// Processes
|
|
103
|
-
import {
|
|
104
|
-
PackageType, // Undefined, Process, ProcessOrchestration, WebApp, Agent, TestAutomationProcess, Api, MCPServer, BusinessRules
|
|
105
|
-
JobPriority, // Low, Normal, High
|
|
106
|
-
StartStrategy, // All, Specific, RobotCount, JobsCount, ModernJobsCount
|
|
107
|
-
TargetFramework, // Legacy, Windows, Portable
|
|
108
|
-
RobotSize, // Small, Standard, Medium, Large
|
|
109
|
-
PackageSourceType, // Manual, Schedule, Queue, StudioWeb, ...
|
|
110
|
-
StopStrategy, // SoftStop, Kill
|
|
111
|
-
} from '@uipath/uipath-typescript/processes';
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
## Assets Service (Scopes: `OR.Assets` or `OR.Assets.Read`)
|
|
115
|
-
|
|
116
|
-
### getAll(options?: AssetGetAllOptions)
|
|
117
|
-
|
|
118
|
-
Returns `NonPaginatedResponse<AssetGetResponse>` or `PaginatedResponse<AssetGetResponse>`. Options extend `RequestOptions & PaginationOptions & { folderId?: number }`. Supports `filter`, `orderby`, `expand`, `select`.
|
|
119
|
-
|
|
120
|
-
### getById(id: number, folderId: number, options?: AssetGetByIdOptions)
|
|
121
|
-
|
|
122
|
-
Returns `Promise<AssetGetResponse>`. The `folderId` is required.
|
|
123
|
-
|
|
124
|
-
### getByName(name: string, options: AssetGetByNameOptions)
|
|
125
|
-
|
|
126
|
-
Returns `Promise<AssetGetResponse>`. Resolves an asset by display name within a folder. Supply one of `folderId` (number), `folderKey` (GUID string), or `folderPath` (e.g., `'Shared/Finance'`). Throws `NotFoundError` if no asset matches.
|
|
127
|
-
|
|
128
|
-
```typescript
|
|
129
|
-
await assets.getByName('ApiKey', { folderId: 123 });
|
|
130
|
-
await assets.getByName('ApiKey', { folderKey: '5f6dadf1-3677-49dc-8aca-c2999dd4b3ba' });
|
|
131
|
-
await assets.getByName('ApiKey', { folderPath: 'Shared/Finance', expand: 'keyValueList' });
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
`AssetGetResponse` fields: `key`, `name`, `id`, `canBeDeleted`, `valueScope`, `valueType`, `value`, `credentialStoreId`, `keyValueList`, `hasDefaultValue`, `description`, `foldersCount`, `lastModifiedTime`, `createdTime`, `creatorUserId`. **Note:** Additional fields may be available. Check the TypeScript types for the complete list.
|
|
135
|
-
|
|
136
|
-
## Queues Service (Scopes: `OR.Queues` or `OR.Queues.Read`)
|
|
137
|
-
|
|
138
|
-
### getAll(options?: QueueGetAllOptions)
|
|
139
|
-
|
|
140
|
-
Returns `NonPaginatedResponse<QueueGetResponse>` or `PaginatedResponse<QueueGetResponse>`. Options extend `RequestOptions & PaginationOptions & { folderId?: number }`.
|
|
141
|
-
|
|
142
|
-
### getById(id: number, folderId: number, options?: QueueGetByIdOptions)
|
|
143
|
-
|
|
144
|
-
Returns `Promise<QueueGetResponse>`. The `folderId` is required.
|
|
145
|
-
|
|
146
|
-
`QueueGetResponse` fields: `key`, `name`, `id`, `description`, `maxNumberOfRetries`, `acceptAutomaticallyRetry`, `retryAbandonedItems`, `enforceUniqueReference`, `encrypted`, `createdTime`, `slaInMinutes`, `riskSlaInMinutes`, `folderId`, `folderName`.
|
|
147
|
-
|
|
148
|
-
## Buckets Service (Scopes: `OR.Buckets` or `OR.Buckets.Read`; `OR.Buckets.Write` for `deleteFile`)
|
|
149
|
-
|
|
150
|
-
### getAll(options?: BucketGetAllOptions)
|
|
151
|
-
|
|
152
|
-
Returns `NonPaginatedResponse<BucketGetResponse>` or `PaginatedResponse<BucketGetResponse>`. Options extend `RequestOptions & PaginationOptions & { folderId?: number }`.
|
|
153
|
-
|
|
154
|
-
### getById(bucketId: number, folderId: number, options?: BucketGetByIdOptions)
|
|
155
|
-
|
|
156
|
-
Returns `Promise<BucketGetResponse>`.
|
|
157
|
-
|
|
158
|
-
`BucketGetResponse` fields: `id`, `name`, `description`, `identifier`, `storageProvider`, `storageContainer`, `options`, `foldersCount`.
|
|
159
|
-
|
|
160
|
-
### getByName(name: string, options?: BucketGetByNameOptions)
|
|
161
|
-
|
|
162
|
-
Returns `Promise<BucketGetResponse>`. Resolves a bucket by name within a folder. `BucketGetByNameOptions` is `FolderScopedOptions` — supply one of `folderId`, `folderKey`, or `folderPath` (same precedence as Assets/Processes) plus optional `expand` / `select`. Throws `NotFoundError` if no bucket matches.
|
|
163
|
-
|
|
164
|
-
### getFiles(bucketId: number, options?: BucketGetFilesOptions)
|
|
165
|
-
|
|
166
|
-
Returns `NonPaginatedResponse<BucketFile>` or `PaginatedResponse<BucketFile>`. Folder-scoped (`folderId` / `folderKey` / `folderPath`); supports regex filtering, query options, and pagination. Each `BucketFile` includes `isDirectory` so callers can distinguish folders from files. **Note:** Additional fields may be available — check the TypeScript types.
|
|
167
|
-
|
|
168
|
-
> **`getFiles` vs `getFileMetaData`.** `getFiles` returns `BucketFile` items (folder-aware, supports regex filtering) and is folder-scoped via `FolderScopedOptions`. `getFileMetaData` returns flat `BlobItem` items by `prefix` and takes a positional `folderId`. Prefer `getFiles` for directory-style browsing.
|
|
169
|
-
|
|
170
|
-
### getFileMetaData(bucketId: number, folderId: number, options?: BucketGetFileMetaDataWithPaginationOptions)
|
|
171
|
-
|
|
172
|
-
Returns `NonPaginatedResponse<BlobItem>` or `PaginatedResponse<BlobItem>`. Options: `{ prefix?: string }` plus pagination. Each `BlobItem` has: `path`, `contentType`, `size`, `lastModified`.
|
|
173
|
-
|
|
174
|
-
### uploadFile(options: BucketUploadFileOptions)
|
|
175
|
-
|
|
176
|
-
Returns `Promise<BucketUploadResponse>` with `{ success, statusCode }`. Options: `{ bucketId, folderId, path, content: Blob | Uint8Array<ArrayBuffer> | File }`.
|
|
177
|
-
|
|
178
|
-
### getReadUri(options: BucketGetReadUriOptions)
|
|
179
|
-
|
|
180
|
-
Returns `Promise<BucketGetUriResponse>` with `{ uri, httpMethod, requiresAuth, headers }`. Options: `{ bucketId, folderId, path, expiryInMinutes? }`.
|
|
181
|
-
|
|
182
|
-
### deleteFile(bucketId: number, path: string, options?: BucketDeleteFileOptions)
|
|
183
|
-
|
|
184
|
-
Returns `Promise<void>`. Deletes a single file from the bucket by `path`. `BucketDeleteFileOptions` is folder-scoped (`folderId` / `folderKey` / `folderPath`). Requires `OR.Buckets` or `OR.Buckets.Write`.
|
|
5
|
+
> **Scope pairing warning:** `Jobs.getOutput()` resolves file-type output arguments through the Attachments service internally — the app needs `OR.Folders` (or `OR.Folders.Read`) **in addition to** its Jobs scope, or the call 403s. Do not assume one scope per service; check the shipped table per method.
|
|
185
6
|
|
|
186
|
-
##
|
|
7
|
+
## Job classification — agent vs process vs app
|
|
187
8
|
|
|
188
|
-
|
|
9
|
+
An agent job is identified by **`packageType === 'Agent'`** — both when reading response objects and in OData `filter` strings (the SDK rewrites SDK field names to API names in `filter`/`orderby`/`select`/`expand` automatically).
|
|
189
10
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
### getById(id: number, folderId: number, options?: ProcessGetByIdOptions)
|
|
193
|
-
|
|
194
|
-
Returns `Promise<ProcessGetResponse>`.
|
|
195
|
-
|
|
196
|
-
### getByName(name: string, options: ProcessGetByNameOptions)
|
|
197
|
-
|
|
198
|
-
Returns `Promise<ProcessGetResponse>`. Resolves a process release by name within a folder. Supply one of `folderId`, `folderKey`, or `folderPath`. Throws `NotFoundError` if no process matches.
|
|
199
|
-
|
|
200
|
-
```typescript
|
|
201
|
-
await processes.getByName('MyProcess', { folderPath: 'Shared/Finance', expand: 'entryPoints' });
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
`ProcessGetResponse` fields: `key`, `packageKey`, `packageVersion`, `isLatestVersion`, `description`, `name`, `packageType`, `targetFramework`, `robotSize`, `autoUpdate`, `id`, `folderId`, `folderName`, `folderKey`, `createdTime`, `lastModifiedTime`.
|
|
205
|
-
|
|
206
|
-
### start(request: ProcessStartRequest, folderId: number, options?: RequestOptions)
|
|
207
|
-
|
|
208
|
-
Returns `Promise<ProcessStartResponse[]>`. The `request` must include either `processKey` or `processName`. Optional fields: `strategy`, `robotIds`, `jobsCount`, `inputArguments`, `jobPriority`.
|
|
209
|
-
|
|
210
|
-
`ProcessStartResponse` fields: `key`, `startTime`, `endTime`, `state`, `source`, `processName`, `type`, `id`, `folderId`.
|
|
211
|
-
|
|
212
|
-
## Jobs Service (Scopes: `OR.Jobs` or `OR.Jobs.Read`)
|
|
213
|
-
|
|
214
|
-
### getAll(options?: JobGetAllOptions)
|
|
215
|
-
|
|
216
|
-
Returns `NonPaginatedResponse<JobGetResponse>` or `PaginatedResponse<JobGetResponse>`. Options extend `RequestOptions & PaginationOptions & { folderId?: number }`. Supports `filter`, `orderby`, `expand`, `select`. Rows are on `.items`.
|
|
11
|
+
> **Do NOT use `sourceType` to find agent jobs.** `sourceType` (raw `Source` / `JobSourceType`) is the **trigger origin** — `Manual`, `Schedule`, `Queue`, `Agent`, `Apps`, `HttpTrigger`, … An agent job can be triggered manually (`sourceType: "Manual"`), and `sourceType: "Agent"` only means "started by an agent source," which is a different thing. Filtering on `sourceType === 'Agent'` is wrong in both directions.
|
|
217
12
|
|
|
218
|
-
**Example response** (`.items`) — an agent job next to a standard RPA job. The agent job is `packageType: "Agent"
|
|
13
|
+
**Example response** (`Jobs.getAll()` `.items`) — an agent job next to a standard RPA job. The agent job is `packageType: "Agent"`. Note `sourceType` is the *trigger origin* (here both happen to differ) and does NOT identify an agent:
|
|
219
14
|
|
|
220
15
|
```json
|
|
221
16
|
{
|
|
@@ -239,60 +34,18 @@ Returns `NonPaginatedResponse<JobGetResponse>` or `PaginatedResponse<JobGetRespo
|
|
|
239
34
|
}
|
|
240
35
|
```
|
|
241
36
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
Returns `Promise<JobGetResponse>`. The `folderId` is required. **Note:** `id` is a `string` here (not a `number` like Assets/Queues/Processes).
|
|
245
|
-
|
|
246
|
-
### getOutput(jobKey: string, folderId: number)
|
|
247
|
-
|
|
248
|
-
Returns `Promise<Record<string, unknown> | null>` — the job's parsed output arguments, or `null` if unavailable. Use after a job has finished; output is not populated while the job is still running.
|
|
249
|
-
|
|
250
|
-
### stop(jobKeys: string[], folderId: number, options?: JobStopOptions)
|
|
251
|
-
|
|
252
|
-
Returns `Promise<void>`. Stops one or more jobs (pass an array even for a single job). Throws if any keys cannot be resolved. `JobStopOptions`: `{ strategy?: StopStrategy }` — `StopStrategy.SoftStop` (default, graceful) or `StopStrategy.Kill` (immediate).
|
|
253
|
-
|
|
254
|
-
### resume(jobKey: string, folderId: number, options?: JobResumeOptions)
|
|
37
|
+
Job latency ← `endTime − startTime` (both timestamps; `endTime` is null while `Running` — a server behavior the types show only as `string | null`).
|
|
255
38
|
|
|
256
|
-
|
|
39
|
+
Server-side filters (SDK field names — the SDK rewrites them to API names):
|
|
40
|
+
- Agent jobs: `getAll({ filter: "packageType eq 'Agent'", orderby: 'createdTime desc' })`
|
|
41
|
+
- Faulted agent jobs: `getAll({ filter: "State eq 'Faulted' and packageType eq 'Agent'" })`
|
|
42
|
+
- Reading results: `result.items.filter(j => j.packageType === 'Agent')`
|
|
257
43
|
|
|
258
|
-
###
|
|
44
|
+
### OData filter field names
|
|
259
45
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
`JobGetResponse` fields: `key`, `id`, `state`, `createdTime`, `startTime`, `endTime`, `lastModifiedTime`, `resumeTime`, `processName`, `entryPointPath`, `processVersionId`, `hostMachineName`, `inputArguments`, `outputArguments`, `environmentVariables`, `type`, `sourceType`, `packageType`, `runtimeType`, `serverlessJobType`, `jobPriority`, `specificPriorityValue`, `stopStrategy`, `remoteControlAccess`, `batchExecutionKey`, `parentJobKey`, `traceId`, `parentSpanId`, `errorCode`, `jobError`, `subState`, `machine`, `robot`, `process`. The `machine`, `robot`, and `process` fields are populated only when requested via `expand`.
|
|
263
|
-
|
|
264
|
-
### Job classification — agent vs process vs app
|
|
265
|
-
|
|
266
|
-
An agent job is identified by **`packageType === 'Agent'`** on the SDK response object. The SDK's `JobMap` renames the raw API field `ProcessType → packageType`, so a raw job with `ProcessType: "Agent"` arrives as `packageType: "Agent"`.
|
|
267
|
-
|
|
268
|
-
| Where | Field | Agent job value |
|
|
269
|
-
|-------|-------|-----------------|
|
|
270
|
-
| SDK response object (`fnBody` reads this) | `packageType` | `"Agent"` |
|
|
271
|
-
| OData server-side `filter` string (raw API name) | `ProcessType` | `"Agent"` |
|
|
272
|
-
|
|
273
|
-
> **Do NOT use `sourceType` to find agent jobs.** `sourceType` (raw `Source` / `JobSourceType`) is the **trigger origin** — `Manual`, `Schedule`, `Queue`, `Agent`, `Apps`, `HttpTrigger`, … An agent job can be triggered manually (`sourceType: "Manual"`), and `sourceType: "Agent"` only means "started by an agent source," which is a different thing. Filtering on `sourceType === 'Agent'` is wrong in both directions.
|
|
46
|
+
The SDK rewrites SDK field names inside `filter` / `orderby` / `select` / `expand` to raw API names before sending (`processName → releaseName`, `createdTime → creationTime`, `packageType → processType`); raw API names pass through unchanged, so either spelling works. `folderId` is never a `$filter` field — folder scoping travels via header.
|
|
274
47
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
Server-side filters (use the raw field name `ProcessType` in the OData string):
|
|
278
|
-
- Agent jobs: `getAll({ filter: "ProcessType eq 'Agent'", orderby: 'CreationTime desc' })`
|
|
279
|
-
- Faulted agent jobs: `getAll({ filter: "State eq 'Faulted' and ProcessType eq 'Agent'" })`
|
|
280
|
-
- Reading results: `result.items.filter(j => j.packageType === 'Agent')` (client-side, mapped field name)
|
|
281
|
-
|
|
282
|
-
#### Filterable vs read-only Job fields
|
|
283
|
-
|
|
284
|
-
A field appearing in the response does **NOT** make it valid in an OData `$filter`. The SDK's mapped (renamed) response fields are **read-only** — filtering on them throws `Invalid OData query options … Could not find a property named '<field>'` at request time (invisible to `tsc`).
|
|
285
|
-
|
|
286
|
-
| Read-only (response only — NEVER in `$filter`) | Filter on the raw field instead |
|
|
287
|
-
|---|---|
|
|
288
|
-
| `processName` (← `releaseName`) | match **client-side**: `items.filter(j => j.processName === name)` |
|
|
289
|
-
| `createdTime` (← `creationTime`) | `CreationTime` (e.g. `orderby: 'CreationTime desc'`) |
|
|
290
|
-
| `folderId` (← `organizationUnitId`) | folder is scoped via header, not `$filter` |
|
|
291
|
-
| `packageType` (← `ProcessType`) | `ProcessType` |
|
|
292
|
-
|
|
293
|
-
Safe `$filter` fields: **`ProcessType`**, **`State`**, **`CreationTime`**, **`StartTime`**. To find a specific agent's jobs, filter `ProcessType eq 'Agent'` and match the name **client-side** on `processName` — there is no server-side name filter.
|
|
294
|
-
|
|
295
|
-
#### Recipe — jobs for a named agent → its most-recent trace's spans
|
|
48
|
+
### Recipe — jobs for a named agent → its most-recent trace's spans
|
|
296
49
|
|
|
297
50
|
The bridge from a clicked agent to its spans (e.g. a `rowLink` table's `fetchDetailByKey`):
|
|
298
51
|
|
|
@@ -302,56 +55,36 @@ import type { MetricDetailByKeyFn } from '@/lib/metric-contract'
|
|
|
302
55
|
export const fetchDetailByKey: MetricDetailByKeyFn = async (sdk, agentName) => {
|
|
303
56
|
const { Jobs } = await import('@uipath/uipath-typescript/jobs')
|
|
304
57
|
const { AgentTraces } = await import('@uipath/uipath-typescript/traces')
|
|
305
|
-
const jobs = (await new Jobs(sdk).getAll({ filter: "
|
|
306
|
-
const job = jobs.find(j => j.processName === agentName) // client-side
|
|
58
|
+
const jobs = (await new Jobs(sdk).getAll({ filter: "packageType eq 'Agent'", orderby: 'createdTime desc' }))?.items ?? []
|
|
59
|
+
const job = jobs.find(j => j.processName === agentName) // name match is client-side (no server-side name filter)
|
|
307
60
|
if (!job?.traceId) return []
|
|
308
61
|
return await new AgentTraces(sdk).getSpansByTraceId(job.traceId) // Job carries traceId (see traces.md)
|
|
309
62
|
}
|
|
310
63
|
```
|
|
311
64
|
|
|
312
|
-
##
|
|
313
|
-
|
|
314
|
-
Returned by `getById()` and `getAll()` items on each `JobGetResponse`. These are bound to the job's `key` and `folderId`, so you don't need to pass them again:
|
|
315
|
-
|
|
316
|
-
- `job.getOutput()` -> `Promise<Record<string, unknown> | null>`
|
|
317
|
-
- `job.stop(options?)` -> `Promise<void>`
|
|
318
|
-
- `job.resume(options?)` -> `Promise<void>`
|
|
319
|
-
- `job.restart()` -> `Promise<JobGetResponse>` (new job)
|
|
320
|
-
|
|
321
|
-
```typescript
|
|
322
|
-
const all = await jobs.getAll({ folderId, pageSize: 20 });
|
|
323
|
-
const running = all.items.find(j => j.state === 'Running');
|
|
324
|
-
if (running) await running.stop(); // bound — no folderId needed
|
|
325
|
-
const completed = all.items.find(j => j.state === 'Successful');
|
|
326
|
-
if (completed) {
|
|
327
|
-
const output = await completed.getOutput(); // bound
|
|
328
|
-
const newJob = await completed.restart(); // bound
|
|
329
|
-
}
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
## Attachments Service (Scopes: `OR.Folders` or `OR.Folders.Read`)
|
|
65
|
+
## Bucket file listing — which method
|
|
333
66
|
|
|
334
|
-
|
|
67
|
+
`getFiles` (folder-aware `BucketFile` items, regex filtering) vs `getFileMetaData` (flat `BlobItem` list by `prefix`): prefer **`getFiles`** for directory-style browsing. Neither method's JSDoc mentions the other. Note `JobGetResponse.process` is populated only via `expand` (its JSDoc, unlike `machine`/`robot`, does not say so).
|
|
335
68
|
|
|
336
|
-
|
|
69
|
+
## Attachments Service
|
|
337
70
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
Returns `Promise<AttachmentResponse>`. `id` is the attachment **UUID** (string) — not a number. Throws `ValidationError` if `id` is empty. `AttachmentGetByIdOptions` supports OData `expand` / `select`.
|
|
341
|
-
|
|
342
|
-
`AttachmentResponse` fields: `id`, `name`, `jobKey?`, `attachmentCategory?`, `lastModifiedTime?`, `lastModifierUserId?`, `createdTime?`, `creatorUserId?`, `blobFileAccess: BucketGetUriResponse` (the signed URL + headers — `{ uri, httpMethod, requiresAuth, headers }`).
|
|
343
|
-
|
|
344
|
-
Resolve a `file`-typed input to its bytes. Respect `requiresAuth` — when `true`, pass `headers` on the download request:
|
|
71
|
+
Cross-artifact role the types don't show: Coded Action Apps resolve a `type: "file"` input — the file reference handed in by the automation (Maestro / Agent / RPA) — into bytes via `Attachments.getById()` → `blobFileAccess` (signed URL + headers). `Jobs.getOutput()` uses the same service internally for file-type outputs (see scope pairing warning above). When `blobFileAccess.requiresAuth` is `true`, pass `blobFileAccess.headers` on the download request.
|
|
345
72
|
|
|
346
73
|
```typescript
|
|
347
74
|
import { Attachments } from '@uipath/uipath-typescript/attachments';
|
|
348
75
|
|
|
349
|
-
const
|
|
350
|
-
const attachment = await attachments.getById('<attachmentId>');
|
|
351
|
-
// Download the blob using the signed URI
|
|
76
|
+
const attachment = await new Attachments(sdk).getById('<attachmentId>');
|
|
352
77
|
const blob = await fetch(attachment.blobFileAccess.uri).then(r => r.blob());
|
|
353
78
|
```
|
|
354
79
|
|
|
80
|
+
## Folder scoping — deploy folder is auto-injected; don't enumerate
|
|
81
|
+
|
|
82
|
+
There is **no `Folders` service** — no folder-listing/enumeration API exists (only the internal `FolderScopedService` base). Don't hunt for one.
|
|
83
|
+
|
|
84
|
+
A deployed coded app is auto-scoped to the folder it was deployed into: the platform injects `<meta name="uipath:folder-key">` at deploy, the SDK loads it at init (`loadFromMetaTags()`), and every folder-scoped call falls back to it (`X-UIPATH-FolderKey` header) when the call passes no folder. **Default: pass no folder → calls target the app's own folder.** Target a different folder by passing an explicit `folderId` / `folderKey` / `folderPath` (it takes precedence; bridge a bare `folderKey` to `folderId` via [Bridging folderKey ↔ folderId](#bridging-folderkey--folderid)). No injected meta tag (some local dev setups) → no fallback, so pass an explicit folder.
|
|
85
|
+
|
|
86
|
+
> **Invisible in the type surface.** `folderKey` is deliberately kept off the public `UiPathConfig`, so reading the `.d.ts` will not reveal this fallback mechanism — it is exactly the kind of behavior this file exists to record.
|
|
87
|
+
|
|
355
88
|
## Bridging folderKey ↔ folderId
|
|
356
89
|
|
|
357
90
|
Maestro services return `folderKey` (GUID string), but Orchestrator services like `Processes.start()` require `folderId` (number). These are **completely different identifiers** — `parseInt(folderKey)` gives `NaN`.
|
|
@@ -405,30 +138,3 @@ for (const p of orchProcesses.items) {
|
|
|
405
138
|
}
|
|
406
139
|
// Use: folderMap.get(maestroProcess.folderKey) → folderId
|
|
407
140
|
```
|
|
408
|
-
|
|
409
|
-
## Usage Example
|
|
410
|
-
|
|
411
|
-
```typescript
|
|
412
|
-
import { useMemo } from 'react';
|
|
413
|
-
import { useAuth } from '../hooks/useAuth';
|
|
414
|
-
import { Assets } from '@uipath/uipath-typescript/assets';
|
|
415
|
-
import { Processes } from '@uipath/uipath-typescript/processes';
|
|
416
|
-
import type { ProcessStartRequest } from '@uipath/uipath-typescript/processes';
|
|
417
|
-
|
|
418
|
-
function OrchestratorActions({ folderId }: { folderId: number }) {
|
|
419
|
-
const { sdk } = useAuth();
|
|
420
|
-
const assets = useMemo(() => new Assets(sdk), [sdk]);
|
|
421
|
-
const processes = useMemo(() => new Processes(sdk), [sdk]);
|
|
422
|
-
|
|
423
|
-
const listAssets = async () => {
|
|
424
|
-
const result = await assets.getAll({ folderId, pageSize: 10 });
|
|
425
|
-
return result.items;
|
|
426
|
-
};
|
|
427
|
-
|
|
428
|
-
const startProcess = async (processKey: string) => {
|
|
429
|
-
const request: ProcessStartRequest = { processKey };
|
|
430
|
-
const jobs = await processes.start(request, folderId);
|
|
431
|
-
return jobs;
|
|
432
|
-
};
|
|
433
|
-
}
|
|
434
|
-
```
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Pagination
|
|
1
|
+
# Pagination — Server Behavior & Patterns
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
> -
|
|
6
|
-
> - `getAll({ pageSize: 200 })` → `PaginatedResponse` → API returns up to 200, plus `hasNextPage` / `nextCursor`.
|
|
3
|
+
Types (`PaginationOptions`, `PaginationCursor`, `PaginatedResponse`, `NonPaginatedResponse`) and per-method pagination examples: `dist/core/index.d.ts` + each service's own `dist/<subpath>/index.d.ts` JSDoc. This file covers only server behavior and skill patterns neither documents.
|
|
4
|
+
|
|
5
|
+
> **Foot-gun: every "list" call returns ONE page, even when you pass no pagination options.** `getAll`, `getAllRecords`, `queryRecordsById`, `getFileMetaData`, etc. all make exactly one HTTP call.
|
|
7
6
|
>
|
|
8
|
-
>
|
|
7
|
+
> - `getAll()` (no options) → SDK sends no `pageSize` param; the **server** applies its own default cap and returns one page, wrapped in a misleadingly-named `NonPaginatedResponse`. It is NOT "all rows in one shot," and you can't override the cap client-side without explicitly paginating.
|
|
8
|
+
> - **There is no "give me everything" call.** To list every row from a source that may exceed the cap, loop the cursor:
|
|
9
9
|
>
|
|
10
10
|
> ```typescript
|
|
11
11
|
> const all: T[] = [];
|
|
@@ -22,65 +22,7 @@
|
|
|
22
22
|
>
|
|
23
23
|
> **Dashboard widgets:** don't hand-write this loop in `fnBody` — the dashboard scaffold ships a typed helper: `const { fetchAll } = await import('@/lib/paginate')` then `const items = await fetchAll(cursor => svc.getAll({ pageSize: 200, cursor }))` and return `items.map(x => ({ ...x }))` (project SDK rows into `Row` objects).
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Import pagination types from `@uipath/uipath-typescript/core`:
|
|
28
|
-
|
|
29
|
-
```typescript
|
|
30
|
-
import type {
|
|
31
|
-
PaginationCursor,
|
|
32
|
-
PaginationOptions,
|
|
33
|
-
PaginatedResponse,
|
|
34
|
-
NonPaginatedResponse,
|
|
35
|
-
} from '@uipath/uipath-typescript/core';
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
- `PaginationCursor`: `{ value: string }` — an opaque cursor object. Pass it to `cursor` in pagination options.
|
|
39
|
-
- `PaginationOptions`: `{ pageSize?, cursor?, jumpToPage? }` (cursor and jumpToPage are mutually exclusive)
|
|
40
|
-
- `PaginatedResponse<T>`: `{ items, hasNextPage, nextCursor?, previousCursor?, totalCount?, currentPage?, totalPages?, supportsPageJump }`
|
|
41
|
-
- `NonPaginatedResponse<T>`: `{ items, totalCount? }`
|
|
42
|
-
|
|
43
|
-
## Behavior
|
|
44
|
-
|
|
45
|
-
- No pagination options passed → returns `NonPaginatedResponse<T>` (response wrapper has no pagination metadata; data is still capped at the **server's** default page limit, applied on the API side because the SDK sends no `pageSize`; see foot-gun above).
|
|
46
|
-
- Any pagination option passed (pageSize, cursor, or jumpToPage) → returns `PaginatedResponse<T>` with `hasNextPage`/`nextCursor` for cursor-loop retrieval.
|
|
47
|
-
|
|
48
|
-
## Cursor Navigation
|
|
49
|
-
|
|
50
|
-
```typescript
|
|
51
|
-
// First page
|
|
52
|
-
const page1 = await service.getAll({ pageSize: 10 });
|
|
53
|
-
|
|
54
|
-
// Next page using cursor
|
|
55
|
-
if (page1.hasNextPage && page1.nextCursor) {
|
|
56
|
-
const page2 = await service.getAll({ cursor: page1.nextCursor });
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Jump to page (only for offset-based services: Assets, Queues, Tasks, Entities)
|
|
60
|
-
const page5 = await service.getAll({ jumpToPage: 5, pageSize: 10 });
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Type Narrowing
|
|
64
|
-
|
|
65
|
-
TypeScript narrows the return type at compile-time based on whether pagination options are passed. At runtime, use `'hasNextPage' in result` to discriminate — this field exists only on `PaginatedResponse`, never on `NonPaginatedResponse`.
|
|
66
|
-
|
|
67
|
-
```typescript
|
|
68
|
-
import type { PaginatedResponse } from '@uipath/uipath-typescript/core';
|
|
69
|
-
|
|
70
|
-
// Pattern 1: When you always pass pagination options, assert the type
|
|
71
|
-
const result = await tasks.getAll({ pageSize: 10 });
|
|
72
|
-
// TypeScript already infers PaginatedResponse here, but if using dynamic options:
|
|
73
|
-
const paginated = result as PaginatedResponse<TaskGetResponse>;
|
|
25
|
+
Server behavior the types don't show:
|
|
74
26
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
if ('hasNextPage' in result) {
|
|
78
|
-
// PaginatedResponse — safe to access nextCursor, supportsPageJump, etc.
|
|
79
|
-
if (result.hasNextPage && result.nextCursor) {
|
|
80
|
-
const nextPage = await tasks.getAll({ cursor: result.nextCursor });
|
|
81
|
-
}
|
|
82
|
-
} else {
|
|
83
|
-
// NonPaginatedResponse — only has items and totalCount
|
|
84
|
-
console.log(`All ${result.items.length} items returned`);
|
|
85
|
-
}
|
|
86
|
-
```
|
|
27
|
+
- `jumpToPage` works only on offset-based services (Assets, Queues, Tasks, Entities) — check `supportsPageJump` on the response before offering page-jump UI.
|
|
28
|
+
- Runtime discrimination when options are dynamic: `'hasNextPage' in result` — the field exists only on `PaginatedResponse`, never on `NonPaginatedResponse`.
|
|
@@ -1,52 +1,17 @@
|
|
|
1
1
|
# Agent Traces (Insights RTM) Reference
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Signatures/params/examples: `dist/traces/index.d.ts`. Per-method scopes: shipped `docs/oauth-scopes.md`. This file covers only what neither can express.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
```typescript
|
|
8
|
-
import { AgentTraces, AgentTraceExecutionType } from '@uipath/uipath-typescript/traces';
|
|
9
|
-
const svc = new AgentTraces(sdk)
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
**Convention:** every method takes ONE optional options object — `{ startTime?: Date, endTime?: Date, folderKeys?, agentId?, agentVersion?, executionType? }`. Dates go INSIDE the object (unlike `Agents`, which uses positional Dates). Window defaults to the **last 1 year** server-side. `executionType`: `AgentTraceExecutionType.Debug | Runtime` (omit for both). Exception: the two governance methods take a **required positional `startTime: Date`** first (options second) and are GATED — full contract, gate, and module patterns in [`sdk/governance-traces.md`](governance-traces.md).
|
|
13
|
-
|
|
14
|
-
The three timeline/consumption methods return a **bare array** — no `.items` / `.data` unwrapping. The span methods are listed for completeness but are record-grain (not dashboard metrics).
|
|
15
|
-
|
|
16
|
-
| Method | Returns (bare array of) | Use for |
|
|
17
|
-
|--------|------------------------|---------|
|
|
18
|
-
| `getErrorsTimeline(options?)` | `{ name, value, date }` (`name` = error name) | Trace error volume over time |
|
|
19
|
-
| `getLatencyTimeline(options?)` | `{ name, value, date }` (`value` = **seconds**) | Trace latency over time |
|
|
20
|
-
| `getUnitConsumption(options?)` | `{ agentId, folderKey, agentVersion, agentUnitsConsumed, platformUnitsConsumed }` | Per-agent AGU/PLTU totals (ranked table) |
|
|
21
|
-
| `getSpansByTraceId(traceId)` | `AgentSpanGetResponse[]` | All spans of one trace (drill-down, not a metric) |
|
|
22
|
-
| `getSpansByReference(referenceId, options?)` | paginated `AgentSpanGetResponse` | Spans under a reference id (drill-down, not a metric) |
|
|
23
|
-
| `getGovernanceDecisions(startTime, options?)` **(≥ 1.5.1, org-admin)** | paginated `.items` decision rows | Runtime-governance policy checks — see `sdk/governance-traces.md` |
|
|
24
|
-
| `getGovernanceSummary(startTime, options?)` **(≥ 1.5.1, org-admin)** | single summary object | Governance posture breakdowns — see `sdk/governance-traces.md` |
|
|
25
|
-
|
|
26
|
-
## getErrorsTimeline
|
|
5
|
+
> The two governance methods (`getGovernanceDecisions` / `getGovernanceSummary`) are **org-admin, GATED** — full contract, gate, and module patterns in [`sdk/governance-traces.md`](governance-traces.md).
|
|
27
6
|
|
|
28
|
-
|
|
29
|
-
[ { "name": "ToolTimeout", "value": 4, "date": "2026-06-02" },
|
|
30
|
-
{ "name": "ValidationError", "value": 1, "date": "2026-06-02" } ]
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
`name` is the **error name/category** (not an agent name — contrast with `Agents.getErrorsTimeline`).
|
|
34
|
-
|
|
35
|
-
## getLatencyTimeline
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
[ { "name": "P50", "value": 0.82, "date": "2026-06-02" },
|
|
39
|
-
{ "name": "P95", "value": 2.40, "date": "2026-06-02" } ]
|
|
40
|
-
```
|
|
7
|
+
Trace-level (span-level) view of agent execution — errors, latency, unit consumption, and raw spans. Distinct from the `Agents` service (`sdk/agents.md`), which aggregates per agent. Use traces when the request is about *spans*, *trace-level* timelines, or per-(agent, version, folder) unit breakdowns.
|
|
41
8
|
|
|
42
|
-
|
|
9
|
+
> **Cross-service contrast warning:** conventions and field semantics differ from `Agents` (options-object vs positional dates, `name` = error vs agent, seconds vs ms) — read each signature/JSDoc; do NOT pattern-match from `Agents` to `AgentTraces`.
|
|
43
10
|
|
|
44
|
-
##
|
|
11
|
+
## Traps
|
|
45
12
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
{ "agentId": "ag-0002", "folderKey": "f-1001", "agentVersion": "1.0.0", "agentUnitsConsumed": 1210, "platformUnitsConsumed": 12 } ]
|
|
49
|
-
```
|
|
13
|
+
- `executionType`: omit to include BOTH `Debug` and `Runtime` (the option's JSDoc does not state this).
|
|
14
|
+
- `getLatencyTimeline`: `name` is a series/grouping label with NO guaranteed values (unlike `Agents`, where observed values are `P50`/`P95`). For a robust default, average `value` per `date` into a single series; inspect live `name` values before plotting distinct series with a `multi-line-chart`.
|
|
50
15
|
|
|
51
16
|
## Module patterns
|
|
52
17
|
|
|
@@ -86,4 +51,4 @@ return consumption.map(x => ({ ...x }))
|
|
|
86
51
|
|
|
87
52
|
## Spans (drill-down only)
|
|
88
53
|
|
|
89
|
-
`getSpansByTraceId(traceId)` and `getSpansByReference(referenceId, options?)` return raw span records
|
|
54
|
+
`getSpansByTraceId(traceId)` and `getSpansByReference(referenceId, options?)` return raw span records — record-grain trace inspection, not aggregate dashboard metrics. Use them for a `fetchDetail` drill-down, not a top-level widget. `getSpansByReference` is paginated (use `fetchAll`).
|