@orq-ai/node 4.15.0-rc.21 → 4.15.0-rc.22
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/README.md +30 -28
- package/funcs/piiCapabilities.d.ts +17 -0
- package/funcs/piiCapabilities.d.ts.map +1 -0
- package/funcs/piiCapabilities.js +105 -0
- package/funcs/piiCapabilities.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentstartedstreamingevent.d.ts +13 -1
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +2 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/capabilitiesresponse.d.ts +62 -0
- package/models/components/capabilitiesresponse.d.ts.map +1 -0
- package/models/components/capabilitiesresponse.js +68 -0
- package/models/components/capabilitiesresponse.js.map +1 -0
- package/models/components/detectrequest.d.ts +48 -0
- package/models/components/detectrequest.d.ts.map +1 -1
- package/models/components/detectrequest.js +4 -0
- package/models/components/detectrequest.js.map +1 -1
- package/models/components/entitylist.d.ts +16 -0
- package/models/components/entitylist.d.ts.map +1 -0
- package/models/components/entitylist.js +50 -0
- package/models/components/entitylist.js.map +1 -0
- package/models/components/guardrailruleplugin.d.ts +25 -0
- package/models/components/guardrailruleplugin.d.ts.map +1 -1
- package/models/components/guardrailruleplugin.js +6 -0
- package/models/components/guardrailruleplugin.js.map +1 -1
- package/models/components/index.d.ts +3 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -3
- package/models/components/index.js.map +1 -1
- package/models/components/piiredactionplugin.d.ts +84 -0
- package/models/components/piiredactionplugin.d.ts.map +1 -0
- package/models/components/piiredactionplugin.js +103 -0
- package/models/components/piiredactionplugin.js.map +1 -0
- package/models/components/publicplugin.d.ts +17 -16
- package/models/components/publicplugin.d.ts.map +1 -1
- package/models/components/publicplugin.js +5 -11
- package/models/components/publicplugin.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/redactrequest.d.ts +48 -0
- package/models/components/redactrequest.d.ts.map +1 -1
- package/models/components/redactrequest.js +8 -0
- package/models/components/redactrequest.js.map +1 -1
- package/models/components/responsehealingplugin.d.ts +2 -17
- package/models/components/responsehealingplugin.d.ts.map +1 -1
- package/models/components/responsehealingplugin.js +3 -13
- package/models/components/responsehealingplugin.js.map +1 -1
- package/models/components/routingruleplugin.d.ts +25 -0
- package/models/components/routingruleplugin.d.ts.map +1 -1
- package/models/components/routingruleplugin.js +6 -0
- package/models/components/routingruleplugin.js.map +1 -1
- package/models/components/tracescrubbingplugin.d.ts +2 -16
- package/models/components/tracescrubbingplugin.d.ts.map +1 -1
- package/models/components/tracescrubbingplugin.js +3 -13
- package/models/components/tracescrubbingplugin.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +67 -13
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +20 -32
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +12 -4
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +4 -8
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +2 -8
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +3 -17
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createimage.d.ts +2 -8
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +2 -16
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createprompt.d.ts +18 -6
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +8 -16
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +2 -8
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +2 -16
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +6 -2
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +4 -8
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +6 -2
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +4 -8
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +6 -2
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +4 -8
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +25 -5
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +10 -16
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listpromptversions.d.ts +6 -2
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +4 -8
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +25 -5
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +10 -16
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +42 -8
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +11 -17
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +42 -8
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +11 -17
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +67 -13
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +20 -32
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateprompt.d.ts +18 -6
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +8 -16
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/pii.d.ts +7 -0
- package/sdk/pii.d.ts.map +1 -1
- package/sdk/pii.js +10 -0
- package/sdk/pii.js.map +1 -1
- package/src/funcs/piiCapabilities.ts +144 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +11 -1
- package/src/models/components/capabilitiesresponse.ts +96 -0
- package/src/models/components/detectrequest.ts +48 -0
- package/src/models/components/entitylist.ts +37 -0
- package/src/models/components/guardrailruleplugin.ts +27 -0
- package/src/models/components/index.ts +3 -3
- package/src/models/components/piiredactionplugin.ts +143 -0
- package/src/models/components/publicplugin.ts +17 -21
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactrequest.ts +52 -0
- package/src/models/components/responsehealingplugin.ts +4 -27
- package/src/models/components/routingruleplugin.ts +27 -0
- package/src/models/components/tracescrubbingplugin.ts +4 -24
- package/src/models/operations/createagentrequest.ts +85 -87
- package/src/models/operations/createchatcompletion.ts +18 -26
- package/src/models/operations/createcompletion.ts +3 -51
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createimage.ts +3 -51
- package/src/models/operations/createprompt.ts +31 -43
- package/src/models/operations/creatererank.ts +3 -51
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +13 -17
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +13 -17
- package/src/models/operations/getpromptversion.ts +13 -17
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +37 -35
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listpromptversions.ts +13 -17
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +37 -35
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +49 -53
- package/src/models/operations/streamrunagent.ts +49 -53
- package/src/models/operations/updateagent.ts +85 -87
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +31 -43
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/pii.ts +16 -0
- package/models/components/piiredactionpluginauto.d.ts +0 -126
- package/models/components/piiredactionpluginauto.d.ts.map +0 -1
- package/models/components/piiredactionpluginauto.js +0 -156
- package/models/components/piiredactionpluginauto.js.map +0 -1
- package/models/components/piiredactionpluginen.d.ts +0 -145
- package/models/components/piiredactionpluginen.d.ts.map +0 -1
- package/models/components/piiredactionpluginen.js +0 -167
- package/models/components/piiredactionpluginen.js.map +0 -1
- package/models/components/piiredactionpluginnl.d.ts +0 -137
- package/models/components/piiredactionpluginnl.d.ts.map +0 -1
- package/models/components/piiredactionpluginnl.js +0 -158
- package/models/components/piiredactionpluginnl.js.map +0 -1
- package/src/models/components/piiredactionpluginauto.ts +0 -185
- package/src/models/components/piiredactionpluginen.ts +0 -222
- package/src/models/components/piiredactionpluginnl.ts +0 -218
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.PublicPlugin$outboundSchema = exports.PublicPluginOnFailure$outboundSchema = exports.PublicPluginMask$outboundSchema = exports.
|
|
39
|
+
exports.PublicPlugin$outboundSchema = exports.PublicPluginOnFailure$outboundSchema = exports.PublicPluginMask$outboundSchema = exports.PublicPluginId$outboundSchema = exports.PublicPluginOnFailure = exports.PublicPluginMask = exports.PublicPluginId = void 0;
|
|
40
40
|
exports.publicPluginToJSON = publicPluginToJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
@@ -48,13 +48,6 @@ exports.PublicPluginId = {
|
|
|
48
48
|
ResponseHealing: "response_healing",
|
|
49
49
|
TraceScrubbing: "trace_scrubbing",
|
|
50
50
|
};
|
|
51
|
-
/**
|
|
52
|
-
* pii_redaction only. Detector language. Defaults to en.
|
|
53
|
-
*/
|
|
54
|
-
exports.PublicPluginLanguage = {
|
|
55
|
-
En: "en",
|
|
56
|
-
Nl: "nl",
|
|
57
|
-
};
|
|
58
51
|
exports.PublicPluginMask = {
|
|
59
52
|
All: "all",
|
|
60
53
|
System: "system",
|
|
@@ -73,21 +66,22 @@ exports.PublicPluginOnFailure = {
|
|
|
73
66
|
/** @internal */
|
|
74
67
|
exports.PublicPluginId$outboundSchema = z.nativeEnum(exports.PublicPluginId);
|
|
75
68
|
/** @internal */
|
|
76
|
-
exports.PublicPluginLanguage$outboundSchema = z.nativeEnum(exports.PublicPluginLanguage);
|
|
77
|
-
/** @internal */
|
|
78
69
|
exports.PublicPluginMask$outboundSchema = z.nativeEnum(exports.PublicPluginMask);
|
|
79
70
|
/** @internal */
|
|
80
71
|
exports.PublicPluginOnFailure$outboundSchema = z.nativeEnum(exports.PublicPluginOnFailure);
|
|
81
72
|
/** @internal */
|
|
82
73
|
exports.PublicPlugin$outboundSchema = z.object({
|
|
83
74
|
entities: z.nullable(z.array(z.string())).optional(),
|
|
75
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
84
76
|
id: exports.PublicPluginId$outboundSchema,
|
|
85
|
-
language:
|
|
77
|
+
language: z.string().optional(),
|
|
86
78
|
mask: z.nullable(z.array(exports.PublicPluginMask$outboundSchema)).optional(),
|
|
87
79
|
onFailure: exports.PublicPluginOnFailure$outboundSchema.optional(),
|
|
80
|
+
regions: z.nullable(z.array(z.string())).optional(),
|
|
88
81
|
threshold: z.number().optional(),
|
|
89
82
|
}).transform((v) => {
|
|
90
83
|
return (0, primitives_js_1.remap)(v, {
|
|
84
|
+
entityThresholds: "entity_thresholds",
|
|
91
85
|
onFailure: "on_failure",
|
|
92
86
|
});
|
|
93
87
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publicplugin.js","sourceRoot":"","sources":["../../src/models/components/publicplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"publicplugin.js","sourceRoot":"","sources":["../../src/models/components/publicplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HH,gDAEC;AA5HD,0CAA4B;AAC5B,2DAA0D;AAG1D;;GAEG;AACU,QAAA,cAAc,GAAG;IAC5B,YAAY,EAAE,eAAe;IAC7B,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAME,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CACd,CAAC;AAGX;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACnC,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;CAClB,CAAC;AAyCX,gBAAgB;AACH,Q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AC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.ReasoningPart$inboundSchema = z.object({
|
|
46
|
-
_id: z.string().default("
|
|
46
|
+
_id: z.string().default("reasoning_01m1ny970yxt51fwq3537kvmda"),
|
|
47
47
|
metadata: z.record(z.any()).optional(),
|
|
48
48
|
kind: z.literal("reasoning"),
|
|
49
49
|
reasoning: z.string(),
|
|
@@ -3,12 +3,60 @@ export type RedactRequest = {
|
|
|
3
3
|
text?: string | undefined;
|
|
4
4
|
language?: string | undefined;
|
|
5
5
|
threshold?: number | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Region codes selecting whole regions of coverage, e.g. "nl", "gb". Every
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* entity type those regions cover is included, alongside the base catalog.
|
|
11
|
+
* ["all"] is exclusive. Leaving this and `entities` both empty also runs every
|
|
12
|
+
* region, so selecting nothing is the widest request rather than the narrowest.
|
|
13
|
+
* Empty alongside a non-empty `entities` stays strict. See the capabilities
|
|
14
|
+
* endpoint for the region list.
|
|
15
|
+
*
|
|
16
|
+
* Combines with `entities`: the detector unions the two selections, so a
|
|
17
|
+
* request carrying both covers the regions plus the named types. Note that
|
|
18
|
+
* `entities` only narrows coverage when it travels alone.
|
|
19
|
+
*/
|
|
20
|
+
regions?: Array<string> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The entity types to cover. A named type fires even when it belongs to a
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* region, so a region's types can be selected individually without naming
|
|
26
|
+
* the region. Alone this is a strict allowlist; alongside `regions` it adds
|
|
27
|
+
* to the region coverage instead of narrowing it.
|
|
28
|
+
*/
|
|
29
|
+
entities?: Array<string> | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Per-entity confidence cutoff overrides. An override REPLACES the global
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* `threshold` for that type and may sit above or below it: the gateway
|
|
35
|
+
* lowers the first-pass floor it sends the detector to the smallest value
|
|
36
|
+
* in the map, and every selected type carries its own cutoff, so a
|
|
37
|
+
* sub-global override detects MORE of that type without widening the rest.
|
|
38
|
+
*
|
|
39
|
+
* This only tunes confidence; it never changes which types are covered.
|
|
40
|
+
* Coverage is decided by `entities` alone, so every key here must also
|
|
41
|
+
* appear in `entities` — a key that does not is rejected, as is any key at
|
|
42
|
+
* all when `entities` is empty.
|
|
43
|
+
*
|
|
44
|
+
* Declarative [0,1] bound mirrors existing constraint on `threshold`.
|
|
45
|
+
*/
|
|
46
|
+
entityThresholds?: {
|
|
47
|
+
[k: string]: number;
|
|
48
|
+
} | undefined;
|
|
6
49
|
};
|
|
7
50
|
/** @internal */
|
|
8
51
|
export type RedactRequest$Outbound = {
|
|
9
52
|
text?: string | undefined;
|
|
10
53
|
language?: string | undefined;
|
|
11
54
|
threshold?: number | undefined;
|
|
55
|
+
regions?: Array<string> | undefined;
|
|
56
|
+
entities?: Array<string> | undefined;
|
|
57
|
+
entity_thresholds?: {
|
|
58
|
+
[k: string]: number;
|
|
59
|
+
} | undefined;
|
|
12
60
|
};
|
|
13
61
|
/** @internal */
|
|
14
62
|
export declare const RedactRequest$outboundSchema: z.ZodType<RedactRequest$Outbound, z.ZodTypeDef, RedactRequest>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redactrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/redactrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"redactrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/redactrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC;;;;;;;;;;;;;;;OAeG;IACH,gBAAgB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACxD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC,iBAAiB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAYb,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE"}
|
|
@@ -39,11 +39,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.RedactRequest$outboundSchema = void 0;
|
|
40
40
|
exports.redactRequestToJSON = redactRequestToJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
42
43
|
/** @internal */
|
|
43
44
|
exports.RedactRequest$outboundSchema = z.object({
|
|
44
45
|
text: z.string().optional(),
|
|
45
46
|
language: z.string().optional(),
|
|
46
47
|
threshold: z.number().optional(),
|
|
48
|
+
regions: z.array(z.string()).optional(),
|
|
49
|
+
entities: z.array(z.string()).optional(),
|
|
50
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return (0, primitives_js_1.remap)(v, {
|
|
53
|
+
entityThresholds: "entity_thresholds",
|
|
54
|
+
});
|
|
47
55
|
});
|
|
48
56
|
function redactRequestToJSON(redactRequest) {
|
|
49
57
|
return JSON.stringify(exports.RedactRequest$outboundSchema.parse(redactRequest));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redactrequest.js","sourceRoot":"","sources":["../../src/models/components/redactrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"redactrequest.js","sourceRoot":"","sources":["../../src/models/components/redactrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFH,kDAEC;AAhFD,0CAA4B;AAC5B,2DAA0D;AA2D1D,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,mBAAmB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -1,32 +1,17 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* Plugin discriminator. Must be `response_healing`.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ResponseHealingPluginId: {
|
|
9
|
-
readonly ResponseHealing: "response_healing";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Plugin discriminator. Must be `response_healing`.
|
|
13
|
-
*/
|
|
14
|
-
export type ResponseHealingPluginId = ClosedEnum<typeof ResponseHealingPluginId>;
|
|
15
4
|
export type ResponseHealingPlugin = {
|
|
16
5
|
/**
|
|
17
6
|
* Plugin discriminator. Must be `response_healing`.
|
|
18
7
|
*/
|
|
19
|
-
id:
|
|
8
|
+
id: "response_healing";
|
|
20
9
|
};
|
|
21
10
|
/** @internal */
|
|
22
|
-
export declare const ResponseHealingPluginId$inboundSchema: z.ZodNativeEnum<typeof ResponseHealingPluginId>;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export declare const ResponseHealingPluginId$outboundSchema: z.ZodNativeEnum<typeof ResponseHealingPluginId>;
|
|
25
|
-
/** @internal */
|
|
26
11
|
export declare const ResponseHealingPlugin$inboundSchema: z.ZodType<ResponseHealingPlugin, z.ZodTypeDef, unknown>;
|
|
27
12
|
/** @internal */
|
|
28
13
|
export type ResponseHealingPlugin$Outbound = {
|
|
29
|
-
id:
|
|
14
|
+
id: "response_healing";
|
|
30
15
|
};
|
|
31
16
|
/** @internal */
|
|
32
17
|
export declare const ResponseHealingPlugin$outboundSchema: z.ZodType<ResponseHealingPlugin$Outbound, z.ZodTypeDef, ResponseHealingPlugin>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsehealingplugin.d.ts","sourceRoot":"","sources":["../../src/models/components/responsehealingplugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"responsehealingplugin.d.ts","sourceRoot":"","sources":["../../src/models/components/responsehealingplugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,EAAE,EAAE,kBAAkB,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,EAAE,EAAE,kBAAkB,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAGrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AACD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -36,28 +36,18 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ResponseHealingPlugin$outboundSchema = exports.ResponseHealingPlugin$inboundSchema =
|
|
39
|
+
exports.ResponseHealingPlugin$outboundSchema = exports.ResponseHealingPlugin$inboundSchema = void 0;
|
|
40
40
|
exports.responseHealingPluginToJSON = responseHealingPluginToJSON;
|
|
41
41
|
exports.responseHealingPluginFromJSON = responseHealingPluginFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/**
|
|
45
|
-
* Plugin discriminator. Must be `response_healing`.
|
|
46
|
-
*/
|
|
47
|
-
exports.ResponseHealingPluginId = {
|
|
48
|
-
ResponseHealing: "response_healing",
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.ResponseHealingPluginId$inboundSchema = z.nativeEnum(exports.ResponseHealingPluginId);
|
|
52
|
-
/** @internal */
|
|
53
|
-
exports.ResponseHealingPluginId$outboundSchema = exports.ResponseHealingPluginId$inboundSchema;
|
|
54
44
|
/** @internal */
|
|
55
45
|
exports.ResponseHealingPlugin$inboundSchema = z.object({
|
|
56
|
-
id:
|
|
46
|
+
id: z.literal("response_healing"),
|
|
57
47
|
});
|
|
58
48
|
/** @internal */
|
|
59
49
|
exports.ResponseHealingPlugin$outboundSchema = z.object({
|
|
60
|
-
id:
|
|
50
|
+
id: z.literal("response_healing"),
|
|
61
51
|
});
|
|
62
52
|
function responseHealingPluginToJSON(responseHealingPlugin) {
|
|
63
53
|
return JSON.stringify(exports.ResponseHealingPlugin$outboundSchema.parse(responseHealingPlugin));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsehealingplugin.js","sourceRoot":"","sources":["../../src/models/components/responsehealingplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"responsehealingplugin.js","sourceRoot":"","sources":["../../src/models/components/responsehealingplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,kEAMC;AACD,sEAQC;AAjDD,0CAA4B;AAC5B,qDAAiD;AAWjD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAClC,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;CAClC,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AACD,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -6,11 +6,32 @@ export type RoutingRulePlugin = {
|
|
|
6
6
|
* Plugin discriminator.
|
|
7
7
|
*/
|
|
8
8
|
id?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Languages, regions and entity types are checked against the live
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* pii-detection capabilities catalog when the rule is saved, not pinned
|
|
14
|
+
* here, so a language or region the detector gains becomes writable without
|
|
15
|
+
* a proto change.
|
|
16
|
+
*/
|
|
9
17
|
language?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Entity types to redact. Mutually exclusive with regions.
|
|
20
|
+
*/
|
|
10
21
|
entities?: Array<string> | undefined;
|
|
11
22
|
onFailure?: string | undefined;
|
|
12
23
|
threshold?: number | undefined;
|
|
13
24
|
mask?: Array<string> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"]. Mutually exclusive with entities.
|
|
27
|
+
*/
|
|
28
|
+
regions?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Per-entity-type confidence cutoff. Every key must also appear in entities.
|
|
31
|
+
*/
|
|
32
|
+
entityThresholds?: {
|
|
33
|
+
[k: string]: number;
|
|
34
|
+
} | undefined;
|
|
14
35
|
};
|
|
15
36
|
/** @internal */
|
|
16
37
|
export declare const RoutingRulePlugin$inboundSchema: z.ZodType<RoutingRulePlugin, z.ZodTypeDef, unknown>;
|
|
@@ -22,6 +43,10 @@ export type RoutingRulePlugin$Outbound = {
|
|
|
22
43
|
on_failure?: string | undefined;
|
|
23
44
|
threshold?: number | undefined;
|
|
24
45
|
mask?: Array<string> | undefined;
|
|
46
|
+
regions?: Array<string> | undefined;
|
|
47
|
+
entity_thresholds?: {
|
|
48
|
+
[k: string]: number;
|
|
49
|
+
} | undefined;
|
|
25
50
|
};
|
|
26
51
|
/** @internal */
|
|
27
52
|
export declare const RoutingRulePlugin$outboundSchema: z.ZodType<RoutingRulePlugin$Outbound, z.ZodTypeDef, RoutingRulePlugin>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routingruleplugin.d.ts","sourceRoot":"","sources":["../../src/models/components/routingruleplugin.ts"],"names":[],"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: z.string().optional(),
|
|
51
51
|
threshold: z.number().optional(),
|
|
52
52
|
mask: z.array(z.string()).optional(),
|
|
53
|
+
regions: z.array(z.string()).optional(),
|
|
54
|
+
entity_thresholds: z.record(z.number()).optional(),
|
|
53
55
|
}).transform((v) => {
|
|
54
56
|
return (0, primitives_js_1.remap)(v, {
|
|
55
57
|
"on_failure": "onFailure",
|
|
58
|
+
"entity_thresholds": "entityThresholds",
|
|
56
59
|
});
|
|
57
60
|
});
|
|
58
61
|
/** @internal */
|
|
@@ -63,9 +66,12 @@ exports.RoutingRulePlugin$outboundSchema = z.object({
|
|
|
63
66
|
onFailure: z.string().optional(),
|
|
64
67
|
threshold: z.number().optional(),
|
|
65
68
|
mask: z.array(z.string()).optional(),
|
|
69
|
+
regions: z.array(z.string()).optional(),
|
|
70
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
66
71
|
}).transform((v) => {
|
|
67
72
|
return (0, primitives_js_1.remap)(v, {
|
|
68
73
|
onFailure: "on_failure",
|
|
74
|
+
entityThresholds: "entity_thresholds",
|
|
69
75
|
});
|
|
70
76
|
});
|
|
71
77
|
function routingRulePluginToJSON(routingRulePlugin) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routingruleplugin.js","sourceRoot":"","sources":["../../src/models/components/routingruleplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"routingruleplugin.js","sourceRoot":"","sources":["../../src/models/components/routingruleplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FH,0DAMC;AACD,8DAQC;AAzGD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAmCjD,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;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Q,EAAE;IACpC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,gBAAgB,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,gBAAgB,EAAE,mBAAmB;KACtC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AACD,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -2,16 +2,6 @@ import * as z from "zod/v3";
|
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* Plugin discriminator. Must be `trace_scrubbing`.
|
|
7
|
-
*/
|
|
8
|
-
export declare const TraceScrubbingPluginId: {
|
|
9
|
-
readonly TraceScrubbing: "trace_scrubbing";
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Plugin discriminator. Must be `trace_scrubbing`.
|
|
13
|
-
*/
|
|
14
|
-
export type TraceScrubbingPluginId = ClosedEnum<typeof TraceScrubbingPluginId>;
|
|
15
5
|
export declare const Mask: {
|
|
16
6
|
readonly All: "all";
|
|
17
7
|
readonly System: "system";
|
|
@@ -25,17 +15,13 @@ export type TraceScrubbingPlugin = {
|
|
|
25
15
|
/**
|
|
26
16
|
* Plugin discriminator. Must be `trace_scrubbing`.
|
|
27
17
|
*/
|
|
28
|
-
id:
|
|
18
|
+
id: "trace_scrubbing";
|
|
29
19
|
/**
|
|
30
20
|
* Trace surfaces to scrub. `all` includes system, input, output, metadata, and variables.
|
|
31
21
|
*/
|
|
32
22
|
mask: Array<Mask>;
|
|
33
23
|
};
|
|
34
24
|
/** @internal */
|
|
35
|
-
export declare const TraceScrubbingPluginId$inboundSchema: z.ZodNativeEnum<typeof TraceScrubbingPluginId>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const TraceScrubbingPluginId$outboundSchema: z.ZodNativeEnum<typeof TraceScrubbingPluginId>;
|
|
38
|
-
/** @internal */
|
|
39
25
|
export declare const Mask$inboundSchema: z.ZodNativeEnum<typeof Mask>;
|
|
40
26
|
/** @internal */
|
|
41
27
|
export declare const Mask$outboundSchema: z.ZodNativeEnum<typeof Mask>;
|
|
@@ -43,7 +29,7 @@ export declare const Mask$outboundSchema: z.ZodNativeEnum<typeof Mask>;
|
|
|
43
29
|
export declare const TraceScrubbingPlugin$inboundSchema: z.ZodType<TraceScrubbingPlugin, z.ZodTypeDef, unknown>;
|
|
44
30
|
/** @internal */
|
|
45
31
|
export type TraceScrubbingPlugin$Outbound = {
|
|
46
|
-
id:
|
|
32
|
+
id: "trace_scrubbing";
|
|
47
33
|
mask: Array<string>;
|
|
48
34
|
};
|
|
49
35
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracescrubbingplugin.d.ts","sourceRoot":"","sources":["../../src/models/components/tracescrubbingplugin.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MA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U,EACZ,oBAAoB,CAIpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AACD,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -36,17 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TraceScrubbingPlugin$outboundSchema = exports.TraceScrubbingPlugin$inboundSchema = exports.Mask$outboundSchema = exports.Mask$inboundSchema = exports.
|
|
39
|
+
exports.TraceScrubbingPlugin$outboundSchema = exports.TraceScrubbingPlugin$inboundSchema = exports.Mask$outboundSchema = exports.Mask$inboundSchema = exports.Mask = void 0;
|
|
40
40
|
exports.traceScrubbingPluginToJSON = traceScrubbingPluginToJSON;
|
|
41
41
|
exports.traceScrubbingPluginFromJSON = traceScrubbingPluginFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
/**
|
|
45
|
-
* Plugin discriminator. Must be `trace_scrubbing`.
|
|
46
|
-
*/
|
|
47
|
-
exports.TraceScrubbingPluginId = {
|
|
48
|
-
TraceScrubbing: "trace_scrubbing",
|
|
49
|
-
};
|
|
50
44
|
exports.Mask = {
|
|
51
45
|
All: "all",
|
|
52
46
|
System: "system",
|
|
@@ -56,21 +50,17 @@ exports.Mask = {
|
|
|
56
50
|
Variables: "variables",
|
|
57
51
|
};
|
|
58
52
|
/** @internal */
|
|
59
|
-
exports.TraceScrubbingPluginId$inboundSchema = z.nativeEnum(exports.TraceScrubbingPluginId);
|
|
60
|
-
/** @internal */
|
|
61
|
-
exports.TraceScrubbingPluginId$outboundSchema = exports.TraceScrubbingPluginId$inboundSchema;
|
|
62
|
-
/** @internal */
|
|
63
53
|
exports.Mask$inboundSchema = z.nativeEnum(exports.Mask);
|
|
64
54
|
/** @internal */
|
|
65
55
|
exports.Mask$outboundSchema = exports.Mask$inboundSchema;
|
|
66
56
|
/** @internal */
|
|
67
57
|
exports.TraceScrubbingPlugin$inboundSchema = z.object({
|
|
68
|
-
id:
|
|
58
|
+
id: z.literal("trace_scrubbing"),
|
|
69
59
|
mask: z.array(exports.Mask$inboundSchema),
|
|
70
60
|
});
|
|
71
61
|
/** @internal */
|
|
72
62
|
exports.TraceScrubbingPlugin$outboundSchema = z.object({
|
|
73
|
-
id:
|
|
63
|
+
id: z.literal("trace_scrubbing"),
|
|
74
64
|
mask: z.array(exports.Mask$outboundSchema),
|
|
75
65
|
});
|
|
76
66
|
function traceScrubbingPluginToJSON(traceScrubbingPlugin) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tracescrubbingplugin.js","sourceRoot":"","sources":["../../src/models/components/tracescrubbingplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tracescrubbingplugin.js","sourceRoot":"","sources":["../../src/models/components/tracescrubbingplugin.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8DH,gEAMC;AACD,oEAQC;AA3ED,0CAA4B;AAC5B,qDAAiD;AAKpC,QAAA,IAAI,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;CACd,CAAC;AAcX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AACF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB,gBAAgB;AACH,QAAA,kCAAkC,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