@n8n/telemetry 1.9.0 → 1.10.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/catalog.js +18 -16
- package/dist/catalog.js.map +1 -1
- package/dist/events/agents.d.ts +90 -0
- package/dist/events/agents.js +65 -0
- package/dist/events/agents.js.map +1 -1
- package/dist/events/context.d.ts +81 -5
- package/dist/events/context.js +73 -19
- package/dist/events/context.js.map +1 -1
- package/dist/events/credentials.d.ts +32 -3
- package/dist/events/credentials.js +15 -2
- package/dist/events/credentials.js.map +1 -1
- package/dist/events/instance-ai.d.ts +307 -1
- package/dist/events/instance-ai.js +241 -2
- package/dist/events/instance-ai.js.map +1 -1
- package/dist/events/mcp.d.ts +1 -0
- package/dist/events/mcp.js +1 -1
- package/dist/events/mcp.js.map +1 -1
- package/dist/events/{node-type-policies.d.ts → type-availability-policies.d.ts} +9 -9
- package/dist/events/{node-type-policies.js → type-availability-policies.js} +16 -16
- package/dist/events/type-availability-policies.js.map +1 -0
- package/dist/events/workflow.d.ts +186 -0
- package/dist/events/workflow.js +123 -0
- package/dist/events/workflow.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/registry-checks.js +3 -2
- package/dist/registry-checks.js.map +1 -1
- package/dist/schemas.d.ts +5 -0
- package/dist/schemas.js +8 -0
- package/dist/schemas.js.map +1 -0
- package/dist/setup-properties.d.ts +22 -0
- package/dist/setup-properties.js +18 -0
- package/dist/setup-properties.js.map +1 -0
- package/dist/telemetry-events.d.ts +705 -18
- package/dist/telemetry-events.js +2 -2
- package/dist/telemetry-events.js.map +1 -1
- package/package.json +8 -8
- package/dist/events/node-type-policies.js.map +0 -1
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
+
export declare const ASSISTANT_MENTION_QUERY_TEXT_MAX_LENGTH = 100;
|
|
2
3
|
export declare const INSTANCE_AI_TELEMETRY: {
|
|
3
4
|
readonly SETUP_PANEL_STATE_OBSERVED: {
|
|
4
5
|
readonly name: "AI Assistant setup panel state observed";
|
|
5
6
|
readonly description: "The setup panel observed a new requirement snapshot. Also fires when no setup is needed, including workflows whose credentials were already connected.";
|
|
6
7
|
readonly properties: z.ZodObject<{
|
|
8
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
control: "control";
|
|
11
|
+
variant: "variant";
|
|
12
|
+
}>>;
|
|
13
|
+
'$feature/118_instance_ai_setup_overhaul': z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
control: "control";
|
|
15
|
+
variant: "variant";
|
|
16
|
+
}>>;
|
|
7
17
|
workflow_id: z.ZodString;
|
|
8
18
|
thread_id: z.ZodString;
|
|
9
19
|
credential_count: z.ZodNumber;
|
|
@@ -18,6 +28,15 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
18
28
|
readonly name: "AI Assistant setup panel item shown";
|
|
19
29
|
readonly description: "A setup checklist row became visible. Reopening the same row within the mounted panel does not emit another event.";
|
|
20
30
|
readonly properties: z.ZodObject<{
|
|
31
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
32
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
control: "control";
|
|
34
|
+
variant: "variant";
|
|
35
|
+
}>>;
|
|
36
|
+
'$feature/118_instance_ai_setup_overhaul': z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
control: "control";
|
|
38
|
+
variant: "variant";
|
|
39
|
+
}>>;
|
|
21
40
|
workflow_id: z.ZodString;
|
|
22
41
|
thread_id: z.ZodString;
|
|
23
42
|
kind: z.ZodEnum<{
|
|
@@ -27,6 +46,16 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
27
46
|
}>;
|
|
28
47
|
credential_type: z.ZodOptional<z.ZodString>;
|
|
29
48
|
parameter_count: z.ZodNumber;
|
|
49
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
node_id: z.ZodString;
|
|
51
|
+
node_type: z.ZodOptional<z.ZodString>;
|
|
52
|
+
kind: z.ZodEnum<{
|
|
53
|
+
credential: "credential";
|
|
54
|
+
parameter: "parameter";
|
|
55
|
+
}>;
|
|
56
|
+
credential_type: z.ZodOptional<z.ZodString>;
|
|
57
|
+
parameter_name: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
30
59
|
}, z.core.$strip>;
|
|
31
60
|
} & import("../define").TelemetryEventInput & {
|
|
32
61
|
readonly getValidationError: (properties: unknown) => string | null;
|
|
@@ -35,6 +64,15 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
35
64
|
readonly name: "AI Assistant setup panel dismissed";
|
|
36
65
|
readonly description: "A visible setup panel closed. The reason separates navigation and removed requirements from a finished execution or an explicit dismissal.";
|
|
37
66
|
readonly properties: z.ZodObject<{
|
|
67
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
68
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
69
|
+
control: "control";
|
|
70
|
+
variant: "variant";
|
|
71
|
+
}>>;
|
|
72
|
+
'$feature/118_instance_ai_setup_overhaul': z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
control: "control";
|
|
74
|
+
variant: "variant";
|
|
75
|
+
}>>;
|
|
38
76
|
workflow_id: z.ZodString;
|
|
39
77
|
thread_id: z.ZodString;
|
|
40
78
|
reason: z.ZodEnum<{
|
|
@@ -285,8 +323,15 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
285
323
|
};
|
|
286
324
|
readonly USER_RECEIVED_AI_ASSISTANT_RESPONSE: {
|
|
287
325
|
readonly name: "User received AI Assistant response";
|
|
288
|
-
readonly description: "The initial foreground AI Assistant reply was rendered after a user submitted a chat message. Starts before attachment processing and first-thread creation, then fires once when the initial run completes or pauses for user input. Automated follow-up runs do not create another sample.";
|
|
326
|
+
readonly description: "The initial foreground AI Assistant reply was rendered after a user submitted a chat message. Starts before attachment processing and first-thread creation, then fires once when the initial run completes or pauses for user input. Automated follow-up runs do not create another sample. Repeats the mention and attachment counts of the message that started the run, so outcome cuts by context need no join back to \"User sent builder message\".";
|
|
289
327
|
readonly properties: z.ZodObject<{
|
|
328
|
+
mention_counts: z.ZodObject<{
|
|
329
|
+
total: z.ZodNumber;
|
|
330
|
+
workflow: z.ZodNumber;
|
|
331
|
+
node: z.ZodNumber;
|
|
332
|
+
group: z.ZodNumber;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
attachment_count: z.ZodNumber;
|
|
290
335
|
instance_id: z.ZodString;
|
|
291
336
|
thread_id: z.ZodString;
|
|
292
337
|
run_id: z.ZodString;
|
|
@@ -306,6 +351,7 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
306
351
|
credentials_list: "credentials_list";
|
|
307
352
|
evals: "evals";
|
|
308
353
|
node_error_view: "node_error_view";
|
|
354
|
+
onboarding: "onboarding";
|
|
309
355
|
playwright: "playwright";
|
|
310
356
|
"template-view": "template-view";
|
|
311
357
|
unknown: "unknown";
|
|
@@ -526,10 +572,131 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
526
572
|
} & import("../define").TelemetryEventInput & {
|
|
527
573
|
readonly getValidationError: (properties: unknown) => string | null;
|
|
528
574
|
};
|
|
575
|
+
readonly USER_OPENED_AI_ASSISTANT_MENTION_PICKER: {
|
|
576
|
+
readonly name: "User opened AI Assistant mention picker";
|
|
577
|
+
readonly description: "The user opened the n8n Assistant mention picker by typing an at sign or selecting the composer button. Every open ends in exactly one \"User selected AI Assistant mention\" or one \"User dismissed AI Assistant mention picker\", so the two together give the pick rate per open.";
|
|
578
|
+
readonly properties: z.ZodObject<{
|
|
579
|
+
thread_id: z.ZodNullable<z.ZodString>;
|
|
580
|
+
source: z.ZodEnum<{
|
|
581
|
+
button: "button";
|
|
582
|
+
typed: "typed";
|
|
583
|
+
}>;
|
|
584
|
+
}, z.core.$strip>;
|
|
585
|
+
} & import("../define").TelemetryEventInput & {
|
|
586
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
587
|
+
};
|
|
588
|
+
readonly USER_DISMISSED_AI_ASSISTANT_MENTION_PICKER: {
|
|
589
|
+
readonly name: "User dismissed AI Assistant mention picker";
|
|
590
|
+
readonly description: "The n8n Assistant mention picker closed without a selection. The list properties describe what was on screen at that moment: a search with result_count 0 is a resource the user could not find, a non-zero ambiguous_result_count is a list the user could not tell apart. Carries interaction metadata but no query text or resource names; the query text of an empty search is on \"User searched AI Assistant mentions without results\".";
|
|
591
|
+
readonly properties: z.ZodObject<{
|
|
592
|
+
thread_id: z.ZodNullable<z.ZodString>;
|
|
593
|
+
source: z.ZodEnum<{
|
|
594
|
+
button: "button";
|
|
595
|
+
typed: "typed";
|
|
596
|
+
}>;
|
|
597
|
+
reason: z.ZodEnum<{
|
|
598
|
+
closed_menu: "closed_menu";
|
|
599
|
+
deleted_trigger: "deleted_trigger";
|
|
600
|
+
moved_caret: "moved_caret";
|
|
601
|
+
unavailable: "unavailable";
|
|
602
|
+
}>;
|
|
603
|
+
mode: z.ZodEnum<{
|
|
604
|
+
browse: "browse";
|
|
605
|
+
search: "search";
|
|
606
|
+
}>;
|
|
607
|
+
query_length: z.ZodNumber;
|
|
608
|
+
result_count: z.ZodNumber;
|
|
609
|
+
ambiguous_result_count: z.ZodNumber;
|
|
610
|
+
submenu_open_count: z.ZodNumber;
|
|
611
|
+
}, z.core.$strip>;
|
|
612
|
+
} & import("../define").TelemetryEventInput & {
|
|
613
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
614
|
+
};
|
|
615
|
+
readonly USER_SEARCHED_AI_ASSISTANT_MENTIONS_WITHOUT_RESULTS: {
|
|
616
|
+
readonly name: "User searched AI Assistant mentions without results";
|
|
617
|
+
readonly description: "The n8n Assistant mention picker showed its empty state for a search query the user let settle for about a second, or closed the picker on. Fires once per distinct settled query within one picker open, so typing straight through a prefix chain like \"S\", \"Sl\", \"Slack\" reports \"Slack\" once. The one mention event that carries the query text, to learn what users try to mention and cannot.";
|
|
618
|
+
readonly properties: z.ZodObject<{
|
|
619
|
+
thread_id: z.ZodNullable<z.ZodString>;
|
|
620
|
+
source: z.ZodEnum<{
|
|
621
|
+
button: "button";
|
|
622
|
+
typed: "typed";
|
|
623
|
+
}>;
|
|
624
|
+
query: z.ZodString;
|
|
625
|
+
query_length: z.ZodNumber;
|
|
626
|
+
matched_node_type: z.ZodNullable<z.ZodString>;
|
|
627
|
+
artifact_count: z.ZodNumber;
|
|
628
|
+
}, z.core.$strip>;
|
|
629
|
+
} & import("../define").TelemetryEventInput & {
|
|
630
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
631
|
+
};
|
|
632
|
+
readonly USER_SELECTED_AI_ASSISTANT_MENTION: {
|
|
633
|
+
readonly name: "User selected AI Assistant mention";
|
|
634
|
+
readonly description: "The user selected a workflow, node, or canvas group from the n8n Assistant mention picker. A pick of a mention that is already staged also counts, so every open ends in this event or in \"User dismissed AI Assistant mention picker\". The event contains interaction metadata but no resource names or IDs.";
|
|
635
|
+
readonly properties: z.ZodObject<{
|
|
636
|
+
thread_id: z.ZodNullable<z.ZodString>;
|
|
637
|
+
kind: z.ZodEnum<{
|
|
638
|
+
group: "group";
|
|
639
|
+
node: "node";
|
|
640
|
+
workflow: "workflow";
|
|
641
|
+
}>;
|
|
642
|
+
mode: z.ZodEnum<{
|
|
643
|
+
browse: "browse";
|
|
644
|
+
search: "search";
|
|
645
|
+
}>;
|
|
646
|
+
source: z.ZodEnum<{
|
|
647
|
+
artifacts: "artifacts";
|
|
648
|
+
workflows: "workflows";
|
|
649
|
+
}>;
|
|
650
|
+
result_position: z.ZodNumber;
|
|
651
|
+
query_length: z.ZodNumber;
|
|
652
|
+
already_artifact: z.ZodBoolean;
|
|
653
|
+
artifact_origin: z.ZodNullable<z.ZodEnum<{
|
|
654
|
+
attached: "attached";
|
|
655
|
+
built: "built";
|
|
656
|
+
fetched: "fetched";
|
|
657
|
+
mentioned: "mentioned";
|
|
658
|
+
}>>;
|
|
659
|
+
}, z.core.$strip>;
|
|
660
|
+
} & import("../define").TelemetryEventInput & {
|
|
661
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
662
|
+
};
|
|
663
|
+
readonly USER_REMOVED_AI_ASSISTANT_MENTION: {
|
|
664
|
+
readonly name: "User removed AI Assistant mention";
|
|
665
|
+
readonly description: "The user removed workflow, node, or canvas group context that they added through the n8n Assistant mention picker.";
|
|
666
|
+
readonly properties: z.ZodObject<{
|
|
667
|
+
thread_id: z.ZodNullable<z.ZodString>;
|
|
668
|
+
kind: z.ZodEnum<{
|
|
669
|
+
group: "group";
|
|
670
|
+
node: "node";
|
|
671
|
+
workflow: "workflow";
|
|
672
|
+
}>;
|
|
673
|
+
}, z.core.$strip>;
|
|
674
|
+
} & import("../define").TelemetryEventInput & {
|
|
675
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
676
|
+
};
|
|
529
677
|
readonly USER_SENT_BUILDER_MESSAGE: {
|
|
530
678
|
readonly name: "User sent builder message";
|
|
531
679
|
readonly description: "The user sent a message to the n8n Assistant. Fires once per message on the optimistic send, before the request is admitted, so a refused send still counts as an attempt. Carries who wrote the text: a pre-fill is an opener n8n composed (a failed execution, a credential modal, a template card, a suggestion chip) that the user accepted or edited, so pre-fill share must be read from prefill_type rather than matched against the message body.";
|
|
532
680
|
readonly properties: z.ZodObject<{
|
|
681
|
+
session_id: z.ZodOptional<z.ZodString>;
|
|
682
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
683
|
+
control: "control";
|
|
684
|
+
variant: "variant";
|
|
685
|
+
}>>;
|
|
686
|
+
'$feature/118_instance_ai_setup_overhaul': z.ZodOptional<z.ZodEnum<{
|
|
687
|
+
control: "control";
|
|
688
|
+
variant: "variant";
|
|
689
|
+
}>>;
|
|
690
|
+
mention_counts: z.ZodObject<{
|
|
691
|
+
total: z.ZodNumber;
|
|
692
|
+
workflow: z.ZodNumber;
|
|
693
|
+
node: z.ZodNumber;
|
|
694
|
+
group: z.ZodNumber;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
attachment_count: z.ZodNumber;
|
|
697
|
+
workflow_id: z.ZodOptional<z.ZodString>;
|
|
698
|
+
pending_credential_count: z.ZodOptional<z.ZodNumber>;
|
|
699
|
+
pending_parameter_count: z.ZodOptional<z.ZodNumber>;
|
|
533
700
|
thread_id: z.ZodString;
|
|
534
701
|
instance_id: z.ZodString;
|
|
535
702
|
is_first_message: z.ZodBoolean;
|
|
@@ -543,6 +710,7 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
543
710
|
credentials_list: "credentials_list";
|
|
544
711
|
evals: "evals";
|
|
545
712
|
node_error_view: "node_error_view";
|
|
713
|
+
onboarding: "onboarding";
|
|
546
714
|
playwright: "playwright";
|
|
547
715
|
"template-view": "template-view";
|
|
548
716
|
unknown: "unknown";
|
|
@@ -602,4 +770,142 @@ export declare const INSTANCE_AI_TELEMETRY: {
|
|
|
602
770
|
} & import("../define").TelemetryEventInput & {
|
|
603
771
|
readonly getValidationError: (properties: unknown) => string | null;
|
|
604
772
|
};
|
|
773
|
+
readonly USER_STARTED_AI_ASSISTANT_ONBOARDING: {
|
|
774
|
+
readonly name: "User started AI Assistant onboarding";
|
|
775
|
+
readonly description: "An onboarding thread was created: the user arrived from the n8n Cloud signup survey (/assistant?source=onboarding) or opened the onboarding by hand. Fires once per thread, from the backend, when the seeded greeting and question card are stored.";
|
|
776
|
+
readonly properties: z.ZodObject<{
|
|
777
|
+
user_id: z.ZodString;
|
|
778
|
+
thread_id: z.ZodString;
|
|
779
|
+
team: z.ZodNullable<z.ZodString>;
|
|
780
|
+
team_source: z.ZodNullable<z.ZodEnum<{
|
|
781
|
+
cloud: "cloud";
|
|
782
|
+
url: "url";
|
|
783
|
+
}>>;
|
|
784
|
+
}, z.core.$strip>;
|
|
785
|
+
} & import("../define").TelemetryEventInput & {
|
|
786
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
787
|
+
};
|
|
788
|
+
readonly USER_ANSWERED_AI_ASSISTANT_ONBOARDING_CARD: {
|
|
789
|
+
readonly name: "User answered AI Assistant onboarding card";
|
|
790
|
+
readonly description: "The user settled the question card an onboarding thread opens with. Fires once per thread, from the backend, when the answers are stored. Carries the picked apps and the free text as typed.";
|
|
791
|
+
readonly properties: z.ZodObject<{
|
|
792
|
+
user_id: z.ZodString;
|
|
793
|
+
thread_id: z.ZodString;
|
|
794
|
+
team: z.ZodNullable<z.ZodString>;
|
|
795
|
+
team_source: z.ZodNullable<z.ZodEnum<{
|
|
796
|
+
card: "card";
|
|
797
|
+
cloud: "cloud";
|
|
798
|
+
url: "url";
|
|
799
|
+
}>>;
|
|
800
|
+
apps: z.ZodArray<z.ZodString>;
|
|
801
|
+
custom_text: z.ZodNullable<z.ZodString>;
|
|
802
|
+
}, z.core.$strip>;
|
|
803
|
+
} & import("../define").TelemetryEventInput & {
|
|
804
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
805
|
+
};
|
|
806
|
+
readonly AI_ASSISTANT_ONBOARDING_ENDED: {
|
|
807
|
+
readonly name: "AI Assistant onboarding ended";
|
|
808
|
+
readonly description: "The onboarding flow of a thread ended and the normal chat came back. Fires once per thread, from the browser, on the first build, when the agent calls `leave-onboarding`, or when a run fails.";
|
|
809
|
+
readonly properties: z.ZodObject<{
|
|
810
|
+
thread_id: z.ZodString;
|
|
811
|
+
instance_id: z.ZodString;
|
|
812
|
+
outcome: z.ZodEnum<{
|
|
813
|
+
build: "build";
|
|
814
|
+
left: "left";
|
|
815
|
+
run_failed: "run_failed";
|
|
816
|
+
}>;
|
|
817
|
+
leave_reason: z.ZodNullable<z.ZodString>;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
} & import("../define").TelemetryEventInput & {
|
|
820
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
821
|
+
};
|
|
822
|
+
readonly INSTANCE_CONTEXT_TURN: {
|
|
823
|
+
readonly name: "Instance AI instance-context turn completed";
|
|
824
|
+
readonly description: "One context result per turn segment, including turns without a block. Group by run_id. Count distinct runs, sum segment tokens, and count a question if any segment asked one.";
|
|
825
|
+
readonly properties: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
826
|
+
surface: z.ZodEnum<{
|
|
827
|
+
aia: "aia";
|
|
828
|
+
mcp: "mcp";
|
|
829
|
+
}>;
|
|
830
|
+
user_id: z.ZodString;
|
|
831
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
832
|
+
run_id: z.ZodString;
|
|
833
|
+
segment: z.ZodEnum<{
|
|
834
|
+
resumed: "resumed";
|
|
835
|
+
suspended: "suspended";
|
|
836
|
+
whole: "whole";
|
|
837
|
+
}>;
|
|
838
|
+
instance_context_enabled: z.ZodBoolean;
|
|
839
|
+
node_usage_enabled: z.ZodBoolean;
|
|
840
|
+
context_depth: z.ZodNumber;
|
|
841
|
+
context_surfaces: z.ZodArray<z.ZodEnum<{
|
|
842
|
+
"activity-expand": "activity-expand";
|
|
843
|
+
"activity-list": "activity-list";
|
|
844
|
+
"node-usage": "node-usage";
|
|
845
|
+
"workflow-read": "workflow-read";
|
|
846
|
+
}>>;
|
|
847
|
+
asked_clarifying_question: z.ZodBoolean;
|
|
848
|
+
tool_calls: z.ZodNumber;
|
|
849
|
+
turn_prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
850
|
+
turn_completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
851
|
+
turn_total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
852
|
+
turn_cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
853
|
+
status: z.ZodEnum<{
|
|
854
|
+
cancelled: "cancelled";
|
|
855
|
+
completed: "completed";
|
|
856
|
+
errored: "errored";
|
|
857
|
+
suspended: "suspended";
|
|
858
|
+
}>;
|
|
859
|
+
block_state: z.ZodLiteral<"absent">;
|
|
860
|
+
absence_reason: z.ZodEnum<{
|
|
861
|
+
disabled: "disabled";
|
|
862
|
+
empty: "empty";
|
|
863
|
+
failed: "failed";
|
|
864
|
+
"machine-follow-up": "machine-follow-up";
|
|
865
|
+
}>;
|
|
866
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
867
|
+
surface: z.ZodEnum<{
|
|
868
|
+
aia: "aia";
|
|
869
|
+
mcp: "mcp";
|
|
870
|
+
}>;
|
|
871
|
+
user_id: z.ZodString;
|
|
872
|
+
thread_id: z.ZodOptional<z.ZodString>;
|
|
873
|
+
run_id: z.ZodString;
|
|
874
|
+
segment: z.ZodEnum<{
|
|
875
|
+
resumed: "resumed";
|
|
876
|
+
suspended: "suspended";
|
|
877
|
+
whole: "whole";
|
|
878
|
+
}>;
|
|
879
|
+
instance_context_enabled: z.ZodBoolean;
|
|
880
|
+
node_usage_enabled: z.ZodBoolean;
|
|
881
|
+
context_depth: z.ZodNumber;
|
|
882
|
+
context_surfaces: z.ZodArray<z.ZodEnum<{
|
|
883
|
+
"activity-expand": "activity-expand";
|
|
884
|
+
"activity-list": "activity-list";
|
|
885
|
+
"node-usage": "node-usage";
|
|
886
|
+
"workflow-read": "workflow-read";
|
|
887
|
+
}>>;
|
|
888
|
+
asked_clarifying_question: z.ZodBoolean;
|
|
889
|
+
tool_calls: z.ZodNumber;
|
|
890
|
+
turn_prompt_tokens: z.ZodOptional<z.ZodNumber>;
|
|
891
|
+
turn_completion_tokens: z.ZodOptional<z.ZodNumber>;
|
|
892
|
+
turn_total_tokens: z.ZodOptional<z.ZodNumber>;
|
|
893
|
+
turn_cost_usd: z.ZodOptional<z.ZodNumber>;
|
|
894
|
+
status: z.ZodEnum<{
|
|
895
|
+
cancelled: "cancelled";
|
|
896
|
+
completed: "completed";
|
|
897
|
+
errored: "errored";
|
|
898
|
+
suspended: "suspended";
|
|
899
|
+
}>;
|
|
900
|
+
block_state: z.ZodLiteral<"injected">;
|
|
901
|
+
block_is_update: z.ZodBoolean;
|
|
902
|
+
block_inventory_rows: z.ZodNumber;
|
|
903
|
+
block_event_rows: z.ZodNumber;
|
|
904
|
+
block_run_rows: z.ZodNumber;
|
|
905
|
+
block_chars: z.ZodNumber;
|
|
906
|
+
block_tokens_estimated: z.ZodNumber;
|
|
907
|
+
}, z.core.$strict>]>;
|
|
908
|
+
} & import("../define").TelemetryEventInput & {
|
|
909
|
+
readonly getValidationError: (properties: unknown) => string | null;
|
|
910
|
+
};
|
|
605
911
|
};
|