@miradorlabs/web-grpc 4.26.0 → 4.28.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 +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +957 -1427
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +56 -21
- package/proto/gateway/web/v1/ai_gateway_pb.js +22469 -22240
- 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,52 @@ 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
|
+
|
|
29
75
|
/** SessionInsightSort orders a page of insights. */
|
|
30
76
|
export enum SessionInsightSort {
|
|
31
77
|
SESSION_INSIGHT_SORT_UNSPECIFIED = 0,
|
|
@@ -313,389 +359,6 @@ export function aISessionEventTypeToJSON(object: AISessionEventType): string {
|
|
|
313
359
|
}
|
|
314
360
|
}
|
|
315
361
|
|
|
316
|
-
/** AIPromptComplexity is how much a prompt asks for, as a model judged it (MIR-469); mirrors ai.api.v1. */
|
|
317
|
-
export enum AIPromptComplexity {
|
|
318
|
-
/** AI_PROMPT_COMPLEXITY_UNSPECIFIED - not labelled */
|
|
319
|
-
AI_PROMPT_COMPLEXITY_UNSPECIFIED = 0,
|
|
320
|
-
AI_PROMPT_COMPLEXITY_SIMPLE = 1,
|
|
321
|
-
AI_PROMPT_COMPLEXITY_MODERATE = 2,
|
|
322
|
-
AI_PROMPT_COMPLEXITY_COMPLEX = 3,
|
|
323
|
-
UNRECOGNIZED = -1,
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export function aIPromptComplexityFromJSON(object: any): AIPromptComplexity {
|
|
327
|
-
switch (object) {
|
|
328
|
-
case 0:
|
|
329
|
-
case "AI_PROMPT_COMPLEXITY_UNSPECIFIED":
|
|
330
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_UNSPECIFIED;
|
|
331
|
-
case 1:
|
|
332
|
-
case "AI_PROMPT_COMPLEXITY_SIMPLE":
|
|
333
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_SIMPLE;
|
|
334
|
-
case 2:
|
|
335
|
-
case "AI_PROMPT_COMPLEXITY_MODERATE":
|
|
336
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_MODERATE;
|
|
337
|
-
case 3:
|
|
338
|
-
case "AI_PROMPT_COMPLEXITY_COMPLEX":
|
|
339
|
-
return AIPromptComplexity.AI_PROMPT_COMPLEXITY_COMPLEX;
|
|
340
|
-
case -1:
|
|
341
|
-
case "UNRECOGNIZED":
|
|
342
|
-
default:
|
|
343
|
-
return AIPromptComplexity.UNRECOGNIZED;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export function aIPromptComplexityToJSON(object: AIPromptComplexity): string {
|
|
348
|
-
switch (object) {
|
|
349
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_UNSPECIFIED:
|
|
350
|
-
return "AI_PROMPT_COMPLEXITY_UNSPECIFIED";
|
|
351
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_SIMPLE:
|
|
352
|
-
return "AI_PROMPT_COMPLEXITY_SIMPLE";
|
|
353
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_MODERATE:
|
|
354
|
-
return "AI_PROMPT_COMPLEXITY_MODERATE";
|
|
355
|
-
case AIPromptComplexity.AI_PROMPT_COMPLEXITY_COMPLEX:
|
|
356
|
-
return "AI_PROMPT_COMPLEXITY_COMPLEX";
|
|
357
|
-
case AIPromptComplexity.UNRECOGNIZED:
|
|
358
|
-
default:
|
|
359
|
-
return "UNRECOGNIZED";
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/** AIPromptClarity is whether a prompt gave the agent enough to act on; mirrors ai.api.v1. */
|
|
364
|
-
export enum AIPromptClarity {
|
|
365
|
-
/** AI_PROMPT_CLARITY_UNSPECIFIED - not labelled */
|
|
366
|
-
AI_PROMPT_CLARITY_UNSPECIFIED = 0,
|
|
367
|
-
/** AI_PROMPT_CLARITY_UNCLEAR - no actionable goal, or key context missing */
|
|
368
|
-
AI_PROMPT_CLARITY_UNCLEAR = 1,
|
|
369
|
-
/** AI_PROMPT_CLARITY_PARTIAL - the goal is clear, but scope or done is vague */
|
|
370
|
-
AI_PROMPT_CLARITY_PARTIAL = 2,
|
|
371
|
-
/** AI_PROMPT_CLARITY_CLEAR - the agent knows what to do and what done looks like */
|
|
372
|
-
AI_PROMPT_CLARITY_CLEAR = 3,
|
|
373
|
-
UNRECOGNIZED = -1,
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
export function aIPromptClarityFromJSON(object: any): AIPromptClarity {
|
|
377
|
-
switch (object) {
|
|
378
|
-
case 0:
|
|
379
|
-
case "AI_PROMPT_CLARITY_UNSPECIFIED":
|
|
380
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_UNSPECIFIED;
|
|
381
|
-
case 1:
|
|
382
|
-
case "AI_PROMPT_CLARITY_UNCLEAR":
|
|
383
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_UNCLEAR;
|
|
384
|
-
case 2:
|
|
385
|
-
case "AI_PROMPT_CLARITY_PARTIAL":
|
|
386
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_PARTIAL;
|
|
387
|
-
case 3:
|
|
388
|
-
case "AI_PROMPT_CLARITY_CLEAR":
|
|
389
|
-
return AIPromptClarity.AI_PROMPT_CLARITY_CLEAR;
|
|
390
|
-
case -1:
|
|
391
|
-
case "UNRECOGNIZED":
|
|
392
|
-
default:
|
|
393
|
-
return AIPromptClarity.UNRECOGNIZED;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
export function aIPromptClarityToJSON(object: AIPromptClarity): string {
|
|
398
|
-
switch (object) {
|
|
399
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_UNSPECIFIED:
|
|
400
|
-
return "AI_PROMPT_CLARITY_UNSPECIFIED";
|
|
401
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_UNCLEAR:
|
|
402
|
-
return "AI_PROMPT_CLARITY_UNCLEAR";
|
|
403
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_PARTIAL:
|
|
404
|
-
return "AI_PROMPT_CLARITY_PARTIAL";
|
|
405
|
-
case AIPromptClarity.AI_PROMPT_CLARITY_CLEAR:
|
|
406
|
-
return "AI_PROMPT_CLARITY_CLEAR";
|
|
407
|
-
case AIPromptClarity.UNRECOGNIZED:
|
|
408
|
-
default:
|
|
409
|
-
return "UNRECOGNIZED";
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
/** AIPromptSteering is what a prompt does in its session. */
|
|
414
|
-
export enum AIPromptSteering {
|
|
415
|
-
/** AI_PROMPT_STEERING_UNSPECIFIED - not labelled */
|
|
416
|
-
AI_PROMPT_STEERING_UNSPECIFIED = 0,
|
|
417
|
-
AI_PROMPT_STEERING_NEW_TASK = 1,
|
|
418
|
-
AI_PROMPT_STEERING_FOLLOW_UP = 2,
|
|
419
|
-
AI_PROMPT_STEERING_CORRECTION = 3,
|
|
420
|
-
AI_PROMPT_STEERING_REDIRECT = 4,
|
|
421
|
-
AI_PROMPT_STEERING_APPROVAL = 5,
|
|
422
|
-
UNRECOGNIZED = -1,
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export function aIPromptSteeringFromJSON(object: any): AIPromptSteering {
|
|
426
|
-
switch (object) {
|
|
427
|
-
case 0:
|
|
428
|
-
case "AI_PROMPT_STEERING_UNSPECIFIED":
|
|
429
|
-
return AIPromptSteering.AI_PROMPT_STEERING_UNSPECIFIED;
|
|
430
|
-
case 1:
|
|
431
|
-
case "AI_PROMPT_STEERING_NEW_TASK":
|
|
432
|
-
return AIPromptSteering.AI_PROMPT_STEERING_NEW_TASK;
|
|
433
|
-
case 2:
|
|
434
|
-
case "AI_PROMPT_STEERING_FOLLOW_UP":
|
|
435
|
-
return AIPromptSteering.AI_PROMPT_STEERING_FOLLOW_UP;
|
|
436
|
-
case 3:
|
|
437
|
-
case "AI_PROMPT_STEERING_CORRECTION":
|
|
438
|
-
return AIPromptSteering.AI_PROMPT_STEERING_CORRECTION;
|
|
439
|
-
case 4:
|
|
440
|
-
case "AI_PROMPT_STEERING_REDIRECT":
|
|
441
|
-
return AIPromptSteering.AI_PROMPT_STEERING_REDIRECT;
|
|
442
|
-
case 5:
|
|
443
|
-
case "AI_PROMPT_STEERING_APPROVAL":
|
|
444
|
-
return AIPromptSteering.AI_PROMPT_STEERING_APPROVAL;
|
|
445
|
-
case -1:
|
|
446
|
-
case "UNRECOGNIZED":
|
|
447
|
-
default:
|
|
448
|
-
return AIPromptSteering.UNRECOGNIZED;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
export function aIPromptSteeringToJSON(object: AIPromptSteering): string {
|
|
453
|
-
switch (object) {
|
|
454
|
-
case AIPromptSteering.AI_PROMPT_STEERING_UNSPECIFIED:
|
|
455
|
-
return "AI_PROMPT_STEERING_UNSPECIFIED";
|
|
456
|
-
case AIPromptSteering.AI_PROMPT_STEERING_NEW_TASK:
|
|
457
|
-
return "AI_PROMPT_STEERING_NEW_TASK";
|
|
458
|
-
case AIPromptSteering.AI_PROMPT_STEERING_FOLLOW_UP:
|
|
459
|
-
return "AI_PROMPT_STEERING_FOLLOW_UP";
|
|
460
|
-
case AIPromptSteering.AI_PROMPT_STEERING_CORRECTION:
|
|
461
|
-
return "AI_PROMPT_STEERING_CORRECTION";
|
|
462
|
-
case AIPromptSteering.AI_PROMPT_STEERING_REDIRECT:
|
|
463
|
-
return "AI_PROMPT_STEERING_REDIRECT";
|
|
464
|
-
case AIPromptSteering.AI_PROMPT_STEERING_APPROVAL:
|
|
465
|
-
return "AI_PROMPT_STEERING_APPROVAL";
|
|
466
|
-
case AIPromptSteering.UNRECOGNIZED:
|
|
467
|
-
default:
|
|
468
|
-
return "UNRECOGNIZED";
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* AIPromptFrustration is how much frustration with the agent a prompt shows. The numbers rise with severity and a new
|
|
474
|
-
* level is only ever appended above the most severe one. NONE is a label, not "not labelled".
|
|
475
|
-
*/
|
|
476
|
-
export enum AIPromptFrustration {
|
|
477
|
-
/** AI_PROMPT_FRUSTRATION_UNSPECIFIED - not labelled */
|
|
478
|
-
AI_PROMPT_FRUSTRATION_UNSPECIFIED = 0,
|
|
479
|
-
AI_PROMPT_FRUSTRATION_NONE = 1,
|
|
480
|
-
AI_PROMPT_FRUSTRATION_MILD = 2,
|
|
481
|
-
AI_PROMPT_FRUSTRATION_STRONG = 3,
|
|
482
|
-
UNRECOGNIZED = -1,
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
export function aIPromptFrustrationFromJSON(object: any): AIPromptFrustration {
|
|
486
|
-
switch (object) {
|
|
487
|
-
case 0:
|
|
488
|
-
case "AI_PROMPT_FRUSTRATION_UNSPECIFIED":
|
|
489
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_UNSPECIFIED;
|
|
490
|
-
case 1:
|
|
491
|
-
case "AI_PROMPT_FRUSTRATION_NONE":
|
|
492
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_NONE;
|
|
493
|
-
case 2:
|
|
494
|
-
case "AI_PROMPT_FRUSTRATION_MILD":
|
|
495
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_MILD;
|
|
496
|
-
case 3:
|
|
497
|
-
case "AI_PROMPT_FRUSTRATION_STRONG":
|
|
498
|
-
return AIPromptFrustration.AI_PROMPT_FRUSTRATION_STRONG;
|
|
499
|
-
case -1:
|
|
500
|
-
case "UNRECOGNIZED":
|
|
501
|
-
default:
|
|
502
|
-
return AIPromptFrustration.UNRECOGNIZED;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
export function aIPromptFrustrationToJSON(object: AIPromptFrustration): string {
|
|
507
|
-
switch (object) {
|
|
508
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_UNSPECIFIED:
|
|
509
|
-
return "AI_PROMPT_FRUSTRATION_UNSPECIFIED";
|
|
510
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_NONE:
|
|
511
|
-
return "AI_PROMPT_FRUSTRATION_NONE";
|
|
512
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_MILD:
|
|
513
|
-
return "AI_PROMPT_FRUSTRATION_MILD";
|
|
514
|
-
case AIPromptFrustration.AI_PROMPT_FRUSTRATION_STRONG:
|
|
515
|
-
return "AI_PROMPT_FRUSTRATION_STRONG";
|
|
516
|
-
case AIPromptFrustration.UNRECOGNIZED:
|
|
517
|
-
default:
|
|
518
|
-
return "UNRECOGNIZED";
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/** AIPromptSentiment is a prompt's overall tone. */
|
|
523
|
-
export enum AIPromptSentiment {
|
|
524
|
-
/** AI_PROMPT_SENTIMENT_UNSPECIFIED - not labelled */
|
|
525
|
-
AI_PROMPT_SENTIMENT_UNSPECIFIED = 0,
|
|
526
|
-
AI_PROMPT_SENTIMENT_NEGATIVE = 1,
|
|
527
|
-
AI_PROMPT_SENTIMENT_NEUTRAL = 2,
|
|
528
|
-
AI_PROMPT_SENTIMENT_POSITIVE = 3,
|
|
529
|
-
UNRECOGNIZED = -1,
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export function aIPromptSentimentFromJSON(object: any): AIPromptSentiment {
|
|
533
|
-
switch (object) {
|
|
534
|
-
case 0:
|
|
535
|
-
case "AI_PROMPT_SENTIMENT_UNSPECIFIED":
|
|
536
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_UNSPECIFIED;
|
|
537
|
-
case 1:
|
|
538
|
-
case "AI_PROMPT_SENTIMENT_NEGATIVE":
|
|
539
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_NEGATIVE;
|
|
540
|
-
case 2:
|
|
541
|
-
case "AI_PROMPT_SENTIMENT_NEUTRAL":
|
|
542
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_NEUTRAL;
|
|
543
|
-
case 3:
|
|
544
|
-
case "AI_PROMPT_SENTIMENT_POSITIVE":
|
|
545
|
-
return AIPromptSentiment.AI_PROMPT_SENTIMENT_POSITIVE;
|
|
546
|
-
case -1:
|
|
547
|
-
case "UNRECOGNIZED":
|
|
548
|
-
default:
|
|
549
|
-
return AIPromptSentiment.UNRECOGNIZED;
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
|
|
553
|
-
export function aIPromptSentimentToJSON(object: AIPromptSentiment): string {
|
|
554
|
-
switch (object) {
|
|
555
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_UNSPECIFIED:
|
|
556
|
-
return "AI_PROMPT_SENTIMENT_UNSPECIFIED";
|
|
557
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_NEGATIVE:
|
|
558
|
-
return "AI_PROMPT_SENTIMENT_NEGATIVE";
|
|
559
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_NEUTRAL:
|
|
560
|
-
return "AI_PROMPT_SENTIMENT_NEUTRAL";
|
|
561
|
-
case AIPromptSentiment.AI_PROMPT_SENTIMENT_POSITIVE:
|
|
562
|
-
return "AI_PROMPT_SENTIMENT_POSITIVE";
|
|
563
|
-
case AIPromptSentiment.UNRECOGNIZED:
|
|
564
|
-
default:
|
|
565
|
-
return "UNRECOGNIZED";
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* AISessionWorkType is the kind of work a model judged a session to be (MIR-386). ClickHouse stores the number
|
|
571
|
-
* (ai_session_labels.WorkType). A retired value stays here, deprecated and never renumbered, so an old label still reads.
|
|
572
|
-
*/
|
|
573
|
-
export enum AISessionWorkType {
|
|
574
|
-
/** AI_SESSION_WORK_TYPE_UNSPECIFIED - no label: too short, nothing to read, or not labelled yet */
|
|
575
|
-
AI_SESSION_WORK_TYPE_UNSPECIFIED = 0,
|
|
576
|
-
AI_SESSION_WORK_TYPE_BUG_FIX = 1,
|
|
577
|
-
AI_SESSION_WORK_TYPE_FEATURE = 2,
|
|
578
|
-
AI_SESSION_WORK_TYPE_REFACTOR = 3,
|
|
579
|
-
AI_SESSION_WORK_TYPE_TESTS = 4,
|
|
580
|
-
AI_SESSION_WORK_TYPE_DOCS = 5,
|
|
581
|
-
AI_SESSION_WORK_TYPE_OPS = 6,
|
|
582
|
-
AI_SESSION_WORK_TYPE_REVIEW = 7,
|
|
583
|
-
AI_SESSION_WORK_TYPE_EXPLORATION = 8,
|
|
584
|
-
UNRECOGNIZED = -1,
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
export function aISessionWorkTypeFromJSON(object: any): AISessionWorkType {
|
|
588
|
-
switch (object) {
|
|
589
|
-
case 0:
|
|
590
|
-
case "AI_SESSION_WORK_TYPE_UNSPECIFIED":
|
|
591
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_UNSPECIFIED;
|
|
592
|
-
case 1:
|
|
593
|
-
case "AI_SESSION_WORK_TYPE_BUG_FIX":
|
|
594
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_BUG_FIX;
|
|
595
|
-
case 2:
|
|
596
|
-
case "AI_SESSION_WORK_TYPE_FEATURE":
|
|
597
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_FEATURE;
|
|
598
|
-
case 3:
|
|
599
|
-
case "AI_SESSION_WORK_TYPE_REFACTOR":
|
|
600
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_REFACTOR;
|
|
601
|
-
case 4:
|
|
602
|
-
case "AI_SESSION_WORK_TYPE_TESTS":
|
|
603
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_TESTS;
|
|
604
|
-
case 5:
|
|
605
|
-
case "AI_SESSION_WORK_TYPE_DOCS":
|
|
606
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_DOCS;
|
|
607
|
-
case 6:
|
|
608
|
-
case "AI_SESSION_WORK_TYPE_OPS":
|
|
609
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_OPS;
|
|
610
|
-
case 7:
|
|
611
|
-
case "AI_SESSION_WORK_TYPE_REVIEW":
|
|
612
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_REVIEW;
|
|
613
|
-
case 8:
|
|
614
|
-
case "AI_SESSION_WORK_TYPE_EXPLORATION":
|
|
615
|
-
return AISessionWorkType.AI_SESSION_WORK_TYPE_EXPLORATION;
|
|
616
|
-
case -1:
|
|
617
|
-
case "UNRECOGNIZED":
|
|
618
|
-
default:
|
|
619
|
-
return AISessionWorkType.UNRECOGNIZED;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
export function aISessionWorkTypeToJSON(object: AISessionWorkType): string {
|
|
624
|
-
switch (object) {
|
|
625
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_UNSPECIFIED:
|
|
626
|
-
return "AI_SESSION_WORK_TYPE_UNSPECIFIED";
|
|
627
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_BUG_FIX:
|
|
628
|
-
return "AI_SESSION_WORK_TYPE_BUG_FIX";
|
|
629
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_FEATURE:
|
|
630
|
-
return "AI_SESSION_WORK_TYPE_FEATURE";
|
|
631
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_REFACTOR:
|
|
632
|
-
return "AI_SESSION_WORK_TYPE_REFACTOR";
|
|
633
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_TESTS:
|
|
634
|
-
return "AI_SESSION_WORK_TYPE_TESTS";
|
|
635
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_DOCS:
|
|
636
|
-
return "AI_SESSION_WORK_TYPE_DOCS";
|
|
637
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_OPS:
|
|
638
|
-
return "AI_SESSION_WORK_TYPE_OPS";
|
|
639
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_REVIEW:
|
|
640
|
-
return "AI_SESSION_WORK_TYPE_REVIEW";
|
|
641
|
-
case AISessionWorkType.AI_SESSION_WORK_TYPE_EXPLORATION:
|
|
642
|
-
return "AI_SESSION_WORK_TYPE_EXPLORATION";
|
|
643
|
-
case AISessionWorkType.UNRECOGNIZED:
|
|
644
|
-
default:
|
|
645
|
-
return "UNRECOGNIZED";
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* AISessionComplexity is the size of a session's work from the same label. ClickHouse stores the number
|
|
651
|
-
* (ai_session_labels.Complexity); retired values stay, deprecated.
|
|
652
|
-
*/
|
|
653
|
-
export enum AISessionComplexity {
|
|
654
|
-
/** AI_SESSION_COMPLEXITY_UNSPECIFIED - no label */
|
|
655
|
-
AI_SESSION_COMPLEXITY_UNSPECIFIED = 0,
|
|
656
|
-
AI_SESSION_COMPLEXITY_SMALL = 1,
|
|
657
|
-
AI_SESSION_COMPLEXITY_MEDIUM = 2,
|
|
658
|
-
AI_SESSION_COMPLEXITY_LARGE = 3,
|
|
659
|
-
UNRECOGNIZED = -1,
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
export function aISessionComplexityFromJSON(object: any): AISessionComplexity {
|
|
663
|
-
switch (object) {
|
|
664
|
-
case 0:
|
|
665
|
-
case "AI_SESSION_COMPLEXITY_UNSPECIFIED":
|
|
666
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_UNSPECIFIED;
|
|
667
|
-
case 1:
|
|
668
|
-
case "AI_SESSION_COMPLEXITY_SMALL":
|
|
669
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_SMALL;
|
|
670
|
-
case 2:
|
|
671
|
-
case "AI_SESSION_COMPLEXITY_MEDIUM":
|
|
672
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_MEDIUM;
|
|
673
|
-
case 3:
|
|
674
|
-
case "AI_SESSION_COMPLEXITY_LARGE":
|
|
675
|
-
return AISessionComplexity.AI_SESSION_COMPLEXITY_LARGE;
|
|
676
|
-
case -1:
|
|
677
|
-
case "UNRECOGNIZED":
|
|
678
|
-
default:
|
|
679
|
-
return AISessionComplexity.UNRECOGNIZED;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
export function aISessionComplexityToJSON(object: AISessionComplexity): string {
|
|
684
|
-
switch (object) {
|
|
685
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_UNSPECIFIED:
|
|
686
|
-
return "AI_SESSION_COMPLEXITY_UNSPECIFIED";
|
|
687
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_SMALL:
|
|
688
|
-
return "AI_SESSION_COMPLEXITY_SMALL";
|
|
689
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_MEDIUM:
|
|
690
|
-
return "AI_SESSION_COMPLEXITY_MEDIUM";
|
|
691
|
-
case AISessionComplexity.AI_SESSION_COMPLEXITY_LARGE:
|
|
692
|
-
return "AI_SESSION_COMPLEXITY_LARGE";
|
|
693
|
-
case AISessionComplexity.UNRECOGNIZED:
|
|
694
|
-
default:
|
|
695
|
-
return "UNRECOGNIZED";
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
|
|
699
362
|
export enum AIGitAction {
|
|
700
363
|
AI_GIT_ACTION_UNSPECIFIED = 0,
|
|
701
364
|
AI_GIT_ACTION_BRANCH_CREATE = 1,
|
|
@@ -1837,148 +1500,6 @@ export function trackerSyncErrorToJSON(object: TrackerSyncError): string {
|
|
|
1837
1500
|
}
|
|
1838
1501
|
}
|
|
1839
1502
|
|
|
1840
|
-
/** AIProjectInsightAvailability is whether a project has an insights analysis to show. */
|
|
1841
|
-
export enum AIProjectInsightAvailability {
|
|
1842
|
-
AI_PROJECT_INSIGHT_AVAILABILITY_UNSPECIFIED = 0,
|
|
1843
|
-
/** AI_PROJECT_INSIGHT_AVAILABILITY_NOT_COMPUTED - No successful run yet: no window and no coverage. */
|
|
1844
|
-
AI_PROJECT_INSIGHT_AVAILABILITY_NOT_COMPUTED = 1,
|
|
1845
|
-
/**
|
|
1846
|
-
* AI_PROJECT_INSIGHT_AVAILABILITY_INSUFFICIENT_DATA - The run succeeded, but the window's eligible sessions belong to fewer than two linked people, so no model ran and
|
|
1847
|
-
* no card could be grounded.
|
|
1848
|
-
*/
|
|
1849
|
-
AI_PROJECT_INSIGHT_AVAILABILITY_INSUFFICIENT_DATA = 2,
|
|
1850
|
-
/** AI_PROJECT_INSIGHT_AVAILABILITY_READY - A valid analysis. Zero cards means no supported recommendation in the evidence the run read. */
|
|
1851
|
-
AI_PROJECT_INSIGHT_AVAILABILITY_READY = 3,
|
|
1852
|
-
UNRECOGNIZED = -1,
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
export function aIProjectInsightAvailabilityFromJSON(object: any): AIProjectInsightAvailability {
|
|
1856
|
-
switch (object) {
|
|
1857
|
-
case 0:
|
|
1858
|
-
case "AI_PROJECT_INSIGHT_AVAILABILITY_UNSPECIFIED":
|
|
1859
|
-
return AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_UNSPECIFIED;
|
|
1860
|
-
case 1:
|
|
1861
|
-
case "AI_PROJECT_INSIGHT_AVAILABILITY_NOT_COMPUTED":
|
|
1862
|
-
return AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_NOT_COMPUTED;
|
|
1863
|
-
case 2:
|
|
1864
|
-
case "AI_PROJECT_INSIGHT_AVAILABILITY_INSUFFICIENT_DATA":
|
|
1865
|
-
return AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_INSUFFICIENT_DATA;
|
|
1866
|
-
case 3:
|
|
1867
|
-
case "AI_PROJECT_INSIGHT_AVAILABILITY_READY":
|
|
1868
|
-
return AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_READY;
|
|
1869
|
-
case -1:
|
|
1870
|
-
case "UNRECOGNIZED":
|
|
1871
|
-
default:
|
|
1872
|
-
return AIProjectInsightAvailability.UNRECOGNIZED;
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
export function aIProjectInsightAvailabilityToJSON(object: AIProjectInsightAvailability): string {
|
|
1877
|
-
switch (object) {
|
|
1878
|
-
case AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_UNSPECIFIED:
|
|
1879
|
-
return "AI_PROJECT_INSIGHT_AVAILABILITY_UNSPECIFIED";
|
|
1880
|
-
case AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_NOT_COMPUTED:
|
|
1881
|
-
return "AI_PROJECT_INSIGHT_AVAILABILITY_NOT_COMPUTED";
|
|
1882
|
-
case AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_INSUFFICIENT_DATA:
|
|
1883
|
-
return "AI_PROJECT_INSIGHT_AVAILABILITY_INSUFFICIENT_DATA";
|
|
1884
|
-
case AIProjectInsightAvailability.AI_PROJECT_INSIGHT_AVAILABILITY_READY:
|
|
1885
|
-
return "AI_PROJECT_INSIGHT_AVAILABILITY_READY";
|
|
1886
|
-
case AIProjectInsightAvailability.UNRECOGNIZED:
|
|
1887
|
-
default:
|
|
1888
|
-
return "UNRECOGNIZED";
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1892
|
-
export enum AIProjectInsightCoverageStatus {
|
|
1893
|
-
AI_PROJECT_INSIGHT_COVERAGE_STATUS_UNSPECIFIED = 0,
|
|
1894
|
-
/** AI_PROJECT_INSIGHT_COVERAGE_STATUS_COMPLETE - Every eligible session's evidence was read, whole. */
|
|
1895
|
-
AI_PROJECT_INSIGHT_COVERAGE_STATUS_COMPLETE = 1,
|
|
1896
|
-
/**
|
|
1897
|
-
* AI_PROJECT_INSIGHT_COVERAGE_STATUS_PARTIAL - Only part of the window was read: a budget stopped the reading, sessions went unread, or evidence was withheld or
|
|
1898
|
-
* truncated.
|
|
1899
|
-
*/
|
|
1900
|
-
AI_PROJECT_INSIGHT_COVERAGE_STATUS_PARTIAL = 2,
|
|
1901
|
-
UNRECOGNIZED = -1,
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
|
-
export function aIProjectInsightCoverageStatusFromJSON(object: any): AIProjectInsightCoverageStatus {
|
|
1905
|
-
switch (object) {
|
|
1906
|
-
case 0:
|
|
1907
|
-
case "AI_PROJECT_INSIGHT_COVERAGE_STATUS_UNSPECIFIED":
|
|
1908
|
-
return AIProjectInsightCoverageStatus.AI_PROJECT_INSIGHT_COVERAGE_STATUS_UNSPECIFIED;
|
|
1909
|
-
case 1:
|
|
1910
|
-
case "AI_PROJECT_INSIGHT_COVERAGE_STATUS_COMPLETE":
|
|
1911
|
-
return AIProjectInsightCoverageStatus.AI_PROJECT_INSIGHT_COVERAGE_STATUS_COMPLETE;
|
|
1912
|
-
case 2:
|
|
1913
|
-
case "AI_PROJECT_INSIGHT_COVERAGE_STATUS_PARTIAL":
|
|
1914
|
-
return AIProjectInsightCoverageStatus.AI_PROJECT_INSIGHT_COVERAGE_STATUS_PARTIAL;
|
|
1915
|
-
case -1:
|
|
1916
|
-
case "UNRECOGNIZED":
|
|
1917
|
-
default:
|
|
1918
|
-
return AIProjectInsightCoverageStatus.UNRECOGNIZED;
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
export function aIProjectInsightCoverageStatusToJSON(object: AIProjectInsightCoverageStatus): string {
|
|
1923
|
-
switch (object) {
|
|
1924
|
-
case AIProjectInsightCoverageStatus.AI_PROJECT_INSIGHT_COVERAGE_STATUS_UNSPECIFIED:
|
|
1925
|
-
return "AI_PROJECT_INSIGHT_COVERAGE_STATUS_UNSPECIFIED";
|
|
1926
|
-
case AIProjectInsightCoverageStatus.AI_PROJECT_INSIGHT_COVERAGE_STATUS_COMPLETE:
|
|
1927
|
-
return "AI_PROJECT_INSIGHT_COVERAGE_STATUS_COMPLETE";
|
|
1928
|
-
case AIProjectInsightCoverageStatus.AI_PROJECT_INSIGHT_COVERAGE_STATUS_PARTIAL:
|
|
1929
|
-
return "AI_PROJECT_INSIGHT_COVERAGE_STATUS_PARTIAL";
|
|
1930
|
-
case AIProjectInsightCoverageStatus.UNRECOGNIZED:
|
|
1931
|
-
default:
|
|
1932
|
-
return "UNRECOGNIZED";
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
|
|
1936
|
-
/** AIProjectInsightStopReason is the budget that stopped a partial analysis's reading. */
|
|
1937
|
-
export enum AIProjectInsightStopReason {
|
|
1938
|
-
AI_PROJECT_INSIGHT_STOP_REASON_UNSPECIFIED = 0,
|
|
1939
|
-
AI_PROJECT_INSIGHT_STOP_REASON_OVERVIEW_PAGES = 1,
|
|
1940
|
-
AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_PAGES = 2,
|
|
1941
|
-
AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_BUDGET = 3,
|
|
1942
|
-
UNRECOGNIZED = -1,
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
|
-
export function aIProjectInsightStopReasonFromJSON(object: any): AIProjectInsightStopReason {
|
|
1946
|
-
switch (object) {
|
|
1947
|
-
case 0:
|
|
1948
|
-
case "AI_PROJECT_INSIGHT_STOP_REASON_UNSPECIFIED":
|
|
1949
|
-
return AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_UNSPECIFIED;
|
|
1950
|
-
case 1:
|
|
1951
|
-
case "AI_PROJECT_INSIGHT_STOP_REASON_OVERVIEW_PAGES":
|
|
1952
|
-
return AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_OVERVIEW_PAGES;
|
|
1953
|
-
case 2:
|
|
1954
|
-
case "AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_PAGES":
|
|
1955
|
-
return AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_PAGES;
|
|
1956
|
-
case 3:
|
|
1957
|
-
case "AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_BUDGET":
|
|
1958
|
-
return AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_BUDGET;
|
|
1959
|
-
case -1:
|
|
1960
|
-
case "UNRECOGNIZED":
|
|
1961
|
-
default:
|
|
1962
|
-
return AIProjectInsightStopReason.UNRECOGNIZED;
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
|
|
1966
|
-
export function aIProjectInsightStopReasonToJSON(object: AIProjectInsightStopReason): string {
|
|
1967
|
-
switch (object) {
|
|
1968
|
-
case AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_UNSPECIFIED:
|
|
1969
|
-
return "AI_PROJECT_INSIGHT_STOP_REASON_UNSPECIFIED";
|
|
1970
|
-
case AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_OVERVIEW_PAGES:
|
|
1971
|
-
return "AI_PROJECT_INSIGHT_STOP_REASON_OVERVIEW_PAGES";
|
|
1972
|
-
case AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_PAGES:
|
|
1973
|
-
return "AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_PAGES";
|
|
1974
|
-
case AIProjectInsightStopReason.AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_BUDGET:
|
|
1975
|
-
return "AI_PROJECT_INSIGHT_STOP_REASON_EVIDENCE_BUDGET";
|
|
1976
|
-
case AIProjectInsightStopReason.UNRECOGNIZED:
|
|
1977
|
-
default:
|
|
1978
|
-
return "UNRECOGNIZED";
|
|
1979
|
-
}
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
1503
|
/** AIProjectInsightKind is what a card recommends, for display. */
|
|
1983
1504
|
export enum AIProjectInsightKind {
|
|
1984
1505
|
AI_PROJECT_INSIGHT_KIND_UNSPECIFIED = 0,
|
|
@@ -2159,10 +1680,10 @@ export interface SessionFilter {
|
|
|
2159
1680
|
/** Stored model, provider or effort names whose display name the caller matched to the search text. */
|
|
2160
1681
|
searchStoredNames: string[];
|
|
2161
1682
|
/**
|
|
2162
|
-
* Work
|
|
2163
|
-
*
|
|
1683
|
+
* Work type keys of the session's latest label (AISessionSummary.work_type), such as "bug_fix"; a session with no
|
|
1684
|
+
* label matches none. At most 50 keys; an empty key is INVALID_ARGUMENT.
|
|
2164
1685
|
*/
|
|
2165
|
-
workTypes:
|
|
1686
|
+
workTypes: string[];
|
|
2166
1687
|
}
|
|
2167
1688
|
|
|
2168
1689
|
/**
|
|
@@ -2260,12 +1781,12 @@ export interface AISessionSummary {
|
|
|
2260
1781
|
/** The harness's latest "while you were away" recap (summary · recap); "" when it wrote none. */
|
|
2261
1782
|
recap: string;
|
|
2262
1783
|
/**
|
|
2263
|
-
* The
|
|
2264
|
-
* until the labeller relabels it;
|
|
1784
|
+
* The work type key of the session's latest label (GetLabelCatalog's session work_type values), which can predate its
|
|
1785
|
+
* latest activity until the labeller relabels it; "" when it has no label.
|
|
2265
1786
|
*/
|
|
2266
|
-
workType:
|
|
2267
|
-
/** The
|
|
2268
|
-
|
|
1787
|
+
workType: string;
|
|
1788
|
+
/** The work size key of the same label; "" when it has no label. */
|
|
1789
|
+
workSize: string;
|
|
2269
1790
|
/**
|
|
2270
1791
|
* The session's score (0-100, AISessionScore) from its latest grading; absent when it is not scored: not graded
|
|
2271
1792
|
* yet, or graded from an older session_version. GetSessionAnalysis has the breakdown.
|
|
@@ -2447,13 +1968,19 @@ export interface AIContentPart {
|
|
|
2447
1968
|
content: string;
|
|
2448
1969
|
}
|
|
2449
1970
|
|
|
2450
|
-
/**
|
|
1971
|
+
/** AILabelCount is how many labelled prompts have one value (key) of one dimension. */
|
|
1972
|
+
export interface AILabelCount {
|
|
1973
|
+
key: string;
|
|
1974
|
+
prompts: number;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* AIPromptLabels is a model's labels for one prompt, from its latest labelling: a value key of each of the prompt
|
|
1979
|
+
* labeller's dimensions (GetLabelCatalog's prompt steering and tone values).
|
|
1980
|
+
*/
|
|
2451
1981
|
export interface AIPromptLabels {
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
steering: AIPromptSteering;
|
|
2455
|
-
frustration: AIPromptFrustration;
|
|
2456
|
-
sentiment: AIPromptSentiment;
|
|
1982
|
+
steering: string;
|
|
1983
|
+
tone: string;
|
|
2457
1984
|
}
|
|
2458
1985
|
|
|
2459
1986
|
/** AIPromptLabelSummary rolls up one session's labelled prompts, each at its latest labelling. */
|
|
@@ -2461,19 +1988,15 @@ export interface AIPromptLabelSummary {
|
|
|
2461
1988
|
/** At least 1: the summary is absent when no prompt is labelled. */
|
|
2462
1989
|
labelledPrompts: number;
|
|
2463
1990
|
/**
|
|
2464
|
-
* One row per steering value with at least one prompt,
|
|
2465
|
-
*
|
|
1991
|
+
* One row per steering value with at least one prompt, by key; they add up to labelled_prompts. A share is prompts /
|
|
1992
|
+
* labelled_prompts.
|
|
2466
1993
|
*/
|
|
2467
|
-
steeringCounts:
|
|
2468
|
-
/**
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
export interface AIPromptSteeringCount {
|
|
2475
|
-
steering: AIPromptSteering;
|
|
2476
|
-
prompts: number;
|
|
1994
|
+
steeringCounts: AILabelCount[];
|
|
1995
|
+
/**
|
|
1996
|
+
* One row per tone value with at least one prompt, by key; they add up to labelled_prompts. A session's peak is its
|
|
1997
|
+
* value latest in GetLabelCatalog's order with a row.
|
|
1998
|
+
*/
|
|
1999
|
+
toneCounts: AILabelCount[];
|
|
2477
2000
|
}
|
|
2478
2001
|
|
|
2479
2002
|
export interface GetPromptLabelTrendRequest {
|
|
@@ -2510,20 +2033,57 @@ export interface GetPromptLabelTrendResponse {
|
|
|
2510
2033
|
weeks: AIPromptLabelWeek[];
|
|
2511
2034
|
}
|
|
2512
2035
|
|
|
2513
|
-
/**
|
|
2514
|
-
* AIPromptLabelWeek: share of clear prompts = clear_prompts / labelled_prompts, correction rate = corrections /
|
|
2515
|
-
* labelled_prompts, frustration rate = frustrated_prompts / labelled_prompts, each only when labelled_prompts > 0.
|
|
2516
|
-
*/
|
|
2036
|
+
/** AIPromptLabelWeek: a value's share is its prompts / labelled_prompts, only when labelled_prompts > 0. */
|
|
2517
2037
|
export interface AIPromptLabelWeek {
|
|
2518
2038
|
/** The week's Monday, YYYY-MM-DD. */
|
|
2519
2039
|
weekStart: string;
|
|
2520
2040
|
labelledPrompts: number;
|
|
2521
|
-
/**
|
|
2522
|
-
|
|
2523
|
-
/**
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2041
|
+
/** One row per steering value with at least one prompt in the week, by key. */
|
|
2042
|
+
steeringCounts: AILabelCount[];
|
|
2043
|
+
/** One row per tone value with at least one prompt in the week, by key. */
|
|
2044
|
+
toneCounts: AILabelCount[];
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
export interface GetLabelCatalogRequest {
|
|
2048
|
+
organizationId: string;
|
|
2049
|
+
projectId: string;
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2052
|
+
export interface GetLabelCatalogResponse {
|
|
2053
|
+
status:
|
|
2054
|
+
| ResponseStatus
|
|
2055
|
+
| undefined;
|
|
2056
|
+
/** The session labeller's set: work_type then work_size (AISessionSummary, SessionFilter.work_types). */
|
|
2057
|
+
sessionLabels:
|
|
2058
|
+
| AILabelSet
|
|
2059
|
+
| undefined;
|
|
2060
|
+
/** The prompt labeller's set: steering then tone (AIPromptLabels, AIPromptLabelSummary, GetPromptLabelTrend). */
|
|
2061
|
+
promptLabels: AILabelSet | undefined;
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/** AILabelSet is a labeller's set: its version (a content hash of its values) and its fixed dimensions in order. */
|
|
2065
|
+
export interface AILabelSet {
|
|
2066
|
+
version: string;
|
|
2067
|
+
dimensions: AILabelDimension[];
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
/**
|
|
2071
|
+
* AILabelDimension is one thing a labelled item gets a value of, with its values in display order (a scale mildest or
|
|
2072
|
+
* smallest first).
|
|
2073
|
+
*/
|
|
2074
|
+
export interface AILabelDimension {
|
|
2075
|
+
key: string;
|
|
2076
|
+
name: string;
|
|
2077
|
+
values: AILabelValue[];
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
/** AILabelValue is one value of a dimension. */
|
|
2081
|
+
export interface AILabelValue {
|
|
2082
|
+
key: string;
|
|
2083
|
+
name: string;
|
|
2084
|
+
/** One plain-language sentence for people (a chip's tooltip), with the likely cause where that helps. */
|
|
2085
|
+
tooltip: string;
|
|
2086
|
+
rating: AILabelRating;
|
|
2527
2087
|
}
|
|
2528
2088
|
|
|
2529
2089
|
export interface SessionTokenTimelineRequest {
|
|
@@ -4590,103 +4150,43 @@ export interface IssueSession {
|
|
|
4590
4150
|
costUsdNanos: string;
|
|
4591
4151
|
}
|
|
4592
4152
|
|
|
4593
|
-
export interface
|
|
4153
|
+
export interface ListProjectInsightCardsRequest {
|
|
4594
4154
|
organizationId: string;
|
|
4595
4155
|
projectId: string;
|
|
4596
|
-
/**
|
|
4597
|
-
|
|
4156
|
+
/** Cards per page, 1 to 50; 0 is the default, 15. Negative is a validation error. */
|
|
4157
|
+
pageSize: number;
|
|
4158
|
+
/** A prior response's next_page_token: resumes after its card's local day and rank. Empty reads the newest cards. */
|
|
4159
|
+
pageToken: string;
|
|
4598
4160
|
}
|
|
4599
4161
|
|
|
4600
|
-
export interface
|
|
4162
|
+
export interface ListProjectInsightCardsResponse {
|
|
4601
4163
|
status:
|
|
4602
4164
|
| ResponseStatus
|
|
4603
4165
|
| undefined;
|
|
4604
4166
|
/**
|
|
4605
|
-
*
|
|
4606
|
-
*
|
|
4167
|
+
* Newest local day first, rank order within a day; empty when the project has no READY day. A page can be shorter
|
|
4168
|
+
* than page_size while next_page_token is set.
|
|
4607
4169
|
*/
|
|
4608
|
-
|
|
4609
|
-
/**
|
|
4610
|
-
|
|
4611
|
-
* NOT_COMPUTED.
|
|
4612
|
-
*/
|
|
4613
|
-
current:
|
|
4614
|
-
| AIProjectInsightRun
|
|
4615
|
-
| undefined;
|
|
4616
|
-
/**
|
|
4617
|
-
* Present only when current is not READY: the most recent earlier local day's analysis, in any timezone, only if
|
|
4618
|
-
* that day is READY and at most three days before the newest stored day (the read looks back no further).
|
|
4619
|
-
* Historical context, labelled by its own local_date, never shown as current's state.
|
|
4620
|
-
*/
|
|
4621
|
-
previous: AIProjectInsightRun | undefined;
|
|
4170
|
+
cards: AIProjectInsightCard[];
|
|
4171
|
+
/** Empty on the last page. */
|
|
4172
|
+
nextPageToken: string;
|
|
4622
4173
|
}
|
|
4623
4174
|
|
|
4624
4175
|
/**
|
|
4625
|
-
*
|
|
4626
|
-
*
|
|
4176
|
+
* AIProjectInsightCard is one card with the run that served it: label it with its day and analysis ("Nov 3 (final)",
|
|
4177
|
+
* "Today until 14:00, analyzed 14:06").
|
|
4627
4178
|
*/
|
|
4628
|
-
export interface
|
|
4179
|
+
export interface AIProjectInsightCard {
|
|
4180
|
+
insight: AIProjectInsight | undefined;
|
|
4629
4181
|
runId: string;
|
|
4630
|
-
/**
|
|
4631
|
-
availability: AIProjectInsightAvailability;
|
|
4632
|
-
/** The day the run analyzed, YYYY-MM-DD in time_zone: what a client labels the run with. */
|
|
4182
|
+
/** The day the run analyzed, YYYY-MM-DD in time_zone. */
|
|
4633
4183
|
localDate: string;
|
|
4634
4184
|
/** The IANA timezone the day is in: the organization's, or "UTC" when it had none. */
|
|
4635
4185
|
timeZone: string;
|
|
4636
|
-
/**
|
|
4637
|
-
* False when the organization had no timezone and "UTC" is the fallback (prompt the user to set one); true when
|
|
4638
|
-
* time_zone is the organization's choice, UTC included.
|
|
4639
|
-
*/
|
|
4640
|
-
timeZoneSet: boolean;
|
|
4641
|
-
/** True when the window is the whole local day, final for that day; false while the day is still running. */
|
|
4186
|
+
/** True when the run covered the whole local day, final for that day; false while the day is still running. */
|
|
4642
4187
|
windowClosed: boolean;
|
|
4643
|
-
/**
|
|
4644
|
-
|
|
4645
|
-
* where a daylight-saving gap that skips midnight ends); an open window ends at the tick that analyzed it, a closed
|
|
4646
|
-
* one at the next day's first instant.
|
|
4647
|
-
*/
|
|
4648
|
-
windowStart: Date | undefined;
|
|
4649
|
-
windowEnd:
|
|
4650
|
-
| Date
|
|
4651
|
-
| undefined;
|
|
4652
|
-
/** When the run analyzed the window, not when the job last found it unchanged. */
|
|
4653
|
-
analyzedAt:
|
|
4654
|
-
| Date
|
|
4655
|
-
| undefined;
|
|
4656
|
-
/** The model, and the analysis version: the task, tools and selection versions and the budgets the run used. */
|
|
4657
|
-
model: string;
|
|
4658
|
-
analysisVersion: string;
|
|
4659
|
-
/** The window's eligible sessions, and those whose principal links to no person. */
|
|
4660
|
-
eligibleSessionCount: number;
|
|
4661
|
-
unresolvedSessionCount: number;
|
|
4662
|
-
/** Distinct linked people behind the eligible sessions. */
|
|
4663
|
-
linkedPersonCount: number;
|
|
4664
|
-
/** What the analysis read; absent on an INSUFFICIENT_DATA run, which reads nothing. */
|
|
4665
|
-
coverage:
|
|
4666
|
-
| AIProjectInsightCoverage
|
|
4667
|
-
| undefined;
|
|
4668
|
-
/** Up to the request's limit of the run's cards, in rank order. */
|
|
4669
|
-
insights: AIProjectInsight[];
|
|
4670
|
-
/** The run's exact card count (0 to 5), so a capped preview tells one card from one of five. */
|
|
4671
|
-
totalCount: number;
|
|
4672
|
-
}
|
|
4673
|
-
|
|
4674
|
-
/**
|
|
4675
|
-
* AIProjectInsightCoverage is how much of the window's evidence the analysis read. Show the sessions read against the
|
|
4676
|
-
* eligible ones, and a partial analysis's stop reason, beside the cards; never extrapolate to unread sessions.
|
|
4677
|
-
*/
|
|
4678
|
-
export interface AIProjectInsightCoverage {
|
|
4679
|
-
status: AIProjectInsightCoverageStatus;
|
|
4680
|
-
/** Unspecified is no stop: no budget cut the reading short. */
|
|
4681
|
-
stopReason: AIProjectInsightStopReason;
|
|
4682
|
-
/** Distinct sessions the model saw in an overview, and those whose evidence it read. */
|
|
4683
|
-
overviewSessionCount: number;
|
|
4684
|
-
evidenceSessionCount: number;
|
|
4685
|
-
/** Distinct linked people whose evidence the model read. */
|
|
4686
|
-
evidencePersonCount: number;
|
|
4687
|
-
/** Evidence items held back from the model, and items cut to their size cap. */
|
|
4688
|
-
withheldEvidenceCount: number;
|
|
4689
|
-
truncatedEvidenceCount: number;
|
|
4188
|
+
/** When the run analyzed the window. */
|
|
4189
|
+
analyzedAt: Date | undefined;
|
|
4690
4190
|
}
|
|
4691
4191
|
|
|
4692
4192
|
/**
|
|
@@ -4959,7 +4459,7 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
4959
4459
|
writer.uint32(98).string(v!);
|
|
4960
4460
|
}
|
|
4961
4461
|
for (const v of message.workTypes) {
|
|
4962
|
-
writer.uint32(
|
|
4462
|
+
writer.uint32(106).string(v!);
|
|
4963
4463
|
}
|
|
4964
4464
|
return writer;
|
|
4965
4465
|
},
|
|
@@ -5074,22 +4574,12 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
5074
4574
|
continue;
|
|
5075
4575
|
}
|
|
5076
4576
|
case 13: {
|
|
5077
|
-
if (tag
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
continue;
|
|
5081
|
-
}
|
|
5082
|
-
|
|
5083
|
-
if (tag === 106) {
|
|
5084
|
-
const end2 = reader.uint32() + reader.pos;
|
|
5085
|
-
while (reader.pos < end2) {
|
|
5086
|
-
message.workTypes.push(reader.int32() as any);
|
|
5087
|
-
}
|
|
5088
|
-
|
|
5089
|
-
continue;
|
|
4577
|
+
if (tag !== 106) {
|
|
4578
|
+
break;
|
|
5090
4579
|
}
|
|
5091
4580
|
|
|
5092
|
-
|
|
4581
|
+
message.workTypes.push(reader.string());
|
|
4582
|
+
continue;
|
|
5093
4583
|
}
|
|
5094
4584
|
}
|
|
5095
4585
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5148,9 +4638,9 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
5148
4638
|
? object.search_stored_names.map((e: any) => globalThis.String(e))
|
|
5149
4639
|
: [],
|
|
5150
4640
|
workTypes: globalThis.Array.isArray(object?.workTypes)
|
|
5151
|
-
? object.workTypes.map((e: any) =>
|
|
4641
|
+
? object.workTypes.map((e: any) => globalThis.String(e))
|
|
5152
4642
|
: globalThis.Array.isArray(object?.work_types)
|
|
5153
|
-
? object.work_types.map((e: any) =>
|
|
4643
|
+
? object.work_types.map((e: any) => globalThis.String(e))
|
|
5154
4644
|
: [],
|
|
5155
4645
|
};
|
|
5156
4646
|
},
|
|
@@ -5194,7 +4684,7 @@ export const SessionFilter: MessageFns<SessionFilter> = {
|
|
|
5194
4684
|
obj.searchStoredNames = message.searchStoredNames;
|
|
5195
4685
|
}
|
|
5196
4686
|
if (message.workTypes?.length) {
|
|
5197
|
-
obj.workTypes = message.workTypes
|
|
4687
|
+
obj.workTypes = message.workTypes;
|
|
5198
4688
|
}
|
|
5199
4689
|
return obj;
|
|
5200
4690
|
},
|
|
@@ -5657,8 +5147,8 @@ function createBaseAISessionSummary(): AISessionSummary {
|
|
|
5657
5147
|
termaVersions: [],
|
|
5658
5148
|
title: "",
|
|
5659
5149
|
recap: "",
|
|
5660
|
-
workType:
|
|
5661
|
-
|
|
5150
|
+
workType: "",
|
|
5151
|
+
workSize: "",
|
|
5662
5152
|
sessionScore: undefined,
|
|
5663
5153
|
promptLabelSummary: undefined,
|
|
5664
5154
|
};
|
|
@@ -5771,11 +5261,11 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
5771
5261
|
if (message.recap !== "") {
|
|
5772
5262
|
writer.uint32(274).string(message.recap);
|
|
5773
5263
|
}
|
|
5774
|
-
if (message.workType !==
|
|
5775
|
-
writer.uint32(
|
|
5264
|
+
if (message.workType !== "") {
|
|
5265
|
+
writer.uint32(290).string(message.workType);
|
|
5776
5266
|
}
|
|
5777
|
-
if (message.
|
|
5778
|
-
writer.uint32(
|
|
5267
|
+
if (message.workSize !== "") {
|
|
5268
|
+
writer.uint32(298).string(message.workSize);
|
|
5779
5269
|
}
|
|
5780
5270
|
if (message.sessionScore !== undefined) {
|
|
5781
5271
|
writer.uint32(304).int32(message.sessionScore);
|
|
@@ -6080,19 +5570,19 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6080
5570
|
continue;
|
|
6081
5571
|
}
|
|
6082
5572
|
case 36: {
|
|
6083
|
-
if (tag !==
|
|
5573
|
+
if (tag !== 290) {
|
|
6084
5574
|
break;
|
|
6085
5575
|
}
|
|
6086
5576
|
|
|
6087
|
-
message.workType = reader.
|
|
5577
|
+
message.workType = reader.string();
|
|
6088
5578
|
continue;
|
|
6089
5579
|
}
|
|
6090
5580
|
case 37: {
|
|
6091
|
-
if (tag !==
|
|
5581
|
+
if (tag !== 298) {
|
|
6092
5582
|
break;
|
|
6093
5583
|
}
|
|
6094
5584
|
|
|
6095
|
-
message.
|
|
5585
|
+
message.workSize = reader.string();
|
|
6096
5586
|
continue;
|
|
6097
5587
|
}
|
|
6098
5588
|
case 38: {
|
|
@@ -6261,11 +5751,15 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6261
5751
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
6262
5752
|
recap: isSet(object.recap) ? globalThis.String(object.recap) : "",
|
|
6263
5753
|
workType: isSet(object.workType)
|
|
6264
|
-
?
|
|
5754
|
+
? globalThis.String(object.workType)
|
|
6265
5755
|
: isSet(object.work_type)
|
|
6266
|
-
?
|
|
6267
|
-
:
|
|
6268
|
-
|
|
5756
|
+
? globalThis.String(object.work_type)
|
|
5757
|
+
: "",
|
|
5758
|
+
workSize: isSet(object.workSize)
|
|
5759
|
+
? globalThis.String(object.workSize)
|
|
5760
|
+
: isSet(object.work_size)
|
|
5761
|
+
? globalThis.String(object.work_size)
|
|
5762
|
+
: "",
|
|
6269
5763
|
sessionScore: isSet(object.sessionScore)
|
|
6270
5764
|
? globalThis.Number(object.sessionScore)
|
|
6271
5765
|
: isSet(object.session_score)
|
|
@@ -6386,11 +5880,11 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6386
5880
|
if (message.recap !== "") {
|
|
6387
5881
|
obj.recap = message.recap;
|
|
6388
5882
|
}
|
|
6389
|
-
if (message.workType !==
|
|
6390
|
-
obj.workType =
|
|
5883
|
+
if (message.workType !== "") {
|
|
5884
|
+
obj.workType = message.workType;
|
|
6391
5885
|
}
|
|
6392
|
-
if (message.
|
|
6393
|
-
obj.
|
|
5886
|
+
if (message.workSize !== "") {
|
|
5887
|
+
obj.workSize = message.workSize;
|
|
6394
5888
|
}
|
|
6395
5889
|
if (message.sessionScore !== undefined) {
|
|
6396
5890
|
obj.sessionScore = Math.round(message.sessionScore);
|
|
@@ -6443,8 +5937,8 @@ export const AISessionSummary: MessageFns<AISessionSummary> = {
|
|
|
6443
5937
|
message.termaVersions = object.termaVersions?.map((e) => e) || [];
|
|
6444
5938
|
message.title = object.title ?? "";
|
|
6445
5939
|
message.recap = object.recap ?? "";
|
|
6446
|
-
message.workType = object.workType ??
|
|
6447
|
-
message.
|
|
5940
|
+
message.workType = object.workType ?? "";
|
|
5941
|
+
message.workSize = object.workSize ?? "";
|
|
6448
5942
|
message.sessionScore = object.sessionScore ?? undefined;
|
|
6449
5943
|
message.promptLabelSummary = (object.promptLabelSummary !== undefined && object.promptLabelSummary !== null)
|
|
6450
5944
|
? AIPromptLabelSummary.fromPartial(object.promptLabelSummary)
|
|
@@ -8286,31 +7780,22 @@ export const AIContentPart: MessageFns<AIContentPart> = {
|
|
|
8286
7780
|
},
|
|
8287
7781
|
};
|
|
8288
7782
|
|
|
8289
|
-
function
|
|
8290
|
-
return {
|
|
7783
|
+
function createBaseAILabelCount(): AILabelCount {
|
|
7784
|
+
return { key: "", prompts: 0 };
|
|
8291
7785
|
}
|
|
8292
7786
|
|
|
8293
|
-
export const
|
|
8294
|
-
encode(message:
|
|
8295
|
-
if (message.
|
|
8296
|
-
writer.uint32(
|
|
8297
|
-
}
|
|
8298
|
-
if (message.clarity !== 0) {
|
|
8299
|
-
writer.uint32(16).int32(message.clarity);
|
|
8300
|
-
}
|
|
8301
|
-
if (message.steering !== 0) {
|
|
8302
|
-
writer.uint32(24).int32(message.steering);
|
|
8303
|
-
}
|
|
8304
|
-
if (message.frustration !== 0) {
|
|
8305
|
-
writer.uint32(32).int32(message.frustration);
|
|
7787
|
+
export const AILabelCount: MessageFns<AILabelCount> = {
|
|
7788
|
+
encode(message: AILabelCount, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7789
|
+
if (message.key !== "") {
|
|
7790
|
+
writer.uint32(10).string(message.key);
|
|
8306
7791
|
}
|
|
8307
|
-
if (message.
|
|
8308
|
-
writer.uint32(
|
|
7792
|
+
if (message.prompts !== 0) {
|
|
7793
|
+
writer.uint32(16).uint64(message.prompts);
|
|
8309
7794
|
}
|
|
8310
7795
|
return writer;
|
|
8311
7796
|
},
|
|
8312
7797
|
|
|
8313
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7798
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelCount {
|
|
8314
7799
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8315
7800
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8316
7801
|
if (previousRecursionDepth >= 100) {
|
|
@@ -8319,16 +7804,16 @@ export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
|
8319
7804
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8320
7805
|
try {
|
|
8321
7806
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8322
|
-
const message =
|
|
7807
|
+
const message = createBaseAILabelCount();
|
|
8323
7808
|
while (reader.pos < end) {
|
|
8324
7809
|
const tag = reader.uint32();
|
|
8325
7810
|
switch (tag >>> 3) {
|
|
8326
7811
|
case 1: {
|
|
8327
|
-
if (tag !==
|
|
7812
|
+
if (tag !== 10) {
|
|
8328
7813
|
break;
|
|
8329
7814
|
}
|
|
8330
7815
|
|
|
8331
|
-
message.
|
|
7816
|
+
message.key = reader.string();
|
|
8332
7817
|
continue;
|
|
8333
7818
|
}
|
|
8334
7819
|
case 2: {
|
|
@@ -8336,31 +7821,7 @@ export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
|
8336
7821
|
break;
|
|
8337
7822
|
}
|
|
8338
7823
|
|
|
8339
|
-
message.
|
|
8340
|
-
continue;
|
|
8341
|
-
}
|
|
8342
|
-
case 3: {
|
|
8343
|
-
if (tag !== 24) {
|
|
8344
|
-
break;
|
|
8345
|
-
}
|
|
8346
|
-
|
|
8347
|
-
message.steering = reader.int32() as any;
|
|
8348
|
-
continue;
|
|
8349
|
-
}
|
|
8350
|
-
case 4: {
|
|
8351
|
-
if (tag !== 32) {
|
|
8352
|
-
break;
|
|
8353
|
-
}
|
|
8354
|
-
|
|
8355
|
-
message.frustration = reader.int32() as any;
|
|
8356
|
-
continue;
|
|
8357
|
-
}
|
|
8358
|
-
case 5: {
|
|
8359
|
-
if (tag !== 40) {
|
|
8360
|
-
break;
|
|
8361
|
-
}
|
|
8362
|
-
|
|
8363
|
-
message.sentiment = reader.int32() as any;
|
|
7824
|
+
message.prompts = longToNumber(reader.uint64());
|
|
8364
7825
|
continue;
|
|
8365
7826
|
}
|
|
8366
7827
|
}
|
|
@@ -8375,72 +7836,51 @@ export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
|
8375
7836
|
}
|
|
8376
7837
|
},
|
|
8377
7838
|
|
|
8378
|
-
fromJSON(object: any):
|
|
7839
|
+
fromJSON(object: any): AILabelCount {
|
|
8379
7840
|
return {
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
steering: isSet(object.steering) ? aIPromptSteeringFromJSON(object.steering) : 0,
|
|
8383
|
-
frustration: isSet(object.frustration) ? aIPromptFrustrationFromJSON(object.frustration) : 0,
|
|
8384
|
-
sentiment: isSet(object.sentiment) ? aIPromptSentimentFromJSON(object.sentiment) : 0,
|
|
7841
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
7842
|
+
prompts: isSet(object.prompts) ? globalThis.Number(object.prompts) : 0,
|
|
8385
7843
|
};
|
|
8386
7844
|
},
|
|
8387
7845
|
|
|
8388
|
-
toJSON(message:
|
|
7846
|
+
toJSON(message: AILabelCount): unknown {
|
|
8389
7847
|
const obj: any = {};
|
|
8390
|
-
if (message.
|
|
8391
|
-
obj.
|
|
8392
|
-
}
|
|
8393
|
-
if (message.clarity !== 0) {
|
|
8394
|
-
obj.clarity = aIPromptClarityToJSON(message.clarity);
|
|
8395
|
-
}
|
|
8396
|
-
if (message.steering !== 0) {
|
|
8397
|
-
obj.steering = aIPromptSteeringToJSON(message.steering);
|
|
8398
|
-
}
|
|
8399
|
-
if (message.frustration !== 0) {
|
|
8400
|
-
obj.frustration = aIPromptFrustrationToJSON(message.frustration);
|
|
7848
|
+
if (message.key !== "") {
|
|
7849
|
+
obj.key = message.key;
|
|
8401
7850
|
}
|
|
8402
|
-
if (message.
|
|
8403
|
-
obj.
|
|
7851
|
+
if (message.prompts !== 0) {
|
|
7852
|
+
obj.prompts = Math.round(message.prompts);
|
|
8404
7853
|
}
|
|
8405
7854
|
return obj;
|
|
8406
7855
|
},
|
|
8407
7856
|
|
|
8408
|
-
create<I extends Exact<DeepPartial<
|
|
8409
|
-
return
|
|
7857
|
+
create<I extends Exact<DeepPartial<AILabelCount>, I>>(base?: I): AILabelCount {
|
|
7858
|
+
return AILabelCount.fromPartial(base ?? ({} as any));
|
|
8410
7859
|
},
|
|
8411
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
8412
|
-
const message =
|
|
8413
|
-
message.
|
|
8414
|
-
message.
|
|
8415
|
-
message.steering = object.steering ?? 0;
|
|
8416
|
-
message.frustration = object.frustration ?? 0;
|
|
8417
|
-
message.sentiment = object.sentiment ?? 0;
|
|
7860
|
+
fromPartial<I extends Exact<DeepPartial<AILabelCount>, I>>(object: I): AILabelCount {
|
|
7861
|
+
const message = createBaseAILabelCount();
|
|
7862
|
+
message.key = object.key ?? "";
|
|
7863
|
+
message.prompts = object.prompts ?? 0;
|
|
8418
7864
|
return message;
|
|
8419
7865
|
},
|
|
8420
7866
|
};
|
|
8421
7867
|
|
|
8422
|
-
function
|
|
8423
|
-
return {
|
|
7868
|
+
function createBaseAIPromptLabels(): AIPromptLabels {
|
|
7869
|
+
return { steering: "", tone: "" };
|
|
8424
7870
|
}
|
|
8425
7871
|
|
|
8426
|
-
export const
|
|
8427
|
-
encode(message:
|
|
8428
|
-
if (message.
|
|
8429
|
-
writer.uint32(
|
|
8430
|
-
}
|
|
8431
|
-
for (const v of message.steeringCounts) {
|
|
8432
|
-
AIPromptSteeringCount.encode(v!, writer.uint32(18).fork()).join();
|
|
8433
|
-
}
|
|
8434
|
-
if (message.peakFrustration !== 0) {
|
|
8435
|
-
writer.uint32(24).int32(message.peakFrustration);
|
|
7872
|
+
export const AIPromptLabels: MessageFns<AIPromptLabels> = {
|
|
7873
|
+
encode(message: AIPromptLabels, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7874
|
+
if (message.steering !== "") {
|
|
7875
|
+
writer.uint32(10).string(message.steering);
|
|
8436
7876
|
}
|
|
8437
|
-
if (message.
|
|
8438
|
-
writer.uint32(
|
|
7877
|
+
if (message.tone !== "") {
|
|
7878
|
+
writer.uint32(18).string(message.tone);
|
|
8439
7879
|
}
|
|
8440
7880
|
return writer;
|
|
8441
7881
|
},
|
|
8442
7882
|
|
|
8443
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7883
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabels {
|
|
8444
7884
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8445
7885
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8446
7886
|
if (previousRecursionDepth >= 100) {
|
|
@@ -8449,16 +7889,16 @@ export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
|
8449
7889
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8450
7890
|
try {
|
|
8451
7891
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8452
|
-
const message =
|
|
7892
|
+
const message = createBaseAIPromptLabels();
|
|
8453
7893
|
while (reader.pos < end) {
|
|
8454
7894
|
const tag = reader.uint32();
|
|
8455
7895
|
switch (tag >>> 3) {
|
|
8456
7896
|
case 1: {
|
|
8457
|
-
if (tag !==
|
|
7897
|
+
if (tag !== 10) {
|
|
8458
7898
|
break;
|
|
8459
7899
|
}
|
|
8460
7900
|
|
|
8461
|
-
message.
|
|
7901
|
+
message.steering = reader.string();
|
|
8462
7902
|
continue;
|
|
8463
7903
|
}
|
|
8464
7904
|
case 2: {
|
|
@@ -8466,23 +7906,7 @@ export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
|
8466
7906
|
break;
|
|
8467
7907
|
}
|
|
8468
7908
|
|
|
8469
|
-
message.
|
|
8470
|
-
continue;
|
|
8471
|
-
}
|
|
8472
|
-
case 3: {
|
|
8473
|
-
if (tag !== 24) {
|
|
8474
|
-
break;
|
|
8475
|
-
}
|
|
8476
|
-
|
|
8477
|
-
message.peakFrustration = reader.int32() as any;
|
|
8478
|
-
continue;
|
|
8479
|
-
}
|
|
8480
|
-
case 4: {
|
|
8481
|
-
if (tag !== 32) {
|
|
8482
|
-
break;
|
|
8483
|
-
}
|
|
8484
|
-
|
|
8485
|
-
message.clearPrompts = longToNumber(reader.uint64());
|
|
7909
|
+
message.tone = reader.string();
|
|
8486
7910
|
continue;
|
|
8487
7911
|
}
|
|
8488
7912
|
}
|
|
@@ -8497,77 +7921,54 @@ export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
|
8497
7921
|
}
|
|
8498
7922
|
},
|
|
8499
7923
|
|
|
8500
|
-
fromJSON(object: any):
|
|
7924
|
+
fromJSON(object: any): AIPromptLabels {
|
|
8501
7925
|
return {
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
: isSet(object.labelled_prompts)
|
|
8505
|
-
? globalThis.Number(object.labelled_prompts)
|
|
8506
|
-
: 0,
|
|
8507
|
-
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
8508
|
-
? object.steeringCounts.map((e: any) => AIPromptSteeringCount.fromJSON(e))
|
|
8509
|
-
: globalThis.Array.isArray(object?.steering_counts)
|
|
8510
|
-
? object.steering_counts.map((e: any) => AIPromptSteeringCount.fromJSON(e))
|
|
8511
|
-
: [],
|
|
8512
|
-
peakFrustration: isSet(object.peakFrustration)
|
|
8513
|
-
? aIPromptFrustrationFromJSON(object.peakFrustration)
|
|
8514
|
-
: isSet(object.peak_frustration)
|
|
8515
|
-
? aIPromptFrustrationFromJSON(object.peak_frustration)
|
|
8516
|
-
: 0,
|
|
8517
|
-
clearPrompts: isSet(object.clearPrompts)
|
|
8518
|
-
? globalThis.Number(object.clearPrompts)
|
|
8519
|
-
: isSet(object.clear_prompts)
|
|
8520
|
-
? globalThis.Number(object.clear_prompts)
|
|
8521
|
-
: 0,
|
|
7926
|
+
steering: isSet(object.steering) ? globalThis.String(object.steering) : "",
|
|
7927
|
+
tone: isSet(object.tone) ? globalThis.String(object.tone) : "",
|
|
8522
7928
|
};
|
|
8523
7929
|
},
|
|
8524
7930
|
|
|
8525
|
-
toJSON(message:
|
|
7931
|
+
toJSON(message: AIPromptLabels): unknown {
|
|
8526
7932
|
const obj: any = {};
|
|
8527
|
-
if (message.
|
|
8528
|
-
obj.
|
|
8529
|
-
}
|
|
8530
|
-
if (message.steeringCounts?.length) {
|
|
8531
|
-
obj.steeringCounts = message.steeringCounts.map((e) => AIPromptSteeringCount.toJSON(e));
|
|
8532
|
-
}
|
|
8533
|
-
if (message.peakFrustration !== 0) {
|
|
8534
|
-
obj.peakFrustration = aIPromptFrustrationToJSON(message.peakFrustration);
|
|
7933
|
+
if (message.steering !== "") {
|
|
7934
|
+
obj.steering = message.steering;
|
|
8535
7935
|
}
|
|
8536
|
-
if (message.
|
|
8537
|
-
obj.
|
|
7936
|
+
if (message.tone !== "") {
|
|
7937
|
+
obj.tone = message.tone;
|
|
8538
7938
|
}
|
|
8539
7939
|
return obj;
|
|
8540
7940
|
},
|
|
8541
7941
|
|
|
8542
|
-
create<I extends Exact<DeepPartial<
|
|
8543
|
-
return
|
|
7942
|
+
create<I extends Exact<DeepPartial<AIPromptLabels>, I>>(base?: I): AIPromptLabels {
|
|
7943
|
+
return AIPromptLabels.fromPartial(base ?? ({} as any));
|
|
8544
7944
|
},
|
|
8545
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
8546
|
-
const message =
|
|
8547
|
-
message.
|
|
8548
|
-
message.
|
|
8549
|
-
message.peakFrustration = object.peakFrustration ?? 0;
|
|
8550
|
-
message.clearPrompts = object.clearPrompts ?? 0;
|
|
7945
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabels>, I>>(object: I): AIPromptLabels {
|
|
7946
|
+
const message = createBaseAIPromptLabels();
|
|
7947
|
+
message.steering = object.steering ?? "";
|
|
7948
|
+
message.tone = object.tone ?? "";
|
|
8551
7949
|
return message;
|
|
8552
7950
|
},
|
|
8553
7951
|
};
|
|
8554
7952
|
|
|
8555
|
-
function
|
|
8556
|
-
return {
|
|
7953
|
+
function createBaseAIPromptLabelSummary(): AIPromptLabelSummary {
|
|
7954
|
+
return { labelledPrompts: 0, steeringCounts: [], toneCounts: [] };
|
|
8557
7955
|
}
|
|
8558
7956
|
|
|
8559
|
-
export const
|
|
8560
|
-
encode(message:
|
|
8561
|
-
if (message.
|
|
8562
|
-
writer.uint32(8).
|
|
7957
|
+
export const AIPromptLabelSummary: MessageFns<AIPromptLabelSummary> = {
|
|
7958
|
+
encode(message: AIPromptLabelSummary, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
7959
|
+
if (message.labelledPrompts !== 0) {
|
|
7960
|
+
writer.uint32(8).uint64(message.labelledPrompts);
|
|
8563
7961
|
}
|
|
8564
|
-
|
|
8565
|
-
writer.uint32(
|
|
7962
|
+
for (const v of message.steeringCounts) {
|
|
7963
|
+
AILabelCount.encode(v!, writer.uint32(18).fork()).join();
|
|
7964
|
+
}
|
|
7965
|
+
for (const v of message.toneCounts) {
|
|
7966
|
+
AILabelCount.encode(v!, writer.uint32(26).fork()).join();
|
|
8566
7967
|
}
|
|
8567
7968
|
return writer;
|
|
8568
7969
|
},
|
|
8569
7970
|
|
|
8570
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
7971
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIPromptLabelSummary {
|
|
8571
7972
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8572
7973
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8573
7974
|
if (previousRecursionDepth >= 100) {
|
|
@@ -8576,7 +7977,7 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
8576
7977
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8577
7978
|
try {
|
|
8578
7979
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8579
|
-
const message =
|
|
7980
|
+
const message = createBaseAIPromptLabelSummary();
|
|
8580
7981
|
while (reader.pos < end) {
|
|
8581
7982
|
const tag = reader.uint32();
|
|
8582
7983
|
switch (tag >>> 3) {
|
|
@@ -8585,15 +7986,23 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
8585
7986
|
break;
|
|
8586
7987
|
}
|
|
8587
7988
|
|
|
8588
|
-
message.
|
|
7989
|
+
message.labelledPrompts = longToNumber(reader.uint64());
|
|
8589
7990
|
continue;
|
|
8590
7991
|
}
|
|
8591
7992
|
case 2: {
|
|
8592
|
-
if (tag !==
|
|
7993
|
+
if (tag !== 18) {
|
|
8593
7994
|
break;
|
|
8594
7995
|
}
|
|
8595
7996
|
|
|
8596
|
-
message.
|
|
7997
|
+
message.steeringCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
7998
|
+
continue;
|
|
7999
|
+
}
|
|
8000
|
+
case 3: {
|
|
8001
|
+
if (tag !== 26) {
|
|
8002
|
+
break;
|
|
8003
|
+
}
|
|
8004
|
+
|
|
8005
|
+
message.toneCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
8597
8006
|
continue;
|
|
8598
8007
|
}
|
|
8599
8008
|
}
|
|
@@ -8608,31 +8017,48 @@ export const AIPromptSteeringCount: MessageFns<AIPromptSteeringCount> = {
|
|
|
8608
8017
|
}
|
|
8609
8018
|
},
|
|
8610
8019
|
|
|
8611
|
-
fromJSON(object: any):
|
|
8020
|
+
fromJSON(object: any): AIPromptLabelSummary {
|
|
8612
8021
|
return {
|
|
8613
|
-
|
|
8614
|
-
|
|
8022
|
+
labelledPrompts: isSet(object.labelledPrompts)
|
|
8023
|
+
? globalThis.Number(object.labelledPrompts)
|
|
8024
|
+
: isSet(object.labelled_prompts)
|
|
8025
|
+
? globalThis.Number(object.labelled_prompts)
|
|
8026
|
+
: 0,
|
|
8027
|
+
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
8028
|
+
? object.steeringCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8029
|
+
: globalThis.Array.isArray(object?.steering_counts)
|
|
8030
|
+
? object.steering_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8031
|
+
: [],
|
|
8032
|
+
toneCounts: globalThis.Array.isArray(object?.toneCounts)
|
|
8033
|
+
? object.toneCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8034
|
+
: globalThis.Array.isArray(object?.tone_counts)
|
|
8035
|
+
? object.tone_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8036
|
+
: [],
|
|
8615
8037
|
};
|
|
8616
8038
|
},
|
|
8617
8039
|
|
|
8618
|
-
toJSON(message:
|
|
8040
|
+
toJSON(message: AIPromptLabelSummary): unknown {
|
|
8619
8041
|
const obj: any = {};
|
|
8620
|
-
if (message.
|
|
8621
|
-
obj.
|
|
8042
|
+
if (message.labelledPrompts !== 0) {
|
|
8043
|
+
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
8622
8044
|
}
|
|
8623
|
-
if (message.
|
|
8624
|
-
obj.
|
|
8045
|
+
if (message.steeringCounts?.length) {
|
|
8046
|
+
obj.steeringCounts = message.steeringCounts.map((e) => AILabelCount.toJSON(e));
|
|
8047
|
+
}
|
|
8048
|
+
if (message.toneCounts?.length) {
|
|
8049
|
+
obj.toneCounts = message.toneCounts.map((e) => AILabelCount.toJSON(e));
|
|
8625
8050
|
}
|
|
8626
8051
|
return obj;
|
|
8627
8052
|
},
|
|
8628
8053
|
|
|
8629
|
-
create<I extends Exact<DeepPartial<
|
|
8630
|
-
return
|
|
8054
|
+
create<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(base?: I): AIPromptLabelSummary {
|
|
8055
|
+
return AIPromptLabelSummary.fromPartial(base ?? ({} as any));
|
|
8631
8056
|
},
|
|
8632
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
8633
|
-
const message =
|
|
8634
|
-
message.
|
|
8635
|
-
message.
|
|
8057
|
+
fromPartial<I extends Exact<DeepPartial<AIPromptLabelSummary>, I>>(object: I): AIPromptLabelSummary {
|
|
8058
|
+
const message = createBaseAIPromptLabelSummary();
|
|
8059
|
+
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
8060
|
+
message.steeringCounts = object.steeringCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8061
|
+
message.toneCounts = object.toneCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8636
8062
|
return message;
|
|
8637
8063
|
},
|
|
8638
8064
|
};
|
|
@@ -8967,7 +8393,7 @@ export const GetPromptLabelTrendResponse: MessageFns<GetPromptLabelTrendResponse
|
|
|
8967
8393
|
};
|
|
8968
8394
|
|
|
8969
8395
|
function createBaseAIPromptLabelWeek(): AIPromptLabelWeek {
|
|
8970
|
-
return { weekStart: "", labelledPrompts: 0,
|
|
8396
|
+
return { weekStart: "", labelledPrompts: 0, steeringCounts: [], toneCounts: [] };
|
|
8971
8397
|
}
|
|
8972
8398
|
|
|
8973
8399
|
export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
@@ -8978,14 +8404,11 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
8978
8404
|
if (message.labelledPrompts !== 0) {
|
|
8979
8405
|
writer.uint32(16).uint64(message.labelledPrompts);
|
|
8980
8406
|
}
|
|
8981
|
-
|
|
8982
|
-
writer.uint32(
|
|
8983
|
-
}
|
|
8984
|
-
if (message.corrections !== 0) {
|
|
8985
|
-
writer.uint32(32).uint64(message.corrections);
|
|
8407
|
+
for (const v of message.steeringCounts) {
|
|
8408
|
+
AILabelCount.encode(v!, writer.uint32(26).fork()).join();
|
|
8986
8409
|
}
|
|
8987
|
-
|
|
8988
|
-
writer.uint32(
|
|
8410
|
+
for (const v of message.toneCounts) {
|
|
8411
|
+
AILabelCount.encode(v!, writer.uint32(34).fork()).join();
|
|
8989
8412
|
}
|
|
8990
8413
|
return writer;
|
|
8991
8414
|
},
|
|
@@ -9020,27 +8443,19 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9020
8443
|
continue;
|
|
9021
8444
|
}
|
|
9022
8445
|
case 3: {
|
|
9023
|
-
if (tag !==
|
|
8446
|
+
if (tag !== 26) {
|
|
9024
8447
|
break;
|
|
9025
8448
|
}
|
|
9026
8449
|
|
|
9027
|
-
message.
|
|
8450
|
+
message.steeringCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
9028
8451
|
continue;
|
|
9029
8452
|
}
|
|
9030
8453
|
case 4: {
|
|
9031
|
-
if (tag !==
|
|
9032
|
-
break;
|
|
9033
|
-
}
|
|
9034
|
-
|
|
9035
|
-
message.corrections = longToNumber(reader.uint64());
|
|
9036
|
-
continue;
|
|
9037
|
-
}
|
|
9038
|
-
case 5: {
|
|
9039
|
-
if (tag !== 40) {
|
|
8454
|
+
if (tag !== 34) {
|
|
9040
8455
|
break;
|
|
9041
8456
|
}
|
|
9042
8457
|
|
|
9043
|
-
message.
|
|
8458
|
+
message.toneCounts.push(AILabelCount.decode(reader, reader.uint32()));
|
|
9044
8459
|
continue;
|
|
9045
8460
|
}
|
|
9046
8461
|
}
|
|
@@ -9067,17 +8482,16 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9067
8482
|
: isSet(object.labelled_prompts)
|
|
9068
8483
|
? globalThis.Number(object.labelled_prompts)
|
|
9069
8484
|
: 0,
|
|
9070
|
-
|
|
9071
|
-
?
|
|
9072
|
-
:
|
|
9073
|
-
?
|
|
9074
|
-
:
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
: 0,
|
|
8485
|
+
steeringCounts: globalThis.Array.isArray(object?.steeringCounts)
|
|
8486
|
+
? object.steeringCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8487
|
+
: globalThis.Array.isArray(object?.steering_counts)
|
|
8488
|
+
? object.steering_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8489
|
+
: [],
|
|
8490
|
+
toneCounts: globalThis.Array.isArray(object?.toneCounts)
|
|
8491
|
+
? object.toneCounts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8492
|
+
: globalThis.Array.isArray(object?.tone_counts)
|
|
8493
|
+
? object.tone_counts.map((e: any) => AILabelCount.fromJSON(e))
|
|
8494
|
+
: [],
|
|
9081
8495
|
};
|
|
9082
8496
|
},
|
|
9083
8497
|
|
|
@@ -9089,14 +8503,11 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9089
8503
|
if (message.labelledPrompts !== 0) {
|
|
9090
8504
|
obj.labelledPrompts = Math.round(message.labelledPrompts);
|
|
9091
8505
|
}
|
|
9092
|
-
if (message.
|
|
9093
|
-
obj.
|
|
9094
|
-
}
|
|
9095
|
-
if (message.corrections !== 0) {
|
|
9096
|
-
obj.corrections = Math.round(message.corrections);
|
|
8506
|
+
if (message.steeringCounts?.length) {
|
|
8507
|
+
obj.steeringCounts = message.steeringCounts.map((e) => AILabelCount.toJSON(e));
|
|
9097
8508
|
}
|
|
9098
|
-
if (message.
|
|
9099
|
-
obj.
|
|
8509
|
+
if (message.toneCounts?.length) {
|
|
8510
|
+
obj.toneCounts = message.toneCounts.map((e) => AILabelCount.toJSON(e));
|
|
9100
8511
|
}
|
|
9101
8512
|
return obj;
|
|
9102
8513
|
},
|
|
@@ -9108,9 +8519,521 @@ export const AIPromptLabelWeek: MessageFns<AIPromptLabelWeek> = {
|
|
|
9108
8519
|
const message = createBaseAIPromptLabelWeek();
|
|
9109
8520
|
message.weekStart = object.weekStart ?? "";
|
|
9110
8521
|
message.labelledPrompts = object.labelledPrompts ?? 0;
|
|
9111
|
-
message.
|
|
9112
|
-
message.
|
|
9113
|
-
message
|
|
8522
|
+
message.steeringCounts = object.steeringCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8523
|
+
message.toneCounts = object.toneCounts?.map((e) => AILabelCount.fromPartial(e)) || [];
|
|
8524
|
+
return message;
|
|
8525
|
+
},
|
|
8526
|
+
};
|
|
8527
|
+
|
|
8528
|
+
function createBaseGetLabelCatalogRequest(): GetLabelCatalogRequest {
|
|
8529
|
+
return { organizationId: "", projectId: "" };
|
|
8530
|
+
}
|
|
8531
|
+
|
|
8532
|
+
export const GetLabelCatalogRequest: MessageFns<GetLabelCatalogRequest> = {
|
|
8533
|
+
encode(message: GetLabelCatalogRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8534
|
+
if (message.organizationId !== "") {
|
|
8535
|
+
writer.uint32(10).string(message.organizationId);
|
|
8536
|
+
}
|
|
8537
|
+
if (message.projectId !== "") {
|
|
8538
|
+
writer.uint32(18).string(message.projectId);
|
|
8539
|
+
}
|
|
8540
|
+
return writer;
|
|
8541
|
+
},
|
|
8542
|
+
|
|
8543
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLabelCatalogRequest {
|
|
8544
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8545
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8546
|
+
if (previousRecursionDepth >= 100) {
|
|
8547
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8548
|
+
}
|
|
8549
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8550
|
+
try {
|
|
8551
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8552
|
+
const message = createBaseGetLabelCatalogRequest();
|
|
8553
|
+
while (reader.pos < end) {
|
|
8554
|
+
const tag = reader.uint32();
|
|
8555
|
+
switch (tag >>> 3) {
|
|
8556
|
+
case 1: {
|
|
8557
|
+
if (tag !== 10) {
|
|
8558
|
+
break;
|
|
8559
|
+
}
|
|
8560
|
+
|
|
8561
|
+
message.organizationId = reader.string();
|
|
8562
|
+
continue;
|
|
8563
|
+
}
|
|
8564
|
+
case 2: {
|
|
8565
|
+
if (tag !== 18) {
|
|
8566
|
+
break;
|
|
8567
|
+
}
|
|
8568
|
+
|
|
8569
|
+
message.projectId = reader.string();
|
|
8570
|
+
continue;
|
|
8571
|
+
}
|
|
8572
|
+
}
|
|
8573
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8574
|
+
break;
|
|
8575
|
+
}
|
|
8576
|
+
reader.skip(tag & 7);
|
|
8577
|
+
}
|
|
8578
|
+
return message;
|
|
8579
|
+
} finally {
|
|
8580
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8581
|
+
}
|
|
8582
|
+
},
|
|
8583
|
+
|
|
8584
|
+
fromJSON(object: any): GetLabelCatalogRequest {
|
|
8585
|
+
return {
|
|
8586
|
+
organizationId: isSet(object.organizationId)
|
|
8587
|
+
? globalThis.String(object.organizationId)
|
|
8588
|
+
: isSet(object.organization_id)
|
|
8589
|
+
? globalThis.String(object.organization_id)
|
|
8590
|
+
: "",
|
|
8591
|
+
projectId: isSet(object.projectId)
|
|
8592
|
+
? globalThis.String(object.projectId)
|
|
8593
|
+
: isSet(object.project_id)
|
|
8594
|
+
? globalThis.String(object.project_id)
|
|
8595
|
+
: "",
|
|
8596
|
+
};
|
|
8597
|
+
},
|
|
8598
|
+
|
|
8599
|
+
toJSON(message: GetLabelCatalogRequest): unknown {
|
|
8600
|
+
const obj: any = {};
|
|
8601
|
+
if (message.organizationId !== "") {
|
|
8602
|
+
obj.organizationId = message.organizationId;
|
|
8603
|
+
}
|
|
8604
|
+
if (message.projectId !== "") {
|
|
8605
|
+
obj.projectId = message.projectId;
|
|
8606
|
+
}
|
|
8607
|
+
return obj;
|
|
8608
|
+
},
|
|
8609
|
+
|
|
8610
|
+
create<I extends Exact<DeepPartial<GetLabelCatalogRequest>, I>>(base?: I): GetLabelCatalogRequest {
|
|
8611
|
+
return GetLabelCatalogRequest.fromPartial(base ?? ({} as any));
|
|
8612
|
+
},
|
|
8613
|
+
fromPartial<I extends Exact<DeepPartial<GetLabelCatalogRequest>, I>>(object: I): GetLabelCatalogRequest {
|
|
8614
|
+
const message = createBaseGetLabelCatalogRequest();
|
|
8615
|
+
message.organizationId = object.organizationId ?? "";
|
|
8616
|
+
message.projectId = object.projectId ?? "";
|
|
8617
|
+
return message;
|
|
8618
|
+
},
|
|
8619
|
+
};
|
|
8620
|
+
|
|
8621
|
+
function createBaseGetLabelCatalogResponse(): GetLabelCatalogResponse {
|
|
8622
|
+
return { status: undefined, sessionLabels: undefined, promptLabels: undefined };
|
|
8623
|
+
}
|
|
8624
|
+
|
|
8625
|
+
export const GetLabelCatalogResponse: MessageFns<GetLabelCatalogResponse> = {
|
|
8626
|
+
encode(message: GetLabelCatalogResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8627
|
+
if (message.status !== undefined) {
|
|
8628
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
8629
|
+
}
|
|
8630
|
+
if (message.sessionLabels !== undefined) {
|
|
8631
|
+
AILabelSet.encode(message.sessionLabels, writer.uint32(18).fork()).join();
|
|
8632
|
+
}
|
|
8633
|
+
if (message.promptLabels !== undefined) {
|
|
8634
|
+
AILabelSet.encode(message.promptLabels, writer.uint32(26).fork()).join();
|
|
8635
|
+
}
|
|
8636
|
+
return writer;
|
|
8637
|
+
},
|
|
8638
|
+
|
|
8639
|
+
decode(input: BinaryReader | Uint8Array, length?: number): GetLabelCatalogResponse {
|
|
8640
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8641
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8642
|
+
if (previousRecursionDepth >= 100) {
|
|
8643
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8644
|
+
}
|
|
8645
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8646
|
+
try {
|
|
8647
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8648
|
+
const message = createBaseGetLabelCatalogResponse();
|
|
8649
|
+
while (reader.pos < end) {
|
|
8650
|
+
const tag = reader.uint32();
|
|
8651
|
+
switch (tag >>> 3) {
|
|
8652
|
+
case 1: {
|
|
8653
|
+
if (tag !== 10) {
|
|
8654
|
+
break;
|
|
8655
|
+
}
|
|
8656
|
+
|
|
8657
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
8658
|
+
continue;
|
|
8659
|
+
}
|
|
8660
|
+
case 2: {
|
|
8661
|
+
if (tag !== 18) {
|
|
8662
|
+
break;
|
|
8663
|
+
}
|
|
8664
|
+
|
|
8665
|
+
message.sessionLabels = AILabelSet.decode(reader, reader.uint32());
|
|
8666
|
+
continue;
|
|
8667
|
+
}
|
|
8668
|
+
case 3: {
|
|
8669
|
+
if (tag !== 26) {
|
|
8670
|
+
break;
|
|
8671
|
+
}
|
|
8672
|
+
|
|
8673
|
+
message.promptLabels = AILabelSet.decode(reader, reader.uint32());
|
|
8674
|
+
continue;
|
|
8675
|
+
}
|
|
8676
|
+
}
|
|
8677
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8678
|
+
break;
|
|
8679
|
+
}
|
|
8680
|
+
reader.skip(tag & 7);
|
|
8681
|
+
}
|
|
8682
|
+
return message;
|
|
8683
|
+
} finally {
|
|
8684
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8685
|
+
}
|
|
8686
|
+
},
|
|
8687
|
+
|
|
8688
|
+
fromJSON(object: any): GetLabelCatalogResponse {
|
|
8689
|
+
return {
|
|
8690
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
8691
|
+
sessionLabels: isSet(object.sessionLabels)
|
|
8692
|
+
? AILabelSet.fromJSON(object.sessionLabels)
|
|
8693
|
+
: isSet(object.session_labels)
|
|
8694
|
+
? AILabelSet.fromJSON(object.session_labels)
|
|
8695
|
+
: undefined,
|
|
8696
|
+
promptLabels: isSet(object.promptLabels)
|
|
8697
|
+
? AILabelSet.fromJSON(object.promptLabels)
|
|
8698
|
+
: isSet(object.prompt_labels)
|
|
8699
|
+
? AILabelSet.fromJSON(object.prompt_labels)
|
|
8700
|
+
: undefined,
|
|
8701
|
+
};
|
|
8702
|
+
},
|
|
8703
|
+
|
|
8704
|
+
toJSON(message: GetLabelCatalogResponse): unknown {
|
|
8705
|
+
const obj: any = {};
|
|
8706
|
+
if (message.status !== undefined) {
|
|
8707
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
8708
|
+
}
|
|
8709
|
+
if (message.sessionLabels !== undefined) {
|
|
8710
|
+
obj.sessionLabels = AILabelSet.toJSON(message.sessionLabels);
|
|
8711
|
+
}
|
|
8712
|
+
if (message.promptLabels !== undefined) {
|
|
8713
|
+
obj.promptLabels = AILabelSet.toJSON(message.promptLabels);
|
|
8714
|
+
}
|
|
8715
|
+
return obj;
|
|
8716
|
+
},
|
|
8717
|
+
|
|
8718
|
+
create<I extends Exact<DeepPartial<GetLabelCatalogResponse>, I>>(base?: I): GetLabelCatalogResponse {
|
|
8719
|
+
return GetLabelCatalogResponse.fromPartial(base ?? ({} as any));
|
|
8720
|
+
},
|
|
8721
|
+
fromPartial<I extends Exact<DeepPartial<GetLabelCatalogResponse>, I>>(object: I): GetLabelCatalogResponse {
|
|
8722
|
+
const message = createBaseGetLabelCatalogResponse();
|
|
8723
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
8724
|
+
? ResponseStatus.fromPartial(object.status)
|
|
8725
|
+
: undefined;
|
|
8726
|
+
message.sessionLabels = (object.sessionLabels !== undefined && object.sessionLabels !== null)
|
|
8727
|
+
? AILabelSet.fromPartial(object.sessionLabels)
|
|
8728
|
+
: undefined;
|
|
8729
|
+
message.promptLabels = (object.promptLabels !== undefined && object.promptLabels !== null)
|
|
8730
|
+
? AILabelSet.fromPartial(object.promptLabels)
|
|
8731
|
+
: undefined;
|
|
8732
|
+
return message;
|
|
8733
|
+
},
|
|
8734
|
+
};
|
|
8735
|
+
|
|
8736
|
+
function createBaseAILabelSet(): AILabelSet {
|
|
8737
|
+
return { version: "", dimensions: [] };
|
|
8738
|
+
}
|
|
8739
|
+
|
|
8740
|
+
export const AILabelSet: MessageFns<AILabelSet> = {
|
|
8741
|
+
encode(message: AILabelSet, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8742
|
+
if (message.version !== "") {
|
|
8743
|
+
writer.uint32(10).string(message.version);
|
|
8744
|
+
}
|
|
8745
|
+
for (const v of message.dimensions) {
|
|
8746
|
+
AILabelDimension.encode(v!, writer.uint32(18).fork()).join();
|
|
8747
|
+
}
|
|
8748
|
+
return writer;
|
|
8749
|
+
},
|
|
8750
|
+
|
|
8751
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelSet {
|
|
8752
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8753
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8754
|
+
if (previousRecursionDepth >= 100) {
|
|
8755
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8756
|
+
}
|
|
8757
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8758
|
+
try {
|
|
8759
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8760
|
+
const message = createBaseAILabelSet();
|
|
8761
|
+
while (reader.pos < end) {
|
|
8762
|
+
const tag = reader.uint32();
|
|
8763
|
+
switch (tag >>> 3) {
|
|
8764
|
+
case 1: {
|
|
8765
|
+
if (tag !== 10) {
|
|
8766
|
+
break;
|
|
8767
|
+
}
|
|
8768
|
+
|
|
8769
|
+
message.version = reader.string();
|
|
8770
|
+
continue;
|
|
8771
|
+
}
|
|
8772
|
+
case 2: {
|
|
8773
|
+
if (tag !== 18) {
|
|
8774
|
+
break;
|
|
8775
|
+
}
|
|
8776
|
+
|
|
8777
|
+
message.dimensions.push(AILabelDimension.decode(reader, reader.uint32()));
|
|
8778
|
+
continue;
|
|
8779
|
+
}
|
|
8780
|
+
}
|
|
8781
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8782
|
+
break;
|
|
8783
|
+
}
|
|
8784
|
+
reader.skip(tag & 7);
|
|
8785
|
+
}
|
|
8786
|
+
return message;
|
|
8787
|
+
} finally {
|
|
8788
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8789
|
+
}
|
|
8790
|
+
},
|
|
8791
|
+
|
|
8792
|
+
fromJSON(object: any): AILabelSet {
|
|
8793
|
+
return {
|
|
8794
|
+
version: isSet(object.version) ? globalThis.String(object.version) : "",
|
|
8795
|
+
dimensions: globalThis.Array.isArray(object?.dimensions)
|
|
8796
|
+
? object.dimensions.map((e: any) => AILabelDimension.fromJSON(e))
|
|
8797
|
+
: [],
|
|
8798
|
+
};
|
|
8799
|
+
},
|
|
8800
|
+
|
|
8801
|
+
toJSON(message: AILabelSet): unknown {
|
|
8802
|
+
const obj: any = {};
|
|
8803
|
+
if (message.version !== "") {
|
|
8804
|
+
obj.version = message.version;
|
|
8805
|
+
}
|
|
8806
|
+
if (message.dimensions?.length) {
|
|
8807
|
+
obj.dimensions = message.dimensions.map((e) => AILabelDimension.toJSON(e));
|
|
8808
|
+
}
|
|
8809
|
+
return obj;
|
|
8810
|
+
},
|
|
8811
|
+
|
|
8812
|
+
create<I extends Exact<DeepPartial<AILabelSet>, I>>(base?: I): AILabelSet {
|
|
8813
|
+
return AILabelSet.fromPartial(base ?? ({} as any));
|
|
8814
|
+
},
|
|
8815
|
+
fromPartial<I extends Exact<DeepPartial<AILabelSet>, I>>(object: I): AILabelSet {
|
|
8816
|
+
const message = createBaseAILabelSet();
|
|
8817
|
+
message.version = object.version ?? "";
|
|
8818
|
+
message.dimensions = object.dimensions?.map((e) => AILabelDimension.fromPartial(e)) || [];
|
|
8819
|
+
return message;
|
|
8820
|
+
},
|
|
8821
|
+
};
|
|
8822
|
+
|
|
8823
|
+
function createBaseAILabelDimension(): AILabelDimension {
|
|
8824
|
+
return { key: "", name: "", values: [] };
|
|
8825
|
+
}
|
|
8826
|
+
|
|
8827
|
+
export const AILabelDimension: MessageFns<AILabelDimension> = {
|
|
8828
|
+
encode(message: AILabelDimension, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8829
|
+
if (message.key !== "") {
|
|
8830
|
+
writer.uint32(10).string(message.key);
|
|
8831
|
+
}
|
|
8832
|
+
if (message.name !== "") {
|
|
8833
|
+
writer.uint32(18).string(message.name);
|
|
8834
|
+
}
|
|
8835
|
+
for (const v of message.values) {
|
|
8836
|
+
AILabelValue.encode(v!, writer.uint32(26).fork()).join();
|
|
8837
|
+
}
|
|
8838
|
+
return writer;
|
|
8839
|
+
},
|
|
8840
|
+
|
|
8841
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelDimension {
|
|
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 = createBaseAILabelDimension();
|
|
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.key = reader.string();
|
|
8860
|
+
continue;
|
|
8861
|
+
}
|
|
8862
|
+
case 2: {
|
|
8863
|
+
if (tag !== 18) {
|
|
8864
|
+
break;
|
|
8865
|
+
}
|
|
8866
|
+
|
|
8867
|
+
message.name = reader.string();
|
|
8868
|
+
continue;
|
|
8869
|
+
}
|
|
8870
|
+
case 3: {
|
|
8871
|
+
if (tag !== 26) {
|
|
8872
|
+
break;
|
|
8873
|
+
}
|
|
8874
|
+
|
|
8875
|
+
message.values.push(AILabelValue.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): AILabelDimension {
|
|
8891
|
+
return {
|
|
8892
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
8893
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
8894
|
+
values: globalThis.Array.isArray(object?.values) ? object.values.map((e: any) => AILabelValue.fromJSON(e)) : [],
|
|
8895
|
+
};
|
|
8896
|
+
},
|
|
8897
|
+
|
|
8898
|
+
toJSON(message: AILabelDimension): unknown {
|
|
8899
|
+
const obj: any = {};
|
|
8900
|
+
if (message.key !== "") {
|
|
8901
|
+
obj.key = message.key;
|
|
8902
|
+
}
|
|
8903
|
+
if (message.name !== "") {
|
|
8904
|
+
obj.name = message.name;
|
|
8905
|
+
}
|
|
8906
|
+
if (message.values?.length) {
|
|
8907
|
+
obj.values = message.values.map((e) => AILabelValue.toJSON(e));
|
|
8908
|
+
}
|
|
8909
|
+
return obj;
|
|
8910
|
+
},
|
|
8911
|
+
|
|
8912
|
+
create<I extends Exact<DeepPartial<AILabelDimension>, I>>(base?: I): AILabelDimension {
|
|
8913
|
+
return AILabelDimension.fromPartial(base ?? ({} as any));
|
|
8914
|
+
},
|
|
8915
|
+
fromPartial<I extends Exact<DeepPartial<AILabelDimension>, I>>(object: I): AILabelDimension {
|
|
8916
|
+
const message = createBaseAILabelDimension();
|
|
8917
|
+
message.key = object.key ?? "";
|
|
8918
|
+
message.name = object.name ?? "";
|
|
8919
|
+
message.values = object.values?.map((e) => AILabelValue.fromPartial(e)) || [];
|
|
8920
|
+
return message;
|
|
8921
|
+
},
|
|
8922
|
+
};
|
|
8923
|
+
|
|
8924
|
+
function createBaseAILabelValue(): AILabelValue {
|
|
8925
|
+
return { key: "", name: "", tooltip: "", rating: 0 };
|
|
8926
|
+
}
|
|
8927
|
+
|
|
8928
|
+
export const AILabelValue: MessageFns<AILabelValue> = {
|
|
8929
|
+
encode(message: AILabelValue, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
8930
|
+
if (message.key !== "") {
|
|
8931
|
+
writer.uint32(10).string(message.key);
|
|
8932
|
+
}
|
|
8933
|
+
if (message.name !== "") {
|
|
8934
|
+
writer.uint32(18).string(message.name);
|
|
8935
|
+
}
|
|
8936
|
+
if (message.tooltip !== "") {
|
|
8937
|
+
writer.uint32(26).string(message.tooltip);
|
|
8938
|
+
}
|
|
8939
|
+
if (message.rating !== 0) {
|
|
8940
|
+
writer.uint32(32).int32(message.rating);
|
|
8941
|
+
}
|
|
8942
|
+
return writer;
|
|
8943
|
+
},
|
|
8944
|
+
|
|
8945
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AILabelValue {
|
|
8946
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8947
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
8948
|
+
if (previousRecursionDepth >= 100) {
|
|
8949
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
8950
|
+
}
|
|
8951
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
8952
|
+
try {
|
|
8953
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8954
|
+
const message = createBaseAILabelValue();
|
|
8955
|
+
while (reader.pos < end) {
|
|
8956
|
+
const tag = reader.uint32();
|
|
8957
|
+
switch (tag >>> 3) {
|
|
8958
|
+
case 1: {
|
|
8959
|
+
if (tag !== 10) {
|
|
8960
|
+
break;
|
|
8961
|
+
}
|
|
8962
|
+
|
|
8963
|
+
message.key = reader.string();
|
|
8964
|
+
continue;
|
|
8965
|
+
}
|
|
8966
|
+
case 2: {
|
|
8967
|
+
if (tag !== 18) {
|
|
8968
|
+
break;
|
|
8969
|
+
}
|
|
8970
|
+
|
|
8971
|
+
message.name = reader.string();
|
|
8972
|
+
continue;
|
|
8973
|
+
}
|
|
8974
|
+
case 3: {
|
|
8975
|
+
if (tag !== 26) {
|
|
8976
|
+
break;
|
|
8977
|
+
}
|
|
8978
|
+
|
|
8979
|
+
message.tooltip = reader.string();
|
|
8980
|
+
continue;
|
|
8981
|
+
}
|
|
8982
|
+
case 4: {
|
|
8983
|
+
if (tag !== 32) {
|
|
8984
|
+
break;
|
|
8985
|
+
}
|
|
8986
|
+
|
|
8987
|
+
message.rating = reader.int32() as any;
|
|
8988
|
+
continue;
|
|
8989
|
+
}
|
|
8990
|
+
}
|
|
8991
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8992
|
+
break;
|
|
8993
|
+
}
|
|
8994
|
+
reader.skip(tag & 7);
|
|
8995
|
+
}
|
|
8996
|
+
return message;
|
|
8997
|
+
} finally {
|
|
8998
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
8999
|
+
}
|
|
9000
|
+
},
|
|
9001
|
+
|
|
9002
|
+
fromJSON(object: any): AILabelValue {
|
|
9003
|
+
return {
|
|
9004
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
9005
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
9006
|
+
tooltip: isSet(object.tooltip) ? globalThis.String(object.tooltip) : "",
|
|
9007
|
+
rating: isSet(object.rating) ? aILabelRatingFromJSON(object.rating) : 0,
|
|
9008
|
+
};
|
|
9009
|
+
},
|
|
9010
|
+
|
|
9011
|
+
toJSON(message: AILabelValue): unknown {
|
|
9012
|
+
const obj: any = {};
|
|
9013
|
+
if (message.key !== "") {
|
|
9014
|
+
obj.key = message.key;
|
|
9015
|
+
}
|
|
9016
|
+
if (message.name !== "") {
|
|
9017
|
+
obj.name = message.name;
|
|
9018
|
+
}
|
|
9019
|
+
if (message.tooltip !== "") {
|
|
9020
|
+
obj.tooltip = message.tooltip;
|
|
9021
|
+
}
|
|
9022
|
+
if (message.rating !== 0) {
|
|
9023
|
+
obj.rating = aILabelRatingToJSON(message.rating);
|
|
9024
|
+
}
|
|
9025
|
+
return obj;
|
|
9026
|
+
},
|
|
9027
|
+
|
|
9028
|
+
create<I extends Exact<DeepPartial<AILabelValue>, I>>(base?: I): AILabelValue {
|
|
9029
|
+
return AILabelValue.fromPartial(base ?? ({} as any));
|
|
9030
|
+
},
|
|
9031
|
+
fromPartial<I extends Exact<DeepPartial<AILabelValue>, I>>(object: I): AILabelValue {
|
|
9032
|
+
const message = createBaseAILabelValue();
|
|
9033
|
+
message.key = object.key ?? "";
|
|
9034
|
+
message.name = object.name ?? "";
|
|
9035
|
+
message.tooltip = object.tooltip ?? "";
|
|
9036
|
+
message.rating = object.rating ?? 0;
|
|
9114
9037
|
return message;
|
|
9115
9038
|
},
|
|
9116
9039
|
};
|
|
@@ -33444,25 +33367,28 @@ export const IssueSession: MessageFns<IssueSession> = {
|
|
|
33444
33367
|
},
|
|
33445
33368
|
};
|
|
33446
33369
|
|
|
33447
|
-
function
|
|
33448
|
-
return { organizationId: "", projectId: "",
|
|
33370
|
+
function createBaseListProjectInsightCardsRequest(): ListProjectInsightCardsRequest {
|
|
33371
|
+
return { organizationId: "", projectId: "", pageSize: 0, pageToken: "" };
|
|
33449
33372
|
}
|
|
33450
33373
|
|
|
33451
|
-
export const
|
|
33452
|
-
encode(message:
|
|
33374
|
+
export const ListProjectInsightCardsRequest: MessageFns<ListProjectInsightCardsRequest> = {
|
|
33375
|
+
encode(message: ListProjectInsightCardsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
33453
33376
|
if (message.organizationId !== "") {
|
|
33454
33377
|
writer.uint32(10).string(message.organizationId);
|
|
33455
33378
|
}
|
|
33456
33379
|
if (message.projectId !== "") {
|
|
33457
33380
|
writer.uint32(18).string(message.projectId);
|
|
33458
33381
|
}
|
|
33459
|
-
if (message.
|
|
33460
|
-
writer.uint32(24).int32(message.
|
|
33382
|
+
if (message.pageSize !== 0) {
|
|
33383
|
+
writer.uint32(24).int32(message.pageSize);
|
|
33384
|
+
}
|
|
33385
|
+
if (message.pageToken !== "") {
|
|
33386
|
+
writer.uint32(34).string(message.pageToken);
|
|
33461
33387
|
}
|
|
33462
33388
|
return writer;
|
|
33463
33389
|
},
|
|
33464
33390
|
|
|
33465
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
33391
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListProjectInsightCardsRequest {
|
|
33466
33392
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33467
33393
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
33468
33394
|
if (previousRecursionDepth >= 100) {
|
|
@@ -33471,7 +33397,7 @@ export const ListProjectInsightsRequest: MessageFns<ListProjectInsightsRequest>
|
|
|
33471
33397
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
33472
33398
|
try {
|
|
33473
33399
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
33474
|
-
const message =
|
|
33400
|
+
const message = createBaseListProjectInsightCardsRequest();
|
|
33475
33401
|
while (reader.pos < end) {
|
|
33476
33402
|
const tag = reader.uint32();
|
|
33477
33403
|
switch (tag >>> 3) {
|
|
@@ -33496,7 +33422,15 @@ export const ListProjectInsightsRequest: MessageFns<ListProjectInsightsRequest>
|
|
|
33496
33422
|
break;
|
|
33497
33423
|
}
|
|
33498
33424
|
|
|
33499
|
-
message.
|
|
33425
|
+
message.pageSize = reader.int32();
|
|
33426
|
+
continue;
|
|
33427
|
+
}
|
|
33428
|
+
case 4: {
|
|
33429
|
+
if (tag !== 34) {
|
|
33430
|
+
break;
|
|
33431
|
+
}
|
|
33432
|
+
|
|
33433
|
+
message.pageToken = reader.string();
|
|
33500
33434
|
continue;
|
|
33501
33435
|
}
|
|
33502
33436
|
}
|
|
@@ -33511,7 +33445,7 @@ export const ListProjectInsightsRequest: MessageFns<ListProjectInsightsRequest>
|
|
|
33511
33445
|
}
|
|
33512
33446
|
},
|
|
33513
33447
|
|
|
33514
|
-
fromJSON(object: any):
|
|
33448
|
+
fromJSON(object: any): ListProjectInsightCardsRequest {
|
|
33515
33449
|
return {
|
|
33516
33450
|
organizationId: isSet(object.organizationId)
|
|
33517
33451
|
? globalThis.String(object.organizationId)
|
|
@@ -33523,11 +33457,20 @@ export const ListProjectInsightsRequest: MessageFns<ListProjectInsightsRequest>
|
|
|
33523
33457
|
: isSet(object.project_id)
|
|
33524
33458
|
? globalThis.String(object.project_id)
|
|
33525
33459
|
: "",
|
|
33526
|
-
|
|
33460
|
+
pageSize: isSet(object.pageSize)
|
|
33461
|
+
? globalThis.Number(object.pageSize)
|
|
33462
|
+
: isSet(object.page_size)
|
|
33463
|
+
? globalThis.Number(object.page_size)
|
|
33464
|
+
: 0,
|
|
33465
|
+
pageToken: isSet(object.pageToken)
|
|
33466
|
+
? globalThis.String(object.pageToken)
|
|
33467
|
+
: isSet(object.page_token)
|
|
33468
|
+
? globalThis.String(object.page_token)
|
|
33469
|
+
: "",
|
|
33527
33470
|
};
|
|
33528
33471
|
},
|
|
33529
33472
|
|
|
33530
|
-
toJSON(message:
|
|
33473
|
+
toJSON(message: ListProjectInsightCardsRequest): unknown {
|
|
33531
33474
|
const obj: any = {};
|
|
33532
33475
|
if (message.organizationId !== "") {
|
|
33533
33476
|
obj.organizationId = message.organizationId;
|
|
@@ -33535,46 +33478,49 @@ export const ListProjectInsightsRequest: MessageFns<ListProjectInsightsRequest>
|
|
|
33535
33478
|
if (message.projectId !== "") {
|
|
33536
33479
|
obj.projectId = message.projectId;
|
|
33537
33480
|
}
|
|
33538
|
-
if (message.
|
|
33539
|
-
obj.
|
|
33481
|
+
if (message.pageSize !== 0) {
|
|
33482
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
33483
|
+
}
|
|
33484
|
+
if (message.pageToken !== "") {
|
|
33485
|
+
obj.pageToken = message.pageToken;
|
|
33540
33486
|
}
|
|
33541
33487
|
return obj;
|
|
33542
33488
|
},
|
|
33543
33489
|
|
|
33544
|
-
create<I extends Exact<DeepPartial<
|
|
33545
|
-
return
|
|
33490
|
+
create<I extends Exact<DeepPartial<ListProjectInsightCardsRequest>, I>>(base?: I): ListProjectInsightCardsRequest {
|
|
33491
|
+
return ListProjectInsightCardsRequest.fromPartial(base ?? ({} as any));
|
|
33546
33492
|
},
|
|
33547
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
33548
|
-
|
|
33493
|
+
fromPartial<I extends Exact<DeepPartial<ListProjectInsightCardsRequest>, I>>(
|
|
33494
|
+
object: I,
|
|
33495
|
+
): ListProjectInsightCardsRequest {
|
|
33496
|
+
const message = createBaseListProjectInsightCardsRequest();
|
|
33549
33497
|
message.organizationId = object.organizationId ?? "";
|
|
33550
33498
|
message.projectId = object.projectId ?? "";
|
|
33551
|
-
message.
|
|
33499
|
+
message.pageSize = object.pageSize ?? 0;
|
|
33500
|
+
message.pageToken = object.pageToken ?? "";
|
|
33552
33501
|
return message;
|
|
33553
33502
|
},
|
|
33554
33503
|
};
|
|
33555
33504
|
|
|
33556
|
-
function
|
|
33557
|
-
return { status: undefined,
|
|
33505
|
+
function createBaseListProjectInsightCardsResponse(): ListProjectInsightCardsResponse {
|
|
33506
|
+
return { status: undefined, cards: [], nextPageToken: "" };
|
|
33558
33507
|
}
|
|
33559
33508
|
|
|
33560
|
-
export const
|
|
33561
|
-
encode(message:
|
|
33509
|
+
export const ListProjectInsightCardsResponse: MessageFns<ListProjectInsightCardsResponse> = {
|
|
33510
|
+
encode(message: ListProjectInsightCardsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
33562
33511
|
if (message.status !== undefined) {
|
|
33563
33512
|
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
33564
33513
|
}
|
|
33565
|
-
|
|
33566
|
-
writer.uint32(
|
|
33567
|
-
}
|
|
33568
|
-
if (message.current !== undefined) {
|
|
33569
|
-
AIProjectInsightRun.encode(message.current, writer.uint32(26).fork()).join();
|
|
33514
|
+
for (const v of message.cards) {
|
|
33515
|
+
AIProjectInsightCard.encode(v!, writer.uint32(18).fork()).join();
|
|
33570
33516
|
}
|
|
33571
|
-
if (message.
|
|
33572
|
-
|
|
33517
|
+
if (message.nextPageToken !== "") {
|
|
33518
|
+
writer.uint32(26).string(message.nextPageToken);
|
|
33573
33519
|
}
|
|
33574
33520
|
return writer;
|
|
33575
33521
|
},
|
|
33576
33522
|
|
|
33577
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
33523
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ListProjectInsightCardsResponse {
|
|
33578
33524
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33579
33525
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
33580
33526
|
if (previousRecursionDepth >= 100) {
|
|
@@ -33583,7 +33529,7 @@ export const ListProjectInsightsResponse: MessageFns<ListProjectInsightsResponse
|
|
|
33583
33529
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
33584
33530
|
try {
|
|
33585
33531
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
33586
|
-
const message =
|
|
33532
|
+
const message = createBaseListProjectInsightCardsResponse();
|
|
33587
33533
|
while (reader.pos < end) {
|
|
33588
33534
|
const tag = reader.uint32();
|
|
33589
33535
|
switch (tag >>> 3) {
|
|
@@ -33596,11 +33542,11 @@ export const ListProjectInsightsResponse: MessageFns<ListProjectInsightsResponse
|
|
|
33596
33542
|
continue;
|
|
33597
33543
|
}
|
|
33598
33544
|
case 2: {
|
|
33599
|
-
if (tag !==
|
|
33545
|
+
if (tag !== 18) {
|
|
33600
33546
|
break;
|
|
33601
33547
|
}
|
|
33602
33548
|
|
|
33603
|
-
message.
|
|
33549
|
+
message.cards.push(AIProjectInsightCard.decode(reader, reader.uint32()));
|
|
33604
33550
|
continue;
|
|
33605
33551
|
}
|
|
33606
33552
|
case 3: {
|
|
@@ -33608,15 +33554,7 @@ export const ListProjectInsightsResponse: MessageFns<ListProjectInsightsResponse
|
|
|
33608
33554
|
break;
|
|
33609
33555
|
}
|
|
33610
33556
|
|
|
33611
|
-
message.
|
|
33612
|
-
continue;
|
|
33613
|
-
}
|
|
33614
|
-
case 4: {
|
|
33615
|
-
if (tag !== 34) {
|
|
33616
|
-
break;
|
|
33617
|
-
}
|
|
33618
|
-
|
|
33619
|
-
message.previous = AIProjectInsightRun.decode(reader, reader.uint32());
|
|
33557
|
+
message.nextPageToken = reader.string();
|
|
33620
33558
|
continue;
|
|
33621
33559
|
}
|
|
33622
33560
|
}
|
|
@@ -33631,80 +33569,61 @@ export const ListProjectInsightsResponse: MessageFns<ListProjectInsightsResponse
|
|
|
33631
33569
|
}
|
|
33632
33570
|
},
|
|
33633
33571
|
|
|
33634
|
-
fromJSON(object: any):
|
|
33572
|
+
fromJSON(object: any): ListProjectInsightCardsResponse {
|
|
33635
33573
|
return {
|
|
33636
33574
|
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
33637
|
-
|
|
33638
|
-
|
|
33639
|
-
|
|
33575
|
+
cards: globalThis.Array.isArray(object?.cards)
|
|
33576
|
+
? object.cards.map((e: any) => AIProjectInsightCard.fromJSON(e))
|
|
33577
|
+
: [],
|
|
33578
|
+
nextPageToken: isSet(object.nextPageToken)
|
|
33579
|
+
? globalThis.String(object.nextPageToken)
|
|
33580
|
+
: isSet(object.next_page_token)
|
|
33581
|
+
? globalThis.String(object.next_page_token)
|
|
33582
|
+
: "",
|
|
33640
33583
|
};
|
|
33641
33584
|
},
|
|
33642
33585
|
|
|
33643
|
-
toJSON(message:
|
|
33586
|
+
toJSON(message: ListProjectInsightCardsResponse): unknown {
|
|
33644
33587
|
const obj: any = {};
|
|
33645
33588
|
if (message.status !== undefined) {
|
|
33646
33589
|
obj.status = ResponseStatus.toJSON(message.status);
|
|
33647
33590
|
}
|
|
33648
|
-
if (message.
|
|
33649
|
-
obj.
|
|
33650
|
-
}
|
|
33651
|
-
if (message.current !== undefined) {
|
|
33652
|
-
obj.current = AIProjectInsightRun.toJSON(message.current);
|
|
33591
|
+
if (message.cards?.length) {
|
|
33592
|
+
obj.cards = message.cards.map((e) => AIProjectInsightCard.toJSON(e));
|
|
33653
33593
|
}
|
|
33654
|
-
if (message.
|
|
33655
|
-
obj.
|
|
33594
|
+
if (message.nextPageToken !== "") {
|
|
33595
|
+
obj.nextPageToken = message.nextPageToken;
|
|
33656
33596
|
}
|
|
33657
33597
|
return obj;
|
|
33658
33598
|
},
|
|
33659
33599
|
|
|
33660
|
-
create<I extends Exact<DeepPartial<
|
|
33661
|
-
return
|
|
33600
|
+
create<I extends Exact<DeepPartial<ListProjectInsightCardsResponse>, I>>(base?: I): ListProjectInsightCardsResponse {
|
|
33601
|
+
return ListProjectInsightCardsResponse.fromPartial(base ?? ({} as any));
|
|
33662
33602
|
},
|
|
33663
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
33664
|
-
|
|
33603
|
+
fromPartial<I extends Exact<DeepPartial<ListProjectInsightCardsResponse>, I>>(
|
|
33604
|
+
object: I,
|
|
33605
|
+
): ListProjectInsightCardsResponse {
|
|
33606
|
+
const message = createBaseListProjectInsightCardsResponse();
|
|
33665
33607
|
message.status = (object.status !== undefined && object.status !== null)
|
|
33666
33608
|
? ResponseStatus.fromPartial(object.status)
|
|
33667
33609
|
: undefined;
|
|
33668
|
-
message.
|
|
33669
|
-
message.
|
|
33670
|
-
? AIProjectInsightRun.fromPartial(object.current)
|
|
33671
|
-
: undefined;
|
|
33672
|
-
message.previous = (object.previous !== undefined && object.previous !== null)
|
|
33673
|
-
? AIProjectInsightRun.fromPartial(object.previous)
|
|
33674
|
-
: undefined;
|
|
33610
|
+
message.cards = object.cards?.map((e) => AIProjectInsightCard.fromPartial(e)) || [];
|
|
33611
|
+
message.nextPageToken = object.nextPageToken ?? "";
|
|
33675
33612
|
return message;
|
|
33676
33613
|
},
|
|
33677
33614
|
};
|
|
33678
33615
|
|
|
33679
|
-
function
|
|
33680
|
-
return {
|
|
33681
|
-
runId: "",
|
|
33682
|
-
availability: 0,
|
|
33683
|
-
localDate: "",
|
|
33684
|
-
timeZone: "",
|
|
33685
|
-
timeZoneSet: false,
|
|
33686
|
-
windowClosed: false,
|
|
33687
|
-
windowStart: undefined,
|
|
33688
|
-
windowEnd: undefined,
|
|
33689
|
-
analyzedAt: undefined,
|
|
33690
|
-
model: "",
|
|
33691
|
-
analysisVersion: "",
|
|
33692
|
-
eligibleSessionCount: 0,
|
|
33693
|
-
unresolvedSessionCount: 0,
|
|
33694
|
-
linkedPersonCount: 0,
|
|
33695
|
-
coverage: undefined,
|
|
33696
|
-
insights: [],
|
|
33697
|
-
totalCount: 0,
|
|
33698
|
-
};
|
|
33616
|
+
function createBaseAIProjectInsightCard(): AIProjectInsightCard {
|
|
33617
|
+
return { insight: undefined, runId: "", localDate: "", timeZone: "", windowClosed: false, analyzedAt: undefined };
|
|
33699
33618
|
}
|
|
33700
33619
|
|
|
33701
|
-
export const
|
|
33702
|
-
encode(message:
|
|
33703
|
-
if (message.
|
|
33704
|
-
writer.uint32(10).
|
|
33620
|
+
export const AIProjectInsightCard: MessageFns<AIProjectInsightCard> = {
|
|
33621
|
+
encode(message: AIProjectInsightCard, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
33622
|
+
if (message.insight !== undefined) {
|
|
33623
|
+
AIProjectInsight.encode(message.insight, writer.uint32(10).fork()).join();
|
|
33705
33624
|
}
|
|
33706
|
-
if (message.
|
|
33707
|
-
writer.uint32(
|
|
33625
|
+
if (message.runId !== "") {
|
|
33626
|
+
writer.uint32(18).string(message.runId);
|
|
33708
33627
|
}
|
|
33709
33628
|
if (message.localDate !== "") {
|
|
33710
33629
|
writer.uint32(26).string(message.localDate);
|
|
@@ -33712,49 +33631,16 @@ export const AIProjectInsightRun: MessageFns<AIProjectInsightRun> = {
|
|
|
33712
33631
|
if (message.timeZone !== "") {
|
|
33713
33632
|
writer.uint32(34).string(message.timeZone);
|
|
33714
33633
|
}
|
|
33715
|
-
if (message.timeZoneSet !== false) {
|
|
33716
|
-
writer.uint32(40).bool(message.timeZoneSet);
|
|
33717
|
-
}
|
|
33718
33634
|
if (message.windowClosed !== false) {
|
|
33719
|
-
writer.uint32(
|
|
33720
|
-
}
|
|
33721
|
-
if (message.windowStart !== undefined) {
|
|
33722
|
-
Timestamp.encode(toTimestamp(message.windowStart), writer.uint32(58).fork()).join();
|
|
33723
|
-
}
|
|
33724
|
-
if (message.windowEnd !== undefined) {
|
|
33725
|
-
Timestamp.encode(toTimestamp(message.windowEnd), writer.uint32(66).fork()).join();
|
|
33635
|
+
writer.uint32(40).bool(message.windowClosed);
|
|
33726
33636
|
}
|
|
33727
33637
|
if (message.analyzedAt !== undefined) {
|
|
33728
|
-
Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(
|
|
33729
|
-
}
|
|
33730
|
-
if (message.model !== "") {
|
|
33731
|
-
writer.uint32(82).string(message.model);
|
|
33732
|
-
}
|
|
33733
|
-
if (message.analysisVersion !== "") {
|
|
33734
|
-
writer.uint32(90).string(message.analysisVersion);
|
|
33735
|
-
}
|
|
33736
|
-
if (message.eligibleSessionCount !== 0) {
|
|
33737
|
-
writer.uint32(96).uint32(message.eligibleSessionCount);
|
|
33738
|
-
}
|
|
33739
|
-
if (message.unresolvedSessionCount !== 0) {
|
|
33740
|
-
writer.uint32(104).uint32(message.unresolvedSessionCount);
|
|
33741
|
-
}
|
|
33742
|
-
if (message.linkedPersonCount !== 0) {
|
|
33743
|
-
writer.uint32(112).uint32(message.linkedPersonCount);
|
|
33744
|
-
}
|
|
33745
|
-
if (message.coverage !== undefined) {
|
|
33746
|
-
AIProjectInsightCoverage.encode(message.coverage, writer.uint32(122).fork()).join();
|
|
33747
|
-
}
|
|
33748
|
-
for (const v of message.insights) {
|
|
33749
|
-
AIProjectInsight.encode(v!, writer.uint32(130).fork()).join();
|
|
33750
|
-
}
|
|
33751
|
-
if (message.totalCount !== 0) {
|
|
33752
|
-
writer.uint32(136).uint32(message.totalCount);
|
|
33638
|
+
Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(50).fork()).join();
|
|
33753
33639
|
}
|
|
33754
33640
|
return writer;
|
|
33755
33641
|
},
|
|
33756
33642
|
|
|
33757
|
-
decode(input: BinaryReader | Uint8Array, length?: number):
|
|
33643
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AIProjectInsightCard {
|
|
33758
33644
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
33759
33645
|
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
33760
33646
|
if (previousRecursionDepth >= 100) {
|
|
@@ -33763,7 +33649,7 @@ export const AIProjectInsightRun: MessageFns<AIProjectInsightRun> = {
|
|
|
33763
33649
|
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
33764
33650
|
try {
|
|
33765
33651
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
33766
|
-
const message =
|
|
33652
|
+
const message = createBaseAIProjectInsightCard();
|
|
33767
33653
|
while (reader.pos < end) {
|
|
33768
33654
|
const tag = reader.uint32();
|
|
33769
33655
|
switch (tag >>> 3) {
|
|
@@ -33772,15 +33658,15 @@ export const AIProjectInsightRun: MessageFns<AIProjectInsightRun> = {
|
|
|
33772
33658
|
break;
|
|
33773
33659
|
}
|
|
33774
33660
|
|
|
33775
|
-
message.
|
|
33661
|
+
message.insight = AIProjectInsight.decode(reader, reader.uint32());
|
|
33776
33662
|
continue;
|
|
33777
33663
|
}
|
|
33778
33664
|
case 2: {
|
|
33779
|
-
if (tag !==
|
|
33665
|
+
if (tag !== 18) {
|
|
33780
33666
|
break;
|
|
33781
33667
|
}
|
|
33782
33668
|
|
|
33783
|
-
message.
|
|
33669
|
+
message.runId = reader.string();
|
|
33784
33670
|
continue;
|
|
33785
33671
|
}
|
|
33786
33672
|
case 3: {
|
|
@@ -33804,105 +33690,17 @@ export const AIProjectInsightRun: MessageFns<AIProjectInsightRun> = {
|
|
|
33804
33690
|
break;
|
|
33805
33691
|
}
|
|
33806
33692
|
|
|
33807
|
-
message.timeZoneSet = reader.bool();
|
|
33808
|
-
continue;
|
|
33809
|
-
}
|
|
33810
|
-
case 6: {
|
|
33811
|
-
if (tag !== 48) {
|
|
33812
|
-
break;
|
|
33813
|
-
}
|
|
33814
|
-
|
|
33815
33693
|
message.windowClosed = reader.bool();
|
|
33816
33694
|
continue;
|
|
33817
33695
|
}
|
|
33818
|
-
case
|
|
33819
|
-
if (tag !==
|
|
33820
|
-
break;
|
|
33821
|
-
}
|
|
33822
|
-
|
|
33823
|
-
message.windowStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
33824
|
-
continue;
|
|
33825
|
-
}
|
|
33826
|
-
case 8: {
|
|
33827
|
-
if (tag !== 66) {
|
|
33828
|
-
break;
|
|
33829
|
-
}
|
|
33830
|
-
|
|
33831
|
-
message.windowEnd = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
33832
|
-
continue;
|
|
33833
|
-
}
|
|
33834
|
-
case 9: {
|
|
33835
|
-
if (tag !== 74) {
|
|
33696
|
+
case 6: {
|
|
33697
|
+
if (tag !== 50) {
|
|
33836
33698
|
break;
|
|
33837
33699
|
}
|
|
33838
33700
|
|
|
33839
33701
|
message.analyzedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
33840
33702
|
continue;
|
|
33841
33703
|
}
|
|
33842
|
-
case 10: {
|
|
33843
|
-
if (tag !== 82) {
|
|
33844
|
-
break;
|
|
33845
|
-
}
|
|
33846
|
-
|
|
33847
|
-
message.model = reader.string();
|
|
33848
|
-
continue;
|
|
33849
|
-
}
|
|
33850
|
-
case 11: {
|
|
33851
|
-
if (tag !== 90) {
|
|
33852
|
-
break;
|
|
33853
|
-
}
|
|
33854
|
-
|
|
33855
|
-
message.analysisVersion = reader.string();
|
|
33856
|
-
continue;
|
|
33857
|
-
}
|
|
33858
|
-
case 12: {
|
|
33859
|
-
if (tag !== 96) {
|
|
33860
|
-
break;
|
|
33861
|
-
}
|
|
33862
|
-
|
|
33863
|
-
message.eligibleSessionCount = reader.uint32();
|
|
33864
|
-
continue;
|
|
33865
|
-
}
|
|
33866
|
-
case 13: {
|
|
33867
|
-
if (tag !== 104) {
|
|
33868
|
-
break;
|
|
33869
|
-
}
|
|
33870
|
-
|
|
33871
|
-
message.unresolvedSessionCount = reader.uint32();
|
|
33872
|
-
continue;
|
|
33873
|
-
}
|
|
33874
|
-
case 14: {
|
|
33875
|
-
if (tag !== 112) {
|
|
33876
|
-
break;
|
|
33877
|
-
}
|
|
33878
|
-
|
|
33879
|
-
message.linkedPersonCount = reader.uint32();
|
|
33880
|
-
continue;
|
|
33881
|
-
}
|
|
33882
|
-
case 15: {
|
|
33883
|
-
if (tag !== 122) {
|
|
33884
|
-
break;
|
|
33885
|
-
}
|
|
33886
|
-
|
|
33887
|
-
message.coverage = AIProjectInsightCoverage.decode(reader, reader.uint32());
|
|
33888
|
-
continue;
|
|
33889
|
-
}
|
|
33890
|
-
case 16: {
|
|
33891
|
-
if (tag !== 130) {
|
|
33892
|
-
break;
|
|
33893
|
-
}
|
|
33894
|
-
|
|
33895
|
-
message.insights.push(AIProjectInsight.decode(reader, reader.uint32()));
|
|
33896
|
-
continue;
|
|
33897
|
-
}
|
|
33898
|
-
case 17: {
|
|
33899
|
-
if (tag !== 136) {
|
|
33900
|
-
break;
|
|
33901
|
-
}
|
|
33902
|
-
|
|
33903
|
-
message.totalCount = reader.uint32();
|
|
33904
|
-
continue;
|
|
33905
|
-
}
|
|
33906
33704
|
}
|
|
33907
33705
|
if ((tag & 7) === 4 || tag === 0) {
|
|
33908
33706
|
break;
|
|
@@ -33915,14 +33713,14 @@ export const AIProjectInsightRun: MessageFns<AIProjectInsightRun> = {
|
|
|
33915
33713
|
}
|
|
33916
33714
|
},
|
|
33917
33715
|
|
|
33918
|
-
fromJSON(object: any):
|
|
33716
|
+
fromJSON(object: any): AIProjectInsightCard {
|
|
33919
33717
|
return {
|
|
33718
|
+
insight: isSet(object.insight) ? AIProjectInsight.fromJSON(object.insight) : undefined,
|
|
33920
33719
|
runId: isSet(object.runId)
|
|
33921
33720
|
? globalThis.String(object.runId)
|
|
33922
33721
|
: isSet(object.run_id)
|
|
33923
33722
|
? globalThis.String(object.run_id)
|
|
33924
33723
|
: "",
|
|
33925
|
-
availability: isSet(object.availability) ? aIProjectInsightAvailabilityFromJSON(object.availability) : 0,
|
|
33926
33724
|
localDate: isSet(object.localDate)
|
|
33927
33725
|
? globalThis.String(object.localDate)
|
|
33928
33726
|
: isSet(object.local_date)
|
|
@@ -33933,341 +33731,55 @@ export const AIProjectInsightRun: MessageFns<AIProjectInsightRun> = {
|
|
|
33933
33731
|
: isSet(object.time_zone)
|
|
33934
33732
|
? globalThis.String(object.time_zone)
|
|
33935
33733
|
: "",
|
|
33936
|
-
timeZoneSet: isSet(object.timeZoneSet)
|
|
33937
|
-
? globalThis.Boolean(object.timeZoneSet)
|
|
33938
|
-
: isSet(object.time_zone_set)
|
|
33939
|
-
? globalThis.Boolean(object.time_zone_set)
|
|
33940
|
-
: false,
|
|
33941
33734
|
windowClosed: isSet(object.windowClosed)
|
|
33942
33735
|
? globalThis.Boolean(object.windowClosed)
|
|
33943
33736
|
: isSet(object.window_closed)
|
|
33944
33737
|
? globalThis.Boolean(object.window_closed)
|
|
33945
33738
|
: false,
|
|
33946
|
-
windowStart: isSet(object.windowStart)
|
|
33947
|
-
? fromJsonTimestamp(object.windowStart)
|
|
33948
|
-
: isSet(object.window_start)
|
|
33949
|
-
? fromJsonTimestamp(object.window_start)
|
|
33950
|
-
: undefined,
|
|
33951
|
-
windowEnd: isSet(object.windowEnd)
|
|
33952
|
-
? fromJsonTimestamp(object.windowEnd)
|
|
33953
|
-
: isSet(object.window_end)
|
|
33954
|
-
? fromJsonTimestamp(object.window_end)
|
|
33955
|
-
: undefined,
|
|
33956
33739
|
analyzedAt: isSet(object.analyzedAt)
|
|
33957
33740
|
? fromJsonTimestamp(object.analyzedAt)
|
|
33958
33741
|
: isSet(object.analyzed_at)
|
|
33959
33742
|
? fromJsonTimestamp(object.analyzed_at)
|
|
33960
33743
|
: undefined,
|
|
33961
|
-
model: isSet(object.model) ? globalThis.String(object.model) : "",
|
|
33962
|
-
analysisVersion: isSet(object.analysisVersion)
|
|
33963
|
-
? globalThis.String(object.analysisVersion)
|
|
33964
|
-
: isSet(object.analysis_version)
|
|
33965
|
-
? globalThis.String(object.analysis_version)
|
|
33966
|
-
: "",
|
|
33967
|
-
eligibleSessionCount: isSet(object.eligibleSessionCount)
|
|
33968
|
-
? globalThis.Number(object.eligibleSessionCount)
|
|
33969
|
-
: isSet(object.eligible_session_count)
|
|
33970
|
-
? globalThis.Number(object.eligible_session_count)
|
|
33971
|
-
: 0,
|
|
33972
|
-
unresolvedSessionCount: isSet(object.unresolvedSessionCount)
|
|
33973
|
-
? globalThis.Number(object.unresolvedSessionCount)
|
|
33974
|
-
: isSet(object.unresolved_session_count)
|
|
33975
|
-
? globalThis.Number(object.unresolved_session_count)
|
|
33976
|
-
: 0,
|
|
33977
|
-
linkedPersonCount: isSet(object.linkedPersonCount)
|
|
33978
|
-
? globalThis.Number(object.linkedPersonCount)
|
|
33979
|
-
: isSet(object.linked_person_count)
|
|
33980
|
-
? globalThis.Number(object.linked_person_count)
|
|
33981
|
-
: 0,
|
|
33982
|
-
coverage: isSet(object.coverage) ? AIProjectInsightCoverage.fromJSON(object.coverage) : undefined,
|
|
33983
|
-
insights: globalThis.Array.isArray(object?.insights)
|
|
33984
|
-
? object.insights.map((e: any) => AIProjectInsight.fromJSON(e))
|
|
33985
|
-
: [],
|
|
33986
|
-
totalCount: isSet(object.totalCount)
|
|
33987
|
-
? globalThis.Number(object.totalCount)
|
|
33988
|
-
: isSet(object.total_count)
|
|
33989
|
-
? globalThis.Number(object.total_count)
|
|
33990
|
-
: 0,
|
|
33991
33744
|
};
|
|
33992
33745
|
},
|
|
33993
33746
|
|
|
33994
|
-
toJSON(message:
|
|
33747
|
+
toJSON(message: AIProjectInsightCard): unknown {
|
|
33995
33748
|
const obj: any = {};
|
|
33749
|
+
if (message.insight !== undefined) {
|
|
33750
|
+
obj.insight = AIProjectInsight.toJSON(message.insight);
|
|
33751
|
+
}
|
|
33996
33752
|
if (message.runId !== "") {
|
|
33997
33753
|
obj.runId = message.runId;
|
|
33998
33754
|
}
|
|
33999
|
-
if (message.availability !== 0) {
|
|
34000
|
-
obj.availability = aIProjectInsightAvailabilityToJSON(message.availability);
|
|
34001
|
-
}
|
|
34002
33755
|
if (message.localDate !== "") {
|
|
34003
33756
|
obj.localDate = message.localDate;
|
|
34004
33757
|
}
|
|
34005
33758
|
if (message.timeZone !== "") {
|
|
34006
33759
|
obj.timeZone = message.timeZone;
|
|
34007
33760
|
}
|
|
34008
|
-
if (message.timeZoneSet !== false) {
|
|
34009
|
-
obj.timeZoneSet = message.timeZoneSet;
|
|
34010
|
-
}
|
|
34011
33761
|
if (message.windowClosed !== false) {
|
|
34012
33762
|
obj.windowClosed = message.windowClosed;
|
|
34013
33763
|
}
|
|
34014
|
-
if (message.windowStart !== undefined) {
|
|
34015
|
-
obj.windowStart = message.windowStart.toISOString();
|
|
34016
|
-
}
|
|
34017
|
-
if (message.windowEnd !== undefined) {
|
|
34018
|
-
obj.windowEnd = message.windowEnd.toISOString();
|
|
34019
|
-
}
|
|
34020
33764
|
if (message.analyzedAt !== undefined) {
|
|
34021
33765
|
obj.analyzedAt = message.analyzedAt.toISOString();
|
|
34022
33766
|
}
|
|
34023
|
-
if (message.model !== "") {
|
|
34024
|
-
obj.model = message.model;
|
|
34025
|
-
}
|
|
34026
|
-
if (message.analysisVersion !== "") {
|
|
34027
|
-
obj.analysisVersion = message.analysisVersion;
|
|
34028
|
-
}
|
|
34029
|
-
if (message.eligibleSessionCount !== 0) {
|
|
34030
|
-
obj.eligibleSessionCount = Math.round(message.eligibleSessionCount);
|
|
34031
|
-
}
|
|
34032
|
-
if (message.unresolvedSessionCount !== 0) {
|
|
34033
|
-
obj.unresolvedSessionCount = Math.round(message.unresolvedSessionCount);
|
|
34034
|
-
}
|
|
34035
|
-
if (message.linkedPersonCount !== 0) {
|
|
34036
|
-
obj.linkedPersonCount = Math.round(message.linkedPersonCount);
|
|
34037
|
-
}
|
|
34038
|
-
if (message.coverage !== undefined) {
|
|
34039
|
-
obj.coverage = AIProjectInsightCoverage.toJSON(message.coverage);
|
|
34040
|
-
}
|
|
34041
|
-
if (message.insights?.length) {
|
|
34042
|
-
obj.insights = message.insights.map((e) => AIProjectInsight.toJSON(e));
|
|
34043
|
-
}
|
|
34044
|
-
if (message.totalCount !== 0) {
|
|
34045
|
-
obj.totalCount = Math.round(message.totalCount);
|
|
34046
|
-
}
|
|
34047
33767
|
return obj;
|
|
34048
33768
|
},
|
|
34049
33769
|
|
|
34050
|
-
create<I extends Exact<DeepPartial<
|
|
34051
|
-
return
|
|
33770
|
+
create<I extends Exact<DeepPartial<AIProjectInsightCard>, I>>(base?: I): AIProjectInsightCard {
|
|
33771
|
+
return AIProjectInsightCard.fromPartial(base ?? ({} as any));
|
|
34052
33772
|
},
|
|
34053
|
-
fromPartial<I extends Exact<DeepPartial<
|
|
34054
|
-
const message =
|
|
33773
|
+
fromPartial<I extends Exact<DeepPartial<AIProjectInsightCard>, I>>(object: I): AIProjectInsightCard {
|
|
33774
|
+
const message = createBaseAIProjectInsightCard();
|
|
33775
|
+
message.insight = (object.insight !== undefined && object.insight !== null)
|
|
33776
|
+
? AIProjectInsight.fromPartial(object.insight)
|
|
33777
|
+
: undefined;
|
|
34055
33778
|
message.runId = object.runId ?? "";
|
|
34056
|
-
message.availability = object.availability ?? 0;
|
|
34057
33779
|
message.localDate = object.localDate ?? "";
|
|
34058
33780
|
message.timeZone = object.timeZone ?? "";
|
|
34059
|
-
message.timeZoneSet = object.timeZoneSet ?? false;
|
|
34060
33781
|
message.windowClosed = object.windowClosed ?? false;
|
|
34061
|
-
message.windowStart = object.windowStart ?? undefined;
|
|
34062
|
-
message.windowEnd = object.windowEnd ?? undefined;
|
|
34063
33782
|
message.analyzedAt = object.analyzedAt ?? undefined;
|
|
34064
|
-
message.model = object.model ?? "";
|
|
34065
|
-
message.analysisVersion = object.analysisVersion ?? "";
|
|
34066
|
-
message.eligibleSessionCount = object.eligibleSessionCount ?? 0;
|
|
34067
|
-
message.unresolvedSessionCount = object.unresolvedSessionCount ?? 0;
|
|
34068
|
-
message.linkedPersonCount = object.linkedPersonCount ?? 0;
|
|
34069
|
-
message.coverage = (object.coverage !== undefined && object.coverage !== null)
|
|
34070
|
-
? AIProjectInsightCoverage.fromPartial(object.coverage)
|
|
34071
|
-
: undefined;
|
|
34072
|
-
message.insights = object.insights?.map((e) => AIProjectInsight.fromPartial(e)) || [];
|
|
34073
|
-
message.totalCount = object.totalCount ?? 0;
|
|
34074
|
-
return message;
|
|
34075
|
-
},
|
|
34076
|
-
};
|
|
34077
|
-
|
|
34078
|
-
function createBaseAIProjectInsightCoverage(): AIProjectInsightCoverage {
|
|
34079
|
-
return {
|
|
34080
|
-
status: 0,
|
|
34081
|
-
stopReason: 0,
|
|
34082
|
-
overviewSessionCount: 0,
|
|
34083
|
-
evidenceSessionCount: 0,
|
|
34084
|
-
evidencePersonCount: 0,
|
|
34085
|
-
withheldEvidenceCount: 0,
|
|
34086
|
-
truncatedEvidenceCount: 0,
|
|
34087
|
-
};
|
|
34088
|
-
}
|
|
34089
|
-
|
|
34090
|
-
export const AIProjectInsightCoverage: MessageFns<AIProjectInsightCoverage> = {
|
|
34091
|
-
encode(message: AIProjectInsightCoverage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
34092
|
-
if (message.status !== 0) {
|
|
34093
|
-
writer.uint32(8).int32(message.status);
|
|
34094
|
-
}
|
|
34095
|
-
if (message.stopReason !== 0) {
|
|
34096
|
-
writer.uint32(16).int32(message.stopReason);
|
|
34097
|
-
}
|
|
34098
|
-
if (message.overviewSessionCount !== 0) {
|
|
34099
|
-
writer.uint32(24).uint32(message.overviewSessionCount);
|
|
34100
|
-
}
|
|
34101
|
-
if (message.evidenceSessionCount !== 0) {
|
|
34102
|
-
writer.uint32(32).uint32(message.evidenceSessionCount);
|
|
34103
|
-
}
|
|
34104
|
-
if (message.evidencePersonCount !== 0) {
|
|
34105
|
-
writer.uint32(40).uint32(message.evidencePersonCount);
|
|
34106
|
-
}
|
|
34107
|
-
if (message.withheldEvidenceCount !== 0) {
|
|
34108
|
-
writer.uint32(48).uint32(message.withheldEvidenceCount);
|
|
34109
|
-
}
|
|
34110
|
-
if (message.truncatedEvidenceCount !== 0) {
|
|
34111
|
-
writer.uint32(56).uint32(message.truncatedEvidenceCount);
|
|
34112
|
-
}
|
|
34113
|
-
return writer;
|
|
34114
|
-
},
|
|
34115
|
-
|
|
34116
|
-
decode(input: BinaryReader | Uint8Array, length?: number): AIProjectInsightCoverage {
|
|
34117
|
-
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
34118
|
-
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
34119
|
-
if (previousRecursionDepth >= 100) {
|
|
34120
|
-
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
34121
|
-
}
|
|
34122
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
34123
|
-
try {
|
|
34124
|
-
const end = length === undefined ? reader.len : reader.pos + length;
|
|
34125
|
-
const message = createBaseAIProjectInsightCoverage();
|
|
34126
|
-
while (reader.pos < end) {
|
|
34127
|
-
const tag = reader.uint32();
|
|
34128
|
-
switch (tag >>> 3) {
|
|
34129
|
-
case 1: {
|
|
34130
|
-
if (tag !== 8) {
|
|
34131
|
-
break;
|
|
34132
|
-
}
|
|
34133
|
-
|
|
34134
|
-
message.status = reader.int32() as any;
|
|
34135
|
-
continue;
|
|
34136
|
-
}
|
|
34137
|
-
case 2: {
|
|
34138
|
-
if (tag !== 16) {
|
|
34139
|
-
break;
|
|
34140
|
-
}
|
|
34141
|
-
|
|
34142
|
-
message.stopReason = reader.int32() as any;
|
|
34143
|
-
continue;
|
|
34144
|
-
}
|
|
34145
|
-
case 3: {
|
|
34146
|
-
if (tag !== 24) {
|
|
34147
|
-
break;
|
|
34148
|
-
}
|
|
34149
|
-
|
|
34150
|
-
message.overviewSessionCount = reader.uint32();
|
|
34151
|
-
continue;
|
|
34152
|
-
}
|
|
34153
|
-
case 4: {
|
|
34154
|
-
if (tag !== 32) {
|
|
34155
|
-
break;
|
|
34156
|
-
}
|
|
34157
|
-
|
|
34158
|
-
message.evidenceSessionCount = reader.uint32();
|
|
34159
|
-
continue;
|
|
34160
|
-
}
|
|
34161
|
-
case 5: {
|
|
34162
|
-
if (tag !== 40) {
|
|
34163
|
-
break;
|
|
34164
|
-
}
|
|
34165
|
-
|
|
34166
|
-
message.evidencePersonCount = reader.uint32();
|
|
34167
|
-
continue;
|
|
34168
|
-
}
|
|
34169
|
-
case 6: {
|
|
34170
|
-
if (tag !== 48) {
|
|
34171
|
-
break;
|
|
34172
|
-
}
|
|
34173
|
-
|
|
34174
|
-
message.withheldEvidenceCount = reader.uint32();
|
|
34175
|
-
continue;
|
|
34176
|
-
}
|
|
34177
|
-
case 7: {
|
|
34178
|
-
if (tag !== 56) {
|
|
34179
|
-
break;
|
|
34180
|
-
}
|
|
34181
|
-
|
|
34182
|
-
message.truncatedEvidenceCount = reader.uint32();
|
|
34183
|
-
continue;
|
|
34184
|
-
}
|
|
34185
|
-
}
|
|
34186
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
34187
|
-
break;
|
|
34188
|
-
}
|
|
34189
|
-
reader.skip(tag & 7);
|
|
34190
|
-
}
|
|
34191
|
-
return message;
|
|
34192
|
-
} finally {
|
|
34193
|
-
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
34194
|
-
}
|
|
34195
|
-
},
|
|
34196
|
-
|
|
34197
|
-
fromJSON(object: any): AIProjectInsightCoverage {
|
|
34198
|
-
return {
|
|
34199
|
-
status: isSet(object.status) ? aIProjectInsightCoverageStatusFromJSON(object.status) : 0,
|
|
34200
|
-
stopReason: isSet(object.stopReason)
|
|
34201
|
-
? aIProjectInsightStopReasonFromJSON(object.stopReason)
|
|
34202
|
-
: isSet(object.stop_reason)
|
|
34203
|
-
? aIProjectInsightStopReasonFromJSON(object.stop_reason)
|
|
34204
|
-
: 0,
|
|
34205
|
-
overviewSessionCount: isSet(object.overviewSessionCount)
|
|
34206
|
-
? globalThis.Number(object.overviewSessionCount)
|
|
34207
|
-
: isSet(object.overview_session_count)
|
|
34208
|
-
? globalThis.Number(object.overview_session_count)
|
|
34209
|
-
: 0,
|
|
34210
|
-
evidenceSessionCount: isSet(object.evidenceSessionCount)
|
|
34211
|
-
? globalThis.Number(object.evidenceSessionCount)
|
|
34212
|
-
: isSet(object.evidence_session_count)
|
|
34213
|
-
? globalThis.Number(object.evidence_session_count)
|
|
34214
|
-
: 0,
|
|
34215
|
-
evidencePersonCount: isSet(object.evidencePersonCount)
|
|
34216
|
-
? globalThis.Number(object.evidencePersonCount)
|
|
34217
|
-
: isSet(object.evidence_person_count)
|
|
34218
|
-
? globalThis.Number(object.evidence_person_count)
|
|
34219
|
-
: 0,
|
|
34220
|
-
withheldEvidenceCount: isSet(object.withheldEvidenceCount)
|
|
34221
|
-
? globalThis.Number(object.withheldEvidenceCount)
|
|
34222
|
-
: isSet(object.withheld_evidence_count)
|
|
34223
|
-
? globalThis.Number(object.withheld_evidence_count)
|
|
34224
|
-
: 0,
|
|
34225
|
-
truncatedEvidenceCount: isSet(object.truncatedEvidenceCount)
|
|
34226
|
-
? globalThis.Number(object.truncatedEvidenceCount)
|
|
34227
|
-
: isSet(object.truncated_evidence_count)
|
|
34228
|
-
? globalThis.Number(object.truncated_evidence_count)
|
|
34229
|
-
: 0,
|
|
34230
|
-
};
|
|
34231
|
-
},
|
|
34232
|
-
|
|
34233
|
-
toJSON(message: AIProjectInsightCoverage): unknown {
|
|
34234
|
-
const obj: any = {};
|
|
34235
|
-
if (message.status !== 0) {
|
|
34236
|
-
obj.status = aIProjectInsightCoverageStatusToJSON(message.status);
|
|
34237
|
-
}
|
|
34238
|
-
if (message.stopReason !== 0) {
|
|
34239
|
-
obj.stopReason = aIProjectInsightStopReasonToJSON(message.stopReason);
|
|
34240
|
-
}
|
|
34241
|
-
if (message.overviewSessionCount !== 0) {
|
|
34242
|
-
obj.overviewSessionCount = Math.round(message.overviewSessionCount);
|
|
34243
|
-
}
|
|
34244
|
-
if (message.evidenceSessionCount !== 0) {
|
|
34245
|
-
obj.evidenceSessionCount = Math.round(message.evidenceSessionCount);
|
|
34246
|
-
}
|
|
34247
|
-
if (message.evidencePersonCount !== 0) {
|
|
34248
|
-
obj.evidencePersonCount = Math.round(message.evidencePersonCount);
|
|
34249
|
-
}
|
|
34250
|
-
if (message.withheldEvidenceCount !== 0) {
|
|
34251
|
-
obj.withheldEvidenceCount = Math.round(message.withheldEvidenceCount);
|
|
34252
|
-
}
|
|
34253
|
-
if (message.truncatedEvidenceCount !== 0) {
|
|
34254
|
-
obj.truncatedEvidenceCount = Math.round(message.truncatedEvidenceCount);
|
|
34255
|
-
}
|
|
34256
|
-
return obj;
|
|
34257
|
-
},
|
|
34258
|
-
|
|
34259
|
-
create<I extends Exact<DeepPartial<AIProjectInsightCoverage>, I>>(base?: I): AIProjectInsightCoverage {
|
|
34260
|
-
return AIProjectInsightCoverage.fromPartial(base ?? ({} as any));
|
|
34261
|
-
},
|
|
34262
|
-
fromPartial<I extends Exact<DeepPartial<AIProjectInsightCoverage>, I>>(object: I): AIProjectInsightCoverage {
|
|
34263
|
-
const message = createBaseAIProjectInsightCoverage();
|
|
34264
|
-
message.status = object.status ?? 0;
|
|
34265
|
-
message.stopReason = object.stopReason ?? 0;
|
|
34266
|
-
message.overviewSessionCount = object.overviewSessionCount ?? 0;
|
|
34267
|
-
message.evidenceSessionCount = object.evidenceSessionCount ?? 0;
|
|
34268
|
-
message.evidencePersonCount = object.evidencePersonCount ?? 0;
|
|
34269
|
-
message.withheldEvidenceCount = object.withheldEvidenceCount ?? 0;
|
|
34270
|
-
message.truncatedEvidenceCount = object.truncatedEvidenceCount ?? 0;
|
|
34271
33783
|
return message;
|
|
34272
33784
|
},
|
|
34273
33785
|
};
|
|
@@ -34859,6 +34371,12 @@ export interface AIGatewayService {
|
|
|
34859
34371
|
* time): counts only, the shares derived only when a week has labelled prompts. Mirrors ai.api.v1.
|
|
34860
34372
|
*/
|
|
34861
34373
|
GetPromptLabelTrend(request: GetPromptLabelTrendRequest, metadata?: Metadata): Promise<GetPromptLabelTrendResponse>;
|
|
34374
|
+
/**
|
|
34375
|
+
* The label sets the project's sessions and prompts are labelled with: every fixed dimension and its values in display
|
|
34376
|
+
* order, with each value's name, tooltip and rating. A stored key the catalogue no longer lists shows as
|
|
34377
|
+
* the key. Mirrors ai.api.v1.
|
|
34378
|
+
*/
|
|
34379
|
+
GetLabelCatalog(request: GetLabelCatalogRequest, metadata?: Metadata): Promise<GetLabelCatalogResponse>;
|
|
34862
34380
|
/**
|
|
34863
34381
|
* Per-seat entitlement usage board: every entitlement owner's latest observed funding facility and
|
|
34864
34382
|
* per-harness usage % windows. Stream-first (first frame = full snapshot), seat-scoped. Mirrors
|
|
@@ -34902,11 +34420,13 @@ export interface AIGatewayService {
|
|
|
34902
34420
|
*/
|
|
34903
34421
|
ListIssueSessions(request: ListIssueSessionsRequest, metadata?: Metadata): Promise<ListIssueSessionsResponse>;
|
|
34904
34422
|
/**
|
|
34905
|
-
* The project's
|
|
34906
|
-
*
|
|
34907
|
-
* count. Mirrors ai.api.v1.
|
|
34423
|
+
* The project's cards across local days, newest local day first and rank order within a day: each day's latest run,
|
|
34424
|
+
* only when it is READY, with the run context each card is labelled with. Token pages. Mirrors ai.api.v1.
|
|
34908
34425
|
*/
|
|
34909
|
-
|
|
34426
|
+
ListProjectInsightCards(
|
|
34427
|
+
request: ListProjectInsightCardsRequest,
|
|
34428
|
+
metadata?: Metadata,
|
|
34429
|
+
): Promise<ListProjectInsightCardsResponse>;
|
|
34910
34430
|
}
|
|
34911
34431
|
|
|
34912
34432
|
export const AIGatewayServiceServiceName = "gateway.web.v1.AIGatewayService";
|
|
@@ -34949,12 +34469,13 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
34949
34469
|
this.ListSessionInsights = this.ListSessionInsights.bind(this);
|
|
34950
34470
|
this.GetSessionScoreTrend = this.GetSessionScoreTrend.bind(this);
|
|
34951
34471
|
this.GetPromptLabelTrend = this.GetPromptLabelTrend.bind(this);
|
|
34472
|
+
this.GetLabelCatalog = this.GetLabelCatalog.bind(this);
|
|
34952
34473
|
this.StreamEntitlements = this.StreamEntitlements.bind(this);
|
|
34953
34474
|
this.ListRelayHeartbeats = this.ListRelayHeartbeats.bind(this);
|
|
34954
34475
|
this.ListIssueCosts = this.ListIssueCosts.bind(this);
|
|
34955
34476
|
this.GetSessionIssues = this.GetSessionIssues.bind(this);
|
|
34956
34477
|
this.ListIssueSessions = this.ListIssueSessions.bind(this);
|
|
34957
|
-
this.
|
|
34478
|
+
this.ListProjectInsightCards = this.ListProjectInsightCards.bind(this);
|
|
34958
34479
|
}
|
|
34959
34480
|
ListSessions(request: ListSessionsRequest, metadata?: Metadata): Promise<ListSessionsResponse> {
|
|
34960
34481
|
const data = ListSessionsRequest.encode(request).finish();
|
|
@@ -35175,6 +34696,12 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
35175
34696
|
return promise.then((data) => GetPromptLabelTrendResponse.decode(new BinaryReader(data)));
|
|
35176
34697
|
}
|
|
35177
34698
|
|
|
34699
|
+
GetLabelCatalog(request: GetLabelCatalogRequest, metadata?: Metadata): Promise<GetLabelCatalogResponse> {
|
|
34700
|
+
const data = GetLabelCatalogRequest.encode(request).finish();
|
|
34701
|
+
const promise = this.rpc.request(this.service, "GetLabelCatalog", data, metadata);
|
|
34702
|
+
return promise.then((data) => GetLabelCatalogResponse.decode(new BinaryReader(data)));
|
|
34703
|
+
}
|
|
34704
|
+
|
|
35178
34705
|
StreamEntitlements(request: StreamEntitlementsRequest, metadata?: Metadata): Observable<EntitlementsSnapshot> {
|
|
35179
34706
|
const data = StreamEntitlementsRequest.encode(request).finish();
|
|
35180
34707
|
const result = this.rpc.serverStreamingRequest(this.service, "StreamEntitlements", data, metadata);
|
|
@@ -35205,10 +34732,13 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
|
|
|
35205
34732
|
return promise.then((data) => ListIssueSessionsResponse.decode(new BinaryReader(data)));
|
|
35206
34733
|
}
|
|
35207
34734
|
|
|
35208
|
-
|
|
35209
|
-
|
|
35210
|
-
|
|
35211
|
-
|
|
34735
|
+
ListProjectInsightCards(
|
|
34736
|
+
request: ListProjectInsightCardsRequest,
|
|
34737
|
+
metadata?: Metadata,
|
|
34738
|
+
): Promise<ListProjectInsightCardsResponse> {
|
|
34739
|
+
const data = ListProjectInsightCardsRequest.encode(request).finish();
|
|
34740
|
+
const promise = this.rpc.request(this.service, "ListProjectInsightCards", data, metadata);
|
|
34741
|
+
return promise.then((data) => ListProjectInsightCardsResponse.decode(new BinaryReader(data)));
|
|
35212
34742
|
}
|
|
35213
34743
|
}
|
|
35214
34744
|
|