@uipath/agent-sdk 1.199.0 → 1.201.0-preview.115

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.
@@ -31,30 +31,65 @@ export declare function getAvailableModels(options?: CreateApiClientOptions): Pr
31
31
  */
32
32
  export declare function getAvailableModelNames(options?: CreateApiClientOptions): Promise<string[]>;
33
33
  export interface GuardrailParameterDefinition {
34
- type: "enum-list" | "map-enum" | "number";
34
+ type: "enum" | "enum-list" | "map-enum" | "number" | "text" | "text-list" | "boolean";
35
35
  id: string;
36
36
  required: boolean;
37
37
  defaultValue?: unknown;
38
38
  options?: string[];
39
+ optionLabels?: Record<string, string>;
39
40
  keySource?: string;
40
41
  step?: number | null;
41
42
  min?: number | null;
42
43
  max?: number | null;
44
+ maxLength?: number | null;
45
+ maxItems?: number | null;
46
+ displayName?: string;
47
+ description?: string;
43
48
  }
44
49
  export interface GuardrailDefinition {
45
50
  validator: string;
46
51
  allowedScopes: string[];
47
52
  guardrailStages: Record<string, string[]>;
48
53
  parameters: GuardrailParameterDefinition[];
49
- status: "Available" | "FeatureDisabled" | "Unauthorised";
54
+ /**
55
+ * "Disabled" is BYO-only: the tenant's configuration row is switched off.
56
+ * Distinct from "FeatureDisabled" (feature flag) and "Unauthorised" (licensing).
57
+ */
58
+ status: "Available" | "FeatureDisabled" | "Unauthorised" | "Disabled";
59
+ displayName?: string;
60
+ description?: string;
61
+ payloadMinSizeLimit?: number | null;
62
+ payloadMaxSizeLimit?: number | null;
63
+ /**
64
+ * Present only on bring-your-own guardrails, and the marker that separates
65
+ * them from built-ins — `validator` is not unique, since the platform
66
+ * concatenates BYO definitions onto the always-present built-in set.
67
+ * This holds the tenant's configuration alias, not the raw validator id.
68
+ */
69
+ byoValidatorName?: string;
70
+ byoConnectorName?: string;
71
+ byoConnectorKey?: string;
72
+ byoGuardrailConnectionId?: string;
73
+ byoConfigurationId?: string;
74
+ folderKey?: string;
75
+ }
76
+ export interface GetGuardrailDefinitionsOptions extends CreateApiClientOptions {
77
+ /**
78
+ * Also return BYO guardrails whose configuration is switched off
79
+ * (status "Disabled"). Off by default so existing callers keep the
80
+ * original filter.
81
+ */
82
+ includeDisabled?: boolean;
50
83
  }
51
84
  /**
52
85
  * Fetch out-of-the-box guardrail definitions for the authenticated tenant.
53
86
  *
54
87
  * Endpoint: `GET /api/execution/guardrails/definitions`
55
- * Returns guardrails with status "Available" or "Unauthorised".
88
+ * Returns guardrails with status "Available" or "Unauthorised", plus
89
+ * "Disabled" when `includeDisabled` is set. "FeatureDisabled" is always
90
+ * dropped.
56
91
  */
57
- export declare function getGuardrailDefinitions(options?: CreateApiClientOptions): Promise<GuardrailDefinition[]>;
92
+ export declare function getGuardrailDefinitions(options?: GetGuardrailDefinitionsOptions): Promise<GuardrailDefinition[]>;
58
93
  export interface GuardrailCatalogEntry {
59
94
  validator_id: string;
60
95
  display_name: string;
@@ -1,6 +1,6 @@
1
1
  import "./user-agent.js";
2
2
  export * from "../generated/src/index.js";
3
3
  export { type CreateApiClientOptions, createAgentRuntimeConfig, createApiClient, } from "./client-factory.js";
4
- export { type AgentEnforcements, type GuardrailCatalogEntry, GuardrailCatalogUnavailableError, type GuardrailDefinition, type GuardrailParameterDefinition, type GuardrailsCatalogResponse, getAgentEnforcements, getAvailableModelNames, getAvailableModels, getGuardrailCatalog, getGuardrailDefinitions, } from "./governance.js";
4
+ export { type AgentEnforcements, type GetGuardrailDefinitionsOptions, type GuardrailCatalogEntry, GuardrailCatalogUnavailableError, type GuardrailDefinition, type GuardrailParameterDefinition, type GuardrailsCatalogResponse, getAgentEnforcements, getAvailableModelNames, getAvailableModels, getGuardrailCatalog, getGuardrailDefinitions, } from "./governance.js";
5
5
  export { ProjectFilesSource } from "./types.js";
6
6
  export { SDK_USER_AGENT } from "./user-agent.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/agent-sdk",
3
3
  "license": "MIT",
4
- "version": "1.199.0",
4
+ "version": "1.201.0-preview.115",
5
5
  "description": "SDK for the UiPath Agent Runtime API — evaluation execution and debug sessions.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -29,5 +29,5 @@
29
29
  "files": [
30
30
  "dist"
31
31
  ],
32
- "gitHead": "723e6801b77b5926ba75e75b6a756cc38b1b7adc"
32
+ "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
33
33
  }