@flowcore/sdk 1.30.0 → 1.32.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.32.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.31.0...v1.32.0) (2025-04-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * **event-type:** :sparkles: add PII mask configuration to EventTypeCreateCommand ([3a1ccc2](https://github.com/flowcore-io/flowcore-sdk/commit/3a1ccc239bbfeb164f4537c28275df4f07751239))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **event-type:** :sparkles: add piiMask initialization in EventType tests ([9666cc5](https://github.com/flowcore-io/flowcore-sdk/commit/9666cc5dcace9cb4db7c180c2fd2ac24b86ff21a))
14
+
15
+ ## [1.31.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.30.0...v1.31.0) (2025-04-22)
16
+
17
+
18
+ ### Features
19
+
20
+ * **event-type:** :sparkles: add optional PII mask field to EventTypeCreateInput and EventTypeUpdateInput ([7e7b5e0](https://github.com/flowcore-io/flowcore-sdk/commit/7e7b5e0e1c295282241cfb0f9a5bf6de4d1c82ee))
21
+
3
22
  ## [1.30.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.29.0...v1.30.0) (2025-04-16)
4
23
 
5
24
 
package/README.md CHANGED
@@ -509,7 +509,13 @@ import { EventTypeCreateCommand, FlowcoreClient } from "@flowcore/sdk"
509
509
  const command = new EventTypeCreateCommand({
510
510
  flowTypeId: "your-flow-type-id",
511
511
  name: "my-event-type",
512
- description: "My awesome event type"
512
+ description: "My awesome event type",
513
+ piiMask: {
514
+ key: "entityId",
515
+ paths: [
516
+ { path: "$.entityId", type: "string" }
517
+ ]
518
+ }
513
519
  })
514
520
 
515
521
  const result = await client.execute(command)
@@ -10,6 +10,18 @@ export interface EventTypeCreateInput {
10
10
  name: string;
11
11
  /** The description of the event type */
12
12
  description: string;
13
+ /** The pii mask of the event type */
14
+ piiMask?: {
15
+ /** The json path to the key where the entitiy id for the PII mask is located */
16
+ key: string;
17
+ /** The paths to the fields that should be masked */
18
+ paths: {
19
+ /** The json path to the field that should be masked */
20
+ path: string;
21
+ /** The type of the field that should be masked */
22
+ type: "string" | "number" | "boolean";
23
+ }[];
24
+ };
13
25
  }
14
26
  /**
15
27
  * Create an event type
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
1
+ {"version":3,"file":"event-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE;QACR,gFAAgF;QAChF,GAAG,EAAE,MAAM,CAAA;QACX,oDAAoD;QACpD,KAAK,EAAE;YACL,uDAAuD;YACvD,IAAI,EAAE,MAAM,CAAA;YACZ,kDAAkD;YAClD,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;SACtC,EAAE,CAAA;KACJ,CAAA;CACF;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
@@ -8,6 +8,18 @@ export type EventTypeUpdateInput = {
8
8
  eventTypeId: string;
9
9
  /** The description of the event type */
10
10
  description?: string;
11
+ /** The pii mask of the event type */
12
+ piiMask?: {
13
+ /** The json path to the key where the entitiy id for the PII mask is located */
14
+ key: string;
15
+ /** The paths to the fields that should be masked */
16
+ paths: {
17
+ /** The json path to the field that should be masked */
18
+ path: string;
19
+ /** The type of the field that should be masked */
20
+ type: "string" | "number" | "boolean";
21
+ }[];
22
+ };
11
23
  };
12
24
  /**
13
25
  * Update an event type
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.update.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
1
+ {"version":3,"file":"event-type.update.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qCAAqC;IACrC,OAAO,CAAC,EAAE;QACR,gFAAgF;QAChF,GAAG,EAAE,MAAM,CAAA;QACX,oDAAoD;QACpD,KAAK,EAAE;YACL,uDAAuD;YACvD,IAAI,EAAE,MAAM,CAAA;YACZ,kDAAkD;YAClD,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;SACtC,EAAE,CAAA;KACJ,CAAA;CACF,CAAA;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
@@ -1,4 +1,12 @@
1
- import { type Static, type TBoolean, type TObject, type TString } from "@sinclair/typebox";
1
+ import { type Static, type TArray, type TBoolean, type TLiteral, type TObject, type TString, type TUnion } from "@sinclair/typebox";
2
+ export declare const EventTypePiiMaskTypeSchema: TObject<{
3
+ path: TString;
4
+ type: TUnion<[TLiteral<"string">, TLiteral<"number">, TLiteral<"boolean">]>;
5
+ }>;
6
+ export declare const EventTypePiiMaskSchema: TObject<{
7
+ key: TString;
8
+ paths: TArray<typeof EventTypePiiMaskTypeSchema>;
9
+ }>;
2
10
  /**
3
11
  * The schema for an event type
4
12
  */
@@ -11,6 +19,7 @@ export declare const EventTypeSchema: TObject<{
11
19
  description: TString;
12
20
  isTruncating: TBoolean;
13
21
  isDeleting: TBoolean;
22
+ piiMask: TArray<typeof EventTypePiiMaskSchema>;
14
23
  }>;
15
24
  /**
16
25
  * The type for an event type
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,QAAQ,CAAA;IACtB,UAAU,EAAE,QAAQ,CAAA;CACrB,CASC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
1
+ {"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC;IAC/C,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;CAC5E,CAGC,CAAA;AAEF,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC;IAC3C,GAAG,EAAE,OAAO,CAAA;IACZ,KAAK,EAAE,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;CACjD,CAGC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,QAAQ,CAAA;IACtB,UAAU,EAAE,QAAQ,CAAA;IACpB,OAAO,EAAE,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAC/C,CAUC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -1,4 +1,12 @@
1
- import { Type } from "@sinclair/typebox";
1
+ import { Type, } from "@sinclair/typebox";
2
+ export const EventTypePiiMaskTypeSchema = Type.Object({
3
+ path: Type.String(),
4
+ type: Type.Union([Type.Literal("string"), Type.Literal("number"), Type.Literal("boolean")]),
5
+ });
6
+ export const EventTypePiiMaskSchema = Type.Object({
7
+ key: Type.String(),
8
+ paths: Type.Array(EventTypePiiMaskTypeSchema),
9
+ });
2
10
  /**
3
11
  * The schema for an event type
4
12
  */
@@ -11,4 +19,5 @@ export const EventTypeSchema = Type.Object({
11
19
  description: Type.String(),
12
20
  isTruncating: Type.Boolean(),
13
21
  isDeleting: Type.Boolean(),
22
+ piiMask: Type.Array(EventTypePiiMaskSchema),
14
23
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.30.0",
3
+ "version": "1.32.0",
4
4
  "description": "Flowcore SDK",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-sdk#readme",
6
6
  "repository": {
@@ -10,6 +10,18 @@ export interface EventTypeCreateInput {
10
10
  name: string;
11
11
  /** The description of the event type */
12
12
  description: string;
13
+ /** The pii mask of the event type */
14
+ piiMask?: {
15
+ /** The json path to the key where the entitiy id for the PII mask is located */
16
+ key: string;
17
+ /** The paths to the fields that should be masked */
18
+ paths: {
19
+ /** The json path to the field that should be masked */
20
+ path: string;
21
+ /** The type of the field that should be masked */
22
+ type: "string" | "number" | "boolean";
23
+ }[];
24
+ };
13
25
  }
14
26
  /**
15
27
  * Create an event type
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
1
+ {"version":3,"file":"event-type.create.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.create.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE;QACR,gFAAgF;QAChF,GAAG,EAAE,MAAM,CAAA;QACX,oDAAoD;QACpD,KAAK,EAAE;YACL,uDAAuD;YACvD,IAAI,EAAE,MAAM,CAAA;YACZ,kDAAkD;YAClD,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;SACtC,EAAE,CAAA;KACJ,CAAA;CACF;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;IACH,UAAmB,cAAc,EAAE,OAAO,CAAQ;IAElD;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
@@ -8,6 +8,18 @@ export type EventTypeUpdateInput = {
8
8
  eventTypeId: string;
9
9
  /** The description of the event type */
10
10
  description?: string;
11
+ /** The pii mask of the event type */
12
+ piiMask?: {
13
+ /** The json path to the key where the entitiy id for the PII mask is located */
14
+ key: string;
15
+ /** The paths to the fields that should be masked */
16
+ paths: {
17
+ /** The json path to the field that should be masked */
18
+ path: string;
19
+ /** The type of the field that should be masked */
20
+ type: "string" | "number" | "boolean";
21
+ }[];
22
+ };
11
23
  };
12
24
  /**
13
25
  * Update an event type
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.update.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
1
+ {"version":3,"file":"event-type.update.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,SAAS,EAAmB,MAAM,+BAA+B,CAAA;AAG/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,wCAAwC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,qCAAqC;IACrC,OAAO,CAAC,EAAE;QACR,gFAAgF;QAChF,GAAG,EAAE,MAAM,CAAA;QACX,oDAAoD;QACpD,KAAK,EAAE;YACL,uDAAuD;YACvD,IAAI,EAAE,MAAM,CAAA;YACZ,kDAAkD;YAClD,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;SACtC,EAAE,CAAA;KACJ,CAAA;CACF,CAAA;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,OAAO,CAAC,oBAAoB,EAAE,SAAS,CAAC;IAClF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAGtC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAKrD;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,SAAS;CAGlE"}
@@ -1,4 +1,12 @@
1
- import { type Static, type TBoolean, type TObject, type TString } from "@sinclair/typebox";
1
+ import { type Static, type TArray, type TBoolean, type TLiteral, type TObject, type TString, type TUnion } from "@sinclair/typebox";
2
+ export declare const EventTypePiiMaskTypeSchema: TObject<{
3
+ path: TString;
4
+ type: TUnion<[TLiteral<"string">, TLiteral<"number">, TLiteral<"boolean">]>;
5
+ }>;
6
+ export declare const EventTypePiiMaskSchema: TObject<{
7
+ key: TString;
8
+ paths: TArray<typeof EventTypePiiMaskTypeSchema>;
9
+ }>;
2
10
  /**
3
11
  * The schema for an event type
4
12
  */
@@ -11,6 +19,7 @@ export declare const EventTypeSchema: TObject<{
11
19
  description: TString;
12
20
  isTruncating: TBoolean;
13
21
  isDeleting: TBoolean;
22
+ piiMask: TArray<typeof EventTypePiiMaskSchema>;
14
23
  }>;
15
24
  /**
16
25
  * The type for an event type
@@ -1 +1 @@
1
- {"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAQ,MAAM,mBAAmB,CAAA;AAEhG;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,QAAQ,CAAA;IACtB,UAAU,EAAE,QAAQ,CAAA;CACrB,CASC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
1
+ {"version":3,"file":"event-type.d.ts","sourceRoot":"","sources":["../../src/contracts/event-type.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,eAAO,MAAM,0BAA0B,EAAE,OAAO,CAAC;IAC/C,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;CAC5E,CAGC,CAAA;AAEF,eAAO,MAAM,sBAAsB,EAAE,OAAO,CAAC;IAC3C,GAAG,EAAE,OAAO,CAAA;IACZ,KAAK,EAAE,MAAM,CAAC,OAAO,0BAA0B,CAAC,CAAA;CACjD,CAGC,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC;IACpC,EAAE,EAAE,OAAO,CAAA;IACX,QAAQ,EAAE,OAAO,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,YAAY,EAAE,QAAQ,CAAA;IACtB,UAAU,EAAE,QAAQ,CAAA;IACpB,OAAO,EAAE,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;CAC/C,CAUC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAA"}
@@ -1,7 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventTypeSchema = void 0;
3
+ exports.EventTypeSchema = exports.EventTypePiiMaskSchema = exports.EventTypePiiMaskTypeSchema = void 0;
4
4
  const typebox_1 = require("@sinclair/typebox");
5
+ exports.EventTypePiiMaskTypeSchema = typebox_1.Type.Object({
6
+ path: typebox_1.Type.String(),
7
+ type: typebox_1.Type.Union([typebox_1.Type.Literal("string"), typebox_1.Type.Literal("number"), typebox_1.Type.Literal("boolean")]),
8
+ });
9
+ exports.EventTypePiiMaskSchema = typebox_1.Type.Object({
10
+ key: typebox_1.Type.String(),
11
+ paths: typebox_1.Type.Array(exports.EventTypePiiMaskTypeSchema),
12
+ });
5
13
  /**
6
14
  * The schema for an event type
7
15
  */
@@ -14,4 +22,5 @@ exports.EventTypeSchema = typebox_1.Type.Object({
14
22
  description: typebox_1.Type.String(),
15
23
  isTruncating: typebox_1.Type.Boolean(),
16
24
  isDeleting: typebox_1.Type.Boolean(),
25
+ piiMask: typebox_1.Type.Array(exports.EventTypePiiMaskSchema),
17
26
  });