@flowcore/sdk 1.40.0 → 1.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.41.1](https://github.com/flowcore-io/flowcore-sdk/compare/v1.41.0...v1.41.1) (2025-05-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **event-type:** :art: rename applicationId to application in sensitive data commands ([7a778cd](https://github.com/flowcore-io/flowcore-sdk/commit/7a778cd9609b3fd81463f5cd5741e4b455237ab6))
9
+
10
+ ## [1.41.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.40.0...v1.41.0) (2025-05-02)
11
+
12
+
13
+ ### Features
14
+
15
+ * **event-type:** :sparkles: add commands for listing and removing sensitive data ([09b9ce7](https://github.com/flowcore-io/flowcore-sdk/commit/09b9ce72a2b3cc77970c123a9fd61e4497ebcdbe))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **commands:** :fire: remove unnecessary blank line in index.ts ([1e894c8](https://github.com/flowcore-io/flowcore-sdk/commit/1e894c8a39f771640924ca00de8c7eaa3a284194))
21
+
3
22
  ## [1.40.0](https://github.com/flowcore-io/flowcore-sdk/compare/v1.39.0...v1.40.0) (2025-05-02)
4
23
 
5
24
 
@@ -0,0 +1,45 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { type EventTypeRemovedSensitiveData } from "../../contracts/event-type.js";
3
+ /**
4
+ * The input for the event type list removed sensitive data command
5
+ */
6
+ export interface EventTypeListRemovedSensitiveDataInput {
7
+ /** The id of the tenant */
8
+ tenantId: string;
9
+ /** The id of the data core */
10
+ dataCoreId?: string;
11
+ /** The id of the flow type */
12
+ flowTypeId?: string;
13
+ /** The id of the event type */
14
+ eventTypeId?: string;
15
+ /** The identifier of the application that is trying to remove sensitive data */
16
+ application?: string;
17
+ /** The parent key of the event type */
18
+ parentKey?: string;
19
+ /** The cursor to start the list from */
20
+ cursor?: string;
21
+ /** The limit of the number of items to return */
22
+ limit?: number;
23
+ }
24
+ /**
25
+ * Fetch an event type
26
+ */
27
+ export declare class EventTypeListRemovedSensitiveDataCommand extends Command<EventTypeListRemovedSensitiveDataInput, EventTypeRemovedSensitiveData[]> {
28
+ /**
29
+ * Get the method
30
+ */
31
+ protected getMethod(): string;
32
+ /**
33
+ * Get the base url
34
+ */
35
+ protected getBaseUrl(): string;
36
+ /**
37
+ * Get the path
38
+ */
39
+ protected getPath(): string;
40
+ /**
41
+ * Parse the response
42
+ */
43
+ protected parseResponse(rawResponse: unknown): EventTypeRemovedSensitiveData[];
44
+ }
45
+ //# sourceMappingURL=event-type.list-removed-sensitive-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.list-removed-sensitive-data.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.list-removed-sensitive-data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,6BAA6B,EAAuC,MAAM,+BAA+B,CAAA;AAGvH;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,qBAAa,wCACX,SAAQ,OAAO,CAAC,sCAAsC,EAAE,6BAA6B,EAAE,CAAC;IACxF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAYpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,6BAA6B,EAAE;CAGxF"}
@@ -0,0 +1,41 @@
1
+ import { Type } from "@sinclair/typebox";
2
+ import { Command } from "../../common/command.js";
3
+ import { EventTypeRemovedSensitiveDataSchema } from "../../contracts/event-type.js";
4
+ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
5
+ /**
6
+ * Fetch an event type
7
+ */
8
+ export class EventTypeListRemovedSensitiveDataCommand extends Command {
9
+ /**
10
+ * Get the method
11
+ */
12
+ getMethod() {
13
+ return "GET";
14
+ }
15
+ /**
16
+ * Get the base url
17
+ */
18
+ getBaseUrl() {
19
+ return "https://event-type-2.api.flowcore.io";
20
+ }
21
+ /**
22
+ * Get the path
23
+ */
24
+ getPath() {
25
+ const queryParams = new URLSearchParams();
26
+ this.input.dataCoreId && queryParams.set("dataCoreId", this.input.dataCoreId);
27
+ this.input.flowTypeId && queryParams.set("flowTypeId", this.input.flowTypeId);
28
+ this.input.eventTypeId && queryParams.set("eventTypeId", this.input.eventTypeId);
29
+ this.input.parentKey && queryParams.set("parentKey", this.input.parentKey);
30
+ this.input.application && queryParams.set("application", this.input.application);
31
+ this.input.cursor && queryParams.set("cursor", this.input.cursor);
32
+ this.input.limit && queryParams.set("limit", this.input.limit.toString());
33
+ return `/api/v1/event-types/sensitive-data/${this.input.tenantId}?${queryParams.toString()}`;
34
+ }
35
+ /**
36
+ * Parse the response
37
+ */
38
+ parseResponse(rawResponse) {
39
+ return parseResponseHelper(Type.Array(EventTypeRemovedSensitiveDataSchema), rawResponse);
40
+ }
41
+ }
@@ -0,0 +1,39 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { type EventTypeRemoveSensitiveData } from "../../contracts/event-type.js";
3
+ /**
4
+ * The input for the event type list removed sensitive data command
5
+ */
6
+ export interface EventTypeRemoveSensitiveDataInput {
7
+ /** The id of the event type */
8
+ eventTypeId: string;
9
+ /** The identifier of the application that is trying to remove sensitive data */
10
+ application: string;
11
+ /** The parent key of sensitive data point */
12
+ parentKey: string;
13
+ /** The key of sensitive data point */
14
+ key: string;
15
+ /** The removal type of sensitive data point */
16
+ type: "remove" | "scramble";
17
+ }
18
+ /**
19
+ * Fetch an event type
20
+ */
21
+ export declare class EventTypeRemoveSensitiveDataCommand extends Command<EventTypeRemoveSensitiveDataInput, EventTypeRemoveSensitiveData> {
22
+ /**
23
+ * Get the method
24
+ */
25
+ protected getMethod(): string;
26
+ /**
27
+ * Get the base url
28
+ */
29
+ protected getBaseUrl(): string;
30
+ /**
31
+ * Get the path
32
+ */
33
+ protected getPath(): string;
34
+ /**
35
+ * Parse the response
36
+ */
37
+ protected parseResponse(rawResponse: unknown): EventTypeRemoveSensitiveData;
38
+ }
39
+ //# sourceMappingURL=event-type.remove-sensitive-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.remove-sensitive-data.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.remove-sensitive-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,4BAA4B,EAAsC,MAAM,+BAA+B,CAAA;AAGrH;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAA;IACnB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAA;IACX,+CAA+C;IAC/C,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAA;CAC5B;AAED;;GAEG;AACH,qBAAa,mCACX,SAAQ,OAAO,CAAC,iCAAiC,EAAE,4BAA4B,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,4BAA4B;CAGrF"}
@@ -0,0 +1,32 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { EventTypeRemoveSensitiveDataSchema } from "../../contracts/event-type.js";
3
+ import { parseResponseHelper } from "../../utils/parse-response-helper.js";
4
+ /**
5
+ * Fetch an event type
6
+ */
7
+ export class EventTypeRemoveSensitiveDataCommand extends Command {
8
+ /**
9
+ * Get the method
10
+ */
11
+ getMethod() {
12
+ return "POST";
13
+ }
14
+ /**
15
+ * Get the base url
16
+ */
17
+ getBaseUrl() {
18
+ return "https://event-type-2.api.flowcore.io";
19
+ }
20
+ /**
21
+ * Get the path
22
+ */
23
+ getPath() {
24
+ return `/api/v1/event-types/sensitive-data/remove`;
25
+ }
26
+ /**
27
+ * Parse the response
28
+ */
29
+ parseResponse(rawResponse) {
30
+ return parseResponseHelper(EventTypeRemoveSensitiveDataSchema, rawResponse);
31
+ }
32
+ }
@@ -28,7 +28,9 @@ export * from "./event-type/event-type.create.js";
28
28
  export * from "./event-type/event-type.exists.js";
29
29
  export * from "./event-type/event-type.fetch.js";
30
30
  export * from "./event-type/event-type.info.js";
31
+ export * from "./event-type/event-type.list-removed-sensitive-data.js";
31
32
  export * from "./event-type/event-type.list.js";
33
+ export * from "./event-type/event-type.remove-sensitive-data.js";
32
34
  export * from "./event-type/event-type.request-delete.js";
33
35
  export * from "./event-type/event-type.request-truncate.js";
34
36
  export * from "./event-type/event-type.update.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CA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AACxD,cAAc,0CAA0C,CAAA;AACxD,cAAc,wCAAwC,CAAA;AACtD,cAAc,oBAAoB,CAAA;AAClC,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,wBAAwB,CAAA;AACtC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAG5C,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mDAAmD,CAAA;AAGjE,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA"}
@@ -35,7 +35,9 @@ export * from "./event-type/event-type.create.js";
35
35
  export * from "./event-type/event-type.exists.js";
36
36
  export * from "./event-type/event-type.fetch.js";
37
37
  export * from "./event-type/event-type.info.js";
38
+ export * from "./event-type/event-type.list-removed-sensitive-data.js";
38
39
  export * from "./event-type/event-type.list.js";
40
+ export * from "./event-type/event-type.remove-sensitive-data.js";
39
41
  export * from "./event-type/event-type.request-delete.js";
40
42
  export * from "./event-type/event-type.request-truncate.js";
41
43
  export * from "./event-type/event-type.update.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowcore/sdk",
3
- "version": "1.40.0",
3
+ "version": "1.41.1",
4
4
  "description": "Flowcore SDK",
5
5
  "homepage": "https://github.com/flowcore-io/flowcore-sdk#readme",
6
6
  "repository": {
@@ -0,0 +1,45 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { type EventTypeRemovedSensitiveData } from "../../contracts/event-type.js";
3
+ /**
4
+ * The input for the event type list removed sensitive data command
5
+ */
6
+ export interface EventTypeListRemovedSensitiveDataInput {
7
+ /** The id of the tenant */
8
+ tenantId: string;
9
+ /** The id of the data core */
10
+ dataCoreId?: string;
11
+ /** The id of the flow type */
12
+ flowTypeId?: string;
13
+ /** The id of the event type */
14
+ eventTypeId?: string;
15
+ /** The identifier of the application that is trying to remove sensitive data */
16
+ application?: string;
17
+ /** The parent key of the event type */
18
+ parentKey?: string;
19
+ /** The cursor to start the list from */
20
+ cursor?: string;
21
+ /** The limit of the number of items to return */
22
+ limit?: number;
23
+ }
24
+ /**
25
+ * Fetch an event type
26
+ */
27
+ export declare class EventTypeListRemovedSensitiveDataCommand extends Command<EventTypeListRemovedSensitiveDataInput, EventTypeRemovedSensitiveData[]> {
28
+ /**
29
+ * Get the method
30
+ */
31
+ protected getMethod(): string;
32
+ /**
33
+ * Get the base url
34
+ */
35
+ protected getBaseUrl(): string;
36
+ /**
37
+ * Get the path
38
+ */
39
+ protected getPath(): string;
40
+ /**
41
+ * Parse the response
42
+ */
43
+ protected parseResponse(rawResponse: unknown): EventTypeRemovedSensitiveData[];
44
+ }
45
+ //# sourceMappingURL=event-type.list-removed-sensitive-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.list-removed-sensitive-data.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.list-removed-sensitive-data.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,6BAA6B,EAAuC,MAAM,+BAA+B,CAAA;AAGvH;;GAEG;AACH,MAAM,WAAW,sCAAsC;IACrD,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gFAAgF;IAChF,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED;;GAEG;AACH,qBAAa,wCACX,SAAQ,OAAO,CAAC,sCAAsC,EAAE,6BAA6B,EAAE,CAAC;IACxF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAYpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,6BAA6B,EAAE;CAGxF"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeListRemovedSensitiveDataCommand = void 0;
4
+ const typebox_1 = require("@sinclair/typebox");
5
+ const command_js_1 = require("../../common/command.js");
6
+ const event_type_js_1 = require("../../contracts/event-type.js");
7
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
8
+ /**
9
+ * Fetch an event type
10
+ */
11
+ class EventTypeListRemovedSensitiveDataCommand extends command_js_1.Command {
12
+ /**
13
+ * Get the method
14
+ */
15
+ getMethod() {
16
+ return "GET";
17
+ }
18
+ /**
19
+ * Get the base url
20
+ */
21
+ getBaseUrl() {
22
+ return "https://event-type-2.api.flowcore.io";
23
+ }
24
+ /**
25
+ * Get the path
26
+ */
27
+ getPath() {
28
+ const queryParams = new URLSearchParams();
29
+ this.input.dataCoreId && queryParams.set("dataCoreId", this.input.dataCoreId);
30
+ this.input.flowTypeId && queryParams.set("flowTypeId", this.input.flowTypeId);
31
+ this.input.eventTypeId && queryParams.set("eventTypeId", this.input.eventTypeId);
32
+ this.input.parentKey && queryParams.set("parentKey", this.input.parentKey);
33
+ this.input.application && queryParams.set("application", this.input.application);
34
+ this.input.cursor && queryParams.set("cursor", this.input.cursor);
35
+ this.input.limit && queryParams.set("limit", this.input.limit.toString());
36
+ return `/api/v1/event-types/sensitive-data/${this.input.tenantId}?${queryParams.toString()}`;
37
+ }
38
+ /**
39
+ * Parse the response
40
+ */
41
+ parseResponse(rawResponse) {
42
+ return (0, parse_response_helper_js_1.parseResponseHelper)(typebox_1.Type.Array(event_type_js_1.EventTypeRemovedSensitiveDataSchema), rawResponse);
43
+ }
44
+ }
45
+ exports.EventTypeListRemovedSensitiveDataCommand = EventTypeListRemovedSensitiveDataCommand;
@@ -0,0 +1,39 @@
1
+ import { Command } from "../../common/command.js";
2
+ import { type EventTypeRemoveSensitiveData } from "../../contracts/event-type.js";
3
+ /**
4
+ * The input for the event type list removed sensitive data command
5
+ */
6
+ export interface EventTypeRemoveSensitiveDataInput {
7
+ /** The id of the event type */
8
+ eventTypeId: string;
9
+ /** The identifier of the application that is trying to remove sensitive data */
10
+ application: string;
11
+ /** The parent key of sensitive data point */
12
+ parentKey: string;
13
+ /** The key of sensitive data point */
14
+ key: string;
15
+ /** The removal type of sensitive data point */
16
+ type: "remove" | "scramble";
17
+ }
18
+ /**
19
+ * Fetch an event type
20
+ */
21
+ export declare class EventTypeRemoveSensitiveDataCommand extends Command<EventTypeRemoveSensitiveDataInput, EventTypeRemoveSensitiveData> {
22
+ /**
23
+ * Get the method
24
+ */
25
+ protected getMethod(): string;
26
+ /**
27
+ * Get the base url
28
+ */
29
+ protected getBaseUrl(): string;
30
+ /**
31
+ * Get the path
32
+ */
33
+ protected getPath(): string;
34
+ /**
35
+ * Parse the response
36
+ */
37
+ protected parseResponse(rawResponse: unknown): EventTypeRemoveSensitiveData;
38
+ }
39
+ //# sourceMappingURL=event-type.remove-sensitive-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-type.remove-sensitive-data.d.ts","sourceRoot":"","sources":["../../../src/commands/event-type/event-type.remove-sensitive-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACjD,OAAO,EAAE,KAAK,4BAA4B,EAAsC,MAAM,+BAA+B,CAAA;AAGrH;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,+BAA+B;IAC/B,WAAW,EAAE,MAAM,CAAA;IACnB,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAA;IACnB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAA;IACjB,sCAAsC;IACtC,GAAG,EAAE,MAAM,CAAA;IACX,+CAA+C;IAC/C,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAA;CAC5B;AAED;;GAEG;AACH,qBAAa,mCACX,SAAQ,OAAO,CAAC,iCAAiC,EAAE,4BAA4B,CAAC;IAChF;;OAEG;cACgB,SAAS,IAAI,MAAM;IAItC;;OAEG;cACgB,UAAU,IAAI,MAAM;IAIvC;;OAEG;cACgB,OAAO,IAAI,MAAM;IAIpC;;OAEG;cACgB,aAAa,CAAC,WAAW,EAAE,OAAO,GAAG,4BAA4B;CAGrF"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EventTypeRemoveSensitiveDataCommand = void 0;
4
+ const command_js_1 = require("../../common/command.js");
5
+ const event_type_js_1 = require("../../contracts/event-type.js");
6
+ const parse_response_helper_js_1 = require("../../utils/parse-response-helper.js");
7
+ /**
8
+ * Fetch an event type
9
+ */
10
+ class EventTypeRemoveSensitiveDataCommand extends command_js_1.Command {
11
+ /**
12
+ * Get the method
13
+ */
14
+ getMethod() {
15
+ return "POST";
16
+ }
17
+ /**
18
+ * Get the base url
19
+ */
20
+ getBaseUrl() {
21
+ return "https://event-type-2.api.flowcore.io";
22
+ }
23
+ /**
24
+ * Get the path
25
+ */
26
+ getPath() {
27
+ return `/api/v1/event-types/sensitive-data/remove`;
28
+ }
29
+ /**
30
+ * Parse the response
31
+ */
32
+ parseResponse(rawResponse) {
33
+ return (0, parse_response_helper_js_1.parseResponseHelper)(event_type_js_1.EventTypeRemoveSensitiveDataSchema, rawResponse);
34
+ }
35
+ }
36
+ exports.EventTypeRemoveSensitiveDataCommand = EventTypeRemoveSensitiveDataCommand;
@@ -28,7 +28,9 @@ export * from "./event-type/event-type.create.js";
28
28
  export * from "./event-type/event-type.exists.js";
29
29
  export * from "./event-type/event-type.fetch.js";
30
30
  export * from "./event-type/event-type.info.js";
31
+ export * from "./event-type/event-type.list-removed-sensitive-data.js";
31
32
  export * from "./event-type/event-type.list.js";
33
+ export * from "./event-type/event-type.remove-sensitive-data.js";
32
34
  export * from "./event-type/event-type.request-delete.js";
33
35
  export * from "./event-type/event-type.request-truncate.js";
34
36
  export * from "./event-type/event-type.update.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,cAAc,2CAA2C,CAAA;AACzD,cAAc,0CAA0C,CAAA;AACxD,cAAc,0BAA0B,CAAA;AACxC,cAAc,yBAAyB,CAAA;AACvC,cAAc,yCAAyC,CAAA;AAGvD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,2BAA2B,CAAA;AAGzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,2BAA2B,CAAA;AACzC,cAAc,yBAAyB,CAAA;AAGvC,cAAc,+BAA+B,CAAA;AAC7C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6BAA6B,CAAA;AAG3C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAA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iC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,gCAAgC,CAAA;AAC9C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,yCAAyC,CAAA;AACvD,cAAc,iCAAiC,CAAA;AAG/C,cAAc,mCAAmC,CAAA;AACjD,cAAc,mCAAmC,CAAA;AACjD,cAAc,kCAAkC,CAAA;AAChD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,wDAAwD,CAAA;AACtE,cAAc,iCAAiC,CAAA;AAC/C,cAAc,kDAAkD,CAAA;AAChE,cAAc,2CAA2C,CAAA;AACzD,cAAc,6CAA6C,CAAA;AAC3D,cAAc,mCAAmC,CAAA;AAGjD,cAAc,0CAA0C,CAAA;AACxD,cAAc,0CAA0C,CAAA;AACxD,cAAc,wCAAwC,CAAA;AACtD,cAAc,oBAAoB,CAAA;AAClC,cAAc,uCAAuC,CAAA;AACrD,cAAc,uCAAuC,CAAA;AACrD,cAAc,qCAAqC,CAAA;AAGnD,cAAc,wBAAwB,CAAA;AACtC,cAAc,gDAAgD,CAAA;AAC9D,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAG5C,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,kDAAkD,CAAA;AAChE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mDAAmD,CAAA;AAGjE,cAAc,0BAA0B,CAAA;AACxC,cAAc,0BAA0B,CAAA;AACxC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,gCAAgC,CAAA"}
@@ -51,7 +51,9 @@ __exportStar(require("./event-type/event-type.create.js"), exports);
51
51
  __exportStar(require("./event-type/event-type.exists.js"), exports);
52
52
  __exportStar(require("./event-type/event-type.fetch.js"), exports);
53
53
  __exportStar(require("./event-type/event-type.info.js"), exports);
54
+ __exportStar(require("./event-type/event-type.list-removed-sensitive-data.js"), exports);
54
55
  __exportStar(require("./event-type/event-type.list.js"), exports);
56
+ __exportStar(require("./event-type/event-type.remove-sensitive-data.js"), exports);
55
57
  __exportStar(require("./event-type/event-type.request-delete.js"), exports);
56
58
  __exportStar(require("./event-type/event-type.request-truncate.js"), exports);
57
59
  __exportStar(require("./event-type/event-type.update.js"), exports);