@miradorlabs/web-grpc 4.24.0 → 4.26.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/google/api/field_behavior.ts +1 -1
- package/google/protobuf/descriptor.ts +1 -1
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +1 -1
- package/proto/gateway/common/v1/attribute_value.ts +1 -1
- package/proto/gateway/common/v1/status.ts +1 -1
- package/proto/gateway/common/v1/types.ts +1 -1
- package/proto/gateway/web/v1/account_gateway.ts +1 -1
- package/proto/gateway/web/v1/admin_gateway.ts +164 -1210
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +52 -158
- package/proto/gateway/web/v1/admin_gateway_pb.js +226 -2188
- package/proto/gateway/web/v1/ai_gateway.ts +917 -286
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +35 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +1526 -137
- package/proto/gateway/web/v1/attribute_value.ts +1 -1
- package/proto/gateway/web/v1/beta_gateway.ts +1 -1
- package/proto/gateway/web/v1/chain_gateway.ts +1 -1
- package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1 -1
- package/proto/gateway/web/v1/common.ts +1 -1
- package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/desktop_auth_gateway.ts +1 -1
- package/proto/gateway/web/v1/github_connector.ts +1 -1
- package/proto/gateway/web/v1/integration_gateway.ts +1 -1
- package/proto/gateway/web/v1/log_gateway.ts +1 -1
- package/proto/gateway/web/v1/market_gateway.ts +1 -1
- package/proto/gateway/web/v1/metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/notification_gateway.ts +1 -1
- package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
- package/proto/gateway/web/v1/plan_gateway.ts +1 -1
- package/proto/gateway/web/v1/policy_gateway.ts +1 -1
- package/proto/gateway/web/v1/reference_gateway.ts +1 -1
- package/proto/gateway/web/v1/rule_gateway.ts +1 -1
- package/proto/gateway/web/v1/slo_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.21.1
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: proto/gateway/web/v1/ai_gateway.proto
|
|
6
6
|
|
|
@@ -26,6 +26,103 @@ export const protobufPackage = "gateway.web.v1";
|
|
|
26
26
|
|
|
27
27
|
export const protobufFileName = "proto/gateway/web/v1/ai_gateway.proto";
|
|
28
28
|
|
|
29
|
+
/** SessionInsightSort orders a page of insights. */
|
|
30
|
+
export enum SessionInsightSort {
|
|
31
|
+
SESSION_INSIGHT_SORT_UNSPECIFIED = 0,
|
|
32
|
+
/** SESSION_INSIGHT_SORT_RECENT - Newest analysis first; within one session, the model's order (most costly first); then source system and session id. */
|
|
33
|
+
SESSION_INSIGHT_SORT_RECENT = 1,
|
|
34
|
+
UNRECOGNIZED = -1,
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function sessionInsightSortFromJSON(object: any): SessionInsightSort {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case 0:
|
|
40
|
+
case "SESSION_INSIGHT_SORT_UNSPECIFIED":
|
|
41
|
+
return SessionInsightSort.SESSION_INSIGHT_SORT_UNSPECIFIED;
|
|
42
|
+
case 1:
|
|
43
|
+
case "SESSION_INSIGHT_SORT_RECENT":
|
|
44
|
+
return SessionInsightSort.SESSION_INSIGHT_SORT_RECENT;
|
|
45
|
+
case -1:
|
|
46
|
+
case "UNRECOGNIZED":
|
|
47
|
+
default:
|
|
48
|
+
return SessionInsightSort.UNRECOGNIZED;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function sessionInsightSortToJSON(object: SessionInsightSort): string {
|
|
53
|
+
switch (object) {
|
|
54
|
+
case SessionInsightSort.SESSION_INSIGHT_SORT_UNSPECIFIED:
|
|
55
|
+
return "SESSION_INSIGHT_SORT_UNSPECIFIED";
|
|
56
|
+
case SessionInsightSort.SESSION_INSIGHT_SORT_RECENT:
|
|
57
|
+
return "SESSION_INSIGHT_SORT_RECENT";
|
|
58
|
+
case SessionInsightSort.UNRECOGNIZED:
|
|
59
|
+
default:
|
|
60
|
+
return "UNRECOGNIZED";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* AISessionInsightActionType is the kind of change an insight recommends (ai.common.v1.AISessionInsightActionType,
|
|
66
|
+
* same numbers).
|
|
67
|
+
*/
|
|
68
|
+
export enum AISessionInsightActionType {
|
|
69
|
+
/** AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED - never stored */
|
|
70
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED = 0,
|
|
71
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE = 1,
|
|
72
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL = 2,
|
|
73
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL = 3,
|
|
74
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING = 4,
|
|
75
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW = 5,
|
|
76
|
+
UNRECOGNIZED = -1,
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function aISessionInsightActionTypeFromJSON(object: any): AISessionInsightActionType {
|
|
80
|
+
switch (object) {
|
|
81
|
+
case 0:
|
|
82
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED":
|
|
83
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED;
|
|
84
|
+
case 1:
|
|
85
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE":
|
|
86
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE;
|
|
87
|
+
case 2:
|
|
88
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL":
|
|
89
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL;
|
|
90
|
+
case 3:
|
|
91
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL":
|
|
92
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL;
|
|
93
|
+
case 4:
|
|
94
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING":
|
|
95
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING;
|
|
96
|
+
case 5:
|
|
97
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW":
|
|
98
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW;
|
|
99
|
+
case -1:
|
|
100
|
+
case "UNRECOGNIZED":
|
|
101
|
+
default:
|
|
102
|
+
return AISessionInsightActionType.UNRECOGNIZED;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function aISessionInsightActionTypeToJSON(object: AISessionInsightActionType): string {
|
|
107
|
+
switch (object) {
|
|
108
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED:
|
|
109
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED";
|
|
110
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE:
|
|
111
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE";
|
|
112
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL:
|
|
113
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL";
|
|
114
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL:
|
|
115
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL";
|
|
116
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING:
|
|
117
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING";
|
|
118
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW:
|
|
119
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW";
|
|
120
|
+
case AISessionInsightActionType.UNRECOGNIZED:
|
|
121
|
+
default:
|
|
122
|
+
return "UNRECOGNIZED";
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
29
126
|
/**
|
|
30
127
|
* SessionSort ranks the conversation catalog, descending. Unspecified is RECENCY. RECENCY is the last activity;
|
|
31
128
|
* the rest are summed conversation totals. source_system, then session_id, breaks ties. A value the backend does
|
|
@@ -599,211 +696,6 @@ export function aISessionComplexityToJSON(object: AISessionComplexity): string {
|
|
|
599
696
|
}
|
|
600
697
|
}
|
|
601
698
|
|
|
602
|
-
/**
|
|
603
|
-
* AISessionInsightCategory is the kind of problem an insight names. Stored per insight in
|
|
604
|
-
* ai_session_insights.Insights.Category; retired values stay, deprecated.
|
|
605
|
-
*/
|
|
606
|
-
export enum AISessionInsightCategory {
|
|
607
|
-
/** AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED - never stored */
|
|
608
|
-
AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED = 0,
|
|
609
|
-
AI_SESSION_INSIGHT_CATEGORY_CONSTRAINT_VIOLATION = 1,
|
|
610
|
-
AI_SESSION_INSIGHT_CATEGORY_MISREAD_REQUEST = 2,
|
|
611
|
-
AI_SESSION_INSIGHT_CATEGORY_REPEATED_CORRECTION = 3,
|
|
612
|
-
AI_SESSION_INSIGHT_CATEGORY_LOOPING = 4,
|
|
613
|
-
AI_SESSION_INSIGHT_CATEGORY_VERIFICATION_GAP = 5,
|
|
614
|
-
AI_SESSION_INSIGHT_CATEGORY_MISSING_CONTEXT = 6,
|
|
615
|
-
AI_SESSION_INSIGHT_CATEGORY_TOOLING_FAILURE = 7,
|
|
616
|
-
AI_SESSION_INSIGHT_CATEGORY_SCOPE_CREEP = 8,
|
|
617
|
-
AI_SESSION_INSIGHT_CATEGORY_MANUAL_WORKFLOW = 9,
|
|
618
|
-
UNRECOGNIZED = -1,
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
export function aISessionInsightCategoryFromJSON(object: any): AISessionInsightCategory {
|
|
622
|
-
switch (object) {
|
|
623
|
-
case 0:
|
|
624
|
-
case "AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED":
|
|
625
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED;
|
|
626
|
-
case 1:
|
|
627
|
-
case "AI_SESSION_INSIGHT_CATEGORY_CONSTRAINT_VIOLATION":
|
|
628
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_CONSTRAINT_VIOLATION;
|
|
629
|
-
case 2:
|
|
630
|
-
case "AI_SESSION_INSIGHT_CATEGORY_MISREAD_REQUEST":
|
|
631
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_MISREAD_REQUEST;
|
|
632
|
-
case 3:
|
|
633
|
-
case "AI_SESSION_INSIGHT_CATEGORY_REPEATED_CORRECTION":
|
|
634
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_REPEATED_CORRECTION;
|
|
635
|
-
case 4:
|
|
636
|
-
case "AI_SESSION_INSIGHT_CATEGORY_LOOPING":
|
|
637
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_LOOPING;
|
|
638
|
-
case 5:
|
|
639
|
-
case "AI_SESSION_INSIGHT_CATEGORY_VERIFICATION_GAP":
|
|
640
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_VERIFICATION_GAP;
|
|
641
|
-
case 6:
|
|
642
|
-
case "AI_SESSION_INSIGHT_CATEGORY_MISSING_CONTEXT":
|
|
643
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_MISSING_CONTEXT;
|
|
644
|
-
case 7:
|
|
645
|
-
case "AI_SESSION_INSIGHT_CATEGORY_TOOLING_FAILURE":
|
|
646
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_TOOLING_FAILURE;
|
|
647
|
-
case 8:
|
|
648
|
-
case "AI_SESSION_INSIGHT_CATEGORY_SCOPE_CREEP":
|
|
649
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_SCOPE_CREEP;
|
|
650
|
-
case 9:
|
|
651
|
-
case "AI_SESSION_INSIGHT_CATEGORY_MANUAL_WORKFLOW":
|
|
652
|
-
return AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_MANUAL_WORKFLOW;
|
|
653
|
-
case -1:
|
|
654
|
-
case "UNRECOGNIZED":
|
|
655
|
-
default:
|
|
656
|
-
return AISessionInsightCategory.UNRECOGNIZED;
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
export function aISessionInsightCategoryToJSON(object: AISessionInsightCategory): string {
|
|
661
|
-
switch (object) {
|
|
662
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED:
|
|
663
|
-
return "AI_SESSION_INSIGHT_CATEGORY_UNSPECIFIED";
|
|
664
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_CONSTRAINT_VIOLATION:
|
|
665
|
-
return "AI_SESSION_INSIGHT_CATEGORY_CONSTRAINT_VIOLATION";
|
|
666
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_MISREAD_REQUEST:
|
|
667
|
-
return "AI_SESSION_INSIGHT_CATEGORY_MISREAD_REQUEST";
|
|
668
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_REPEATED_CORRECTION:
|
|
669
|
-
return "AI_SESSION_INSIGHT_CATEGORY_REPEATED_CORRECTION";
|
|
670
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_LOOPING:
|
|
671
|
-
return "AI_SESSION_INSIGHT_CATEGORY_LOOPING";
|
|
672
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_VERIFICATION_GAP:
|
|
673
|
-
return "AI_SESSION_INSIGHT_CATEGORY_VERIFICATION_GAP";
|
|
674
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_MISSING_CONTEXT:
|
|
675
|
-
return "AI_SESSION_INSIGHT_CATEGORY_MISSING_CONTEXT";
|
|
676
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_TOOLING_FAILURE:
|
|
677
|
-
return "AI_SESSION_INSIGHT_CATEGORY_TOOLING_FAILURE";
|
|
678
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_SCOPE_CREEP:
|
|
679
|
-
return "AI_SESSION_INSIGHT_CATEGORY_SCOPE_CREEP";
|
|
680
|
-
case AISessionInsightCategory.AI_SESSION_INSIGHT_CATEGORY_MANUAL_WORKFLOW:
|
|
681
|
-
return "AI_SESSION_INSIGHT_CATEGORY_MANUAL_WORKFLOW";
|
|
682
|
-
case AISessionInsightCategory.UNRECOGNIZED:
|
|
683
|
-
default:
|
|
684
|
-
return "UNRECOGNIZED";
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
/**
|
|
689
|
-
* AISessionInsightActionType is the kind of change an insight recommends: an insight always recommends one, and a
|
|
690
|
-
* session with nothing to change has no insights. Stored per insight in
|
|
691
|
-
* ai_session_insights.Insights.ActionType; retired values stay, deprecated.
|
|
692
|
-
*/
|
|
693
|
-
export enum AISessionInsightActionType {
|
|
694
|
-
/** AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED - never stored */
|
|
695
|
-
AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED = 0,
|
|
696
|
-
AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE = 1,
|
|
697
|
-
AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL = 2,
|
|
698
|
-
AI_SESSION_INSIGHT_ACTION_TYPE_USE_EXISTING_SKILL = 3,
|
|
699
|
-
AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL = 4,
|
|
700
|
-
AI_SESSION_INSIGHT_ACTION_TYPE_CLARIFY_PROMPTS = 5,
|
|
701
|
-
AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING = 6,
|
|
702
|
-
UNRECOGNIZED = -1,
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export function aISessionInsightActionTypeFromJSON(object: any): AISessionInsightActionType {
|
|
706
|
-
switch (object) {
|
|
707
|
-
case 0:
|
|
708
|
-
case "AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED":
|
|
709
|
-
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED;
|
|
710
|
-
case 1:
|
|
711
|
-
case "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE":
|
|
712
|
-
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE;
|
|
713
|
-
case 2:
|
|
714
|
-
case "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL":
|
|
715
|
-
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL;
|
|
716
|
-
case 3:
|
|
717
|
-
case "AI_SESSION_INSIGHT_ACTION_TYPE_USE_EXISTING_SKILL":
|
|
718
|
-
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_USE_EXISTING_SKILL;
|
|
719
|
-
case 4:
|
|
720
|
-
case "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL":
|
|
721
|
-
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL;
|
|
722
|
-
case 5:
|
|
723
|
-
case "AI_SESSION_INSIGHT_ACTION_TYPE_CLARIFY_PROMPTS":
|
|
724
|
-
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CLARIFY_PROMPTS;
|
|
725
|
-
case 6:
|
|
726
|
-
case "AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING":
|
|
727
|
-
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING;
|
|
728
|
-
case -1:
|
|
729
|
-
case "UNRECOGNIZED":
|
|
730
|
-
default:
|
|
731
|
-
return AISessionInsightActionType.UNRECOGNIZED;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
export function aISessionInsightActionTypeToJSON(object: AISessionInsightActionType): string {
|
|
736
|
-
switch (object) {
|
|
737
|
-
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED:
|
|
738
|
-
return "AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED";
|
|
739
|
-
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE:
|
|
740
|
-
return "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE";
|
|
741
|
-
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL:
|
|
742
|
-
return "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL";
|
|
743
|
-
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_USE_EXISTING_SKILL:
|
|
744
|
-
return "AI_SESSION_INSIGHT_ACTION_TYPE_USE_EXISTING_SKILL";
|
|
745
|
-
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL:
|
|
746
|
-
return "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL";
|
|
747
|
-
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CLARIFY_PROMPTS:
|
|
748
|
-
return "AI_SESSION_INSIGHT_ACTION_TYPE_CLARIFY_PROMPTS";
|
|
749
|
-
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING:
|
|
750
|
-
return "AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING";
|
|
751
|
-
case AISessionInsightActionType.UNRECOGNIZED:
|
|
752
|
-
default:
|
|
753
|
-
return "UNRECOGNIZED";
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
/** AISessionInsightSeverity is how much an insight's problem cost its session; mirrors ai.api.v1. */
|
|
758
|
-
export enum AISessionInsightSeverity {
|
|
759
|
-
/** AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED - never stored */
|
|
760
|
-
AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED = 0,
|
|
761
|
-
/** AI_SESSION_INSIGHT_SEVERITY_LOW - a small detour the person caught quickly */
|
|
762
|
-
AI_SESSION_INSIGHT_SEVERITY_LOW = 1,
|
|
763
|
-
/** AI_SESSION_INSIGHT_SEVERITY_MEDIUM - real time or rework lost, but the session recovered */
|
|
764
|
-
AI_SESSION_INSIGHT_SEVERITY_MEDIUM = 2,
|
|
765
|
-
/** AI_SESSION_INSIGHT_SEVERITY_HIGH - it derailed the session: much of its time or spend, or the outcome */
|
|
766
|
-
AI_SESSION_INSIGHT_SEVERITY_HIGH = 3,
|
|
767
|
-
UNRECOGNIZED = -1,
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
export function aISessionInsightSeverityFromJSON(object: any): AISessionInsightSeverity {
|
|
771
|
-
switch (object) {
|
|
772
|
-
case 0:
|
|
773
|
-
case "AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED":
|
|
774
|
-
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED;
|
|
775
|
-
case 1:
|
|
776
|
-
case "AI_SESSION_INSIGHT_SEVERITY_LOW":
|
|
777
|
-
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_LOW;
|
|
778
|
-
case 2:
|
|
779
|
-
case "AI_SESSION_INSIGHT_SEVERITY_MEDIUM":
|
|
780
|
-
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_MEDIUM;
|
|
781
|
-
case 3:
|
|
782
|
-
case "AI_SESSION_INSIGHT_SEVERITY_HIGH":
|
|
783
|
-
return AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_HIGH;
|
|
784
|
-
case -1:
|
|
785
|
-
case "UNRECOGNIZED":
|
|
786
|
-
default:
|
|
787
|
-
return AISessionInsightSeverity.UNRECOGNIZED;
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
export function aISessionInsightSeverityToJSON(object: AISessionInsightSeverity): string {
|
|
792
|
-
switch (object) {
|
|
793
|
-
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED:
|
|
794
|
-
return "AI_SESSION_INSIGHT_SEVERITY_UNSPECIFIED";
|
|
795
|
-
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_LOW:
|
|
796
|
-
return "AI_SESSION_INSIGHT_SEVERITY_LOW";
|
|
797
|
-
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_MEDIUM:
|
|
798
|
-
return "AI_SESSION_INSIGHT_SEVERITY_MEDIUM";
|
|
799
|
-
case AISessionInsightSeverity.AI_SESSION_INSIGHT_SEVERITY_HIGH:
|
|
800
|
-
return "AI_SESSION_INSIGHT_SEVERITY_HIGH";
|
|
801
|
-
case AISessionInsightSeverity.UNRECOGNIZED:
|
|
802
|
-
default:
|
|
803
|
-
return "UNRECOGNIZED";
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
|
|
807
699
|
export enum AIGitAction {
|
|
808
700
|
AI_GIT_ACTION_UNSPECIFIED = 0,
|
|
809
701
|
AI_GIT_ACTION_BRANCH_CREATE = 1,
|
|
@@ -3658,6 +3550,60 @@ export interface GetSessionAnalysisRequest {
|
|
|
3658
3550
|
sessionId: string;
|
|
3659
3551
|
}
|
|
3660
3552
|
|
|
3553
|
+
/** ListSessionInsightsRequest pages a project's insights one insight at a time, newest analysis first. */
|
|
3554
|
+
export interface ListSessionInsightsRequest {
|
|
3555
|
+
organizationId: string;
|
|
3556
|
+
projectId: string;
|
|
3557
|
+
/** Narrows the insights; unset reads the whole team's. */
|
|
3558
|
+
filter:
|
|
3559
|
+
| SessionInsightFilter
|
|
3560
|
+
| undefined;
|
|
3561
|
+
/** Unspecified is SESSION_INSIGHT_SORT_RECENT. */
|
|
3562
|
+
sort: SessionInsightSort;
|
|
3563
|
+
/** Insights per page, 1 to 50; 0 is the default, 15. Negative is INVALID_ARGUMENT. */
|
|
3564
|
+
pageSize: number;
|
|
3565
|
+
/**
|
|
3566
|
+
* A next_page_token from the same request; empty reads the first page. A token used with another filter or sort
|
|
3567
|
+
* reads on from its position under the new one.
|
|
3568
|
+
*/
|
|
3569
|
+
pageToken: string;
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
/**
|
|
3573
|
+
* SessionInsightFilter narrows a project's insights. Fields AND; a repeated field matches any of its values; an unset
|
|
3574
|
+
* or empty field does not filter.
|
|
3575
|
+
*/
|
|
3576
|
+
export interface SessionInsightFilter {
|
|
3577
|
+
/**
|
|
3578
|
+
* The session's user (ai_sessions.UserId when the insights were written). Any reader of the project may list any of
|
|
3579
|
+
* its people's insights.
|
|
3580
|
+
*/
|
|
3581
|
+
userIds: string[];
|
|
3582
|
+
sourceSystems: string[];
|
|
3583
|
+
/** The topics file's keys; a topic the model named has no key and matches none. */
|
|
3584
|
+
topicKeys: string[];
|
|
3585
|
+
}
|
|
3586
|
+
|
|
3587
|
+
export interface ListSessionInsightsResponse {
|
|
3588
|
+
status:
|
|
3589
|
+
| ResponseStatus
|
|
3590
|
+
| undefined;
|
|
3591
|
+
/** The page's insights in sort order; empty when the project has none that match. */
|
|
3592
|
+
insights: SessionInsightEntry[];
|
|
3593
|
+
/** Empty on the last page. */
|
|
3594
|
+
nextPageToken: string;
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
/** SessionInsightEntry is one insight with the session it is about. */
|
|
3598
|
+
export interface SessionInsightEntry {
|
|
3599
|
+
/** source_system with session_id is the session's identity. */
|
|
3600
|
+
sourceSystem: string;
|
|
3601
|
+
sessionId: string;
|
|
3602
|
+
/** When the insights run that wrote it selected the session. */
|
|
3603
|
+
analyzedAt: Date | undefined;
|
|
3604
|
+
insight: AISessionInsight | undefined;
|
|
3605
|
+
}
|
|
3606
|
+
|
|
3661
3607
|
/**
|
|
3662
3608
|
* GetSessionAnalysisResponse holds what each analysis job has written for the session. A part is absent while its
|
|
3663
3609
|
* job has not graded or analysed the session (or no such session is in the project), never defaulted.
|
|
@@ -3686,7 +3632,7 @@ export interface GetSessionAnalysisResponse {
|
|
|
3686
3632
|
|
|
3687
3633
|
/** AISessionInsights is what a model found to change in the session. analyzed_at with version is its identity. */
|
|
3688
3634
|
export interface AISessionInsights {
|
|
3689
|
-
/** Zero to three insights
|
|
3635
|
+
/** Zero to three insights, most important first; empty is a session with nothing to change. */
|
|
3690
3636
|
insights: AISessionInsight[];
|
|
3691
3637
|
/** The model that analysed it and the insight task's version. */
|
|
3692
3638
|
model: string;
|
|
@@ -3694,25 +3640,54 @@ export interface AISessionInsights {
|
|
|
3694
3640
|
/** The session_version (AISessionSummary.session_version) the analysis read. */
|
|
3695
3641
|
inputSessionVersion: number;
|
|
3696
3642
|
/** When the insights run selected the session. */
|
|
3697
|
-
analyzedAt:
|
|
3643
|
+
analyzedAt:
|
|
3644
|
+
| Date
|
|
3645
|
+
| undefined;
|
|
3646
|
+
/** The topics file's content version the analysis used (e.g. team-topics-v1@3f2a9c1d0e4b). */
|
|
3647
|
+
topicsVersion: string;
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
/**
|
|
3651
|
+
* AISessionInsightTopic is what an insight is filed under: a topic from the team's topics file, or one the model named for a
|
|
3652
|
+
* finding none of them fits.
|
|
3653
|
+
*/
|
|
3654
|
+
export interface AISessionInsightTopic {
|
|
3655
|
+
/** The topics file's key (e.g. verification); empty for a topic the model named. */
|
|
3656
|
+
key: string;
|
|
3657
|
+
/** The topic's name: the topics file's, or 2 to 4 words the model wrote. */
|
|
3658
|
+
name: string;
|
|
3698
3659
|
}
|
|
3699
3660
|
|
|
3700
3661
|
/**
|
|
3701
|
-
* AISessionInsight is one
|
|
3702
|
-
*
|
|
3703
|
-
*
|
|
3662
|
+
* AISessionInsight is one change a model recommends after the session, with what it found. action_type is the typed kind
|
|
3663
|
+
* of change, which clients branch on; topic is what it is filed under, from the session insights job's topics file or
|
|
3664
|
+
* named by the model. title, finding, recommendation, remediation_prompt and a model-named topic are model-written
|
|
3665
|
+
* text about this session alone, returned only to readers of the session's project; they never name a person by
|
|
3666
|
+
* design, which the model is told and nothing checks.
|
|
3704
3667
|
*/
|
|
3705
3668
|
export interface AISessionInsight {
|
|
3706
|
-
category: AISessionInsightCategory;
|
|
3707
|
-
actionType: AISessionInsightActionType;
|
|
3708
3669
|
/** The session's events the insight cites, in the model's order. Quote them from the stored events. */
|
|
3709
3670
|
evidenceRefs: AISessionEventRef[];
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
/**
|
|
3713
|
-
|
|
3714
|
-
/**
|
|
3715
|
-
|
|
3671
|
+
/** What to do, at most 80 runes. */
|
|
3672
|
+
title: string;
|
|
3673
|
+
/** What happened in the session and what it cost, at most 300 runes. */
|
|
3674
|
+
finding: string;
|
|
3675
|
+
/** The change to make and why it prevents this, at most 300 runes. */
|
|
3676
|
+
recommendation: string;
|
|
3677
|
+
/** The kind of change the insight recommends. */
|
|
3678
|
+
actionType: AISessionInsightActionType;
|
|
3679
|
+
/**
|
|
3680
|
+
* A draft the person can paste into their coding agent to make the change, at most 1,200 runes; empty when the
|
|
3681
|
+
* action needs none and the model wrote none. Model-written from untrusted session content: show it as a draft to
|
|
3682
|
+
* review, never apply it automatically.
|
|
3683
|
+
*/
|
|
3684
|
+
remediationPrompt: string;
|
|
3685
|
+
/** What the insight is filed under. */
|
|
3686
|
+
topic:
|
|
3687
|
+
| AISessionInsightTopic
|
|
3688
|
+
| undefined;
|
|
3689
|
+
/** The catalog skill the insight recommends installing; set when the insight attaches one, always on ADD_SKILL. */
|
|
3690
|
+
skill: AISkillSuggestion | undefined;
|
|
3716
3691
|
}
|
|
3717
3692
|
|
|
3718
3693
|
/** AISkillSuggestion pins an immutable catalog revision, even when metadata cannot be resolved now. */
|
|
@@ -22730,6 +22705,526 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
|
|
|
22730
22705
|
},
|
|
22731
22706
|
};
|
|
22732
22707
|
|
|
22708
|
+
function createBaseListSessionInsightsRequest(): ListSessionInsightsRequest {
|
|
22709
|
+
return { organizationId: "", projectId: "", filter: undefined, sort: 0, pageSize: 0, pageToken: "" };
|
|
22710
|
+
}
|
|
22711
|
+
|
|
22712
|
+
export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest> = {
|
|
22713
|
+
encode(message: ListSessionInsightsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
22714
|
+
if (message.organizationId !== "") {
|
|
22715
|
+
writer.uint32(10).string(message.organizationId);
|
|
22716
|
+
}
|
|
22717
|
+
if (message.projectId !== "") {
|
|
22718
|
+
writer.uint32(18).string(message.projectId);
|
|
22719
|
+
}
|
|
22720
|
+
if (message.filter !== undefined) {
|
|
22721
|
+
SessionInsightFilter.encode(message.filter, writer.uint32(26).fork()).join();
|
|
22722
|
+
}
|
|
22723
|
+
if (message.sort !== 0) {
|
|
22724
|
+
writer.uint32(32).int32(message.sort);
|
|
22725
|
+
}
|
|
22726
|
+
if (message.pageSize !== 0) {
|
|
22727
|
+
writer.uint32(40).int32(message.pageSize);
|
|
22728
|
+
}
|
|
22729
|
+
if (message.pageToken !== "") {
|
|
22730
|
+
writer.uint32(50).string(message.pageToken);
|
|
22731
|
+
}
|
|
22732
|
+
return writer;
|
|
22733
|
+
},
|
|
22734
|
+
|
|
22735
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListSessionInsightsRequest {
|
|
22736
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
22737
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
22738
|
+
if (previousRecursionDepth >= 100) {
|
|
22739
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
22740
|
+
}
|
|
22741
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
22742
|
+
try {
|
|
22743
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
22744
|
+
const message = createBaseListSessionInsightsRequest();
|
|
22745
|
+
while (reader.pos < end) {
|
|
22746
|
+
const tag = reader.uint32();
|
|
22747
|
+
switch (tag >>> 3) {
|
|
22748
|
+
case 1: {
|
|
22749
|
+
if (tag !== 10) {
|
|
22750
|
+
break;
|
|
22751
|
+
}
|
|
22752
|
+
|
|
22753
|
+
message.organizationId = reader.string();
|
|
22754
|
+
continue;
|
|
22755
|
+
}
|
|
22756
|
+
case 2: {
|
|
22757
|
+
if (tag !== 18) {
|
|
22758
|
+
break;
|
|
22759
|
+
}
|
|
22760
|
+
|
|
22761
|
+
message.projectId = reader.string();
|
|
22762
|
+
continue;
|
|
22763
|
+
}
|
|
22764
|
+
case 3: {
|
|
22765
|
+
if (tag !== 26) {
|
|
22766
|
+
break;
|
|
22767
|
+
}
|
|
22768
|
+
|
|
22769
|
+
message.filter = SessionInsightFilter.decode(reader, reader.uint32());
|
|
22770
|
+
continue;
|
|
22771
|
+
}
|
|
22772
|
+
case 4: {
|
|
22773
|
+
if (tag !== 32) {
|
|
22774
|
+
break;
|
|
22775
|
+
}
|
|
22776
|
+
|
|
22777
|
+
message.sort = reader.int32() as any;
|
|
22778
|
+
continue;
|
|
22779
|
+
}
|
|
22780
|
+
case 5: {
|
|
22781
|
+
if (tag !== 40) {
|
|
22782
|
+
break;
|
|
22783
|
+
}
|
|
22784
|
+
|
|
22785
|
+
message.pageSize = reader.int32();
|
|
22786
|
+
continue;
|
|
22787
|
+
}
|
|
22788
|
+
case 6: {
|
|
22789
|
+
if (tag !== 50) {
|
|
22790
|
+
break;
|
|
22791
|
+
}
|
|
22792
|
+
|
|
22793
|
+
message.pageToken = reader.string();
|
|
22794
|
+
continue;
|
|
22795
|
+
}
|
|
22796
|
+
}
|
|
22797
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22798
|
+
break;
|
|
22799
|
+
}
|
|
22800
|
+
reader.skip(tag & 7);
|
|
22801
|
+
}
|
|
22802
|
+
return message;
|
|
22803
|
+
} finally {
|
|
22804
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
22805
|
+
}
|
|
22806
|
+
},
|
|
22807
|
+
|
|
22808
|
+
fromJSON(object: any): ListSessionInsightsRequest {
|
|
22809
|
+
return {
|
|
22810
|
+
organizationId: isSet(object.organizationId)
|
|
22811
|
+
? globalThis.String(object.organizationId)
|
|
22812
|
+
: isSet(object.organization_id)
|
|
22813
|
+
? globalThis.String(object.organization_id)
|
|
22814
|
+
: "",
|
|
22815
|
+
projectId: isSet(object.projectId)
|
|
22816
|
+
? globalThis.String(object.projectId)
|
|
22817
|
+
: isSet(object.project_id)
|
|
22818
|
+
? globalThis.String(object.project_id)
|
|
22819
|
+
: "",
|
|
22820
|
+
filter: isSet(object.filter) ? SessionInsightFilter.fromJSON(object.filter) : undefined,
|
|
22821
|
+
sort: isSet(object.sort) ? sessionInsightSortFromJSON(object.sort) : 0,
|
|
22822
|
+
pageSize: isSet(object.pageSize)
|
|
22823
|
+
? globalThis.Number(object.pageSize)
|
|
22824
|
+
: isSet(object.page_size)
|
|
22825
|
+
? globalThis.Number(object.page_size)
|
|
22826
|
+
: 0,
|
|
22827
|
+
pageToken: isSet(object.pageToken)
|
|
22828
|
+
? globalThis.String(object.pageToken)
|
|
22829
|
+
: isSet(object.page_token)
|
|
22830
|
+
? globalThis.String(object.page_token)
|
|
22831
|
+
: "",
|
|
22832
|
+
};
|
|
22833
|
+
},
|
|
22834
|
+
|
|
22835
|
+
toJSON(message: ListSessionInsightsRequest): unknown {
|
|
22836
|
+
const obj: any = {};
|
|
22837
|
+
if (message.organizationId !== "") {
|
|
22838
|
+
obj.organizationId = message.organizationId;
|
|
22839
|
+
}
|
|
22840
|
+
if (message.projectId !== "") {
|
|
22841
|
+
obj.projectId = message.projectId;
|
|
22842
|
+
}
|
|
22843
|
+
if (message.filter !== undefined) {
|
|
22844
|
+
obj.filter = SessionInsightFilter.toJSON(message.filter);
|
|
22845
|
+
}
|
|
22846
|
+
if (message.sort !== 0) {
|
|
22847
|
+
obj.sort = sessionInsightSortToJSON(message.sort);
|
|
22848
|
+
}
|
|
22849
|
+
if (message.pageSize !== 0) {
|
|
22850
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
22851
|
+
}
|
|
22852
|
+
if (message.pageToken !== "") {
|
|
22853
|
+
obj.pageToken = message.pageToken;
|
|
22854
|
+
}
|
|
22855
|
+
return obj;
|
|
22856
|
+
},
|
|
22857
|
+
|
|
22858
|
+
create<I extends Exact<DeepPartial<ListSessionInsightsRequest>, I>>(base?: I): ListSessionInsightsRequest {
|
|
22859
|
+
return ListSessionInsightsRequest.fromPartial(base ?? ({} as any));
|
|
22860
|
+
},
|
|
22861
|
+
fromPartial<I extends Exact<DeepPartial<ListSessionInsightsRequest>, I>>(object: I): ListSessionInsightsRequest {
|
|
22862
|
+
const message = createBaseListSessionInsightsRequest();
|
|
22863
|
+
message.organizationId = object.organizationId ?? "";
|
|
22864
|
+
message.projectId = object.projectId ?? "";
|
|
22865
|
+
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
22866
|
+
? SessionInsightFilter.fromPartial(object.filter)
|
|
22867
|
+
: undefined;
|
|
22868
|
+
message.sort = object.sort ?? 0;
|
|
22869
|
+
message.pageSize = object.pageSize ?? 0;
|
|
22870
|
+
message.pageToken = object.pageToken ?? "";
|
|
22871
|
+
return message;
|
|
22872
|
+
},
|
|
22873
|
+
};
|
|
22874
|
+
|
|
22875
|
+
function createBaseSessionInsightFilter(): SessionInsightFilter {
|
|
22876
|
+
return { userIds: [], sourceSystems: [], topicKeys: [] };
|
|
22877
|
+
}
|
|
22878
|
+
|
|
22879
|
+
export const SessionInsightFilter: MessageFns<SessionInsightFilter> = {
|
|
22880
|
+
encode(message: SessionInsightFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
22881
|
+
for (const v of message.userIds) {
|
|
22882
|
+
writer.uint32(10).string(v!);
|
|
22883
|
+
}
|
|
22884
|
+
for (const v of message.sourceSystems) {
|
|
22885
|
+
writer.uint32(18).string(v!);
|
|
22886
|
+
}
|
|
22887
|
+
for (const v of message.topicKeys) {
|
|
22888
|
+
writer.uint32(26).string(v!);
|
|
22889
|
+
}
|
|
22890
|
+
return writer;
|
|
22891
|
+
},
|
|
22892
|
+
|
|
22893
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SessionInsightFilter {
|
|
22894
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
22895
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
22896
|
+
if (previousRecursionDepth >= 100) {
|
|
22897
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
22898
|
+
}
|
|
22899
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
22900
|
+
try {
|
|
22901
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
22902
|
+
const message = createBaseSessionInsightFilter();
|
|
22903
|
+
while (reader.pos < end) {
|
|
22904
|
+
const tag = reader.uint32();
|
|
22905
|
+
switch (tag >>> 3) {
|
|
22906
|
+
case 1: {
|
|
22907
|
+
if (tag !== 10) {
|
|
22908
|
+
break;
|
|
22909
|
+
}
|
|
22910
|
+
|
|
22911
|
+
message.userIds.push(reader.string());
|
|
22912
|
+
continue;
|
|
22913
|
+
}
|
|
22914
|
+
case 2: {
|
|
22915
|
+
if (tag !== 18) {
|
|
22916
|
+
break;
|
|
22917
|
+
}
|
|
22918
|
+
|
|
22919
|
+
message.sourceSystems.push(reader.string());
|
|
22920
|
+
continue;
|
|
22921
|
+
}
|
|
22922
|
+
case 3: {
|
|
22923
|
+
if (tag !== 26) {
|
|
22924
|
+
break;
|
|
22925
|
+
}
|
|
22926
|
+
|
|
22927
|
+
message.topicKeys.push(reader.string());
|
|
22928
|
+
continue;
|
|
22929
|
+
}
|
|
22930
|
+
}
|
|
22931
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22932
|
+
break;
|
|
22933
|
+
}
|
|
22934
|
+
reader.skip(tag & 7);
|
|
22935
|
+
}
|
|
22936
|
+
return message;
|
|
22937
|
+
} finally {
|
|
22938
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
22939
|
+
}
|
|
22940
|
+
},
|
|
22941
|
+
|
|
22942
|
+
fromJSON(object: any): SessionInsightFilter {
|
|
22943
|
+
return {
|
|
22944
|
+
userIds: globalThis.Array.isArray(object?.userIds)
|
|
22945
|
+
? object.userIds.map((e: any) => globalThis.String(e))
|
|
22946
|
+
: globalThis.Array.isArray(object?.user_ids)
|
|
22947
|
+
? object.user_ids.map((e: any) => globalThis.String(e))
|
|
22948
|
+
: [],
|
|
22949
|
+
sourceSystems: globalThis.Array.isArray(object?.sourceSystems)
|
|
22950
|
+
? object.sourceSystems.map((e: any) => globalThis.String(e))
|
|
22951
|
+
: globalThis.Array.isArray(object?.source_systems)
|
|
22952
|
+
? object.source_systems.map((e: any) => globalThis.String(e))
|
|
22953
|
+
: [],
|
|
22954
|
+
topicKeys: globalThis.Array.isArray(object?.topicKeys)
|
|
22955
|
+
? object.topicKeys.map((e: any) => globalThis.String(e))
|
|
22956
|
+
: globalThis.Array.isArray(object?.topic_keys)
|
|
22957
|
+
? object.topic_keys.map((e: any) => globalThis.String(e))
|
|
22958
|
+
: [],
|
|
22959
|
+
};
|
|
22960
|
+
},
|
|
22961
|
+
|
|
22962
|
+
toJSON(message: SessionInsightFilter): unknown {
|
|
22963
|
+
const obj: any = {};
|
|
22964
|
+
if (message.userIds?.length) {
|
|
22965
|
+
obj.userIds = message.userIds;
|
|
22966
|
+
}
|
|
22967
|
+
if (message.sourceSystems?.length) {
|
|
22968
|
+
obj.sourceSystems = message.sourceSystems;
|
|
22969
|
+
}
|
|
22970
|
+
if (message.topicKeys?.length) {
|
|
22971
|
+
obj.topicKeys = message.topicKeys;
|
|
22972
|
+
}
|
|
22973
|
+
return obj;
|
|
22974
|
+
},
|
|
22975
|
+
|
|
22976
|
+
create<I extends Exact<DeepPartial<SessionInsightFilter>, I>>(base?: I): SessionInsightFilter {
|
|
22977
|
+
return SessionInsightFilter.fromPartial(base ?? ({} as any));
|
|
22978
|
+
},
|
|
22979
|
+
fromPartial<I extends Exact<DeepPartial<SessionInsightFilter>, I>>(object: I): SessionInsightFilter {
|
|
22980
|
+
const message = createBaseSessionInsightFilter();
|
|
22981
|
+
message.userIds = object.userIds?.map((e) => e) || [];
|
|
22982
|
+
message.sourceSystems = object.sourceSystems?.map((e) => e) || [];
|
|
22983
|
+
message.topicKeys = object.topicKeys?.map((e) => e) || [];
|
|
22984
|
+
return message;
|
|
22985
|
+
},
|
|
22986
|
+
};
|
|
22987
|
+
|
|
22988
|
+
function createBaseListSessionInsightsResponse(): ListSessionInsightsResponse {
|
|
22989
|
+
return { status: undefined, insights: [], nextPageToken: "" };
|
|
22990
|
+
}
|
|
22991
|
+
|
|
22992
|
+
export const ListSessionInsightsResponse: MessageFns<ListSessionInsightsResponse> = {
|
|
22993
|
+
encode(message: ListSessionInsightsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
22994
|
+
if (message.status !== undefined) {
|
|
22995
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
22996
|
+
}
|
|
22997
|
+
for (const v of message.insights) {
|
|
22998
|
+
SessionInsightEntry.encode(v!, writer.uint32(18).fork()).join();
|
|
22999
|
+
}
|
|
23000
|
+
if (message.nextPageToken !== "") {
|
|
23001
|
+
writer.uint32(26).string(message.nextPageToken);
|
|
23002
|
+
}
|
|
23003
|
+
return writer;
|
|
23004
|
+
},
|
|
23005
|
+
|
|
23006
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListSessionInsightsResponse {
|
|
23007
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23008
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23009
|
+
if (previousRecursionDepth >= 100) {
|
|
23010
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23011
|
+
}
|
|
23012
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23013
|
+
try {
|
|
23014
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23015
|
+
const message = createBaseListSessionInsightsResponse();
|
|
23016
|
+
while (reader.pos < end) {
|
|
23017
|
+
const tag = reader.uint32();
|
|
23018
|
+
switch (tag >>> 3) {
|
|
23019
|
+
case 1: {
|
|
23020
|
+
if (tag !== 10) {
|
|
23021
|
+
break;
|
|
23022
|
+
}
|
|
23023
|
+
|
|
23024
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
23025
|
+
continue;
|
|
23026
|
+
}
|
|
23027
|
+
case 2: {
|
|
23028
|
+
if (tag !== 18) {
|
|
23029
|
+
break;
|
|
23030
|
+
}
|
|
23031
|
+
|
|
23032
|
+
message.insights.push(SessionInsightEntry.decode(reader, reader.uint32()));
|
|
23033
|
+
continue;
|
|
23034
|
+
}
|
|
23035
|
+
case 3: {
|
|
23036
|
+
if (tag !== 26) {
|
|
23037
|
+
break;
|
|
23038
|
+
}
|
|
23039
|
+
|
|
23040
|
+
message.nextPageToken = reader.string();
|
|
23041
|
+
continue;
|
|
23042
|
+
}
|
|
23043
|
+
}
|
|
23044
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23045
|
+
break;
|
|
23046
|
+
}
|
|
23047
|
+
reader.skip(tag & 7);
|
|
23048
|
+
}
|
|
23049
|
+
return message;
|
|
23050
|
+
} finally {
|
|
23051
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23052
|
+
}
|
|
23053
|
+
},
|
|
23054
|
+
|
|
23055
|
+
fromJSON(object: any): ListSessionInsightsResponse {
|
|
23056
|
+
return {
|
|
23057
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
23058
|
+
insights: globalThis.Array.isArray(object?.insights)
|
|
23059
|
+
? object.insights.map((e: any) => SessionInsightEntry.fromJSON(e))
|
|
23060
|
+
: [],
|
|
23061
|
+
nextPageToken: isSet(object.nextPageToken)
|
|
23062
|
+
? globalThis.String(object.nextPageToken)
|
|
23063
|
+
: isSet(object.next_page_token)
|
|
23064
|
+
? globalThis.String(object.next_page_token)
|
|
23065
|
+
: "",
|
|
23066
|
+
};
|
|
23067
|
+
},
|
|
23068
|
+
|
|
23069
|
+
toJSON(message: ListSessionInsightsResponse): unknown {
|
|
23070
|
+
const obj: any = {};
|
|
23071
|
+
if (message.status !== undefined) {
|
|
23072
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
23073
|
+
}
|
|
23074
|
+
if (message.insights?.length) {
|
|
23075
|
+
obj.insights = message.insights.map((e) => SessionInsightEntry.toJSON(e));
|
|
23076
|
+
}
|
|
23077
|
+
if (message.nextPageToken !== "") {
|
|
23078
|
+
obj.nextPageToken = message.nextPageToken;
|
|
23079
|
+
}
|
|
23080
|
+
return obj;
|
|
23081
|
+
},
|
|
23082
|
+
|
|
23083
|
+
create<I extends Exact<DeepPartial<ListSessionInsightsResponse>, I>>(base?: I): ListSessionInsightsResponse {
|
|
23084
|
+
return ListSessionInsightsResponse.fromPartial(base ?? ({} as any));
|
|
23085
|
+
},
|
|
23086
|
+
fromPartial<I extends Exact<DeepPartial<ListSessionInsightsResponse>, I>>(object: I): ListSessionInsightsResponse {
|
|
23087
|
+
const message = createBaseListSessionInsightsResponse();
|
|
23088
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
23089
|
+
? ResponseStatus.fromPartial(object.status)
|
|
23090
|
+
: undefined;
|
|
23091
|
+
message.insights = object.insights?.map((e) => SessionInsightEntry.fromPartial(e)) || [];
|
|
23092
|
+
message.nextPageToken = object.nextPageToken ?? "";
|
|
23093
|
+
return message;
|
|
23094
|
+
},
|
|
23095
|
+
};
|
|
23096
|
+
|
|
23097
|
+
function createBaseSessionInsightEntry(): SessionInsightEntry {
|
|
23098
|
+
return { sourceSystem: "", sessionId: "", analyzedAt: undefined, insight: undefined };
|
|
23099
|
+
}
|
|
23100
|
+
|
|
23101
|
+
export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
|
|
23102
|
+
encode(message: SessionInsightEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23103
|
+
if (message.sourceSystem !== "") {
|
|
23104
|
+
writer.uint32(10).string(message.sourceSystem);
|
|
23105
|
+
}
|
|
23106
|
+
if (message.sessionId !== "") {
|
|
23107
|
+
writer.uint32(18).string(message.sessionId);
|
|
23108
|
+
}
|
|
23109
|
+
if (message.analyzedAt !== undefined) {
|
|
23110
|
+
Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(26).fork()).join();
|
|
23111
|
+
}
|
|
23112
|
+
if (message.insight !== undefined) {
|
|
23113
|
+
AISessionInsight.encode(message.insight, writer.uint32(34).fork()).join();
|
|
23114
|
+
}
|
|
23115
|
+
return writer;
|
|
23116
|
+
},
|
|
23117
|
+
|
|
23118
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SessionInsightEntry {
|
|
23119
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23120
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23121
|
+
if (previousRecursionDepth >= 100) {
|
|
23122
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23123
|
+
}
|
|
23124
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23125
|
+
try {
|
|
23126
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23127
|
+
const message = createBaseSessionInsightEntry();
|
|
23128
|
+
while (reader.pos < end) {
|
|
23129
|
+
const tag = reader.uint32();
|
|
23130
|
+
switch (tag >>> 3) {
|
|
23131
|
+
case 1: {
|
|
23132
|
+
if (tag !== 10) {
|
|
23133
|
+
break;
|
|
23134
|
+
}
|
|
23135
|
+
|
|
23136
|
+
message.sourceSystem = reader.string();
|
|
23137
|
+
continue;
|
|
23138
|
+
}
|
|
23139
|
+
case 2: {
|
|
23140
|
+
if (tag !== 18) {
|
|
23141
|
+
break;
|
|
23142
|
+
}
|
|
23143
|
+
|
|
23144
|
+
message.sessionId = reader.string();
|
|
23145
|
+
continue;
|
|
23146
|
+
}
|
|
23147
|
+
case 3: {
|
|
23148
|
+
if (tag !== 26) {
|
|
23149
|
+
break;
|
|
23150
|
+
}
|
|
23151
|
+
|
|
23152
|
+
message.analyzedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
23153
|
+
continue;
|
|
23154
|
+
}
|
|
23155
|
+
case 4: {
|
|
23156
|
+
if (tag !== 34) {
|
|
23157
|
+
break;
|
|
23158
|
+
}
|
|
23159
|
+
|
|
23160
|
+
message.insight = AISessionInsight.decode(reader, reader.uint32());
|
|
23161
|
+
continue;
|
|
23162
|
+
}
|
|
23163
|
+
}
|
|
23164
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23165
|
+
break;
|
|
23166
|
+
}
|
|
23167
|
+
reader.skip(tag & 7);
|
|
23168
|
+
}
|
|
23169
|
+
return message;
|
|
23170
|
+
} finally {
|
|
23171
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23172
|
+
}
|
|
23173
|
+
},
|
|
23174
|
+
|
|
23175
|
+
fromJSON(object: any): SessionInsightEntry {
|
|
23176
|
+
return {
|
|
23177
|
+
sourceSystem: isSet(object.sourceSystem)
|
|
23178
|
+
? globalThis.String(object.sourceSystem)
|
|
23179
|
+
: isSet(object.source_system)
|
|
23180
|
+
? globalThis.String(object.source_system)
|
|
23181
|
+
: "",
|
|
23182
|
+
sessionId: isSet(object.sessionId)
|
|
23183
|
+
? globalThis.String(object.sessionId)
|
|
23184
|
+
: isSet(object.session_id)
|
|
23185
|
+
? globalThis.String(object.session_id)
|
|
23186
|
+
: "",
|
|
23187
|
+
analyzedAt: isSet(object.analyzedAt)
|
|
23188
|
+
? fromJsonTimestamp(object.analyzedAt)
|
|
23189
|
+
: isSet(object.analyzed_at)
|
|
23190
|
+
? fromJsonTimestamp(object.analyzed_at)
|
|
23191
|
+
: undefined,
|
|
23192
|
+
insight: isSet(object.insight) ? AISessionInsight.fromJSON(object.insight) : undefined,
|
|
23193
|
+
};
|
|
23194
|
+
},
|
|
23195
|
+
|
|
23196
|
+
toJSON(message: SessionInsightEntry): unknown {
|
|
23197
|
+
const obj: any = {};
|
|
23198
|
+
if (message.sourceSystem !== "") {
|
|
23199
|
+
obj.sourceSystem = message.sourceSystem;
|
|
23200
|
+
}
|
|
23201
|
+
if (message.sessionId !== "") {
|
|
23202
|
+
obj.sessionId = message.sessionId;
|
|
23203
|
+
}
|
|
23204
|
+
if (message.analyzedAt !== undefined) {
|
|
23205
|
+
obj.analyzedAt = message.analyzedAt.toISOString();
|
|
23206
|
+
}
|
|
23207
|
+
if (message.insight !== undefined) {
|
|
23208
|
+
obj.insight = AISessionInsight.toJSON(message.insight);
|
|
23209
|
+
}
|
|
23210
|
+
return obj;
|
|
23211
|
+
},
|
|
23212
|
+
|
|
23213
|
+
create<I extends Exact<DeepPartial<SessionInsightEntry>, I>>(base?: I): SessionInsightEntry {
|
|
23214
|
+
return SessionInsightEntry.fromPartial(base ?? ({} as any));
|
|
23215
|
+
},
|
|
23216
|
+
fromPartial<I extends Exact<DeepPartial<SessionInsightEntry>, I>>(object: I): SessionInsightEntry {
|
|
23217
|
+
const message = createBaseSessionInsightEntry();
|
|
23218
|
+
message.sourceSystem = object.sourceSystem ?? "";
|
|
23219
|
+
message.sessionId = object.sessionId ?? "";
|
|
23220
|
+
message.analyzedAt = object.analyzedAt ?? undefined;
|
|
23221
|
+
message.insight = (object.insight !== undefined && object.insight !== null)
|
|
23222
|
+
? AISessionInsight.fromPartial(object.insight)
|
|
23223
|
+
: undefined;
|
|
23224
|
+
return message;
|
|
23225
|
+
},
|
|
23226
|
+
};
|
|
23227
|
+
|
|
22733
23228
|
function createBaseGetSessionAnalysisResponse(): GetSessionAnalysisResponse {
|
|
22734
23229
|
return { status: undefined, score: undefined, insights: undefined, sessionVersion: undefined };
|
|
22735
23230
|
}
|
|
@@ -22858,7 +23353,7 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
22858
23353
|
};
|
|
22859
23354
|
|
|
22860
23355
|
function createBaseAISessionInsights(): AISessionInsights {
|
|
22861
|
-
return { insights: [], model: "", version: "", inputSessionVersion: 0, analyzedAt: undefined };
|
|
23356
|
+
return { insights: [], model: "", version: "", inputSessionVersion: 0, analyzedAt: undefined, topicsVersion: "" };
|
|
22862
23357
|
}
|
|
22863
23358
|
|
|
22864
23359
|
export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
@@ -22878,6 +23373,9 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22878
23373
|
if (message.analyzedAt !== undefined) {
|
|
22879
23374
|
Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(42).fork()).join();
|
|
22880
23375
|
}
|
|
23376
|
+
if (message.topicsVersion !== "") {
|
|
23377
|
+
writer.uint32(50).string(message.topicsVersion);
|
|
23378
|
+
}
|
|
22881
23379
|
return writer;
|
|
22882
23380
|
},
|
|
22883
23381
|
|
|
@@ -22934,6 +23432,14 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22934
23432
|
message.analyzedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
22935
23433
|
continue;
|
|
22936
23434
|
}
|
|
23435
|
+
case 6: {
|
|
23436
|
+
if (tag !== 50) {
|
|
23437
|
+
break;
|
|
23438
|
+
}
|
|
23439
|
+
|
|
23440
|
+
message.topicsVersion = reader.string();
|
|
23441
|
+
continue;
|
|
23442
|
+
}
|
|
22937
23443
|
}
|
|
22938
23444
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22939
23445
|
break;
|
|
@@ -22963,6 +23469,11 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22963
23469
|
: isSet(object.analyzed_at)
|
|
22964
23470
|
? fromJsonTimestamp(object.analyzed_at)
|
|
22965
23471
|
: undefined,
|
|
23472
|
+
topicsVersion: isSet(object.topicsVersion)
|
|
23473
|
+
? globalThis.String(object.topicsVersion)
|
|
23474
|
+
: isSet(object.topics_version)
|
|
23475
|
+
? globalThis.String(object.topics_version)
|
|
23476
|
+
: "",
|
|
22966
23477
|
};
|
|
22967
23478
|
},
|
|
22968
23479
|
|
|
@@ -22983,6 +23494,9 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22983
23494
|
if (message.analyzedAt !== undefined) {
|
|
22984
23495
|
obj.analyzedAt = message.analyzedAt.toISOString();
|
|
22985
23496
|
}
|
|
23497
|
+
if (message.topicsVersion !== "") {
|
|
23498
|
+
obj.topicsVersion = message.topicsVersion;
|
|
23499
|
+
}
|
|
22986
23500
|
return obj;
|
|
22987
23501
|
},
|
|
22988
23502
|
|
|
@@ -22996,44 +23510,134 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22996
23510
|
message.version = object.version ?? "";
|
|
22997
23511
|
message.inputSessionVersion = object.inputSessionVersion ?? 0;
|
|
22998
23512
|
message.analyzedAt = object.analyzedAt ?? undefined;
|
|
23513
|
+
message.topicsVersion = object.topicsVersion ?? "";
|
|
23514
|
+
return message;
|
|
23515
|
+
},
|
|
23516
|
+
};
|
|
23517
|
+
|
|
23518
|
+
function createBaseAISessionInsightTopic(): AISessionInsightTopic {
|
|
23519
|
+
return { key: "", name: "" };
|
|
23520
|
+
}
|
|
23521
|
+
|
|
23522
|
+
export const AISessionInsightTopic: MessageFns<AISessionInsightTopic> = {
|
|
23523
|
+
encode(message: AISessionInsightTopic, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23524
|
+
if (message.key !== "") {
|
|
23525
|
+
writer.uint32(10).string(message.key);
|
|
23526
|
+
}
|
|
23527
|
+
if (message.name !== "") {
|
|
23528
|
+
writer.uint32(18).string(message.name);
|
|
23529
|
+
}
|
|
23530
|
+
return writer;
|
|
23531
|
+
},
|
|
23532
|
+
|
|
23533
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AISessionInsightTopic {
|
|
23534
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23535
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23536
|
+
if (previousRecursionDepth >= 100) {
|
|
23537
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23538
|
+
}
|
|
23539
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23540
|
+
try {
|
|
23541
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23542
|
+
const message = createBaseAISessionInsightTopic();
|
|
23543
|
+
while (reader.pos < end) {
|
|
23544
|
+
const tag = reader.uint32();
|
|
23545
|
+
switch (tag >>> 3) {
|
|
23546
|
+
case 1: {
|
|
23547
|
+
if (tag !== 10) {
|
|
23548
|
+
break;
|
|
23549
|
+
}
|
|
23550
|
+
|
|
23551
|
+
message.key = reader.string();
|
|
23552
|
+
continue;
|
|
23553
|
+
}
|
|
23554
|
+
case 2: {
|
|
23555
|
+
if (tag !== 18) {
|
|
23556
|
+
break;
|
|
23557
|
+
}
|
|
23558
|
+
|
|
23559
|
+
message.name = reader.string();
|
|
23560
|
+
continue;
|
|
23561
|
+
}
|
|
23562
|
+
}
|
|
23563
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23564
|
+
break;
|
|
23565
|
+
}
|
|
23566
|
+
reader.skip(tag & 7);
|
|
23567
|
+
}
|
|
23568
|
+
return message;
|
|
23569
|
+
} finally {
|
|
23570
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23571
|
+
}
|
|
23572
|
+
},
|
|
23573
|
+
|
|
23574
|
+
fromJSON(object: any): AISessionInsightTopic {
|
|
23575
|
+
return {
|
|
23576
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
23577
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
23578
|
+
};
|
|
23579
|
+
},
|
|
23580
|
+
|
|
23581
|
+
toJSON(message: AISessionInsightTopic): unknown {
|
|
23582
|
+
const obj: any = {};
|
|
23583
|
+
if (message.key !== "") {
|
|
23584
|
+
obj.key = message.key;
|
|
23585
|
+
}
|
|
23586
|
+
if (message.name !== "") {
|
|
23587
|
+
obj.name = message.name;
|
|
23588
|
+
}
|
|
23589
|
+
return obj;
|
|
23590
|
+
},
|
|
23591
|
+
|
|
23592
|
+
create<I extends Exact<DeepPartial<AISessionInsightTopic>, I>>(base?: I): AISessionInsightTopic {
|
|
23593
|
+
return AISessionInsightTopic.fromPartial(base ?? ({} as any));
|
|
23594
|
+
},
|
|
23595
|
+
fromPartial<I extends Exact<DeepPartial<AISessionInsightTopic>, I>>(object: I): AISessionInsightTopic {
|
|
23596
|
+
const message = createBaseAISessionInsightTopic();
|
|
23597
|
+
message.key = object.key ?? "";
|
|
23598
|
+
message.name = object.name ?? "";
|
|
22999
23599
|
return message;
|
|
23000
23600
|
},
|
|
23001
23601
|
};
|
|
23002
23602
|
|
|
23003
23603
|
function createBaseAISessionInsight(): AISessionInsight {
|
|
23004
23604
|
return {
|
|
23005
|
-
category: 0,
|
|
23006
|
-
actionType: 0,
|
|
23007
23605
|
evidenceRefs: [],
|
|
23008
|
-
|
|
23009
|
-
|
|
23010
|
-
|
|
23011
|
-
|
|
23606
|
+
title: "",
|
|
23607
|
+
finding: "",
|
|
23608
|
+
recommendation: "",
|
|
23609
|
+
actionType: 0,
|
|
23610
|
+
remediationPrompt: "",
|
|
23611
|
+
topic: undefined,
|
|
23612
|
+
skill: undefined,
|
|
23012
23613
|
};
|
|
23013
23614
|
}
|
|
23014
23615
|
|
|
23015
23616
|
export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
23016
23617
|
encode(message: AISessionInsight, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23017
|
-
|
|
23018
|
-
writer.uint32(
|
|
23618
|
+
for (const v of message.evidenceRefs) {
|
|
23619
|
+
AISessionEventRef.encode(v!, writer.uint32(10).fork()).join();
|
|
23019
23620
|
}
|
|
23020
|
-
if (message.
|
|
23021
|
-
writer.uint32(
|
|
23621
|
+
if (message.title !== "") {
|
|
23622
|
+
writer.uint32(18).string(message.title);
|
|
23022
23623
|
}
|
|
23023
|
-
|
|
23024
|
-
|
|
23624
|
+
if (message.finding !== "") {
|
|
23625
|
+
writer.uint32(26).string(message.finding);
|
|
23025
23626
|
}
|
|
23026
|
-
if (message.
|
|
23027
|
-
writer.uint32(34).string(message.
|
|
23627
|
+
if (message.recommendation !== "") {
|
|
23628
|
+
writer.uint32(34).string(message.recommendation);
|
|
23028
23629
|
}
|
|
23029
|
-
if (message.
|
|
23030
|
-
writer.uint32(
|
|
23630
|
+
if (message.actionType !== 0) {
|
|
23631
|
+
writer.uint32(40).int32(message.actionType);
|
|
23031
23632
|
}
|
|
23032
|
-
if (message.
|
|
23033
|
-
writer.uint32(
|
|
23633
|
+
if (message.remediationPrompt !== "") {
|
|
23634
|
+
writer.uint32(50).string(message.remediationPrompt);
|
|
23034
23635
|
}
|
|
23035
|
-
if (message.
|
|
23036
|
-
|
|
23636
|
+
if (message.topic !== undefined) {
|
|
23637
|
+
AISessionInsightTopic.encode(message.topic, writer.uint32(58).fork()).join();
|
|
23638
|
+
}
|
|
23639
|
+
if (message.skill !== undefined) {
|
|
23640
|
+
AISkillSuggestion.encode(message.skill, writer.uint32(66).fork()).join();
|
|
23037
23641
|
}
|
|
23038
23642
|
return writer;
|
|
23039
23643
|
},
|
|
@@ -23052,19 +23656,19 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23052
23656
|
const tag = reader.uint32();
|
|
23053
23657
|
switch (tag >>> 3) {
|
|
23054
23658
|
case 1: {
|
|
23055
|
-
if (tag !==
|
|
23659
|
+
if (tag !== 10) {
|
|
23056
23660
|
break;
|
|
23057
23661
|
}
|
|
23058
23662
|
|
|
23059
|
-
message.
|
|
23663
|
+
message.evidenceRefs.push(AISessionEventRef.decode(reader, reader.uint32()));
|
|
23060
23664
|
continue;
|
|
23061
23665
|
}
|
|
23062
23666
|
case 2: {
|
|
23063
|
-
if (tag !==
|
|
23667
|
+
if (tag !== 18) {
|
|
23064
23668
|
break;
|
|
23065
23669
|
}
|
|
23066
23670
|
|
|
23067
|
-
message.
|
|
23671
|
+
message.title = reader.string();
|
|
23068
23672
|
continue;
|
|
23069
23673
|
}
|
|
23070
23674
|
case 3: {
|
|
@@ -23072,7 +23676,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23072
23676
|
break;
|
|
23073
23677
|
}
|
|
23074
23678
|
|
|
23075
|
-
message.
|
|
23679
|
+
message.finding = reader.string();
|
|
23076
23680
|
continue;
|
|
23077
23681
|
}
|
|
23078
23682
|
case 4: {
|
|
@@ -23080,23 +23684,23 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23080
23684
|
break;
|
|
23081
23685
|
}
|
|
23082
23686
|
|
|
23083
|
-
message.
|
|
23687
|
+
message.recommendation = reader.string();
|
|
23084
23688
|
continue;
|
|
23085
23689
|
}
|
|
23086
23690
|
case 5: {
|
|
23087
|
-
if (tag !==
|
|
23691
|
+
if (tag !== 40) {
|
|
23088
23692
|
break;
|
|
23089
23693
|
}
|
|
23090
23694
|
|
|
23091
|
-
message.
|
|
23695
|
+
message.actionType = reader.int32() as any;
|
|
23092
23696
|
continue;
|
|
23093
23697
|
}
|
|
23094
23698
|
case 6: {
|
|
23095
|
-
if (tag !==
|
|
23699
|
+
if (tag !== 50) {
|
|
23096
23700
|
break;
|
|
23097
23701
|
}
|
|
23098
23702
|
|
|
23099
|
-
message.
|
|
23703
|
+
message.remediationPrompt = reader.string();
|
|
23100
23704
|
continue;
|
|
23101
23705
|
}
|
|
23102
23706
|
case 7: {
|
|
@@ -23104,7 +23708,15 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23104
23708
|
break;
|
|
23105
23709
|
}
|
|
23106
23710
|
|
|
23107
|
-
message.
|
|
23711
|
+
message.topic = AISessionInsightTopic.decode(reader, reader.uint32());
|
|
23712
|
+
continue;
|
|
23713
|
+
}
|
|
23714
|
+
case 8: {
|
|
23715
|
+
if (tag !== 66) {
|
|
23716
|
+
break;
|
|
23717
|
+
}
|
|
23718
|
+
|
|
23719
|
+
message.skill = AISkillSuggestion.decode(reader, reader.uint32());
|
|
23108
23720
|
continue;
|
|
23109
23721
|
}
|
|
23110
23722
|
}
|
|
@@ -23121,50 +23733,54 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23121
23733
|
|
|
23122
23734
|
fromJSON(object: any): AISessionInsight {
|
|
23123
23735
|
return {
|
|
23124
|
-
category: isSet(object.category) ? aISessionInsightCategoryFromJSON(object.category) : 0,
|
|
23125
|
-
actionType: isSet(object.actionType)
|
|
23126
|
-
? aISessionInsightActionTypeFromJSON(object.actionType)
|
|
23127
|
-
: isSet(object.action_type)
|
|
23128
|
-
? aISessionInsightActionTypeFromJSON(object.action_type)
|
|
23129
|
-
: 0,
|
|
23130
23736
|
evidenceRefs: globalThis.Array.isArray(object?.evidenceRefs)
|
|
23131
23737
|
? object.evidenceRefs.map((e: any) => AISessionEventRef.fromJSON(e))
|
|
23132
23738
|
: globalThis.Array.isArray(object?.evidence_refs)
|
|
23133
23739
|
? object.evidence_refs.map((e: any) => AISessionEventRef.fromJSON(e))
|
|
23134
23740
|
: [],
|
|
23135
|
-
|
|
23136
|
-
|
|
23137
|
-
|
|
23138
|
-
|
|
23139
|
-
?
|
|
23140
|
-
: isSet(object.
|
|
23141
|
-
?
|
|
23142
|
-
:
|
|
23741
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
23742
|
+
finding: isSet(object.finding) ? globalThis.String(object.finding) : "",
|
|
23743
|
+
recommendation: isSet(object.recommendation) ? globalThis.String(object.recommendation) : "",
|
|
23744
|
+
actionType: isSet(object.actionType)
|
|
23745
|
+
? aISessionInsightActionTypeFromJSON(object.actionType)
|
|
23746
|
+
: isSet(object.action_type)
|
|
23747
|
+
? aISessionInsightActionTypeFromJSON(object.action_type)
|
|
23748
|
+
: 0,
|
|
23749
|
+
remediationPrompt: isSet(object.remediationPrompt)
|
|
23750
|
+
? globalThis.String(object.remediationPrompt)
|
|
23751
|
+
: isSet(object.remediation_prompt)
|
|
23752
|
+
? globalThis.String(object.remediation_prompt)
|
|
23753
|
+
: "",
|
|
23754
|
+
topic: isSet(object.topic) ? AISessionInsightTopic.fromJSON(object.topic) : undefined,
|
|
23755
|
+
skill: isSet(object.skill) ? AISkillSuggestion.fromJSON(object.skill) : undefined,
|
|
23143
23756
|
};
|
|
23144
23757
|
},
|
|
23145
23758
|
|
|
23146
23759
|
toJSON(message: AISessionInsight): unknown {
|
|
23147
23760
|
const obj: any = {};
|
|
23148
|
-
if (message.category !== 0) {
|
|
23149
|
-
obj.category = aISessionInsightCategoryToJSON(message.category);
|
|
23150
|
-
}
|
|
23151
|
-
if (message.actionType !== 0) {
|
|
23152
|
-
obj.actionType = aISessionInsightActionTypeToJSON(message.actionType);
|
|
23153
|
-
}
|
|
23154
23761
|
if (message.evidenceRefs?.length) {
|
|
23155
23762
|
obj.evidenceRefs = message.evidenceRefs.map((e) => AISessionEventRef.toJSON(e));
|
|
23156
23763
|
}
|
|
23157
|
-
if (message.
|
|
23158
|
-
obj.
|
|
23764
|
+
if (message.title !== "") {
|
|
23765
|
+
obj.title = message.title;
|
|
23159
23766
|
}
|
|
23160
|
-
if (message.
|
|
23161
|
-
obj.
|
|
23767
|
+
if (message.finding !== "") {
|
|
23768
|
+
obj.finding = message.finding;
|
|
23162
23769
|
}
|
|
23163
|
-
if (message.
|
|
23164
|
-
obj.
|
|
23770
|
+
if (message.recommendation !== "") {
|
|
23771
|
+
obj.recommendation = message.recommendation;
|
|
23165
23772
|
}
|
|
23166
|
-
if (message.
|
|
23167
|
-
obj.
|
|
23773
|
+
if (message.actionType !== 0) {
|
|
23774
|
+
obj.actionType = aISessionInsightActionTypeToJSON(message.actionType);
|
|
23775
|
+
}
|
|
23776
|
+
if (message.remediationPrompt !== "") {
|
|
23777
|
+
obj.remediationPrompt = message.remediationPrompt;
|
|
23778
|
+
}
|
|
23779
|
+
if (message.topic !== undefined) {
|
|
23780
|
+
obj.topic = AISessionInsightTopic.toJSON(message.topic);
|
|
23781
|
+
}
|
|
23782
|
+
if (message.skill !== undefined) {
|
|
23783
|
+
obj.skill = AISkillSuggestion.toJSON(message.skill);
|
|
23168
23784
|
}
|
|
23169
23785
|
return obj;
|
|
23170
23786
|
},
|
|
@@ -23174,14 +23790,17 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23174
23790
|
},
|
|
23175
23791
|
fromPartial<I extends Exact<DeepPartial<AISessionInsight>, I>>(object: I): AISessionInsight {
|
|
23176
23792
|
const message = createBaseAISessionInsight();
|
|
23177
|
-
message.category = object.category ?? 0;
|
|
23178
|
-
message.actionType = object.actionType ?? 0;
|
|
23179
23793
|
message.evidenceRefs = object.evidenceRefs?.map((e) => AISessionEventRef.fromPartial(e)) || [];
|
|
23180
|
-
message.
|
|
23181
|
-
message.
|
|
23182
|
-
message.
|
|
23183
|
-
message.
|
|
23184
|
-
|
|
23794
|
+
message.title = object.title ?? "";
|
|
23795
|
+
message.finding = object.finding ?? "";
|
|
23796
|
+
message.recommendation = object.recommendation ?? "";
|
|
23797
|
+
message.actionType = object.actionType ?? 0;
|
|
23798
|
+
message.remediationPrompt = object.remediationPrompt ?? "";
|
|
23799
|
+
message.topic = (object.topic !== undefined && object.topic !== null)
|
|
23800
|
+
? AISessionInsightTopic.fromPartial(object.topic)
|
|
23801
|
+
: undefined;
|
|
23802
|
+
message.skill = (object.skill !== undefined && object.skill !== null)
|
|
23803
|
+
? AISkillSuggestion.fromPartial(object.skill)
|
|
23185
23804
|
: undefined;
|
|
23186
23805
|
return message;
|
|
23187
23806
|
},
|
|
@@ -34222,6 +34841,11 @@ export interface AIGatewayService {
|
|
|
34222
34841
|
* its latest insights with their cause and action; each part absent until its job has run. Mirrors ai.api.v1.
|
|
34223
34842
|
*/
|
|
34224
34843
|
GetSessionAnalysis(request: GetSessionAnalysisRequest, metadata?: Metadata): Promise<GetSessionAnalysisResponse>;
|
|
34844
|
+
/**
|
|
34845
|
+
* A project's insights one at a time, newest analysis first: a person's most recent insights with filter.user_ids,
|
|
34846
|
+
* the team's without. Mirrors ai.api.v1.
|
|
34847
|
+
*/
|
|
34848
|
+
ListSessionInsights(request: ListSessionInsightsRequest, metadata?: Metadata): Promise<ListSessionInsightsResponse>;
|
|
34225
34849
|
/**
|
|
34226
34850
|
* A project's graded sessions, or one person's, per ISO week (UTC, by last activity): counts, the mean score, the
|
|
34227
34851
|
* mean grade value per rubric criterion. Directional. Mirrors ai.api.v1.
|
|
@@ -34322,6 +34946,7 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34322
34946
|
this.SetReasoningTrendContribution = this.SetReasoningTrendContribution.bind(this);
|
|
34323
34947
|
this.GetSessionUsageTrend = this.GetSessionUsageTrend.bind(this);
|
|
34324
34948
|
this.GetSessionAnalysis = this.GetSessionAnalysis.bind(this);
|
|
34949
|
+
this.ListSessionInsights = this.ListSessionInsights.bind(this);
|
|
34325
34950
|
this.GetSessionScoreTrend = this.GetSessionScoreTrend.bind(this);
|
|
34326
34951
|
this.GetPromptLabelTrend = this.GetPromptLabelTrend.bind(this);
|
|
34327
34952
|
this.StreamEntitlements = this.StreamEntitlements.bind(this);
|
|
@@ -34529,6 +35154,12 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34529
35154
|
return promise.then((data) => GetSessionAnalysisResponse.decode(new BinaryReader(data)));
|
|
34530
35155
|
}
|
|
34531
35156
|
|
|
35157
|
+
ListSessionInsights(request: ListSessionInsightsRequest, metadata?: Metadata): Promise<ListSessionInsightsResponse> {
|
|
35158
|
+
const data = ListSessionInsightsRequest.encode(request).finish();
|
|
35159
|
+
const promise = this.rpc.request(this.service, "ListSessionInsights", data, metadata);
|
|
35160
|
+
return promise.then((data) => ListSessionInsightsResponse.decode(new BinaryReader(data)));
|
|
35161
|
+
}
|
|
35162
|
+
|
|
34532
35163
|
GetSessionScoreTrend(
|
|
34533
35164
|
request: GetSessionScoreTrendRequest,
|
|
34534
35165
|
metadata?: Metadata,
|