@miradorlabs/web-grpc 4.25.0 → 4.27.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 +7 -1
- package/proto/gateway/web/v1/admin_gateway_pb.js +2 -1
- package/proto/gateway/web/v1/ai_gateway.ts +1730 -961
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +71 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +14467 -12071
- 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.22.0
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: proto/gateway/web/v1/ai_gateway.proto
|
|
6
6
|
|
|
@@ -26,6 +26,149 @@ export const protobufPackage = "gateway.web.v1";
|
|
|
26
26
|
|
|
27
27
|
export const protobufFileName = "proto/gateway/web/v1/ai_gateway.proto";
|
|
28
28
|
|
|
29
|
+
/** AILabelRating colours a value's chip, as its label set says. Unspecified is neutral. */
|
|
30
|
+
export enum AILabelRating {
|
|
31
|
+
AI_LABEL_RATING_UNSPECIFIED = 0,
|
|
32
|
+
AI_LABEL_RATING_GOOD = 1,
|
|
33
|
+
AI_LABEL_RATING_MID = 2,
|
|
34
|
+
AI_LABEL_RATING_BAD = 3,
|
|
35
|
+
UNRECOGNIZED = -1,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function aILabelRatingFromJSON(object: any): AILabelRating {
|
|
39
|
+
switch (object) {
|
|
40
|
+
case 0:
|
|
41
|
+
case "AI_LABEL_RATING_UNSPECIFIED":
|
|
42
|
+
return AILabelRating.AI_LABEL_RATING_UNSPECIFIED;
|
|
43
|
+
case 1:
|
|
44
|
+
case "AI_LABEL_RATING_GOOD":
|
|
45
|
+
return AILabelRating.AI_LABEL_RATING_GOOD;
|
|
46
|
+
case 2:
|
|
47
|
+
case "AI_LABEL_RATING_MID":
|
|
48
|
+
return AILabelRating.AI_LABEL_RATING_MID;
|
|
49
|
+
case 3:
|
|
50
|
+
case "AI_LABEL_RATING_BAD":
|
|
51
|
+
return AILabelRating.AI_LABEL_RATING_BAD;
|
|
52
|
+
case -1:
|
|
53
|
+
case "UNRECOGNIZED":
|
|
54
|
+
default:
|
|
55
|
+
return AILabelRating.UNRECOGNIZED;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function aILabelRatingToJSON(object: AILabelRating): string {
|
|
60
|
+
switch (object) {
|
|
61
|
+
case AILabelRating.AI_LABEL_RATING_UNSPECIFIED:
|
|
62
|
+
return "AI_LABEL_RATING_UNSPECIFIED";
|
|
63
|
+
case AILabelRating.AI_LABEL_RATING_GOOD:
|
|
64
|
+
return "AI_LABEL_RATING_GOOD";
|
|
65
|
+
case AILabelRating.AI_LABEL_RATING_MID:
|
|
66
|
+
return "AI_LABEL_RATING_MID";
|
|
67
|
+
case AILabelRating.AI_LABEL_RATING_BAD:
|
|
68
|
+
return "AI_LABEL_RATING_BAD";
|
|
69
|
+
case AILabelRating.UNRECOGNIZED:
|
|
70
|
+
default:
|
|
71
|
+
return "UNRECOGNIZED";
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** SessionInsightSort orders a page of insights. */
|
|
76
|
+
export enum SessionInsightSort {
|
|
77
|
+
SESSION_INSIGHT_SORT_UNSPECIFIED = 0,
|
|
78
|
+
/** SESSION_INSIGHT_SORT_RECENT - Newest analysis first; within one session, the model's order (most costly first); then source system and session id. */
|
|
79
|
+
SESSION_INSIGHT_SORT_RECENT = 1,
|
|
80
|
+
UNRECOGNIZED = -1,
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function sessionInsightSortFromJSON(object: any): SessionInsightSort {
|
|
84
|
+
switch (object) {
|
|
85
|
+
case 0:
|
|
86
|
+
case "SESSION_INSIGHT_SORT_UNSPECIFIED":
|
|
87
|
+
return SessionInsightSort.SESSION_INSIGHT_SORT_UNSPECIFIED;
|
|
88
|
+
case 1:
|
|
89
|
+
case "SESSION_INSIGHT_SORT_RECENT":
|
|
90
|
+
return SessionInsightSort.SESSION_INSIGHT_SORT_RECENT;
|
|
91
|
+
case -1:
|
|
92
|
+
case "UNRECOGNIZED":
|
|
93
|
+
default:
|
|
94
|
+
return SessionInsightSort.UNRECOGNIZED;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function sessionInsightSortToJSON(object: SessionInsightSort): string {
|
|
99
|
+
switch (object) {
|
|
100
|
+
case SessionInsightSort.SESSION_INSIGHT_SORT_UNSPECIFIED:
|
|
101
|
+
return "SESSION_INSIGHT_SORT_UNSPECIFIED";
|
|
102
|
+
case SessionInsightSort.SESSION_INSIGHT_SORT_RECENT:
|
|
103
|
+
return "SESSION_INSIGHT_SORT_RECENT";
|
|
104
|
+
case SessionInsightSort.UNRECOGNIZED:
|
|
105
|
+
default:
|
|
106
|
+
return "UNRECOGNIZED";
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* AISessionInsightActionType is the kind of change an insight recommends (ai.common.v1.AISessionInsightActionType,
|
|
112
|
+
* same numbers).
|
|
113
|
+
*/
|
|
114
|
+
export enum AISessionInsightActionType {
|
|
115
|
+
/** AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED - never stored */
|
|
116
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED = 0,
|
|
117
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE = 1,
|
|
118
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL = 2,
|
|
119
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL = 3,
|
|
120
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING = 4,
|
|
121
|
+
AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW = 5,
|
|
122
|
+
UNRECOGNIZED = -1,
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function aISessionInsightActionTypeFromJSON(object: any): AISessionInsightActionType {
|
|
126
|
+
switch (object) {
|
|
127
|
+
case 0:
|
|
128
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED":
|
|
129
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED;
|
|
130
|
+
case 1:
|
|
131
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE":
|
|
132
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE;
|
|
133
|
+
case 2:
|
|
134
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL":
|
|
135
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL;
|
|
136
|
+
case 3:
|
|
137
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL":
|
|
138
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL;
|
|
139
|
+
case 4:
|
|
140
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING":
|
|
141
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING;
|
|
142
|
+
case 5:
|
|
143
|
+
case "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW":
|
|
144
|
+
return AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW;
|
|
145
|
+
case -1:
|
|
146
|
+
case "UNRECOGNIZED":
|
|
147
|
+
default:
|
|
148
|
+
return AISessionInsightActionType.UNRECOGNIZED;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function aISessionInsightActionTypeToJSON(object: AISessionInsightActionType): string {
|
|
153
|
+
switch (object) {
|
|
154
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED:
|
|
155
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_UNSPECIFIED";
|
|
156
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE:
|
|
157
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_RULE";
|
|
158
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL:
|
|
159
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_ADD_SKILL";
|
|
160
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL:
|
|
161
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_MODEL";
|
|
162
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING:
|
|
163
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_FIX_TOOLING";
|
|
164
|
+
case AISessionInsightActionType.AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW:
|
|
165
|
+
return "AI_SESSION_INSIGHT_ACTION_TYPE_CHANGE_WORKFLOW";
|
|
166
|
+
case AISessionInsightActionType.UNRECOGNIZED:
|
|
167
|
+
default:
|
|
168
|
+
return "UNRECOGNIZED";
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
29
172
|
/**
|
|
30
173
|
* SessionSort ranks the conversation catalog, descending. Unspecified is RECENCY. RECENCY is the last activity;
|
|
31
174
|
* the rest are summed conversation totals. source_system, then session_id, breaks ties. A value the backend does
|
|
@@ -216,594 +359,6 @@ export function aISessionEventTypeToJSON(object: AISessionEventType): string {
|
|
|
216
359
|
}
|
|
217
360
|
}
|
|
218
361
|
|
|
219
|
-
/** AIPromptComplexity is how much a prompt asks for, as a model judged it (MIR-469); mirrors ai.api.v1. */
|
|
220
|
-
export enum AIPromptComplexity {
|
|
221
|
-
/** AI_PROMPT_COMPLEXITY_UNSPECIFIED - not labelled */
|
|
222
|
-
AI_PROMPT_COMPLEXITY_UNSPECIFIED = 0,
|
|
223
|
-
AI_PROMPT_COMPLEXITY_SIMPLE = 1,
|
|
224
|
-
AI_PROMPT_COMPLEXITY_MODERATE = 2,
|
|
225
|
-
AI_PROMPT_COMPLEXITY_COMPLEX = 3,
|
|
226
|
-
UNRECOGNIZED = -1,
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export function aIPromptComplexityFromJSON(object: any): AIPromptComplexity {
|
|
230
|
-
switch (object) {
|
|
231
|
-
case 0:
|
|
232
|
-
case "AI_PROMPT_COMPLEXITY_UNSPECIFIED":
|
|
233
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_UNSPECIFIED;
|
|
234
|
-
case 1:
|
|
235
|
-
case "AI_PROMPT_COMPLEXITY_SIMPLE":
|
|
236
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_SIMPLE;
|
|
237
|
-
case 2:
|
|
238
|
-
case "AI_PROMPT_COMPLEXITY_MODERATE":
|
|
239
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_MODERATE;
|
|
240
|
-
case 3:
|
|
241
|
-
case "AI_PROMPT_COMPLEXITY_COMPLEX":
|
|
242
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_COMPLEX;
|
|
243
|
-
case -1:
|
|
244
|
-
case "UNRECOGNIZED":
|
|
245
|
-
default:
|
|
246
|
-
return AIPromptComplexity.UNRECOGNIZED;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
export function aIPromptComplexityToJSON(object: AIPromptComplexity): string {
|
|
251
|
-
switch (object) {
|
|
252
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_UNSPECIFIED:
|
|
253
|
-
return "AI_PROMPT_COMPLEXITY_UNSPECIFIED";
|
|
254
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_SIMPLE:
|
|
255
|
-
return "AI_PROMPT_COMPLEXITY_SIMPLE";
|
|
256
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_MODERATE:
|
|
257
|
-
return "AI_PROMPT_COMPLEXITY_MODERATE";
|
|
258
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_COMPLEX:
|
|
259
|
-
return "AI_PROMPT_COMPLEXITY_COMPLEX";
|
|
260
|
-
case AIPromptComplexity.UNRECOGNIZED:
|
|
261
|
-
default:
|
|
262
|
-
return "UNRECOGNIZED";
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/** AIPromptClarity is whether a prompt gave the agent enough to act on; mirrors ai.api.v1. */
|
|
267
|
-
export enum AIPromptClarity {
|
|
268
|
-
/** AI_PROMPT_CLARITY_UNSPECIFIED - not labelled */
|
|
269
|
-
AI_PROMPT_CLARITY_UNSPECIFIED = 0,
|
|
270
|
-
/** AI_PROMPT_CLARITY_UNCLEAR - no actionable goal, or key context missing */
|
|
271
|
-
AI_PROMPT_CLARITY_UNCLEAR = 1,
|
|
272
|
-
/** AI_PROMPT_CLARITY_PARTIAL - the goal is clear, but scope or done is vague */
|
|
273
|
-
AI_PROMPT_CLARITY_PARTIAL = 2,
|
|
274
|
-
/** AI_PROMPT_CLARITY_CLEAR - the agent knows what to do and what done looks like */
|
|
275
|
-
AI_PROMPT_CLARITY_CLEAR = 3,
|
|
276
|
-
UNRECOGNIZED = -1,
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export function aIPromptClarityFromJSON(object: any): AIPromptClarity {
|
|
280
|
-
switch (object) {
|
|
281
|
-
case 0:
|
|
282
|
-
case "AI_PROMPT_CLARITY_UNSPECIFIED":
|
|
283
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_UNSPECIFIED;
|
|
284
|
-
case 1:
|
|
285
|
-
case "AI_PROMPT_CLARITY_UNCLEAR":
|
|
286
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_UNCLEAR;
|
|
287
|
-
case 2:
|
|
288
|
-
case "AI_PROMPT_CLARITY_PARTIAL":
|
|
289
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_PARTIAL;
|
|
290
|
-
case 3:
|
|
291
|
-
case "AI_PROMPT_CLARITY_CLEAR":
|
|
292
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_CLEAR;
|
|
293
|
-
case -1:
|
|
294
|
-
case "UNRECOGNIZED":
|
|
295
|
-
default:
|
|
296
|
-
return AIPromptClarity.UNRECOGNIZED;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
export function aIPromptClarityToJSON(object: AIPromptClarity): string {
|
|
301
|
-
switch (object) {
|
|
302
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_UNSPECIFIED:
|
|
303
|
-
return "AI_PROMPT_CLARITY_UNSPECIFIED";
|
|
304
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_UNCLEAR:
|
|
305
|
-
return "AI_PROMPT_CLARITY_UNCLEAR";
|
|
306
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_PARTIAL:
|
|
307
|
-
return "AI_PROMPT_CLARITY_PARTIAL";
|
|
308
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_CLEAR:
|
|
309
|
-
return "AI_PROMPT_CLARITY_CLEAR";
|
|
310
|
-
case AIPromptClarity.UNRECOGNIZED:
|
|
311
|
-
default:
|
|
312
|
-
return "UNRECOGNIZED";
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
/** AIPromptSteering is what a prompt does in its session. */
|
|
317
|
-
export enum AIPromptSteering {
|
|
318
|
-
/** AI_PROMPT_STEERING_UNSPECIFIED - not labelled */
|
|
319
|
-
AI_PROMPT_STEERING_UNSPECIFIED = 0,
|
|
320
|
-
AI_PROMPT_STEERING_NEW_TASK = 1,
|
|
321
|
-
AI_PROMPT_STEERING_FOLLOW_UP = 2,
|
|
322
|
-
AI_PROMPT_STEERING_CORRECTION = 3,
|
|
323
|
-
AI_PROMPT_STEERING_REDIRECT = 4,
|
|
324
|
-
AI_PROMPT_STEERING_APPROVAL = 5,
|
|
325
|
-
UNRECOGNIZED = -1,
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export function aIPromptSteeringFromJSON(object: any): AIPromptSteering {
|
|
329
|
-
switch (object) {
|
|
330
|
-
case 0:
|
|
331
|
-
case "AI_PROMPT_STEERING_UNSPECIFIED":
|
|
332
|
-
return AIPromptSteering.AI_PROMPT_STEERING_UNSPECIFIED;
|
|
333
|
-
case 1:
|
|
334
|
-
case "AI_PROMPT_STEERING_NEW_TASK":
|
|
335
|
-
return AIPromptSteering.AI_PROMPT_STEERING_NEW_TASK;
|
|
336
|
-
case 2:
|
|
337
|
-
case "AI_PROMPT_STEERING_FOLLOW_UP":
|
|
338
|
-
return AIPromptSteering.AI_PROMPT_STEERING_FOLLOW_UP;
|
|
339
|
-
case 3:
|
|
340
|
-
case "AI_PROMPT_STEERING_CORRECTION":
|
|
341
|
-
return AIPromptSteering.AI_PROMPT_STEERING_CORRECTION;
|
|
342
|
-
case 4:
|
|
343
|
-
case "AI_PROMPT_STEERING_REDIRECT":
|
|
344
|
-
return AIPromptSteering.AI_PROMPT_STEERING_REDIRECT;
|
|
345
|
-
case 5:
|
|
346
|
-
case "AI_PROMPT_STEERING_APPROVAL":
|
|
347
|
-
return AIPromptSteering.AI_PROMPT_STEERING_APPROVAL;
|
|
348
|
-
case -1:
|
|
349
|
-
case "UNRECOGNIZED":
|
|
350
|
-
default:
|
|
351
|
-
return AIPromptSteering.UNRECOGNIZED;
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export function aIPromptSteeringToJSON(object: AIPromptSteering): string {
|
|
356
|
-
switch (object) {
|
|
357
|
-
case AIPromptSteering.AI_PROMPT_STEERING_UNSPECIFIED:
|
|
358
|
-
return "AI_PROMPT_STEERING_UNSPECIFIED";
|
|
359
|
-
case AIPromptSteering.AI_PROMPT_STEERING_NEW_TASK:
|
|
360
|
-
return "AI_PROMPT_STEERING_NEW_TASK";
|
|
361
|
-
case AIPromptSteering.AI_PROMPT_STEERING_FOLLOW_UP:
|
|
362
|
-
return "AI_PROMPT_STEERING_FOLLOW_UP";
|
|
363
|
-
case AIPromptSteering.AI_PROMPT_STEERING_CORRECTION:
|
|
364
|
-
return "AI_PROMPT_STEERING_CORRECTION";
|
|
365
|
-
case AIPromptSteering.AI_PROMPT_STEERING_REDIRECT:
|
|
366
|
-
return "AI_PROMPT_STEERING_REDIRECT";
|
|
367
|
-
case AIPromptSteering.AI_PROMPT_STEERING_APPROVAL:
|
|
368
|
-
return "AI_PROMPT_STEERING_APPROVAL";
|
|
369
|
-
case AIPromptSteering.UNRECOGNIZED:
|
|
370
|
-
default:
|
|
371
|
-
return "UNRECOGNIZED";
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
/**
|
|
376
|
-
* AIPromptFrustration is how much frustration with the agent a prompt shows. The numbers rise with severity and a new
|
|
377
|
-
* level is only ever appended above the most severe one. NONE is a label, not "not labelled".
|
|
378
|
-
*/
|
|
379
|
-
export enum AIPromptFrustration {
|
|
380
|
-
/** AI_PROMPT_FRUSTRATION_UNSPECIFIED - not labelled */
|
|
381
|
-
AI_PROMPT_FRUSTRATION_UNSPECIFIED = 0,
|
|
382
|
-
AI_PROMPT_FRUSTRATION_NONE = 1,
|
|
383
|
-
AI_PROMPT_FRUSTRATION_MILD = 2,
|
|
384
|
-
AI_PROMPT_FRUSTRATION_STRONG = 3,
|
|
385
|
-
UNRECOGNIZED = -1,
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
export function aIPromptFrustrationFromJSON(object: any): AIPromptFrustration {
|
|
389
|
-
switch (object) {
|
|
390
|
-
case 0:
|
|
391
|
-
case "AI_PROMPT_FRUSTRATION_UNSPECIFIED":
|
|
392
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_UNSPECIFIED;
|
|
393
|
-
case 1:
|
|
394
|
-
case "AI_PROMPT_FRUSTRATION_NONE":
|
|
395
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_NONE;
|
|
396
|
-
case 2:
|
|
397
|
-
case "AI_PROMPT_FRUSTRATION_MILD":
|
|
398
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_MILD;
|
|
399
|
-
case 3:
|
|
400
|
-
case "AI_PROMPT_FRUSTRATION_STRONG":
|
|
401
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_STRONG;
|
|
402
|
-
case -1:
|
|
403
|
-
case "UNRECOGNIZED":
|
|
404
|
-
default:
|
|
405
|
-
return AIPromptFrustration.UNRECOGNIZED;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export function aIPromptFrustrationToJSON(object: AIPromptFrustration): string {
|
|
410
|
-
switch (object) {
|
|
411
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_UNSPECIFIED:
|
|
412
|
-
return "AI_PROMPT_FRUSTRATION_UNSPECIFIED";
|
|
413
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_NONE:
|
|
414
|
-
return "AI_PROMPT_FRUSTRATION_NONE";
|
|
415
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_MILD:
|
|
416
|
-
return "AI_PROMPT_FRUSTRATION_MILD";
|
|
417
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_STRONG:
|
|
418
|
-
return "AI_PROMPT_FRUSTRATION_STRONG";
|
|
419
|
-
case AIPromptFrustration.UNRECOGNIZED:
|
|
420
|
-
default:
|
|
421
|
-
return "UNRECOGNIZED";
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
/** AIPromptSentiment is a prompt's overall tone. */
|
|
426
|
-
export enum AIPromptSentiment {
|
|
427
|
-
/** AI_PROMPT_SENTIMENT_UNSPECIFIED - not labelled */
|
|
428
|
-
AI_PROMPT_SENTIMENT_UNSPECIFIED = 0,
|
|
429
|
-
AI_PROMPT_SENTIMENT_NEGATIVE = 1,
|
|
430
|
-
AI_PROMPT_SENTIMENT_NEUTRAL = 2,
|
|
431
|
-
AI_PROMPT_SENTIMENT_POSITIVE = 3,
|
|
432
|
-
UNRECOGNIZED = -1,
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
export function aIPromptSentimentFromJSON(object: any): AIPromptSentiment {
|
|
436
|
-
switch (object) {
|
|
437
|
-
case 0:
|
|
438
|
-
case "AI_PROMPT_SENTIMENT_UNSPECIFIED":
|
|
439
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_UNSPECIFIED;
|
|
440
|
-
case 1:
|
|
441
|
-
case "AI_PROMPT_SENTIMENT_NEGATIVE":
|
|
442
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_NEGATIVE;
|
|
443
|
-
case 2:
|
|
444
|
-
case "AI_PROMPT_SENTIMENT_NEUTRAL":
|
|
445
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_NEUTRAL;
|
|
446
|
-
case 3:
|
|
447
|
-
case "AI_PROMPT_SENTIMENT_POSITIVE":
|
|
448
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_POSITIVE;
|
|
449
|
-
case -1:
|
|
450
|
-
case "UNRECOGNIZED":
|
|
451
|
-
default:
|
|
452
|
-
return AIPromptSentiment.UNRECOGNIZED;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
export function aIPromptSentimentToJSON(object: AIPromptSentiment): string {
|
|
457
|
-
switch (object) {
|
|
458
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_UNSPECIFIED:
|
|
459
|
-
return "AI_PROMPT_SENTIMENT_UNSPECIFIED";
|
|
460
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_NEGATIVE:
|
|
461
|
-
return "AI_PROMPT_SENTIMENT_NEGATIVE";
|
|
462
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_NEUTRAL:
|
|
463
|
-
return "AI_PROMPT_SENTIMENT_NEUTRAL";
|
|
464
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_POSITIVE:
|
|
465
|
-
return "AI_PROMPT_SENTIMENT_POSITIVE";
|
|
466
|
-
case AIPromptSentiment.UNRECOGNIZED:
|
|
467
|
-
default:
|
|
468
|
-
return "UNRECOGNIZED";
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* AISessionWorkType is the kind of work a model judged a session to be (MIR-386). ClickHouse stores the number
|
|
474
|
-
* (ai_session_labels.WorkType). A retired value stays here, deprecated and never renumbered, so an old label still reads.
|
|
475
|
-
*/
|
|
476
|
-
export enum AISessionWorkType {
|
|
477
|
-
/** AI_SESSION_WORK_TYPE_UNSPECIFIED - no label: too short, nothing to read, or not labelled yet */
|
|
478
|
-
AI_SESSION_WORK_TYPE_UNSPECIFIED = 0,
|
|
479
|
-
AI_SESSION_WORK_TYPE_BUG_FIX = 1,
|
|
480
|
-
AI_SESSION_WORK_TYPE_FEATURE = 2,
|
|
481
|
-
AI_SESSION_WORK_TYPE_REFACTOR = 3,
|
|
482
|
-
AI_SESSION_WORK_TYPE_TESTS = 4,
|
|
483
|
-
AI_SESSION_WORK_TYPE_DOCS = 5,
|
|
484
|
-
AI_SESSION_WORK_TYPE_OPS = 6,
|
|
485
|
-
AI_SESSION_WORK_TYPE_REVIEW = 7,
|
|
486
|
-
AI_SESSION_WORK_TYPE_EXPLORATION = 8,
|
|
487
|
-
UNRECOGNIZED = -1,
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
export function aISessionWorkTypeFromJSON(object: any): AISessionWorkType {
|
|
491
|
-
switch (object) {
|
|
492
|
-
case 0:
|
|
493
|
-
case "AI_SESSION_WORK_TYPE_UNSPECIFIED":
|
|
494
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_UNSPECIFIED;
|
|
495
|
-
case 1:
|
|
496
|
-
case "AI_SESSION_WORK_TYPE_BUG_FIX":
|
|
497
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_BUG_FIX;
|
|
498
|
-
case 2:
|
|
499
|
-
case "AI_SESSION_WORK_TYPE_FEATURE":
|
|
500
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_FEATURE;
|
|
501
|
-
case 3:
|
|
502
|
-
case "AI_SESSION_WORK_TYPE_REFACTOR":
|
|
503
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_REFACTOR;
|
|
504
|
-
case 4:
|
|
505
|
-
case "AI_SESSION_WORK_TYPE_TESTS":
|
|
506
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_TESTS;
|
|
507
|
-
case 5:
|
|
508
|
-
case "AI_SESSION_WORK_TYPE_DOCS":
|
|
509
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_DOCS;
|
|
510
|
-
case 6:
|
|
511
|
-
case "AI_SESSION_WORK_TYPE_OPS":
|
|
512
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_OPS;
|
|
513
|
-
case 7:
|
|
514
|
-
case "AI_SESSION_WORK_TYPE_REVIEW":
|
|
515
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_REVIEW;
|
|
516
|
-
case 8:
|
|
517
|
-
case "AI_SESSION_WORK_TYPE_EXPLORATION":
|
|
518
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_EXPLORATION;
|
|
519
|
-
case -1:
|
|
520
|
-
case "UNRECOGNIZED":
|
|
521
|
-
default:
|
|
522
|
-
return AISessionWorkType.UNRECOGNIZED;
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
export function aISessionWorkTypeToJSON(object: AISessionWorkType): string {
|
|
527
|
-
switch (object) {
|
|
528
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_UNSPECIFIED:
|
|
529
|
-
return "AI_SESSION_WORK_TYPE_UNSPECIFIED";
|
|
530
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_BUG_FIX:
|
|
531
|
-
return "AI_SESSION_WORK_TYPE_BUG_FIX";
|
|
532
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_FEATURE:
|
|
533
|
-
return "AI_SESSION_WORK_TYPE_FEATURE";
|
|
534
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_REFACTOR:
|
|
535
|
-
return "AI_SESSION_WORK_TYPE_REFACTOR";
|
|
536
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_TESTS:
|
|
537
|
-
return "AI_SESSION_WORK_TYPE_TESTS";
|
|
538
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_DOCS:
|
|
539
|
-
return "AI_SESSION_WORK_TYPE_DOCS";
|
|
540
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_OPS:
|
|
541
|
-
return "AI_SESSION_WORK_TYPE_OPS";
|
|
542
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_REVIEW:
|
|
543
|
-
return "AI_SESSION_WORK_TYPE_REVIEW";
|
|
544
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_EXPLORATION:
|
|
545
|
-
return "AI_SESSION_WORK_TYPE_EXPLORATION";
|
|
546
|
-
case AISessionWorkType.UNRECOGNIZED:
|
|
547
|
-
default:
|
|
548
|
-
return "UNRECOGNIZED";
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* AISessionComplexity is the size of a session's work from the same label. ClickHouse stores the number
|
|
554
|
-
* (ai_session_labels.Complexity); retired values stay, deprecated.
|
|
555
|
-
*/
|
|
556
|
-
export enum AISessionComplexity {
|
|
557
|
-
/** AI_SESSION_COMPLEXITY_UNSPECIFIED - no label */
|
|
558
|
-
AI_SESSION_COMPLEXITY_UNSPECIFIED = 0,
|
|
559
|
-
AI_SESSION_COMPLEXITY_SMALL = 1,
|
|
560
|
-
AI_SESSION_COMPLEXITY_MEDIUM = 2,
|
|
561
|
-
AI_SESSION_COMPLEXITY_LARGE = 3,
|
|
562
|
-
UNRECOGNIZED = -1,
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
export function aISessionComplexityFromJSON(object: any): AISessionComplexity {
|
|
566
|
-
switch (object) {
|
|
567
|
-
case 0:
|
|
568
|
-
case "AI_SESSION_COMPLEXITY_UNSPECIFIED":
|
|
569
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_UNSPECIFIED;
|
|
570
|
-
case 1:
|
|
571
|
-
case "AI_SESSION_COMPLEXITY_SMALL":
|
|
572
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_SMALL;
|
|
573
|
-
case 2:
|
|
574
|
-
case "AI_SESSION_COMPLEXITY_MEDIUM":
|
|
575
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_MEDIUM;
|
|
576
|
-
case 3:
|
|
577
|
-
case "AI_SESSION_COMPLEXITY_LARGE":
|
|
578
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_LARGE;
|
|
579
|
-
case -1:
|
|
580
|
-
case "UNRECOGNIZED":
|
|
581
|
-
default:
|
|
582
|
-
return AISessionComplexity.UNRECOGNIZED;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
export function aISessionComplexityToJSON(object: AISessionComplexity): string {
|
|
587
|
-
switch (object) {
|
|
588
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_UNSPECIFIED:
|
|
589
|
-
return "AI_SESSION_COMPLEXITY_UNSPECIFIED";
|
|
590
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_SMALL:
|
|
591
|
-
return "AI_SESSION_COMPLEXITY_SMALL";
|
|
592
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_MEDIUM:
|
|
593
|
-
return "AI_SESSION_COMPLEXITY_MEDIUM";
|
|
594
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_LARGE:
|
|
595
|
-
return "AI_SESSION_COMPLEXITY_LARGE";
|
|
596
|
-
case AISessionComplexity.UNRECOGNIZED:
|
|
597
|
-
default:
|
|
598
|
-
return "UNRECOGNIZED";
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
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
362
|
export enum AIGitAction {
|
|
808
363
|
AI_GIT_ACTION_UNSPECIFIED = 0,
|
|
809
364
|
AI_GIT_ACTION_BRANCH_CREATE = 1,
|
|
@@ -2267,10 +1822,10 @@ export interface SessionFilter {
|
|
|
2267
1822
|
/** Stored model, provider or effort names whose display name the caller matched to the search text. */
|
|
2268
1823
|
searchStoredNames: string[];
|
|
2269
1824
|
/**
|
|
2270
|
-
* Work
|
|
2271
|
-
*
|
|
1825
|
+
* Work type keys of the session's latest label (AISessionSummary.work_type), such as "bug_fix"; a session with no
|
|
1826
|
+
* label matches none. At most 50 keys; an empty key is INVALID_ARGUMENT.
|
|
2272
1827
|
*/
|
|
2273
|
-
workTypes:
|
|
1828
|
+
workTypes: string[];
|
|
2274
1829
|
}
|
|
2275
1830
|
|
|
2276
1831
|
/**
|
|
@@ -2368,12 +1923,12 @@ export interface AISessionSummary {
|
|
|
2368
1923
|
/** The harness's latest "while you were away" recap (summary · recap); "" when it wrote none. */
|
|
2369
1924
|
recap: string;
|
|
2370
1925
|
/**
|
|
2371
|
-
* The
|
|
2372
|
-
* until the labeller relabels it;
|
|
1926
|
+
* The work type key of the session's latest label (GetLabelCatalog's session work_type values), which can predate its
|
|
1927
|
+
* latest activity until the labeller relabels it; "" when it has no label.
|
|
2373
1928
|
*/
|
|
2374
|
-
workType:
|
|
2375
|
-
/** The
|
|
2376
|
-
|
|
1929
|
+
workType: string;
|
|
1930
|
+
/** The work size key of the same label; "" when it has no label. */
|
|
1931
|
+
workSize: string;
|
|
2377
1932
|
/**
|
|
2378
1933
|
* The session's score (0-100, AISessionScore) from its latest grading; absent when it is not scored: not graded
|
|
2379
1934
|
* yet, or graded from an older session_version. GetSessionAnalysis has the breakdown.
|
|
@@ -2555,13 +2110,19 @@ export interface AIContentPart {
|
|
|
2555
2110
|
content: string;
|
|
2556
2111
|
}
|
|
2557
2112
|
|
|
2558
|
-
/**
|
|
2113
|
+
/** AILabelCount is how many labelled prompts have one value (key) of one dimension. */
|
|
2114
|
+
export interface AILabelCount {
|
|
2115
|
+
key: string;
|
|
2116
|
+
prompts: number;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
/**
|
|
2120
|
+
* AIPromptLabels is a model's labels for one prompt, from its latest labelling: a value key of each of the prompt
|
|
2121
|
+
* labeller's dimensions (GetLabelCatalog's prompt steering and tone values).
|
|
2122
|
+
*/
|
|
2559
2123
|
export interface AIPromptLabels {
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
steering: AIPromptSteering;
|
|
2563
|
-
frustration: AIPromptFrustration;
|
|
2564
|
-
sentiment: AIPromptSentiment;
|
|
2124
|
+
steering: string;
|
|
2125
|
+
tone: string;
|
|
2565
2126
|
}
|
|
2566
2127
|
|
|
2567
2128
|
/** AIPromptLabelSummary rolls up one session's labelled prompts, each at its latest labelling. */
|
|
@@ -2569,19 +2130,15 @@ export interface AIPromptLabelSummary {
|
|
|
2569
2130
|
/** At least 1: the summary is absent when no prompt is labelled. */
|
|
2570
2131
|
labelledPrompts: number;
|
|
2571
2132
|
/**
|
|
2572
|
-
* One row per steering value with at least one prompt,
|
|
2573
|
-
*
|
|
2133
|
+
* One row per steering value with at least one prompt, by key; they add up to labelled_prompts. A share is prompts /
|
|
2134
|
+
* labelled_prompts.
|
|
2574
2135
|
*/
|
|
2575
|
-
steeringCounts:
|
|
2576
|
-
/**
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
export interface AIPromptSteeringCount {
|
|
2583
|
-
steering: AIPromptSteering;
|
|
2584
|
-
prompts: number;
|
|
2136
|
+
steeringCounts: AILabelCount[];
|
|
2137
|
+
/**
|
|
2138
|
+
* One row per tone value with at least one prompt, by key; they add up to labelled_prompts. A session's peak is its
|
|
2139
|
+
* value latest in GetLabelCatalog's order with a row.
|
|
2140
|
+
*/
|
|
2141
|
+
toneCounts: AILabelCount[];
|
|
2585
2142
|
}
|
|
2586
2143
|
|
|
2587
2144
|
export interface GetPromptLabelTrendRequest {
|
|
@@ -2618,20 +2175,57 @@ export interface GetPromptLabelTrendResponse {
|
|
|
2618
2175
|
weeks: AIPromptLabelWeek[];
|
|
2619
2176
|
}
|
|
2620
2177
|
|
|
2621
|
-
/**
|
|
2622
|
-
* AIPromptLabelWeek: share of clear prompts = clear_prompts / labelled_prompts, correction rate = corrections /
|
|
2623
|
-
* labelled_prompts, frustration rate = frustrated_prompts / labelled_prompts, each only when labelled_prompts > 0.
|
|
2624
|
-
*/
|
|
2178
|
+
/** AIPromptLabelWeek: a value's share is its prompts / labelled_prompts, only when labelled_prompts > 0. */
|
|
2625
2179
|
export interface AIPromptLabelWeek {
|
|
2626
2180
|
/** The week's Monday, YYYY-MM-DD. */
|
|
2627
2181
|
weekStart: string;
|
|
2628
2182
|
labelledPrompts: number;
|
|
2629
|
-
/**
|
|
2630
|
-
|
|
2631
|
-
/**
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2183
|
+
/** One row per steering value with at least one prompt in the week, by key. */
|
|
2184
|
+
steeringCounts: AILabelCount[];
|
|
2185
|
+
/** One row per tone value with at least one prompt in the week, by key. */
|
|
2186
|
+
toneCounts: AILabelCount[];
|
|
2187
|
+
}
|
|
2188
|
+
|
|
2189
|
+
export interface GetLabelCatalogRequest {
|
|
2190
|
+
organizationId: string;
|
|
2191
|
+
projectId: string;
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
export interface GetLabelCatalogResponse {
|
|
2195
|
+
status:
|
|
2196
|
+
| ResponseStatus
|
|
2197
|
+
| undefined;
|
|
2198
|
+
/** The session labeller's set: work_type then work_size (AISessionSummary, SessionFilter.work_types). */
|
|
2199
|
+
sessionLabels:
|
|
2200
|
+
| AILabelSet
|
|
2201
|
+
| undefined;
|
|
2202
|
+
/** The prompt labeller's set: steering then tone (AIPromptLabels, AIPromptLabelSummary, GetPromptLabelTrend). */
|
|
2203
|
+
promptLabels: AILabelSet | undefined;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
/** AILabelSet is a labeller's set: its version (a content hash of its values) and its fixed dimensions in order. */
|
|
2207
|
+
export interface AILabelSet {
|
|
2208
|
+
version: string;
|
|
2209
|
+
dimensions: AILabelDimension[];
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
/**
|
|
2213
|
+
* AILabelDimension is one thing a labelled item gets a value of, with its values in display order (a scale mildest or
|
|
2214
|
+
* smallest first).
|
|
2215
|
+
*/
|
|
2216
|
+
export interface AILabelDimension {
|
|
2217
|
+
key: string;
|
|
2218
|
+
name: string;
|
|
2219
|
+
values: AILabelValue[];
|
|
2220
|
+
}
|
|
2221
|
+
|
|
2222
|
+
/** AILabelValue is one value of a dimension. */
|
|
2223
|
+
export interface AILabelValue {
|
|
2224
|
+
key: string;
|
|
2225
|
+
name: string;
|
|
2226
|
+
/** One plain-language sentence for people (a chip's tooltip), with the likely cause where that helps. */
|
|
2227
|
+
tooltip: string;
|
|
2228
|
+
rating: AILabelRating;
|
|
2635
2229
|
}
|
|
2636
2230
|
|
|
2637
2231
|
export interface SessionTokenTimelineRequest {
|
|
@@ -3658,6 +3252,60 @@ export interface GetSessionAnalysisRequest {
|
|
|
3658
3252
|
sessionId: string;
|
|
3659
3253
|
}
|
|
3660
3254
|
|
|
3255
|
+
/** ListSessionInsightsRequest pages a project's insights one insight at a time, newest analysis first. */
|
|
3256
|
+
export interface ListSessionInsightsRequest {
|
|
3257
|
+
organizationId: string;
|
|
3258
|
+
projectId: string;
|
|
3259
|
+
/** Narrows the insights; unset reads the whole team's. */
|
|
3260
|
+
filter:
|
|
3261
|
+
| SessionInsightFilter
|
|
3262
|
+
| undefined;
|
|
3263
|
+
/** Unspecified is SESSION_INSIGHT_SORT_RECENT. */
|
|
3264
|
+
sort: SessionInsightSort;
|
|
3265
|
+
/** Insights per page, 1 to 50; 0 is the default, 15. Negative is INVALID_ARGUMENT. */
|
|
3266
|
+
pageSize: number;
|
|
3267
|
+
/**
|
|
3268
|
+
* A next_page_token from the same request; empty reads the first page. A token used with another filter or sort
|
|
3269
|
+
* reads on from its position under the new one.
|
|
3270
|
+
*/
|
|
3271
|
+
pageToken: string;
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* SessionInsightFilter narrows a project's insights. Fields AND; a repeated field matches any of its values; an unset
|
|
3276
|
+
* or empty field does not filter.
|
|
3277
|
+
*/
|
|
3278
|
+
export interface SessionInsightFilter {
|
|
3279
|
+
/**
|
|
3280
|
+
* The session's user (ai_sessions.UserId when the insights were written). Any reader of the project may list any of
|
|
3281
|
+
* its people's insights.
|
|
3282
|
+
*/
|
|
3283
|
+
userIds: string[];
|
|
3284
|
+
sourceSystems: string[];
|
|
3285
|
+
/** The topics file's keys; a topic the model named has no key and matches none. */
|
|
3286
|
+
topicKeys: string[];
|
|
3287
|
+
}
|
|
3288
|
+
|
|
3289
|
+
export interface ListSessionInsightsResponse {
|
|
3290
|
+
status:
|
|
3291
|
+
| ResponseStatus
|
|
3292
|
+
| undefined;
|
|
3293
|
+
/** The page's insights in sort order; empty when the project has none that match. */
|
|
3294
|
+
insights: SessionInsightEntry[];
|
|
3295
|
+
/** Empty on the last page. */
|
|
3296
|
+
nextPageToken: string;
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
/** SessionInsightEntry is one insight with the session it is about. */
|
|
3300
|
+
export interface SessionInsightEntry {
|
|
3301
|
+
/** source_system with session_id is the session's identity. */
|
|
3302
|
+
sourceSystem: string;
|
|
3303
|
+
sessionId: string;
|
|
3304
|
+
/** When the insights run that wrote it selected the session. */
|
|
3305
|
+
analyzedAt: Date | undefined;
|
|
3306
|
+
insight: AISessionInsight | undefined;
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3661
3309
|
/**
|
|
3662
3310
|
* GetSessionAnalysisResponse holds what each analysis job has written for the session. A part is absent while its
|
|
3663
3311
|
* job has not graded or analysed the session (or no such session is in the project), never defaulted.
|
|
@@ -3686,7 +3334,7 @@ export interface GetSessionAnalysisResponse {
|
|
|
3686
3334
|
|
|
3687
3335
|
/** AISessionInsights is what a model found to change in the session. analyzed_at with version is its identity. */
|
|
3688
3336
|
export interface AISessionInsights {
|
|
3689
|
-
/** Zero to three insights
|
|
3337
|
+
/** Zero to three insights, most important first; empty is a session with nothing to change. */
|
|
3690
3338
|
insights: AISessionInsight[];
|
|
3691
3339
|
/** The model that analysed it and the insight task's version. */
|
|
3692
3340
|
model: string;
|
|
@@ -3694,25 +3342,54 @@ export interface AISessionInsights {
|
|
|
3694
3342
|
/** The session_version (AISessionSummary.session_version) the analysis read. */
|
|
3695
3343
|
inputSessionVersion: number;
|
|
3696
3344
|
/** When the insights run selected the session. */
|
|
3697
|
-
analyzedAt:
|
|
3345
|
+
analyzedAt:
|
|
3346
|
+
| Date
|
|
3347
|
+
| undefined;
|
|
3348
|
+
/** The topics file's content version the analysis used (e.g. team-topics-v1@3f2a9c1d0e4b). */
|
|
3349
|
+
topicsVersion: string;
|
|
3698
3350
|
}
|
|
3699
3351
|
|
|
3700
3352
|
/**
|
|
3701
|
-
*
|
|
3702
|
-
*
|
|
3703
|
-
|
|
3353
|
+
* AISessionInsightTopic is what an insight is filed under: a topic from the team's topics file, or one the model named for a
|
|
3354
|
+
* finding none of them fits.
|
|
3355
|
+
*/
|
|
3356
|
+
export interface AISessionInsightTopic {
|
|
3357
|
+
/** The topics file's key (e.g. verification); empty for a topic the model named. */
|
|
3358
|
+
key: string;
|
|
3359
|
+
/** The topic's name: the topics file's, or 2 to 4 words the model wrote. */
|
|
3360
|
+
name: string;
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* AISessionInsight is one change a model recommends after the session, with what it found. action_type is the typed kind
|
|
3365
|
+
* of change, which clients branch on; topic is what it is filed under, from the session insights job's topics file or
|
|
3366
|
+
* named by the model. title, finding, recommendation, remediation_prompt and a model-named topic are model-written
|
|
3367
|
+
* text about this session alone, returned only to readers of the session's project; they never name a person by
|
|
3368
|
+
* design, which the model is told and nothing checks.
|
|
3704
3369
|
*/
|
|
3705
3370
|
export interface AISessionInsight {
|
|
3706
|
-
category: AISessionInsightCategory;
|
|
3707
|
-
actionType: AISessionInsightActionType;
|
|
3708
3371
|
/** The session's events the insight cites, in the model's order. Quote them from the stored events. */
|
|
3709
3372
|
evidenceRefs: AISessionEventRef[];
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
/**
|
|
3713
|
-
|
|
3714
|
-
/**
|
|
3715
|
-
|
|
3373
|
+
/** What to do, at most 80 runes. */
|
|
3374
|
+
title: string;
|
|
3375
|
+
/** What happened in the session and what it cost, at most 300 runes. */
|
|
3376
|
+
finding: string;
|
|
3377
|
+
/** The change to make and why it prevents this, at most 300 runes. */
|
|
3378
|
+
recommendation: string;
|
|
3379
|
+
/** The kind of change the insight recommends. */
|
|
3380
|
+
actionType: AISessionInsightActionType;
|
|
3381
|
+
/**
|
|
3382
|
+
* A draft the person can paste into their coding agent to make the change, at most 1,200 runes; empty when the
|
|
3383
|
+
* action needs none and the model wrote none. Model-written from untrusted session content: show it as a draft to
|
|
3384
|
+
* review, never apply it automatically.
|
|
3385
|
+
*/
|
|
3386
|
+
remediationPrompt: string;
|
|
3387
|
+
/** What the insight is filed under. */
|
|
3388
|
+
topic:
|
|
3389
|
+
| AISessionInsightTopic
|
|
3390
|
+
| undefined;
|
|
3391
|
+
/** The catalog skill the insight recommends installing; set when the insight attaches one, always on ADD_SKILL. */
|
|
3392
|
+
skill: AISkillSuggestion | undefined;
|
|
3716
3393
|
}
|
|
3717
3394
|
|
|
3718
3395
|
/** AISkillSuggestion pins an immutable catalog revision, even when metadata cannot be resolved now. */
|
|
@@ -4984,7 +4661,7 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
4984
4661
|
writer.uint32(98).string(v!);
|
|
4985
4662
|
}
|
|
4986
4663
|
for (const v of message.workTypes) {
|
|
4987
|
-
writer.uint32(
|
|
4664
|
+
writer.uint32(106).string(v!);
|
|
4988
4665
|
}
|
|
4989
4666
|
return writer;
|
|
4990
4667
|
},
|
|
@@ -5099,22 +4776,12 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
5099
4776
|
continue;
|
|
5100
4777
|
}
|
|
5101
4778
|
case 13: {
|
|
5102
|
-
if (tag
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
continue;
|
|
5106
|
-
}
|
|
5107
|
-
|
|
5108
|
-
if (tag === 106) {
|
|
5109
|
-
const end2 = reader.uint32() + reader.pos;
|
|
5110
|
-
while (reader.pos < end2) {
|
|
5111
|
-
message.workTypes.push(reader.int32() as any);
|
|
5112
|
-
}
|
|
5113
|
-
|
|
5114
|
-
continue;
|
|
4779
|
+
if (tag !== 106) {
|
|
4780
|
+
break;
|
|
5115
4781
|
}
|
|
5116
4782
|
|
|
5117
|
-
|
|
4783
|
+
message.workTypes.push(reader.string());
|
|
4784
|
+
continue;
|
|
5118
4785
|
}
|
|
5119
4786
|
}
|
|
5120
4787
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5173,9 +4840,9 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
5173
4840
|
? object.search_stored_names.map((e: any) => globalThis.String(e))
|
|
5174
4841
|
: [],
|
|
5175
4842
|
workTypes: globalThis.Array.isArray(object?.workTypes)
|
|
5176
|
-
? object.workTypes.map((e: any) =>
|
|
4843
|
+
? object.workTypes.map((e: any) => globalThis.String(e))
|
|
5177
4844
|
: globalThis.Array.isArray(object?.work_types)
|
|
5178
|
-
? object.work_types.map((e: any) =>
|
|
4845
|
+
? object.work_types.map((e: any) => globalThis.String(e))
|
|
5179
4846
|
: [],
|
|
5180
4847
|
};
|
|
5181
4848
|
},
|
|
@@ -5219,7 +4886,7 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
5219
4886
|
obj.searchStoredNames = message.searchStoredNames;
|
|
5220
4887
|
}
|
|
5221
4888
|
if (message.workTypes?.length) {
|
|
5222
|
-
obj.workTypes = message.workTypes
|
|
4889
|
+
obj.workTypes = message.workTypes;
|
|
5223
4890
|
}
|
|
5224
4891
|
return obj;
|
|
5225
4892
|
},
|
|
@@ -5682,8 +5349,8 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
5682
5349
|
termaVersions: [],
|
|
5683
5350
|
title: "",
|
|
5684
5351
|
recap: "",
|
|
5685
|
-
workType:
|
|
5686
|
-
|
|
5352
|
+
workType: "",
|
|
5353
|
+
workSize: "",
|
|
5687
5354
|
sessionScore: undefined,
|
|
5688
5355
|
promptLabelSummary: undefined,
|
|
5689
5356
|
};
|
|
@@ -5796,11 +5463,11 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5796
5463
|
if (message.recap !== "") {
|
|
5797
5464
|
writer.uint32(274).string(message.recap);
|
|
5798
5465
|
}
|
|
5799
|
-
if (message.workType !==
|
|
5800
|
-
writer.uint32(
|
|
5466
|
+
if (message.workType !== "") {
|
|
5467
|
+
writer.uint32(290).string(message.workType);
|
|
5801
5468
|
}
|
|
5802
|
-
if (message.
|
|
5803
|
-
writer.uint32(
|
|
5469
|
+
if (message.workSize !== "") {
|
|
5470
|
+
writer.uint32(298).string(message.workSize);
|
|
5804
5471
|
}
|
|
5805
5472
|
if (message.sessionScore !== undefined) {
|
|
5806
5473
|
writer.uint32(304).int32(message.sessionScore);
|
|
@@ -6105,19 +5772,19 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6105
5772
|
continue;
|
|
6106
5773
|
}
|
|
6107
5774
|
case 36: {
|
|
6108
|
-
if (tag !==
|
|
5775
|
+
if (tag !== 290) {
|
|
6109
5776
|
break;
|
|
6110
5777
|
}
|
|
6111
5778
|
|
|
6112
|
-
message.workType = reader.
|
|
5779
|
+
message.workType = reader.string();
|
|
6113
5780
|
continue;
|
|
6114
5781
|
}
|
|
6115
5782
|
case 37: {
|
|
6116
|
-
if (tag !==
|
|
5783
|
+
if (tag !== 298) {
|
|
6117
5784
|
break;
|
|
6118
5785
|
}
|
|
6119
5786
|
|
|
6120
|
-
message.
|
|
5787
|
+
message.workSize = reader.string();
|
|
6121
5788
|
continue;
|
|
6122
5789
|
}
|
|
6123
5790
|
case 38: {
|
|
@@ -6286,11 +5953,15 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6286
5953
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
6287
5954
|
recap: isSet(object.recap) ? globalThis.String(object.recap) : "",
|
|
6288
5955
|
workType: isSet(object.workType)
|
|
6289
|
-
?
|
|
5956
|
+
? globalThis.String(object.workType)
|
|
6290
5957
|
: isSet(object.work_type)
|
|
6291
|
-
?
|
|
6292
|
-
:
|
|
6293
|
-
|
|
5958
|
+
? globalThis.String(object.work_type)
|
|
5959
|
+
: "",
|
|
5960
|
+
workSize: isSet(object.workSize)
|
|
5961
|
+
? globalThis.String(object.workSize)
|
|
5962
|
+
: isSet(object.work_size)
|
|
5963
|
+
? globalThis.String(object.work_size)
|
|
5964
|
+
: "",
|
|
6294
5965
|
sessionScore: isSet(object.sessionScore)
|
|
6295
5966
|
? globalThis.Number(object.sessionScore)
|
|
6296
5967
|
: isSet(object.session_score)
|
|
@@ -6411,11 +6082,11 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6411
6082
|
if (message.recap !== "") {
|
|
6412
6083
|
obj.recap = message.recap;
|
|
6413
6084
|
}
|
|
6414
|
-
if (message.workType !==
|
|
6415
|
-
obj.workType =
|
|
6085
|
+
if (message.workType !== "") {
|
|
6086
|
+
obj.workType = message.workType;
|
|
6416
6087
|
}
|
|
6417
|
-
if (message.
|
|
6418
|
-
obj.
|
|
6088
|
+
if (message.workSize !== "") {
|
|
6089
|
+
obj.workSize = message.workSize;
|
|
6419
6090
|
}
|
|
6420
6091
|
if (message.sessionScore !== undefined) {
|
|
6421
6092
|
obj.sessionScore = Math.round(message.sessionScore);
|
|
@@ -6468,8 +6139,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6468
6139
|
message.termaVersions = object.termaVersions?.map((e) => e) || [];
|
|
6469
6140
|
message.title = object.title ?? "";
|
|
6470
6141
|
message.recap = object.recap ?? "";
|
|
6471
|
-
message.workType = object.workType ??
|
|
6472
|
-
message.
|
|
6142
|
+
message.workType = object.workType ?? "";
|
|
6143
|
+
message.workSize = object.workSize ?? "";
|
|
6473
6144
|
message.sessionScore = object.sessionScore ?? undefined;
|
|
6474
6145
|
message.promptLabelSummary = (object.promptLabelSummary !== undefined && object.promptLabelSummary !== null)
|
|
6475
6146
|
? AIPromptLabelSummary.fromPartial(object.promptLabelSummary)
|
|
@@ -8311,31 +7982,22 @@ export const AIContentPart: MessageFns<AIContentPart> = {
|
|
|
8311
7982
|
},
|
|
8312
7983
|
};
|
|
8313
7984
|
|
|
8314
|
-
function
|
|
8315
|
-
return {
|
|
7985
|
+
function createBaseAILabelCount(): AILabelCount {
|
|
7986
|
+
return { key: "", prompts: 0 };
|
|
8316
7987
|
}
|
|
8317
7988
|
|
|
8318
|
-
export const
|
|
8319
|
-
encode(message:
|
|
8320
|
-
if (message.
|
|
8321
|
-
writer.uint32(
|
|
8322
|
-
}
|
|
8323
|
-
if (message.clarity !== 0) {
|
|
8324
|
-
writer.uint32(16).int32(message.clarity);
|
|
8325
|
-
}
|
|
8326
|
-
if (message.steering !== 0) {
|
|
8327
|
-
writer.uint32(24).int32(message.steering);
|
|
8328
|
-
}
|
|
8329
|
-
if (message.frustration !== 0) {
|
|
8330
|
-
writer.uint32(32).int32(message.frustration);
|
|
7989
|
+
export const AILabelCount: MessageFns<AILabelCount> = {
|
|
7990
|
+
encode(message: AILabelCount, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7991
|
+
if (message.key !== "") {
|
|
7992
|
+
writer.uint32(10).string(message.key);
|
|
8331
7993
|
}
|
|
8332
|
-
if (message.
|
|
8333
|
-
writer.uint32(
|
|
7994
|
+
if (message.prompts !== 0) {
|
|
7995
|
+
writer.uint32(16).uint64(message.prompts);
|
|
8334
7996
|
}
|
|
8335
7997
|
return writer;
|
|
8336
7998
|
},
|
|
8337
7999
|
|
|
8338
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
8000
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelCount {
|
|
8339
8001
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8340
8002
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8341
8003
|
if (previousRecursionDepth >= 100) {
|
|
@@ -8344,16 +8006,16 @@ export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
|
8344
8006
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8345
8007
|
try {
|
|
8346
8008
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8347
|
-
const message =
|
|
8009
|
+
const message = createBaseAILabelCount();
|
|
8348
8010
|
while (reader.pos < end) {
|
|
8349
8011
|
const tag = reader.uint32();
|
|
8350
8012
|
switch (tag >>> 3) {
|
|
8351
8013
|
case 1: {
|
|
8352
|
-
if (tag !==
|
|
8014
|
+
if (tag !== 10) {
|
|
8353
8015
|
break;
|
|
8354
8016
|
}
|
|
8355
8017
|
|
|
8356
|
-
message.
|
|
8018
|
+
message.key = reader.string();
|
|
8357
8019
|
continue;
|
|
8358
8020
|
}
|
|
8359
8021
|
case 2: {
|
|
@@ -8361,31 +8023,7 @@ export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
|
8361
8023
|
break;
|
|
8362
8024
|
}
|
|
8363
8025
|
|
|
8364
|
-
message.
|
|
8365
|
-
continue;
|
|
8366
|
-
}
|
|
8367
|
-
case 3: {
|
|
8368
|
-
if (tag !== 24) {
|
|
8369
|
-
break;
|
|
8370
|
-
}
|
|
8371
|
-
|
|
8372
|
-
message.steering = reader.int32() as any;
|
|
8373
|
-
continue;
|
|
8374
|
-
}
|
|
8375
|
-
case 4: {
|
|
8376
|
-
if (tag !== 32) {
|
|
8377
|
-
break;
|
|
8378
|
-
}
|
|
8379
|
-
|
|
8380
|
-
message.frustration = reader.int32() as any;
|
|
8381
|
-
continue;
|
|
8382
|
-
}
|
|
8383
|
-
case 5: {
|
|
8384
|
-
if (tag !== 40) {
|
|
8385
|
-
break;
|
|
8386
|
-
}
|
|
8387
|
-
|
|
8388
|
-
message.sentiment = reader.int32() as any;
|
|
8026
|
+
message.prompts = longToNumber(reader.uint64());
|
|
8389
8027
|
continue;
|
|
8390
8028
|
}
|
|
8391
8029
|
}
|
|
@@ -8400,72 +8038,51 @@ export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
|
8400
8038
|
}
|
|
8401
8039
|
},
|
|
8402
8040
|
|
|
8403
|
-
fromJSON(object: any):
|
|
8041
|
+
fromJSON(object: any): AILabelCount {
|
|
8404
8042
|
return {
|
|
8405
|
-
|
|
8406
|
-
|
|
8407
|
-
steering: isSet(object.steering) ? aIPromptSteeringFromJSON(object.steering) : 0,
|
|
8408
|
-
frustration: isSet(object.frustration) ? aIPromptFrustrationFromJSON(object.frustration) : 0,
|
|
8409
|
-
sentiment: isSet(object.sentiment) ? aIPromptSentimentFromJSON(object.sentiment) : 0,
|
|
8043
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
8044
|
+
prompts: isSet(object.prompts) ? globalThis.Number(object.prompts) : 0,
|
|
8410
8045
|
};
|
|
8411
8046
|
},
|
|
8412
8047
|
|
|
8413
|
-
toJSON(message:
|
|
8048
|
+
toJSON(message: AILabelCount): unknown {
|
|
8414
8049
|
const obj: any = {};
|
|
8415
|
-
if (message.
|
|
8416
|
-
obj.
|
|
8417
|
-
}
|
|
8418
|
-
if (message.clarity !== 0) {
|
|
8419
|
-
obj.clarity = aIPromptClarityToJSON(message.clarity);
|
|
8420
|
-
}
|
|
8421
|
-
if (message.steering !== 0) {
|
|
8422
|
-
obj.steering = aIPromptSteeringToJSON(message.steering);
|
|
8423
|
-
}
|
|
8424
|
-
if (message.frustration !== 0) {
|
|
8425
|
-
obj.frustration = aIPromptFrustrationToJSON(message.frustration);
|
|
8050
|
+
if (message.key !== "") {
|
|
8051
|
+
obj.key = message.key;
|
|
8426
8052
|
}
|
|
8427
|
-
if (message.
|
|
8428
|
-
obj.
|
|
8053
|
+
if (message.prompts !== 0) {
|
|
8054
|
+
obj.prompts = Math.round(message.prompts);
|
|
8429
8055
|
}
|
|
8430
8056
|
return obj;
|
|
8431
8057
|
},
|
|
8432
8058
|
|
|
8433
|
-
create<I extends Exact<DeepPartial<
|
|
8434
|
-
return
|
|
8059
|
+
create<I extends Exact<DeepPartial<AILabelCount>, I>>(base?: I): AILabelCount {
|
|
8060
|
+
return AILabelCount.fromPartial(base ?? ({} as any));
|
|
8435
8061
|
},
|
|
8436
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
8437
|
-
const message =
|
|
8438
|
-
message.
|
|
8439
|
-
message.
|
|
8440
|
-
message.steering = object.steering ?? 0;
|
|
8441
|
-
message.frustration = object.frustration ?? 0;
|
|
8442
|
-
message.sentiment = object.sentiment ?? 0;
|
|
8062
|
+
fromPartial<I extends Exact<DeepPartial<AILabelCount>, I>>(object: I): AILabelCount {
|
|
8063
|
+
const message = createBaseAILabelCount();
|
|
8064
|
+
message.key = object.key ?? "";
|
|
8065
|
+
message.prompts = object.prompts ?? 0;
|
|
8443
8066
|
return message;
|
|
8444
8067
|
},
|
|
8445
8068
|
};
|
|
8446
8069
|
|
|
8447
|
-
function
|
|
8448
|
-
return {
|
|
8070
|
+
function createBaseAIPromptLabels(): AIPromptLabels {
|
|
8071
|
+
return { steering: "", tone: "" };
|
|
8449
8072
|
}
|
|
8450
8073
|
|
|
8451
|
-
export const
|
|
8452
|
-
encode(message:
|
|
8453
|
-
if (message.
|
|
8454
|
-
writer.uint32(
|
|
8455
|
-
}
|
|
8456
|
-
for (const v of message.steeringCounts) {
|
|
8457
|
-
AIPromptSteeringCount.encode(v!, writer.uint32(18).fork()).join();
|
|
8458
|
-
}
|
|
8459
|
-
if (message.peakFrustration !== 0) {
|
|
8460
|
-
writer.uint32(24).int32(message.peakFrustration);
|
|
8074
|
+
export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
8075
|
+
encode(message: AIPromptLabels, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8076
|
+
if (message.steering !== "") {
|
|
8077
|
+
writer.uint32(10).string(message.steering);
|
|
8461
8078
|
}
|
|
8462
|
-
if (message.
|
|
8463
|
-
writer.uint32(
|
|
8079
|
+
if (message.tone !== "") {
|
|
8080
|
+
writer.uint32(18).string(message.tone);
|
|
8464
8081
|
}
|
|
8465
8082
|
return writer;
|
|
8466
8083
|
},
|
|
8467
8084
|
|
|
8468
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
8085
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabels {
|
|
8469
8086
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8470
8087
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8471
8088
|
if (previousRecursionDepth >= 100) {
|
|
@@ -8474,16 +8091,16 @@ export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
|
8474
8091
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8475
8092
|
try {
|
|
8476
8093
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8477
|
-
const message =
|
|
8094
|
+
const message = createBaseAIPromptLabels();
|
|
8478
8095
|
while (reader.pos < end) {
|
|
8479
8096
|
const tag = reader.uint32();
|
|
8480
8097
|
switch (tag >>> 3) {
|
|
8481
8098
|
case 1: {
|
|
8482
|
-
if (tag !==
|
|
8099
|
+
if (tag !== 10) {
|
|
8483
8100
|
break;
|
|
8484
8101
|
}
|
|
8485
8102
|
|
|
8486
|
-
message.
|
|
8103
|
+
message.steering = reader.string();
|
|
8487
8104
|
continue;
|
|
8488
8105
|
}
|
|
8489
8106
|
case 2: {
|
|
@@ -8491,23 +8108,7 @@ export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
|
8491
8108
|
break;
|
|
8492
8109
|
}
|
|
8493
8110
|
|
|
8494
|
-
message.
|
|
8495
|
-
continue;
|
|
8496
|
-
}
|
|
8497
|
-
case 3: {
|
|
8498
|
-
if (tag !== 24) {
|
|
8499
|
-
break;
|
|
8500
|
-
}
|
|
8501
|
-
|
|
8502
|
-
message.peakFrustration = reader.int32() as any;
|
|
8503
|
-
continue;
|
|
8504
|
-
}
|
|
8505
|
-
case 4: {
|
|
8506
|
-
if (tag !== 32) {
|
|
8507
|
-
break;
|
|
8508
|
-
}
|
|
8509
|
-
|
|
8510
|
-
message.clearPrompts = longToNumber(reader.uint64());
|
|
8111
|
+
message.tone = reader.string();
|
|
8511
8112
|
continue;
|
|
8512
8113
|
}
|
|
8513
8114
|
}
|
|
@@ -8522,77 +8123,54 @@ export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
|
8522
8123
|
}
|
|
8523
8124
|
},
|
|
8524
8125
|
|
|
8525
|
-
fromJSON(object: any):
|
|
8126
|
+
fromJSON(object: any): AIPromptLabels {
|
|
8526
8127
|
return {
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
: isSet(object.labelled_prompts)
|
|
8530
|
-
? globalThis.Number(object.labelled_prompts)
|
|
8531
|
-
: 0,
|
|
8532
|
-
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
8533
|
-
? object.steeringCounts.map((e: any) => AIPromptSteeringCount.fromJSON(e))
|
|
8534
|
-
: globalThis.Array.isArray(object?.steering_counts)
|
|
8535
|
-
? object.steering_counts.map((e: any) => AIPromptSteeringCount.fromJSON(e))
|
|
8536
|
-
: [],
|
|
8537
|
-
peakFrustration: isSet(object.peakFrustration)
|
|
8538
|
-
? aIPromptFrustrationFromJSON(object.peakFrustration)
|
|
8539
|
-
: isSet(object.peak_frustration)
|
|
8540
|
-
? aIPromptFrustrationFromJSON(object.peak_frustration)
|
|
8541
|
-
: 0,
|
|
8542
|
-
clearPrompts: isSet(object.clearPrompts)
|
|
8543
|
-
? globalThis.Number(object.clearPrompts)
|
|
8544
|
-
: isSet(object.clear_prompts)
|
|
8545
|
-
? globalThis.Number(object.clear_prompts)
|
|
8546
|
-
: 0,
|
|
8128
|
+
steering: isSet(object.steering) ? globalThis.String(object.steering) : "",
|
|
8129
|
+
tone: isSet(object.tone) ? globalThis.String(object.tone) : "",
|
|
8547
8130
|
};
|
|
8548
8131
|
},
|
|
8549
8132
|
|
|
8550
|
-
toJSON(message:
|
|
8133
|
+
toJSON(message: AIPromptLabels): unknown {
|
|
8551
8134
|
const obj: any = {};
|
|
8552
|
-
if (message.
|
|
8553
|
-
obj.
|
|
8554
|
-
}
|
|
8555
|
-
if (message.steeringCounts?.length) {
|
|
8556
|
-
obj.steeringCounts = message.steeringCounts.map((e) => AIPromptSteeringCount.toJSON(e));
|
|
8135
|
+
if (message.steering !== "") {
|
|
8136
|
+
obj.steering = message.steering;
|
|
8557
8137
|
}
|
|
8558
|
-
if (message.
|
|
8559
|
-
obj.
|
|
8560
|
-
}
|
|
8561
|
-
if (message.clearPrompts !== 0) {
|
|
8562
|
-
obj.clearPrompts = Math.round(message.clearPrompts);
|
|
8138
|
+
if (message.tone !== "") {
|
|
8139
|
+
obj.tone = message.tone;
|
|
8563
8140
|
}
|
|
8564
8141
|
return obj;
|
|
8565
8142
|
},
|
|
8566
8143
|
|
|
8567
|
-
create<I extends Exact<DeepPartial<
|
|
8568
|
-
return
|
|
8144
|
+
create<I extends Exact<DeepPartial<AIPromptLabels>, I>>(base?: I): AIPromptLabels {
|
|
8145
|
+
return AIPromptLabels.fromPartial(base ?? ({} as any));
|
|
8569
8146
|
},
|
|
8570
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
8571
|
-
const message =
|
|
8572
|
-
message.
|
|
8573
|
-
message.
|
|
8574
|
-
message.peakFrustration = object.peakFrustration ?? 0;
|
|
8575
|
-
message.clearPrompts = object.clearPrompts ?? 0;
|
|
8147
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabels>, I>>(object: I): AIPromptLabels {
|
|
8148
|
+
const message = createBaseAIPromptLabels();
|
|
8149
|
+
message.steering = object.steering ?? "";
|
|
8150
|
+
message.tone = object.tone ?? "";
|
|
8576
8151
|
return message;
|
|
8577
8152
|
},
|
|
8578
8153
|
};
|
|
8579
8154
|
|
|
8580
|
-
function
|
|
8581
|
-
return {
|
|
8155
|
+
function createBaseAIPromptLabelSummary(): AIPromptLabelSummary {
|
|
8156
|
+
return { labelledPrompts: 0, steeringCounts: [], toneCounts: [] };
|
|
8582
8157
|
}
|
|
8583
8158
|
|
|
8584
|
-
export const
|
|
8585
|
-
encode(message:
|
|
8586
|
-
if (message.
|
|
8587
|
-
writer.uint32(8).
|
|
8159
|
+
export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
8160
|
+
encode(message: AIPromptLabelSummary, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8161
|
+
if (message.labelledPrompts !== 0) {
|
|
8162
|
+
writer.uint32(8).uint64(message.labelledPrompts);
|
|
8588
8163
|
}
|
|
8589
|
-
|
|
8590
|
-
writer.uint32(
|
|
8164
|
+
for (const v of message.steeringCounts) {
|
|
8165
|
+
AILabelCount.encode(v!, writer.uint32(18).fork()).join();
|
|
8166
|
+
}
|
|
8167
|
+
for (const v of message.toneCounts) {
|
|
8168
|
+
AILabelCount.encode(v!, writer.uint32(26).fork()).join();
|
|
8591
8169
|
}
|
|
8592
8170
|
return writer;
|
|
8593
8171
|
},
|
|
8594
8172
|
|
|
8595
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
8173
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabelSummary {
|
|
8596
8174
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8597
8175
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8598
8176
|
if (previousRecursionDepth >= 100) {
|
|
@@ -8601,7 +8179,7 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
8601
8179
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8602
8180
|
try {
|
|
8603
8181
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8604
|
-
const message =
|
|
8182
|
+
const message = createBaseAIPromptLabelSummary();
|
|
8605
8183
|
while (reader.pos < end) {
|
|
8606
8184
|
const tag = reader.uint32();
|
|
8607
8185
|
switch (tag >>> 3) {
|
|
@@ -8610,15 +8188,23 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
8610
8188
|
break;
|
|
8611
8189
|
}
|
|
8612
8190
|
|
|
8613
|
-
message.
|
|
8191
|
+
message.labelledPrompts = longToNumber(reader.uint64());
|
|
8614
8192
|
continue;
|
|
8615
8193
|
}
|
|
8616
8194
|
case 2: {
|
|
8617
|
-
if (tag !==
|
|
8195
|
+
if (tag !== 18) {
|
|
8618
8196
|
break;
|
|
8619
8197
|
}
|
|
8620
8198
|
|
|
8621
|
-
message.
|
|
8199
|
+
message.steeringCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
8200
|
+
continue;
|
|
8201
|
+
}
|
|
8202
|
+
case 3: {
|
|
8203
|
+
if (tag !== 26) {
|
|
8204
|
+
break;
|
|
8205
|
+
}
|
|
8206
|
+
|
|
8207
|
+
message.toneCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
8622
8208
|
continue;
|
|
8623
8209
|
}
|
|
8624
8210
|
}
|
|
@@ -8633,31 +8219,48 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
8633
8219
|
}
|
|
8634
8220
|
},
|
|
8635
8221
|
|
|
8636
|
-
fromJSON(object: any):
|
|
8222
|
+
fromJSON(object: any): AIPromptLabelSummary {
|
|
8637
8223
|
return {
|
|
8638
|
-
|
|
8639
|
-
|
|
8224
|
+
labelledPrompts: isSet(object.labelledPrompts)
|
|
8225
|
+
? globalThis.Number(object.labelledPrompts)
|
|
8226
|
+
: isSet(object.labelled_prompts)
|
|
8227
|
+
? globalThis.Number(object.labelled_prompts)
|
|
8228
|
+
: 0,
|
|
8229
|
+
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
8230
|
+
? object.steeringCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8231
|
+
: globalThis.Array.isArray(object?.steering_counts)
|
|
8232
|
+
? object.steering_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8233
|
+
: [],
|
|
8234
|
+
toneCounts: globalThis.Array.isArray(object?.toneCounts)
|
|
8235
|
+
? object.toneCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8236
|
+
: globalThis.Array.isArray(object?.tone_counts)
|
|
8237
|
+
? object.tone_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8238
|
+
: [],
|
|
8640
8239
|
};
|
|
8641
8240
|
},
|
|
8642
8241
|
|
|
8643
|
-
toJSON(message:
|
|
8242
|
+
toJSON(message: AIPromptLabelSummary): unknown {
|
|
8644
8243
|
const obj: any = {};
|
|
8645
|
-
if (message.
|
|
8646
|
-
obj.
|
|
8244
|
+
if (message.labelledPrompts !== 0) {
|
|
8245
|
+
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
8647
8246
|
}
|
|
8648
|
-
if (message.
|
|
8649
|
-
obj.
|
|
8247
|
+
if (message.steeringCounts?.length) {
|
|
8248
|
+
obj.steeringCounts = message.steeringCounts.map((e) => AILabelCount.toJSON(e));
|
|
8249
|
+
}
|
|
8250
|
+
if (message.toneCounts?.length) {
|
|
8251
|
+
obj.toneCounts = message.toneCounts.map((e) => AILabelCount.toJSON(e));
|
|
8650
8252
|
}
|
|
8651
8253
|
return obj;
|
|
8652
8254
|
},
|
|
8653
8255
|
|
|
8654
|
-
create<I extends Exact<DeepPartial<
|
|
8655
|
-
return
|
|
8256
|
+
create<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(base?: I): AIPromptLabelSummary {
|
|
8257
|
+
return AIPromptLabelSummary.fromPartial(base ?? ({} as any));
|
|
8656
8258
|
},
|
|
8657
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
8658
|
-
const message =
|
|
8659
|
-
message.
|
|
8660
|
-
message.
|
|
8259
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(object: I): AIPromptLabelSummary {
|
|
8260
|
+
const message = createBaseAIPromptLabelSummary();
|
|
8261
|
+
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
8262
|
+
message.steeringCounts = object.steeringCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8263
|
+
message.toneCounts = object.toneCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8661
8264
|
return message;
|
|
8662
8265
|
},
|
|
8663
8266
|
};
|
|
@@ -8992,7 +8595,7 @@ export const GetPromptLabelTrendResponse: MessageFns<GetPromptLabelTrendResponse
|
|
|
8992
8595
|
};
|
|
8993
8596
|
|
|
8994
8597
|
function createBaseAIPromptLabelWeek(): AIPromptLabelWeek {
|
|
8995
|
-
return { weekStart: "", labelledPrompts: 0,
|
|
8598
|
+
return { weekStart: "", labelledPrompts: 0, steeringCounts: [], toneCounts: [] };
|
|
8996
8599
|
}
|
|
8997
8600
|
|
|
8998
8601
|
export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
@@ -9003,14 +8606,11 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9003
8606
|
if (message.labelledPrompts !== 0) {
|
|
9004
8607
|
writer.uint32(16).uint64(message.labelledPrompts);
|
|
9005
8608
|
}
|
|
9006
|
-
|
|
9007
|
-
writer.uint32(
|
|
9008
|
-
}
|
|
9009
|
-
if (message.corrections !== 0) {
|
|
9010
|
-
writer.uint32(32).uint64(message.corrections);
|
|
8609
|
+
for (const v of message.steeringCounts) {
|
|
8610
|
+
AILabelCount.encode(v!, writer.uint32(26).fork()).join();
|
|
9011
8611
|
}
|
|
9012
|
-
|
|
9013
|
-
writer.uint32(
|
|
8612
|
+
for (const v of message.toneCounts) {
|
|
8613
|
+
AILabelCount.encode(v!, writer.uint32(34).fork()).join();
|
|
9014
8614
|
}
|
|
9015
8615
|
return writer;
|
|
9016
8616
|
},
|
|
@@ -9045,27 +8645,19 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9045
8645
|
continue;
|
|
9046
8646
|
}
|
|
9047
8647
|
case 3: {
|
|
9048
|
-
if (tag !==
|
|
8648
|
+
if (tag !== 26) {
|
|
9049
8649
|
break;
|
|
9050
8650
|
}
|
|
9051
8651
|
|
|
9052
|
-
message.
|
|
8652
|
+
message.steeringCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
9053
8653
|
continue;
|
|
9054
8654
|
}
|
|
9055
8655
|
case 4: {
|
|
9056
|
-
if (tag !==
|
|
9057
|
-
break;
|
|
9058
|
-
}
|
|
9059
|
-
|
|
9060
|
-
message.corrections = longToNumber(reader.uint64());
|
|
9061
|
-
continue;
|
|
9062
|
-
}
|
|
9063
|
-
case 5: {
|
|
9064
|
-
if (tag !== 40) {
|
|
8656
|
+
if (tag !== 34) {
|
|
9065
8657
|
break;
|
|
9066
8658
|
}
|
|
9067
8659
|
|
|
9068
|
-
message.
|
|
8660
|
+
message.toneCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
9069
8661
|
continue;
|
|
9070
8662
|
}
|
|
9071
8663
|
}
|
|
@@ -9092,17 +8684,16 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9092
8684
|
: isSet(object.labelled_prompts)
|
|
9093
8685
|
? globalThis.Number(object.labelled_prompts)
|
|
9094
8686
|
: 0,
|
|
9095
|
-
|
|
9096
|
-
?
|
|
9097
|
-
:
|
|
9098
|
-
?
|
|
9099
|
-
:
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
: 0,
|
|
8687
|
+
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
8688
|
+
? object.steeringCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8689
|
+
: globalThis.Array.isArray(object?.steering_counts)
|
|
8690
|
+
? object.steering_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8691
|
+
: [],
|
|
8692
|
+
toneCounts: globalThis.Array.isArray(object?.toneCounts)
|
|
8693
|
+
? object.toneCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8694
|
+
: globalThis.Array.isArray(object?.tone_counts)
|
|
8695
|
+
? object.tone_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8696
|
+
: [],
|
|
9106
8697
|
};
|
|
9107
8698
|
},
|
|
9108
8699
|
|
|
@@ -9114,14 +8705,11 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9114
8705
|
if (message.labelledPrompts !== 0) {
|
|
9115
8706
|
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
9116
8707
|
}
|
|
9117
|
-
if (message.
|
|
9118
|
-
obj.
|
|
9119
|
-
}
|
|
9120
|
-
if (message.corrections !== 0) {
|
|
9121
|
-
obj.corrections = Math.round(message.corrections);
|
|
8708
|
+
if (message.steeringCounts?.length) {
|
|
8709
|
+
obj.steeringCounts = message.steeringCounts.map((e) => AILabelCount.toJSON(e));
|
|
9122
8710
|
}
|
|
9123
|
-
if (message.
|
|
9124
|
-
obj.
|
|
8711
|
+
if (message.toneCounts?.length) {
|
|
8712
|
+
obj.toneCounts = message.toneCounts.map((e) => AILabelCount.toJSON(e));
|
|
9125
8713
|
}
|
|
9126
8714
|
return obj;
|
|
9127
8715
|
},
|
|
@@ -9133,9 +8721,521 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9133
8721
|
const message = createBaseAIPromptLabelWeek();
|
|
9134
8722
|
message.weekStart = object.weekStart ?? "";
|
|
9135
8723
|
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
9136
|
-
message.
|
|
9137
|
-
message.
|
|
9138
|
-
message
|
|
8724
|
+
message.steeringCounts = object.steeringCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8725
|
+
message.toneCounts = object.toneCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8726
|
+
return message;
|
|
8727
|
+
},
|
|
8728
|
+
};
|
|
8729
|
+
|
|
8730
|
+
function createBaseGetLabelCatalogRequest(): GetLabelCatalogRequest {
|
|
8731
|
+
return { organizationId: "", projectId: "" };
|
|
8732
|
+
}
|
|
8733
|
+
|
|
8734
|
+
export const GetLabelCatalogRequest: MessageFns<GetLabelCatalogRequest> = {
|
|
8735
|
+
encode(message: GetLabelCatalogRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8736
|
+
if (message.organizationId !== "") {
|
|
8737
|
+
writer.uint32(10).string(message.organizationId);
|
|
8738
|
+
}
|
|
8739
|
+
if (message.projectId !== "") {
|
|
8740
|
+
writer.uint32(18).string(message.projectId);
|
|
8741
|
+
}
|
|
8742
|
+
return writer;
|
|
8743
|
+
},
|
|
8744
|
+
|
|
8745
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLabelCatalogRequest {
|
|
8746
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8747
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8748
|
+
if (previousRecursionDepth >= 100) {
|
|
8749
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8750
|
+
}
|
|
8751
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8752
|
+
try {
|
|
8753
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8754
|
+
const message = createBaseGetLabelCatalogRequest();
|
|
8755
|
+
while (reader.pos < end) {
|
|
8756
|
+
const tag = reader.uint32();
|
|
8757
|
+
switch (tag >>> 3) {
|
|
8758
|
+
case 1: {
|
|
8759
|
+
if (tag !== 10) {
|
|
8760
|
+
break;
|
|
8761
|
+
}
|
|
8762
|
+
|
|
8763
|
+
message.organizationId = reader.string();
|
|
8764
|
+
continue;
|
|
8765
|
+
}
|
|
8766
|
+
case 2: {
|
|
8767
|
+
if (tag !== 18) {
|
|
8768
|
+
break;
|
|
8769
|
+
}
|
|
8770
|
+
|
|
8771
|
+
message.projectId = reader.string();
|
|
8772
|
+
continue;
|
|
8773
|
+
}
|
|
8774
|
+
}
|
|
8775
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8776
|
+
break;
|
|
8777
|
+
}
|
|
8778
|
+
reader.skip(tag & 7);
|
|
8779
|
+
}
|
|
8780
|
+
return message;
|
|
8781
|
+
} finally {
|
|
8782
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8783
|
+
}
|
|
8784
|
+
},
|
|
8785
|
+
|
|
8786
|
+
fromJSON(object: any): GetLabelCatalogRequest {
|
|
8787
|
+
return {
|
|
8788
|
+
organizationId: isSet(object.organizationId)
|
|
8789
|
+
? globalThis.String(object.organizationId)
|
|
8790
|
+
: isSet(object.organization_id)
|
|
8791
|
+
? globalThis.String(object.organization_id)
|
|
8792
|
+
: "",
|
|
8793
|
+
projectId: isSet(object.projectId)
|
|
8794
|
+
? globalThis.String(object.projectId)
|
|
8795
|
+
: isSet(object.project_id)
|
|
8796
|
+
? globalThis.String(object.project_id)
|
|
8797
|
+
: "",
|
|
8798
|
+
};
|
|
8799
|
+
},
|
|
8800
|
+
|
|
8801
|
+
toJSON(message: GetLabelCatalogRequest): unknown {
|
|
8802
|
+
const obj: any = {};
|
|
8803
|
+
if (message.organizationId !== "") {
|
|
8804
|
+
obj.organizationId = message.organizationId;
|
|
8805
|
+
}
|
|
8806
|
+
if (message.projectId !== "") {
|
|
8807
|
+
obj.projectId = message.projectId;
|
|
8808
|
+
}
|
|
8809
|
+
return obj;
|
|
8810
|
+
},
|
|
8811
|
+
|
|
8812
|
+
create<I extends Exact<DeepPartial<GetLabelCatalogRequest>, I>>(base?: I): GetLabelCatalogRequest {
|
|
8813
|
+
return GetLabelCatalogRequest.fromPartial(base ?? ({} as any));
|
|
8814
|
+
},
|
|
8815
|
+
fromPartial<I extends Exact<DeepPartial<GetLabelCatalogRequest>, I>>(object: I): GetLabelCatalogRequest {
|
|
8816
|
+
const message = createBaseGetLabelCatalogRequest();
|
|
8817
|
+
message.organizationId = object.organizationId ?? "";
|
|
8818
|
+
message.projectId = object.projectId ?? "";
|
|
8819
|
+
return message;
|
|
8820
|
+
},
|
|
8821
|
+
};
|
|
8822
|
+
|
|
8823
|
+
function createBaseGetLabelCatalogResponse(): GetLabelCatalogResponse {
|
|
8824
|
+
return { status: undefined, sessionLabels: undefined, promptLabels: undefined };
|
|
8825
|
+
}
|
|
8826
|
+
|
|
8827
|
+
export const GetLabelCatalogResponse: MessageFns<GetLabelCatalogResponse> = {
|
|
8828
|
+
encode(message: GetLabelCatalogResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8829
|
+
if (message.status !== undefined) {
|
|
8830
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
8831
|
+
}
|
|
8832
|
+
if (message.sessionLabels !== undefined) {
|
|
8833
|
+
AILabelSet.encode(message.sessionLabels, writer.uint32(18).fork()).join();
|
|
8834
|
+
}
|
|
8835
|
+
if (message.promptLabels !== undefined) {
|
|
8836
|
+
AILabelSet.encode(message.promptLabels, writer.uint32(26).fork()).join();
|
|
8837
|
+
}
|
|
8838
|
+
return writer;
|
|
8839
|
+
},
|
|
8840
|
+
|
|
8841
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLabelCatalogResponse {
|
|
8842
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8843
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8844
|
+
if (previousRecursionDepth >= 100) {
|
|
8845
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8846
|
+
}
|
|
8847
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8848
|
+
try {
|
|
8849
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8850
|
+
const message = createBaseGetLabelCatalogResponse();
|
|
8851
|
+
while (reader.pos < end) {
|
|
8852
|
+
const tag = reader.uint32();
|
|
8853
|
+
switch (tag >>> 3) {
|
|
8854
|
+
case 1: {
|
|
8855
|
+
if (tag !== 10) {
|
|
8856
|
+
break;
|
|
8857
|
+
}
|
|
8858
|
+
|
|
8859
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
8860
|
+
continue;
|
|
8861
|
+
}
|
|
8862
|
+
case 2: {
|
|
8863
|
+
if (tag !== 18) {
|
|
8864
|
+
break;
|
|
8865
|
+
}
|
|
8866
|
+
|
|
8867
|
+
message.sessionLabels = AILabelSet.decode(reader, reader.uint32());
|
|
8868
|
+
continue;
|
|
8869
|
+
}
|
|
8870
|
+
case 3: {
|
|
8871
|
+
if (tag !== 26) {
|
|
8872
|
+
break;
|
|
8873
|
+
}
|
|
8874
|
+
|
|
8875
|
+
message.promptLabels = AILabelSet.decode(reader, reader.uint32());
|
|
8876
|
+
continue;
|
|
8877
|
+
}
|
|
8878
|
+
}
|
|
8879
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8880
|
+
break;
|
|
8881
|
+
}
|
|
8882
|
+
reader.skip(tag & 7);
|
|
8883
|
+
}
|
|
8884
|
+
return message;
|
|
8885
|
+
} finally {
|
|
8886
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8887
|
+
}
|
|
8888
|
+
},
|
|
8889
|
+
|
|
8890
|
+
fromJSON(object: any): GetLabelCatalogResponse {
|
|
8891
|
+
return {
|
|
8892
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
8893
|
+
sessionLabels: isSet(object.sessionLabels)
|
|
8894
|
+
? AILabelSet.fromJSON(object.sessionLabels)
|
|
8895
|
+
: isSet(object.session_labels)
|
|
8896
|
+
? AILabelSet.fromJSON(object.session_labels)
|
|
8897
|
+
: undefined,
|
|
8898
|
+
promptLabels: isSet(object.promptLabels)
|
|
8899
|
+
? AILabelSet.fromJSON(object.promptLabels)
|
|
8900
|
+
: isSet(object.prompt_labels)
|
|
8901
|
+
? AILabelSet.fromJSON(object.prompt_labels)
|
|
8902
|
+
: undefined,
|
|
8903
|
+
};
|
|
8904
|
+
},
|
|
8905
|
+
|
|
8906
|
+
toJSON(message: GetLabelCatalogResponse): unknown {
|
|
8907
|
+
const obj: any = {};
|
|
8908
|
+
if (message.status !== undefined) {
|
|
8909
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
8910
|
+
}
|
|
8911
|
+
if (message.sessionLabels !== undefined) {
|
|
8912
|
+
obj.sessionLabels = AILabelSet.toJSON(message.sessionLabels);
|
|
8913
|
+
}
|
|
8914
|
+
if (message.promptLabels !== undefined) {
|
|
8915
|
+
obj.promptLabels = AILabelSet.toJSON(message.promptLabels);
|
|
8916
|
+
}
|
|
8917
|
+
return obj;
|
|
8918
|
+
},
|
|
8919
|
+
|
|
8920
|
+
create<I extends Exact<DeepPartial<GetLabelCatalogResponse>, I>>(base?: I): GetLabelCatalogResponse {
|
|
8921
|
+
return GetLabelCatalogResponse.fromPartial(base ?? ({} as any));
|
|
8922
|
+
},
|
|
8923
|
+
fromPartial<I extends Exact<DeepPartial<GetLabelCatalogResponse>, I>>(object: I): GetLabelCatalogResponse {
|
|
8924
|
+
const message = createBaseGetLabelCatalogResponse();
|
|
8925
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
8926
|
+
? ResponseStatus.fromPartial(object.status)
|
|
8927
|
+
: undefined;
|
|
8928
|
+
message.sessionLabels = (object.sessionLabels !== undefined && object.sessionLabels !== null)
|
|
8929
|
+
? AILabelSet.fromPartial(object.sessionLabels)
|
|
8930
|
+
: undefined;
|
|
8931
|
+
message.promptLabels = (object.promptLabels !== undefined && object.promptLabels !== null)
|
|
8932
|
+
? AILabelSet.fromPartial(object.promptLabels)
|
|
8933
|
+
: undefined;
|
|
8934
|
+
return message;
|
|
8935
|
+
},
|
|
8936
|
+
};
|
|
8937
|
+
|
|
8938
|
+
function createBaseAILabelSet(): AILabelSet {
|
|
8939
|
+
return { version: "", dimensions: [] };
|
|
8940
|
+
}
|
|
8941
|
+
|
|
8942
|
+
export const AILabelSet: MessageFns<AILabelSet> = {
|
|
8943
|
+
encode(message: AILabelSet, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8944
|
+
if (message.version !== "") {
|
|
8945
|
+
writer.uint32(10).string(message.version);
|
|
8946
|
+
}
|
|
8947
|
+
for (const v of message.dimensions) {
|
|
8948
|
+
AILabelDimension.encode(v!, writer.uint32(18).fork()).join();
|
|
8949
|
+
}
|
|
8950
|
+
return writer;
|
|
8951
|
+
},
|
|
8952
|
+
|
|
8953
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelSet {
|
|
8954
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8955
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8956
|
+
if (previousRecursionDepth >= 100) {
|
|
8957
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8958
|
+
}
|
|
8959
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8960
|
+
try {
|
|
8961
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8962
|
+
const message = createBaseAILabelSet();
|
|
8963
|
+
while (reader.pos < end) {
|
|
8964
|
+
const tag = reader.uint32();
|
|
8965
|
+
switch (tag >>> 3) {
|
|
8966
|
+
case 1: {
|
|
8967
|
+
if (tag !== 10) {
|
|
8968
|
+
break;
|
|
8969
|
+
}
|
|
8970
|
+
|
|
8971
|
+
message.version = reader.string();
|
|
8972
|
+
continue;
|
|
8973
|
+
}
|
|
8974
|
+
case 2: {
|
|
8975
|
+
if (tag !== 18) {
|
|
8976
|
+
break;
|
|
8977
|
+
}
|
|
8978
|
+
|
|
8979
|
+
message.dimensions.push(AILabelDimension.decode(reader, reader.uint32()));
|
|
8980
|
+
continue;
|
|
8981
|
+
}
|
|
8982
|
+
}
|
|
8983
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8984
|
+
break;
|
|
8985
|
+
}
|
|
8986
|
+
reader.skip(tag & 7);
|
|
8987
|
+
}
|
|
8988
|
+
return message;
|
|
8989
|
+
} finally {
|
|
8990
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8991
|
+
}
|
|
8992
|
+
},
|
|
8993
|
+
|
|
8994
|
+
fromJSON(object: any): AILabelSet {
|
|
8995
|
+
return {
|
|
8996
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
8997
|
+
dimensions: globalThis.Array.isArray(object?.dimensions)
|
|
8998
|
+
? object.dimensions.map((e: any) => AILabelDimension.fromJSON(e))
|
|
8999
|
+
: [],
|
|
9000
|
+
};
|
|
9001
|
+
},
|
|
9002
|
+
|
|
9003
|
+
toJSON(message: AILabelSet): unknown {
|
|
9004
|
+
const obj: any = {};
|
|
9005
|
+
if (message.version !== "") {
|
|
9006
|
+
obj.version = message.version;
|
|
9007
|
+
}
|
|
9008
|
+
if (message.dimensions?.length) {
|
|
9009
|
+
obj.dimensions = message.dimensions.map((e) => AILabelDimension.toJSON(e));
|
|
9010
|
+
}
|
|
9011
|
+
return obj;
|
|
9012
|
+
},
|
|
9013
|
+
|
|
9014
|
+
create<I extends Exact<DeepPartial<AILabelSet>, I>>(base?: I): AILabelSet {
|
|
9015
|
+
return AILabelSet.fromPartial(base ?? ({} as any));
|
|
9016
|
+
},
|
|
9017
|
+
fromPartial<I extends Exact<DeepPartial<AILabelSet>, I>>(object: I): AILabelSet {
|
|
9018
|
+
const message = createBaseAILabelSet();
|
|
9019
|
+
message.version = object.version ?? "";
|
|
9020
|
+
message.dimensions = object.dimensions?.map((e) => AILabelDimension.fromPartial(e)) || [];
|
|
9021
|
+
return message;
|
|
9022
|
+
},
|
|
9023
|
+
};
|
|
9024
|
+
|
|
9025
|
+
function createBaseAILabelDimension(): AILabelDimension {
|
|
9026
|
+
return { key: "", name: "", values: [] };
|
|
9027
|
+
}
|
|
9028
|
+
|
|
9029
|
+
export const AILabelDimension: MessageFns<AILabelDimension> = {
|
|
9030
|
+
encode(message: AILabelDimension, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9031
|
+
if (message.key !== "") {
|
|
9032
|
+
writer.uint32(10).string(message.key);
|
|
9033
|
+
}
|
|
9034
|
+
if (message.name !== "") {
|
|
9035
|
+
writer.uint32(18).string(message.name);
|
|
9036
|
+
}
|
|
9037
|
+
for (const v of message.values) {
|
|
9038
|
+
AILabelValue.encode(v!, writer.uint32(26).fork()).join();
|
|
9039
|
+
}
|
|
9040
|
+
return writer;
|
|
9041
|
+
},
|
|
9042
|
+
|
|
9043
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelDimension {
|
|
9044
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9045
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9046
|
+
if (previousRecursionDepth >= 100) {
|
|
9047
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9048
|
+
}
|
|
9049
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9050
|
+
try {
|
|
9051
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9052
|
+
const message = createBaseAILabelDimension();
|
|
9053
|
+
while (reader.pos < end) {
|
|
9054
|
+
const tag = reader.uint32();
|
|
9055
|
+
switch (tag >>> 3) {
|
|
9056
|
+
case 1: {
|
|
9057
|
+
if (tag !== 10) {
|
|
9058
|
+
break;
|
|
9059
|
+
}
|
|
9060
|
+
|
|
9061
|
+
message.key = reader.string();
|
|
9062
|
+
continue;
|
|
9063
|
+
}
|
|
9064
|
+
case 2: {
|
|
9065
|
+
if (tag !== 18) {
|
|
9066
|
+
break;
|
|
9067
|
+
}
|
|
9068
|
+
|
|
9069
|
+
message.name = reader.string();
|
|
9070
|
+
continue;
|
|
9071
|
+
}
|
|
9072
|
+
case 3: {
|
|
9073
|
+
if (tag !== 26) {
|
|
9074
|
+
break;
|
|
9075
|
+
}
|
|
9076
|
+
|
|
9077
|
+
message.values.push(AILabelValue.decode(reader, reader.uint32()));
|
|
9078
|
+
continue;
|
|
9079
|
+
}
|
|
9080
|
+
}
|
|
9081
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9082
|
+
break;
|
|
9083
|
+
}
|
|
9084
|
+
reader.skip(tag & 7);
|
|
9085
|
+
}
|
|
9086
|
+
return message;
|
|
9087
|
+
} finally {
|
|
9088
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9089
|
+
}
|
|
9090
|
+
},
|
|
9091
|
+
|
|
9092
|
+
fromJSON(object: any): AILabelDimension {
|
|
9093
|
+
return {
|
|
9094
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
9095
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
9096
|
+
values: globalThis.Array.isArray(object?.values) ? object.values.map((e: any) => AILabelValue.fromJSON(e)) : [],
|
|
9097
|
+
};
|
|
9098
|
+
},
|
|
9099
|
+
|
|
9100
|
+
toJSON(message: AILabelDimension): unknown {
|
|
9101
|
+
const obj: any = {};
|
|
9102
|
+
if (message.key !== "") {
|
|
9103
|
+
obj.key = message.key;
|
|
9104
|
+
}
|
|
9105
|
+
if (message.name !== "") {
|
|
9106
|
+
obj.name = message.name;
|
|
9107
|
+
}
|
|
9108
|
+
if (message.values?.length) {
|
|
9109
|
+
obj.values = message.values.map((e) => AILabelValue.toJSON(e));
|
|
9110
|
+
}
|
|
9111
|
+
return obj;
|
|
9112
|
+
},
|
|
9113
|
+
|
|
9114
|
+
create<I extends Exact<DeepPartial<AILabelDimension>, I>>(base?: I): AILabelDimension {
|
|
9115
|
+
return AILabelDimension.fromPartial(base ?? ({} as any));
|
|
9116
|
+
},
|
|
9117
|
+
fromPartial<I extends Exact<DeepPartial<AILabelDimension>, I>>(object: I): AILabelDimension {
|
|
9118
|
+
const message = createBaseAILabelDimension();
|
|
9119
|
+
message.key = object.key ?? "";
|
|
9120
|
+
message.name = object.name ?? "";
|
|
9121
|
+
message.values = object.values?.map((e) => AILabelValue.fromPartial(e)) || [];
|
|
9122
|
+
return message;
|
|
9123
|
+
},
|
|
9124
|
+
};
|
|
9125
|
+
|
|
9126
|
+
function createBaseAILabelValue(): AILabelValue {
|
|
9127
|
+
return { key: "", name: "", tooltip: "", rating: 0 };
|
|
9128
|
+
}
|
|
9129
|
+
|
|
9130
|
+
export const AILabelValue: MessageFns<AILabelValue> = {
|
|
9131
|
+
encode(message: AILabelValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
9132
|
+
if (message.key !== "") {
|
|
9133
|
+
writer.uint32(10).string(message.key);
|
|
9134
|
+
}
|
|
9135
|
+
if (message.name !== "") {
|
|
9136
|
+
writer.uint32(18).string(message.name);
|
|
9137
|
+
}
|
|
9138
|
+
if (message.tooltip !== "") {
|
|
9139
|
+
writer.uint32(26).string(message.tooltip);
|
|
9140
|
+
}
|
|
9141
|
+
if (message.rating !== 0) {
|
|
9142
|
+
writer.uint32(32).int32(message.rating);
|
|
9143
|
+
}
|
|
9144
|
+
return writer;
|
|
9145
|
+
},
|
|
9146
|
+
|
|
9147
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelValue {
|
|
9148
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9149
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
9150
|
+
if (previousRecursionDepth >= 100) {
|
|
9151
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
9152
|
+
}
|
|
9153
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
9154
|
+
try {
|
|
9155
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9156
|
+
const message = createBaseAILabelValue();
|
|
9157
|
+
while (reader.pos < end) {
|
|
9158
|
+
const tag = reader.uint32();
|
|
9159
|
+
switch (tag >>> 3) {
|
|
9160
|
+
case 1: {
|
|
9161
|
+
if (tag !== 10) {
|
|
9162
|
+
break;
|
|
9163
|
+
}
|
|
9164
|
+
|
|
9165
|
+
message.key = reader.string();
|
|
9166
|
+
continue;
|
|
9167
|
+
}
|
|
9168
|
+
case 2: {
|
|
9169
|
+
if (tag !== 18) {
|
|
9170
|
+
break;
|
|
9171
|
+
}
|
|
9172
|
+
|
|
9173
|
+
message.name = reader.string();
|
|
9174
|
+
continue;
|
|
9175
|
+
}
|
|
9176
|
+
case 3: {
|
|
9177
|
+
if (tag !== 26) {
|
|
9178
|
+
break;
|
|
9179
|
+
}
|
|
9180
|
+
|
|
9181
|
+
message.tooltip = reader.string();
|
|
9182
|
+
continue;
|
|
9183
|
+
}
|
|
9184
|
+
case 4: {
|
|
9185
|
+
if (tag !== 32) {
|
|
9186
|
+
break;
|
|
9187
|
+
}
|
|
9188
|
+
|
|
9189
|
+
message.rating = reader.int32() as any;
|
|
9190
|
+
continue;
|
|
9191
|
+
}
|
|
9192
|
+
}
|
|
9193
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9194
|
+
break;
|
|
9195
|
+
}
|
|
9196
|
+
reader.skip(tag & 7);
|
|
9197
|
+
}
|
|
9198
|
+
return message;
|
|
9199
|
+
} finally {
|
|
9200
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
9201
|
+
}
|
|
9202
|
+
},
|
|
9203
|
+
|
|
9204
|
+
fromJSON(object: any): AILabelValue {
|
|
9205
|
+
return {
|
|
9206
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
9207
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
9208
|
+
tooltip: isSet(object.tooltip) ? globalThis.String(object.tooltip) : "",
|
|
9209
|
+
rating: isSet(object.rating) ? aILabelRatingFromJSON(object.rating) : 0,
|
|
9210
|
+
};
|
|
9211
|
+
},
|
|
9212
|
+
|
|
9213
|
+
toJSON(message: AILabelValue): unknown {
|
|
9214
|
+
const obj: any = {};
|
|
9215
|
+
if (message.key !== "") {
|
|
9216
|
+
obj.key = message.key;
|
|
9217
|
+
}
|
|
9218
|
+
if (message.name !== "") {
|
|
9219
|
+
obj.name = message.name;
|
|
9220
|
+
}
|
|
9221
|
+
if (message.tooltip !== "") {
|
|
9222
|
+
obj.tooltip = message.tooltip;
|
|
9223
|
+
}
|
|
9224
|
+
if (message.rating !== 0) {
|
|
9225
|
+
obj.rating = aILabelRatingToJSON(message.rating);
|
|
9226
|
+
}
|
|
9227
|
+
return obj;
|
|
9228
|
+
},
|
|
9229
|
+
|
|
9230
|
+
create<I extends Exact<DeepPartial<AILabelValue>, I>>(base?: I): AILabelValue {
|
|
9231
|
+
return AILabelValue.fromPartial(base ?? ({} as any));
|
|
9232
|
+
},
|
|
9233
|
+
fromPartial<I extends Exact<DeepPartial<AILabelValue>, I>>(object: I): AILabelValue {
|
|
9234
|
+
const message = createBaseAILabelValue();
|
|
9235
|
+
message.key = object.key ?? "";
|
|
9236
|
+
message.name = object.name ?? "";
|
|
9237
|
+
message.tooltip = object.tooltip ?? "";
|
|
9238
|
+
message.rating = object.rating ?? 0;
|
|
9139
9239
|
return message;
|
|
9140
9240
|
},
|
|
9141
9241
|
};
|
|
@@ -22730,6 +22830,526 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
|
|
|
22730
22830
|
},
|
|
22731
22831
|
};
|
|
22732
22832
|
|
|
22833
|
+
function createBaseListSessionInsightsRequest(): ListSessionInsightsRequest {
|
|
22834
|
+
return { organizationId: "", projectId: "", filter: undefined, sort: 0, pageSize: 0, pageToken: "" };
|
|
22835
|
+
}
|
|
22836
|
+
|
|
22837
|
+
export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest> = {
|
|
22838
|
+
encode(message: ListSessionInsightsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
22839
|
+
if (message.organizationId !== "") {
|
|
22840
|
+
writer.uint32(10).string(message.organizationId);
|
|
22841
|
+
}
|
|
22842
|
+
if (message.projectId !== "") {
|
|
22843
|
+
writer.uint32(18).string(message.projectId);
|
|
22844
|
+
}
|
|
22845
|
+
if (message.filter !== undefined) {
|
|
22846
|
+
SessionInsightFilter.encode(message.filter, writer.uint32(26).fork()).join();
|
|
22847
|
+
}
|
|
22848
|
+
if (message.sort !== 0) {
|
|
22849
|
+
writer.uint32(32).int32(message.sort);
|
|
22850
|
+
}
|
|
22851
|
+
if (message.pageSize !== 0) {
|
|
22852
|
+
writer.uint32(40).int32(message.pageSize);
|
|
22853
|
+
}
|
|
22854
|
+
if (message.pageToken !== "") {
|
|
22855
|
+
writer.uint32(50).string(message.pageToken);
|
|
22856
|
+
}
|
|
22857
|
+
return writer;
|
|
22858
|
+
},
|
|
22859
|
+
|
|
22860
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListSessionInsightsRequest {
|
|
22861
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
22862
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
22863
|
+
if (previousRecursionDepth >= 100) {
|
|
22864
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
22865
|
+
}
|
|
22866
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
22867
|
+
try {
|
|
22868
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
22869
|
+
const message = createBaseListSessionInsightsRequest();
|
|
22870
|
+
while (reader.pos < end) {
|
|
22871
|
+
const tag = reader.uint32();
|
|
22872
|
+
switch (tag >>> 3) {
|
|
22873
|
+
case 1: {
|
|
22874
|
+
if (tag !== 10) {
|
|
22875
|
+
break;
|
|
22876
|
+
}
|
|
22877
|
+
|
|
22878
|
+
message.organizationId = reader.string();
|
|
22879
|
+
continue;
|
|
22880
|
+
}
|
|
22881
|
+
case 2: {
|
|
22882
|
+
if (tag !== 18) {
|
|
22883
|
+
break;
|
|
22884
|
+
}
|
|
22885
|
+
|
|
22886
|
+
message.projectId = reader.string();
|
|
22887
|
+
continue;
|
|
22888
|
+
}
|
|
22889
|
+
case 3: {
|
|
22890
|
+
if (tag !== 26) {
|
|
22891
|
+
break;
|
|
22892
|
+
}
|
|
22893
|
+
|
|
22894
|
+
message.filter = SessionInsightFilter.decode(reader, reader.uint32());
|
|
22895
|
+
continue;
|
|
22896
|
+
}
|
|
22897
|
+
case 4: {
|
|
22898
|
+
if (tag !== 32) {
|
|
22899
|
+
break;
|
|
22900
|
+
}
|
|
22901
|
+
|
|
22902
|
+
message.sort = reader.int32() as any;
|
|
22903
|
+
continue;
|
|
22904
|
+
}
|
|
22905
|
+
case 5: {
|
|
22906
|
+
if (tag !== 40) {
|
|
22907
|
+
break;
|
|
22908
|
+
}
|
|
22909
|
+
|
|
22910
|
+
message.pageSize = reader.int32();
|
|
22911
|
+
continue;
|
|
22912
|
+
}
|
|
22913
|
+
case 6: {
|
|
22914
|
+
if (tag !== 50) {
|
|
22915
|
+
break;
|
|
22916
|
+
}
|
|
22917
|
+
|
|
22918
|
+
message.pageToken = reader.string();
|
|
22919
|
+
continue;
|
|
22920
|
+
}
|
|
22921
|
+
}
|
|
22922
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
22923
|
+
break;
|
|
22924
|
+
}
|
|
22925
|
+
reader.skip(tag & 7);
|
|
22926
|
+
}
|
|
22927
|
+
return message;
|
|
22928
|
+
} finally {
|
|
22929
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
22930
|
+
}
|
|
22931
|
+
},
|
|
22932
|
+
|
|
22933
|
+
fromJSON(object: any): ListSessionInsightsRequest {
|
|
22934
|
+
return {
|
|
22935
|
+
organizationId: isSet(object.organizationId)
|
|
22936
|
+
? globalThis.String(object.organizationId)
|
|
22937
|
+
: isSet(object.organization_id)
|
|
22938
|
+
? globalThis.String(object.organization_id)
|
|
22939
|
+
: "",
|
|
22940
|
+
projectId: isSet(object.projectId)
|
|
22941
|
+
? globalThis.String(object.projectId)
|
|
22942
|
+
: isSet(object.project_id)
|
|
22943
|
+
? globalThis.String(object.project_id)
|
|
22944
|
+
: "",
|
|
22945
|
+
filter: isSet(object.filter) ? SessionInsightFilter.fromJSON(object.filter) : undefined,
|
|
22946
|
+
sort: isSet(object.sort) ? sessionInsightSortFromJSON(object.sort) : 0,
|
|
22947
|
+
pageSize: isSet(object.pageSize)
|
|
22948
|
+
? globalThis.Number(object.pageSize)
|
|
22949
|
+
: isSet(object.page_size)
|
|
22950
|
+
? globalThis.Number(object.page_size)
|
|
22951
|
+
: 0,
|
|
22952
|
+
pageToken: isSet(object.pageToken)
|
|
22953
|
+
? globalThis.String(object.pageToken)
|
|
22954
|
+
: isSet(object.page_token)
|
|
22955
|
+
? globalThis.String(object.page_token)
|
|
22956
|
+
: "",
|
|
22957
|
+
};
|
|
22958
|
+
},
|
|
22959
|
+
|
|
22960
|
+
toJSON(message: ListSessionInsightsRequest): unknown {
|
|
22961
|
+
const obj: any = {};
|
|
22962
|
+
if (message.organizationId !== "") {
|
|
22963
|
+
obj.organizationId = message.organizationId;
|
|
22964
|
+
}
|
|
22965
|
+
if (message.projectId !== "") {
|
|
22966
|
+
obj.projectId = message.projectId;
|
|
22967
|
+
}
|
|
22968
|
+
if (message.filter !== undefined) {
|
|
22969
|
+
obj.filter = SessionInsightFilter.toJSON(message.filter);
|
|
22970
|
+
}
|
|
22971
|
+
if (message.sort !== 0) {
|
|
22972
|
+
obj.sort = sessionInsightSortToJSON(message.sort);
|
|
22973
|
+
}
|
|
22974
|
+
if (message.pageSize !== 0) {
|
|
22975
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
22976
|
+
}
|
|
22977
|
+
if (message.pageToken !== "") {
|
|
22978
|
+
obj.pageToken = message.pageToken;
|
|
22979
|
+
}
|
|
22980
|
+
return obj;
|
|
22981
|
+
},
|
|
22982
|
+
|
|
22983
|
+
create<I extends Exact<DeepPartial<ListSessionInsightsRequest>, I>>(base?: I): ListSessionInsightsRequest {
|
|
22984
|
+
return ListSessionInsightsRequest.fromPartial(base ?? ({} as any));
|
|
22985
|
+
},
|
|
22986
|
+
fromPartial<I extends Exact<DeepPartial<ListSessionInsightsRequest>, I>>(object: I): ListSessionInsightsRequest {
|
|
22987
|
+
const message = createBaseListSessionInsightsRequest();
|
|
22988
|
+
message.organizationId = object.organizationId ?? "";
|
|
22989
|
+
message.projectId = object.projectId ?? "";
|
|
22990
|
+
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
22991
|
+
? SessionInsightFilter.fromPartial(object.filter)
|
|
22992
|
+
: undefined;
|
|
22993
|
+
message.sort = object.sort ?? 0;
|
|
22994
|
+
message.pageSize = object.pageSize ?? 0;
|
|
22995
|
+
message.pageToken = object.pageToken ?? "";
|
|
22996
|
+
return message;
|
|
22997
|
+
},
|
|
22998
|
+
};
|
|
22999
|
+
|
|
23000
|
+
function createBaseSessionInsightFilter(): SessionInsightFilter {
|
|
23001
|
+
return { userIds: [], sourceSystems: [], topicKeys: [] };
|
|
23002
|
+
}
|
|
23003
|
+
|
|
23004
|
+
export const SessionInsightFilter: MessageFns<SessionInsightFilter> = {
|
|
23005
|
+
encode(message: SessionInsightFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23006
|
+
for (const v of message.userIds) {
|
|
23007
|
+
writer.uint32(10).string(v!);
|
|
23008
|
+
}
|
|
23009
|
+
for (const v of message.sourceSystems) {
|
|
23010
|
+
writer.uint32(18).string(v!);
|
|
23011
|
+
}
|
|
23012
|
+
for (const v of message.topicKeys) {
|
|
23013
|
+
writer.uint32(26).string(v!);
|
|
23014
|
+
}
|
|
23015
|
+
return writer;
|
|
23016
|
+
},
|
|
23017
|
+
|
|
23018
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SessionInsightFilter {
|
|
23019
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23020
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23021
|
+
if (previousRecursionDepth >= 100) {
|
|
23022
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23023
|
+
}
|
|
23024
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23025
|
+
try {
|
|
23026
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23027
|
+
const message = createBaseSessionInsightFilter();
|
|
23028
|
+
while (reader.pos < end) {
|
|
23029
|
+
const tag = reader.uint32();
|
|
23030
|
+
switch (tag >>> 3) {
|
|
23031
|
+
case 1: {
|
|
23032
|
+
if (tag !== 10) {
|
|
23033
|
+
break;
|
|
23034
|
+
}
|
|
23035
|
+
|
|
23036
|
+
message.userIds.push(reader.string());
|
|
23037
|
+
continue;
|
|
23038
|
+
}
|
|
23039
|
+
case 2: {
|
|
23040
|
+
if (tag !== 18) {
|
|
23041
|
+
break;
|
|
23042
|
+
}
|
|
23043
|
+
|
|
23044
|
+
message.sourceSystems.push(reader.string());
|
|
23045
|
+
continue;
|
|
23046
|
+
}
|
|
23047
|
+
case 3: {
|
|
23048
|
+
if (tag !== 26) {
|
|
23049
|
+
break;
|
|
23050
|
+
}
|
|
23051
|
+
|
|
23052
|
+
message.topicKeys.push(reader.string());
|
|
23053
|
+
continue;
|
|
23054
|
+
}
|
|
23055
|
+
}
|
|
23056
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23057
|
+
break;
|
|
23058
|
+
}
|
|
23059
|
+
reader.skip(tag & 7);
|
|
23060
|
+
}
|
|
23061
|
+
return message;
|
|
23062
|
+
} finally {
|
|
23063
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23064
|
+
}
|
|
23065
|
+
},
|
|
23066
|
+
|
|
23067
|
+
fromJSON(object: any): SessionInsightFilter {
|
|
23068
|
+
return {
|
|
23069
|
+
userIds: globalThis.Array.isArray(object?.userIds)
|
|
23070
|
+
? object.userIds.map((e: any) => globalThis.String(e))
|
|
23071
|
+
: globalThis.Array.isArray(object?.user_ids)
|
|
23072
|
+
? object.user_ids.map((e: any) => globalThis.String(e))
|
|
23073
|
+
: [],
|
|
23074
|
+
sourceSystems: globalThis.Array.isArray(object?.sourceSystems)
|
|
23075
|
+
? object.sourceSystems.map((e: any) => globalThis.String(e))
|
|
23076
|
+
: globalThis.Array.isArray(object?.source_systems)
|
|
23077
|
+
? object.source_systems.map((e: any) => globalThis.String(e))
|
|
23078
|
+
: [],
|
|
23079
|
+
topicKeys: globalThis.Array.isArray(object?.topicKeys)
|
|
23080
|
+
? object.topicKeys.map((e: any) => globalThis.String(e))
|
|
23081
|
+
: globalThis.Array.isArray(object?.topic_keys)
|
|
23082
|
+
? object.topic_keys.map((e: any) => globalThis.String(e))
|
|
23083
|
+
: [],
|
|
23084
|
+
};
|
|
23085
|
+
},
|
|
23086
|
+
|
|
23087
|
+
toJSON(message: SessionInsightFilter): unknown {
|
|
23088
|
+
const obj: any = {};
|
|
23089
|
+
if (message.userIds?.length) {
|
|
23090
|
+
obj.userIds = message.userIds;
|
|
23091
|
+
}
|
|
23092
|
+
if (message.sourceSystems?.length) {
|
|
23093
|
+
obj.sourceSystems = message.sourceSystems;
|
|
23094
|
+
}
|
|
23095
|
+
if (message.topicKeys?.length) {
|
|
23096
|
+
obj.topicKeys = message.topicKeys;
|
|
23097
|
+
}
|
|
23098
|
+
return obj;
|
|
23099
|
+
},
|
|
23100
|
+
|
|
23101
|
+
create<I extends Exact<DeepPartial<SessionInsightFilter>, I>>(base?: I): SessionInsightFilter {
|
|
23102
|
+
return SessionInsightFilter.fromPartial(base ?? ({} as any));
|
|
23103
|
+
},
|
|
23104
|
+
fromPartial<I extends Exact<DeepPartial<SessionInsightFilter>, I>>(object: I): SessionInsightFilter {
|
|
23105
|
+
const message = createBaseSessionInsightFilter();
|
|
23106
|
+
message.userIds = object.userIds?.map((e) => e) || [];
|
|
23107
|
+
message.sourceSystems = object.sourceSystems?.map((e) => e) || [];
|
|
23108
|
+
message.topicKeys = object.topicKeys?.map((e) => e) || [];
|
|
23109
|
+
return message;
|
|
23110
|
+
},
|
|
23111
|
+
};
|
|
23112
|
+
|
|
23113
|
+
function createBaseListSessionInsightsResponse(): ListSessionInsightsResponse {
|
|
23114
|
+
return { status: undefined, insights: [], nextPageToken: "" };
|
|
23115
|
+
}
|
|
23116
|
+
|
|
23117
|
+
export const ListSessionInsightsResponse: MessageFns<ListSessionInsightsResponse> = {
|
|
23118
|
+
encode(message: ListSessionInsightsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23119
|
+
if (message.status !== undefined) {
|
|
23120
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
23121
|
+
}
|
|
23122
|
+
for (const v of message.insights) {
|
|
23123
|
+
SessionInsightEntry.encode(v!, writer.uint32(18).fork()).join();
|
|
23124
|
+
}
|
|
23125
|
+
if (message.nextPageToken !== "") {
|
|
23126
|
+
writer.uint32(26).string(message.nextPageToken);
|
|
23127
|
+
}
|
|
23128
|
+
return writer;
|
|
23129
|
+
},
|
|
23130
|
+
|
|
23131
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListSessionInsightsResponse {
|
|
23132
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23133
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23134
|
+
if (previousRecursionDepth >= 100) {
|
|
23135
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23136
|
+
}
|
|
23137
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23138
|
+
try {
|
|
23139
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23140
|
+
const message = createBaseListSessionInsightsResponse();
|
|
23141
|
+
while (reader.pos < end) {
|
|
23142
|
+
const tag = reader.uint32();
|
|
23143
|
+
switch (tag >>> 3) {
|
|
23144
|
+
case 1: {
|
|
23145
|
+
if (tag !== 10) {
|
|
23146
|
+
break;
|
|
23147
|
+
}
|
|
23148
|
+
|
|
23149
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
23150
|
+
continue;
|
|
23151
|
+
}
|
|
23152
|
+
case 2: {
|
|
23153
|
+
if (tag !== 18) {
|
|
23154
|
+
break;
|
|
23155
|
+
}
|
|
23156
|
+
|
|
23157
|
+
message.insights.push(SessionInsightEntry.decode(reader, reader.uint32()));
|
|
23158
|
+
continue;
|
|
23159
|
+
}
|
|
23160
|
+
case 3: {
|
|
23161
|
+
if (tag !== 26) {
|
|
23162
|
+
break;
|
|
23163
|
+
}
|
|
23164
|
+
|
|
23165
|
+
message.nextPageToken = reader.string();
|
|
23166
|
+
continue;
|
|
23167
|
+
}
|
|
23168
|
+
}
|
|
23169
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23170
|
+
break;
|
|
23171
|
+
}
|
|
23172
|
+
reader.skip(tag & 7);
|
|
23173
|
+
}
|
|
23174
|
+
return message;
|
|
23175
|
+
} finally {
|
|
23176
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23177
|
+
}
|
|
23178
|
+
},
|
|
23179
|
+
|
|
23180
|
+
fromJSON(object: any): ListSessionInsightsResponse {
|
|
23181
|
+
return {
|
|
23182
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
23183
|
+
insights: globalThis.Array.isArray(object?.insights)
|
|
23184
|
+
? object.insights.map((e: any) => SessionInsightEntry.fromJSON(e))
|
|
23185
|
+
: [],
|
|
23186
|
+
nextPageToken: isSet(object.nextPageToken)
|
|
23187
|
+
? globalThis.String(object.nextPageToken)
|
|
23188
|
+
: isSet(object.next_page_token)
|
|
23189
|
+
? globalThis.String(object.next_page_token)
|
|
23190
|
+
: "",
|
|
23191
|
+
};
|
|
23192
|
+
},
|
|
23193
|
+
|
|
23194
|
+
toJSON(message: ListSessionInsightsResponse): unknown {
|
|
23195
|
+
const obj: any = {};
|
|
23196
|
+
if (message.status !== undefined) {
|
|
23197
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
23198
|
+
}
|
|
23199
|
+
if (message.insights?.length) {
|
|
23200
|
+
obj.insights = message.insights.map((e) => SessionInsightEntry.toJSON(e));
|
|
23201
|
+
}
|
|
23202
|
+
if (message.nextPageToken !== "") {
|
|
23203
|
+
obj.nextPageToken = message.nextPageToken;
|
|
23204
|
+
}
|
|
23205
|
+
return obj;
|
|
23206
|
+
},
|
|
23207
|
+
|
|
23208
|
+
create<I extends Exact<DeepPartial<ListSessionInsightsResponse>, I>>(base?: I): ListSessionInsightsResponse {
|
|
23209
|
+
return ListSessionInsightsResponse.fromPartial(base ?? ({} as any));
|
|
23210
|
+
},
|
|
23211
|
+
fromPartial<I extends Exact<DeepPartial<ListSessionInsightsResponse>, I>>(object: I): ListSessionInsightsResponse {
|
|
23212
|
+
const message = createBaseListSessionInsightsResponse();
|
|
23213
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
23214
|
+
? ResponseStatus.fromPartial(object.status)
|
|
23215
|
+
: undefined;
|
|
23216
|
+
message.insights = object.insights?.map((e) => SessionInsightEntry.fromPartial(e)) || [];
|
|
23217
|
+
message.nextPageToken = object.nextPageToken ?? "";
|
|
23218
|
+
return message;
|
|
23219
|
+
},
|
|
23220
|
+
};
|
|
23221
|
+
|
|
23222
|
+
function createBaseSessionInsightEntry(): SessionInsightEntry {
|
|
23223
|
+
return { sourceSystem: "", sessionId: "", analyzedAt: undefined, insight: undefined };
|
|
23224
|
+
}
|
|
23225
|
+
|
|
23226
|
+
export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
|
|
23227
|
+
encode(message: SessionInsightEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23228
|
+
if (message.sourceSystem !== "") {
|
|
23229
|
+
writer.uint32(10).string(message.sourceSystem);
|
|
23230
|
+
}
|
|
23231
|
+
if (message.sessionId !== "") {
|
|
23232
|
+
writer.uint32(18).string(message.sessionId);
|
|
23233
|
+
}
|
|
23234
|
+
if (message.analyzedAt !== undefined) {
|
|
23235
|
+
Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(26).fork()).join();
|
|
23236
|
+
}
|
|
23237
|
+
if (message.insight !== undefined) {
|
|
23238
|
+
AISessionInsight.encode(message.insight, writer.uint32(34).fork()).join();
|
|
23239
|
+
}
|
|
23240
|
+
return writer;
|
|
23241
|
+
},
|
|
23242
|
+
|
|
23243
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SessionInsightEntry {
|
|
23244
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23245
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23246
|
+
if (previousRecursionDepth >= 100) {
|
|
23247
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23248
|
+
}
|
|
23249
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23250
|
+
try {
|
|
23251
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23252
|
+
const message = createBaseSessionInsightEntry();
|
|
23253
|
+
while (reader.pos < end) {
|
|
23254
|
+
const tag = reader.uint32();
|
|
23255
|
+
switch (tag >>> 3) {
|
|
23256
|
+
case 1: {
|
|
23257
|
+
if (tag !== 10) {
|
|
23258
|
+
break;
|
|
23259
|
+
}
|
|
23260
|
+
|
|
23261
|
+
message.sourceSystem = reader.string();
|
|
23262
|
+
continue;
|
|
23263
|
+
}
|
|
23264
|
+
case 2: {
|
|
23265
|
+
if (tag !== 18) {
|
|
23266
|
+
break;
|
|
23267
|
+
}
|
|
23268
|
+
|
|
23269
|
+
message.sessionId = reader.string();
|
|
23270
|
+
continue;
|
|
23271
|
+
}
|
|
23272
|
+
case 3: {
|
|
23273
|
+
if (tag !== 26) {
|
|
23274
|
+
break;
|
|
23275
|
+
}
|
|
23276
|
+
|
|
23277
|
+
message.analyzedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
23278
|
+
continue;
|
|
23279
|
+
}
|
|
23280
|
+
case 4: {
|
|
23281
|
+
if (tag !== 34) {
|
|
23282
|
+
break;
|
|
23283
|
+
}
|
|
23284
|
+
|
|
23285
|
+
message.insight = AISessionInsight.decode(reader, reader.uint32());
|
|
23286
|
+
continue;
|
|
23287
|
+
}
|
|
23288
|
+
}
|
|
23289
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23290
|
+
break;
|
|
23291
|
+
}
|
|
23292
|
+
reader.skip(tag & 7);
|
|
23293
|
+
}
|
|
23294
|
+
return message;
|
|
23295
|
+
} finally {
|
|
23296
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23297
|
+
}
|
|
23298
|
+
},
|
|
23299
|
+
|
|
23300
|
+
fromJSON(object: any): SessionInsightEntry {
|
|
23301
|
+
return {
|
|
23302
|
+
sourceSystem: isSet(object.sourceSystem)
|
|
23303
|
+
? globalThis.String(object.sourceSystem)
|
|
23304
|
+
: isSet(object.source_system)
|
|
23305
|
+
? globalThis.String(object.source_system)
|
|
23306
|
+
: "",
|
|
23307
|
+
sessionId: isSet(object.sessionId)
|
|
23308
|
+
? globalThis.String(object.sessionId)
|
|
23309
|
+
: isSet(object.session_id)
|
|
23310
|
+
? globalThis.String(object.session_id)
|
|
23311
|
+
: "",
|
|
23312
|
+
analyzedAt: isSet(object.analyzedAt)
|
|
23313
|
+
? fromJsonTimestamp(object.analyzedAt)
|
|
23314
|
+
: isSet(object.analyzed_at)
|
|
23315
|
+
? fromJsonTimestamp(object.analyzed_at)
|
|
23316
|
+
: undefined,
|
|
23317
|
+
insight: isSet(object.insight) ? AISessionInsight.fromJSON(object.insight) : undefined,
|
|
23318
|
+
};
|
|
23319
|
+
},
|
|
23320
|
+
|
|
23321
|
+
toJSON(message: SessionInsightEntry): unknown {
|
|
23322
|
+
const obj: any = {};
|
|
23323
|
+
if (message.sourceSystem !== "") {
|
|
23324
|
+
obj.sourceSystem = message.sourceSystem;
|
|
23325
|
+
}
|
|
23326
|
+
if (message.sessionId !== "") {
|
|
23327
|
+
obj.sessionId = message.sessionId;
|
|
23328
|
+
}
|
|
23329
|
+
if (message.analyzedAt !== undefined) {
|
|
23330
|
+
obj.analyzedAt = message.analyzedAt.toISOString();
|
|
23331
|
+
}
|
|
23332
|
+
if (message.insight !== undefined) {
|
|
23333
|
+
obj.insight = AISessionInsight.toJSON(message.insight);
|
|
23334
|
+
}
|
|
23335
|
+
return obj;
|
|
23336
|
+
},
|
|
23337
|
+
|
|
23338
|
+
create<I extends Exact<DeepPartial<SessionInsightEntry>, I>>(base?: I): SessionInsightEntry {
|
|
23339
|
+
return SessionInsightEntry.fromPartial(base ?? ({} as any));
|
|
23340
|
+
},
|
|
23341
|
+
fromPartial<I extends Exact<DeepPartial<SessionInsightEntry>, I>>(object: I): SessionInsightEntry {
|
|
23342
|
+
const message = createBaseSessionInsightEntry();
|
|
23343
|
+
message.sourceSystem = object.sourceSystem ?? "";
|
|
23344
|
+
message.sessionId = object.sessionId ?? "";
|
|
23345
|
+
message.analyzedAt = object.analyzedAt ?? undefined;
|
|
23346
|
+
message.insight = (object.insight !== undefined && object.insight !== null)
|
|
23347
|
+
? AISessionInsight.fromPartial(object.insight)
|
|
23348
|
+
: undefined;
|
|
23349
|
+
return message;
|
|
23350
|
+
},
|
|
23351
|
+
};
|
|
23352
|
+
|
|
22733
23353
|
function createBaseGetSessionAnalysisResponse(): GetSessionAnalysisResponse {
|
|
22734
23354
|
return { status: undefined, score: undefined, insights: undefined, sessionVersion: undefined };
|
|
22735
23355
|
}
|
|
@@ -22858,7 +23478,7 @@ export const GetSessionAnalysisResponse: MessageFns<GetSessionAnalysisResponse>
|
|
|
22858
23478
|
};
|
|
22859
23479
|
|
|
22860
23480
|
function createBaseAISessionInsights(): AISessionInsights {
|
|
22861
|
-
return { insights: [], model: "", version: "", inputSessionVersion: 0, analyzedAt: undefined };
|
|
23481
|
+
return { insights: [], model: "", version: "", inputSessionVersion: 0, analyzedAt: undefined, topicsVersion: "" };
|
|
22862
23482
|
}
|
|
22863
23483
|
|
|
22864
23484
|
export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
@@ -22878,6 +23498,9 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22878
23498
|
if (message.analyzedAt !== undefined) {
|
|
22879
23499
|
Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(42).fork()).join();
|
|
22880
23500
|
}
|
|
23501
|
+
if (message.topicsVersion !== "") {
|
|
23502
|
+
writer.uint32(50).string(message.topicsVersion);
|
|
23503
|
+
}
|
|
22881
23504
|
return writer;
|
|
22882
23505
|
},
|
|
22883
23506
|
|
|
@@ -22934,6 +23557,14 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22934
23557
|
message.analyzedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
22935
23558
|
continue;
|
|
22936
23559
|
}
|
|
23560
|
+
case 6: {
|
|
23561
|
+
if (tag !== 50) {
|
|
23562
|
+
break;
|
|
23563
|
+
}
|
|
23564
|
+
|
|
23565
|
+
message.topicsVersion = reader.string();
|
|
23566
|
+
continue;
|
|
23567
|
+
}
|
|
22937
23568
|
}
|
|
22938
23569
|
if ((tag & 7) === 4 || tag === 0) {
|
|
22939
23570
|
break;
|
|
@@ -22963,6 +23594,11 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22963
23594
|
: isSet(object.analyzed_at)
|
|
22964
23595
|
? fromJsonTimestamp(object.analyzed_at)
|
|
22965
23596
|
: undefined,
|
|
23597
|
+
topicsVersion: isSet(object.topicsVersion)
|
|
23598
|
+
? globalThis.String(object.topicsVersion)
|
|
23599
|
+
: isSet(object.topics_version)
|
|
23600
|
+
? globalThis.String(object.topics_version)
|
|
23601
|
+
: "",
|
|
22966
23602
|
};
|
|
22967
23603
|
},
|
|
22968
23604
|
|
|
@@ -22983,6 +23619,9 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22983
23619
|
if (message.analyzedAt !== undefined) {
|
|
22984
23620
|
obj.analyzedAt = message.analyzedAt.toISOString();
|
|
22985
23621
|
}
|
|
23622
|
+
if (message.topicsVersion !== "") {
|
|
23623
|
+
obj.topicsVersion = message.topicsVersion;
|
|
23624
|
+
}
|
|
22986
23625
|
return obj;
|
|
22987
23626
|
},
|
|
22988
23627
|
|
|
@@ -22996,44 +23635,134 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
|
|
|
22996
23635
|
message.version = object.version ?? "";
|
|
22997
23636
|
message.inputSessionVersion = object.inputSessionVersion ?? 0;
|
|
22998
23637
|
message.analyzedAt = object.analyzedAt ?? undefined;
|
|
23638
|
+
message.topicsVersion = object.topicsVersion ?? "";
|
|
23639
|
+
return message;
|
|
23640
|
+
},
|
|
23641
|
+
};
|
|
23642
|
+
|
|
23643
|
+
function createBaseAISessionInsightTopic(): AISessionInsightTopic {
|
|
23644
|
+
return { key: "", name: "" };
|
|
23645
|
+
}
|
|
23646
|
+
|
|
23647
|
+
export const AISessionInsightTopic: MessageFns<AISessionInsightTopic> = {
|
|
23648
|
+
encode(message: AISessionInsightTopic, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23649
|
+
if (message.key !== "") {
|
|
23650
|
+
writer.uint32(10).string(message.key);
|
|
23651
|
+
}
|
|
23652
|
+
if (message.name !== "") {
|
|
23653
|
+
writer.uint32(18).string(message.name);
|
|
23654
|
+
}
|
|
23655
|
+
return writer;
|
|
23656
|
+
},
|
|
23657
|
+
|
|
23658
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AISessionInsightTopic {
|
|
23659
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23660
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
23661
|
+
if (previousRecursionDepth >= 100) {
|
|
23662
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
23663
|
+
}
|
|
23664
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
23665
|
+
try {
|
|
23666
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23667
|
+
const message = createBaseAISessionInsightTopic();
|
|
23668
|
+
while (reader.pos < end) {
|
|
23669
|
+
const tag = reader.uint32();
|
|
23670
|
+
switch (tag >>> 3) {
|
|
23671
|
+
case 1: {
|
|
23672
|
+
if (tag !== 10) {
|
|
23673
|
+
break;
|
|
23674
|
+
}
|
|
23675
|
+
|
|
23676
|
+
message.key = reader.string();
|
|
23677
|
+
continue;
|
|
23678
|
+
}
|
|
23679
|
+
case 2: {
|
|
23680
|
+
if (tag !== 18) {
|
|
23681
|
+
break;
|
|
23682
|
+
}
|
|
23683
|
+
|
|
23684
|
+
message.name = reader.string();
|
|
23685
|
+
continue;
|
|
23686
|
+
}
|
|
23687
|
+
}
|
|
23688
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
23689
|
+
break;
|
|
23690
|
+
}
|
|
23691
|
+
reader.skip(tag & 7);
|
|
23692
|
+
}
|
|
23693
|
+
return message;
|
|
23694
|
+
} finally {
|
|
23695
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
23696
|
+
}
|
|
23697
|
+
},
|
|
23698
|
+
|
|
23699
|
+
fromJSON(object: any): AISessionInsightTopic {
|
|
23700
|
+
return {
|
|
23701
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
23702
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
23703
|
+
};
|
|
23704
|
+
},
|
|
23705
|
+
|
|
23706
|
+
toJSON(message: AISessionInsightTopic): unknown {
|
|
23707
|
+
const obj: any = {};
|
|
23708
|
+
if (message.key !== "") {
|
|
23709
|
+
obj.key = message.key;
|
|
23710
|
+
}
|
|
23711
|
+
if (message.name !== "") {
|
|
23712
|
+
obj.name = message.name;
|
|
23713
|
+
}
|
|
23714
|
+
return obj;
|
|
23715
|
+
},
|
|
23716
|
+
|
|
23717
|
+
create<I extends Exact<DeepPartial<AISessionInsightTopic>, I>>(base?: I): AISessionInsightTopic {
|
|
23718
|
+
return AISessionInsightTopic.fromPartial(base ?? ({} as any));
|
|
23719
|
+
},
|
|
23720
|
+
fromPartial<I extends Exact<DeepPartial<AISessionInsightTopic>, I>>(object: I): AISessionInsightTopic {
|
|
23721
|
+
const message = createBaseAISessionInsightTopic();
|
|
23722
|
+
message.key = object.key ?? "";
|
|
23723
|
+
message.name = object.name ?? "";
|
|
22999
23724
|
return message;
|
|
23000
23725
|
},
|
|
23001
23726
|
};
|
|
23002
23727
|
|
|
23003
23728
|
function createBaseAISessionInsight(): AISessionInsight {
|
|
23004
23729
|
return {
|
|
23005
|
-
category: 0,
|
|
23006
|
-
actionType: 0,
|
|
23007
23730
|
evidenceRefs: [],
|
|
23008
|
-
|
|
23009
|
-
|
|
23010
|
-
|
|
23011
|
-
|
|
23731
|
+
title: "",
|
|
23732
|
+
finding: "",
|
|
23733
|
+
recommendation: "",
|
|
23734
|
+
actionType: 0,
|
|
23735
|
+
remediationPrompt: "",
|
|
23736
|
+
topic: undefined,
|
|
23737
|
+
skill: undefined,
|
|
23012
23738
|
};
|
|
23013
23739
|
}
|
|
23014
23740
|
|
|
23015
23741
|
export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
23016
23742
|
encode(message: AISessionInsight, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
23017
|
-
|
|
23018
|
-
writer.uint32(
|
|
23743
|
+
for (const v of message.evidenceRefs) {
|
|
23744
|
+
AISessionEventRef.encode(v!, writer.uint32(10).fork()).join();
|
|
23019
23745
|
}
|
|
23020
|
-
if (message.
|
|
23021
|
-
writer.uint32(
|
|
23746
|
+
if (message.title !== "") {
|
|
23747
|
+
writer.uint32(18).string(message.title);
|
|
23022
23748
|
}
|
|
23023
|
-
|
|
23024
|
-
|
|
23749
|
+
if (message.finding !== "") {
|
|
23750
|
+
writer.uint32(26).string(message.finding);
|
|
23025
23751
|
}
|
|
23026
|
-
if (message.
|
|
23027
|
-
writer.uint32(34).string(message.
|
|
23752
|
+
if (message.recommendation !== "") {
|
|
23753
|
+
writer.uint32(34).string(message.recommendation);
|
|
23028
23754
|
}
|
|
23029
|
-
if (message.
|
|
23030
|
-
writer.uint32(
|
|
23755
|
+
if (message.actionType !== 0) {
|
|
23756
|
+
writer.uint32(40).int32(message.actionType);
|
|
23031
23757
|
}
|
|
23032
|
-
if (message.
|
|
23033
|
-
writer.uint32(
|
|
23758
|
+
if (message.remediationPrompt !== "") {
|
|
23759
|
+
writer.uint32(50).string(message.remediationPrompt);
|
|
23034
23760
|
}
|
|
23035
|
-
if (message.
|
|
23036
|
-
|
|
23761
|
+
if (message.topic !== undefined) {
|
|
23762
|
+
AISessionInsightTopic.encode(message.topic, writer.uint32(58).fork()).join();
|
|
23763
|
+
}
|
|
23764
|
+
if (message.skill !== undefined) {
|
|
23765
|
+
AISkillSuggestion.encode(message.skill, writer.uint32(66).fork()).join();
|
|
23037
23766
|
}
|
|
23038
23767
|
return writer;
|
|
23039
23768
|
},
|
|
@@ -23052,19 +23781,19 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23052
23781
|
const tag = reader.uint32();
|
|
23053
23782
|
switch (tag >>> 3) {
|
|
23054
23783
|
case 1: {
|
|
23055
|
-
if (tag !==
|
|
23784
|
+
if (tag !== 10) {
|
|
23056
23785
|
break;
|
|
23057
23786
|
}
|
|
23058
23787
|
|
|
23059
|
-
message.
|
|
23788
|
+
message.evidenceRefs.push(AISessionEventRef.decode(reader, reader.uint32()));
|
|
23060
23789
|
continue;
|
|
23061
23790
|
}
|
|
23062
23791
|
case 2: {
|
|
23063
|
-
if (tag !==
|
|
23792
|
+
if (tag !== 18) {
|
|
23064
23793
|
break;
|
|
23065
23794
|
}
|
|
23066
23795
|
|
|
23067
|
-
message.
|
|
23796
|
+
message.title = reader.string();
|
|
23068
23797
|
continue;
|
|
23069
23798
|
}
|
|
23070
23799
|
case 3: {
|
|
@@ -23072,7 +23801,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23072
23801
|
break;
|
|
23073
23802
|
}
|
|
23074
23803
|
|
|
23075
|
-
message.
|
|
23804
|
+
message.finding = reader.string();
|
|
23076
23805
|
continue;
|
|
23077
23806
|
}
|
|
23078
23807
|
case 4: {
|
|
@@ -23080,23 +23809,23 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23080
23809
|
break;
|
|
23081
23810
|
}
|
|
23082
23811
|
|
|
23083
|
-
message.
|
|
23812
|
+
message.recommendation = reader.string();
|
|
23084
23813
|
continue;
|
|
23085
23814
|
}
|
|
23086
23815
|
case 5: {
|
|
23087
|
-
if (tag !==
|
|
23816
|
+
if (tag !== 40) {
|
|
23088
23817
|
break;
|
|
23089
23818
|
}
|
|
23090
23819
|
|
|
23091
|
-
message.
|
|
23820
|
+
message.actionType = reader.int32() as any;
|
|
23092
23821
|
continue;
|
|
23093
23822
|
}
|
|
23094
23823
|
case 6: {
|
|
23095
|
-
if (tag !==
|
|
23824
|
+
if (tag !== 50) {
|
|
23096
23825
|
break;
|
|
23097
23826
|
}
|
|
23098
23827
|
|
|
23099
|
-
message.
|
|
23828
|
+
message.remediationPrompt = reader.string();
|
|
23100
23829
|
continue;
|
|
23101
23830
|
}
|
|
23102
23831
|
case 7: {
|
|
@@ -23104,7 +23833,15 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23104
23833
|
break;
|
|
23105
23834
|
}
|
|
23106
23835
|
|
|
23107
|
-
message.
|
|
23836
|
+
message.topic = AISessionInsightTopic.decode(reader, reader.uint32());
|
|
23837
|
+
continue;
|
|
23838
|
+
}
|
|
23839
|
+
case 8: {
|
|
23840
|
+
if (tag !== 66) {
|
|
23841
|
+
break;
|
|
23842
|
+
}
|
|
23843
|
+
|
|
23844
|
+
message.skill = AISkillSuggestion.decode(reader, reader.uint32());
|
|
23108
23845
|
continue;
|
|
23109
23846
|
}
|
|
23110
23847
|
}
|
|
@@ -23121,50 +23858,54 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23121
23858
|
|
|
23122
23859
|
fromJSON(object: any): AISessionInsight {
|
|
23123
23860
|
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
23861
|
evidenceRefs: globalThis.Array.isArray(object?.evidenceRefs)
|
|
23131
23862
|
? object.evidenceRefs.map((e: any) => AISessionEventRef.fromJSON(e))
|
|
23132
23863
|
: globalThis.Array.isArray(object?.evidence_refs)
|
|
23133
23864
|
? object.evidence_refs.map((e: any) => AISessionEventRef.fromJSON(e))
|
|
23134
23865
|
: [],
|
|
23135
|
-
|
|
23136
|
-
|
|
23137
|
-
|
|
23138
|
-
|
|
23139
|
-
?
|
|
23140
|
-
: isSet(object.
|
|
23141
|
-
?
|
|
23142
|
-
:
|
|
23866
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
23867
|
+
finding: isSet(object.finding) ? globalThis.String(object.finding) : "",
|
|
23868
|
+
recommendation: isSet(object.recommendation) ? globalThis.String(object.recommendation) : "",
|
|
23869
|
+
actionType: isSet(object.actionType)
|
|
23870
|
+
? aISessionInsightActionTypeFromJSON(object.actionType)
|
|
23871
|
+
: isSet(object.action_type)
|
|
23872
|
+
? aISessionInsightActionTypeFromJSON(object.action_type)
|
|
23873
|
+
: 0,
|
|
23874
|
+
remediationPrompt: isSet(object.remediationPrompt)
|
|
23875
|
+
? globalThis.String(object.remediationPrompt)
|
|
23876
|
+
: isSet(object.remediation_prompt)
|
|
23877
|
+
? globalThis.String(object.remediation_prompt)
|
|
23878
|
+
: "",
|
|
23879
|
+
topic: isSet(object.topic) ? AISessionInsightTopic.fromJSON(object.topic) : undefined,
|
|
23880
|
+
skill: isSet(object.skill) ? AISkillSuggestion.fromJSON(object.skill) : undefined,
|
|
23143
23881
|
};
|
|
23144
23882
|
},
|
|
23145
23883
|
|
|
23146
23884
|
toJSON(message: AISessionInsight): unknown {
|
|
23147
23885
|
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
23886
|
if (message.evidenceRefs?.length) {
|
|
23155
23887
|
obj.evidenceRefs = message.evidenceRefs.map((e) => AISessionEventRef.toJSON(e));
|
|
23156
23888
|
}
|
|
23157
|
-
if (message.
|
|
23158
|
-
obj.
|
|
23889
|
+
if (message.title !== "") {
|
|
23890
|
+
obj.title = message.title;
|
|
23159
23891
|
}
|
|
23160
|
-
if (message.
|
|
23161
|
-
obj.
|
|
23892
|
+
if (message.finding !== "") {
|
|
23893
|
+
obj.finding = message.finding;
|
|
23162
23894
|
}
|
|
23163
|
-
if (message.
|
|
23164
|
-
obj.
|
|
23895
|
+
if (message.recommendation !== "") {
|
|
23896
|
+
obj.recommendation = message.recommendation;
|
|
23165
23897
|
}
|
|
23166
|
-
if (message.
|
|
23167
|
-
obj.
|
|
23898
|
+
if (message.actionType !== 0) {
|
|
23899
|
+
obj.actionType = aISessionInsightActionTypeToJSON(message.actionType);
|
|
23900
|
+
}
|
|
23901
|
+
if (message.remediationPrompt !== "") {
|
|
23902
|
+
obj.remediationPrompt = message.remediationPrompt;
|
|
23903
|
+
}
|
|
23904
|
+
if (message.topic !== undefined) {
|
|
23905
|
+
obj.topic = AISessionInsightTopic.toJSON(message.topic);
|
|
23906
|
+
}
|
|
23907
|
+
if (message.skill !== undefined) {
|
|
23908
|
+
obj.skill = AISkillSuggestion.toJSON(message.skill);
|
|
23168
23909
|
}
|
|
23169
23910
|
return obj;
|
|
23170
23911
|
},
|
|
@@ -23174,14 +23915,17 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
|
|
|
23174
23915
|
},
|
|
23175
23916
|
fromPartial<I extends Exact<DeepPartial<AISessionInsight>, I>>(object: I): AISessionInsight {
|
|
23176
23917
|
const message = createBaseAISessionInsight();
|
|
23177
|
-
message.category = object.category ?? 0;
|
|
23178
|
-
message.actionType = object.actionType ?? 0;
|
|
23179
23918
|
message.evidenceRefs = object.evidenceRefs?.map((e) => AISessionEventRef.fromPartial(e)) || [];
|
|
23180
|
-
message.
|
|
23181
|
-
message.
|
|
23182
|
-
message.
|
|
23183
|
-
message.
|
|
23184
|
-
|
|
23919
|
+
message.title = object.title ?? "";
|
|
23920
|
+
message.finding = object.finding ?? "";
|
|
23921
|
+
message.recommendation = object.recommendation ?? "";
|
|
23922
|
+
message.actionType = object.actionType ?? 0;
|
|
23923
|
+
message.remediationPrompt = object.remediationPrompt ?? "";
|
|
23924
|
+
message.topic = (object.topic !== undefined && object.topic !== null)
|
|
23925
|
+
? AISessionInsightTopic.fromPartial(object.topic)
|
|
23926
|
+
: undefined;
|
|
23927
|
+
message.skill = (object.skill !== undefined && object.skill !== null)
|
|
23928
|
+
? AISkillSuggestion.fromPartial(object.skill)
|
|
23185
23929
|
: undefined;
|
|
23186
23930
|
return message;
|
|
23187
23931
|
},
|
|
@@ -34222,6 +34966,11 @@ export interface AIGatewayService {
|
|
|
34222
34966
|
* its latest insights with their cause and action; each part absent until its job has run. Mirrors ai.api.v1.
|
|
34223
34967
|
*/
|
|
34224
34968
|
GetSessionAnalysis(request: GetSessionAnalysisRequest, metadata?: Metadata): Promise<GetSessionAnalysisResponse>;
|
|
34969
|
+
/**
|
|
34970
|
+
* A project's insights one at a time, newest analysis first: a person's most recent insights with filter.user_ids,
|
|
34971
|
+
* the team's without. Mirrors ai.api.v1.
|
|
34972
|
+
*/
|
|
34973
|
+
ListSessionInsights(request: ListSessionInsightsRequest, metadata?: Metadata): Promise<ListSessionInsightsResponse>;
|
|
34225
34974
|
/**
|
|
34226
34975
|
* A project's graded sessions, or one person's, per ISO week (UTC, by last activity): counts, the mean score, the
|
|
34227
34976
|
* mean grade value per rubric criterion. Directional. Mirrors ai.api.v1.
|
|
@@ -34235,6 +34984,12 @@ export interface AIGatewayService {
|
|
|
34235
34984
|
* time): counts only, the shares derived only when a week has labelled prompts. Mirrors ai.api.v1.
|
|
34236
34985
|
*/
|
|
34237
34986
|
GetPromptLabelTrend(request: GetPromptLabelTrendRequest, metadata?: Metadata): Promise<GetPromptLabelTrendResponse>;
|
|
34987
|
+
/**
|
|
34988
|
+
* The label sets the project's sessions and prompts are labelled with: every fixed dimension and its values in display
|
|
34989
|
+
* order, with each value's name, tooltip and rating. A stored key the catalogue no longer lists shows as
|
|
34990
|
+
* the key. Mirrors ai.api.v1.
|
|
34991
|
+
*/
|
|
34992
|
+
GetLabelCatalog(request: GetLabelCatalogRequest, metadata?: Metadata): Promise<GetLabelCatalogResponse>;
|
|
34238
34993
|
/**
|
|
34239
34994
|
* Per-seat entitlement usage board: every entitlement owner's latest observed funding facility and
|
|
34240
34995
|
* per-harness usage % windows. Stream-first (first frame = full snapshot), seat-scoped. Mirrors
|
|
@@ -34322,8 +35077,10 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34322
35077
|
this.SetReasoningTrendContribution = this.SetReasoningTrendContribution.bind(this);
|
|
34323
35078
|
this.GetSessionUsageTrend = this.GetSessionUsageTrend.bind(this);
|
|
34324
35079
|
this.GetSessionAnalysis = this.GetSessionAnalysis.bind(this);
|
|
35080
|
+
this.ListSessionInsights = this.ListSessionInsights.bind(this);
|
|
34325
35081
|
this.GetSessionScoreTrend = this.GetSessionScoreTrend.bind(this);
|
|
34326
35082
|
this.GetPromptLabelTrend = this.GetPromptLabelTrend.bind(this);
|
|
35083
|
+
this.GetLabelCatalog = this.GetLabelCatalog.bind(this);
|
|
34327
35084
|
this.StreamEntitlements = this.StreamEntitlements.bind(this);
|
|
34328
35085
|
this.ListRelayHeartbeats = this.ListRelayHeartbeats.bind(this);
|
|
34329
35086
|
this.ListIssueCosts = this.ListIssueCosts.bind(this);
|
|
@@ -34529,6 +35286,12 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34529
35286
|
return promise.then((data) => GetSessionAnalysisResponse.decode(new BinaryReader(data)));
|
|
34530
35287
|
}
|
|
34531
35288
|
|
|
35289
|
+
ListSessionInsights(request: ListSessionInsightsRequest, metadata?: Metadata): Promise<ListSessionInsightsResponse> {
|
|
35290
|
+
const data = ListSessionInsightsRequest.encode(request).finish();
|
|
35291
|
+
const promise = this.rpc.request(this.service, "ListSessionInsights", data, metadata);
|
|
35292
|
+
return promise.then((data) => ListSessionInsightsResponse.decode(new BinaryReader(data)));
|
|
35293
|
+
}
|
|
35294
|
+
|
|
34532
35295
|
GetSessionScoreTrend(
|
|
34533
35296
|
request: GetSessionScoreTrendRequest,
|
|
34534
35297
|
metadata?: Metadata,
|
|
@@ -34544,6 +35307,12 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34544
35307
|
return promise.then((data) => GetPromptLabelTrendResponse.decode(new BinaryReader(data)));
|
|
34545
35308
|
}
|
|
34546
35309
|
|
|
35310
|
+
GetLabelCatalog(request: GetLabelCatalogRequest, metadata?: Metadata): Promise<GetLabelCatalogResponse> {
|
|
35311
|
+
const data = GetLabelCatalogRequest.encode(request).finish();
|
|
35312
|
+
const promise = this.rpc.request(this.service, "GetLabelCatalog", data, metadata);
|
|
35313
|
+
return promise.then((data) => GetLabelCatalogResponse.decode(new BinaryReader(data)));
|
|
35314
|
+
}
|
|
35315
|
+
|
|
34547
35316
|
StreamEntitlements(request: StreamEntitlementsRequest, metadata?: Metadata): Observable<EntitlementsSnapshot> {
|
|
34548
35317
|
const data = StreamEntitlementsRequest.encode(request).finish();
|
|
34549
35318
|
const result = this.rpc.serverStreamingRequest(this.service, "StreamEntitlements", data, metadata);
|