@uipath/maestro-sdk 1.196.1 → 1.197.0-preview.59

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.
@@ -2999,3 +2999,5 @@ export {
2999
2999
  SUPPORTED_UIPATH_EXTENSION_TAGS,
3000
3000
  BPMN_SPEC
3001
3001
  };
3002
+
3003
+ //# debugId=4424DF01E4340FBF64756E2164756E21
@@ -26,7 +26,7 @@ export declare class FpsPropertiesInjectionError extends Error {
26
26
  * @throws {FpsPropertiesInjectionError} when agents are supplied and
27
27
  * `fpsProperties` cannot be parsed.
28
28
  */
29
- export declare function injectInlineAgentProcessEntries(fpsProperties: string | undefined, inlineAgents?: InlineAgentDescriptor[]): string | undefined;
29
+ export declare function injectInlineAgentProcessEntries(fpsProperties: string | undefined, inlineAgents?: InlineAgentDescriptor[], flowProjectId?: string): string | undefined;
30
30
  /**
31
31
  * Append in-solution sibling-project entries (flow-as-node callees, RPA
32
32
  * processes, …) to `FpsProperties.debug.master.processes`. The flow-as-node
@@ -117,6 +117,13 @@ export interface BeginDebugSessionOptions {
117
117
  * top of this.
118
118
  */
119
119
  fpsProperties?: string;
120
+ /**
121
+ * Studio Web project id of the flow that holds the inline agents in its
122
+ * package (the flow being debugged). Stamped as each inline agent's
123
+ * `executorInfo.projectId` so the serverless executor downloads the right
124
+ * project. Without it the agent's own id is used and Studio Web 403s.
125
+ */
126
+ flowProjectId?: string;
120
127
  }
121
128
  /**
122
129
  * Begin a debug session in Orchestrator.
@@ -11,9 +11,9 @@ export { parseJsonInputOrFile, readJsonFile, resolveJsonInput, } from "./json-in
11
11
  export { BPMN_SPEC, SUPPORTED_UIPATH_EXTENSION_TAG_NAMES, SUPPORTED_UIPATH_EXTENSION_TAGS, } from "./manifest/bpmn-spec";
12
12
  export type { BpmnExtensionType, DiscoveredConnector, DiscoveredProcess, MaestroRegistry, RegistryMetadata, } from "./manifest/types";
13
13
  export { buildQueryString } from "./query-string";
14
- export type { CompactField, ConnectorInfo, ConnectorMethodInfo, ContextEntry, FieldReference, FilterCondition, FilterField, FilterOperator, ISField, ISFieldMethod, ISMetadata, ISMetadataParam, ParsedFilters, SyncMetadata, TriggerField, TriggerFieldEvent, TriggerObjectMetadata, } from "./registry/index.js";
15
- export { buildActivityEssentialConfiguration, buildInputMetadata, buildManagedHttpEssentialConfiguration, buildTriggerEssentialConfiguration, enrichConnectorNode, extractActivityFilterFields, extractMultipartParameters, extractTriggerEventParameters, extractTriggerFilterFields, FilterParseError, fetchConnectionInfo, fetchConnectorMetadata, fetchConnectorTriggerMetadata, filterNodes, getConnectorConfiguration, getConnectorInfo, getNode, getNodeEnriched, inlineMultipartFileValues, isConnectorNode, isConnectorTriggerNode, isKnownSdkNodeType, listKnownSdkNodes, listNodes, loadIndexMetadata, loadNodeIndex, MANAGED_HTTP_CONNECTOR_KEY, parseFilterString, pullNodes, pullRemoteNodes, registerRegistryCommand, resolveNodeStorageDir, saveIndexMetadata, saveNodeIndex, searchNodes, searchNodesWithFilters, searchWithFilters, } from "./registry/index.js";
16
- export { getEnrichedActivityMetadata, getExtensionType, getRegistry, pullRegistry, searchRegistry, } from "./registry/registry-service";
14
+ export type { CompactField, ConnectorInfo, ConnectorMethodInfo, ContextEntry, FieldReference, FilterCondition, FilterField, FilterOperator, ISField, ISFieldMethod, ISMetadata, ISMetadataParam, ParsedFilters, SolutionContext, SyncMetadata, TriggerField, TriggerFieldEvent, TriggerObjectMetadata, } from "./registry/index.js";
15
+ export { buildActivityEssentialConfiguration, buildInputMetadata, buildManagedHttpEssentialConfiguration, buildTriggerEssentialConfiguration, enrichConnectorNode, extractActivityFilterFields, extractMultipartParameters, extractTriggerEventParameters, extractTriggerFilterFields, FilterParseError, fetchConnectionInfo, fetchConnectorMetadata, fetchConnectorTriggerMetadata, filterNodes, findSolutionFromCwd, getConnectorConfiguration, getConnectorInfo, getNode, getNodeEnriched, inlineMultipartFileValues, isConnectorNode, isConnectorTriggerNode, isKnownSdkNodeType, listKnownSdkNodes, listNodes, loadIndexMetadata, loadNodeIndex, MANAGED_HTTP_CONNECTOR_KEY, parseFilterString, pullNodes, pullRemoteNodes, registerRegistryCommand, resolveNodeStorageDir, saveIndexMetadata, saveNodeIndex, searchNodes, searchNodesWithFilters, searchWithFilters, } from "./registry/index.js";
16
+ export { countProcessesByType, getEnrichedActivityMetadata, getExtensionType, getRegistry, ORCHESTRATOR_RESOURCE_TYPES, type OrchestratorResourceType, pullRegistry, searchRegistry, } from "./registry/registry-service";
17
17
  export { CACHE_EXPIRATION_MS, loadRegistry, loadRegistryMetadata, saveRegistry, } from "./registry/storage";
18
18
  export type { DebugInstanceCommandsConfig } from "./shared-commands/debug-instances";
19
19
  export { registerSharedDebugInstanceCommands } from "./shared-commands/debug-instances";
@@ -134,4 +134,9 @@ export interface RegistryMetadata {
134
134
  extensionTypeCount: number;
135
135
  connectorCount: number;
136
136
  processCount: number;
137
+ /**
138
+ * Per-resource-type breakdown of discovered processes, persisted so the
139
+ * cache-hit fast path can report counts without reading the full registry.
140
+ */
141
+ processCountsByType: Record<string, number>;
137
142
  }
@@ -10,6 +10,31 @@
10
10
  * static registry.
11
11
  */
12
12
  import type { BpmnExtensionType, DiscoveredConnector, DiscoveredProcess, MaestroRegistry } from "../manifest/types.js";
13
+ /**
14
+ * Single source of truth for the Orchestrator resource types surfaced by
15
+ * discovery. Every type here corresponds to a bindable canvas node so an
16
+ * authored BPMN element (e.g. Orchestrator.StartJob, Orchestrator.BusinessRules)
17
+ * can resolve its `releaseKey`.
18
+ *
19
+ * Values are PascalCase, consistent with flow-core's ManifestClient
20
+ * `ORCHESTRATOR_RESOURCE_TYPES` and orchestrator-tool's `validProcessTypes`.
21
+ * They map directly onto the `ProcessType` values of the Orchestrator
22
+ * `ListReleases` API — there is no separate per-type release endpoint.
23
+ *
24
+ * This list is a deliberate SUPERSET of flow-core's
25
+ * `ORCHESTRATOR_RESOURCE_TYPES` (`Process`, `Agent`, `ProcessOrchestration`,
26
+ * `Flow`, `Api`, `Function`): the first six mirror the canvas/node-index
27
+ * exactly, and `CaseManagement`/`BusinessRules` are the bindable extras the
28
+ * canvas does not yet surface but Maestro authoring can reference.
29
+ * orchestrator-tool's `processes list` command filters the same endpoint by
30
+ * these same `ProcessType` values, so they are known-good filters.
31
+ *
32
+ * Whether `BusinessRules`/`CaseManagement` actually return releases depends on
33
+ * tenant licensing and is only confirmable against a live tenant; an empty
34
+ * result for those types is expected and not an error.
35
+ */
36
+ export declare const ORCHESTRATOR_RESOURCE_TYPES: readonly ["Process", "ProcessOrchestration", "Agent", "Flow", "Api", "Function", "CaseManagement", "BusinessRules"];
37
+ export type OrchestratorResourceType = (typeof ORCHESTRATOR_RESOURCE_TYPES)[number];
13
38
  export interface PullRegistryOptions {
14
39
  force?: boolean;
15
40
  }
@@ -17,11 +42,19 @@ export interface PullRegistryResult {
17
42
  extensionTypeCount: number;
18
43
  connectorCount: number;
19
44
  processCount: number;
45
+ /** Per-resource-type breakdown of discovered processes (e.g. { Process: 5, Agent: 2 }). */
46
+ processCountsByType: Record<string, number>;
20
47
  fromCache: boolean;
21
48
  ageMinutes?: number;
22
49
  cacheWritten: boolean;
23
50
  info?: string;
24
51
  }
52
+ /**
53
+ * Count discovered processes grouped by their Orchestrator resource type.
54
+ * Every type in {@link ORCHESTRATOR_RESOURCE_TYPES} is present (0 if none),
55
+ * so callers always see the full bindable surface.
56
+ */
57
+ export declare function countProcessesByType(processes: DiscoveredProcess[]): Record<string, number>;
25
58
  /**
26
59
  * Pull (or return cached) the full Maestro registry.
27
60
  *
@@ -12,8 +12,12 @@ import type { MaestroRegistry, RegistryMetadata } from "../manifest/types.js";
12
12
  export declare const CACHE_EXPIRATION_MS: number;
13
13
  /**
14
14
  * Save the full registry to disk and update the companion metadata file.
15
+ *
16
+ * @param processCountsByType Per-resource-type breakdown of discovered
17
+ * processes, persisted into the metadata so the cache-hit fast path can
18
+ * report it without reading the full registry back.
15
19
  */
16
- export declare function saveRegistry(registry: MaestroRegistry): Promise<void>;
20
+ export declare function saveRegistry(registry: MaestroRegistry, processCountsByType: Record<string, number>): Promise<void>;
17
21
  /**
18
22
  * Load the full registry from disk. Returns null if cache does not exist.
19
23
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/maestro-sdk",
3
3
  "license": "MIT",
4
- "version": "1.196.1",
4
+ "version": "1.197.0-preview.59",
5
5
  "description": "SDK for the UiPath Maestro (PIMS) API — process instance management.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -42,5 +42,5 @@
42
42
  "files": [
43
43
  "dist"
44
44
  ],
45
- "gitHead": "acdb9272c7407276898d24463cae9e377ccb1bf1"
45
+ "gitHead": "df0e2b8140cced13f463b487214927c82bc0f85b"
46
46
  }