@miradorlabs/web-grpc 4.5.2 → 4.11.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.
Files changed (33) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +1 -1
  3. package/google/protobuf/duration.ts +1 -1
  4. package/google/protobuf/timestamp.ts +1 -1
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +1 -1
  7. package/proto/gateway/common/v1/status.ts +1 -1
  8. package/proto/gateway/common/v1/types.ts +1 -1
  9. package/proto/gateway/web/v1/account_gateway.ts +1 -1
  10. package/proto/gateway/web/v1/admin_gateway.ts +1 -1
  11. package/proto/gateway/web/v1/ai_gateway.ts +268 -372
  12. package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +2 -2
  13. package/proto/gateway/web/v1/ai_gateway_pb.js +499 -757
  14. package/proto/gateway/web/v1/attribute_value.ts +1 -1
  15. package/proto/gateway/web/v1/beta_gateway.ts +1 -1
  16. package/proto/gateway/web/v1/chain_gateway.ts +1 -1
  17. package/proto/gateway/web/v1/claude_enterprise_gateway.ts +1 -1
  18. package/proto/gateway/web/v1/common.ts +1 -1
  19. package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
  20. package/proto/gateway/web/v1/github_connector.ts +1 -1
  21. package/proto/gateway/web/v1/integration_gateway.ts +1 -1
  22. package/proto/gateway/web/v1/log_gateway.ts +1 -1
  23. package/proto/gateway/web/v1/market_gateway.ts +1 -1
  24. package/proto/gateway/web/v1/metric_gateway.ts +1 -1
  25. package/proto/gateway/web/v1/notification_gateway.ts +1 -1
  26. package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
  27. package/proto/gateway/web/v1/plan_gateway.ts +1 -1
  28. package/proto/gateway/web/v1/policy_gateway.ts +1 -1
  29. package/proto/gateway/web/v1/reference_gateway.ts +1 -1
  30. package/proto/gateway/web/v1/rule_gateway.ts +1 -1
  31. package/proto/gateway/web/v1/slo_gateway.ts +1 -1
  32. package/proto/gateway/web/v1/trace_gateway.ts +1 -1
  33. 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.18.3
3
+ // protoc-gen-ts_proto v2.18.4
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/ai_gateway.proto
6
6
 
@@ -3429,10 +3429,7 @@ export interface ListModelReasoningRequest {
3429
3429
  * cannot be listed and is always its own key.
3430
3430
  */
3431
3431
  effortGroups: EffortGroup[];
3432
- /**
3433
- * The half-open range [start_time, end_time) of event time, at most 113 days: up to 17 ISO weeks, and a baseline
3434
- * for every week shown needs the 4 weeks before them requested too.
3435
- */
3432
+ /** The half-open range [start_time, end_time) of event time, at most 113 days. */
3436
3433
  startTime: Date | undefined;
3437
3434
  endTime: Date | undefined;
3438
3435
  }
@@ -3469,44 +3466,7 @@ export interface ModelReasoning {
3469
3466
  medianPerCall?: number | undefined;
3470
3467
  p90PerCall?: number | undefined;
3471
3468
  countedTurns: number;
3472
- medianPerTurn?:
3473
- | number
3474
- | undefined;
3475
- /**
3476
- * Every ISO week (Monday 00:00 UTC) the range overlaps, oldest first, empty weeks included; the first can be
3477
- * partial when start_time is mid-week, and the latest when end_time is.
3478
- */
3479
- weeks: ModelReasoningWeek[];
3480
- }
3481
-
3482
- /**
3483
- * One ISO week of a pair. median_per_call is the value at 1-based rank ceil(n / 2) of its n counted calls (the
3484
- * lower middle for an even n); median_ci_low and median_ci_high are the nominal ~84% distribution-free rank interval
3485
- * of the median (z = 1.405), the values at ranks floor(n/2 − 1.405·√n/2) and ceil(n/2 + 1.405·√n/2) + 1 clamped to
3486
- * [1, n]: sample values, never interpolated. Coverage is nominal, not exact for a finite sample; non-overlap is a
3487
- * heuristic, not a fixed-level test. All three are absent when counted_calls is 0.
3488
- */
3489
- export interface ModelReasoningWeek {
3490
- weekStart: Date | undefined;
3491
- countedCalls: number;
3492
- medianPerCall?: number | undefined;
3493
- medianCiLow?: number | undefined;
3494
- medianCiHigh?:
3495
- | number
3496
- | undefined;
3497
- /** The four prior ISO weeks' counted calls pooled into one sample; present only when all four lie inside the range. */
3498
- baseline?: ModelReasoningBaseline | undefined;
3499
- }
3500
-
3501
- /**
3502
- * The pooled sample of a week's four prior ISO weeks, by the same median and interval rules; a prior week with no
3503
- * counted call adds nothing. The median and bounds are absent when counted_calls is 0.
3504
- */
3505
- export interface ModelReasoningBaseline {
3506
- countedCalls: number;
3507
- median?: number | undefined;
3508
- ciLow?: number | undefined;
3509
- ciHigh?: number | undefined;
3469
+ medianPerTurn?: number | undefined;
3510
3470
  }
3511
3471
 
3512
3472
  export interface ReasoningCoverage {
@@ -3780,6 +3740,26 @@ export interface AISessionInsight {
3780
3740
  action: string;
3781
3741
  /** How much the problem cost the session, as the model judged it. */
3782
3742
  severity: AISessionInsightSeverity;
3743
+ /** Absent when this insight has no catalog suggestion. */
3744
+ skillSuggestion: AISkillSuggestion | undefined;
3745
+ }
3746
+
3747
+ /** AISkillSuggestion pins an immutable catalog revision, even when metadata cannot be resolved now. */
3748
+ export interface AISkillSuggestion {
3749
+ skillVersionId: string;
3750
+ /** Complete or absent. Absence means metadata could not be resolved now, not that the skill is unavailable. */
3751
+ skill: AISkillMetadata | undefined;
3752
+ }
3753
+
3754
+ /**
3755
+ * AISkillMetadata is public reference text, not instructions. Summary is pinned to the suggested revision;
3756
+ * name, HTTPS skills.sh source_url and availability are current catalog metadata. Withdrawn skills remain readable.
3757
+ */
3758
+ export interface AISkillMetadata {
3759
+ name: string;
3760
+ summary: string;
3761
+ sourceUrl: string;
3762
+ available: boolean;
3783
3763
  }
3784
3764
 
3785
3765
  /**
@@ -19587,7 +19567,6 @@ function createBaseModelReasoning(): ModelReasoning {
19587
19567
  p90PerCall: undefined,
19588
19568
  countedTurns: 0,
19589
19569
  medianPerTurn: undefined,
19590
- weeks: [],
19591
19570
  };
19592
19571
  }
19593
19572
 
@@ -19620,9 +19599,6 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
19620
19599
  if (message.medianPerTurn !== undefined) {
19621
19600
  writer.uint32(72).uint64(message.medianPerTurn);
19622
19601
  }
19623
- for (const v of message.weeks) {
19624
- ModelReasoningWeek.encode(v!, writer.uint32(82).fork()).join();
19625
- }
19626
19602
  return writer;
19627
19603
  },
19628
19604
 
@@ -19711,14 +19687,6 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
19711
19687
  message.medianPerTurn = longToNumber(reader.uint64());
19712
19688
  continue;
19713
19689
  }
19714
- case 10: {
19715
- if (tag !== 82) {
19716
- break;
19717
- }
19718
-
19719
- message.weeks.push(ModelReasoningWeek.decode(reader, reader.uint32()));
19720
- continue;
19721
- }
19722
19690
  }
19723
19691
  if ((tag & 7) === 4 || tag === 0) {
19724
19692
  break;
@@ -19774,9 +19742,6 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
19774
19742
  : isSet(object.median_per_turn)
19775
19743
  ? globalThis.Number(object.median_per_turn)
19776
19744
  : undefined,
19777
- weeks: globalThis.Array.isArray(object?.weeks)
19778
- ? object.weeks.map((e: any) => ModelReasoningWeek.fromJSON(e))
19779
- : [],
19780
19745
  };
19781
19746
  },
19782
19747
 
@@ -19809,9 +19774,6 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
19809
19774
  if (message.medianPerTurn !== undefined) {
19810
19775
  obj.medianPerTurn = Math.round(message.medianPerTurn);
19811
19776
  }
19812
- if (message.weeks?.length) {
19813
- obj.weeks = message.weeks.map((e) => ModelReasoningWeek.toJSON(e));
19814
- }
19815
19777
  return obj;
19816
19778
  },
19817
19779
 
@@ -19829,314 +19791,6 @@ export const ModelReasoning: MessageFns<ModelReasoning> = {
19829
19791
  message.p90PerCall = object.p90PerCall ?? undefined;
19830
19792
  message.countedTurns = object.countedTurns ?? 0;
19831
19793
  message.medianPerTurn = object.medianPerTurn ?? undefined;
19832
- message.weeks = object.weeks?.map((e) => ModelReasoningWeek.fromPartial(e)) || [];
19833
- return message;
19834
- },
19835
- };
19836
-
19837
- function createBaseModelReasoningWeek(): ModelReasoningWeek {
19838
- return {
19839
- weekStart: undefined,
19840
- countedCalls: 0,
19841
- medianPerCall: undefined,
19842
- medianCiLow: undefined,
19843
- medianCiHigh: undefined,
19844
- baseline: undefined,
19845
- };
19846
- }
19847
-
19848
- export const ModelReasoningWeek: MessageFns<ModelReasoningWeek> = {
19849
- encode(message: ModelReasoningWeek, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
19850
- if (message.weekStart !== undefined) {
19851
- Timestamp.encode(toTimestamp(message.weekStart), writer.uint32(10).fork()).join();
19852
- }
19853
- if (message.countedCalls !== 0) {
19854
- writer.uint32(16).uint64(message.countedCalls);
19855
- }
19856
- if (message.medianPerCall !== undefined) {
19857
- writer.uint32(24).uint64(message.medianPerCall);
19858
- }
19859
- if (message.medianCiLow !== undefined) {
19860
- writer.uint32(32).uint64(message.medianCiLow);
19861
- }
19862
- if (message.medianCiHigh !== undefined) {
19863
- writer.uint32(40).uint64(message.medianCiHigh);
19864
- }
19865
- if (message.baseline !== undefined) {
19866
- ModelReasoningBaseline.encode(message.baseline, writer.uint32(50).fork()).join();
19867
- }
19868
- return writer;
19869
- },
19870
-
19871
- decode(input: BinaryReader | Uint8Array, length?: number): ModelReasoningWeek {
19872
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
19873
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
19874
- if (previousRecursionDepth >= 100) {
19875
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
19876
- }
19877
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
19878
- try {
19879
- const end = length === undefined ? reader.len : reader.pos + length;
19880
- const message = createBaseModelReasoningWeek();
19881
- while (reader.pos < end) {
19882
- const tag = reader.uint32();
19883
- switch (tag >>> 3) {
19884
- case 1: {
19885
- if (tag !== 10) {
19886
- break;
19887
- }
19888
-
19889
- message.weekStart = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
19890
- continue;
19891
- }
19892
- case 2: {
19893
- if (tag !== 16) {
19894
- break;
19895
- }
19896
-
19897
- message.countedCalls = longToNumber(reader.uint64());
19898
- continue;
19899
- }
19900
- case 3: {
19901
- if (tag !== 24) {
19902
- break;
19903
- }
19904
-
19905
- message.medianPerCall = longToNumber(reader.uint64());
19906
- continue;
19907
- }
19908
- case 4: {
19909
- if (tag !== 32) {
19910
- break;
19911
- }
19912
-
19913
- message.medianCiLow = longToNumber(reader.uint64());
19914
- continue;
19915
- }
19916
- case 5: {
19917
- if (tag !== 40) {
19918
- break;
19919
- }
19920
-
19921
- message.medianCiHigh = longToNumber(reader.uint64());
19922
- continue;
19923
- }
19924
- case 6: {
19925
- if (tag !== 50) {
19926
- break;
19927
- }
19928
-
19929
- message.baseline = ModelReasoningBaseline.decode(reader, reader.uint32());
19930
- continue;
19931
- }
19932
- }
19933
- if ((tag & 7) === 4 || tag === 0) {
19934
- break;
19935
- }
19936
- reader.skip(tag & 7);
19937
- }
19938
- return message;
19939
- } finally {
19940
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
19941
- }
19942
- },
19943
-
19944
- fromJSON(object: any): ModelReasoningWeek {
19945
- return {
19946
- weekStart: isSet(object.weekStart)
19947
- ? fromJsonTimestamp(object.weekStart)
19948
- : isSet(object.week_start)
19949
- ? fromJsonTimestamp(object.week_start)
19950
- : undefined,
19951
- countedCalls: isSet(object.countedCalls)
19952
- ? globalThis.Number(object.countedCalls)
19953
- : isSet(object.counted_calls)
19954
- ? globalThis.Number(object.counted_calls)
19955
- : 0,
19956
- medianPerCall: isSet(object.medianPerCall)
19957
- ? globalThis.Number(object.medianPerCall)
19958
- : isSet(object.median_per_call)
19959
- ? globalThis.Number(object.median_per_call)
19960
- : undefined,
19961
- medianCiLow: isSet(object.medianCiLow)
19962
- ? globalThis.Number(object.medianCiLow)
19963
- : isSet(object.median_ci_low)
19964
- ? globalThis.Number(object.median_ci_low)
19965
- : undefined,
19966
- medianCiHigh: isSet(object.medianCiHigh)
19967
- ? globalThis.Number(object.medianCiHigh)
19968
- : isSet(object.median_ci_high)
19969
- ? globalThis.Number(object.median_ci_high)
19970
- : undefined,
19971
- baseline: isSet(object.baseline) ? ModelReasoningBaseline.fromJSON(object.baseline) : undefined,
19972
- };
19973
- },
19974
-
19975
- toJSON(message: ModelReasoningWeek): unknown {
19976
- const obj: any = {};
19977
- if (message.weekStart !== undefined) {
19978
- obj.weekStart = message.weekStart.toISOString();
19979
- }
19980
- if (message.countedCalls !== 0) {
19981
- obj.countedCalls = Math.round(message.countedCalls);
19982
- }
19983
- if (message.medianPerCall !== undefined) {
19984
- obj.medianPerCall = Math.round(message.medianPerCall);
19985
- }
19986
- if (message.medianCiLow !== undefined) {
19987
- obj.medianCiLow = Math.round(message.medianCiLow);
19988
- }
19989
- if (message.medianCiHigh !== undefined) {
19990
- obj.medianCiHigh = Math.round(message.medianCiHigh);
19991
- }
19992
- if (message.baseline !== undefined) {
19993
- obj.baseline = ModelReasoningBaseline.toJSON(message.baseline);
19994
- }
19995
- return obj;
19996
- },
19997
-
19998
- create<I extends Exact<DeepPartial<ModelReasoningWeek>, I>>(base?: I): ModelReasoningWeek {
19999
- return ModelReasoningWeek.fromPartial(base ?? ({} as any));
20000
- },
20001
- fromPartial<I extends Exact<DeepPartial<ModelReasoningWeek>, I>>(object: I): ModelReasoningWeek {
20002
- const message = createBaseModelReasoningWeek();
20003
- message.weekStart = object.weekStart ?? undefined;
20004
- message.countedCalls = object.countedCalls ?? 0;
20005
- message.medianPerCall = object.medianPerCall ?? undefined;
20006
- message.medianCiLow = object.medianCiLow ?? undefined;
20007
- message.medianCiHigh = object.medianCiHigh ?? undefined;
20008
- message.baseline = (object.baseline !== undefined && object.baseline !== null)
20009
- ? ModelReasoningBaseline.fromPartial(object.baseline)
20010
- : undefined;
20011
- return message;
20012
- },
20013
- };
20014
-
20015
- function createBaseModelReasoningBaseline(): ModelReasoningBaseline {
20016
- return { countedCalls: 0, median: undefined, ciLow: undefined, ciHigh: undefined };
20017
- }
20018
-
20019
- export const ModelReasoningBaseline: MessageFns<ModelReasoningBaseline> = {
20020
- encode(message: ModelReasoningBaseline, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
20021
- if (message.countedCalls !== 0) {
20022
- writer.uint32(8).uint64(message.countedCalls);
20023
- }
20024
- if (message.median !== undefined) {
20025
- writer.uint32(16).uint64(message.median);
20026
- }
20027
- if (message.ciLow !== undefined) {
20028
- writer.uint32(24).uint64(message.ciLow);
20029
- }
20030
- if (message.ciHigh !== undefined) {
20031
- writer.uint32(32).uint64(message.ciHigh);
20032
- }
20033
- return writer;
20034
- },
20035
-
20036
- decode(input: BinaryReader | Uint8Array, length?: number): ModelReasoningBaseline {
20037
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
20038
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
20039
- if (previousRecursionDepth >= 100) {
20040
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
20041
- }
20042
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
20043
- try {
20044
- const end = length === undefined ? reader.len : reader.pos + length;
20045
- const message = createBaseModelReasoningBaseline();
20046
- while (reader.pos < end) {
20047
- const tag = reader.uint32();
20048
- switch (tag >>> 3) {
20049
- case 1: {
20050
- if (tag !== 8) {
20051
- break;
20052
- }
20053
-
20054
- message.countedCalls = longToNumber(reader.uint64());
20055
- continue;
20056
- }
20057
- case 2: {
20058
- if (tag !== 16) {
20059
- break;
20060
- }
20061
-
20062
- message.median = longToNumber(reader.uint64());
20063
- continue;
20064
- }
20065
- case 3: {
20066
- if (tag !== 24) {
20067
- break;
20068
- }
20069
-
20070
- message.ciLow = longToNumber(reader.uint64());
20071
- continue;
20072
- }
20073
- case 4: {
20074
- if (tag !== 32) {
20075
- break;
20076
- }
20077
-
20078
- message.ciHigh = longToNumber(reader.uint64());
20079
- continue;
20080
- }
20081
- }
20082
- if ((tag & 7) === 4 || tag === 0) {
20083
- break;
20084
- }
20085
- reader.skip(tag & 7);
20086
- }
20087
- return message;
20088
- } finally {
20089
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
20090
- }
20091
- },
20092
-
20093
- fromJSON(object: any): ModelReasoningBaseline {
20094
- return {
20095
- countedCalls: isSet(object.countedCalls)
20096
- ? globalThis.Number(object.countedCalls)
20097
- : isSet(object.counted_calls)
20098
- ? globalThis.Number(object.counted_calls)
20099
- : 0,
20100
- median: isSet(object.median) ? globalThis.Number(object.median) : undefined,
20101
- ciLow: isSet(object.ciLow)
20102
- ? globalThis.Number(object.ciLow)
20103
- : isSet(object.ci_low)
20104
- ? globalThis.Number(object.ci_low)
20105
- : undefined,
20106
- ciHigh: isSet(object.ciHigh)
20107
- ? globalThis.Number(object.ciHigh)
20108
- : isSet(object.ci_high)
20109
- ? globalThis.Number(object.ci_high)
20110
- : undefined,
20111
- };
20112
- },
20113
-
20114
- toJSON(message: ModelReasoningBaseline): unknown {
20115
- const obj: any = {};
20116
- if (message.countedCalls !== 0) {
20117
- obj.countedCalls = Math.round(message.countedCalls);
20118
- }
20119
- if (message.median !== undefined) {
20120
- obj.median = Math.round(message.median);
20121
- }
20122
- if (message.ciLow !== undefined) {
20123
- obj.ciLow = Math.round(message.ciLow);
20124
- }
20125
- if (message.ciHigh !== undefined) {
20126
- obj.ciHigh = Math.round(message.ciHigh);
20127
- }
20128
- return obj;
20129
- },
20130
-
20131
- create<I extends Exact<DeepPartial<ModelReasoningBaseline>, I>>(base?: I): ModelReasoningBaseline {
20132
- return ModelReasoningBaseline.fromPartial(base ?? ({} as any));
20133
- },
20134
- fromPartial<I extends Exact<DeepPartial<ModelReasoningBaseline>, I>>(object: I): ModelReasoningBaseline {
20135
- const message = createBaseModelReasoningBaseline();
20136
- message.countedCalls = object.countedCalls ?? 0;
20137
- message.median = object.median ?? undefined;
20138
- message.ciLow = object.ciLow ?? undefined;
20139
- message.ciHigh = object.ciHigh ?? undefined;
20140
19794
  return message;
20141
19795
  },
20142
19796
  };
@@ -23416,7 +23070,15 @@ export const AISessionInsights: MessageFns<AISessionInsights> = {
23416
23070
  };
23417
23071
 
23418
23072
  function createBaseAISessionInsight(): AISessionInsight {
23419
- return { category: 0, actionType: 0, evidenceRefs: [], cause: "", action: "", severity: 0 };
23073
+ return {
23074
+ category: 0,
23075
+ actionType: 0,
23076
+ evidenceRefs: [],
23077
+ cause: "",
23078
+ action: "",
23079
+ severity: 0,
23080
+ skillSuggestion: undefined,
23081
+ };
23420
23082
  }
23421
23083
 
23422
23084
  export const AISessionInsight: MessageFns<AISessionInsight> = {
@@ -23439,6 +23101,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
23439
23101
  if (message.severity !== 0) {
23440
23102
  writer.uint32(48).int32(message.severity);
23441
23103
  }
23104
+ if (message.skillSuggestion !== undefined) {
23105
+ AISkillSuggestion.encode(message.skillSuggestion, writer.uint32(58).fork()).join();
23106
+ }
23442
23107
  return writer;
23443
23108
  },
23444
23109
 
@@ -23503,6 +23168,14 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
23503
23168
  message.severity = reader.int32() as any;
23504
23169
  continue;
23505
23170
  }
23171
+ case 7: {
23172
+ if (tag !== 58) {
23173
+ break;
23174
+ }
23175
+
23176
+ message.skillSuggestion = AISkillSuggestion.decode(reader, reader.uint32());
23177
+ continue;
23178
+ }
23506
23179
  }
23507
23180
  if ((tag & 7) === 4 || tag === 0) {
23508
23181
  break;
@@ -23531,6 +23204,11 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
23531
23204
  cause: isSet(object.cause) ? globalThis.String(object.cause) : "",
23532
23205
  action: isSet(object.action) ? globalThis.String(object.action) : "",
23533
23206
  severity: isSet(object.severity) ? aISessionInsightSeverityFromJSON(object.severity) : 0,
23207
+ skillSuggestion: isSet(object.skillSuggestion)
23208
+ ? AISkillSuggestion.fromJSON(object.skillSuggestion)
23209
+ : isSet(object.skill_suggestion)
23210
+ ? AISkillSuggestion.fromJSON(object.skill_suggestion)
23211
+ : undefined,
23534
23212
  };
23535
23213
  },
23536
23214
 
@@ -23554,6 +23232,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
23554
23232
  if (message.severity !== 0) {
23555
23233
  obj.severity = aISessionInsightSeverityToJSON(message.severity);
23556
23234
  }
23235
+ if (message.skillSuggestion !== undefined) {
23236
+ obj.skillSuggestion = AISkillSuggestion.toJSON(message.skillSuggestion);
23237
+ }
23557
23238
  return obj;
23558
23239
  },
23559
23240
 
@@ -23568,6 +23249,221 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
23568
23249
  message.cause = object.cause ?? "";
23569
23250
  message.action = object.action ?? "";
23570
23251
  message.severity = object.severity ?? 0;
23252
+ message.skillSuggestion = (object.skillSuggestion !== undefined && object.skillSuggestion !== null)
23253
+ ? AISkillSuggestion.fromPartial(object.skillSuggestion)
23254
+ : undefined;
23255
+ return message;
23256
+ },
23257
+ };
23258
+
23259
+ function createBaseAISkillSuggestion(): AISkillSuggestion {
23260
+ return { skillVersionId: "", skill: undefined };
23261
+ }
23262
+
23263
+ export const AISkillSuggestion: MessageFns<AISkillSuggestion> = {
23264
+ encode(message: AISkillSuggestion, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
23265
+ if (message.skillVersionId !== "") {
23266
+ writer.uint32(10).string(message.skillVersionId);
23267
+ }
23268
+ if (message.skill !== undefined) {
23269
+ AISkillMetadata.encode(message.skill, writer.uint32(18).fork()).join();
23270
+ }
23271
+ return writer;
23272
+ },
23273
+
23274
+ decode(input: BinaryReader | Uint8Array, length?: number): AISkillSuggestion {
23275
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
23276
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
23277
+ if (previousRecursionDepth >= 100) {
23278
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
23279
+ }
23280
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
23281
+ try {
23282
+ const end = length === undefined ? reader.len : reader.pos + length;
23283
+ const message = createBaseAISkillSuggestion();
23284
+ while (reader.pos < end) {
23285
+ const tag = reader.uint32();
23286
+ switch (tag >>> 3) {
23287
+ case 1: {
23288
+ if (tag !== 10) {
23289
+ break;
23290
+ }
23291
+
23292
+ message.skillVersionId = reader.string();
23293
+ continue;
23294
+ }
23295
+ case 2: {
23296
+ if (tag !== 18) {
23297
+ break;
23298
+ }
23299
+
23300
+ message.skill = AISkillMetadata.decode(reader, reader.uint32());
23301
+ continue;
23302
+ }
23303
+ }
23304
+ if ((tag & 7) === 4 || tag === 0) {
23305
+ break;
23306
+ }
23307
+ reader.skip(tag & 7);
23308
+ }
23309
+ return message;
23310
+ } finally {
23311
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
23312
+ }
23313
+ },
23314
+
23315
+ fromJSON(object: any): AISkillSuggestion {
23316
+ return {
23317
+ skillVersionId: isSet(object.skillVersionId)
23318
+ ? globalThis.String(object.skillVersionId)
23319
+ : isSet(object.skill_version_id)
23320
+ ? globalThis.String(object.skill_version_id)
23321
+ : "",
23322
+ skill: isSet(object.skill) ? AISkillMetadata.fromJSON(object.skill) : undefined,
23323
+ };
23324
+ },
23325
+
23326
+ toJSON(message: AISkillSuggestion): unknown {
23327
+ const obj: any = {};
23328
+ if (message.skillVersionId !== "") {
23329
+ obj.skillVersionId = message.skillVersionId;
23330
+ }
23331
+ if (message.skill !== undefined) {
23332
+ obj.skill = AISkillMetadata.toJSON(message.skill);
23333
+ }
23334
+ return obj;
23335
+ },
23336
+
23337
+ create<I extends Exact<DeepPartial<AISkillSuggestion>, I>>(base?: I): AISkillSuggestion {
23338
+ return AISkillSuggestion.fromPartial(base ?? ({} as any));
23339
+ },
23340
+ fromPartial<I extends Exact<DeepPartial<AISkillSuggestion>, I>>(object: I): AISkillSuggestion {
23341
+ const message = createBaseAISkillSuggestion();
23342
+ message.skillVersionId = object.skillVersionId ?? "";
23343
+ message.skill = (object.skill !== undefined && object.skill !== null)
23344
+ ? AISkillMetadata.fromPartial(object.skill)
23345
+ : undefined;
23346
+ return message;
23347
+ },
23348
+ };
23349
+
23350
+ function createBaseAISkillMetadata(): AISkillMetadata {
23351
+ return { name: "", summary: "", sourceUrl: "", available: false };
23352
+ }
23353
+
23354
+ export const AISkillMetadata: MessageFns<AISkillMetadata> = {
23355
+ encode(message: AISkillMetadata, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
23356
+ if (message.name !== "") {
23357
+ writer.uint32(10).string(message.name);
23358
+ }
23359
+ if (message.summary !== "") {
23360
+ writer.uint32(18).string(message.summary);
23361
+ }
23362
+ if (message.sourceUrl !== "") {
23363
+ writer.uint32(26).string(message.sourceUrl);
23364
+ }
23365
+ if (message.available !== false) {
23366
+ writer.uint32(32).bool(message.available);
23367
+ }
23368
+ return writer;
23369
+ },
23370
+
23371
+ decode(input: BinaryReader | Uint8Array, length?: number): AISkillMetadata {
23372
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
23373
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
23374
+ if (previousRecursionDepth >= 100) {
23375
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
23376
+ }
23377
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
23378
+ try {
23379
+ const end = length === undefined ? reader.len : reader.pos + length;
23380
+ const message = createBaseAISkillMetadata();
23381
+ while (reader.pos < end) {
23382
+ const tag = reader.uint32();
23383
+ switch (tag >>> 3) {
23384
+ case 1: {
23385
+ if (tag !== 10) {
23386
+ break;
23387
+ }
23388
+
23389
+ message.name = reader.string();
23390
+ continue;
23391
+ }
23392
+ case 2: {
23393
+ if (tag !== 18) {
23394
+ break;
23395
+ }
23396
+
23397
+ message.summary = reader.string();
23398
+ continue;
23399
+ }
23400
+ case 3: {
23401
+ if (tag !== 26) {
23402
+ break;
23403
+ }
23404
+
23405
+ message.sourceUrl = reader.string();
23406
+ continue;
23407
+ }
23408
+ case 4: {
23409
+ if (tag !== 32) {
23410
+ break;
23411
+ }
23412
+
23413
+ message.available = reader.bool();
23414
+ continue;
23415
+ }
23416
+ }
23417
+ if ((tag & 7) === 4 || tag === 0) {
23418
+ break;
23419
+ }
23420
+ reader.skip(tag & 7);
23421
+ }
23422
+ return message;
23423
+ } finally {
23424
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
23425
+ }
23426
+ },
23427
+
23428
+ fromJSON(object: any): AISkillMetadata {
23429
+ return {
23430
+ name: isSet(object.name) ? globalThis.String(object.name) : "",
23431
+ summary: isSet(object.summary) ? globalThis.String(object.summary) : "",
23432
+ sourceUrl: isSet(object.sourceUrl)
23433
+ ? globalThis.String(object.sourceUrl)
23434
+ : isSet(object.source_url)
23435
+ ? globalThis.String(object.source_url)
23436
+ : "",
23437
+ available: isSet(object.available) ? globalThis.Boolean(object.available) : false,
23438
+ };
23439
+ },
23440
+
23441
+ toJSON(message: AISkillMetadata): unknown {
23442
+ const obj: any = {};
23443
+ if (message.name !== "") {
23444
+ obj.name = message.name;
23445
+ }
23446
+ if (message.summary !== "") {
23447
+ obj.summary = message.summary;
23448
+ }
23449
+ if (message.sourceUrl !== "") {
23450
+ obj.sourceUrl = message.sourceUrl;
23451
+ }
23452
+ if (message.available !== false) {
23453
+ obj.available = message.available;
23454
+ }
23455
+ return obj;
23456
+ },
23457
+
23458
+ create<I extends Exact<DeepPartial<AISkillMetadata>, I>>(base?: I): AISkillMetadata {
23459
+ return AISkillMetadata.fromPartial(base ?? ({} as any));
23460
+ },
23461
+ fromPartial<I extends Exact<DeepPartial<AISkillMetadata>, I>>(object: I): AISkillMetadata {
23462
+ const message = createBaseAISkillMetadata();
23463
+ message.name = object.name ?? "";
23464
+ message.summary = object.summary ?? "";
23465
+ message.sourceUrl = object.sourceUrl ?? "";
23466
+ message.available = object.available ?? false;
23571
23467
  return message;
23572
23468
  },
23573
23469
  };
@@ -32833,8 +32729,8 @@ export interface AIGatewayService {
32833
32729
  ListModelActivity(request: ModelActivityRequest, metadata?: Metadata): Promise<ModelActivityResponse>;
32834
32730
  /**
32835
32731
  * How much each model thought per call over a time range, one row per (model, effort) after groups fold stored
32836
- * spellings: counted calls, exact medians and p90 per call and per turn, and each overlapped ISO week's median;
32837
- * with coverage and what served the calls. Counts only. Mirrors ai.api.v1.
32732
+ * spellings: counted calls and exact medians and p90 per call and per turn; with coverage and what served the
32733
+ * calls. Counts only. Mirrors ai.api.v1.
32838
32734
  */
32839
32735
  ListModelReasoning(request: ListModelReasoningRequest, metadata?: Metadata): Promise<ListModelReasoningResponse>;
32840
32736
  /**