@flowcore/sdk 1.29.0 → 1.31.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.31.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.30.0...v1.31.0) (2025-04-22)
4
+
5
+
6
+ ### Features
7
+
8
+ * **event-type:** :sparkles: add optional PII mask field to EventTypeCreateInput and EventTypeUpdateInput ([7e7b5e0](https://github.com/flowcore-io/flowcore-sdk/commit/7e7b5e0e1c295282241cfb0f9a5bf6de4d1c82ee))
9
+
10
+ ## [1.30.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.29.0...v1.30.0) (2025-04-16)
11
+
12
+
13
+ ### Features
14
+
15
+ * **tenant:** :sparkles: add optional PII enabled field to TenantSchema ([c36d269](https://github.com/flowcore-io/flowcore-sdk/commit/c36d26921b221dce2411701ed7d0f32326c8ea01))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **tenant:** :art: change TOptional import to type import ([8f0c139](https://github.com/flowcore-io/flowcore-sdk/commit/8f0c139bed38283af763badd8238071759759337))
21
+
3
22
  ## [1.29.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.28.1...v1.29.0) (2025-04-16)
4
23
 
5
24
 
@@ -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 TOptional, 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: TOptional<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,SAAS,EACd,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,SAAS,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAA;CAC1D,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.Optional(Type.Array(EventTypePiiMaskSchema)),
14
23
  });
@@ -1,4 +1,4 @@
1
- import { type Static, type TBoolean, type TLiteral, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
1
+ import { type Static, type TBoolean, type TLiteral, type TNull, type TObject, type TOptional, type TString, type TUnion } from "@sinclair/typebox";
2
2
  interface TenantById {
3
3
  tenantId: string;
4
4
  tenant?: never;
@@ -33,6 +33,7 @@ export declare const TenantSchema: TObject<{
33
33
  }>;
34
34
  }>
35
35
  ]>;
36
+ piiEnabled: TOptional<TBoolean>;
36
37
  }>;
37
38
  /**
38
39
  * The type for a tenant
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAA;CACf;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,QAAQ,CAAA;IACrB,SAAS,EAAE,MAA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AC;YACN,MAAM,EAAE,MAAM,CAAC;gBACb,QAAQ,CAAC,OAAO,CAAC;gBACjB,QAAQ,CAAC,UAAU,CAAC;gBACpB,QAAQ,CAAC,SAAS,CAAC;aACpB,CAAC,CAAA;YACF,aAAa,EAAE,OAAO,CAAC;gBACrB,MAAM,EAAE,OAAO,CAAA;gBACf,oBAAoB,EAAE,OAAO,CAAA;gBAC7B,4BAA4B,EAAE,OAAO,CAAA;aACtC,CAAC,CAAA;SACH,CAAC;KACH,CAAC,CAAA;IACF,UAAU,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;CAChC,CAuBC,CAAA;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,YAAY,CAAC,CAAA"}
@@ -24,4 +24,5 @@ export const TenantSchema = Type.Object({
24
24
  }),
25
25
  }),
26
26
  ]),
27
+ piiEnabled: Type.Optional(Type.Boolean()),
27
28
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.29.0",
3
+ "version": "1.31.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 TOptional, 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: TOptional<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,SAAS,EACd,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,SAAS,CAAC,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAC,CAAA;CAC1D,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.Optional(typebox_1.Type.Array(exports.EventTypePiiMaskSchema)),
17
26
  });
@@ -1,4 +1,4 @@
1
- import { type Static, type TBoolean, type TLiteral, type TNull, type TObject, type TString, type TUnion } from "@sinclair/typebox";
1
+ import { type Static, type TBoolean, type TLiteral, type TNull, type TObject, type TOptional, type TString, type TUnion } from "@sinclair/typebox";
2
2
  interface TenantById {
3
3
  tenantId: string;
4
4
  tenant?: never;
@@ -33,6 +33,7 @@ export declare const TenantSchema: TObject<{
33
33
  }>;
34
34
  }>
35
35
  ]>;
36
+ piiEnabled: TOptional<TBoolean>;
36
37
  }>;
37
38
  /**
38
39
  * The type for a tenant
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.d.ts","sourceRoot":"","sources":["../../src/contracts/tenant.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,mBAAmB,CAAA;AAE1B,UAAU,UAAU;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,KAAK,CAAA;CACf;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,KAAK,CAAA;CACjB;AAED,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,YAAY,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC;IACjC,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE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