@miradorlabs/web-grpc 4.33.0 → 4.35.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.
@@ -141,41 +141,6 @@ export function aISessionScoreRubricToJSON(object: AISessionScoreRubric): string
141
141
  }
142
142
  }
143
143
 
144
- /** SessionInsightSort orders a page of insights. */
145
- export enum SessionInsightSort {
146
- SESSION_INSIGHT_SORT_UNSPECIFIED = 0,
147
- /** SESSION_INSIGHT_SORT_RECENT - Newest analysis first; within one session, the model's order (most costly first); then source system and session id. */
148
- SESSION_INSIGHT_SORT_RECENT = 1,
149
- UNRECOGNIZED = -1,
150
- }
151
-
152
- export function sessionInsightSortFromJSON(object: any): SessionInsightSort {
153
- switch (object) {
154
- case 0:
155
- case "SESSION_INSIGHT_SORT_UNSPECIFIED":
156
- return SessionInsightSort.SESSION_INSIGHT_SORT_UNSPECIFIED;
157
- case 1:
158
- case "SESSION_INSIGHT_SORT_RECENT":
159
- return SessionInsightSort.SESSION_INSIGHT_SORT_RECENT;
160
- case -1:
161
- case "UNRECOGNIZED":
162
- default:
163
- return SessionInsightSort.UNRECOGNIZED;
164
- }
165
- }
166
-
167
- export function sessionInsightSortToJSON(object: SessionInsightSort): string {
168
- switch (object) {
169
- case SessionInsightSort.SESSION_INSIGHT_SORT_UNSPECIFIED:
170
- return "SESSION_INSIGHT_SORT_UNSPECIFIED";
171
- case SessionInsightSort.SESSION_INSIGHT_SORT_RECENT:
172
- return "SESSION_INSIGHT_SORT_RECENT";
173
- case SessionInsightSort.UNRECOGNIZED:
174
- default:
175
- return "UNRECOGNIZED";
176
- }
177
- }
178
-
179
144
  /**
180
145
  * AISessionInsightActionType is the kind of change an insight recommends (ai.common.v1.AISessionInsightActionType,
181
146
  * same numbers).
@@ -1569,88 +1534,6 @@ export function trackerSyncErrorToJSON(object: TrackerSyncError): string {
1569
1534
  }
1570
1535
  }
1571
1536
 
1572
- /** AIProjectInsightKind is what a card recommends, for display. */
1573
- export enum AIProjectInsightKind {
1574
- AI_PROJECT_INSIGHT_KIND_UNSPECIFIED = 0,
1575
- /** AI_PROJECT_INSIGHT_KIND_REUSABLE_WORKFLOW - A repeated workflow worth turning into a new reusable skill. */
1576
- AI_PROJECT_INSIGHT_KIND_REUSABLE_WORKFLOW = 1,
1577
- AI_PROJECT_INSIGHT_KIND_REPOSITORY_STRUCTURE = 2,
1578
- /** AI_PROJECT_INSIGHT_KIND_SECURITY_REVIEW - An observed concern to investigate, never a confirmed vulnerability. */
1579
- AI_PROJECT_INSIGHT_KIND_SECURITY_REVIEW = 3,
1580
- AI_PROJECT_INSIGHT_KIND_TOOLING_MCP = 4,
1581
- /** AI_PROJECT_INSIGHT_KIND_COORDINATION - Members duplicating work, or needing to coordinate it. */
1582
- AI_PROJECT_INSIGHT_KIND_COORDINATION = 5,
1583
- /** AI_PROJECT_INSIGHT_KIND_SHARED_FOCUS - Members working on the same product, feature or area, who would gain from knowing it. */
1584
- AI_PROJECT_INSIGHT_KIND_SHARED_FOCUS = 6,
1585
- /** AI_PROJECT_INSIGHT_KIND_SKILL_SHARING - A practice, skill or know-how one member shows that others working nearby would benefit from. */
1586
- AI_PROJECT_INSIGHT_KIND_SKILL_SHARING = 7,
1587
- /** AI_PROJECT_INSIGHT_KIND_AGENT_EXPERIENCE - How members get on with their agents: models or tools they favour, and where work flowed or stalled. */
1588
- AI_PROJECT_INSIGHT_KIND_AGENT_EXPERIENCE = 8,
1589
- UNRECOGNIZED = -1,
1590
- }
1591
-
1592
- export function aIProjectInsightKindFromJSON(object: any): AIProjectInsightKind {
1593
- switch (object) {
1594
- case 0:
1595
- case "AI_PROJECT_INSIGHT_KIND_UNSPECIFIED":
1596
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_UNSPECIFIED;
1597
- case 1:
1598
- case "AI_PROJECT_INSIGHT_KIND_REUSABLE_WORKFLOW":
1599
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_REUSABLE_WORKFLOW;
1600
- case 2:
1601
- case "AI_PROJECT_INSIGHT_KIND_REPOSITORY_STRUCTURE":
1602
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_REPOSITORY_STRUCTURE;
1603
- case 3:
1604
- case "AI_PROJECT_INSIGHT_KIND_SECURITY_REVIEW":
1605
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_SECURITY_REVIEW;
1606
- case 4:
1607
- case "AI_PROJECT_INSIGHT_KIND_TOOLING_MCP":
1608
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_TOOLING_MCP;
1609
- case 5:
1610
- case "AI_PROJECT_INSIGHT_KIND_COORDINATION":
1611
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_COORDINATION;
1612
- case 6:
1613
- case "AI_PROJECT_INSIGHT_KIND_SHARED_FOCUS":
1614
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_SHARED_FOCUS;
1615
- case 7:
1616
- case "AI_PROJECT_INSIGHT_KIND_SKILL_SHARING":
1617
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_SKILL_SHARING;
1618
- case 8:
1619
- case "AI_PROJECT_INSIGHT_KIND_AGENT_EXPERIENCE":
1620
- return AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_AGENT_EXPERIENCE;
1621
- case -1:
1622
- case "UNRECOGNIZED":
1623
- default:
1624
- return AIProjectInsightKind.UNRECOGNIZED;
1625
- }
1626
- }
1627
-
1628
- export function aIProjectInsightKindToJSON(object: AIProjectInsightKind): string {
1629
- switch (object) {
1630
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_UNSPECIFIED:
1631
- return "AI_PROJECT_INSIGHT_KIND_UNSPECIFIED";
1632
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_REUSABLE_WORKFLOW:
1633
- return "AI_PROJECT_INSIGHT_KIND_REUSABLE_WORKFLOW";
1634
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_REPOSITORY_STRUCTURE:
1635
- return "AI_PROJECT_INSIGHT_KIND_REPOSITORY_STRUCTURE";
1636
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_SECURITY_REVIEW:
1637
- return "AI_PROJECT_INSIGHT_KIND_SECURITY_REVIEW";
1638
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_TOOLING_MCP:
1639
- return "AI_PROJECT_INSIGHT_KIND_TOOLING_MCP";
1640
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_COORDINATION:
1641
- return "AI_PROJECT_INSIGHT_KIND_COORDINATION";
1642
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_SHARED_FOCUS:
1643
- return "AI_PROJECT_INSIGHT_KIND_SHARED_FOCUS";
1644
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_SKILL_SHARING:
1645
- return "AI_PROJECT_INSIGHT_KIND_SKILL_SHARING";
1646
- case AIProjectInsightKind.AI_PROJECT_INSIGHT_KIND_AGENT_EXPERIENCE:
1647
- return "AI_PROJECT_INSIGHT_KIND_AGENT_EXPERIENCE";
1648
- case AIProjectInsightKind.UNRECOGNIZED:
1649
- default:
1650
- return "UNRECOGNIZED";
1651
- }
1652
- }
1653
-
1654
1537
  /**
1655
1538
  * AIAgentKind is whose run made a model call: the session's main thread or a subagent run inside it. Mirrors
1656
1539
  * ai.api.v1.
@@ -3399,66 +3282,103 @@ export interface ScoredSession {
3399
3282
  sessionScoreRubric: AISessionScoreRubric;
3400
3283
  }
3401
3284
 
3402
- export interface GetSessionAnalysisRequest {
3285
+ export interface GetSessionPeriodTotalsRequest {
3403
3286
  organizationId: string;
3404
3287
  projectId: string;
3405
- /** source_system + session_id are the session identity. */
3406
- sourceSystem: string;
3407
- sessionId: string;
3288
+ /**
3289
+ * The window's start, which is scope: the sessions last active at or after it, as ListSessions' filter.active_after
3290
+ * keeps them. At most 35 days before the server's clock, else INVALID_ARGUMENT; a window that starts in the future
3291
+ * has no sessions.
3292
+ */
3293
+ activeAfter:
3294
+ | Date
3295
+ | undefined;
3296
+ /**
3297
+ * The prior window's start: prior_totals covers the sessions last active at or after it and before active_after.
3298
+ * Before active_after and at most 35 days before it, else INVALID_ARGUMENT.
3299
+ */
3300
+ priorActiveAfter: Date | undefined;
3408
3301
  }
3409
3302
 
3410
- /** ListSessionInsightsRequest pages a project's insights one insight at a time, newest analysis first. */
3411
- export interface ListSessionInsightsRequest {
3412
- organizationId: string;
3413
- projectId: string;
3414
- /** Narrows the insights; unset reads the whole team's. */
3415
- filter:
3416
- | SessionInsightFilter
3303
+ export interface GetSessionPeriodTotalsResponse {
3304
+ status:
3305
+ | ResponseStatus
3306
+ | undefined;
3307
+ /** The sessions last active at or after active_after. */
3308
+ totals:
3309
+ | SessionPeriodTotals
3310
+ | undefined;
3311
+ /** The sessions last active at or after prior_active_after and before active_after. */
3312
+ priorTotals:
3313
+ | SessionPeriodTotals
3417
3314
  | undefined;
3418
- /** Unspecified is SESSION_INSIGHT_SORT_RECENT. */
3419
- sort: SessionInsightSort;
3420
- /** Insights per page, 1 to 50; 0 is the default, 15. Negative is INVALID_ARGUMENT. */
3421
- pageSize: number;
3422
3315
  /**
3423
- * A next_page_token from the same request; empty reads the first page. A token used with another filter or sort
3424
- * reads on from its position under the new one.
3316
+ * The window's sessions per actor, one row per actor with a session, ordered by source_system, user_id, then
3317
+ * api_key_id.
3425
3318
  */
3426
- pageToken: string;
3319
+ actors: SessionActorUsage[];
3320
+ /** The window's sessions per work type key of their latest label, as GetSessionAnalysisOverview counts them. */
3321
+ workTypeCounts: SessionWorkTypeCount[];
3322
+ /**
3323
+ * The window's sessions per work size key of their latest label, ordered by key, whatever their work type. A
3324
+ * session with no label, or whose label names no work size (""), is in no row.
3325
+ */
3326
+ workSizeCounts: SessionWorkSizeCount[];
3427
3327
  }
3428
3328
 
3429
3329
  /**
3430
- * SessionInsightFilter narrows a project's insights. Fields AND; a repeated field matches any of its values; an unset
3431
- * or empty field does not filter.
3330
+ * SessionPeriodTotals sums whole-session figures over a window's sessions, one per (source_system, session_id) as
3331
+ * ListSessions lists them. input_tokens is cache-inclusive. A source that reports no usage has zero tokens here
3332
+ * (unknown, not none), as for SessionTotalsBucket.
3432
3333
  */
3433
- export interface SessionInsightFilter {
3334
+ export interface SessionPeriodTotals {
3335
+ /** For totals, ListSessions' pagination.total_count for the same active_after. */
3336
+ sessions: number;
3337
+ /** The sessions with at least one commit. */
3338
+ sessionsWithCommits: number;
3339
+ commits: number;
3340
+ gitPushes: number;
3341
+ pullRequestsCreated: number;
3434
3342
  /**
3435
- * The session's user (ai_sessions.UserId when the insights were written). Any reader of the project may list any of
3436
- * its people's insights.
3343
+ * AISessionSummary.pull_requests_merged summed over the sessions: a pull request counts once in every session that
3344
+ * links to it, so this is not a count of distinct pull requests.
3437
3345
  */
3438
- userIds: string[];
3439
- sourceSystems: string[];
3440
- /** The topics file's keys; a topic the model named has no key and matches none. */
3441
- topicKeys: string[];
3346
+ pullRequestsMerged: number;
3347
+ inputTokens: number;
3348
+ outputTokens: number;
3349
+ /** input_tokens + output_tokens of the sessions that have tokens and no provider cost. */
3350
+ unpricedTokens: number;
3442
3351
  }
3443
3352
 
3444
- export interface ListSessionInsightsResponse {
3445
- status:
3446
- | ResponseStatus
3447
- | undefined;
3448
- /** The page's insights in sort order; empty when the project has none that match. */
3449
- insights: SessionInsightEntry[];
3450
- /** Empty on the last page. */
3451
- nextPageToken: string;
3353
+ /**
3354
+ * SessionActorUsage is one actor's sessions in the window, with their whole-session usage. The actor is the session's
3355
+ * user id, else its api key id, on its source system, as SessionFilter.principals matches it: api_key_id is set only
3356
+ * when user_id is empty, and both are empty for a session that carries neither. input_tokens is cache-inclusive.
3357
+ */
3358
+ export interface SessionActorUsage {
3359
+ sourceSystem: string;
3360
+ userId: string;
3361
+ apiKeyId: string;
3362
+ inputTokens: number;
3363
+ outputTokens: number;
3364
+ /** AITokenUsage.provider_cost_usd, summed. */
3365
+ providerCostUsd: number;
3366
+ /** AIFacilityCostBreakdown.subscription_facility_usd, summed: a facility lens, never reconciled billing. */
3367
+ subscriptionFacilityUsd: number;
3368
+ }
3369
+
3370
+ /** SessionWorkSizeCount is how many sessions carry one work size (AISessionSummary.work_size) as their latest label. */
3371
+ export interface SessionWorkSizeCount {
3372
+ workSize: string;
3373
+ sessions: number;
3452
3374
  }
3453
3375
 
3454
- /** SessionInsightEntry is one insight with the session it is about. */
3455
- export interface SessionInsightEntry {
3456
- /** source_system with session_id is the session's identity. */
3376
+ export interface GetSessionAnalysisRequest {
3377
+ organizationId: string;
3378
+ projectId: string;
3379
+ /** source_system + session_id are the session identity. */
3457
3380
  sourceSystem: string;
3458
3381
  sessionId: string;
3459
- /** When the insights run that wrote it selected the session. */
3460
- analyzedAt: Date | undefined;
3461
- insight: AISessionInsight | undefined;
3462
3382
  }
3463
3383
 
3464
3384
  /**
@@ -3544,7 +3464,14 @@ export interface AISessionInsight {
3544
3464
  | AISessionInsightTopic
3545
3465
  | undefined;
3546
3466
  /** The catalog skill the insight recommends installing; set when the insight attaches one, always on ADD_SKILL. */
3547
- skill: AISkillSuggestion | undefined;
3467
+ skill:
3468
+ | AISkillSuggestion
3469
+ | undefined;
3470
+ /**
3471
+ * Names this insight of this analysis for AIInsightsGatewayService's ratings: opaque, minted by the server. A later
3472
+ * analysis of the session replaces its insights, and their ids with them.
3473
+ */
3474
+ id: string;
3548
3475
  }
3549
3476
 
3550
3477
  /** AISkillSuggestion pins an immutable catalog revision, even when metadata cannot be resolved now. */
@@ -3611,6 +3538,11 @@ export interface AISessionScore {
3611
3538
  * only rubric_version names it).
3612
3539
  */
3613
3540
  rubric: AISessionScoreRubric;
3541
+ /**
3542
+ * Names this grading of the session for AIInsightsGatewayService's ratings: opaque, minted by the server. A later
3543
+ * grading replaces the score, and its id with it.
3544
+ */
3545
+ id: string;
3614
3546
  }
3615
3547
 
3616
3548
  /**
@@ -4460,95 +4392,6 @@ export interface IssueSession {
4460
4392
  costUsdNanos: string;
4461
4393
  }
4462
4394
 
4463
- export interface ListProjectInsightCardsRequest {
4464
- organizationId: string;
4465
- projectId: string;
4466
- /** Cards per page, 1 to 50; 0 is the default, 15. Negative is a validation error. */
4467
- pageSize: number;
4468
- /** A prior response's next_page_token: resumes after its card's local day and rank. Empty reads the newest cards. */
4469
- pageToken: string;
4470
- }
4471
-
4472
- export interface ListProjectInsightCardsResponse {
4473
- status:
4474
- | ResponseStatus
4475
- | undefined;
4476
- /**
4477
- * Newest local day first, rank order within a day; empty when the project has no READY day. A page can be shorter
4478
- * than page_size while next_page_token is set.
4479
- */
4480
- cards: AIProjectInsightCard[];
4481
- /** Empty on the last page. */
4482
- nextPageToken: string;
4483
- }
4484
-
4485
- /**
4486
- * AIProjectInsightCard is one card with the run that served it: label it with its day and analysis ("Nov 3 (final)",
4487
- * "Today until 14:00, analyzed 14:06").
4488
- */
4489
- export interface AIProjectInsightCard {
4490
- insight: AIProjectInsight | undefined;
4491
- runId: string;
4492
- /** The day the run analyzed, YYYY-MM-DD in time_zone. */
4493
- localDate: string;
4494
- /** The IANA timezone the day is in: the organization's, or "UTC" when it had none. */
4495
- timeZone: string;
4496
- /** True when the run covered the whole local day, final for that day; false while the day is still running. */
4497
- windowClosed: boolean;
4498
- /** When the run analyzed the window. */
4499
- analyzedAt: Date | undefined;
4500
- }
4501
-
4502
- /**
4503
- * AIProjectInsight is one recommendation about the project's work, grounded in sessions of at least two linked people.
4504
- * title, pattern, explanation, action and limitations are model-written text; the counts and spend come from
4505
- * SQL, never from the model. Cards are new on every run: id names this run's card, not a pattern across runs.
4506
- */
4507
- export interface AIProjectInsight {
4508
- id: string;
4509
- /** 1 is the model's highest priority; unique within the run. */
4510
- rank: number;
4511
- /** For display only; not evidence. */
4512
- kind: AIProjectInsightKind;
4513
- title: string;
4514
- /** The observed pattern. */
4515
- pattern: string;
4516
- /** How the cited sessions connect, and why the action follows. */
4517
- explanation: string;
4518
- /** The proposed action. Nothing is done automatically. */
4519
- action: string;
4520
- /** What is still uncertain. */
4521
- limitations: string;
4522
- /** Distinct supporting sessions (at most 50) and their linked people (at least 2). */
4523
- sessionCount: number;
4524
- personCount: number;
4525
- /**
4526
- * Recorded spend in the supporting sessions during the window, in USD, as an exact decimal string ("12.5"). It is a
4527
- * sum of Decimal(18,9) amounts, so it can exceed a double's precision or int64 nanodollars. Absent when it could
4528
- * not be measured, never "0" for unknown. Cards' sessions overlap: never add amounts across cards.
4529
- */
4530
- spendUsd?:
4531
- | string
4532
- | undefined;
4533
- /** The events the card cites, in the model's order; each names a session of the project. */
4534
- citations: AIProjectInsightCitation[];
4535
- /**
4536
- * Absent when this card has no catalog suggestion. The model chose it from its run's shortlist of public skills no
4537
- * session of the project used in the window; its metadata is public reference text, not instructions.
4538
- */
4539
- skillSuggestion: AISkillSuggestion | undefined;
4540
- }
4541
-
4542
- /**
4543
- * AIProjectInsightCitation is one cited event: its session's identity (source_system with session_id) and the
4544
- * event's stored identity in that session.
4545
- */
4546
- export interface AIProjectInsightCitation {
4547
- sourceSystem: string;
4548
- sessionId: string;
4549
- eventRef: AISessionEventRef | undefined;
4550
- }
4551
-
4552
4395
  function createBaseListSessionsRequest(): ListSessionsRequest {
4553
4396
  return { organizationId: "", projectId: "", filter: undefined, sort: 0, page: 0, perPage: 0 };
4554
4397
  }
@@ -24962,28 +24805,28 @@ export const ScoredSession: MessageFns<ScoredSession> = {
24962
24805
  },
24963
24806
  };
24964
24807
 
24965
- function createBaseGetSessionAnalysisRequest(): GetSessionAnalysisRequest {
24966
- return { organizationId: "", projectId: "", sourceSystem: "", sessionId: "" };
24808
+ function createBaseGetSessionPeriodTotalsRequest(): GetSessionPeriodTotalsRequest {
24809
+ return { organizationId: "", projectId: "", activeAfter: undefined, priorActiveAfter: undefined };
24967
24810
  }
24968
24811
 
24969
- export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> = {
24970
- encode(message: GetSessionAnalysisRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
24812
+ export const GetSessionPeriodTotalsRequest: MessageFns<GetSessionPeriodTotalsRequest> = {
24813
+ encode(message: GetSessionPeriodTotalsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
24971
24814
  if (message.organizationId !== "") {
24972
24815
  writer.uint32(10).string(message.organizationId);
24973
24816
  }
24974
24817
  if (message.projectId !== "") {
24975
24818
  writer.uint32(18).string(message.projectId);
24976
24819
  }
24977
- if (message.sourceSystem !== "") {
24978
- writer.uint32(26).string(message.sourceSystem);
24820
+ if (message.activeAfter !== undefined) {
24821
+ Timestamp.encode(toTimestamp(message.activeAfter), writer.uint32(26).fork()).join();
24979
24822
  }
24980
- if (message.sessionId !== "") {
24981
- writer.uint32(34).string(message.sessionId);
24823
+ if (message.priorActiveAfter !== undefined) {
24824
+ Timestamp.encode(toTimestamp(message.priorActiveAfter), writer.uint32(34).fork()).join();
24982
24825
  }
24983
24826
  return writer;
24984
24827
  },
24985
24828
 
24986
- decode(input: BinaryReader | Uint8Array, length?: number): GetSessionAnalysisRequest {
24829
+ decode(input: BinaryReader | Uint8Array, length?: number): GetSessionPeriodTotalsRequest {
24987
24830
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
24988
24831
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
24989
24832
  if (previousRecursionDepth >= 100) {
@@ -24992,7 +24835,7 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
24992
24835
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
24993
24836
  try {
24994
24837
  const end = length === undefined ? reader.len : reader.pos + length;
24995
- const message = createBaseGetSessionAnalysisRequest();
24838
+ const message = createBaseGetSessionPeriodTotalsRequest();
24996
24839
  while (reader.pos < end) {
24997
24840
  const tag = reader.uint32();
24998
24841
  switch (tag >>> 3) {
@@ -25017,7 +24860,7 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
25017
24860
  break;
25018
24861
  }
25019
24862
 
25020
- message.sourceSystem = reader.string();
24863
+ message.activeAfter = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25021
24864
  continue;
25022
24865
  }
25023
24866
  case 4: {
@@ -25025,7 +24868,7 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
25025
24868
  break;
25026
24869
  }
25027
24870
 
25028
- message.sessionId = reader.string();
24871
+ message.priorActiveAfter = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25029
24872
  continue;
25030
24873
  }
25031
24874
  }
@@ -25040,7 +24883,7 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
25040
24883
  }
25041
24884
  },
25042
24885
 
25043
- fromJSON(object: any): GetSessionAnalysisRequest {
24886
+ fromJSON(object: any): GetSessionPeriodTotalsRequest {
25044
24887
  return {
25045
24888
  organizationId: isSet(object.organizationId)
25046
24889
  ? globalThis.String(object.organizationId)
@@ -25052,20 +24895,20 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
25052
24895
  : isSet(object.project_id)
25053
24896
  ? globalThis.String(object.project_id)
25054
24897
  : "",
25055
- sourceSystem: isSet(object.sourceSystem)
25056
- ? globalThis.String(object.sourceSystem)
25057
- : isSet(object.source_system)
25058
- ? globalThis.String(object.source_system)
25059
- : "",
25060
- sessionId: isSet(object.sessionId)
25061
- ? globalThis.String(object.sessionId)
25062
- : isSet(object.session_id)
25063
- ? globalThis.String(object.session_id)
25064
- : "",
24898
+ activeAfter: isSet(object.activeAfter)
24899
+ ? fromJsonTimestamp(object.activeAfter)
24900
+ : isSet(object.active_after)
24901
+ ? fromJsonTimestamp(object.active_after)
24902
+ : undefined,
24903
+ priorActiveAfter: isSet(object.priorActiveAfter)
24904
+ ? fromJsonTimestamp(object.priorActiveAfter)
24905
+ : isSet(object.prior_active_after)
24906
+ ? fromJsonTimestamp(object.prior_active_after)
24907
+ : undefined,
25065
24908
  };
25066
24909
  },
25067
24910
 
25068
- toJSON(message: GetSessionAnalysisRequest): unknown {
24911
+ toJSON(message: GetSessionPeriodTotalsRequest): unknown {
25069
24912
  const obj: any = {};
25070
24913
  if (message.organizationId !== "") {
25071
24914
  obj.organizationId = message.organizationId;
@@ -25073,56 +24916,65 @@ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> =
25073
24916
  if (message.projectId !== "") {
25074
24917
  obj.projectId = message.projectId;
25075
24918
  }
25076
- if (message.sourceSystem !== "") {
25077
- obj.sourceSystem = message.sourceSystem;
24919
+ if (message.activeAfter !== undefined) {
24920
+ obj.activeAfter = message.activeAfter.toISOString();
25078
24921
  }
25079
- if (message.sessionId !== "") {
25080
- obj.sessionId = message.sessionId;
24922
+ if (message.priorActiveAfter !== undefined) {
24923
+ obj.priorActiveAfter = message.priorActiveAfter.toISOString();
25081
24924
  }
25082
24925
  return obj;
25083
24926
  },
25084
24927
 
25085
- create<I extends Exact<DeepPartial<GetSessionAnalysisRequest>, I>>(base?: I): GetSessionAnalysisRequest {
25086
- return GetSessionAnalysisRequest.fromPartial(base ?? ({} as any));
24928
+ create<I extends Exact<DeepPartial<GetSessionPeriodTotalsRequest>, I>>(base?: I): GetSessionPeriodTotalsRequest {
24929
+ return GetSessionPeriodTotalsRequest.fromPartial(base ?? ({} as any));
25087
24930
  },
25088
- fromPartial<I extends Exact<DeepPartial<GetSessionAnalysisRequest>, I>>(object: I): GetSessionAnalysisRequest {
25089
- const message = createBaseGetSessionAnalysisRequest();
24931
+ fromPartial<I extends Exact<DeepPartial<GetSessionPeriodTotalsRequest>, I>>(
24932
+ object: I,
24933
+ ): GetSessionPeriodTotalsRequest {
24934
+ const message = createBaseGetSessionPeriodTotalsRequest();
25090
24935
  message.organizationId = object.organizationId ?? "";
25091
24936
  message.projectId = object.projectId ?? "";
25092
- message.sourceSystem = object.sourceSystem ?? "";
25093
- message.sessionId = object.sessionId ?? "";
24937
+ message.activeAfter = object.activeAfter ?? undefined;
24938
+ message.priorActiveAfter = object.priorActiveAfter ?? undefined;
25094
24939
  return message;
25095
24940
  },
25096
24941
  };
25097
24942
 
25098
- function createBaseListSessionInsightsRequest(): ListSessionInsightsRequest {
25099
- return { organizationId: "", projectId: "", filter: undefined, sort: 0, pageSize: 0, pageToken: "" };
24943
+ function createBaseGetSessionPeriodTotalsResponse(): GetSessionPeriodTotalsResponse {
24944
+ return {
24945
+ status: undefined,
24946
+ totals: undefined,
24947
+ priorTotals: undefined,
24948
+ actors: [],
24949
+ workTypeCounts: [],
24950
+ workSizeCounts: [],
24951
+ };
25100
24952
  }
25101
24953
 
25102
- export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest> = {
25103
- encode(message: ListSessionInsightsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25104
- if (message.organizationId !== "") {
25105
- writer.uint32(10).string(message.organizationId);
24954
+ export const GetSessionPeriodTotalsResponse: MessageFns<GetSessionPeriodTotalsResponse> = {
24955
+ encode(message: GetSessionPeriodTotalsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
24956
+ if (message.status !== undefined) {
24957
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
25106
24958
  }
25107
- if (message.projectId !== "") {
25108
- writer.uint32(18).string(message.projectId);
24959
+ if (message.totals !== undefined) {
24960
+ SessionPeriodTotals.encode(message.totals, writer.uint32(18).fork()).join();
25109
24961
  }
25110
- if (message.filter !== undefined) {
25111
- SessionInsightFilter.encode(message.filter, writer.uint32(26).fork()).join();
24962
+ if (message.priorTotals !== undefined) {
24963
+ SessionPeriodTotals.encode(message.priorTotals, writer.uint32(26).fork()).join();
25112
24964
  }
25113
- if (message.sort !== 0) {
25114
- writer.uint32(32).int32(message.sort);
24965
+ for (const v of message.actors) {
24966
+ SessionActorUsage.encode(v!, writer.uint32(34).fork()).join();
25115
24967
  }
25116
- if (message.pageSize !== 0) {
25117
- writer.uint32(40).int32(message.pageSize);
24968
+ for (const v of message.workTypeCounts) {
24969
+ SessionWorkTypeCount.encode(v!, writer.uint32(42).fork()).join();
25118
24970
  }
25119
- if (message.pageToken !== "") {
25120
- writer.uint32(50).string(message.pageToken);
24971
+ for (const v of message.workSizeCounts) {
24972
+ SessionWorkSizeCount.encode(v!, writer.uint32(50).fork()).join();
25121
24973
  }
25122
24974
  return writer;
25123
24975
  },
25124
24976
 
25125
- decode(input: BinaryReader | Uint8Array, length?: number): ListSessionInsightsRequest {
24977
+ decode(input: BinaryReader | Uint8Array, length?: number): GetSessionPeriodTotalsResponse {
25126
24978
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25127
24979
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
25128
24980
  if (previousRecursionDepth >= 100) {
@@ -25131,7 +24983,7 @@ export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest>
25131
24983
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
25132
24984
  try {
25133
24985
  const end = length === undefined ? reader.len : reader.pos + length;
25134
- const message = createBaseListSessionInsightsRequest();
24986
+ const message = createBaseGetSessionPeriodTotalsResponse();
25135
24987
  while (reader.pos < end) {
25136
24988
  const tag = reader.uint32();
25137
24989
  switch (tag >>> 3) {
@@ -25140,7 +24992,7 @@ export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest>
25140
24992
  break;
25141
24993
  }
25142
24994
 
25143
- message.organizationId = reader.string();
24995
+ message.status = ResponseStatus.decode(reader, reader.uint32());
25144
24996
  continue;
25145
24997
  }
25146
24998
  case 2: {
@@ -25148,7 +25000,7 @@ export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest>
25148
25000
  break;
25149
25001
  }
25150
25002
 
25151
- message.projectId = reader.string();
25003
+ message.totals = SessionPeriodTotals.decode(reader, reader.uint32());
25152
25004
  continue;
25153
25005
  }
25154
25006
  case 3: {
@@ -25156,23 +25008,23 @@ export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest>
25156
25008
  break;
25157
25009
  }
25158
25010
 
25159
- message.filter = SessionInsightFilter.decode(reader, reader.uint32());
25011
+ message.priorTotals = SessionPeriodTotals.decode(reader, reader.uint32());
25160
25012
  continue;
25161
25013
  }
25162
25014
  case 4: {
25163
- if (tag !== 32) {
25015
+ if (tag !== 34) {
25164
25016
  break;
25165
25017
  }
25166
25018
 
25167
- message.sort = reader.int32() as any;
25019
+ message.actors.push(SessionActorUsage.decode(reader, reader.uint32()));
25168
25020
  continue;
25169
25021
  }
25170
25022
  case 5: {
25171
- if (tag !== 40) {
25023
+ if (tag !== 42) {
25172
25024
  break;
25173
25025
  }
25174
25026
 
25175
- message.pageSize = reader.int32();
25027
+ message.workTypeCounts.push(SessionWorkTypeCount.decode(reader, reader.uint32()));
25176
25028
  continue;
25177
25029
  }
25178
25030
  case 6: {
@@ -25180,7 +25032,7 @@ export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest>
25180
25032
  break;
25181
25033
  }
25182
25034
 
25183
- message.pageToken = reader.string();
25035
+ message.workSizeCounts.push(SessionWorkSizeCount.decode(reader, reader.uint32()));
25184
25036
  continue;
25185
25037
  }
25186
25038
  }
@@ -25195,92 +25047,124 @@ export const ListSessionInsightsRequest: MessageFns<ListSessionInsightsRequest>
25195
25047
  }
25196
25048
  },
25197
25049
 
25198
- fromJSON(object: any): ListSessionInsightsRequest {
25050
+ fromJSON(object: any): GetSessionPeriodTotalsResponse {
25199
25051
  return {
25200
- organizationId: isSet(object.organizationId)
25201
- ? globalThis.String(object.organizationId)
25202
- : isSet(object.organization_id)
25203
- ? globalThis.String(object.organization_id)
25204
- : "",
25205
- projectId: isSet(object.projectId)
25206
- ? globalThis.String(object.projectId)
25207
- : isSet(object.project_id)
25208
- ? globalThis.String(object.project_id)
25209
- : "",
25210
- filter: isSet(object.filter) ? SessionInsightFilter.fromJSON(object.filter) : undefined,
25211
- sort: isSet(object.sort) ? sessionInsightSortFromJSON(object.sort) : 0,
25212
- pageSize: isSet(object.pageSize)
25213
- ? globalThis.Number(object.pageSize)
25214
- : isSet(object.page_size)
25215
- ? globalThis.Number(object.page_size)
25216
- : 0,
25217
- pageToken: isSet(object.pageToken)
25218
- ? globalThis.String(object.pageToken)
25219
- : isSet(object.page_token)
25220
- ? globalThis.String(object.page_token)
25221
- : "",
25052
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
25053
+ totals: isSet(object.totals) ? SessionPeriodTotals.fromJSON(object.totals) : undefined,
25054
+ priorTotals: isSet(object.priorTotals)
25055
+ ? SessionPeriodTotals.fromJSON(object.priorTotals)
25056
+ : isSet(object.prior_totals)
25057
+ ? SessionPeriodTotals.fromJSON(object.prior_totals)
25058
+ : undefined,
25059
+ actors: globalThis.Array.isArray(object?.actors)
25060
+ ? object.actors.map((e: any) => SessionActorUsage.fromJSON(e))
25061
+ : [],
25062
+ workTypeCounts: globalThis.Array.isArray(object?.workTypeCounts)
25063
+ ? object.workTypeCounts.map((e: any) => SessionWorkTypeCount.fromJSON(e))
25064
+ : globalThis.Array.isArray(object?.work_type_counts)
25065
+ ? object.work_type_counts.map((e: any) => SessionWorkTypeCount.fromJSON(e))
25066
+ : [],
25067
+ workSizeCounts: globalThis.Array.isArray(object?.workSizeCounts)
25068
+ ? object.workSizeCounts.map((e: any) => SessionWorkSizeCount.fromJSON(e))
25069
+ : globalThis.Array.isArray(object?.work_size_counts)
25070
+ ? object.work_size_counts.map((e: any) => SessionWorkSizeCount.fromJSON(e))
25071
+ : [],
25222
25072
  };
25223
25073
  },
25224
25074
 
25225
- toJSON(message: ListSessionInsightsRequest): unknown {
25075
+ toJSON(message: GetSessionPeriodTotalsResponse): unknown {
25226
25076
  const obj: any = {};
25227
- if (message.organizationId !== "") {
25228
- obj.organizationId = message.organizationId;
25077
+ if (message.status !== undefined) {
25078
+ obj.status = ResponseStatus.toJSON(message.status);
25229
25079
  }
25230
- if (message.projectId !== "") {
25231
- obj.projectId = message.projectId;
25080
+ if (message.totals !== undefined) {
25081
+ obj.totals = SessionPeriodTotals.toJSON(message.totals);
25232
25082
  }
25233
- if (message.filter !== undefined) {
25234
- obj.filter = SessionInsightFilter.toJSON(message.filter);
25083
+ if (message.priorTotals !== undefined) {
25084
+ obj.priorTotals = SessionPeriodTotals.toJSON(message.priorTotals);
25235
25085
  }
25236
- if (message.sort !== 0) {
25237
- obj.sort = sessionInsightSortToJSON(message.sort);
25086
+ if (message.actors?.length) {
25087
+ obj.actors = message.actors.map((e) => SessionActorUsage.toJSON(e));
25238
25088
  }
25239
- if (message.pageSize !== 0) {
25240
- obj.pageSize = Math.round(message.pageSize);
25089
+ if (message.workTypeCounts?.length) {
25090
+ obj.workTypeCounts = message.workTypeCounts.map((e) => SessionWorkTypeCount.toJSON(e));
25241
25091
  }
25242
- if (message.pageToken !== "") {
25243
- obj.pageToken = message.pageToken;
25092
+ if (message.workSizeCounts?.length) {
25093
+ obj.workSizeCounts = message.workSizeCounts.map((e) => SessionWorkSizeCount.toJSON(e));
25244
25094
  }
25245
25095
  return obj;
25246
25096
  },
25247
25097
 
25248
- create<I extends Exact<DeepPartial<ListSessionInsightsRequest>, I>>(base?: I): ListSessionInsightsRequest {
25249
- return ListSessionInsightsRequest.fromPartial(base ?? ({} as any));
25098
+ create<I extends Exact<DeepPartial<GetSessionPeriodTotalsResponse>, I>>(base?: I): GetSessionPeriodTotalsResponse {
25099
+ return GetSessionPeriodTotalsResponse.fromPartial(base ?? ({} as any));
25250
25100
  },
25251
- fromPartial<I extends Exact<DeepPartial<ListSessionInsightsRequest>, I>>(object: I): ListSessionInsightsRequest {
25252
- const message = createBaseListSessionInsightsRequest();
25253
- message.organizationId = object.organizationId ?? "";
25254
- message.projectId = object.projectId ?? "";
25255
- message.filter = (object.filter !== undefined && object.filter !== null)
25256
- ? SessionInsightFilter.fromPartial(object.filter)
25101
+ fromPartial<I extends Exact<DeepPartial<GetSessionPeriodTotalsResponse>, I>>(
25102
+ object: I,
25103
+ ): GetSessionPeriodTotalsResponse {
25104
+ const message = createBaseGetSessionPeriodTotalsResponse();
25105
+ message.status = (object.status !== undefined && object.status !== null)
25106
+ ? ResponseStatus.fromPartial(object.status)
25257
25107
  : undefined;
25258
- message.sort = object.sort ?? 0;
25259
- message.pageSize = object.pageSize ?? 0;
25260
- message.pageToken = object.pageToken ?? "";
25108
+ message.totals = (object.totals !== undefined && object.totals !== null)
25109
+ ? SessionPeriodTotals.fromPartial(object.totals)
25110
+ : undefined;
25111
+ message.priorTotals = (object.priorTotals !== undefined && object.priorTotals !== null)
25112
+ ? SessionPeriodTotals.fromPartial(object.priorTotals)
25113
+ : undefined;
25114
+ message.actors = object.actors?.map((e) => SessionActorUsage.fromPartial(e)) || [];
25115
+ message.workTypeCounts = object.workTypeCounts?.map((e) => SessionWorkTypeCount.fromPartial(e)) || [];
25116
+ message.workSizeCounts = object.workSizeCounts?.map((e) => SessionWorkSizeCount.fromPartial(e)) || [];
25261
25117
  return message;
25262
25118
  },
25263
25119
  };
25264
25120
 
25265
- function createBaseSessionInsightFilter(): SessionInsightFilter {
25266
- return { userIds: [], sourceSystems: [], topicKeys: [] };
25121
+ function createBaseSessionPeriodTotals(): SessionPeriodTotals {
25122
+ return {
25123
+ sessions: 0,
25124
+ sessionsWithCommits: 0,
25125
+ commits: 0,
25126
+ gitPushes: 0,
25127
+ pullRequestsCreated: 0,
25128
+ pullRequestsMerged: 0,
25129
+ inputTokens: 0,
25130
+ outputTokens: 0,
25131
+ unpricedTokens: 0,
25132
+ };
25267
25133
  }
25268
25134
 
25269
- export const SessionInsightFilter: MessageFns<SessionInsightFilter> = {
25270
- encode(message: SessionInsightFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25271
- for (const v of message.userIds) {
25272
- writer.uint32(10).string(v!);
25135
+ export const SessionPeriodTotals: MessageFns<SessionPeriodTotals> = {
25136
+ encode(message: SessionPeriodTotals, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25137
+ if (message.sessions !== 0) {
25138
+ writer.uint32(8).uint64(message.sessions);
25273
25139
  }
25274
- for (const v of message.sourceSystems) {
25275
- writer.uint32(18).string(v!);
25140
+ if (message.sessionsWithCommits !== 0) {
25141
+ writer.uint32(16).uint64(message.sessionsWithCommits);
25276
25142
  }
25277
- for (const v of message.topicKeys) {
25278
- writer.uint32(26).string(v!);
25143
+ if (message.commits !== 0) {
25144
+ writer.uint32(24).uint64(message.commits);
25145
+ }
25146
+ if (message.gitPushes !== 0) {
25147
+ writer.uint32(32).uint64(message.gitPushes);
25148
+ }
25149
+ if (message.pullRequestsCreated !== 0) {
25150
+ writer.uint32(40).uint64(message.pullRequestsCreated);
25151
+ }
25152
+ if (message.pullRequestsMerged !== 0) {
25153
+ writer.uint32(48).uint64(message.pullRequestsMerged);
25154
+ }
25155
+ if (message.inputTokens !== 0) {
25156
+ writer.uint32(56).uint64(message.inputTokens);
25157
+ }
25158
+ if (message.outputTokens !== 0) {
25159
+ writer.uint32(64).uint64(message.outputTokens);
25160
+ }
25161
+ if (message.unpricedTokens !== 0) {
25162
+ writer.uint32(72).uint64(message.unpricedTokens);
25279
25163
  }
25280
25164
  return writer;
25281
25165
  },
25282
25166
 
25283
- decode(input: BinaryReader | Uint8Array, length?: number): SessionInsightFilter {
25167
+ decode(input: BinaryReader | Uint8Array, length?: number): SessionPeriodTotals {
25284
25168
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25285
25169
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
25286
25170
  if (previousRecursionDepth >= 100) {
@@ -25289,32 +25173,80 @@ export const SessionInsightFilter: MessageFns<SessionInsightFilter> = {
25289
25173
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
25290
25174
  try {
25291
25175
  const end = length === undefined ? reader.len : reader.pos + length;
25292
- const message = createBaseSessionInsightFilter();
25176
+ const message = createBaseSessionPeriodTotals();
25293
25177
  while (reader.pos < end) {
25294
25178
  const tag = reader.uint32();
25295
25179
  switch (tag >>> 3) {
25296
25180
  case 1: {
25297
- if (tag !== 10) {
25181
+ if (tag !== 8) {
25298
25182
  break;
25299
25183
  }
25300
25184
 
25301
- message.userIds.push(reader.string());
25185
+ message.sessions = longToNumber(reader.uint64());
25302
25186
  continue;
25303
25187
  }
25304
25188
  case 2: {
25305
- if (tag !== 18) {
25189
+ if (tag !== 16) {
25306
25190
  break;
25307
25191
  }
25308
25192
 
25309
- message.sourceSystems.push(reader.string());
25193
+ message.sessionsWithCommits = longToNumber(reader.uint64());
25310
25194
  continue;
25311
25195
  }
25312
25196
  case 3: {
25313
- if (tag !== 26) {
25197
+ if (tag !== 24) {
25198
+ break;
25199
+ }
25200
+
25201
+ message.commits = longToNumber(reader.uint64());
25202
+ continue;
25203
+ }
25204
+ case 4: {
25205
+ if (tag !== 32) {
25206
+ break;
25207
+ }
25208
+
25209
+ message.gitPushes = longToNumber(reader.uint64());
25210
+ continue;
25211
+ }
25212
+ case 5: {
25213
+ if (tag !== 40) {
25214
+ break;
25215
+ }
25216
+
25217
+ message.pullRequestsCreated = longToNumber(reader.uint64());
25218
+ continue;
25219
+ }
25220
+ case 6: {
25221
+ if (tag !== 48) {
25314
25222
  break;
25315
25223
  }
25316
25224
 
25317
- message.topicKeys.push(reader.string());
25225
+ message.pullRequestsMerged = longToNumber(reader.uint64());
25226
+ continue;
25227
+ }
25228
+ case 7: {
25229
+ if (tag !== 56) {
25230
+ break;
25231
+ }
25232
+
25233
+ message.inputTokens = longToNumber(reader.uint64());
25234
+ continue;
25235
+ }
25236
+ case 8: {
25237
+ if (tag !== 64) {
25238
+ break;
25239
+ }
25240
+
25241
+ message.outputTokens = longToNumber(reader.uint64());
25242
+ continue;
25243
+ }
25244
+ case 9: {
25245
+ if (tag !== 72) {
25246
+ break;
25247
+ }
25248
+
25249
+ message.unpricedTokens = longToNumber(reader.uint64());
25318
25250
  continue;
25319
25251
  }
25320
25252
  }
@@ -25329,71 +25261,137 @@ export const SessionInsightFilter: MessageFns<SessionInsightFilter> = {
25329
25261
  }
25330
25262
  },
25331
25263
 
25332
- fromJSON(object: any): SessionInsightFilter {
25264
+ fromJSON(object: any): SessionPeriodTotals {
25333
25265
  return {
25334
- userIds: globalThis.Array.isArray(object?.userIds)
25335
- ? object.userIds.map((e: any) => globalThis.String(e))
25336
- : globalThis.Array.isArray(object?.user_ids)
25337
- ? object.user_ids.map((e: any) => globalThis.String(e))
25338
- : [],
25339
- sourceSystems: globalThis.Array.isArray(object?.sourceSystems)
25340
- ? object.sourceSystems.map((e: any) => globalThis.String(e))
25341
- : globalThis.Array.isArray(object?.source_systems)
25342
- ? object.source_systems.map((e: any) => globalThis.String(e))
25343
- : [],
25344
- topicKeys: globalThis.Array.isArray(object?.topicKeys)
25345
- ? object.topicKeys.map((e: any) => globalThis.String(e))
25346
- : globalThis.Array.isArray(object?.topic_keys)
25347
- ? object.topic_keys.map((e: any) => globalThis.String(e))
25348
- : [],
25266
+ sessions: isSet(object.sessions) ? globalThis.Number(object.sessions) : 0,
25267
+ sessionsWithCommits: isSet(object.sessionsWithCommits)
25268
+ ? globalThis.Number(object.sessionsWithCommits)
25269
+ : isSet(object.sessions_with_commits)
25270
+ ? globalThis.Number(object.sessions_with_commits)
25271
+ : 0,
25272
+ commits: isSet(object.commits) ? globalThis.Number(object.commits) : 0,
25273
+ gitPushes: isSet(object.gitPushes)
25274
+ ? globalThis.Number(object.gitPushes)
25275
+ : isSet(object.git_pushes)
25276
+ ? globalThis.Number(object.git_pushes)
25277
+ : 0,
25278
+ pullRequestsCreated: isSet(object.pullRequestsCreated)
25279
+ ? globalThis.Number(object.pullRequestsCreated)
25280
+ : isSet(object.pull_requests_created)
25281
+ ? globalThis.Number(object.pull_requests_created)
25282
+ : 0,
25283
+ pullRequestsMerged: isSet(object.pullRequestsMerged)
25284
+ ? globalThis.Number(object.pullRequestsMerged)
25285
+ : isSet(object.pull_requests_merged)
25286
+ ? globalThis.Number(object.pull_requests_merged)
25287
+ : 0,
25288
+ inputTokens: isSet(object.inputTokens)
25289
+ ? globalThis.Number(object.inputTokens)
25290
+ : isSet(object.input_tokens)
25291
+ ? globalThis.Number(object.input_tokens)
25292
+ : 0,
25293
+ outputTokens: isSet(object.outputTokens)
25294
+ ? globalThis.Number(object.outputTokens)
25295
+ : isSet(object.output_tokens)
25296
+ ? globalThis.Number(object.output_tokens)
25297
+ : 0,
25298
+ unpricedTokens: isSet(object.unpricedTokens)
25299
+ ? globalThis.Number(object.unpricedTokens)
25300
+ : isSet(object.unpriced_tokens)
25301
+ ? globalThis.Number(object.unpriced_tokens)
25302
+ : 0,
25349
25303
  };
25350
25304
  },
25351
25305
 
25352
- toJSON(message: SessionInsightFilter): unknown {
25306
+ toJSON(message: SessionPeriodTotals): unknown {
25353
25307
  const obj: any = {};
25354
- if (message.userIds?.length) {
25355
- obj.userIds = message.userIds;
25308
+ if (message.sessions !== 0) {
25309
+ obj.sessions = Math.round(message.sessions);
25356
25310
  }
25357
- if (message.sourceSystems?.length) {
25358
- obj.sourceSystems = message.sourceSystems;
25311
+ if (message.sessionsWithCommits !== 0) {
25312
+ obj.sessionsWithCommits = Math.round(message.sessionsWithCommits);
25313
+ }
25314
+ if (message.commits !== 0) {
25315
+ obj.commits = Math.round(message.commits);
25316
+ }
25317
+ if (message.gitPushes !== 0) {
25318
+ obj.gitPushes = Math.round(message.gitPushes);
25319
+ }
25320
+ if (message.pullRequestsCreated !== 0) {
25321
+ obj.pullRequestsCreated = Math.round(message.pullRequestsCreated);
25322
+ }
25323
+ if (message.pullRequestsMerged !== 0) {
25324
+ obj.pullRequestsMerged = Math.round(message.pullRequestsMerged);
25325
+ }
25326
+ if (message.inputTokens !== 0) {
25327
+ obj.inputTokens = Math.round(message.inputTokens);
25328
+ }
25329
+ if (message.outputTokens !== 0) {
25330
+ obj.outputTokens = Math.round(message.outputTokens);
25359
25331
  }
25360
- if (message.topicKeys?.length) {
25361
- obj.topicKeys = message.topicKeys;
25332
+ if (message.unpricedTokens !== 0) {
25333
+ obj.unpricedTokens = Math.round(message.unpricedTokens);
25362
25334
  }
25363
25335
  return obj;
25364
25336
  },
25365
25337
 
25366
- create<I extends Exact<DeepPartial<SessionInsightFilter>, I>>(base?: I): SessionInsightFilter {
25367
- return SessionInsightFilter.fromPartial(base ?? ({} as any));
25338
+ create<I extends Exact<DeepPartial<SessionPeriodTotals>, I>>(base?: I): SessionPeriodTotals {
25339
+ return SessionPeriodTotals.fromPartial(base ?? ({} as any));
25368
25340
  },
25369
- fromPartial<I extends Exact<DeepPartial<SessionInsightFilter>, I>>(object: I): SessionInsightFilter {
25370
- const message = createBaseSessionInsightFilter();
25371
- message.userIds = object.userIds?.map((e) => e) || [];
25372
- message.sourceSystems = object.sourceSystems?.map((e) => e) || [];
25373
- message.topicKeys = object.topicKeys?.map((e) => e) || [];
25341
+ fromPartial<I extends Exact<DeepPartial<SessionPeriodTotals>, I>>(object: I): SessionPeriodTotals {
25342
+ const message = createBaseSessionPeriodTotals();
25343
+ message.sessions = object.sessions ?? 0;
25344
+ message.sessionsWithCommits = object.sessionsWithCommits ?? 0;
25345
+ message.commits = object.commits ?? 0;
25346
+ message.gitPushes = object.gitPushes ?? 0;
25347
+ message.pullRequestsCreated = object.pullRequestsCreated ?? 0;
25348
+ message.pullRequestsMerged = object.pullRequestsMerged ?? 0;
25349
+ message.inputTokens = object.inputTokens ?? 0;
25350
+ message.outputTokens = object.outputTokens ?? 0;
25351
+ message.unpricedTokens = object.unpricedTokens ?? 0;
25374
25352
  return message;
25375
25353
  },
25376
25354
  };
25377
25355
 
25378
- function createBaseListSessionInsightsResponse(): ListSessionInsightsResponse {
25379
- return { status: undefined, insights: [], nextPageToken: "" };
25356
+ function createBaseSessionActorUsage(): SessionActorUsage {
25357
+ return {
25358
+ sourceSystem: "",
25359
+ userId: "",
25360
+ apiKeyId: "",
25361
+ inputTokens: 0,
25362
+ outputTokens: 0,
25363
+ providerCostUsd: 0,
25364
+ subscriptionFacilityUsd: 0,
25365
+ };
25380
25366
  }
25381
25367
 
25382
- export const ListSessionInsightsResponse: MessageFns<ListSessionInsightsResponse> = {
25383
- encode(message: ListSessionInsightsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25384
- if (message.status !== undefined) {
25385
- ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
25368
+ export const SessionActorUsage: MessageFns<SessionActorUsage> = {
25369
+ encode(message: SessionActorUsage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25370
+ if (message.sourceSystem !== "") {
25371
+ writer.uint32(10).string(message.sourceSystem);
25386
25372
  }
25387
- for (const v of message.insights) {
25388
- SessionInsightEntry.encode(v!, writer.uint32(18).fork()).join();
25373
+ if (message.userId !== "") {
25374
+ writer.uint32(18).string(message.userId);
25389
25375
  }
25390
- if (message.nextPageToken !== "") {
25391
- writer.uint32(26).string(message.nextPageToken);
25376
+ if (message.apiKeyId !== "") {
25377
+ writer.uint32(26).string(message.apiKeyId);
25378
+ }
25379
+ if (message.inputTokens !== 0) {
25380
+ writer.uint32(32).uint64(message.inputTokens);
25381
+ }
25382
+ if (message.outputTokens !== 0) {
25383
+ writer.uint32(40).uint64(message.outputTokens);
25384
+ }
25385
+ if (message.providerCostUsd !== 0) {
25386
+ writer.uint32(49).double(message.providerCostUsd);
25387
+ }
25388
+ if (message.subscriptionFacilityUsd !== 0) {
25389
+ writer.uint32(57).double(message.subscriptionFacilityUsd);
25392
25390
  }
25393
25391
  return writer;
25394
25392
  },
25395
25393
 
25396
- decode(input: BinaryReader | Uint8Array, length?: number): ListSessionInsightsResponse {
25394
+ decode(input: BinaryReader | Uint8Array, length?: number): SessionActorUsage {
25397
25395
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25398
25396
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
25399
25397
  if (previousRecursionDepth >= 100) {
@@ -25402,7 +25400,7 @@ export const ListSessionInsightsResponse: MessageFns<ListSessionInsightsResponse
25402
25400
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
25403
25401
  try {
25404
25402
  const end = length === undefined ? reader.len : reader.pos + length;
25405
- const message = createBaseListSessionInsightsResponse();
25403
+ const message = createBaseSessionActorUsage();
25406
25404
  while (reader.pos < end) {
25407
25405
  const tag = reader.uint32();
25408
25406
  switch (tag >>> 3) {
@@ -25411,7 +25409,7 @@ export const ListSessionInsightsResponse: MessageFns<ListSessionInsightsResponse
25411
25409
  break;
25412
25410
  }
25413
25411
 
25414
- message.status = ResponseStatus.decode(reader, reader.uint32());
25412
+ message.sourceSystem = reader.string();
25415
25413
  continue;
25416
25414
  }
25417
25415
  case 2: {
@@ -25419,7 +25417,7 @@ export const ListSessionInsightsResponse: MessageFns<ListSessionInsightsResponse
25419
25417
  break;
25420
25418
  }
25421
25419
 
25422
- message.insights.push(SessionInsightEntry.decode(reader, reader.uint32()));
25420
+ message.userId = reader.string();
25423
25421
  continue;
25424
25422
  }
25425
25423
  case 3: {
@@ -25427,85 +25425,246 @@ export const ListSessionInsightsResponse: MessageFns<ListSessionInsightsResponse
25427
25425
  break;
25428
25426
  }
25429
25427
 
25430
- message.nextPageToken = reader.string();
25428
+ message.apiKeyId = reader.string();
25431
25429
  continue;
25432
25430
  }
25433
- }
25434
- if ((tag & 7) === 4 || tag === 0) {
25435
- break;
25436
- }
25437
- reader.skip(tag & 7);
25438
- }
25439
- return message;
25440
- } finally {
25441
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
25442
- }
25443
- },
25431
+ case 4: {
25432
+ if (tag !== 32) {
25433
+ break;
25434
+ }
25444
25435
 
25445
- fromJSON(object: any): ListSessionInsightsResponse {
25446
- return {
25447
- status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
25448
- insights: globalThis.Array.isArray(object?.insights)
25449
- ? object.insights.map((e: any) => SessionInsightEntry.fromJSON(e))
25450
- : [],
25451
- nextPageToken: isSet(object.nextPageToken)
25452
- ? globalThis.String(object.nextPageToken)
25453
- : isSet(object.next_page_token)
25454
- ? globalThis.String(object.next_page_token)
25436
+ message.inputTokens = longToNumber(reader.uint64());
25437
+ continue;
25438
+ }
25439
+ case 5: {
25440
+ if (tag !== 40) {
25441
+ break;
25442
+ }
25443
+
25444
+ message.outputTokens = longToNumber(reader.uint64());
25445
+ continue;
25446
+ }
25447
+ case 6: {
25448
+ if (tag !== 49) {
25449
+ break;
25450
+ }
25451
+
25452
+ message.providerCostUsd = reader.double();
25453
+ continue;
25454
+ }
25455
+ case 7: {
25456
+ if (tag !== 57) {
25457
+ break;
25458
+ }
25459
+
25460
+ message.subscriptionFacilityUsd = reader.double();
25461
+ continue;
25462
+ }
25463
+ }
25464
+ if ((tag & 7) === 4 || tag === 0) {
25465
+ break;
25466
+ }
25467
+ reader.skip(tag & 7);
25468
+ }
25469
+ return message;
25470
+ } finally {
25471
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
25472
+ }
25473
+ },
25474
+
25475
+ fromJSON(object: any): SessionActorUsage {
25476
+ return {
25477
+ sourceSystem: isSet(object.sourceSystem)
25478
+ ? globalThis.String(object.sourceSystem)
25479
+ : isSet(object.source_system)
25480
+ ? globalThis.String(object.source_system)
25481
+ : "",
25482
+ userId: isSet(object.userId)
25483
+ ? globalThis.String(object.userId)
25484
+ : isSet(object.user_id)
25485
+ ? globalThis.String(object.user_id)
25486
+ : "",
25487
+ apiKeyId: isSet(object.apiKeyId)
25488
+ ? globalThis.String(object.apiKeyId)
25489
+ : isSet(object.api_key_id)
25490
+ ? globalThis.String(object.api_key_id)
25455
25491
  : "",
25492
+ inputTokens: isSet(object.inputTokens)
25493
+ ? globalThis.Number(object.inputTokens)
25494
+ : isSet(object.input_tokens)
25495
+ ? globalThis.Number(object.input_tokens)
25496
+ : 0,
25497
+ outputTokens: isSet(object.outputTokens)
25498
+ ? globalThis.Number(object.outputTokens)
25499
+ : isSet(object.output_tokens)
25500
+ ? globalThis.Number(object.output_tokens)
25501
+ : 0,
25502
+ providerCostUsd: isSet(object.providerCostUsd)
25503
+ ? globalThis.Number(object.providerCostUsd)
25504
+ : isSet(object.provider_cost_usd)
25505
+ ? globalThis.Number(object.provider_cost_usd)
25506
+ : 0,
25507
+ subscriptionFacilityUsd: isSet(object.subscriptionFacilityUsd)
25508
+ ? globalThis.Number(object.subscriptionFacilityUsd)
25509
+ : isSet(object.subscription_facility_usd)
25510
+ ? globalThis.Number(object.subscription_facility_usd)
25511
+ : 0,
25456
25512
  };
25457
25513
  },
25458
25514
 
25459
- toJSON(message: ListSessionInsightsResponse): unknown {
25515
+ toJSON(message: SessionActorUsage): unknown {
25460
25516
  const obj: any = {};
25461
- if (message.status !== undefined) {
25462
- obj.status = ResponseStatus.toJSON(message.status);
25517
+ if (message.sourceSystem !== "") {
25518
+ obj.sourceSystem = message.sourceSystem;
25463
25519
  }
25464
- if (message.insights?.length) {
25465
- obj.insights = message.insights.map((e) => SessionInsightEntry.toJSON(e));
25520
+ if (message.userId !== "") {
25521
+ obj.userId = message.userId;
25466
25522
  }
25467
- if (message.nextPageToken !== "") {
25468
- obj.nextPageToken = message.nextPageToken;
25523
+ if (message.apiKeyId !== "") {
25524
+ obj.apiKeyId = message.apiKeyId;
25525
+ }
25526
+ if (message.inputTokens !== 0) {
25527
+ obj.inputTokens = Math.round(message.inputTokens);
25528
+ }
25529
+ if (message.outputTokens !== 0) {
25530
+ obj.outputTokens = Math.round(message.outputTokens);
25531
+ }
25532
+ if (message.providerCostUsd !== 0) {
25533
+ obj.providerCostUsd = floatToJson(message.providerCostUsd);
25534
+ }
25535
+ if (message.subscriptionFacilityUsd !== 0) {
25536
+ obj.subscriptionFacilityUsd = floatToJson(message.subscriptionFacilityUsd);
25469
25537
  }
25470
25538
  return obj;
25471
25539
  },
25472
25540
 
25473
- create<I extends Exact<DeepPartial<ListSessionInsightsResponse>, I>>(base?: I): ListSessionInsightsResponse {
25474
- return ListSessionInsightsResponse.fromPartial(base ?? ({} as any));
25541
+ create<I extends Exact<DeepPartial<SessionActorUsage>, I>>(base?: I): SessionActorUsage {
25542
+ return SessionActorUsage.fromPartial(base ?? ({} as any));
25475
25543
  },
25476
- fromPartial<I extends Exact<DeepPartial<ListSessionInsightsResponse>, I>>(object: I): ListSessionInsightsResponse {
25477
- const message = createBaseListSessionInsightsResponse();
25478
- message.status = (object.status !== undefined && object.status !== null)
25479
- ? ResponseStatus.fromPartial(object.status)
25480
- : undefined;
25481
- message.insights = object.insights?.map((e) => SessionInsightEntry.fromPartial(e)) || [];
25482
- message.nextPageToken = object.nextPageToken ?? "";
25544
+ fromPartial<I extends Exact<DeepPartial<SessionActorUsage>, I>>(object: I): SessionActorUsage {
25545
+ const message = createBaseSessionActorUsage();
25546
+ message.sourceSystem = object.sourceSystem ?? "";
25547
+ message.userId = object.userId ?? "";
25548
+ message.apiKeyId = object.apiKeyId ?? "";
25549
+ message.inputTokens = object.inputTokens ?? 0;
25550
+ message.outputTokens = object.outputTokens ?? 0;
25551
+ message.providerCostUsd = object.providerCostUsd ?? 0;
25552
+ message.subscriptionFacilityUsd = object.subscriptionFacilityUsd ?? 0;
25483
25553
  return message;
25484
25554
  },
25485
25555
  };
25486
25556
 
25487
- function createBaseSessionInsightEntry(): SessionInsightEntry {
25488
- return { sourceSystem: "", sessionId: "", analyzedAt: undefined, insight: undefined };
25557
+ function createBaseSessionWorkSizeCount(): SessionWorkSizeCount {
25558
+ return { workSize: "", sessions: 0 };
25489
25559
  }
25490
25560
 
25491
- export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25492
- encode(message: SessionInsightEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25493
- if (message.sourceSystem !== "") {
25494
- writer.uint32(10).string(message.sourceSystem);
25561
+ export const SessionWorkSizeCount: MessageFns<SessionWorkSizeCount> = {
25562
+ encode(message: SessionWorkSizeCount, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25563
+ if (message.workSize !== "") {
25564
+ writer.uint32(10).string(message.workSize);
25495
25565
  }
25496
- if (message.sessionId !== "") {
25497
- writer.uint32(18).string(message.sessionId);
25566
+ if (message.sessions !== 0) {
25567
+ writer.uint32(16).uint64(message.sessions);
25498
25568
  }
25499
- if (message.analyzedAt !== undefined) {
25500
- Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(26).fork()).join();
25569
+ return writer;
25570
+ },
25571
+
25572
+ decode(input: BinaryReader | Uint8Array, length?: number): SessionWorkSizeCount {
25573
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25574
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
25575
+ if (previousRecursionDepth >= 100) {
25576
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
25577
+ }
25578
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
25579
+ try {
25580
+ const end = length === undefined ? reader.len : reader.pos + length;
25581
+ const message = createBaseSessionWorkSizeCount();
25582
+ while (reader.pos < end) {
25583
+ const tag = reader.uint32();
25584
+ switch (tag >>> 3) {
25585
+ case 1: {
25586
+ if (tag !== 10) {
25587
+ break;
25588
+ }
25589
+
25590
+ message.workSize = reader.string();
25591
+ continue;
25592
+ }
25593
+ case 2: {
25594
+ if (tag !== 16) {
25595
+ break;
25596
+ }
25597
+
25598
+ message.sessions = longToNumber(reader.uint64());
25599
+ continue;
25600
+ }
25601
+ }
25602
+ if ((tag & 7) === 4 || tag === 0) {
25603
+ break;
25604
+ }
25605
+ reader.skip(tag & 7);
25606
+ }
25607
+ return message;
25608
+ } finally {
25609
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
25610
+ }
25611
+ },
25612
+
25613
+ fromJSON(object: any): SessionWorkSizeCount {
25614
+ return {
25615
+ workSize: isSet(object.workSize)
25616
+ ? globalThis.String(object.workSize)
25617
+ : isSet(object.work_size)
25618
+ ? globalThis.String(object.work_size)
25619
+ : "",
25620
+ sessions: isSet(object.sessions) ? globalThis.Number(object.sessions) : 0,
25621
+ };
25622
+ },
25623
+
25624
+ toJSON(message: SessionWorkSizeCount): unknown {
25625
+ const obj: any = {};
25626
+ if (message.workSize !== "") {
25627
+ obj.workSize = message.workSize;
25628
+ }
25629
+ if (message.sessions !== 0) {
25630
+ obj.sessions = Math.round(message.sessions);
25631
+ }
25632
+ return obj;
25633
+ },
25634
+
25635
+ create<I extends Exact<DeepPartial<SessionWorkSizeCount>, I>>(base?: I): SessionWorkSizeCount {
25636
+ return SessionWorkSizeCount.fromPartial(base ?? ({} as any));
25637
+ },
25638
+ fromPartial<I extends Exact<DeepPartial<SessionWorkSizeCount>, I>>(object: I): SessionWorkSizeCount {
25639
+ const message = createBaseSessionWorkSizeCount();
25640
+ message.workSize = object.workSize ?? "";
25641
+ message.sessions = object.sessions ?? 0;
25642
+ return message;
25643
+ },
25644
+ };
25645
+
25646
+ function createBaseGetSessionAnalysisRequest(): GetSessionAnalysisRequest {
25647
+ return { organizationId: "", projectId: "", sourceSystem: "", sessionId: "" };
25648
+ }
25649
+
25650
+ export const GetSessionAnalysisRequest: MessageFns<GetSessionAnalysisRequest> = {
25651
+ encode(message: GetSessionAnalysisRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
25652
+ if (message.organizationId !== "") {
25653
+ writer.uint32(10).string(message.organizationId);
25501
25654
  }
25502
- if (message.insight !== undefined) {
25503
- AISessionInsight.encode(message.insight, writer.uint32(34).fork()).join();
25655
+ if (message.projectId !== "") {
25656
+ writer.uint32(18).string(message.projectId);
25657
+ }
25658
+ if (message.sourceSystem !== "") {
25659
+ writer.uint32(26).string(message.sourceSystem);
25660
+ }
25661
+ if (message.sessionId !== "") {
25662
+ writer.uint32(34).string(message.sessionId);
25504
25663
  }
25505
25664
  return writer;
25506
25665
  },
25507
25666
 
25508
- decode(input: BinaryReader | Uint8Array, length?: number): SessionInsightEntry {
25667
+ decode(input: BinaryReader | Uint8Array, length?: number): GetSessionAnalysisRequest {
25509
25668
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
25510
25669
  const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
25511
25670
  if (previousRecursionDepth >= 100) {
@@ -25514,7 +25673,7 @@ export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25514
25673
  (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
25515
25674
  try {
25516
25675
  const end = length === undefined ? reader.len : reader.pos + length;
25517
- const message = createBaseSessionInsightEntry();
25676
+ const message = createBaseGetSessionAnalysisRequest();
25518
25677
  while (reader.pos < end) {
25519
25678
  const tag = reader.uint32();
25520
25679
  switch (tag >>> 3) {
@@ -25523,7 +25682,7 @@ export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25523
25682
  break;
25524
25683
  }
25525
25684
 
25526
- message.sourceSystem = reader.string();
25685
+ message.organizationId = reader.string();
25527
25686
  continue;
25528
25687
  }
25529
25688
  case 2: {
@@ -25531,7 +25690,7 @@ export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25531
25690
  break;
25532
25691
  }
25533
25692
 
25534
- message.sessionId = reader.string();
25693
+ message.projectId = reader.string();
25535
25694
  continue;
25536
25695
  }
25537
25696
  case 3: {
@@ -25539,7 +25698,7 @@ export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25539
25698
  break;
25540
25699
  }
25541
25700
 
25542
- message.analyzedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
25701
+ message.sourceSystem = reader.string();
25543
25702
  continue;
25544
25703
  }
25545
25704
  case 4: {
@@ -25547,7 +25706,7 @@ export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25547
25706
  break;
25548
25707
  }
25549
25708
 
25550
- message.insight = AISessionInsight.decode(reader, reader.uint32());
25709
+ message.sessionId = reader.string();
25551
25710
  continue;
25552
25711
  }
25553
25712
  }
@@ -25562,8 +25721,18 @@ export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25562
25721
  }
25563
25722
  },
25564
25723
 
25565
- fromJSON(object: any): SessionInsightEntry {
25724
+ fromJSON(object: any): GetSessionAnalysisRequest {
25566
25725
  return {
25726
+ organizationId: isSet(object.organizationId)
25727
+ ? globalThis.String(object.organizationId)
25728
+ : isSet(object.organization_id)
25729
+ ? globalThis.String(object.organization_id)
25730
+ : "",
25731
+ projectId: isSet(object.projectId)
25732
+ ? globalThis.String(object.projectId)
25733
+ : isSet(object.project_id)
25734
+ ? globalThis.String(object.project_id)
25735
+ : "",
25567
25736
  sourceSystem: isSet(object.sourceSystem)
25568
25737
  ? globalThis.String(object.sourceSystem)
25569
25738
  : isSet(object.source_system)
@@ -25574,43 +25743,35 @@ export const SessionInsightEntry: MessageFns<SessionInsightEntry> = {
25574
25743
  : isSet(object.session_id)
25575
25744
  ? globalThis.String(object.session_id)
25576
25745
  : "",
25577
- analyzedAt: isSet(object.analyzedAt)
25578
- ? fromJsonTimestamp(object.analyzedAt)
25579
- : isSet(object.analyzed_at)
25580
- ? fromJsonTimestamp(object.analyzed_at)
25581
- : undefined,
25582
- insight: isSet(object.insight) ? AISessionInsight.fromJSON(object.insight) : undefined,
25583
25746
  };
25584
25747
  },
25585
25748
 
25586
- toJSON(message: SessionInsightEntry): unknown {
25749
+ toJSON(message: GetSessionAnalysisRequest): unknown {
25587
25750
  const obj: any = {};
25751
+ if (message.organizationId !== "") {
25752
+ obj.organizationId = message.organizationId;
25753
+ }
25754
+ if (message.projectId !== "") {
25755
+ obj.projectId = message.projectId;
25756
+ }
25588
25757
  if (message.sourceSystem !== "") {
25589
25758
  obj.sourceSystem = message.sourceSystem;
25590
25759
  }
25591
25760
  if (message.sessionId !== "") {
25592
25761
  obj.sessionId = message.sessionId;
25593
25762
  }
25594
- if (message.analyzedAt !== undefined) {
25595
- obj.analyzedAt = message.analyzedAt.toISOString();
25596
- }
25597
- if (message.insight !== undefined) {
25598
- obj.insight = AISessionInsight.toJSON(message.insight);
25599
- }
25600
25763
  return obj;
25601
25764
  },
25602
25765
 
25603
- create<I extends Exact<DeepPartial<SessionInsightEntry>, I>>(base?: I): SessionInsightEntry {
25604
- return SessionInsightEntry.fromPartial(base ?? ({} as any));
25766
+ create<I extends Exact<DeepPartial<GetSessionAnalysisRequest>, I>>(base?: I): GetSessionAnalysisRequest {
25767
+ return GetSessionAnalysisRequest.fromPartial(base ?? ({} as any));
25605
25768
  },
25606
- fromPartial<I extends Exact<DeepPartial<SessionInsightEntry>, I>>(object: I): SessionInsightEntry {
25607
- const message = createBaseSessionInsightEntry();
25769
+ fromPartial<I extends Exact<DeepPartial<GetSessionAnalysisRequest>, I>>(object: I): GetSessionAnalysisRequest {
25770
+ const message = createBaseGetSessionAnalysisRequest();
25771
+ message.organizationId = object.organizationId ?? "";
25772
+ message.projectId = object.projectId ?? "";
25608
25773
  message.sourceSystem = object.sourceSystem ?? "";
25609
25774
  message.sessionId = object.sessionId ?? "";
25610
- message.analyzedAt = object.analyzedAt ?? undefined;
25611
- message.insight = (object.insight !== undefined && object.insight !== null)
25612
- ? AISessionInsight.fromPartial(object.insight)
25613
- : undefined;
25614
25775
  return message;
25615
25776
  },
25616
25777
  };
@@ -26000,6 +26161,7 @@ function createBaseAISessionInsight(): AISessionInsight {
26000
26161
  remediationPrompt: "",
26001
26162
  topic: undefined,
26002
26163
  skill: undefined,
26164
+ id: "",
26003
26165
  };
26004
26166
  }
26005
26167
 
@@ -26029,6 +26191,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
26029
26191
  if (message.skill !== undefined) {
26030
26192
  AISkillSuggestion.encode(message.skill, writer.uint32(66).fork()).join();
26031
26193
  }
26194
+ if (message.id !== "") {
26195
+ writer.uint32(74).string(message.id);
26196
+ }
26032
26197
  return writer;
26033
26198
  },
26034
26199
 
@@ -26109,6 +26274,14 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
26109
26274
  message.skill = AISkillSuggestion.decode(reader, reader.uint32());
26110
26275
  continue;
26111
26276
  }
26277
+ case 9: {
26278
+ if (tag !== 74) {
26279
+ break;
26280
+ }
26281
+
26282
+ message.id = reader.string();
26283
+ continue;
26284
+ }
26112
26285
  }
26113
26286
  if ((tag & 7) === 4 || tag === 0) {
26114
26287
  break;
@@ -26143,6 +26316,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
26143
26316
  : "",
26144
26317
  topic: isSet(object.topic) ? AISessionInsightTopic.fromJSON(object.topic) : undefined,
26145
26318
  skill: isSet(object.skill) ? AISkillSuggestion.fromJSON(object.skill) : undefined,
26319
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
26146
26320
  };
26147
26321
  },
26148
26322
 
@@ -26172,6 +26346,9 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
26172
26346
  if (message.skill !== undefined) {
26173
26347
  obj.skill = AISkillSuggestion.toJSON(message.skill);
26174
26348
  }
26349
+ if (message.id !== "") {
26350
+ obj.id = message.id;
26351
+ }
26175
26352
  return obj;
26176
26353
  },
26177
26354
 
@@ -26192,6 +26369,7 @@ export const AISessionInsight: MessageFns<AISessionInsight> = {
26192
26369
  message.skill = (object.skill !== undefined && object.skill !== null)
26193
26370
  ? AISkillSuggestion.fromPartial(object.skill)
26194
26371
  : undefined;
26372
+ message.id = object.id ?? "";
26195
26373
  return message;
26196
26374
  },
26197
26375
  };
@@ -26552,6 +26730,7 @@ function createBaseAISessionScore(): AISessionScore {
26552
26730
  inputSessionVersion: 0,
26553
26731
  scoredAt: undefined,
26554
26732
  rubric: 0,
26733
+ id: "",
26555
26734
  };
26556
26735
  }
26557
26736
 
@@ -26584,6 +26763,9 @@ export const AISessionScore: MessageFns<AISessionScore> = {
26584
26763
  if (message.rubric !== 0) {
26585
26764
  writer.uint32(72).int32(message.rubric);
26586
26765
  }
26766
+ if (message.id !== "") {
26767
+ writer.uint32(82).string(message.id);
26768
+ }
26587
26769
  return writer;
26588
26770
  },
26589
26771
 
@@ -26672,6 +26854,14 @@ export const AISessionScore: MessageFns<AISessionScore> = {
26672
26854
  message.rubric = reader.int32() as any;
26673
26855
  continue;
26674
26856
  }
26857
+ case 10: {
26858
+ if (tag !== 82) {
26859
+ break;
26860
+ }
26861
+
26862
+ message.id = reader.string();
26863
+ continue;
26864
+ }
26675
26865
  }
26676
26866
  if ((tag & 7) === 4 || tag === 0) {
26677
26867
  break;
@@ -26713,6 +26903,7 @@ export const AISessionScore: MessageFns<AISessionScore> = {
26713
26903
  ? fromJsonTimestamp(object.scored_at)
26714
26904
  : undefined,
26715
26905
  rubric: isSet(object.rubric) ? aISessionScoreRubricFromJSON(object.rubric) : 0,
26906
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
26716
26907
  };
26717
26908
  },
26718
26909
 
@@ -26745,6 +26936,9 @@ export const AISessionScore: MessageFns<AISessionScore> = {
26745
26936
  if (message.rubric !== 0) {
26746
26937
  obj.rubric = aISessionScoreRubricToJSON(message.rubric);
26747
26938
  }
26939
+ if (message.id !== "") {
26940
+ obj.id = message.id;
26941
+ }
26748
26942
  return obj;
26749
26943
  },
26750
26944
 
@@ -26764,6 +26958,7 @@ export const AISessionScore: MessageFns<AISessionScore> = {
26764
26958
  message.inputSessionVersion = object.inputSessionVersion ?? 0;
26765
26959
  message.scoredAt = object.scoredAt ?? undefined;
26766
26960
  message.rubric = object.rubric ?? 0;
26961
+ message.id = object.id ?? "";
26767
26962
  return message;
26768
26963
  },
26769
26964
  };
@@ -35871,833 +36066,6 @@ export const IssueSession: MessageFns<IssueSession> = {
35871
36066
  },
35872
36067
  };
35873
36068
 
35874
- function createBaseListProjectInsightCardsRequest(): ListProjectInsightCardsRequest {
35875
- return { organizationId: "", projectId: "", pageSize: 0, pageToken: "" };
35876
- }
35877
-
35878
- export const ListProjectInsightCardsRequest: MessageFns<ListProjectInsightCardsRequest> = {
35879
- encode(message: ListProjectInsightCardsRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
35880
- if (message.organizationId !== "") {
35881
- writer.uint32(10).string(message.organizationId);
35882
- }
35883
- if (message.projectId !== "") {
35884
- writer.uint32(18).string(message.projectId);
35885
- }
35886
- if (message.pageSize !== 0) {
35887
- writer.uint32(24).int32(message.pageSize);
35888
- }
35889
- if (message.pageToken !== "") {
35890
- writer.uint32(34).string(message.pageToken);
35891
- }
35892
- return writer;
35893
- },
35894
-
35895
- decode(input: BinaryReader | Uint8Array, length?: number): ListProjectInsightCardsRequest {
35896
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
35897
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
35898
- if (previousRecursionDepth >= 100) {
35899
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
35900
- }
35901
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
35902
- try {
35903
- const end = length === undefined ? reader.len : reader.pos + length;
35904
- const message = createBaseListProjectInsightCardsRequest();
35905
- while (reader.pos < end) {
35906
- const tag = reader.uint32();
35907
- switch (tag >>> 3) {
35908
- case 1: {
35909
- if (tag !== 10) {
35910
- break;
35911
- }
35912
-
35913
- message.organizationId = reader.string();
35914
- continue;
35915
- }
35916
- case 2: {
35917
- if (tag !== 18) {
35918
- break;
35919
- }
35920
-
35921
- message.projectId = reader.string();
35922
- continue;
35923
- }
35924
- case 3: {
35925
- if (tag !== 24) {
35926
- break;
35927
- }
35928
-
35929
- message.pageSize = reader.int32();
35930
- continue;
35931
- }
35932
- case 4: {
35933
- if (tag !== 34) {
35934
- break;
35935
- }
35936
-
35937
- message.pageToken = reader.string();
35938
- continue;
35939
- }
35940
- }
35941
- if ((tag & 7) === 4 || tag === 0) {
35942
- break;
35943
- }
35944
- reader.skip(tag & 7);
35945
- }
35946
- return message;
35947
- } finally {
35948
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
35949
- }
35950
- },
35951
-
35952
- fromJSON(object: any): ListProjectInsightCardsRequest {
35953
- return {
35954
- organizationId: isSet(object.organizationId)
35955
- ? globalThis.String(object.organizationId)
35956
- : isSet(object.organization_id)
35957
- ? globalThis.String(object.organization_id)
35958
- : "",
35959
- projectId: isSet(object.projectId)
35960
- ? globalThis.String(object.projectId)
35961
- : isSet(object.project_id)
35962
- ? globalThis.String(object.project_id)
35963
- : "",
35964
- pageSize: isSet(object.pageSize)
35965
- ? globalThis.Number(object.pageSize)
35966
- : isSet(object.page_size)
35967
- ? globalThis.Number(object.page_size)
35968
- : 0,
35969
- pageToken: isSet(object.pageToken)
35970
- ? globalThis.String(object.pageToken)
35971
- : isSet(object.page_token)
35972
- ? globalThis.String(object.page_token)
35973
- : "",
35974
- };
35975
- },
35976
-
35977
- toJSON(message: ListProjectInsightCardsRequest): unknown {
35978
- const obj: any = {};
35979
- if (message.organizationId !== "") {
35980
- obj.organizationId = message.organizationId;
35981
- }
35982
- if (message.projectId !== "") {
35983
- obj.projectId = message.projectId;
35984
- }
35985
- if (message.pageSize !== 0) {
35986
- obj.pageSize = Math.round(message.pageSize);
35987
- }
35988
- if (message.pageToken !== "") {
35989
- obj.pageToken = message.pageToken;
35990
- }
35991
- return obj;
35992
- },
35993
-
35994
- create<I extends Exact<DeepPartial<ListProjectInsightCardsRequest>, I>>(base?: I): ListProjectInsightCardsRequest {
35995
- return ListProjectInsightCardsRequest.fromPartial(base ?? ({} as any));
35996
- },
35997
- fromPartial<I extends Exact<DeepPartial<ListProjectInsightCardsRequest>, I>>(
35998
- object: I,
35999
- ): ListProjectInsightCardsRequest {
36000
- const message = createBaseListProjectInsightCardsRequest();
36001
- message.organizationId = object.organizationId ?? "";
36002
- message.projectId = object.projectId ?? "";
36003
- message.pageSize = object.pageSize ?? 0;
36004
- message.pageToken = object.pageToken ?? "";
36005
- return message;
36006
- },
36007
- };
36008
-
36009
- function createBaseListProjectInsightCardsResponse(): ListProjectInsightCardsResponse {
36010
- return { status: undefined, cards: [], nextPageToken: "" };
36011
- }
36012
-
36013
- export const ListProjectInsightCardsResponse: MessageFns<ListProjectInsightCardsResponse> = {
36014
- encode(message: ListProjectInsightCardsResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
36015
- if (message.status !== undefined) {
36016
- ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
36017
- }
36018
- for (const v of message.cards) {
36019
- AIProjectInsightCard.encode(v!, writer.uint32(18).fork()).join();
36020
- }
36021
- if (message.nextPageToken !== "") {
36022
- writer.uint32(26).string(message.nextPageToken);
36023
- }
36024
- return writer;
36025
- },
36026
-
36027
- decode(input: BinaryReader | Uint8Array, length?: number): ListProjectInsightCardsResponse {
36028
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36029
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
36030
- if (previousRecursionDepth >= 100) {
36031
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
36032
- }
36033
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
36034
- try {
36035
- const end = length === undefined ? reader.len : reader.pos + length;
36036
- const message = createBaseListProjectInsightCardsResponse();
36037
- while (reader.pos < end) {
36038
- const tag = reader.uint32();
36039
- switch (tag >>> 3) {
36040
- case 1: {
36041
- if (tag !== 10) {
36042
- break;
36043
- }
36044
-
36045
- message.status = ResponseStatus.decode(reader, reader.uint32());
36046
- continue;
36047
- }
36048
- case 2: {
36049
- if (tag !== 18) {
36050
- break;
36051
- }
36052
-
36053
- message.cards.push(AIProjectInsightCard.decode(reader, reader.uint32()));
36054
- continue;
36055
- }
36056
- case 3: {
36057
- if (tag !== 26) {
36058
- break;
36059
- }
36060
-
36061
- message.nextPageToken = reader.string();
36062
- continue;
36063
- }
36064
- }
36065
- if ((tag & 7) === 4 || tag === 0) {
36066
- break;
36067
- }
36068
- reader.skip(tag & 7);
36069
- }
36070
- return message;
36071
- } finally {
36072
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
36073
- }
36074
- },
36075
-
36076
- fromJSON(object: any): ListProjectInsightCardsResponse {
36077
- return {
36078
- status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
36079
- cards: globalThis.Array.isArray(object?.cards)
36080
- ? object.cards.map((e: any) => AIProjectInsightCard.fromJSON(e))
36081
- : [],
36082
- nextPageToken: isSet(object.nextPageToken)
36083
- ? globalThis.String(object.nextPageToken)
36084
- : isSet(object.next_page_token)
36085
- ? globalThis.String(object.next_page_token)
36086
- : "",
36087
- };
36088
- },
36089
-
36090
- toJSON(message: ListProjectInsightCardsResponse): unknown {
36091
- const obj: any = {};
36092
- if (message.status !== undefined) {
36093
- obj.status = ResponseStatus.toJSON(message.status);
36094
- }
36095
- if (message.cards?.length) {
36096
- obj.cards = message.cards.map((e) => AIProjectInsightCard.toJSON(e));
36097
- }
36098
- if (message.nextPageToken !== "") {
36099
- obj.nextPageToken = message.nextPageToken;
36100
- }
36101
- return obj;
36102
- },
36103
-
36104
- create<I extends Exact<DeepPartial<ListProjectInsightCardsResponse>, I>>(base?: I): ListProjectInsightCardsResponse {
36105
- return ListProjectInsightCardsResponse.fromPartial(base ?? ({} as any));
36106
- },
36107
- fromPartial<I extends Exact<DeepPartial<ListProjectInsightCardsResponse>, I>>(
36108
- object: I,
36109
- ): ListProjectInsightCardsResponse {
36110
- const message = createBaseListProjectInsightCardsResponse();
36111
- message.status = (object.status !== undefined && object.status !== null)
36112
- ? ResponseStatus.fromPartial(object.status)
36113
- : undefined;
36114
- message.cards = object.cards?.map((e) => AIProjectInsightCard.fromPartial(e)) || [];
36115
- message.nextPageToken = object.nextPageToken ?? "";
36116
- return message;
36117
- },
36118
- };
36119
-
36120
- function createBaseAIProjectInsightCard(): AIProjectInsightCard {
36121
- return { insight: undefined, runId: "", localDate: "", timeZone: "", windowClosed: false, analyzedAt: undefined };
36122
- }
36123
-
36124
- export const AIProjectInsightCard: MessageFns<AIProjectInsightCard> = {
36125
- encode(message: AIProjectInsightCard, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
36126
- if (message.insight !== undefined) {
36127
- AIProjectInsight.encode(message.insight, writer.uint32(10).fork()).join();
36128
- }
36129
- if (message.runId !== "") {
36130
- writer.uint32(18).string(message.runId);
36131
- }
36132
- if (message.localDate !== "") {
36133
- writer.uint32(26).string(message.localDate);
36134
- }
36135
- if (message.timeZone !== "") {
36136
- writer.uint32(34).string(message.timeZone);
36137
- }
36138
- if (message.windowClosed !== false) {
36139
- writer.uint32(40).bool(message.windowClosed);
36140
- }
36141
- if (message.analyzedAt !== undefined) {
36142
- Timestamp.encode(toTimestamp(message.analyzedAt), writer.uint32(50).fork()).join();
36143
- }
36144
- return writer;
36145
- },
36146
-
36147
- decode(input: BinaryReader | Uint8Array, length?: number): AIProjectInsightCard {
36148
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36149
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
36150
- if (previousRecursionDepth >= 100) {
36151
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
36152
- }
36153
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
36154
- try {
36155
- const end = length === undefined ? reader.len : reader.pos + length;
36156
- const message = createBaseAIProjectInsightCard();
36157
- while (reader.pos < end) {
36158
- const tag = reader.uint32();
36159
- switch (tag >>> 3) {
36160
- case 1: {
36161
- if (tag !== 10) {
36162
- break;
36163
- }
36164
-
36165
- message.insight = AIProjectInsight.decode(reader, reader.uint32());
36166
- continue;
36167
- }
36168
- case 2: {
36169
- if (tag !== 18) {
36170
- break;
36171
- }
36172
-
36173
- message.runId = reader.string();
36174
- continue;
36175
- }
36176
- case 3: {
36177
- if (tag !== 26) {
36178
- break;
36179
- }
36180
-
36181
- message.localDate = reader.string();
36182
- continue;
36183
- }
36184
- case 4: {
36185
- if (tag !== 34) {
36186
- break;
36187
- }
36188
-
36189
- message.timeZone = reader.string();
36190
- continue;
36191
- }
36192
- case 5: {
36193
- if (tag !== 40) {
36194
- break;
36195
- }
36196
-
36197
- message.windowClosed = reader.bool();
36198
- continue;
36199
- }
36200
- case 6: {
36201
- if (tag !== 50) {
36202
- break;
36203
- }
36204
-
36205
- message.analyzedAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
36206
- continue;
36207
- }
36208
- }
36209
- if ((tag & 7) === 4 || tag === 0) {
36210
- break;
36211
- }
36212
- reader.skip(tag & 7);
36213
- }
36214
- return message;
36215
- } finally {
36216
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
36217
- }
36218
- },
36219
-
36220
- fromJSON(object: any): AIProjectInsightCard {
36221
- return {
36222
- insight: isSet(object.insight) ? AIProjectInsight.fromJSON(object.insight) : undefined,
36223
- runId: isSet(object.runId)
36224
- ? globalThis.String(object.runId)
36225
- : isSet(object.run_id)
36226
- ? globalThis.String(object.run_id)
36227
- : "",
36228
- localDate: isSet(object.localDate)
36229
- ? globalThis.String(object.localDate)
36230
- : isSet(object.local_date)
36231
- ? globalThis.String(object.local_date)
36232
- : "",
36233
- timeZone: isSet(object.timeZone)
36234
- ? globalThis.String(object.timeZone)
36235
- : isSet(object.time_zone)
36236
- ? globalThis.String(object.time_zone)
36237
- : "",
36238
- windowClosed: isSet(object.windowClosed)
36239
- ? globalThis.Boolean(object.windowClosed)
36240
- : isSet(object.window_closed)
36241
- ? globalThis.Boolean(object.window_closed)
36242
- : false,
36243
- analyzedAt: isSet(object.analyzedAt)
36244
- ? fromJsonTimestamp(object.analyzedAt)
36245
- : isSet(object.analyzed_at)
36246
- ? fromJsonTimestamp(object.analyzed_at)
36247
- : undefined,
36248
- };
36249
- },
36250
-
36251
- toJSON(message: AIProjectInsightCard): unknown {
36252
- const obj: any = {};
36253
- if (message.insight !== undefined) {
36254
- obj.insight = AIProjectInsight.toJSON(message.insight);
36255
- }
36256
- if (message.runId !== "") {
36257
- obj.runId = message.runId;
36258
- }
36259
- if (message.localDate !== "") {
36260
- obj.localDate = message.localDate;
36261
- }
36262
- if (message.timeZone !== "") {
36263
- obj.timeZone = message.timeZone;
36264
- }
36265
- if (message.windowClosed !== false) {
36266
- obj.windowClosed = message.windowClosed;
36267
- }
36268
- if (message.analyzedAt !== undefined) {
36269
- obj.analyzedAt = message.analyzedAt.toISOString();
36270
- }
36271
- return obj;
36272
- },
36273
-
36274
- create<I extends Exact<DeepPartial<AIProjectInsightCard>, I>>(base?: I): AIProjectInsightCard {
36275
- return AIProjectInsightCard.fromPartial(base ?? ({} as any));
36276
- },
36277
- fromPartial<I extends Exact<DeepPartial<AIProjectInsightCard>, I>>(object: I): AIProjectInsightCard {
36278
- const message = createBaseAIProjectInsightCard();
36279
- message.insight = (object.insight !== undefined && object.insight !== null)
36280
- ? AIProjectInsight.fromPartial(object.insight)
36281
- : undefined;
36282
- message.runId = object.runId ?? "";
36283
- message.localDate = object.localDate ?? "";
36284
- message.timeZone = object.timeZone ?? "";
36285
- message.windowClosed = object.windowClosed ?? false;
36286
- message.analyzedAt = object.analyzedAt ?? undefined;
36287
- return message;
36288
- },
36289
- };
36290
-
36291
- function createBaseAIProjectInsight(): AIProjectInsight {
36292
- return {
36293
- id: "",
36294
- rank: 0,
36295
- kind: 0,
36296
- title: "",
36297
- pattern: "",
36298
- explanation: "",
36299
- action: "",
36300
- limitations: "",
36301
- sessionCount: 0,
36302
- personCount: 0,
36303
- spendUsd: undefined,
36304
- citations: [],
36305
- skillSuggestion: undefined,
36306
- };
36307
- }
36308
-
36309
- export const AIProjectInsight: MessageFns<AIProjectInsight> = {
36310
- encode(message: AIProjectInsight, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
36311
- if (message.id !== "") {
36312
- writer.uint32(10).string(message.id);
36313
- }
36314
- if (message.rank !== 0) {
36315
- writer.uint32(16).uint32(message.rank);
36316
- }
36317
- if (message.kind !== 0) {
36318
- writer.uint32(24).int32(message.kind);
36319
- }
36320
- if (message.title !== "") {
36321
- writer.uint32(34).string(message.title);
36322
- }
36323
- if (message.pattern !== "") {
36324
- writer.uint32(42).string(message.pattern);
36325
- }
36326
- if (message.explanation !== "") {
36327
- writer.uint32(50).string(message.explanation);
36328
- }
36329
- if (message.action !== "") {
36330
- writer.uint32(58).string(message.action);
36331
- }
36332
- if (message.limitations !== "") {
36333
- writer.uint32(66).string(message.limitations);
36334
- }
36335
- if (message.sessionCount !== 0) {
36336
- writer.uint32(72).uint32(message.sessionCount);
36337
- }
36338
- if (message.personCount !== 0) {
36339
- writer.uint32(80).uint32(message.personCount);
36340
- }
36341
- if (message.spendUsd !== undefined) {
36342
- writer.uint32(90).string(message.spendUsd);
36343
- }
36344
- for (const v of message.citations) {
36345
- AIProjectInsightCitation.encode(v!, writer.uint32(98).fork()).join();
36346
- }
36347
- if (message.skillSuggestion !== undefined) {
36348
- AISkillSuggestion.encode(message.skillSuggestion, writer.uint32(106).fork()).join();
36349
- }
36350
- return writer;
36351
- },
36352
-
36353
- decode(input: BinaryReader | Uint8Array, length?: number): AIProjectInsight {
36354
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36355
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
36356
- if (previousRecursionDepth >= 100) {
36357
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
36358
- }
36359
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
36360
- try {
36361
- const end = length === undefined ? reader.len : reader.pos + length;
36362
- const message = createBaseAIProjectInsight();
36363
- while (reader.pos < end) {
36364
- const tag = reader.uint32();
36365
- switch (tag >>> 3) {
36366
- case 1: {
36367
- if (tag !== 10) {
36368
- break;
36369
- }
36370
-
36371
- message.id = reader.string();
36372
- continue;
36373
- }
36374
- case 2: {
36375
- if (tag !== 16) {
36376
- break;
36377
- }
36378
-
36379
- message.rank = reader.uint32();
36380
- continue;
36381
- }
36382
- case 3: {
36383
- if (tag !== 24) {
36384
- break;
36385
- }
36386
-
36387
- message.kind = reader.int32() as any;
36388
- continue;
36389
- }
36390
- case 4: {
36391
- if (tag !== 34) {
36392
- break;
36393
- }
36394
-
36395
- message.title = reader.string();
36396
- continue;
36397
- }
36398
- case 5: {
36399
- if (tag !== 42) {
36400
- break;
36401
- }
36402
-
36403
- message.pattern = reader.string();
36404
- continue;
36405
- }
36406
- case 6: {
36407
- if (tag !== 50) {
36408
- break;
36409
- }
36410
-
36411
- message.explanation = reader.string();
36412
- continue;
36413
- }
36414
- case 7: {
36415
- if (tag !== 58) {
36416
- break;
36417
- }
36418
-
36419
- message.action = reader.string();
36420
- continue;
36421
- }
36422
- case 8: {
36423
- if (tag !== 66) {
36424
- break;
36425
- }
36426
-
36427
- message.limitations = reader.string();
36428
- continue;
36429
- }
36430
- case 9: {
36431
- if (tag !== 72) {
36432
- break;
36433
- }
36434
-
36435
- message.sessionCount = reader.uint32();
36436
- continue;
36437
- }
36438
- case 10: {
36439
- if (tag !== 80) {
36440
- break;
36441
- }
36442
-
36443
- message.personCount = reader.uint32();
36444
- continue;
36445
- }
36446
- case 11: {
36447
- if (tag !== 90) {
36448
- break;
36449
- }
36450
-
36451
- message.spendUsd = reader.string();
36452
- continue;
36453
- }
36454
- case 12: {
36455
- if (tag !== 98) {
36456
- break;
36457
- }
36458
-
36459
- message.citations.push(AIProjectInsightCitation.decode(reader, reader.uint32()));
36460
- continue;
36461
- }
36462
- case 13: {
36463
- if (tag !== 106) {
36464
- break;
36465
- }
36466
-
36467
- message.skillSuggestion = AISkillSuggestion.decode(reader, reader.uint32());
36468
- continue;
36469
- }
36470
- }
36471
- if ((tag & 7) === 4 || tag === 0) {
36472
- break;
36473
- }
36474
- reader.skip(tag & 7);
36475
- }
36476
- return message;
36477
- } finally {
36478
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
36479
- }
36480
- },
36481
-
36482
- fromJSON(object: any): AIProjectInsight {
36483
- return {
36484
- id: isSet(object.id) ? globalThis.String(object.id) : "",
36485
- rank: isSet(object.rank) ? globalThis.Number(object.rank) : 0,
36486
- kind: isSet(object.kind) ? aIProjectInsightKindFromJSON(object.kind) : 0,
36487
- title: isSet(object.title) ? globalThis.String(object.title) : "",
36488
- pattern: isSet(object.pattern) ? globalThis.String(object.pattern) : "",
36489
- explanation: isSet(object.explanation) ? globalThis.String(object.explanation) : "",
36490
- action: isSet(object.action) ? globalThis.String(object.action) : "",
36491
- limitations: isSet(object.limitations) ? globalThis.String(object.limitations) : "",
36492
- sessionCount: isSet(object.sessionCount)
36493
- ? globalThis.Number(object.sessionCount)
36494
- : isSet(object.session_count)
36495
- ? globalThis.Number(object.session_count)
36496
- : 0,
36497
- personCount: isSet(object.personCount)
36498
- ? globalThis.Number(object.personCount)
36499
- : isSet(object.person_count)
36500
- ? globalThis.Number(object.person_count)
36501
- : 0,
36502
- spendUsd: isSet(object.spendUsd)
36503
- ? globalThis.String(object.spendUsd)
36504
- : isSet(object.spend_usd)
36505
- ? globalThis.String(object.spend_usd)
36506
- : undefined,
36507
- citations: globalThis.Array.isArray(object?.citations)
36508
- ? object.citations.map((e: any) => AIProjectInsightCitation.fromJSON(e))
36509
- : [],
36510
- skillSuggestion: isSet(object.skillSuggestion)
36511
- ? AISkillSuggestion.fromJSON(object.skillSuggestion)
36512
- : isSet(object.skill_suggestion)
36513
- ? AISkillSuggestion.fromJSON(object.skill_suggestion)
36514
- : undefined,
36515
- };
36516
- },
36517
-
36518
- toJSON(message: AIProjectInsight): unknown {
36519
- const obj: any = {};
36520
- if (message.id !== "") {
36521
- obj.id = message.id;
36522
- }
36523
- if (message.rank !== 0) {
36524
- obj.rank = Math.round(message.rank);
36525
- }
36526
- if (message.kind !== 0) {
36527
- obj.kind = aIProjectInsightKindToJSON(message.kind);
36528
- }
36529
- if (message.title !== "") {
36530
- obj.title = message.title;
36531
- }
36532
- if (message.pattern !== "") {
36533
- obj.pattern = message.pattern;
36534
- }
36535
- if (message.explanation !== "") {
36536
- obj.explanation = message.explanation;
36537
- }
36538
- if (message.action !== "") {
36539
- obj.action = message.action;
36540
- }
36541
- if (message.limitations !== "") {
36542
- obj.limitations = message.limitations;
36543
- }
36544
- if (message.sessionCount !== 0) {
36545
- obj.sessionCount = Math.round(message.sessionCount);
36546
- }
36547
- if (message.personCount !== 0) {
36548
- obj.personCount = Math.round(message.personCount);
36549
- }
36550
- if (message.spendUsd !== undefined) {
36551
- obj.spendUsd = message.spendUsd;
36552
- }
36553
- if (message.citations?.length) {
36554
- obj.citations = message.citations.map((e) => AIProjectInsightCitation.toJSON(e));
36555
- }
36556
- if (message.skillSuggestion !== undefined) {
36557
- obj.skillSuggestion = AISkillSuggestion.toJSON(message.skillSuggestion);
36558
- }
36559
- return obj;
36560
- },
36561
-
36562
- create<I extends Exact<DeepPartial<AIProjectInsight>, I>>(base?: I): AIProjectInsight {
36563
- return AIProjectInsight.fromPartial(base ?? ({} as any));
36564
- },
36565
- fromPartial<I extends Exact<DeepPartial<AIProjectInsight>, I>>(object: I): AIProjectInsight {
36566
- const message = createBaseAIProjectInsight();
36567
- message.id = object.id ?? "";
36568
- message.rank = object.rank ?? 0;
36569
- message.kind = object.kind ?? 0;
36570
- message.title = object.title ?? "";
36571
- message.pattern = object.pattern ?? "";
36572
- message.explanation = object.explanation ?? "";
36573
- message.action = object.action ?? "";
36574
- message.limitations = object.limitations ?? "";
36575
- message.sessionCount = object.sessionCount ?? 0;
36576
- message.personCount = object.personCount ?? 0;
36577
- message.spendUsd = object.spendUsd ?? undefined;
36578
- message.citations = object.citations?.map((e) => AIProjectInsightCitation.fromPartial(e)) || [];
36579
- message.skillSuggestion = (object.skillSuggestion !== undefined && object.skillSuggestion !== null)
36580
- ? AISkillSuggestion.fromPartial(object.skillSuggestion)
36581
- : undefined;
36582
- return message;
36583
- },
36584
- };
36585
-
36586
- function createBaseAIProjectInsightCitation(): AIProjectInsightCitation {
36587
- return { sourceSystem: "", sessionId: "", eventRef: undefined };
36588
- }
36589
-
36590
- export const AIProjectInsightCitation: MessageFns<AIProjectInsightCitation> = {
36591
- encode(message: AIProjectInsightCitation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
36592
- if (message.sourceSystem !== "") {
36593
- writer.uint32(10).string(message.sourceSystem);
36594
- }
36595
- if (message.sessionId !== "") {
36596
- writer.uint32(18).string(message.sessionId);
36597
- }
36598
- if (message.eventRef !== undefined) {
36599
- AISessionEventRef.encode(message.eventRef, writer.uint32(26).fork()).join();
36600
- }
36601
- return writer;
36602
- },
36603
-
36604
- decode(input: BinaryReader | Uint8Array, length?: number): AIProjectInsightCitation {
36605
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
36606
- const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
36607
- if (previousRecursionDepth >= 100) {
36608
- throw new globalThis.Error("protobuf decode recursion limit exceeded");
36609
- }
36610
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
36611
- try {
36612
- const end = length === undefined ? reader.len : reader.pos + length;
36613
- const message = createBaseAIProjectInsightCitation();
36614
- while (reader.pos < end) {
36615
- const tag = reader.uint32();
36616
- switch (tag >>> 3) {
36617
- case 1: {
36618
- if (tag !== 10) {
36619
- break;
36620
- }
36621
-
36622
- message.sourceSystem = reader.string();
36623
- continue;
36624
- }
36625
- case 2: {
36626
- if (tag !== 18) {
36627
- break;
36628
- }
36629
-
36630
- message.sessionId = reader.string();
36631
- continue;
36632
- }
36633
- case 3: {
36634
- if (tag !== 26) {
36635
- break;
36636
- }
36637
-
36638
- message.eventRef = AISessionEventRef.decode(reader, reader.uint32());
36639
- continue;
36640
- }
36641
- }
36642
- if ((tag & 7) === 4 || tag === 0) {
36643
- break;
36644
- }
36645
- reader.skip(tag & 7);
36646
- }
36647
- return message;
36648
- } finally {
36649
- (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
36650
- }
36651
- },
36652
-
36653
- fromJSON(object: any): AIProjectInsightCitation {
36654
- return {
36655
- sourceSystem: isSet(object.sourceSystem)
36656
- ? globalThis.String(object.sourceSystem)
36657
- : isSet(object.source_system)
36658
- ? globalThis.String(object.source_system)
36659
- : "",
36660
- sessionId: isSet(object.sessionId)
36661
- ? globalThis.String(object.sessionId)
36662
- : isSet(object.session_id)
36663
- ? globalThis.String(object.session_id)
36664
- : "",
36665
- eventRef: isSet(object.eventRef)
36666
- ? AISessionEventRef.fromJSON(object.eventRef)
36667
- : isSet(object.event_ref)
36668
- ? AISessionEventRef.fromJSON(object.event_ref)
36669
- : undefined,
36670
- };
36671
- },
36672
-
36673
- toJSON(message: AIProjectInsightCitation): unknown {
36674
- const obj: any = {};
36675
- if (message.sourceSystem !== "") {
36676
- obj.sourceSystem = message.sourceSystem;
36677
- }
36678
- if (message.sessionId !== "") {
36679
- obj.sessionId = message.sessionId;
36680
- }
36681
- if (message.eventRef !== undefined) {
36682
- obj.eventRef = AISessionEventRef.toJSON(message.eventRef);
36683
- }
36684
- return obj;
36685
- },
36686
-
36687
- create<I extends Exact<DeepPartial<AIProjectInsightCitation>, I>>(base?: I): AIProjectInsightCitation {
36688
- return AIProjectInsightCitation.fromPartial(base ?? ({} as any));
36689
- },
36690
- fromPartial<I extends Exact<DeepPartial<AIProjectInsightCitation>, I>>(object: I): AIProjectInsightCitation {
36691
- const message = createBaseAIProjectInsightCitation();
36692
- message.sourceSystem = object.sourceSystem ?? "";
36693
- message.sessionId = object.sessionId ?? "";
36694
- message.eventRef = (object.eventRef !== undefined && object.eventRef !== null)
36695
- ? AISessionEventRef.fromPartial(object.eventRef)
36696
- : undefined;
36697
- return message;
36698
- },
36699
- };
36700
-
36701
36069
  /**
36702
36070
  * AIGatewayService is the frontend-facing proxy over telemetry.api.v1.AIService.
36703
36071
  * It stamps the authorized organization/project and forwards telemetry-api-shaped messages.
@@ -36870,16 +36238,20 @@ export interface AIGatewayService {
36870
36238
  request: GetSessionAnalysisOverviewRequest,
36871
36239
  metadata?: Metadata,
36872
36240
  ): Promise<GetSessionAnalysisOverviewResponse>;
36241
+ /**
36242
+ * The sessions ListSessions lists with filter.active_after, and those of the window before it, rolled up from their
36243
+ * whole-session figures: git and pull request counts and tokens per window, and for the window itself each actor's
36244
+ * usage and the work type and size counts. Mirrors ai.api.v1.
36245
+ */
36246
+ GetSessionPeriodTotals(
36247
+ request: GetSessionPeriodTotalsRequest,
36248
+ metadata?: Metadata,
36249
+ ): Promise<GetSessionPeriodTotalsResponse>;
36873
36250
  /**
36874
36251
  * One session's latest score against the scorer's rubric, with each criterion's assessment and improvement, and
36875
36252
  * its latest insights with their cause and action; each part absent until its job has run. Mirrors ai.api.v1.
36876
36253
  */
36877
36254
  GetSessionAnalysis(request: GetSessionAnalysisRequest, metadata?: Metadata): Promise<GetSessionAnalysisResponse>;
36878
- /**
36879
- * A project's insights one at a time, newest analysis first: a person's most recent insights with filter.user_ids,
36880
- * the team's without. Mirrors ai.api.v1.
36881
- */
36882
- ListSessionInsights(request: ListSessionInsightsRequest, metadata?: Metadata): Promise<ListSessionInsightsResponse>;
36883
36255
  /**
36884
36256
  * A project's graded sessions, or one person's, per ISO week (UTC, by last activity): counts, the mean score, the
36885
36257
  * mean grade value per rubric criterion. Directional. Mirrors ai.api.v1.
@@ -36962,14 +36334,6 @@ export interface AIGatewayService {
36962
36334
  * ai.api.v1.
36963
36335
  */
36964
36336
  ListIssueSessions(request: ListIssueSessionsRequest, metadata?: Metadata): Promise<ListIssueSessionsResponse>;
36965
- /**
36966
- * The project's cards across local days, newest local day first and rank order within a day: each day's latest run,
36967
- * only when it is READY, with the run context each card is labelled with. Token pages. Mirrors ai.api.v1.
36968
- */
36969
- ListProjectInsightCards(
36970
- request: ListProjectInsightCardsRequest,
36971
- metadata?: Metadata,
36972
- ): Promise<ListProjectInsightCardsResponse>;
36973
36337
  }
36974
36338
 
36975
36339
  export const AIGatewayServiceServiceName = "gateway.web.v1.AIGatewayService";
@@ -37010,8 +36374,8 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
37010
36374
  this.GetSessionUsageTrend = this.GetSessionUsageTrend.bind(this);
37011
36375
  this.GetSessionTotalsTrend = this.GetSessionTotalsTrend.bind(this);
37012
36376
  this.GetSessionAnalysisOverview = this.GetSessionAnalysisOverview.bind(this);
36377
+ this.GetSessionPeriodTotals = this.GetSessionPeriodTotals.bind(this);
37013
36378
  this.GetSessionAnalysis = this.GetSessionAnalysis.bind(this);
37014
- this.ListSessionInsights = this.ListSessionInsights.bind(this);
37015
36379
  this.GetSessionScoreTrend = this.GetSessionScoreTrend.bind(this);
37016
36380
  this.GetPromptLabelTrend = this.GetPromptLabelTrend.bind(this);
37017
36381
  this.GetLabelCatalog = this.GetLabelCatalog.bind(this);
@@ -37023,7 +36387,6 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
37023
36387
  this.ListIssueCosts = this.ListIssueCosts.bind(this);
37024
36388
  this.GetSessionIssues = this.GetSessionIssues.bind(this);
37025
36389
  this.ListIssueSessions = this.ListIssueSessions.bind(this);
37026
- this.ListProjectInsightCards = this.ListProjectInsightCards.bind(this);
37027
36390
  }
37028
36391
  ListSessions(request: ListSessionsRequest, metadata?: Metadata): Promise<ListSessionsResponse> {
37029
36392
  const data = ListSessionsRequest.encode(request).finish();
@@ -37235,18 +36598,21 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
37235
36598
  return promise.then((data) => GetSessionAnalysisOverviewResponse.decode(new BinaryReader(data)));
37236
36599
  }
37237
36600
 
36601
+ GetSessionPeriodTotals(
36602
+ request: GetSessionPeriodTotalsRequest,
36603
+ metadata?: Metadata,
36604
+ ): Promise<GetSessionPeriodTotalsResponse> {
36605
+ const data = GetSessionPeriodTotalsRequest.encode(request).finish();
36606
+ const promise = this.rpc.request(this.service, "GetSessionPeriodTotals", data, metadata);
36607
+ return promise.then((data) => GetSessionPeriodTotalsResponse.decode(new BinaryReader(data)));
36608
+ }
36609
+
37238
36610
  GetSessionAnalysis(request: GetSessionAnalysisRequest, metadata?: Metadata): Promise<GetSessionAnalysisResponse> {
37239
36611
  const data = GetSessionAnalysisRequest.encode(request).finish();
37240
36612
  const promise = this.rpc.request(this.service, "GetSessionAnalysis", data, metadata);
37241
36613
  return promise.then((data) => GetSessionAnalysisResponse.decode(new BinaryReader(data)));
37242
36614
  }
37243
36615
 
37244
- ListSessionInsights(request: ListSessionInsightsRequest, metadata?: Metadata): Promise<ListSessionInsightsResponse> {
37245
- const data = ListSessionInsightsRequest.encode(request).finish();
37246
- const promise = this.rpc.request(this.service, "ListSessionInsights", data, metadata);
37247
- return promise.then((data) => ListSessionInsightsResponse.decode(new BinaryReader(data)));
37248
- }
37249
-
37250
36616
  GetSessionScoreTrend(
37251
36617
  request: GetSessionScoreTrendRequest,
37252
36618
  metadata?: Metadata,
@@ -37324,15 +36690,6 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
37324
36690
  const promise = this.rpc.request(this.service, "ListIssueSessions", data, metadata);
37325
36691
  return promise.then((data) => ListIssueSessionsResponse.decode(new BinaryReader(data)));
37326
36692
  }
37327
-
37328
- ListProjectInsightCards(
37329
- request: ListProjectInsightCardsRequest,
37330
- metadata?: Metadata,
37331
- ): Promise<ListProjectInsightCardsResponse> {
37332
- const data = ListProjectInsightCardsRequest.encode(request).finish();
37333
- const promise = this.rpc.request(this.service, "ListProjectInsightCards", data, metadata);
37334
- return promise.then((data) => ListProjectInsightCardsResponse.decode(new BinaryReader(data)));
37335
- }
37336
36693
  }
37337
36694
 
37338
36695
  interface Rpc {