@uipath/apollo-react 6.48.0 → 6.49.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.
Files changed (51) hide show
  1. package/dist/canvas/components/Guardrails/__fixtures__/catalog-coverage.cjs +83 -0
  2. package/dist/canvas/components/Guardrails/__fixtures__/catalog-coverage.d.ts +8 -0
  3. package/dist/canvas/components/Guardrails/__fixtures__/catalog-coverage.d.ts.map +1 -0
  4. package/dist/canvas/components/Guardrails/__fixtures__/catalog-coverage.js +37 -0
  5. package/dist/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.cjs +344 -0
  6. package/dist/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.d.ts +13 -0
  7. package/dist/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.d.ts.map +1 -0
  8. package/dist/canvas/components/Guardrails/__fixtures__/definitions-wire.fixtures.js +280 -0
  9. package/dist/canvas/components/Guardrails/__fixtures__/host-copy-baselines.cjs +221 -0
  10. package/dist/canvas/components/Guardrails/__fixtures__/host-copy-baselines.d.ts +4 -0
  11. package/dist/canvas/components/Guardrails/__fixtures__/host-copy-baselines.d.ts.map +1 -0
  12. package/dist/canvas/components/Guardrails/__fixtures__/host-copy-baselines.js +184 -0
  13. package/dist/canvas/components/Guardrails/builder-types.d.ts.map +1 -1
  14. package/dist/canvas/components/Guardrails/components/guardrail-chip.cjs +5 -1
  15. package/dist/canvas/components/Guardrails/components/guardrail-chip.d.ts +1 -0
  16. package/dist/canvas/components/Guardrails/components/guardrail-chip.d.ts.map +1 -1
  17. package/dist/canvas/components/Guardrails/components/guardrail-chip.js +3 -2
  18. package/dist/canvas/components/Guardrails/components/guardrail-status-chip.cjs +60 -0
  19. package/dist/canvas/components/Guardrails/components/guardrail-status-chip.d.ts +7 -0
  20. package/dist/canvas/components/Guardrails/components/guardrail-status-chip.d.ts.map +1 -0
  21. package/dist/canvas/components/Guardrails/components/guardrail-status-chip.js +26 -0
  22. package/dist/canvas/components/Guardrails/definitions-copy.cjs +369 -0
  23. package/dist/canvas/components/Guardrails/definitions-copy.d.ts +14 -0
  24. package/dist/canvas/components/Guardrails/definitions-copy.d.ts.map +1 -0
  25. package/dist/canvas/components/Guardrails/definitions-copy.js +326 -0
  26. package/dist/canvas/components/Guardrails/definitions-enrich.cjs +173 -0
  27. package/dist/canvas/components/Guardrails/definitions-enrich.d.ts +30 -0
  28. package/dist/canvas/components/Guardrails/definitions-enrich.d.ts.map +1 -0
  29. package/dist/canvas/components/Guardrails/definitions-enrich.js +130 -0
  30. package/dist/canvas/components/Guardrails/definitions-parse.cjs +199 -0
  31. package/dist/canvas/components/Guardrails/definitions-parse.d.ts +13 -0
  32. package/dist/canvas/components/Guardrails/definitions-parse.d.ts.map +1 -0
  33. package/dist/canvas/components/Guardrails/definitions-parse.js +165 -0
  34. package/dist/canvas/components/Guardrails/definitions-wire.cjs +18 -0
  35. package/dist/canvas/components/Guardrails/definitions-wire.d.ts +59 -0
  36. package/dist/canvas/components/Guardrails/definitions-wire.d.ts.map +1 -0
  37. package/dist/canvas/components/Guardrails/definitions-wire.js +0 -0
  38. package/dist/canvas/components/Guardrails/i18n.d.ts.map +1 -1
  39. package/dist/canvas/components/Guardrails/index.cjs +49 -8
  40. package/dist/canvas/components/Guardrails/index.d.ts +11 -0
  41. package/dist/canvas/components/Guardrails/index.d.ts.map +1 -1
  42. package/dist/canvas/components/Guardrails/index.js +6 -1
  43. package/dist/canvas/components/Guardrails/types.d.ts.map +1 -1
  44. package/dist/canvas/components/Guardrails/use-guardrail-definitions.cjs +158 -0
  45. package/dist/canvas/components/Guardrails/use-guardrail-definitions.d.ts +30 -0
  46. package/dist/canvas/components/Guardrails/use-guardrail-definitions.d.ts.map +1 -0
  47. package/dist/canvas/components/Guardrails/use-guardrail-definitions.js +121 -0
  48. package/dist/canvas/locales/en.cjs +1 -1
  49. package/dist/canvas/locales/en.d.ts.map +1 -1
  50. package/dist/canvas/locales/en.js +1 -1
  51. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"builder-types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/Guardrails/builder-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,4BAA4B,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAQzF,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAGlE,eAAO,MAAM,sBAAsB;;;;;;;CAOzB,CAAC;AACX,MAAM,MAAM,2BAA2B,GACrC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAMvE,MAAM,MAAM,0BAA0B,GAClC;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,GAC/C;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACnD;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1B;IAAE,IAAI,EAAE,CAAC,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;A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,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACtE,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAGD,MAAM,WAAW,yBAAyB;IAExC,GAAG,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,CAAC,GAAG,EAAE,oBAAoB,GAAG,IAAI,KAAK,IAAI,CAAC;IAErD,KAAK,EAAE,MAAM,CAAC;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAMD,MAAM,WAAW,+BAA+B;IAE9C,IAAI,EAAE,OAAO,GAAG,WAAW,CAAC;IAE5B,SAAS,EAAE,0BAA0B,CAAC;IAEtC,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,EAAE,OAAO,CAAC;IAEjB,KAAK,CAAC,EAAE,MAAM,CAAC;IAMf,QAAQ,EAAE,CAAC,SAAS,EAAE,0BAA0B,KAAK,IAAI,CAAC;CAC3D;AAED,MAAM,WAAW,qBAAqB;IAEpC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,+BAA+B,KAAK,KAAK,CAAC,SAAS,CAAC;IAMlF,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,+BAA+B,KAAK,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IAE9F,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,yBAAyB,KAAK,KAAK,CAAC,SAAS,CAAC;IAEtE,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC"}
@@ -25,13 +25,15 @@ var __webpack_exports__ = {};
25
25
  __webpack_require__.r(__webpack_exports__);
26
26
  __webpack_require__.d(__webpack_exports__, {
27
27
  guardrailChipVariants: ()=>guardrailChipVariants,
28
+ GUARDRAIL_CHIP_GEOMETRY: ()=>GUARDRAIL_CHIP_GEOMETRY,
28
29
  GuardrailChip: ()=>GuardrailChip
29
30
  });
30
31
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
32
  const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
32
33
  const external_class_variance_authority_namespaceObject = require("class-variance-authority");
33
34
  const external_react_namespaceObject = require("react");
34
- const guardrailChipVariants = (0, external_class_variance_authority_namespaceObject.cva)('h-6 min-w-0 gap-1 rounded-full border px-2.5 text-xs font-medium [&_svg]:size-3', {
35
+ const GUARDRAIL_CHIP_GEOMETRY = 'min-w-0 gap-1 rounded-full border px-2.5 text-xs font-medium [&_svg]:size-3';
36
+ const guardrailChipVariants = (0, external_class_variance_authority_namespaceObject.cva)(`h-6 ${GUARDRAIL_CHIP_GEOMETRY}`, {
35
37
  variants: {
36
38
  appearance: {
37
39
  default: 'bg-background text-foreground border-border hover:bg-muted hover:text-foreground data-[state=on]:bg-brand-subtle data-[state=on]:text-foreground-accent data-[state=on]:border-brand-lighter future:text-foreground future:hover:text-foreground future:data-[state=on]:text-foreground-accent',
@@ -52,9 +54,11 @@ const GuardrailChip = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({
52
54
  ...props
53
55
  }));
54
56
  GuardrailChip.displayName = 'GuardrailChip';
57
+ exports.GUARDRAIL_CHIP_GEOMETRY = __webpack_exports__.GUARDRAIL_CHIP_GEOMETRY;
55
58
  exports.GuardrailChip = __webpack_exports__.GuardrailChip;
56
59
  exports.guardrailChipVariants = __webpack_exports__.guardrailChipVariants;
57
60
  for(var __rspack_i in __webpack_exports__)if (-1 === [
61
+ "GUARDRAIL_CHIP_GEOMETRY",
58
62
  "GuardrailChip",
59
63
  "guardrailChipVariants"
60
64
  ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
@@ -1,6 +1,7 @@
1
1
  import { Toggle } from '@uipath/apollo-wind';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
+ export declare const GUARDRAIL_CHIP_GEOMETRY = "min-w-0 gap-1 rounded-full border px-2.5 text-xs font-medium [&_svg]:size-3";
4
5
  declare const guardrailChipVariants: (props?: ({
5
6
  appearance?: "default" | "addable" | null | undefined;
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"guardrail-chip.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/components/guardrail-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,QAAA,MAAM,qBAAqB;;8EAgB1B,CAAC;AAEF,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,EACnD,YAAY,CAAC,OAAO,qBAAqB,CAAC;CAAG;AAGjD,QAAA,MAAM,aAAa,8FASlB,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"guardrail-chip.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/components/guardrail-chip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,eAAO,MAAM,uBAAuB,gFAC2C,CAAC;AAOhF,QAAA,MAAM,qBAAqB;;8EAgB1B,CAAC;AAEF,MAAM,WAAW,kBACf,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,MAAM,CAAC,EACnD,YAAY,CAAC,OAAO,qBAAqB,CAAC;CAAG;AAGjD,QAAA,MAAM,aAAa,8FASlB,CAAC;AAGF,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,CAAC"}
@@ -2,7 +2,8 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { Toggle, cn } from "@uipath/apollo-wind";
3
3
  import { cva } from "class-variance-authority";
4
4
  import { forwardRef } from "react";
5
- const guardrailChipVariants = cva('h-6 min-w-0 gap-1 rounded-full border px-2.5 text-xs font-medium [&_svg]:size-3', {
5
+ const GUARDRAIL_CHIP_GEOMETRY = 'min-w-0 gap-1 rounded-full border px-2.5 text-xs font-medium [&_svg]:size-3';
6
+ const guardrailChipVariants = cva(`h-6 ${GUARDRAIL_CHIP_GEOMETRY}`, {
6
7
  variants: {
7
8
  appearance: {
8
9
  default: 'bg-background text-foreground border-border hover:bg-muted hover:text-foreground data-[state=on]:bg-brand-subtle data-[state=on]:text-foreground-accent data-[state=on]:border-brand-lighter future:text-foreground future:hover:text-foreground future:data-[state=on]:text-foreground-accent',
@@ -23,4 +24,4 @@ const GuardrailChip = /*#__PURE__*/ forwardRef(({ appearance, className, ...prop
23
24
  ...props
24
25
  }));
25
26
  GuardrailChip.displayName = 'GuardrailChip';
26
- export { GuardrailChip, guardrailChipVariants };
27
+ export { GUARDRAIL_CHIP_GEOMETRY, GuardrailChip, guardrailChipVariants };
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ GuardrailStatusChip: ()=>GuardrailStatusChip
28
+ });
29
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
+ const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
31
+ const external_react_namespaceObject = require("react");
32
+ const external_guardrail_chip_cjs_namespaceObject = require("./guardrail-chip.cjs");
33
+ const TONE_VARIANT = {
34
+ neutral: 'secondary',
35
+ info: 'info',
36
+ success: 'success',
37
+ warning: 'warning',
38
+ error: 'error'
39
+ };
40
+ const GuardrailStatusChip = /*#__PURE__*/ external_react_namespaceObject.forwardRef(({ tone = 'neutral', className, children, title, ...props }, ref)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
41
+ ref: ref,
42
+ "data-slot": "guardrail-status-chip",
43
+ title: title ?? ('string' == typeof children ? children : void 0),
44
+ className: (0, apollo_wind_namespaceObject.cn)((0, apollo_wind_namespaceObject.badgeVariants)({
45
+ variant: TONE_VARIANT[tone]
46
+ }), 'h-5', external_guardrail_chip_cjs_namespaceObject.GUARDRAIL_CHIP_GEOMETRY, className),
47
+ ...props,
48
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
49
+ className: "min-w-0 truncate",
50
+ children: children
51
+ })
52
+ }));
53
+ GuardrailStatusChip.displayName = 'GuardrailStatusChip';
54
+ exports.GuardrailStatusChip = __webpack_exports__.GuardrailStatusChip;
55
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
56
+ "GuardrailStatusChip"
57
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
58
+ Object.defineProperty(exports, '__esModule', {
59
+ value: true
60
+ });
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ export interface GuardrailStatusChipProps extends React.ComponentPropsWithoutRef<'span'> {
3
+ tone?: 'neutral' | 'info' | 'success' | 'warning' | 'error';
4
+ }
5
+ declare const GuardrailStatusChip: React.ForwardRefExoticComponent<GuardrailStatusChipProps & React.RefAttributes<HTMLSpanElement>>;
6
+ export { GuardrailStatusChip };
7
+ //# sourceMappingURL=guardrail-status-chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardrail-status-chip.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Guardrails/components/guardrail-status-chip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,wBAAyB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC;IAKtF,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;CAC7D;AAoBD,QAAA,MAAM,mBAAmB,kGAsBxB,CAAC;AAGF,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { badgeVariants, cn } from "@uipath/apollo-wind";
3
+ import { forwardRef } from "react";
4
+ import { GUARDRAIL_CHIP_GEOMETRY } from "./guardrail-chip.js";
5
+ const TONE_VARIANT = {
6
+ neutral: 'secondary',
7
+ info: 'info',
8
+ success: 'success',
9
+ warning: 'warning',
10
+ error: 'error'
11
+ };
12
+ const GuardrailStatusChip = /*#__PURE__*/ forwardRef(({ tone = 'neutral', className, children, title, ...props }, ref)=>/*#__PURE__*/ jsx("span", {
13
+ ref: ref,
14
+ "data-slot": "guardrail-status-chip",
15
+ title: title ?? ('string' == typeof children ? children : void 0),
16
+ className: cn(badgeVariants({
17
+ variant: TONE_VARIANT[tone]
18
+ }), 'h-5', GUARDRAIL_CHIP_GEOMETRY, className),
19
+ ...props,
20
+ children: /*#__PURE__*/ jsx("span", {
21
+ className: "min-w-0 truncate",
22
+ children: children
23
+ })
24
+ }));
25
+ GuardrailStatusChip.displayName = 'GuardrailStatusChip';
26
+ export { GuardrailStatusChip };
@@ -0,0 +1,369 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, definition)=>{
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
13
+ })();
14
+ (()=>{
15
+ __webpack_require__.r = (exports1)=>{
16
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
17
+ value: 'Module'
18
+ });
19
+ Object.defineProperty(exports1, '__esModule', {
20
+ value: true
21
+ });
22
+ };
23
+ })();
24
+ var __webpack_exports__ = {};
25
+ __webpack_require__.r(__webpack_exports__);
26
+ __webpack_require__.d(__webpack_exports__, {
27
+ GUARDRAIL_COPY_EN: ()=>GUARDRAIL_COPY_EN,
28
+ useGuardrailDefinitionCopy: ()=>useGuardrailDefinitionCopy,
29
+ GUARDRAIL_COPY_EN_MESSAGES: ()=>GUARDRAIL_COPY_EN_MESSAGES,
30
+ CURATED_GUARDRAIL_VALIDATORS: ()=>CURATED_GUARDRAIL_VALIDATORS
31
+ });
32
+ const external_react_namespaceObject = require("react");
33
+ const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
34
+ function buildGuardrailCopy(_) {
35
+ return {
36
+ pii_detection: {
37
+ displayName: _({
38
+ id: 'guardrails.definitions.pii_detection.display-name',
39
+ message: 'PII detection'
40
+ }),
41
+ description: _({
42
+ id: "guardrails.definitions.pii_detection.description",
43
+ message: 'Detect personally identifiable information using Azure Cognitive Services.'
44
+ }),
45
+ paramLabels: {
46
+ entities: _({
47
+ id: 'guardrails.definitions.pii_detection.param.entities.label',
48
+ message: 'Entities to detect'
49
+ }),
50
+ entityThresholds: _({
51
+ id: 'guardrails.definitions.pii_detection.param.entityThresholds.label',
52
+ message: 'Detection thresholds'
53
+ })
54
+ },
55
+ paramTooltips: {
56
+ entityThresholds: _({
57
+ id: 'guardrails.definitions.pii_detection.param.entityThresholds.tooltip',
58
+ message: 'Value between 0 and 1. The sensitivity level for PII detection. Higher thresholds detect more potential PII but may result in more false positives.'
59
+ })
60
+ },
61
+ optionLabels: {
62
+ entities: {
63
+ Person: _({
64
+ id: 'guardrails.definitions.pii_detection.option.entities.Person',
65
+ message: 'Person'
66
+ }),
67
+ Address: _({
68
+ id: 'guardrails.definitions.pii_detection.option.entities.Address',
69
+ message: 'Address'
70
+ }),
71
+ Date: _({
72
+ id: 'guardrails.definitions.pii_detection.option.entities.Date',
73
+ message: 'Date'
74
+ }),
75
+ PhoneNumber: _({
76
+ id: 'guardrails.definitions.pii_detection.option.entities.PhoneNumber',
77
+ message: 'Phone Number'
78
+ }),
79
+ EugpsCoordinates: _({
80
+ id: 'guardrails.definitions.pii_detection.option.entities.EugpsCoordinates',
81
+ message: 'EU GPS Coordinates'
82
+ }),
83
+ Email: _({
84
+ id: 'guardrails.definitions.pii_detection.option.entities.Email',
85
+ message: 'Email'
86
+ }),
87
+ CreditCardNumber: _({
88
+ id: 'guardrails.definitions.pii_detection.option.entities.CreditCardNumber',
89
+ message: 'Credit Card Number'
90
+ }),
91
+ InternationalBankingAccountNumber: _({
92
+ id: 'guardrails.definitions.pii_detection.option.entities.InternationalBankingAccountNumber',
93
+ message: 'International Banking Account Number (IBAN)'
94
+ }),
95
+ SwiftCode: _({
96
+ id: 'guardrails.definitions.pii_detection.option.entities.SwiftCode',
97
+ message: 'SWIFT Code'
98
+ }),
99
+ ABARoutingNumber: _({
100
+ id: 'guardrails.definitions.pii_detection.option.entities.ABARoutingNumber',
101
+ message: 'ABA Routing Number'
102
+ }),
103
+ USDriversLicenseNumber: _({
104
+ id: 'guardrails.definitions.pii_detection.option.entities.USDriversLicenseNumber',
105
+ message: "US Driver's License Number"
106
+ }),
107
+ UKDriversLicenseNumber: _({
108
+ id: 'guardrails.definitions.pii_detection.option.entities.UKDriversLicenseNumber',
109
+ message: "UK Driver's License Number"
110
+ }),
111
+ USIndividualTaxpayerIdentification: _({
112
+ id: 'guardrails.definitions.pii_detection.option.entities.USIndividualTaxpayerIdentification',
113
+ message: 'US Individual Taxpayer Identification Number (ITIN)'
114
+ }),
115
+ UKUniqueTaxpayerNumber: _({
116
+ id: 'guardrails.definitions.pii_detection.option.entities.UKUniqueTaxpayerNumber',
117
+ message: 'UK Unique Taxpayer Number (UTR)'
118
+ }),
119
+ USBankAccountNumber: _({
120
+ id: 'guardrails.definitions.pii_detection.option.entities.USBankAccountNumber',
121
+ message: 'US Bank Account Number'
122
+ }),
123
+ USSocialSecurityNumber: _({
124
+ id: 'guardrails.definitions.pii_detection.option.entities.USSocialSecurityNumber',
125
+ message: 'US Social Security Number (SSN)'
126
+ }),
127
+ UsukPassportNumber: _({
128
+ id: 'guardrails.definitions.pii_detection.option.entities.UsukPassportNumber',
129
+ message: 'US/UK Passport Number'
130
+ }),
131
+ NOIdentityNumber: _({
132
+ id: 'guardrails.definitions.pii_detection.option.entities.NOIdentityNumber',
133
+ message: 'Norway Identity Number'
134
+ }),
135
+ FINationalID: _({
136
+ id: 'guardrails.definitions.pii_detection.option.entities.FINationalID',
137
+ message: 'Finland National ID'
138
+ }),
139
+ FIPassportNumber: _({
140
+ id: 'guardrails.definitions.pii_detection.option.entities.FIPassportNumber',
141
+ message: 'Finland Passport Number'
142
+ }),
143
+ SENationalID: _({
144
+ id: 'guardrails.definitions.pii_detection.option.entities.SENationalID',
145
+ message: 'Sweden National ID'
146
+ }),
147
+ DKPersonalIdentificationNumber: _({
148
+ id: 'guardrails.definitions.pii_detection.option.entities.DKPersonalIdentificationNumber',
149
+ message: 'Danish Personal Identification Number'
150
+ }),
151
+ NLCitizensServiceNumber: _({
152
+ id: 'guardrails.definitions.pii_detection.option.entities.NLCitizensServiceNumber',
153
+ message: 'Netherlands Citizens Service Number'
154
+ }),
155
+ URL: _({
156
+ id: 'guardrails.definitions.pii_detection.option.entities.URL',
157
+ message: 'URL'
158
+ }),
159
+ IPAddress: _({
160
+ id: 'guardrails.definitions.pii_detection.option.entities.IPAddress',
161
+ message: 'IP Address'
162
+ })
163
+ }
164
+ }
165
+ },
166
+ prompt_injection: {
167
+ displayName: _({
168
+ id: 'guardrails.definitions.prompt_injection.display-name',
169
+ message: 'Prompt injection'
170
+ }),
171
+ description: _({
172
+ id: "guardrails.definitions.prompt_injection.description",
173
+ message: 'This validator is provided by Noma Security and is built to detect malicious attack attempts (e.g. prompt injection, jailbreak) in LLM calls.'
174
+ }),
175
+ paramLabels: {
176
+ threshold: _({
177
+ id: 'guardrails.definitions.prompt_injection.param.threshold.label',
178
+ message: 'Detection threshold'
179
+ })
180
+ },
181
+ paramTooltips: {
182
+ threshold: _({
183
+ id: 'guardrails.definitions.prompt_injection.param.threshold.tooltip',
184
+ message: 'Value between 0 and 1. The sensitivity level for Prompt Injection detection. Higher thresholds detect more potential Prompt Injection but may result in more false positives.'
185
+ })
186
+ }
187
+ },
188
+ harmful_content: {
189
+ displayName: _({
190
+ id: 'guardrails.definitions.harmful_content.display-name',
191
+ message: 'Harmful content'
192
+ }),
193
+ description: _({
194
+ id: "guardrails.definitions.harmful_content.description",
195
+ message: 'Detect harmful content (e.g. hate, violence) using Azure AI Content Safety.'
196
+ }),
197
+ paramLabels: {
198
+ harmfulContentEntities: _({
199
+ id: 'guardrails.definitions.harmful_content.param.harmfulContentEntities.label',
200
+ message: 'Content categories'
201
+ }),
202
+ harmfulContentEntityThresholds: _({
203
+ id: 'guardrails.definitions.harmful_content.param.harmfulContentEntityThresholds.label',
204
+ message: 'Severity thresholds'
205
+ })
206
+ },
207
+ paramTooltips: {
208
+ harmfulContentEntityThresholds: _({
209
+ id: 'guardrails.definitions.harmful_content.param.harmfulContentEntityThresholds.tooltip',
210
+ message: 'Integer value between 0 and 6 (step 2). The severity threshold for harmful content detection. Higher values require more severe content before triggering.'
211
+ })
212
+ },
213
+ optionLabels: {
214
+ harmfulContentEntities: {
215
+ Hate: _({
216
+ id: 'guardrails.definitions.harmful_content.option.harmfulContentEntities.Hate',
217
+ message: 'Hate'
218
+ }),
219
+ SelfHarm: _({
220
+ id: 'guardrails.definitions.harmful_content.option.harmfulContentEntities.SelfHarm',
221
+ message: 'Self-harm'
222
+ }),
223
+ Sexual: _({
224
+ id: 'guardrails.definitions.harmful_content.option.harmfulContentEntities.Sexual',
225
+ message: 'Sexual'
226
+ }),
227
+ Violence: _({
228
+ id: 'guardrails.definitions.harmful_content.option.harmfulContentEntities.Violence',
229
+ message: 'Violence'
230
+ })
231
+ }
232
+ }
233
+ },
234
+ user_prompt_attacks: {
235
+ displayName: _({
236
+ id: 'guardrails.definitions.user_prompt_attacks.display-name',
237
+ message: 'User prompt attacks'
238
+ }),
239
+ description: _({
240
+ id: "guardrails.definitions.user_prompt_attacks.description",
241
+ message: 'Detect user prompt attacks that attempt to bypass system instructions using Azure AI Content Safety.'
242
+ }),
243
+ paramLabels: {}
244
+ },
245
+ intellectual_property: {
246
+ displayName: _({
247
+ id: 'guardrails.definitions.intellectual_property.display-name',
248
+ message: 'Intellectual property'
249
+ }),
250
+ description: _({
251
+ id: "guardrails.definitions.intellectual_property.description",
252
+ message: 'Detect potential intellectual property violations in text and code using Azure AI Content Safety.'
253
+ }),
254
+ paramLabels: {
255
+ ipEntities: _({
256
+ id: 'guardrails.definitions.intellectual_property.param.ipEntities.label',
257
+ message: 'Content types'
258
+ })
259
+ },
260
+ optionLabels: {
261
+ ipEntities: {
262
+ Text: _({
263
+ id: 'guardrails.definitions.intellectual_property.option.ipEntities.Text',
264
+ message: 'Text'
265
+ }),
266
+ Code: _({
267
+ id: 'guardrails.definitions.intellectual_property.option.ipEntities.Code',
268
+ message: 'Code'
269
+ })
270
+ }
271
+ }
272
+ },
273
+ llm_as_judge: {
274
+ displayName: _({
275
+ id: 'guardrails.definitions.llm_as_judge.display-name',
276
+ message: 'LLM as Judge'
277
+ }),
278
+ description: _({
279
+ id: "guardrails.definitions.llm_as_judge.description",
280
+ message: 'Detect violations of a rule you define, using an LLM as the judge.'
281
+ }),
282
+ usageNote: _({
283
+ id: 'guardrails.definitions.llm_as_judge.usage-note',
284
+ message: "Judge model calls consume Agent units the same way the agent's own LLM calls do. Apply selectively to keep cost predictable, and choose the judge model with cost in mind — rates vary by model."
285
+ }),
286
+ paramLabels: {
287
+ guardrailText: _({
288
+ id: 'guardrails.definitions.llm_as_judge.param.guardrailText.label',
289
+ message: 'Rule prompt'
290
+ }),
291
+ model: _({
292
+ id: 'guardrails.definitions.llm_as_judge.param.model.label',
293
+ message: 'Judge model'
294
+ }),
295
+ positiveExamples: _({
296
+ id: 'guardrails.definitions.llm_as_judge.param.positiveExamples.label',
297
+ message: 'Positive examples'
298
+ }),
299
+ negativeExamples: _({
300
+ id: 'guardrails.definitions.llm_as_judge.param.negativeExamples.label',
301
+ message: 'Negative examples'
302
+ }),
303
+ threshold: _({
304
+ id: 'guardrails.definitions.llm_as_judge.param.threshold.label',
305
+ message: 'Strictness'
306
+ })
307
+ },
308
+ paramTooltips: {
309
+ guardrailText: _({
310
+ id: 'guardrails.definitions.llm_as_judge.param.guardrailText.tooltip',
311
+ message: 'Describe the rule the judge will enforce. Be specific about what should pass and what should fail.'
312
+ }),
313
+ model: _({
314
+ id: 'guardrails.definitions.llm_as_judge.param.model.tooltip',
315
+ message: 'The model used to evaluate the policy against each payload.'
316
+ }),
317
+ positiveExamples: _({
318
+ id: 'guardrails.definitions.llm_as_judge.param.positiveExamples.tooltip',
319
+ message: 'Optional payloads that should pass the policy. Used by the judge as calibration anchors.'
320
+ }),
321
+ negativeExamples: _({
322
+ id: 'guardrails.definitions.llm_as_judge.param.negativeExamples.tooltip',
323
+ message: 'Optional payloads that should fail the policy. Used by the judge as calibration anchors.'
324
+ }),
325
+ threshold: _({
326
+ id: 'guardrails.definitions.llm_as_judge.param.threshold.tooltip',
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
+ })
329
+ }
330
+ }
331
+ };
332
+ }
333
+ const CURATED_GUARDRAIL_VALIDATORS = Object.freeze([
334
+ 'pii_detection',
335
+ 'prompt_injection',
336
+ 'harmful_content',
337
+ 'user_prompt_attacks',
338
+ 'intellectual_property',
339
+ 'llm_as_judge'
340
+ ]);
341
+ const GUARDRAIL_COPY_EN = buildGuardrailCopy((descriptor)=>descriptor.message);
342
+ function collectEnglishMessages() {
343
+ const messages = {};
344
+ buildGuardrailCopy((descriptor)=>{
345
+ messages[descriptor.id] = descriptor.message;
346
+ return descriptor.message;
347
+ });
348
+ return messages;
349
+ }
350
+ const GUARDRAIL_COPY_EN_MESSAGES = Object.freeze(collectEnglishMessages());
351
+ function useGuardrailDefinitionCopy() {
352
+ const { _ } = (0, index_cjs_namespaceObject.useSafeLingui)();
353
+ return (0, external_react_namespaceObject.useMemo)(()=>buildGuardrailCopy(_), [
354
+ _
355
+ ]);
356
+ }
357
+ exports.CURATED_GUARDRAIL_VALIDATORS = __webpack_exports__.CURATED_GUARDRAIL_VALIDATORS;
358
+ exports.GUARDRAIL_COPY_EN = __webpack_exports__.GUARDRAIL_COPY_EN;
359
+ exports.GUARDRAIL_COPY_EN_MESSAGES = __webpack_exports__.GUARDRAIL_COPY_EN_MESSAGES;
360
+ exports.useGuardrailDefinitionCopy = __webpack_exports__.useGuardrailDefinitionCopy;
361
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
362
+ "CURATED_GUARDRAIL_VALIDATORS",
363
+ "GUARDRAIL_COPY_EN",
364
+ "GUARDRAIL_COPY_EN_MESSAGES",
365
+ "useGuardrailDefinitionCopy"
366
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
367
+ Object.defineProperty(exports, '__esModule', {
368
+ value: true
369
+ });
@@ -0,0 +1,14 @@
1
+ export interface GuardrailValidatorCopy {
2
+ displayName: string;
3
+ description: string;
4
+ usageNote?: string;
5
+ paramLabels: Record<string, string>;
6
+ paramTooltips?: Record<string, string>;
7
+ optionLabels?: Record<string, Record<string, string>>;
8
+ }
9
+ export type GuardrailCopyTable = Record<string, GuardrailValidatorCopy>;
10
+ export declare const CURATED_GUARDRAIL_VALIDATORS: readonly string[];
11
+ export declare const GUARDRAIL_COPY_EN: GuardrailCopyTable;
12
+ export declare const GUARDRAIL_COPY_EN_MESSAGES: Readonly<Record<string, string>>;
13
+ export declare function useGuardrailDefinitionCopy(): GuardrailCopyTable;
14
+ //# sourceMappingURL=definitions-copy.d.ts.map
@@ -0,0 +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"}