@n8n/telemetry 1.0.0 → 1.1.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/LICENSE_EE.md +27 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/events/agents.d.ts +516 -0
- package/dist/events/agents.js +362 -0
- package/dist/events/agents.js.map +1 -0
- package/dist/events/platform.d.ts +16 -0
- package/dist/events/platform.js +10 -0
- package/dist/events/platform.js.map +1 -1
- package/dist/telemetry-events.d.ts +531 -0
- package/dist/telemetry-events.js +2 -0
- package/dist/telemetry-events.js.map +1 -1
- package/package.json +14 -3
|
@@ -10,5 +10,536 @@ export declare const TELEMETRY_EVENT: {
|
|
|
10
10
|
} & import("./define").TelemetryEventInput & {
|
|
11
11
|
readonly getValidationError: (properties: unknown) => string | null;
|
|
12
12
|
};
|
|
13
|
+
readonly TASK_RUNNER_DISCONNECTED: {
|
|
14
|
+
readonly name: "Task runner disconnected";
|
|
15
|
+
readonly description: "The broker tore down a task runner connection because the runner was unhealthy: it failed a heartbeat check, or was reported unresponsive after it stopped acknowledging or offering tasks. Normal shutdowns are not reported.";
|
|
16
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
17
|
+
reason: import("zod/v4").ZodEnum<{
|
|
18
|
+
"failed-heartbeat-check": "failed-heartbeat-check";
|
|
19
|
+
"runner-unresponsive": "runner-unresponsive";
|
|
20
|
+
}>;
|
|
21
|
+
mode: import("zod/v4").ZodEnum<{
|
|
22
|
+
external: "external";
|
|
23
|
+
internal: "internal";
|
|
24
|
+
}>;
|
|
25
|
+
}, import("zod/v4/core").$strip>;
|
|
26
|
+
} & import("./define").TelemetryEventInput & {
|
|
27
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
AGENTS: {
|
|
31
|
+
readonly AGENT_PUBLISHED: {
|
|
32
|
+
readonly name: "Agent published";
|
|
33
|
+
readonly description: "An agent version became the active published version, from any surface (editor Publish button, builder publish_agent tool, chat-channel connect auto-publish, or Slack app setup auto-publish). Does not fire for idempotent no-op publishes.";
|
|
34
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
35
|
+
agent_id: import("zod/v4").ZodString;
|
|
36
|
+
project_id: import("zod/v4").ZodString;
|
|
37
|
+
user_id: import("zod/v4").ZodString;
|
|
38
|
+
source: import("zod/v4").ZodEnum<{
|
|
39
|
+
builder: "builder";
|
|
40
|
+
channel_connect: "channel_connect";
|
|
41
|
+
editor: "editor";
|
|
42
|
+
slack_setup: "slack_setup";
|
|
43
|
+
}>;
|
|
44
|
+
version_id: import("zod/v4").ZodString;
|
|
45
|
+
}, import("zod/v4/core").$strip>;
|
|
46
|
+
} & import("./define").TelemetryEventInput & {
|
|
47
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
48
|
+
};
|
|
49
|
+
readonly AGENT_UNPUBLISHED: {
|
|
50
|
+
readonly name: "Agent unpublished";
|
|
51
|
+
readonly description: "An agent was unpublished, clearing its active version, from either the editor Unpublish button or the builder unpublish_agent tool.";
|
|
52
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
53
|
+
agent_id: import("zod/v4").ZodString;
|
|
54
|
+
project_id: import("zod/v4").ZodString;
|
|
55
|
+
user_id: import("zod/v4").ZodString;
|
|
56
|
+
source: import("zod/v4").ZodEnum<{
|
|
57
|
+
builder: "builder";
|
|
58
|
+
editor: "editor";
|
|
59
|
+
}>;
|
|
60
|
+
}, import("zod/v4/core").$strip>;
|
|
61
|
+
} & import("./define").TelemetryEventInput & {
|
|
62
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
63
|
+
};
|
|
64
|
+
readonly BUILDER_ADDED_TOOLS: {
|
|
65
|
+
readonly name: "Builder added tools to agent";
|
|
66
|
+
readonly description: "The Instance AI builder saved an agent config that added a tool, mirroring the frontend \"User added tools to agent\" event so both sources can be aggregated together.";
|
|
67
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
68
|
+
agent_id: import("zod/v4").ZodString;
|
|
69
|
+
user_id: import("zod/v4").ZodString;
|
|
70
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
71
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
72
|
+
tool_added: import("zod/v4").ZodString;
|
|
73
|
+
tools: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
74
|
+
status: import("zod/v4").ZodEnum<{
|
|
75
|
+
draft: "draft";
|
|
76
|
+
production: "production";
|
|
77
|
+
}>;
|
|
78
|
+
}, import("zod/v4/core").$strip>;
|
|
79
|
+
} & import("./define").TelemetryEventInput & {
|
|
80
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
81
|
+
};
|
|
82
|
+
readonly BUILDER_ADDED_SKILLS: {
|
|
83
|
+
readonly name: "Builder added skills to agent";
|
|
84
|
+
readonly description: "The Instance AI builder saved an agent config that added a skill, mirroring the frontend \"User added skills to agent\" event.";
|
|
85
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
86
|
+
agent_id: import("zod/v4").ZodString;
|
|
87
|
+
user_id: import("zod/v4").ZodString;
|
|
88
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
89
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
90
|
+
skill_added: import("zod/v4").ZodString;
|
|
91
|
+
skills: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
92
|
+
status: import("zod/v4").ZodEnum<{
|
|
93
|
+
draft: "draft";
|
|
94
|
+
production: "production";
|
|
95
|
+
}>;
|
|
96
|
+
}, import("zod/v4/core").$strip>;
|
|
97
|
+
} & import("./define").TelemetryEventInput & {
|
|
98
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
99
|
+
};
|
|
100
|
+
readonly BUILDER_ADDED_TASKS: {
|
|
101
|
+
readonly name: "Builder added tasks to agent";
|
|
102
|
+
readonly description: "The Instance AI builder saved an agent config that added a scheduled task, mirroring the frontend \"User added tasks to agent\" event.";
|
|
103
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
104
|
+
agent_id: import("zod/v4").ZodString;
|
|
105
|
+
user_id: import("zod/v4").ZodString;
|
|
106
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
107
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
108
|
+
task_added: import("zod/v4").ZodString;
|
|
109
|
+
tasks: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
110
|
+
status: import("zod/v4").ZodEnum<{
|
|
111
|
+
draft: "draft";
|
|
112
|
+
production: "production";
|
|
113
|
+
}>;
|
|
114
|
+
}, import("zod/v4/core").$strip>;
|
|
115
|
+
} & import("./define").TelemetryEventInput & {
|
|
116
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
117
|
+
};
|
|
118
|
+
readonly BUILDER_REMOVED_TASKS: {
|
|
119
|
+
readonly name: "Builder removed tasks from agent";
|
|
120
|
+
readonly description: "The Instance AI builder saved an agent config that removed a scheduled task, mirroring the frontend \"User removed tasks from agent\" event.";
|
|
121
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
122
|
+
agent_id: import("zod/v4").ZodString;
|
|
123
|
+
user_id: import("zod/v4").ZodString;
|
|
124
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
125
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
126
|
+
task_removed: import("zod/v4").ZodString;
|
|
127
|
+
tasks: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
128
|
+
status: import("zod/v4").ZodEnum<{
|
|
129
|
+
draft: "draft";
|
|
130
|
+
production: "production";
|
|
131
|
+
}>;
|
|
132
|
+
}, import("zod/v4/core").$strip>;
|
|
133
|
+
} & import("./define").TelemetryEventInput & {
|
|
134
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
135
|
+
};
|
|
136
|
+
readonly BUILDER_ADDED_TRIGGER: {
|
|
137
|
+
readonly name: "Builder added trigger to agent";
|
|
138
|
+
readonly description: "The Instance AI builder connected a chat channel to the target agent via the configure_channel tool, mirroring the frontend \"User added trigger to agent\" event.";
|
|
139
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
140
|
+
agent_id: import("zod/v4").ZodString;
|
|
141
|
+
user_id: import("zod/v4").ZodString;
|
|
142
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
143
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
144
|
+
trigger_type: import("zod/v4").ZodString;
|
|
145
|
+
}, import("zod/v4/core").$strip>;
|
|
146
|
+
} & import("./define").TelemetryEventInput & {
|
|
147
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
148
|
+
};
|
|
149
|
+
readonly BUILDER_ASKED_QUESTIONS: {
|
|
150
|
+
readonly name: "Builder asked questions";
|
|
151
|
+
readonly description: "The Instance AI builder used the ask_questions tool and suspended, showing the user a batch of questions to determine the shape of the agent.";
|
|
152
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
153
|
+
agent_id: import("zod/v4").ZodString;
|
|
154
|
+
user_id: import("zod/v4").ZodString;
|
|
155
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
156
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
157
|
+
question_count: import("zod/v4").ZodNumber;
|
|
158
|
+
question_types: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
159
|
+
}, import("zod/v4/core").$strip>;
|
|
160
|
+
} & import("./define").TelemetryEventInput & {
|
|
161
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
162
|
+
};
|
|
163
|
+
readonly USER_ANSWERED_BUILDER_QUESTIONS: {
|
|
164
|
+
readonly name: "User answered builder questions";
|
|
165
|
+
readonly description: "The user resumed a builder ask_questions card by answering, skipping, or dismissing it.";
|
|
166
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
167
|
+
agent_id: import("zod/v4").ZodString;
|
|
168
|
+
user_id: import("zod/v4").ZodString;
|
|
169
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
170
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
171
|
+
outcome: import("zod/v4").ZodEnum<{
|
|
172
|
+
answered: "answered";
|
|
173
|
+
dismissed: "dismissed";
|
|
174
|
+
skipped: "skipped";
|
|
175
|
+
}>;
|
|
176
|
+
answered_count: import("zod/v4").ZodNumber;
|
|
177
|
+
skipped_count: import("zod/v4").ZodNumber;
|
|
178
|
+
}, import("zod/v4/core").$strip>;
|
|
179
|
+
} & import("./define").TelemetryEventInput & {
|
|
180
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
181
|
+
};
|
|
182
|
+
readonly BUILDER_REQUESTED_CREDENTIAL: {
|
|
183
|
+
readonly name: "Builder requested credential";
|
|
184
|
+
readonly description: "The Instance AI builder used the ask_credential (or ask_embedding_credential) tool and suspended to show a credential picker card. Does not fire when the request auto-resolves without showing a card.";
|
|
185
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
186
|
+
agent_id: import("zod/v4").ZodString;
|
|
187
|
+
user_id: import("zod/v4").ZodString;
|
|
188
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
189
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
190
|
+
credential_type: import("zod/v4").ZodString;
|
|
191
|
+
}, import("zod/v4/core").$strip>;
|
|
192
|
+
} & import("./define").TelemetryEventInput & {
|
|
193
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
194
|
+
};
|
|
195
|
+
readonly USER_PROVIDED_CREDENTIAL: {
|
|
196
|
+
readonly name: "User provided credential";
|
|
197
|
+
readonly description: "The user resumed a builder credential picker card by selecting a credential or skipping.";
|
|
198
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
199
|
+
agent_id: import("zod/v4").ZodString;
|
|
200
|
+
user_id: import("zod/v4").ZodString;
|
|
201
|
+
thread_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
202
|
+
run_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
203
|
+
credential_type: import("zod/v4").ZodString;
|
|
204
|
+
outcome: import("zod/v4").ZodEnum<{
|
|
205
|
+
provided: "provided";
|
|
206
|
+
skipped: "skipped";
|
|
207
|
+
}>;
|
|
208
|
+
}, import("zod/v4/core").$strip>;
|
|
209
|
+
} & import("./define").TelemetryEventInput & {
|
|
210
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
211
|
+
};
|
|
212
|
+
readonly USER_CLICKED_NEW_AGENT: {
|
|
213
|
+
readonly name: "User clicked new agent";
|
|
214
|
+
readonly description: "The user clicked a new-agent entry point (button, dropdown, or card).";
|
|
215
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
216
|
+
source: import("zod/v4").ZodEnum<{
|
|
217
|
+
button: "button";
|
|
218
|
+
card: "card";
|
|
219
|
+
dropdown: "dropdown";
|
|
220
|
+
}>;
|
|
221
|
+
session_id: import("zod/v4").ZodString;
|
|
222
|
+
}, import("zod/v4/core").$strip>;
|
|
223
|
+
} & import("./define").TelemetryEventInput & {
|
|
224
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
225
|
+
};
|
|
226
|
+
readonly USER_CREATED_AGENT: {
|
|
227
|
+
readonly name: "User created agent";
|
|
228
|
+
readonly description: "A draft agent was created, from the blank new-agent page or inline from a workflow surface (source carries the entry point).";
|
|
229
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
230
|
+
agent_id: import("zod/v4").ZodString;
|
|
231
|
+
source: import("zod/v4").ZodString;
|
|
232
|
+
}, import("zod/v4/core").$strip>;
|
|
233
|
+
} & import("./define").TelemetryEventInput & {
|
|
234
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
235
|
+
};
|
|
236
|
+
readonly USER_SUBMITTED_MESSAGE_TO_AGENT: {
|
|
237
|
+
readonly name: "User submitted message to agent";
|
|
238
|
+
readonly description: "The user sent a test-mode chat message to an agent, with a fingerprint of the agent config at send time.";
|
|
239
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
240
|
+
agent_id: import("zod/v4").ZodString;
|
|
241
|
+
mode: import("zod/v4").ZodLiteral<"test">;
|
|
242
|
+
status: import("zod/v4").ZodEnum<{
|
|
243
|
+
draft: "draft";
|
|
244
|
+
production: "production";
|
|
245
|
+
}>;
|
|
246
|
+
agent_config: import("zod/v4").ZodObject<{
|
|
247
|
+
instructions: import("zod/v4").ZodString;
|
|
248
|
+
tools: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
249
|
+
skills: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
250
|
+
tasks: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
251
|
+
triggers: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
252
|
+
vector_stores: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
253
|
+
memory: import("zod/v4").ZodNullable<import("zod/v4").ZodObject<{
|
|
254
|
+
enabled: import("zod/v4").ZodBoolean;
|
|
255
|
+
storage: import("zod/v4").ZodLiteral<"n8n">;
|
|
256
|
+
}, import("zod/v4/core").$strip>>;
|
|
257
|
+
model: import("zod/v4").ZodNullable<import("zod/v4").ZodString>;
|
|
258
|
+
config_version: import("zod/v4").ZodString;
|
|
259
|
+
}, import("zod/v4/core").$strip>;
|
|
260
|
+
session_id: import("zod/v4").ZodString;
|
|
261
|
+
}, import("zod/v4/core").$strip>;
|
|
262
|
+
} & import("./define").TelemetryEventInput & {
|
|
263
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
264
|
+
};
|
|
265
|
+
readonly USER_EDITED_AGENT_CONFIG: {
|
|
266
|
+
readonly name: "User edited agent config";
|
|
267
|
+
readonly description: "A builder autosave persisted a config edit; one event fires per changed part.";
|
|
268
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
269
|
+
agent_id: import("zod/v4").ZodString;
|
|
270
|
+
part: import("zod/v4").ZodEnum<{
|
|
271
|
+
description: "description";
|
|
272
|
+
instructions: "instructions";
|
|
273
|
+
memory: "memory";
|
|
274
|
+
model: "model";
|
|
275
|
+
name: "name";
|
|
276
|
+
skills: "skills";
|
|
277
|
+
subAgents: "subAgents";
|
|
278
|
+
tools: "tools";
|
|
279
|
+
triggers: "triggers";
|
|
280
|
+
vectorStores: "vectorStores";
|
|
281
|
+
}>;
|
|
282
|
+
config_version: import("zod/v4").ZodString;
|
|
283
|
+
status: import("zod/v4").ZodEnum<{
|
|
284
|
+
draft: "draft";
|
|
285
|
+
production: "production";
|
|
286
|
+
}>;
|
|
287
|
+
session_id: import("zod/v4").ZodString;
|
|
288
|
+
}, import("zod/v4/core").$strip>;
|
|
289
|
+
} & import("./define").TelemetryEventInput & {
|
|
290
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
291
|
+
};
|
|
292
|
+
readonly USER_ADDED_TRIGGER_TO_AGENT: {
|
|
293
|
+
readonly name: "User added trigger to agent";
|
|
294
|
+
readonly description: "The user connected a chat trigger to an agent from the builder.";
|
|
295
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
296
|
+
agent_id: import("zod/v4").ZodString;
|
|
297
|
+
trigger_type: import("zod/v4").ZodString;
|
|
298
|
+
triggers: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
299
|
+
config_version: import("zod/v4").ZodString;
|
|
300
|
+
status: import("zod/v4").ZodEnum<{
|
|
301
|
+
draft: "draft";
|
|
302
|
+
production: "production";
|
|
303
|
+
}>;
|
|
304
|
+
session_id: import("zod/v4").ZodString;
|
|
305
|
+
}, import("zod/v4/core").$strip>;
|
|
306
|
+
} & import("./define").TelemetryEventInput & {
|
|
307
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
308
|
+
};
|
|
309
|
+
readonly USER_ADDED_TOOLS_TO_AGENT: {
|
|
310
|
+
readonly name: "User added tools to agent";
|
|
311
|
+
readonly description: "A saved builder config added a tool; one event fires per newly added tool. Twin of the backend \"Builder added tools to agent\" event.";
|
|
312
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
313
|
+
agent_id: import("zod/v4").ZodString;
|
|
314
|
+
tool_added: import("zod/v4").ZodString;
|
|
315
|
+
tools: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
316
|
+
config_version: import("zod/v4").ZodString;
|
|
317
|
+
status: import("zod/v4").ZodEnum<{
|
|
318
|
+
draft: "draft";
|
|
319
|
+
production: "production";
|
|
320
|
+
}>;
|
|
321
|
+
session_id: import("zod/v4").ZodString;
|
|
322
|
+
}, import("zod/v4/core").$strip>;
|
|
323
|
+
} & import("./define").TelemetryEventInput & {
|
|
324
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
325
|
+
};
|
|
326
|
+
readonly USER_ADDED_SKILLS_TO_AGENT: {
|
|
327
|
+
readonly name: "User added skills to agent";
|
|
328
|
+
readonly description: "A saved builder config added a skill; one event fires per newly added skill. Twin of the backend \"Builder added skills to agent\" event.";
|
|
329
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
330
|
+
agent_id: import("zod/v4").ZodString;
|
|
331
|
+
skill_added: import("zod/v4").ZodString;
|
|
332
|
+
skills: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
333
|
+
config_version: import("zod/v4").ZodString;
|
|
334
|
+
status: import("zod/v4").ZodEnum<{
|
|
335
|
+
draft: "draft";
|
|
336
|
+
production: "production";
|
|
337
|
+
}>;
|
|
338
|
+
session_id: import("zod/v4").ZodString;
|
|
339
|
+
}, import("zod/v4/core").$strip>;
|
|
340
|
+
} & import("./define").TelemetryEventInput & {
|
|
341
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
342
|
+
};
|
|
343
|
+
readonly USER_ADDED_TASKS_TO_AGENT: {
|
|
344
|
+
readonly name: "User added tasks to agent";
|
|
345
|
+
readonly description: "A saved builder config added a scheduled task; one event fires per newly added task. Twin of the backend \"Builder added tasks to agent\" event.";
|
|
346
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
347
|
+
agent_id: import("zod/v4").ZodString;
|
|
348
|
+
task_added: import("zod/v4").ZodString;
|
|
349
|
+
tasks: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
350
|
+
config_version: import("zod/v4").ZodString;
|
|
351
|
+
status: import("zod/v4").ZodEnum<{
|
|
352
|
+
draft: "draft";
|
|
353
|
+
production: "production";
|
|
354
|
+
}>;
|
|
355
|
+
session_id: import("zod/v4").ZodString;
|
|
356
|
+
}, import("zod/v4/core").$strip>;
|
|
357
|
+
} & import("./define").TelemetryEventInput & {
|
|
358
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
359
|
+
};
|
|
360
|
+
readonly USER_REMOVED_TASKS_FROM_AGENT: {
|
|
361
|
+
readonly name: "User removed tasks from agent";
|
|
362
|
+
readonly description: "A saved builder config removed a scheduled task; one event fires per removed task. Twin of the backend \"Builder removed tasks from agent\" event.";
|
|
363
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
364
|
+
agent_id: import("zod/v4").ZodString;
|
|
365
|
+
task_removed: import("zod/v4").ZodString;
|
|
366
|
+
tasks: import("zod/v4").ZodArray<import("zod/v4").ZodString>;
|
|
367
|
+
config_version: import("zod/v4").ZodString;
|
|
368
|
+
status: import("zod/v4").ZodEnum<{
|
|
369
|
+
draft: "draft";
|
|
370
|
+
production: "production";
|
|
371
|
+
}>;
|
|
372
|
+
session_id: import("zod/v4").ZodString;
|
|
373
|
+
}, import("zod/v4/core").$strip>;
|
|
374
|
+
} & import("./define").TelemetryEventInput & {
|
|
375
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
376
|
+
};
|
|
377
|
+
readonly USER_PUBLISHED_AGENT: {
|
|
378
|
+
readonly name: "User published agent";
|
|
379
|
+
readonly description: "The user published an agent from the builder.";
|
|
380
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
381
|
+
agent_id: import("zod/v4").ZodString;
|
|
382
|
+
config_version: import("zod/v4").ZodString;
|
|
383
|
+
status: import("zod/v4").ZodLiteral<"production">;
|
|
384
|
+
session_id: import("zod/v4").ZodString;
|
|
385
|
+
}, import("zod/v4/core").$strip>;
|
|
386
|
+
} & import("./define").TelemetryEventInput & {
|
|
387
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
388
|
+
};
|
|
389
|
+
readonly USER_UNPUBLISHED_AGENT: {
|
|
390
|
+
readonly name: "User unpublished agent";
|
|
391
|
+
readonly description: "The user unpublished an agent from the builder.";
|
|
392
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
393
|
+
agent_id: import("zod/v4").ZodString;
|
|
394
|
+
status: import("zod/v4").ZodLiteral<"draft">;
|
|
395
|
+
session_id: import("zod/v4").ZodString;
|
|
396
|
+
}, import("zod/v4/core").$strip>;
|
|
397
|
+
} & import("./define").TelemetryEventInput & {
|
|
398
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
399
|
+
};
|
|
400
|
+
readonly USER_OPENED_AGENT_TOOL: {
|
|
401
|
+
readonly name: "User opened agent tool";
|
|
402
|
+
readonly description: "The user opened a tool from the builder capabilities list.";
|
|
403
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
404
|
+
agent_id: import("zod/v4").ZodString;
|
|
405
|
+
tool_type: import("zod/v4").ZodString;
|
|
406
|
+
session_id: import("zod/v4").ZodString;
|
|
407
|
+
}, import("zod/v4/core").$strip>;
|
|
408
|
+
} & import("./define").TelemetryEventInput & {
|
|
409
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
410
|
+
};
|
|
411
|
+
readonly USER_OPENED_AGENT_SKILL: {
|
|
412
|
+
readonly name: "User opened agent skill";
|
|
413
|
+
readonly description: "The user opened a skill from the builder capabilities list.";
|
|
414
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
415
|
+
agent_id: import("zod/v4").ZodString;
|
|
416
|
+
skill_id: import("zod/v4").ZodString;
|
|
417
|
+
session_id: import("zod/v4").ZodString;
|
|
418
|
+
}, import("zod/v4/core").$strip>;
|
|
419
|
+
} & import("./define").TelemetryEventInput & {
|
|
420
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
421
|
+
};
|
|
422
|
+
readonly USER_OPENED_ADD_SKILL_MODAL: {
|
|
423
|
+
readonly name: "User opened add skill modal";
|
|
424
|
+
readonly description: "The user opened the add-skill modal in the builder.";
|
|
425
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
426
|
+
agent_id: import("zod/v4").ZodString;
|
|
427
|
+
session_id: import("zod/v4").ZodString;
|
|
428
|
+
}, import("zod/v4/core").$strip>;
|
|
429
|
+
} & import("./define").TelemetryEventInput & {
|
|
430
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
431
|
+
};
|
|
432
|
+
readonly USER_IMPORTED_AGENT_SKILL: {
|
|
433
|
+
readonly name: "User imported agent skill";
|
|
434
|
+
readonly description: "The user imported a skill into an agent from a skill file or folder, with success or error outcome.";
|
|
435
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
436
|
+
agent_id: import("zod/v4").ZodString;
|
|
437
|
+
source: import("zod/v4").ZodEnum<{
|
|
438
|
+
folder: "folder";
|
|
439
|
+
skill_file: "skill_file";
|
|
440
|
+
}>;
|
|
441
|
+
status: import("zod/v4").ZodEnum<{
|
|
442
|
+
error: "error";
|
|
443
|
+
success: "success";
|
|
444
|
+
}>;
|
|
445
|
+
reference_count: import("zod/v4").ZodNumber;
|
|
446
|
+
error: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
447
|
+
session_id: import("zod/v4").ZodString;
|
|
448
|
+
}, import("zod/v4/core").$strip>;
|
|
449
|
+
} & import("./define").TelemetryEventInput & {
|
|
450
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
451
|
+
};
|
|
452
|
+
readonly USER_STARTED_ADDING_AGENT_TOOL: {
|
|
453
|
+
readonly name: "User started adding agent tool";
|
|
454
|
+
readonly description: "The user clicked Connect on an available row in the tools modal, starting a new tool flow.";
|
|
455
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
456
|
+
tool_type: import("zod/v4").ZodEnum<{
|
|
457
|
+
custom: "custom";
|
|
458
|
+
node: "node";
|
|
459
|
+
workflow: "workflow";
|
|
460
|
+
}>;
|
|
461
|
+
source: import("zod/v4").ZodLiteral<"manual">;
|
|
462
|
+
agent_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
463
|
+
}, import("zod/v4/core").$strip>;
|
|
464
|
+
} & import("./define").TelemetryEventInput & {
|
|
465
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
466
|
+
};
|
|
467
|
+
readonly USER_ADDED_AGENT_TOOL: {
|
|
468
|
+
readonly name: "User added agent tool";
|
|
469
|
+
readonly description: "A new tool ref or MCP server was saved to an agent for the first time from the tools modal.";
|
|
470
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
471
|
+
node_type: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
472
|
+
workflow: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
473
|
+
custom_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
474
|
+
server_name: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
475
|
+
tool_type: import("zod/v4").ZodEnum<{
|
|
476
|
+
custom: "custom";
|
|
477
|
+
mcpServer: "mcpServer";
|
|
478
|
+
node: "node";
|
|
479
|
+
workflow: "workflow";
|
|
480
|
+
}>;
|
|
481
|
+
has_approval: import("zod/v4").ZodBoolean;
|
|
482
|
+
authentication: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
483
|
+
agent_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
484
|
+
}, import("zod/v4/core").$strip>;
|
|
485
|
+
} & import("./define").TelemetryEventInput & {
|
|
486
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
487
|
+
};
|
|
488
|
+
readonly USER_EDITED_AGENT_TOOL: {
|
|
489
|
+
readonly name: "User edited agent tool";
|
|
490
|
+
readonly description: "An existing agent tool's configuration was saved from the tools modal.";
|
|
491
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
492
|
+
node_type: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
493
|
+
workflow: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
494
|
+
custom_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
495
|
+
server_name: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
496
|
+
tool_type: import("zod/v4").ZodEnum<{
|
|
497
|
+
custom: "custom";
|
|
498
|
+
node: "node";
|
|
499
|
+
workflow: "workflow";
|
|
500
|
+
}>;
|
|
501
|
+
agent_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
502
|
+
}, import("zod/v4/core").$strip>;
|
|
503
|
+
} & import("./define").TelemetryEventInput & {
|
|
504
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
505
|
+
};
|
|
506
|
+
readonly USER_REMOVED_AGENT_TOOL: {
|
|
507
|
+
readonly name: "User removed agent tool";
|
|
508
|
+
readonly description: "The user confirmed removing a tool or MCP server from an agent (tools modal or sidebar).";
|
|
509
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
510
|
+
node_type: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
511
|
+
workflow: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
512
|
+
custom_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
513
|
+
server_name: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
514
|
+
tool_type: import("zod/v4").ZodEnum<{
|
|
515
|
+
custom: "custom";
|
|
516
|
+
mcpServer: "mcpServer";
|
|
517
|
+
node: "node";
|
|
518
|
+
workflow: "workflow";
|
|
519
|
+
}>;
|
|
520
|
+
agent_id: import("zod/v4").ZodOptional<import("zod/v4").ZodString>;
|
|
521
|
+
}, import("zod/v4/core").$strip>;
|
|
522
|
+
} & import("./define").TelemetryEventInput & {
|
|
523
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
524
|
+
};
|
|
525
|
+
readonly USER_OPENED_AGENT_PREVIEW: {
|
|
526
|
+
readonly name: "User opened agent preview";
|
|
527
|
+
readonly description: "The user opened the agent preview panel in the builder.";
|
|
528
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
529
|
+
agent_id: import("zod/v4").ZodString;
|
|
530
|
+
}, import("zod/v4/core").$strip>;
|
|
531
|
+
} & import("./define").TelemetryEventInput & {
|
|
532
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
533
|
+
};
|
|
534
|
+
readonly USER_SAVED_AGENT_SKILL: {
|
|
535
|
+
readonly name: "User saved agent skill";
|
|
536
|
+
readonly description: "An agent skill autosave completed in the builder.";
|
|
537
|
+
readonly properties: import("zod/v4").ZodObject<{
|
|
538
|
+
agent_id: import("zod/v4").ZodString;
|
|
539
|
+
skill_id: import("zod/v4").ZodString;
|
|
540
|
+
}, import("zod/v4/core").$strip>;
|
|
541
|
+
} & import("./define").TelemetryEventInput & {
|
|
542
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
543
|
+
};
|
|
13
544
|
};
|
|
14
545
|
};
|
package/dist/telemetry-events.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TELEMETRY_EVENT = void 0;
|
|
4
|
+
const agents_1 = require("./events/agents");
|
|
4
5
|
const platform_1 = require("./events/platform");
|
|
5
6
|
exports.TELEMETRY_EVENT = {
|
|
6
7
|
PLATFORM: platform_1.PLATFORM_TELEMETRY,
|
|
8
|
+
AGENTS: agents_1.AGENTS_TELEMETRY,
|
|
7
9
|
};
|
|
8
10
|
//# sourceMappingURL=telemetry-events.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry-events.js","sourceRoot":"","sources":["../src/telemetry-events.ts"],"names":[],"mappings":";;;AACA,gDAAuD;AAE1C,QAAA,eAAe,GAAG;IAC9B,QAAQ,EAAE,6BAAkB;
|
|
1
|
+
{"version":3,"file":"telemetry-events.js","sourceRoot":"","sources":["../src/telemetry-events.ts"],"names":[],"mappings":";;;AACA,4CAAmD;AACnD,gDAAuD;AAE1C,QAAA,eAAe,GAAG;IAC9B,QAAQ,EAAE,6BAAkB;IAC5B,MAAM,EAAE,yBAAgB;CACS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/telemetry",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist/**/*"
|
|
8
|
+
"dist/**/*",
|
|
9
|
+
"LICENSE_EE.md",
|
|
10
|
+
"LICENSE.md"
|
|
9
11
|
],
|
|
10
12
|
"dependencies": {
|
|
11
13
|
"zod": "3.25.67"
|
|
@@ -21,7 +23,16 @@
|
|
|
21
23
|
"@n8n/typescript-config": "1.9.0",
|
|
22
24
|
"@n8n/vitest-config": "1.19.0"
|
|
23
25
|
},
|
|
24
|
-
"license": "
|
|
26
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
27
|
+
"homepage": "https://n8n.io",
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Jan Oberhauser",
|
|
30
|
+
"email": "jan@n8n.io"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/n8n-io/n8n.git"
|
|
35
|
+
},
|
|
25
36
|
"scripts": {
|
|
26
37
|
"clean": "rimraf dist .turbo",
|
|
27
38
|
"dev": "pnpm watch",
|