@thinkai/tai-api-contract 2.91.0 → 2.93.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.
@@ -2608,6 +2608,26 @@ export interface paths {
2608
2608
  patch?: never;
2609
2609
  trace?: never;
2610
2610
  };
2611
+ "/workspaces/{workspaceId}/code-intelligence": {
2612
+ parameters: {
2613
+ query?: never;
2614
+ header?: never;
2615
+ path?: never;
2616
+ cookie?: never;
2617
+ };
2618
+ get?: never;
2619
+ /**
2620
+ * Update Code Intelligence workspace settings
2621
+ * @description Admin-only. Enables/disables Code Intelligence for the workspace, chooses whether to reuse the Agent Execution key or a dedicated `code_intelligence` source credential, and optional Cursor/Claude model overrides. Does not store secrets — use `PUT .../sources` with `type: code_intelligence` and `executionToken` when key mode is `dedicated` (except `thinkai_platform_cursor`, which uses the platform key). Preview UI remains behind `?code_kn=true`.
2622
+ */
2623
+ put: operations["putCodeIntelligenceSettings"];
2624
+ post?: never;
2625
+ delete?: never;
2626
+ options?: never;
2627
+ head?: never;
2628
+ patch?: never;
2629
+ trace?: never;
2630
+ };
2611
2631
  "/workspaces/{workspaceId}/repo-eligibility": {
2612
2632
  parameters: {
2613
2633
  query?: never;
@@ -3871,6 +3891,20 @@ export interface components {
3871
3891
  /** @description Masked preview of the stored insights key (prefix + last four characters). Never includes the full secret. */
3872
3892
  insightsTokenHint?: string;
3873
3893
  };
3894
+ /** @description Dedicated Engineering Context Graph execution credential for `PUT /workspaces/{workspaceId}/sources` when `codeIntelligenceKeyMode` is `dedicated`. Provide `executionToken` (Cursor user/service key or Anthropic `sk-ant-api…`). Admin keys are rejected. Reads from `GET /workspaces/{workspaceId}/config` redact the secret to `hasExecutionToken` via `CodeIntelligenceSourceConfigDto`. */
3895
+ CodeIntelligenceSourcePatchDto: {
3896
+ /** @enum {string} */
3897
+ type: "code_intelligence";
3898
+ /** @description Execution key for wiki/chat LLM calls in dedicated key mode. Whitespace and `env:` prefix are rejected. */
3899
+ executionToken?: string;
3900
+ };
3901
+ /** @description Redacted Engineering Context Graph source returned by `GET /workspaces/{workspaceId}/config`. Raw `executionToken` values are never returned. */
3902
+ CodeIntelligenceSourceConfigDto: {
3903
+ /** @enum {string} */
3904
+ type: "code_intelligence";
3905
+ /** @description Whether a dedicated ECG execution token is stored for this workspace. */
3906
+ hasExecutionToken: boolean;
3907
+ };
3874
3908
  /** @description New Relic monitoring source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires a User API key and numeric account ID. */
3875
3909
  NewRelicSourceDto: {
3876
3910
  /** @enum {string} */
@@ -4012,8 +4046,17 @@ export interface components {
4012
4046
  * @enum {string}
4013
4047
  */
4014
4048
  AgentExecutionProviderDto: "thinkai_platform_cursor" | "cursor_user_api_key" | "claude_api_key";
4049
+ /** @description Partial update for Code Intelligence workspace settings (admin-only). */
4050
+ PutCodeIntelligenceSettingsDto: {
4051
+ enabled?: boolean;
4052
+ /** @enum {string} */
4053
+ keyMode?: "reuse_agent_execution" | "dedicated";
4054
+ provider?: components["schemas"]["AgentExecutionProviderDto"] | null;
4055
+ cursorModel?: string | null;
4056
+ claudeModel?: string | null;
4057
+ };
4015
4058
  WorkspaceConfigDto: {
4016
- sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
4059
+ sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
4017
4060
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
4018
4061
  /** @enum {string|null} */
4019
4062
  region?: "us" | "eu" | "me" | null;
@@ -4024,6 +4067,21 @@ export interface components {
4024
4067
  cursorPlatformKeyEnabled?: boolean;
4025
4068
  /** @description The single active agent execution account for this workspace's readiness scanner and fix processor. Defaults to `cursor_user_api_key`. Change via `PUT /workspaces/{workspaceId}/agent-execution-provider`. */
4026
4069
  agentExecutionProvider?: components["schemas"]["AgentExecutionProviderDto"];
4070
+ /** @description When false (default), Code Intelligence write APIs (`/code-chat/*` index/sync/wiki/messages) return 403. Preview UI still requires `?code_kn=true`. Change via `PUT /workspaces/{workspaceId}/code-intelligence`. */
4071
+ codeIntelligenceEnabled?: boolean;
4072
+ /**
4073
+ * @description `reuse_agent_execution` uses the workspace Agent Execution key. `dedicated` uses the `code_intelligence` source token (or platform Cursor when provider is `thinkai_platform_cursor`).
4074
+ * @enum {string}
4075
+ */
4076
+ codeIntelligenceKeyMode?: "reuse_agent_execution" | "dedicated";
4077
+ /** @description Active when `codeIntelligenceKeyMode` is `dedicated`. Null when reusing Agent Execution. */
4078
+ codeIntelligenceProvider?: components["schemas"]["AgentExecutionProviderDto"] | null;
4079
+ /** @description Optional Cursor model override for Code Intelligence (null/empty → env default). */
4080
+ codeIntelligenceCursorModel?: string | null;
4081
+ /** @description Optional Claude model override for Code Intelligence (null/empty → env default). */
4082
+ codeIntelligenceClaudeModel?: string | null;
4083
+ /** @description True when a dedicated `code_intelligence` source has a stored executionToken. */
4084
+ hasCodeIntelligenceExecutionToken?: boolean;
4027
4085
  };
4028
4086
  TestConnectionResponseDto: {
4029
4087
  success: boolean;
@@ -4171,6 +4229,10 @@ export interface components {
4171
4229
  */
4172
4230
  date: string;
4173
4231
  mergedPrCount: number;
4232
+ /** @description Sum of ship-weight scores for PRs merged on this day. */
4233
+ shipWeightSum?: number;
4234
+ /** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
4235
+ shipWeightPendingCount?: number;
4174
4236
  /** @description GitHub Actions CI build failures on this day from `ciFailureRuns` ledger when CI ingest is enabled. */
4175
4237
  ciFailuresCount?: number;
4176
4238
  /** @description Mean hours from PR creation to first review for PRs merged on this day. */
@@ -4190,6 +4252,10 @@ export interface components {
4190
4252
  /** @description Short label for the week column (MM/DD), aligned with Measure charts. */
4191
4253
  weekLabel?: string;
4192
4254
  mergedPrCount: number;
4255
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
4256
+ shipWeightSum?: number;
4257
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
4258
+ shipWeightPendingCount?: number;
4193
4259
  /** @description DORA change failure rate (deployments/incidents), not CI build failures. */
4194
4260
  failRatePercent: number;
4195
4261
  /** @description GitHub Actions / Checks CI build failure rate for the week bucket (failed runs / (failed + passed) * 100). Zero when GitHub Actions CI is disabled. */
@@ -4250,6 +4316,10 @@ export interface components {
4250
4316
  /** @description Short label for the week column (MM/DD), aligned with Measure charts. */
4251
4317
  weekLabel?: string;
4252
4318
  mergedPrCount: number;
4319
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
4320
+ shipWeightSum?: number;
4321
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
4322
+ shipWeightPendingCount?: number;
4253
4323
  };
4254
4324
  ProductivityInsightsMergedPrContributorRowDto: {
4255
4325
  /** @description Canonical person identifier (matches org chart person_id / employeeId). */
@@ -4299,6 +4369,8 @@ export interface components {
4299
4369
  subtitle?: string;
4300
4370
  /** @description Average weekly merged PR count over the selected range. */
4301
4371
  periodAvgMergedPrs: number;
4372
+ /** @description Average weekly ship-weight sum over the selected range. */
4373
+ periodAvgShipWeight?: number;
4302
4374
  /** @description Average change failure rate over the range when available. */
4303
4375
  avgFailRatePercent?: number;
4304
4376
  /** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
@@ -4306,7 +4378,13 @@ export interface components {
4306
4378
  };
4307
4379
  ProductivityInsightsTeamSummaryDto: {
4308
4380
  totalMergedPrs: number;
4381
+ /** @description Sum of ship-weight scores for merged PRs over the selected range. */
4382
+ totalShipWeight?: number;
4383
+ /** @description True when merged GitHub PRs in scope still lack ship-weight scores (ingest backfill in progress). */
4384
+ shipWeightBackfillPending?: boolean;
4309
4385
  avgMergedPrsPerWeek: number;
4386
+ /** @description Mean weekly ship-weight sum over the selected range. */
4387
+ avgShipWeightPerWeek?: number;
4310
4388
  /** @description Average DORA change failure rate over the range when available. */
4311
4389
  avgFailRatePercent: number;
4312
4390
  /** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
@@ -4376,6 +4454,10 @@ export interface components {
4376
4454
  date: string;
4377
4455
  dayIndex: number;
4378
4456
  mergedPrCount: number;
4457
+ /** @description Sum of ship-weight scores for PRs merged on this day. */
4458
+ shipWeightSum?: number;
4459
+ /** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
4460
+ shipWeightPendingCount?: number;
4379
4461
  mergedPrs: string[];
4380
4462
  absent: boolean;
4381
4463
  absenceType?: string;
@@ -4412,14 +4494,24 @@ export interface components {
4412
4494
  };
4413
4495
  ProductivityInsightsContributorActivitySummaryDto: {
4414
4496
  totalMergedPrs: number;
4497
+ /** @description Sum of ship-weight scores for merged PRs over the selected range. */
4498
+ totalShipWeight?: number;
4499
+ /** @description True when merged GitHub PRs in scope still lack ship-weight scores (ingest backfill in progress). */
4500
+ shipWeightBackfillPending?: boolean;
4415
4501
  avgMergedPrsPerWeek: number;
4502
+ /** @description Mean weekly ship-weight sum over the selected range. */
4503
+ avgShipWeightPerWeek?: number;
4416
4504
  totalAbsenceDays: number;
4417
4505
  /** @description CI failure rate (%) over the selected range when GitHub Actions CI ingest is enabled (failures / runs × 100); otherwise average DORA change failure rate when available. */
4418
4506
  avgFailRate: number;
4419
4507
  /** @description Average GitHub Actions CI build failure rate over the range when CI ingest is enabled. */
4420
4508
  avgCiFailRate?: number;
4421
4509
  mergedPrDelta: number;
4510
+ /** @description Change in total ship-weight sum vs the prior comparison window. */
4511
+ shipWeightDelta?: number;
4422
4512
  avgMergedPrsPerWeekDelta: number;
4513
+ /** @description Change in mean weekly ship-weight sum vs the prior comparison window. */
4514
+ avgShipWeightPerWeekDelta?: number;
4423
4515
  totalAbsenceDaysDelta: number;
4424
4516
  avgFailRateDelta: number;
4425
4517
  /** @description Change in average CI build failure rate vs the prior comparison window. */
@@ -4466,6 +4558,8 @@ export interface components {
4466
4558
  subtitle?: string;
4467
4559
  /** @description Mean weekly merged PR count across the selected range. */
4468
4560
  periodAvgMergedPrs: number;
4561
+ /** @description Mean weekly ship-weight sum across the selected range. */
4562
+ periodAvgShipWeight?: number;
4469
4563
  /** @description Mean weekly change-failure rate when available. */
4470
4564
  avgFailRatePercent?: number;
4471
4565
  /** @description Mean weekly GitHub Actions CI build failure rate when CI ingest is enabled. */
@@ -4825,6 +4919,10 @@ export interface components {
4825
4919
  date: string;
4826
4920
  dayLabel?: string;
4827
4921
  mergedPrCount: number;
4922
+ /** @description Sum of ship-weight scores for PRs merged on this day. */
4923
+ shipWeightSum?: number;
4924
+ /** @description GitHub merged PRs on this day still awaiting ship-weight scoring. */
4925
+ shipWeightPendingCount?: number;
4828
4926
  tokenCount: number;
4829
4927
  };
4830
4928
  AiUsageSpendRoiProductivitySignalWeekDto: {
@@ -4835,6 +4933,10 @@ export interface components {
4835
4933
  weekLabel?: string;
4836
4934
  /** @description Estimated merged PR count in the bucket from dashboard velocity metrics. */
4837
4935
  mergedPrCount: number;
4936
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
4937
+ shipWeightSum?: number;
4938
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
4939
+ shipWeightPendingCount?: number;
4838
4940
  /** @description Total AI-tool tokens consumed in the bucket. */
4839
4941
  tokenCount: number;
4840
4942
  };
@@ -4857,6 +4959,8 @@ export interface components {
4857
4959
  /** Format: date-time */
4858
4960
  generatedAt: string;
4859
4961
  totalMergedPrs: number;
4962
+ /** @description Sum of ship-weight scores for merged PRs over the selected range. */
4963
+ totalShipWeight?: number;
4860
4964
  totalSpendCents: number;
4861
4965
  activeUsers: number;
4862
4966
  totalEngineers: number;
@@ -6728,6 +6832,10 @@ export interface components {
6728
6832
  bucketEnd: string;
6729
6833
  weekLabel: string;
6730
6834
  mergedPrCount: number;
6835
+ /** @description Sum of ship-weight scores for PRs merged in this week bucket. */
6836
+ shipWeightSum?: number;
6837
+ /** @description GitHub merged PRs in this week bucket still awaiting ship-weight scoring. */
6838
+ shipWeightPendingCount?: number;
6731
6839
  tokenCount: number;
6732
6840
  };
6733
6841
  YourAiJourneyAiSpendDto: {
@@ -6805,7 +6913,7 @@ export interface components {
6805
6913
  * @description Type of workspace lifecycle event.
6806
6914
  * @enum {string}
6807
6915
  */
6808
- ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed";
6916
+ ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed";
6809
6917
  ActivityLogActorDto: {
6810
6918
  /** Format: uuid */
6811
6919
  userId: string;
@@ -8050,6 +8158,8 @@ export type CursorSourceConfigDto = components['schemas']['CursorSourceConfigDto
8050
8158
  export type ClaudeSourceDto = components['schemas']['ClaudeSourceDto'];
8051
8159
  export type ClaudeSourcePatchDto = components['schemas']['ClaudeSourcePatchDto'];
8052
8160
  export type ClaudeSourceConfigDto = components['schemas']['ClaudeSourceConfigDto'];
8161
+ export type CodeIntelligenceSourcePatchDto = components['schemas']['CodeIntelligenceSourcePatchDto'];
8162
+ export type CodeIntelligenceSourceConfigDto = components['schemas']['CodeIntelligenceSourceConfigDto'];
8053
8163
  export type NewRelicSourceDto = components['schemas']['NewRelicSourceDto'];
8054
8164
  export type NewRelicSourceConfigDto = components['schemas']['NewRelicSourceConfigDto'];
8055
8165
  export type PrometheusSourceDto = components['schemas']['PrometheusSourceDto'];
@@ -8061,6 +8171,7 @@ export type SonarQubeSourceConfigDto = components['schemas']['SonarQubeSourceCon
8061
8171
  export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
8062
8172
  export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
8063
8173
  export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
8174
+ export type PutCodeIntelligenceSettingsDto = components['schemas']['PutCodeIntelligenceSettingsDto'];
8064
8175
  export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
8065
8176
  export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
8066
8177
  export type CursorKeyUsageDto = components['schemas']['CursorKeyUsageDto'];
@@ -10025,7 +10136,7 @@ export interface operations {
10025
10136
  requestBody: {
10026
10137
  content: {
10027
10138
  "application/json": {
10028
- sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
10139
+ sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
10029
10140
  };
10030
10141
  };
10031
10142
  };
@@ -10079,7 +10190,7 @@ export interface operations {
10079
10190
  };
10080
10191
  requestBody: {
10081
10192
  content: {
10082
- "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["TenantSourceEntryDto"];
10193
+ "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["TenantSourceEntryDto"];
10083
10194
  };
10084
10195
  };
10085
10196
  responses: {
@@ -15298,7 +15409,52 @@ export interface operations {
15298
15409
  [name: string]: unknown;
15299
15410
  };
15300
15411
  content: {
15301
- "application/json": components["schemas"]["ErrorMessageDto"];
15412
+ "application/json": {
15413
+ /** @example invalid_body */
15414
+ error: string;
15415
+ };
15416
+ };
15417
+ };
15418
+ 401: components["responses"]["Unauthorized"];
15419
+ 403: components["responses"]["Forbidden"];
15420
+ };
15421
+ };
15422
+ putCodeIntelligenceSettings: {
15423
+ parameters: {
15424
+ query?: never;
15425
+ header?: never;
15426
+ path: {
15427
+ workspaceId: components["parameters"]["WorkspaceId"];
15428
+ };
15429
+ cookie?: never;
15430
+ };
15431
+ requestBody: {
15432
+ content: {
15433
+ "application/json": components["schemas"]["PutCodeIntelligenceSettingsDto"];
15434
+ };
15435
+ };
15436
+ responses: {
15437
+ /** @description Settings updated */
15438
+ 200: {
15439
+ headers: {
15440
+ [name: string]: unknown;
15441
+ };
15442
+ content: {
15443
+ "application/json": {
15444
+ ok: boolean;
15445
+ };
15446
+ };
15447
+ };
15448
+ /** @description Invalid request body */
15449
+ 400: {
15450
+ headers: {
15451
+ [name: string]: unknown;
15452
+ };
15453
+ content: {
15454
+ "application/json": {
15455
+ /** @example invalid_body */
15456
+ error: string;
15457
+ };
15302
15458
  };
15303
15459
  };
15304
15460
  401: components["responses"]["Unauthorized"];