@uipath/apollo-react 6.76.0 → 6.77.1

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.
@@ -6,6 +6,9 @@ export declare const PROMPT_INJECTION_WIRE: GuardrailDefinitionWire;
6
6
  export declare const USER_PROMPT_ATTACKS_WIRE: GuardrailDefinitionWire;
7
7
  export declare const INTELLECTUAL_PROPERTY_WIRE: GuardrailDefinitionWire;
8
8
  export declare const LLM_AS_JUDGE_WIRE: GuardrailDefinitionWire;
9
+ export declare const SENTIMENT_OPTIONS: string[];
10
+ export declare const SENTIMENT_LANGUAGE_OPTIONS: string[];
11
+ export declare const SENTIMENT_WIRE: GuardrailDefinitionWire;
9
12
  export declare const BYO_WIRE: GuardrailDefinitionWire;
10
13
  export declare const UNCURATED_WIRE: GuardrailDefinitionWire;
11
14
  export declare const ALL_BUILT_IN_WIRE: GuardrailDefinitionWire[];
@@ -1 +1 @@
1
- {"version":3,"file":"definitions-wire.fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAUnE,eAAO,MAAM,kBAAkB,EAAE,MAAM,EA0BtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,uBAsBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,uBAuBlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,uBAenC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,uBAKtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,uBAaxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBA6C/B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,uBAuBtB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,uBAc5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAOtD,CAAC;AAMF,eAAO,MAAM,sBAAsB,EAAE,OAgBpC,CAAC"}
1
+ {"version":3,"file":"definitions-wire.fixtures.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAUnE,eAAO,MAAM,kBAAkB,EAAE,MAAM,EA0BtC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,uBAsBhC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,uBAuBlC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,uBAenC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,uBAKtC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,uBAaxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBA6C/B,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,MAAM,EAAiD,CAAC;AAGxF,eAAO,MAAM,0BAA0B,EAAE,MAAM,EA6B9C,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,uBA4B5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,uBAuBtB,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,uBAc5B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAQtD,CAAC;AAMF,eAAO,MAAM,sBAAsB,EAAE,OAgBpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"host-copy-baselines.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/host-copy-baselines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAgE9D,eAAO,MAAM,cAAc,EAAE,kBA6E5B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBA+D1B,CAAC"}
1
+ {"version":3,"file":"host-copy-baselines.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/__fixtures__/host-copy-baselines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAiE9D,eAAO,MAAM,cAAc,EAAE,kBAqI5B,CAAC;AAGF,eAAO,MAAM,YAAY,EAAE,kBA+D1B,CAAC"}
@@ -65,6 +65,14 @@ function getCentralizedGuardrailDisplay(guardrail, { definition, copy } = {}) {
65
65
  description: void 0 === description || '' === description ? void 0 : description
66
66
  };
67
67
  }
68
+ const UNSCORED_THRESHOLD_KEYS = new Map([
69
+ [
70
+ 'sentiment',
71
+ new Set([
72
+ 'Mixed'
73
+ ])
74
+ ]
75
+ ]);
68
76
  const isPlainObject = (value)=>null !== value && 'object' == typeof value && !Array.isArray(value);
69
77
  const asStringArray = (value)=>Array.isArray(value) ? value.filter((item)=>'string' == typeof item) : [];
70
78
  const asNumberRecord = (value)=>isPlainObject(value) ? Object.fromEntries(Object.entries(value).filter((entry)=>'number' == typeof entry[1])) : {};
@@ -83,6 +91,8 @@ function liftBuiltInConfiguration(guardrail, definition, labels) {
83
91
  id: thresholdsId,
84
92
  value: guardrail.entityThresholds
85
93
  });
94
+ const liftedIds = new Set(parameters.map((parameter)=>parameter.id));
95
+ for (const parameter of guardrail.parameters ?? [])if (!liftedIds.has(parameter.id)) parameters.push(parameter);
86
96
  const definitions = declared.length > 0 ? declared : [
87
97
  {
88
98
  id: entitiesId,
@@ -115,6 +125,7 @@ function resolveCentralizedGuardrailParameters(guardrail, { definition, labels }
115
125
  parameterDefinition
116
126
  ]));
117
127
  const rendersAsThresholds = (id)=>isPlainObject(valuesById.get(id));
128
+ const unscoredKeys = guardrail.isByo ? void 0 : UNSCORED_THRESHOLD_KEYS.get(guardrail.validator);
118
129
  const optionLabel = (parameterDefinition, option)=>{
119
130
  const optionLabels = parameterDefinition?.optionLabels;
120
131
  const label = void 0 !== optionLabels && Object.hasOwn(optionLabels, option) ? optionLabels[option] : void 0;
@@ -145,7 +156,7 @@ function resolveCentralizedGuardrailParameters(guardrail, { definition, labels }
145
156
  thresholds: keys.map((key)=>({
146
157
  key,
147
158
  label: optionLabel(keySourceList, key),
148
- value: Object.hasOwn(thresholds, key) ? thresholds[key] : void 0
159
+ value: Object.hasOwn(thresholds, key) && !unscoredKeys?.has(key) ? thresholds[key] : void 0
149
160
  }))
150
161
  };
151
162
  };
@@ -1 +1 @@
1
- {"version":3,"file":"centralized-guardrail-utils.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Guardrails/centralized-guardrail-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,oBAAoB,EACpB,8BAA8B,EAC9B,8BAA8B,EAG9B,gCAAgC,EACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAG1D,MAAM,MAAM,4BAA4B,GAAG,IAAI,CAC7C,oBAAoB,EACpB,WAAW,GAAG,MAAM,GAAG,OAAO,CAC/B,CAAC;AAGF,wBAAgB,kCAAkC,CAAC,CAAC,SAAS,oBAAoB,EAC/E,UAAU,EAAE,SAAS,CAAC,EAAE,EACxB,EAAE,gBAAgB,EAAE,EAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAE,GACnD,CAAC,EAAE,CAIL;AAGD,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,oBAAoB,GAAG,MAAM,CAOrF;AAGD,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,8BAA8B,EACnF,SAAS,EAAE,4BAA4B,EACvC,WAAW,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GACpC,CAAC,GAAG,SAAS,CAMf;AAGD,wBAAgB,gCAAgC,CAAC,CAAC,SAAS,8BAA8B,EACvF,SAAS,EAAE,4BAA4B,EACvC,WAAW,EAAE,SAAS,CAAC,EAAE,GAAG,SAAS,GACpC,CAAC,GAAG,SAAS,CAMf;AAGD,wBAAgB,mCAAmC,CACjD,SAAS,EAAE,4BAA4B,EACvC,WAAW,EAAE,SAAS,8BAA8B,EAAE,GAAG,SAAS,GACjE,OAAO,CAGT;AAMD,wBAAgB,8BAA8B,CAC5C,SAAS,EAAE,4BAA4B,EACvC,EACE,UAAU,EACV,IAAI,GACL,GAAE;IAAE,UAAU,CAAC,EAAE,8BAA8B,CAAC;IAAC,IAAI,CAAC,EAAE,kBAAkB,CAAA;CAAO,GACjF;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAOxC;AAGD,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AA0DD,wBAAgB,qCAAqC,CACnD,SAAS,EAAE,oBAAoB,EAC/B,EACE,UAAU,EACV,MAAM,GACP,EAAE;IAAE,UAAU,CAAC,EAAE,8BAA8B,CAAC;IAAC,MAAM,EAAE,kCAAkC,CAAA;CAAE,GAC7F,gCAAgC,EAAE,CAwGpC;AAGD,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,2BAA2B,GAClC,MAAM,CAWR;AAGD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,2BAA2B,GAClC,MAAM,CAWR;AAGD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,8BAA8B,EACtC,MAAM,EAAE,2BAA2B,GAClC,MAAM,CAaR"}
1
+ {"version":3,"file":"centralized-guardrail-utils.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Guardrails/centralized-guardrail-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAA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E,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAE,CAOxC;AAGD,MAAM,WAAW,kCAAkC;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AA0ED,wBAAgB,qCAAqC,CACnD,SAAS,EAAE,oBAAoB,EAC/B,EACE,UAAU,EACV,MAAM,GACP,EAAE;IAAE,UAAU,CAAC,EAAE,8BAA8B,CAAC;IAAC,MAAM,EAAE,kCAAkC,CAAA;CAAE,GAC7F,gCAAgC,EAAE,CA4GpC;AAGD,wBAAgB,+BAA+B,CAC7C,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,2BAA2B,GAClC,MAAM,CAWR;AAGD,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,2BAA2B,GAClC,MAAM,CAWR;AAGD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,8BAA8B,EACtC,MAAM,EAAE,2BAA2B,GAClC,MAAM,CAaR"}
@@ -28,6 +28,14 @@ function getCentralizedGuardrailDisplay(guardrail, { definition, copy } = {}) {
28
28
  description: void 0 === description || '' === description ? void 0 : description
29
29
  };
30
30
  }
31
+ const UNSCORED_THRESHOLD_KEYS = new Map([
32
+ [
33
+ 'sentiment',
34
+ new Set([
35
+ 'Mixed'
36
+ ])
37
+ ]
38
+ ]);
31
39
  const isPlainObject = (value)=>null !== value && 'object' == typeof value && !Array.isArray(value);
32
40
  const asStringArray = (value)=>Array.isArray(value) ? value.filter((item)=>'string' == typeof item) : [];
33
41
  const asNumberRecord = (value)=>isPlainObject(value) ? Object.fromEntries(Object.entries(value).filter((entry)=>'number' == typeof entry[1])) : {};
@@ -46,6 +54,8 @@ function liftBuiltInConfiguration(guardrail, definition, labels) {
46
54
  id: thresholdsId,
47
55
  value: guardrail.entityThresholds
48
56
  });
57
+ const liftedIds = new Set(parameters.map((parameter)=>parameter.id));
58
+ for (const parameter of guardrail.parameters ?? [])if (!liftedIds.has(parameter.id)) parameters.push(parameter);
49
59
  const definitions = declared.length > 0 ? declared : [
50
60
  {
51
61
  id: entitiesId,
@@ -78,6 +88,7 @@ function resolveCentralizedGuardrailParameters(guardrail, { definition, labels }
78
88
  parameterDefinition
79
89
  ]));
80
90
  const rendersAsThresholds = (id)=>isPlainObject(valuesById.get(id));
91
+ const unscoredKeys = guardrail.isByo ? void 0 : UNSCORED_THRESHOLD_KEYS.get(guardrail.validator);
81
92
  const optionLabel = (parameterDefinition, option)=>{
82
93
  const optionLabels = parameterDefinition?.optionLabels;
83
94
  const label = void 0 !== optionLabels && Object.hasOwn(optionLabels, option) ? optionLabels[option] : void 0;
@@ -108,7 +119,7 @@ function resolveCentralizedGuardrailParameters(guardrail, { definition, labels }
108
119
  thresholds: keys.map((key)=>({
109
120
  key,
110
121
  label: optionLabel(keySourceList, key),
111
- value: Object.hasOwn(thresholds, key) ? thresholds[key] : void 0
122
+ value: Object.hasOwn(thresholds, key) && !unscoredKeys?.has(key) ? thresholds[key] : void 0
112
123
  }))
113
124
  };
114
125
  };
@@ -1 +1 @@
1
- {"version":3,"file":"centralized-types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Guardrails/centralized-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMtD,MAAM,MAAM,8BAA8B,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;AAGrF,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAGD,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAA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,MAAM,WAAW,8BAA8B;IAC7C,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,uCAAuC,EAAE,CAAC;CACxD;AAGD,MAAM,MAAM,gCAAgC,GACxC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC3D;IACE,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;IAEnB,UAAU,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,CAAC,CAAC;CAC9E,CAAC"}
@@ -327,6 +327,178 @@ function buildGuardrailCopy(_) {
327
327
  message: 'Strictness on a 0–6 scale. Lower values are stricter — the judge flags anything that hints at a violation. Higher values are more lenient — only clear, unambiguous violations are flagged.'
328
328
  })
329
329
  }
330
+ },
331
+ sentiment: {
332
+ displayName: _({
333
+ id: 'guardrails.definitions.sentiment.display-name',
334
+ message: 'Sentiment'
335
+ }),
336
+ description: _({
337
+ id: "guardrails.definitions.sentiment.description",
338
+ message: 'This validator is provided by Microsoft Azure AI Language and detects the sentiment of text in LLM calls, so a configured tone can be blocked.'
339
+ }),
340
+ paramLabels: {
341
+ sentiments: _({
342
+ id: 'guardrails.definitions.sentiment.param.sentiments.label',
343
+ message: 'Sentiments'
344
+ }),
345
+ sentimentThresholds: _({
346
+ id: 'guardrails.definitions.sentiment.param.sentimentThresholds.label',
347
+ message: 'Confidence thresholds'
348
+ }),
349
+ language: _({
350
+ id: 'guardrails.definitions.sentiment.param.language.label',
351
+ message: 'Languages'
352
+ })
353
+ },
354
+ paramTooltips: {
355
+ sentiments: _({
356
+ id: 'guardrails.definitions.sentiment.param.sentiments.tooltip',
357
+ message: 'The guardrail trips when the detected sentiment is one of these. Mixed has no confidence score, so selecting it trips on the label alone and its threshold is ignored.'
358
+ }),
359
+ sentimentThresholds: _({
360
+ id: 'guardrails.definitions.sentiment.param.sentimentThresholds.tooltip',
361
+ message: 'Minimum confidence, from 0 to 1, before a selected sentiment trips the guardrail. The threshold for Mixed has no effect.'
362
+ }),
363
+ language: _({
364
+ id: 'guardrails.definitions.sentiment.param.language.tooltip',
365
+ message: 'Which language the text is scored as. One language is used directly; listing several detects the language first, which doubles the calls made to Azure.'
366
+ })
367
+ },
368
+ optionLabels: {
369
+ sentiments: {
370
+ Positive: _({
371
+ id: 'guardrails.definitions.sentiment.option.sentiments.Positive',
372
+ message: 'Positive'
373
+ }),
374
+ Neutral: _({
375
+ id: 'guardrails.definitions.sentiment.option.sentiments.Neutral',
376
+ message: 'Neutral'
377
+ }),
378
+ Negative: _({
379
+ id: 'guardrails.definitions.sentiment.option.sentiments.Negative',
380
+ message: 'Negative'
381
+ }),
382
+ Mixed: _({
383
+ id: 'guardrails.definitions.sentiment.option.sentiments.Mixed',
384
+ message: 'Mixed'
385
+ })
386
+ },
387
+ language: {
388
+ en: _({
389
+ id: 'guardrails.definitions.sentiment.option.language.en',
390
+ message: 'English'
391
+ }),
392
+ es: _({
393
+ id: 'guardrails.definitions.sentiment.option.language.es',
394
+ message: 'Spanish'
395
+ }),
396
+ fr: _({
397
+ id: 'guardrails.definitions.sentiment.option.language.fr',
398
+ message: 'French'
399
+ }),
400
+ de: _({
401
+ id: 'guardrails.definitions.sentiment.option.language.de',
402
+ message: 'German'
403
+ }),
404
+ it: _({
405
+ id: 'guardrails.definitions.sentiment.option.language.it',
406
+ message: 'Italian'
407
+ }),
408
+ 'pt-BR': _({
409
+ id: 'guardrails.definitions.sentiment.option.language.pt-BR',
410
+ message: 'Portuguese (Brazil)'
411
+ }),
412
+ 'pt-PT': _({
413
+ id: 'guardrails.definitions.sentiment.option.language.pt-PT',
414
+ message: 'Portuguese (Portugal)'
415
+ }),
416
+ nl: _({
417
+ id: 'guardrails.definitions.sentiment.option.language.nl',
418
+ message: 'Dutch'
419
+ }),
420
+ sv: _({
421
+ id: 'guardrails.definitions.sentiment.option.language.sv',
422
+ message: 'Swedish'
423
+ }),
424
+ da: _({
425
+ id: 'guardrails.definitions.sentiment.option.language.da',
426
+ message: 'Danish'
427
+ }),
428
+ no: _({
429
+ id: 'guardrails.definitions.sentiment.option.language.no',
430
+ message: 'Norwegian'
431
+ }),
432
+ fi: _({
433
+ id: 'guardrails.definitions.sentiment.option.language.fi',
434
+ message: 'Finnish'
435
+ }),
436
+ pl: _({
437
+ id: 'guardrails.definitions.sentiment.option.language.pl',
438
+ message: 'Polish'
439
+ }),
440
+ cs: _({
441
+ id: 'guardrails.definitions.sentiment.option.language.cs',
442
+ message: 'Czech'
443
+ }),
444
+ ru: _({
445
+ id: 'guardrails.definitions.sentiment.option.language.ru',
446
+ message: 'Russian'
447
+ }),
448
+ uk: _({
449
+ id: 'guardrails.definitions.sentiment.option.language.uk',
450
+ message: 'Ukrainian'
451
+ }),
452
+ tr: _({
453
+ id: 'guardrails.definitions.sentiment.option.language.tr',
454
+ message: 'Turkish'
455
+ }),
456
+ el: _({
457
+ id: 'guardrails.definitions.sentiment.option.language.el',
458
+ message: 'Greek'
459
+ }),
460
+ he: _({
461
+ id: 'guardrails.definitions.sentiment.option.language.he',
462
+ message: 'Hebrew'
463
+ }),
464
+ ar: _({
465
+ id: 'guardrails.definitions.sentiment.option.language.ar',
466
+ message: 'Arabic'
467
+ }),
468
+ hi: _({
469
+ id: 'guardrails.definitions.sentiment.option.language.hi',
470
+ message: 'Hindi'
471
+ }),
472
+ ja: _({
473
+ id: 'guardrails.definitions.sentiment.option.language.ja',
474
+ message: 'Japanese'
475
+ }),
476
+ ko: _({
477
+ id: 'guardrails.definitions.sentiment.option.language.ko',
478
+ message: 'Korean'
479
+ }),
480
+ 'zh-hans': _({
481
+ id: 'guardrails.definitions.sentiment.option.language.zh-hans',
482
+ message: 'Chinese (Simplified)'
483
+ }),
484
+ 'zh-hant': _({
485
+ id: 'guardrails.definitions.sentiment.option.language.zh-hant',
486
+ message: 'Chinese (Traditional)'
487
+ }),
488
+ id: _({
489
+ id: 'guardrails.definitions.sentiment.option.language.id',
490
+ message: 'Indonesian'
491
+ }),
492
+ vi: _({
493
+ id: 'guardrails.definitions.sentiment.option.language.vi',
494
+ message: 'Vietnamese'
495
+ }),
496
+ th: _({
497
+ id: 'guardrails.definitions.sentiment.option.language.th',
498
+ message: 'Thai'
499
+ })
500
+ }
501
+ }
330
502
  }
331
503
  };
332
504
  }
@@ -336,7 +508,8 @@ const CURATED_GUARDRAIL_VALIDATORS = Object.freeze([
336
508
  'harmful_content',
337
509
  'user_prompt_attacks',
338
510
  'intellectual_property',
339
- 'llm_as_judge'
511
+ 'llm_as_judge',
512
+ 'sentiment'
340
513
  ]);
341
514
  const GUARDRAIL_COPY_EN = buildGuardrailCopy((descriptor)=>descriptor.message);
342
515
  function collectEnglishMessages() {
@@ -1 +1 @@
1
- {"version":3,"file":"definitions-copy.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Guardrails/definitions-copy.ts"],"names":[],"mappings":"AAmCA,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACvD;AAGD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AAoUxE,eAAO,MAAM,4BAA4B,EAAE,SAAS,MAAM,EAOxD,CAAC;AAMH,eAAO,MAAM,iBAAiB,EAAE,kBAE/B,CAAC;AAeF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvE,CAAC;AAOF,wBAAgB,0BAA0B,IAAI,kBAAkB,CAG/D"}
1
+ {"version":3,"file":"definitions-copy.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Guardrails/definitions-copy.ts"],"names":[],"mappings":"AAmCA,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CACvD;AAGD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AA0bxE,eAAO,MAAM,4BAA4B,EAAE,SAAS,MAAM,EAQxD,CAAC;AAMH,eAAO,MAAM,iBAAiB,EAAE,kBAE/B,CAAC;AAeF,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAEvE,CAAC;AAOF,wBAAgB,0BAA0B,IAAI,kBAAkB,CAG/D"}
@@ -296,6 +296,178 @@ function buildGuardrailCopy(_) {
296
296
  message: 'Strictness on a 0–6 scale. Lower values are stricter — the judge flags anything that hints at a violation. Higher values are more lenient — only clear, unambiguous violations are flagged.'
297
297
  })
298
298
  }
299
+ },
300
+ sentiment: {
301
+ displayName: _({
302
+ id: 'guardrails.definitions.sentiment.display-name',
303
+ message: 'Sentiment'
304
+ }),
305
+ description: _({
306
+ id: "guardrails.definitions.sentiment.description",
307
+ message: 'This validator is provided by Microsoft Azure AI Language and detects the sentiment of text in LLM calls, so a configured tone can be blocked.'
308
+ }),
309
+ paramLabels: {
310
+ sentiments: _({
311
+ id: 'guardrails.definitions.sentiment.param.sentiments.label',
312
+ message: 'Sentiments'
313
+ }),
314
+ sentimentThresholds: _({
315
+ id: 'guardrails.definitions.sentiment.param.sentimentThresholds.label',
316
+ message: 'Confidence thresholds'
317
+ }),
318
+ language: _({
319
+ id: 'guardrails.definitions.sentiment.param.language.label',
320
+ message: 'Languages'
321
+ })
322
+ },
323
+ paramTooltips: {
324
+ sentiments: _({
325
+ id: 'guardrails.definitions.sentiment.param.sentiments.tooltip',
326
+ message: 'The guardrail trips when the detected sentiment is one of these. Mixed has no confidence score, so selecting it trips on the label alone and its threshold is ignored.'
327
+ }),
328
+ sentimentThresholds: _({
329
+ id: 'guardrails.definitions.sentiment.param.sentimentThresholds.tooltip',
330
+ message: 'Minimum confidence, from 0 to 1, before a selected sentiment trips the guardrail. The threshold for Mixed has no effect.'
331
+ }),
332
+ language: _({
333
+ id: 'guardrails.definitions.sentiment.param.language.tooltip',
334
+ message: 'Which language the text is scored as. One language is used directly; listing several detects the language first, which doubles the calls made to Azure.'
335
+ })
336
+ },
337
+ optionLabels: {
338
+ sentiments: {
339
+ Positive: _({
340
+ id: 'guardrails.definitions.sentiment.option.sentiments.Positive',
341
+ message: 'Positive'
342
+ }),
343
+ Neutral: _({
344
+ id: 'guardrails.definitions.sentiment.option.sentiments.Neutral',
345
+ message: 'Neutral'
346
+ }),
347
+ Negative: _({
348
+ id: 'guardrails.definitions.sentiment.option.sentiments.Negative',
349
+ message: 'Negative'
350
+ }),
351
+ Mixed: _({
352
+ id: 'guardrails.definitions.sentiment.option.sentiments.Mixed',
353
+ message: 'Mixed'
354
+ })
355
+ },
356
+ language: {
357
+ en: _({
358
+ id: 'guardrails.definitions.sentiment.option.language.en',
359
+ message: 'English'
360
+ }),
361
+ es: _({
362
+ id: 'guardrails.definitions.sentiment.option.language.es',
363
+ message: 'Spanish'
364
+ }),
365
+ fr: _({
366
+ id: 'guardrails.definitions.sentiment.option.language.fr',
367
+ message: 'French'
368
+ }),
369
+ de: _({
370
+ id: 'guardrails.definitions.sentiment.option.language.de',
371
+ message: 'German'
372
+ }),
373
+ it: _({
374
+ id: 'guardrails.definitions.sentiment.option.language.it',
375
+ message: 'Italian'
376
+ }),
377
+ 'pt-BR': _({
378
+ id: 'guardrails.definitions.sentiment.option.language.pt-BR',
379
+ message: 'Portuguese (Brazil)'
380
+ }),
381
+ 'pt-PT': _({
382
+ id: 'guardrails.definitions.sentiment.option.language.pt-PT',
383
+ message: 'Portuguese (Portugal)'
384
+ }),
385
+ nl: _({
386
+ id: 'guardrails.definitions.sentiment.option.language.nl',
387
+ message: 'Dutch'
388
+ }),
389
+ sv: _({
390
+ id: 'guardrails.definitions.sentiment.option.language.sv',
391
+ message: 'Swedish'
392
+ }),
393
+ da: _({
394
+ id: 'guardrails.definitions.sentiment.option.language.da',
395
+ message: 'Danish'
396
+ }),
397
+ no: _({
398
+ id: 'guardrails.definitions.sentiment.option.language.no',
399
+ message: 'Norwegian'
400
+ }),
401
+ fi: _({
402
+ id: 'guardrails.definitions.sentiment.option.language.fi',
403
+ message: 'Finnish'
404
+ }),
405
+ pl: _({
406
+ id: 'guardrails.definitions.sentiment.option.language.pl',
407
+ message: 'Polish'
408
+ }),
409
+ cs: _({
410
+ id: 'guardrails.definitions.sentiment.option.language.cs',
411
+ message: 'Czech'
412
+ }),
413
+ ru: _({
414
+ id: 'guardrails.definitions.sentiment.option.language.ru',
415
+ message: 'Russian'
416
+ }),
417
+ uk: _({
418
+ id: 'guardrails.definitions.sentiment.option.language.uk',
419
+ message: 'Ukrainian'
420
+ }),
421
+ tr: _({
422
+ id: 'guardrails.definitions.sentiment.option.language.tr',
423
+ message: 'Turkish'
424
+ }),
425
+ el: _({
426
+ id: 'guardrails.definitions.sentiment.option.language.el',
427
+ message: 'Greek'
428
+ }),
429
+ he: _({
430
+ id: 'guardrails.definitions.sentiment.option.language.he',
431
+ message: 'Hebrew'
432
+ }),
433
+ ar: _({
434
+ id: 'guardrails.definitions.sentiment.option.language.ar',
435
+ message: 'Arabic'
436
+ }),
437
+ hi: _({
438
+ id: 'guardrails.definitions.sentiment.option.language.hi',
439
+ message: 'Hindi'
440
+ }),
441
+ ja: _({
442
+ id: 'guardrails.definitions.sentiment.option.language.ja',
443
+ message: 'Japanese'
444
+ }),
445
+ ko: _({
446
+ id: 'guardrails.definitions.sentiment.option.language.ko',
447
+ message: 'Korean'
448
+ }),
449
+ 'zh-hans': _({
450
+ id: 'guardrails.definitions.sentiment.option.language.zh-hans',
451
+ message: 'Chinese (Simplified)'
452
+ }),
453
+ 'zh-hant': _({
454
+ id: 'guardrails.definitions.sentiment.option.language.zh-hant',
455
+ message: 'Chinese (Traditional)'
456
+ }),
457
+ id: _({
458
+ id: 'guardrails.definitions.sentiment.option.language.id',
459
+ message: 'Indonesian'
460
+ }),
461
+ vi: _({
462
+ id: 'guardrails.definitions.sentiment.option.language.vi',
463
+ message: 'Vietnamese'
464
+ }),
465
+ th: _({
466
+ id: 'guardrails.definitions.sentiment.option.language.th',
467
+ message: 'Thai'
468
+ })
469
+ }
470
+ }
299
471
  }
300
472
  };
301
473
  }
@@ -305,7 +477,8 @@ const CURATED_GUARDRAIL_VALIDATORS = Object.freeze([
305
477
  'harmful_content',
306
478
  'user_prompt_attacks',
307
479
  'intellectual_property',
308
- 'llm_as_judge'
480
+ 'llm_as_judge',
481
+ 'sentiment'
309
482
  ]);
310
483
  const GUARDRAIL_COPY_EN = buildGuardrailCopy((descriptor)=>descriptor.message);
311
484
  function collectEnglishMessages() {
@@ -1,4 +1,4 @@
1
- export type { BuildJsonTreeOptions, ContainerPath, CopyEvent, DeriveTypeIcon, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewStrings, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeBadgeReference, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, ResolvedJsonTreeViewStrings, } from '@uipath/apollo-wind';
1
+ export type { BuildJsonTreeOptions, ContainerPath, CopyEvent, DeriveTypeIcon, FlatJsonTreeRow, FlattenOptions, JsonCodeEditorRenderProps, JsonContainer, JsonContainerEditorProps, JsonLeafValueEditorProps, JsonMultilineLeafEditorProps, JsonObject, JsonSchema, JsonSchemaTypeName, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeNodeType, JsonTreeRowWrapper, JsonTreeRowWrapperProps, JsonTreeToolbarProps, JsonTreeViewStrings, JsonTreeViewProps, JsonTreeViewProviderProps, JsonTypeBadgeProps, JsonValue, NodeAction, NodeActionContext, NodeActionsResolver, NodeBadgeReference, NodeDecoration, NodeDecorationBadge, NodeDecorationChip, NodeDecorationTone, NodeDisplayTexts, PathForCopy, PathSegment, RenderCodeEditor, RenderValueCell, RenderValueContext, ResolvedJsonTreeViewStrings, } from '@uipath/apollo-wind';
2
2
  export { appendPathSegment, buildJsonTree, collectContainerPaths, copyTextToClipboard, DEFAULT_JSON_TREE_VIEW_STRINGS, flattenJsonTree, formatLeafValue, getValueAtPath, inferValueType, isArrayItemTemplateRoot, isJsonObject, removeValueAtPath, schemaDisplayType, setValueAtPath, } from '@uipath/apollo-wind';
3
3
  export * from './JsonTree';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/JsonTree/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,EACd,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,EAC9B,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/JsonTree/index.ts"],"names":[],"mappings":"AAEA,YAAY,EACV,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,EACd,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,aAAa,EACb,wBAAwB,EACxB,wBAAwB,EACxB,4BAA4B,EAC5B,UAAU,EACV,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,yBAAyB,EACzB,kBAAkB,EAClB,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,8BAA8B,EAC9B,eAAe,EACf,eAAe,EACf,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,YAAY,EACZ,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,cAAc,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ReactNode } from 'react';
2
- import type { CopyEvent, DeriveTypeIcon, JsonContainer, JsonSchema, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeRowWrapper, NodeActionsResolver, NodeDecoration, RenderCodeEditor, RenderValueCell } from '../JsonTree';
2
+ import type { CopyEvent, DeriveTypeIcon, JsonContainer, JsonSchema, JsonTreeChange, JsonTreeFilterOption, JsonTreeNode, JsonTreeRowWrapper, NodeActionsResolver, NodeDecoration, PathForCopy, RenderCodeEditor, RenderValueCell } from '../JsonTree';
3
3
  export interface NodeIOViewTab {
4
4
  id: string;
5
5
  label: string;
@@ -30,7 +30,7 @@ export interface NodeIOViewProps {
30
30
  nodeActions?: NodeActionsResolver;
31
31
  maxInlineActions?: number;
32
32
  renderCodeEditor?: RenderCodeEditor;
33
- pathForCopy?: (path: string) => string;
33
+ pathForCopy?: PathForCopy;
34
34
  onCopy?: (event: CopyEvent) => void;
35
35
  virtualized?: boolean;
36
36
  defaultCollapsedDepth?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"NodeIOView.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/NodeIOView/NodeIOView.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,UAAU,EACV,cAAc,EACd,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,cAAc,EACd,gBAAgB,EAChB,eAAe,EAChB,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,aAAa;IAE5B,EAAE,EAAE,MAAM,CAAC;IAEX,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAE9B,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,KAAK,IAAI,CAAC;IAOtE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAKrB,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAE5B,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAKtC,aAAa,CAAC,EAAE,SAAS,CAAC;IAM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