@n8n/telemetry 1.7.0 → 1.9.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/dist/build.tsbuildinfo +1 -1
- package/dist/events/agents.d.ts +1 -0
- package/dist/events/agents.js +5 -0
- package/dist/events/agents.js.map +1 -1
- package/dist/events/context.d.ts +184 -0
- package/dist/events/context.js +140 -0
- package/dist/events/context.js.map +1 -0
- package/dist/events/credentials.d.ts +89 -0
- package/dist/events/credentials.js +75 -0
- package/dist/events/credentials.js.map +1 -1
- package/dist/events/instance-ai.d.ts +139 -12
- package/dist/events/instance-ai.js +103 -12
- package/dist/events/instance-ai.js.map +1 -1
- package/dist/events/mcp.d.ts +75 -0
- package/dist/events/mcp.js +38 -0
- package/dist/events/mcp.js.map +1 -1
- package/dist/events/node-type-policies.d.ts +107 -0
- package/dist/events/node-type-policies.js +101 -0
- package/dist/events/node-type-policies.js.map +1 -0
- package/dist/events/workflow.d.ts +11 -0
- package/dist/events/workflow.js +9 -0
- package/dist/events/workflow.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/telemetry-events.d.ts +602 -12
- package/dist/telemetry-events.js +4 -0
- package/dist/telemetry-events.js.map +1 -1
- package/package.json +7 -6
package/dist/events/mcp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.js","sourceRoot":"","sources":["../../src/events/mcp.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,sCAAkD;AAOlD,MAAM,WAAW,GAAG,MAAC;KACnB,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;KAC9C,QAAQ,EAAE;KACV,QAAQ,CAAC,qEAAqE,CAAC,CAAC;AAElF,MAAM,UAAU,GAAG,MAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ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C;iBAClB,OAAO,EAAE;iBACT,QAAQ,CAAC,qEAAqE,CAAC;SACjF,CAAC;KACF;IACD,iCAAiC,EAAE;QAClC,IAAI,EAAE,+CAA+C;QACrD,WAAW,EACV,mJAAmJ;QACpJ,UAAU,EAAE,MAAC,CAAC,MAAM,CAAC;YACpB,OAAO,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,mDAAmD,CAAC;YAClF,MAAM,EAAE,MAAC;iBACP,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;iBAChC,QAAQ,CACR,sJAAsJ,CACtJ;SACF,CAAC;KACF;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const POLICY_KINDS: readonly ['node-types', 'credential-types'];
|
|
3
|
+
export type PolicyKind = (typeof POLICY_KINDS)[number];
|
|
4
|
+
export declare const NODE_TYPE_POLICIES_TELEMETRY: {
|
|
5
|
+
readonly USER_SAVED_NODE_TYPE_POLICY: {
|
|
6
|
+
readonly name: "User saved node type policy";
|
|
7
|
+
readonly description: "A node type availability policy was saved for one scope through the composed write that the policy UI uses. One event per save, covering both the scope default action and its rules. Rule-level edits through the advanced document and attachment APIs report separately. The type counts and list report what this scope decides on its own, so at project scope they are the project layer before it composes with the instance policy.";
|
|
8
|
+
readonly properties: z.ZodObject<{
|
|
9
|
+
rule_count: z.ZodNumber;
|
|
10
|
+
allow_rule_count: z.ZodNumber;
|
|
11
|
+
deny_rule_count: z.ZodNumber;
|
|
12
|
+
delegate_rule_count: z.ZodNumber;
|
|
13
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
14
|
+
source: z.ZodEnum<{
|
|
15
|
+
environment: "environment";
|
|
16
|
+
user: "user";
|
|
17
|
+
}>;
|
|
18
|
+
kind: z.ZodEnum<{
|
|
19
|
+
"credential-types": "credential-types";
|
|
20
|
+
"node-types": "node-types";
|
|
21
|
+
}>;
|
|
22
|
+
scope: z.ZodEnum<{
|
|
23
|
+
instance: "instance";
|
|
24
|
+
project: "project";
|
|
25
|
+
}>;
|
|
26
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
27
|
+
default_action: z.ZodEnum<{
|
|
28
|
+
allow: "allow";
|
|
29
|
+
delegate: "delegate";
|
|
30
|
+
deny: "deny";
|
|
31
|
+
}>;
|
|
32
|
+
previous_default_action: z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
allow: "allow";
|
|
34
|
+
delegate: "delegate";
|
|
35
|
+
deny: "deny";
|
|
36
|
+
}>>;
|
|
37
|
+
is_first_write: z.ZodBoolean;
|
|
38
|
+
name_selector_count: z.ZodNumber;
|
|
39
|
+
package_selector_count: z.ZodNumber;
|
|
40
|
+
evaluated_type_count: z.ZodNumber;
|
|
41
|
+
blocked_type_count: z.ZodNumber;
|
|
42
|
+
allowed_type_count: z.ZodNumber;
|
|
43
|
+
delegated_type_count: z.ZodNumber;
|
|
44
|
+
blocked_types: z.ZodArray<z.ZodString>;
|
|
45
|
+
allowed_types: z.ZodArray<z.ZodString>;
|
|
46
|
+
previous_rule_count: z.ZodNullable<z.ZodNumber>;
|
|
47
|
+
shadow_warning_count: z.ZodNumber;
|
|
48
|
+
version: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
} & import("../define").TelemetryEventInput & {
|
|
51
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
52
|
+
};
|
|
53
|
+
readonly USER_UPDATED_NODE_TYPE_POLICY_DOCUMENT: {
|
|
54
|
+
readonly name: "User updated node type policy document";
|
|
55
|
+
readonly description: "A policy document was created, edited, or deleted through the advanced instance-only document API. The composed save that the policy UI uses reports as \"User saved node type policy\" instead. Rule counts describe the document after the operation, so a delete reports 0 and carries the deleted size in previous_rule_count.";
|
|
56
|
+
readonly properties: z.ZodObject<{
|
|
57
|
+
rule_count: z.ZodNumber;
|
|
58
|
+
allow_rule_count: z.ZodNumber;
|
|
59
|
+
deny_rule_count: z.ZodNumber;
|
|
60
|
+
delegate_rule_count: z.ZodNumber;
|
|
61
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
62
|
+
source: z.ZodEnum<{
|
|
63
|
+
environment: "environment";
|
|
64
|
+
user: "user";
|
|
65
|
+
}>;
|
|
66
|
+
kind: z.ZodEnum<{
|
|
67
|
+
"credential-types": "credential-types";
|
|
68
|
+
"node-types": "node-types";
|
|
69
|
+
}>;
|
|
70
|
+
operation: z.ZodEnum<{
|
|
71
|
+
created: "created";
|
|
72
|
+
deleted: "deleted";
|
|
73
|
+
updated: "updated";
|
|
74
|
+
}>;
|
|
75
|
+
policy_id: z.ZodString;
|
|
76
|
+
previous_rule_count: z.ZodNullable<z.ZodNumber>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
} & import("../define").TelemetryEventInput & {
|
|
79
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
80
|
+
};
|
|
81
|
+
readonly USER_UPDATED_NODE_TYPE_POLICY_ATTACHMENTS: {
|
|
82
|
+
readonly name: "User updated node type policy attachments";
|
|
83
|
+
readonly description: "The set of policy documents attached to one scope was replaced through the advanced instance-only attachment API. Reports the resulting set, not the individual add or remove.";
|
|
84
|
+
readonly properties: z.ZodObject<{
|
|
85
|
+
user_id: z.ZodOptional<z.ZodString>;
|
|
86
|
+
source: z.ZodEnum<{
|
|
87
|
+
environment: "environment";
|
|
88
|
+
user: "user";
|
|
89
|
+
}>;
|
|
90
|
+
kind: z.ZodEnum<{
|
|
91
|
+
"credential-types": "credential-types";
|
|
92
|
+
"node-types": "node-types";
|
|
93
|
+
}>;
|
|
94
|
+
scope: z.ZodEnum<{
|
|
95
|
+
instance: "instance";
|
|
96
|
+
project: "project";
|
|
97
|
+
}>;
|
|
98
|
+
project_id: z.ZodOptional<z.ZodString>;
|
|
99
|
+
scope_id: z.ZodString;
|
|
100
|
+
attachment_count: z.ZodNumber;
|
|
101
|
+
floor_attachment_count: z.ZodNumber;
|
|
102
|
+
previous_attachment_count: z.ZodNumber;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
} & import("../define").TelemetryEventInput & {
|
|
105
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NODE_TYPE_POLICIES_TELEMETRY = exports.POLICY_KINDS = void 0;
|
|
4
|
+
const v4_1 = require("zod/v4");
|
|
5
|
+
const define_1 = require("../define");
|
|
6
|
+
const userId = v4_1.z.string().optional();
|
|
7
|
+
const source = v4_1.z
|
|
8
|
+
.enum(['user', 'environment'])
|
|
9
|
+
.describe("'environment' is a bootstrap write from configuration, with no acting user");
|
|
10
|
+
const scope = v4_1.z
|
|
11
|
+
.enum(['instance', 'project'])
|
|
12
|
+
.describe('Which scope the policy was written at; project policies compose under instance');
|
|
13
|
+
exports.POLICY_KINDS = ['node-types', 'credential-types'];
|
|
14
|
+
const kind = v4_1.z
|
|
15
|
+
.enum(exports.POLICY_KINDS)
|
|
16
|
+
.describe('Which type family the policy governs. Credential type policies report through these same events instead of a second set, so this is what tells the two apart.');
|
|
17
|
+
const projectId = v4_1.z.string().optional().describe('Absent at instance scope');
|
|
18
|
+
const ruleCounts = {
|
|
19
|
+
rule_count: v4_1.z.number(),
|
|
20
|
+
allow_rule_count: v4_1.z.number(),
|
|
21
|
+
deny_rule_count: v4_1.z.number(),
|
|
22
|
+
delegate_rule_count: v4_1.z
|
|
23
|
+
.number()
|
|
24
|
+
.describe('Always 0 at project scope, which rejects the delegate action'),
|
|
25
|
+
};
|
|
26
|
+
exports.NODE_TYPE_POLICIES_TELEMETRY = (0, define_1.defineTelemetryEvents)({
|
|
27
|
+
USER_SAVED_NODE_TYPE_POLICY: {
|
|
28
|
+
name: 'User saved node type policy',
|
|
29
|
+
description: 'A node type availability policy was saved for one scope through the composed write that the policy UI uses. One event per save, covering both the scope default action and its rules. Rule-level edits through the advanced document and attachment APIs report separately. The type counts and list report what this scope decides on its own, so at project scope they are the project layer before it composes with the instance policy.',
|
|
30
|
+
properties: v4_1.z.object({
|
|
31
|
+
user_id: userId,
|
|
32
|
+
source,
|
|
33
|
+
kind,
|
|
34
|
+
scope,
|
|
35
|
+
project_id: projectId,
|
|
36
|
+
default_action: v4_1.z
|
|
37
|
+
.enum(['allow', 'deny', 'delegate'])
|
|
38
|
+
.describe('What the scope decides for a type that no rule matches'),
|
|
39
|
+
previous_default_action: v4_1.z
|
|
40
|
+
.enum(['allow', 'deny', 'delegate'])
|
|
41
|
+
.nullable()
|
|
42
|
+
.describe('Null on the first write to this scope, which had no stored default'),
|
|
43
|
+
is_first_write: v4_1.z
|
|
44
|
+
.boolean()
|
|
45
|
+
.describe('Whether this write created the scope; an unwritten scope allows every type'),
|
|
46
|
+
...ruleCounts,
|
|
47
|
+
name_selector_count: v4_1.z.number().describe('Rules that target one exact node type name'),
|
|
48
|
+
package_selector_count: v4_1.z.number().describe('Rules that target a whole node package'),
|
|
49
|
+
evaluated_type_count: v4_1.z
|
|
50
|
+
.number()
|
|
51
|
+
.describe('Node types this instance knows, and so the denominator for the counts below'),
|
|
52
|
+
blocked_type_count: v4_1.z.number(),
|
|
53
|
+
allowed_type_count: v4_1.z.number(),
|
|
54
|
+
delegated_type_count: v4_1.z
|
|
55
|
+
.number()
|
|
56
|
+
.describe('Types a project can opt into; always 0 at project scope'),
|
|
57
|
+
blocked_types: v4_1.z
|
|
58
|
+
.array(v4_1.z.string())
|
|
59
|
+
.describe('The node types this policy makes unavailable, capped at 100. Node type names, not user data. Compare the length against blocked_type_count to see whether the cap dropped any'),
|
|
60
|
+
allowed_types: v4_1.z
|
|
61
|
+
.array(v4_1.z.string())
|
|
62
|
+
.describe('The node types this policy leaves available, capped at 100 the same way'),
|
|
63
|
+
previous_rule_count: v4_1.z.number().nullable().describe('Null on the first write to this scope'),
|
|
64
|
+
shadow_warning_count: v4_1.z
|
|
65
|
+
.number()
|
|
66
|
+
.describe('Saved rules that can never match, because an earlier rule already covers them'),
|
|
67
|
+
version: v4_1.z.number().describe('The scope version after the write'),
|
|
68
|
+
}),
|
|
69
|
+
},
|
|
70
|
+
USER_UPDATED_NODE_TYPE_POLICY_DOCUMENT: {
|
|
71
|
+
name: 'User updated node type policy document',
|
|
72
|
+
description: 'A policy document was created, edited, or deleted through the advanced instance-only document API. The composed save that the policy UI uses reports as "User saved node type policy" instead. Rule counts describe the document after the operation, so a delete reports 0 and carries the deleted size in previous_rule_count.',
|
|
73
|
+
properties: v4_1.z.object({
|
|
74
|
+
user_id: userId,
|
|
75
|
+
source,
|
|
76
|
+
kind,
|
|
77
|
+
operation: v4_1.z.enum(['created', 'updated', 'deleted']),
|
|
78
|
+
policy_id: v4_1.z.string(),
|
|
79
|
+
...ruleCounts,
|
|
80
|
+
previous_rule_count: v4_1.z.number().nullable().describe('Null on a created document'),
|
|
81
|
+
}),
|
|
82
|
+
},
|
|
83
|
+
USER_UPDATED_NODE_TYPE_POLICY_ATTACHMENTS: {
|
|
84
|
+
name: 'User updated node type policy attachments',
|
|
85
|
+
description: 'The set of policy documents attached to one scope was replaced through the advanced instance-only attachment API. Reports the resulting set, not the individual add or remove.',
|
|
86
|
+
properties: v4_1.z.object({
|
|
87
|
+
user_id: userId,
|
|
88
|
+
source,
|
|
89
|
+
kind,
|
|
90
|
+
scope,
|
|
91
|
+
project_id: projectId,
|
|
92
|
+
scope_id: v4_1.z.string(),
|
|
93
|
+
attachment_count: v4_1.z.number(),
|
|
94
|
+
floor_attachment_count: v4_1.z
|
|
95
|
+
.number()
|
|
96
|
+
.describe('Attachments that a narrower scope cannot override'),
|
|
97
|
+
previous_attachment_count: v4_1.z.number(),
|
|
98
|
+
}),
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
//# sourceMappingURL=node-type-policies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-type-policies.js","sourceRo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CAAwC;QAC9C,WAAW,EACV,kUAAkU;QACnU,UAAU,EAAE,MAAC,CAAC,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM;YACf,MAAM;YACN,IAAI;YACJ,SAAS,EAAE,MAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;YACpD,SAAS,EAAE,MAAC,CAAC,MAAM,EAAE;YACrB,GAAG,UAAU;YACb,mBAAmB,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;SACjF,CAAC;KACF;IACD,yCAAyC,EAAE;QAC1C,IAAI,EAAE,2CAA2C;QACjD,WAAW,EACV,gLAAgL;QACjL,UAAU,EAAE,MAAC,CAAC,MAAM,CAAC;YACpB,OAAO,EAAE,MAAM;YACf,MAAM;YACN,IAAI;YACJ,KAAK;YACL,UAAU,EAAE,SAAS;YACrB,QAAQ,EAAE,MAAC,CAAC,MAAM,EAAE;YACpB,gBAAgB,EAAE,MAAC,CAAC,MAAM,EAAE;YAC5B,sBAAsB,EAAE,MAAC;iBACvB,MAAM,EAAE;iBACR,QAAQ,CAAC,mDAAmD,CAAC;YAC/D,yBAAyB,EAAE,MAAC,CAAC,MAAM,EAAE;SACrC,CAAC;KACF;CACD,CAAC,CAAC"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
export declare const WORKFLOW_TELEMETRY: {
|
|
3
|
+
readonly USER_REQUESTED_WORKFLOW_TEST: {
|
|
4
|
+
readonly name: "User requested workflow test";
|
|
5
|
+
readonly description: "The user started a manual workflow test from the AI Assistant setup panel. This event does not report execution success.";
|
|
6
|
+
readonly properties: z.ZodObject<{
|
|
7
|
+
source: z.ZodLiteral<"instance_ai_setup_panel">;
|
|
8
|
+
workflow_id: z.ZodString;
|
|
9
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
} & import("../define").TelemetryEventInput & {
|
|
12
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
13
|
+
};
|
|
3
14
|
readonly MULTIPLE_NODES_SELECTED: {
|
|
4
15
|
readonly name: "User selected multiple nodes";
|
|
5
16
|
readonly description: "The user has two or more nodes selected on the workflow canvas. Fires once the selection settles (debounced), covering all selection paths — rubber-band drag, shift-click, and select-all — so intermediate states during a drag are not reported. Groups are excluded from the count.";
|
package/dist/events/workflow.js
CHANGED
|
@@ -4,6 +4,15 @@ exports.WORKFLOW_TELEMETRY = void 0;
|
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
5
|
const define_1 = require("../define");
|
|
6
6
|
exports.WORKFLOW_TELEMETRY = (0, define_1.defineTelemetryEvents)({
|
|
7
|
+
USER_REQUESTED_WORKFLOW_TEST: {
|
|
8
|
+
name: 'User requested workflow test',
|
|
9
|
+
description: 'The user started a manual workflow test from the AI Assistant setup panel. This event does not report execution success.',
|
|
10
|
+
properties: v4_1.z.object({
|
|
11
|
+
source: v4_1.z.literal('instance_ai_setup_panel'),
|
|
12
|
+
workflow_id: v4_1.z.string(),
|
|
13
|
+
thread_id: v4_1.z.string().optional(),
|
|
14
|
+
}),
|
|
15
|
+
},
|
|
7
16
|
MULTIPLE_NODES_SELECTED: {
|
|
8
17
|
name: 'User selected multiple nodes',
|
|
9
18
|
description: 'The user has two or more nodes selected on the workflow canvas. Fires once the selection settles (debounced), covering all selection paths — rubber-band drag, shift-click, and select-all — so intermediate states during a drag are not reported. Groups are excluded from the count.',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/events/workflow.ts"],"names":[],"mappings":";;;AAAA,+BAA2B;AAE3B,sCAAkD;AAErC,QAAA,kBAAkB,GAAG,IAAA,8BAAqB,EAAC;IACvD,uBAAuB,EAAE;QACxB,IAAI,EAAE,8BAA8B;QACpC,WAAW,EACV,yRAAyR;QAC1R,UAAU,EAAE,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ACpC,WAAW,EACV,yRAAyR;QAC1R,UAAU,EAAE,MAAC,CAAC,MAAM,CAAC;YACpB,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;YACvB,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,qDAAqD,CAAC;YACtF,QAAQ,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;SACrF,CAAC;KACF;IACD,eAAe,EAAE;QAChB,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACV,gQAAgQ;QACjQ,UAAU,EAAE,MAAC,CAAC,MAAM,CAAC;YACpB,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;YACvB,YAAY,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;YAClF,gBAAgB,EAAE,MAAC;iBACjB,MAAM,EAAE;iBACR,QAAQ,CAAC,uEAAuE,CAAC;YACnF,aAAa,EAAE,MAAC;iBACd,MAAM,EAAE;iBACR,QAAQ,CAAC,sEAAsE,CAAC;YAClF,UAAU,EAAE,MAAC;iBACX,OAAO,EAAE;iBACT,QAAQ,CAAC,uEAAuE,CAAC;SACnF,CAAC;KACF;CACD,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export type { TelemetryCatalogEntry, TelemetryCatalogProperty } from './catalog'
|
|
|
3
3
|
export { POSTHOG_EVENTS_BLACKLIST } from './constants';
|
|
4
4
|
export { defineTelemetryEvents } from './define';
|
|
5
5
|
export type { InferTelemetryProps, TelemetryEventDef, TelemetryEventInput, TelemetryEventRegistry, } from './define';
|
|
6
|
+
export { POLICY_KINDS } from './events/node-type-policies';
|
|
7
|
+
export type { PolicyKind } from './events/node-type-policies';
|
|
6
8
|
export { redactTelemetryProperties, redactTelemetryText } from './redaction';
|
|
7
9
|
export type { TelemetryTextOptions } from './redaction';
|
|
8
10
|
export { collectDuplicateNames, validateEntrySchemas } from './registry-checks';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TELEMETRY_EVENT = exports.validateEntrySchemas = exports.collectDuplicateNames = exports.redactTelemetryText = exports.redactTelemetryProperties = exports.defineTelemetryEvents = exports.POSTHOG_EVENTS_BLACKLIST = exports.formatCatalog = exports.buildCatalog = void 0;
|
|
3
|
+
exports.TELEMETRY_EVENT = exports.validateEntrySchemas = exports.collectDuplicateNames = exports.redactTelemetryText = exports.redactTelemetryProperties = exports.POLICY_KINDS = exports.defineTelemetryEvents = exports.POSTHOG_EVENTS_BLACKLIST = exports.formatCatalog = exports.buildCatalog = void 0;
|
|
4
4
|
var catalog_1 = require("./catalog");
|
|
5
5
|
Object.defineProperty(exports, "buildCatalog", { enumerable: true, get: function () { return catalog_1.buildCatalog; } });
|
|
6
6
|
Object.defineProperty(exports, "formatCatalog", { enumerable: true, get: function () { return catalog_1.formatCatalog; } });
|
|
@@ -8,6 +8,8 @@ var constants_1 = require("./constants");
|
|
|
8
8
|
Object.defineProperty(exports, "POSTHOG_EVENTS_BLACKLIST", { enumerable: true, get: function () { return constants_1.POSTHOG_EVENTS_BLACKLIST; } });
|
|
9
9
|
var define_1 = require("./define");
|
|
10
10
|
Object.defineProperty(exports, "defineTelemetryEvents", { enumerable: true, get: function () { return define_1.defineTelemetryEvents; } });
|
|
11
|
+
var node_type_policies_1 = require("./events/node-type-policies");
|
|
12
|
+
Object.defineProperty(exports, "POLICY_KINDS", { enumerable: true, get: function () { return node_type_policies_1.POLICY_KINDS; } });
|
|
11
13
|
var redaction_1 = require("./redaction");
|
|
12
14
|
Object.defineProperty(exports, "redactTelemetryProperties", { enumerable: true, get: function () { return redaction_1.redactTelemetryProperties; } });
|
|
13
15
|
Object.defineProperty(exports, "redactTelemetryText", { enumerable: true, get: function () { return redaction_1.redactTelemetryText; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAwD;AAA/C,uGAAA,YAAY,OAAA;AAAE,wGAAA,aAAa,OAAA;AAEpC,yCAAuD;AAA9C,qHAAA,wBAAwB,OAAA;AACjC,mCAAiD;AAAxC,+GAAA,qBAAqB,OAAA;AAO9B,yCAA6E;AAApE,sHAAA,yBAAyB,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAEvD,qDAAgF;AAAvE,wHAAA,qBAAqB,OAAA;AAAE,uHAAA,oBAAoB,OAAA;AACpD,uDAAqD;AAA5C,mHAAA,eAAe,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qCAAwD;AAA/C,uGAAA,YAAY,OAAA;AAAE,wGAAA,aAAa,OAAA;AAEpC,yCAAuD;AAA9C,qHAAA,wBAAwB,OAAA;AACjC,mCAAiD;AAAxC,+GAAA,qBAAqB,OAAA;AAO9B,kEAA2D;AAAlD,kHAAA,YAAY,OAAA;AAErB,yCAA6E;AAApE,sHAAA,yBAAyB,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAEvD,qDAAgF;AAAvE,wHAAA,qBAAqB,OAAA;AAAE,uHAAA,oBAAoB,OAAA;AACpD,uDAAqD;AAA5C,mHAAA,eAAe,OAAA"}
|