@thinkai/tai-api-contract 2.90.0 → 2.92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/openapi.d.ts +115 -5
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +156 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +115 -5
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.92.0
|
|
5
5
|
description: >
|
|
6
6
|
Contract surface for the AI Driven SDLC backend used by ThinkAI.
|
|
7
7
|
Workspace-scoped routes use `/workspaces/{workspaceId}/...`.
|
|
@@ -1544,6 +1544,7 @@ paths:
|
|
|
1544
1544
|
- $ref: "#/components/schemas/CursorSourceDto"
|
|
1545
1545
|
- $ref: "#/components/schemas/ClaudeSourcePatchDto"
|
|
1546
1546
|
- $ref: "#/components/schemas/ClaudeSourceDto"
|
|
1547
|
+
- $ref: "#/components/schemas/CodeIntelligenceSourcePatchDto"
|
|
1547
1548
|
- $ref: "#/components/schemas/NewRelicSourceDto"
|
|
1548
1549
|
- $ref: "#/components/schemas/PrometheusSourceDto"
|
|
1549
1550
|
- $ref: "#/components/schemas/GrafanaSourceDto"
|
|
@@ -1661,6 +1662,7 @@ paths:
|
|
|
1661
1662
|
- $ref: "#/components/schemas/CursorSourceDto"
|
|
1662
1663
|
- $ref: "#/components/schemas/ClaudeSourcePatchDto"
|
|
1663
1664
|
- $ref: "#/components/schemas/ClaudeSourceDto"
|
|
1665
|
+
- $ref: "#/components/schemas/CodeIntelligenceSourcePatchDto"
|
|
1664
1666
|
- $ref: "#/components/schemas/NewRelicSourceDto"
|
|
1665
1667
|
- $ref: "#/components/schemas/PrometheusSourceDto"
|
|
1666
1668
|
- $ref: "#/components/schemas/GrafanaSourceDto"
|
|
@@ -6805,7 +6807,54 @@ paths:
|
|
|
6805
6807
|
content:
|
|
6806
6808
|
application/json:
|
|
6807
6809
|
schema:
|
|
6808
|
-
|
|
6810
|
+
type: object
|
|
6811
|
+
required: [error]
|
|
6812
|
+
properties:
|
|
6813
|
+
error: { type: string, example: invalid_body }
|
|
6814
|
+
"401":
|
|
6815
|
+
$ref: "#/components/responses/Unauthorized"
|
|
6816
|
+
"403":
|
|
6817
|
+
$ref: "#/components/responses/Forbidden"
|
|
6818
|
+
|
|
6819
|
+
/workspaces/{workspaceId}/code-intelligence:
|
|
6820
|
+
put:
|
|
6821
|
+
tags: [CodeChat]
|
|
6822
|
+
summary: Update Code Intelligence workspace settings
|
|
6823
|
+
description: >
|
|
6824
|
+
Admin-only. Enables/disables Code Intelligence for the workspace, chooses whether to reuse
|
|
6825
|
+
the Agent Execution key or a dedicated `code_intelligence` source credential, and optional
|
|
6826
|
+
Cursor/Claude model overrides. Does not store secrets — use `PUT .../sources` with
|
|
6827
|
+
`type: code_intelligence` and `executionToken` when key mode is `dedicated` (except
|
|
6828
|
+
`thinkai_platform_cursor`, which uses the platform key). Preview UI remains behind `?code_kn=true`.
|
|
6829
|
+
operationId: putCodeIntelligenceSettings
|
|
6830
|
+
parameters:
|
|
6831
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
6832
|
+
requestBody:
|
|
6833
|
+
required: true
|
|
6834
|
+
content:
|
|
6835
|
+
application/json:
|
|
6836
|
+
schema:
|
|
6837
|
+
$ref: "#/components/schemas/PutCodeIntelligenceSettingsDto"
|
|
6838
|
+
responses:
|
|
6839
|
+
"200":
|
|
6840
|
+
description: Settings updated
|
|
6841
|
+
content:
|
|
6842
|
+
application/json:
|
|
6843
|
+
schema:
|
|
6844
|
+
type: object
|
|
6845
|
+
required: [ok]
|
|
6846
|
+
properties:
|
|
6847
|
+
ok:
|
|
6848
|
+
type: boolean
|
|
6849
|
+
"400":
|
|
6850
|
+
description: Invalid request body
|
|
6851
|
+
content:
|
|
6852
|
+
application/json:
|
|
6853
|
+
schema:
|
|
6854
|
+
type: object
|
|
6855
|
+
required: [error]
|
|
6856
|
+
properties:
|
|
6857
|
+
error: { type: string, example: invalid_body }
|
|
6809
6858
|
"401":
|
|
6810
6859
|
$ref: "#/components/responses/Unauthorized"
|
|
6811
6860
|
"403":
|
|
@@ -9694,6 +9743,43 @@ components:
|
|
|
9694
9743
|
Masked preview of the stored insights key (prefix + last four characters). Never
|
|
9695
9744
|
includes the full secret.
|
|
9696
9745
|
|
|
9746
|
+
CodeIntelligenceSourcePatchDto:
|
|
9747
|
+
type: object
|
|
9748
|
+
description: >
|
|
9749
|
+
Dedicated Engineering Context Graph execution credential for
|
|
9750
|
+
`PUT /workspaces/{workspaceId}/sources` when `codeIntelligenceKeyMode` is `dedicated`.
|
|
9751
|
+
Provide `executionToken` (Cursor user/service key or Anthropic `sk-ant-api…`). Admin keys
|
|
9752
|
+
are rejected. Reads from `GET /workspaces/{workspaceId}/config` redact the secret to
|
|
9753
|
+
`hasExecutionToken` via `CodeIntelligenceSourceConfigDto`.
|
|
9754
|
+
required: [type]
|
|
9755
|
+
additionalProperties: false
|
|
9756
|
+
properties:
|
|
9757
|
+
type:
|
|
9758
|
+
type: string
|
|
9759
|
+
enum: [code_intelligence]
|
|
9760
|
+
executionToken:
|
|
9761
|
+
type: string
|
|
9762
|
+
minLength: 1
|
|
9763
|
+
maxLength: 256
|
|
9764
|
+
description: >
|
|
9765
|
+
Execution key for wiki/chat LLM calls in dedicated key mode. Whitespace and `env:`
|
|
9766
|
+
prefix are rejected.
|
|
9767
|
+
|
|
9768
|
+
CodeIntelligenceSourceConfigDto:
|
|
9769
|
+
type: object
|
|
9770
|
+
description: >
|
|
9771
|
+
Redacted Engineering Context Graph source returned by `GET /workspaces/{workspaceId}/config`.
|
|
9772
|
+
Raw `executionToken` values are never returned.
|
|
9773
|
+
required: [type, hasExecutionToken]
|
|
9774
|
+
additionalProperties: false
|
|
9775
|
+
properties:
|
|
9776
|
+
type:
|
|
9777
|
+
type: string
|
|
9778
|
+
enum: [code_intelligence]
|
|
9779
|
+
hasExecutionToken:
|
|
9780
|
+
type: boolean
|
|
9781
|
+
description: Whether a dedicated ECG execution token is stored for this workspace.
|
|
9782
|
+
|
|
9697
9783
|
NewRelicSourceDto:
|
|
9698
9784
|
type: object
|
|
9699
9785
|
description: >
|
|
@@ -9968,6 +10054,28 @@ components:
|
|
|
9968
10054
|
- cursor_user_api_key
|
|
9969
10055
|
- claude_api_key
|
|
9970
10056
|
|
|
10057
|
+
PutCodeIntelligenceSettingsDto:
|
|
10058
|
+
type: object
|
|
10059
|
+
description: Partial update for Code Intelligence workspace settings (admin-only).
|
|
10060
|
+
properties:
|
|
10061
|
+
enabled:
|
|
10062
|
+
type: boolean
|
|
10063
|
+
keyMode:
|
|
10064
|
+
type: string
|
|
10065
|
+
enum: [reuse_agent_execution, dedicated]
|
|
10066
|
+
provider:
|
|
10067
|
+
nullable: true
|
|
10068
|
+
allOf:
|
|
10069
|
+
- $ref: "#/components/schemas/AgentExecutionProviderDto"
|
|
10070
|
+
cursorModel:
|
|
10071
|
+
type: string
|
|
10072
|
+
nullable: true
|
|
10073
|
+
minLength: 1
|
|
10074
|
+
claudeModel:
|
|
10075
|
+
type: string
|
|
10076
|
+
nullable: true
|
|
10077
|
+
minLength: 1
|
|
10078
|
+
|
|
9971
10079
|
WorkspaceConfigDto:
|
|
9972
10080
|
type: object
|
|
9973
10081
|
required: [sources]
|
|
@@ -9978,6 +10086,7 @@ components:
|
|
|
9978
10086
|
oneOf:
|
|
9979
10087
|
- $ref: "#/components/schemas/CursorSourceConfigDto"
|
|
9980
10088
|
- $ref: "#/components/schemas/ClaudeSourceConfigDto"
|
|
10089
|
+
- $ref: "#/components/schemas/CodeIntelligenceSourceConfigDto"
|
|
9981
10090
|
- $ref: "#/components/schemas/NewRelicSourceConfigDto"
|
|
9982
10091
|
- $ref: "#/components/schemas/PrometheusSourceConfigDto"
|
|
9983
10092
|
- $ref: "#/components/schemas/GrafanaSourceConfigDto"
|
|
@@ -10006,6 +10115,34 @@ components:
|
|
|
10006
10115
|
The single active agent execution account for this workspace's readiness scanner and
|
|
10007
10116
|
fix processor. Defaults to `cursor_user_api_key`. Change via
|
|
10008
10117
|
`PUT /workspaces/{workspaceId}/agent-execution-provider`.
|
|
10118
|
+
codeIntelligenceEnabled:
|
|
10119
|
+
type: boolean
|
|
10120
|
+
description: >
|
|
10121
|
+
When false (default), Code Intelligence write APIs (`/code-chat/*` index/sync/wiki/messages)
|
|
10122
|
+
return 403. Preview UI still requires `?code_kn=true`. Change via
|
|
10123
|
+
`PUT /workspaces/{workspaceId}/code-intelligence`.
|
|
10124
|
+
codeIntelligenceKeyMode:
|
|
10125
|
+
type: string
|
|
10126
|
+
enum: [reuse_agent_execution, dedicated]
|
|
10127
|
+
description: >
|
|
10128
|
+
`reuse_agent_execution` uses the workspace Agent Execution key. `dedicated` uses the
|
|
10129
|
+
`code_intelligence` source token (or platform Cursor when provider is `thinkai_platform_cursor`).
|
|
10130
|
+
codeIntelligenceProvider:
|
|
10131
|
+
nullable: true
|
|
10132
|
+
allOf:
|
|
10133
|
+
- $ref: "#/components/schemas/AgentExecutionProviderDto"
|
|
10134
|
+
description: Active when `codeIntelligenceKeyMode` is `dedicated`. Null when reusing Agent Execution.
|
|
10135
|
+
codeIntelligenceCursorModel:
|
|
10136
|
+
type: string
|
|
10137
|
+
nullable: true
|
|
10138
|
+
description: Optional Cursor model override for Code Intelligence (null/empty → env default).
|
|
10139
|
+
codeIntelligenceClaudeModel:
|
|
10140
|
+
type: string
|
|
10141
|
+
nullable: true
|
|
10142
|
+
description: Optional Claude model override for Code Intelligence (null/empty → env default).
|
|
10143
|
+
hasCodeIntelligenceExecutionToken:
|
|
10144
|
+
type: boolean
|
|
10145
|
+
description: True when a dedicated `code_intelligence` source has a stored executionToken.
|
|
10009
10146
|
|
|
10010
10147
|
TestConnectionResponseDto:
|
|
10011
10148
|
type: object
|
|
@@ -15923,6 +16060,11 @@ components:
|
|
|
15923
16060
|
- integrations.claude.analytics_key.added
|
|
15924
16061
|
- integrations.claude.analytics_key.updated
|
|
15925
16062
|
- integrations.claude.analytics_key.removed
|
|
16063
|
+
- integrations.code_intelligence.settings_changed
|
|
16064
|
+
- integrations.code_intelligence.execution_key.added
|
|
16065
|
+
- integrations.code_intelligence.execution_key.updated
|
|
16066
|
+
- integrations.code_intelligence.execution_key.removed
|
|
16067
|
+
- integrations.code_intelligence.execution_key.check_failed
|
|
15926
16068
|
- readiness.scan_precheck_failed
|
|
15927
16069
|
- productivity.ingest.completed
|
|
15928
16070
|
- productivity.ingest.failed
|
|
@@ -17634,6 +17776,18 @@ components:
|
|
|
17634
17776
|
runId:
|
|
17635
17777
|
type: string
|
|
17636
17778
|
description: Readiness run that produced this metrics row.
|
|
17779
|
+
defaultBranch:
|
|
17780
|
+
type: string
|
|
17781
|
+
nullable: true
|
|
17782
|
+
description: >
|
|
17783
|
+
Default branch at scan time from the linked readiness run, when
|
|
17784
|
+
`runId` matches a row in `tai_workspace_readiness_runs`.
|
|
17785
|
+
scannedCommitSha:
|
|
17786
|
+
type: string
|
|
17787
|
+
nullable: true
|
|
17788
|
+
description: >
|
|
17789
|
+
Git commit (default branch tip) analyzed by the readiness run, when
|
|
17790
|
+
known. Null for seed runs or when the run record is missing.
|
|
17637
17791
|
measuredAt:
|
|
17638
17792
|
type: string
|
|
17639
17793
|
format: date-time
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -2609,6 +2609,26 @@ export interface paths {
|
|
|
2609
2609
|
patch?: never;
|
|
2610
2610
|
trace?: never;
|
|
2611
2611
|
};
|
|
2612
|
+
"/workspaces/{workspaceId}/code-intelligence": {
|
|
2613
|
+
parameters: {
|
|
2614
|
+
query?: never;
|
|
2615
|
+
header?: never;
|
|
2616
|
+
path?: never;
|
|
2617
|
+
cookie?: never;
|
|
2618
|
+
};
|
|
2619
|
+
get?: never;
|
|
2620
|
+
/**
|
|
2621
|
+
* Update Code Intelligence workspace settings
|
|
2622
|
+
* @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`.
|
|
2623
|
+
*/
|
|
2624
|
+
put: operations["putCodeIntelligenceSettings"];
|
|
2625
|
+
post?: never;
|
|
2626
|
+
delete?: never;
|
|
2627
|
+
options?: never;
|
|
2628
|
+
head?: never;
|
|
2629
|
+
patch?: never;
|
|
2630
|
+
trace?: never;
|
|
2631
|
+
};
|
|
2612
2632
|
"/workspaces/{workspaceId}/repo-eligibility": {
|
|
2613
2633
|
parameters: {
|
|
2614
2634
|
query?: never;
|
|
@@ -3872,6 +3892,20 @@ export interface components {
|
|
|
3872
3892
|
/** @description Masked preview of the stored insights key (prefix + last four characters). Never includes the full secret. */
|
|
3873
3893
|
insightsTokenHint?: string;
|
|
3874
3894
|
};
|
|
3895
|
+
/** @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`. */
|
|
3896
|
+
CodeIntelligenceSourcePatchDto: {
|
|
3897
|
+
/** @enum {string} */
|
|
3898
|
+
type: "code_intelligence";
|
|
3899
|
+
/** @description Execution key for wiki/chat LLM calls in dedicated key mode. Whitespace and `env:` prefix are rejected. */
|
|
3900
|
+
executionToken?: string;
|
|
3901
|
+
};
|
|
3902
|
+
/** @description Redacted Engineering Context Graph source returned by `GET /workspaces/{workspaceId}/config`. Raw `executionToken` values are never returned. */
|
|
3903
|
+
CodeIntelligenceSourceConfigDto: {
|
|
3904
|
+
/** @enum {string} */
|
|
3905
|
+
type: "code_intelligence";
|
|
3906
|
+
/** @description Whether a dedicated ECG execution token is stored for this workspace. */
|
|
3907
|
+
hasExecutionToken: boolean;
|
|
3908
|
+
};
|
|
3875
3909
|
/** @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. */
|
|
3876
3910
|
NewRelicSourceDto: {
|
|
3877
3911
|
/** @enum {string} */
|
|
@@ -4013,8 +4047,17 @@ export interface components {
|
|
|
4013
4047
|
* @enum {string}
|
|
4014
4048
|
*/
|
|
4015
4049
|
AgentExecutionProviderDto: "thinkai_platform_cursor" | "cursor_user_api_key" | "claude_api_key";
|
|
4050
|
+
/** @description Partial update for Code Intelligence workspace settings (admin-only). */
|
|
4051
|
+
PutCodeIntelligenceSettingsDto: {
|
|
4052
|
+
enabled?: boolean;
|
|
4053
|
+
/** @enum {string} */
|
|
4054
|
+
keyMode?: "reuse_agent_execution" | "dedicated";
|
|
4055
|
+
provider?: components["schemas"]["AgentExecutionProviderDto"] | null;
|
|
4056
|
+
cursorModel?: string | null;
|
|
4057
|
+
claudeModel?: string | null;
|
|
4058
|
+
};
|
|
4016
4059
|
WorkspaceConfigDto: {
|
|
4017
|
-
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"])[];
|
|
4060
|
+
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"])[];
|
|
4018
4061
|
orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
|
|
4019
4062
|
/** @enum {string|null} */
|
|
4020
4063
|
region?: "us" | "eu" | "me" | null;
|
|
@@ -4025,6 +4068,21 @@ export interface components {
|
|
|
4025
4068
|
cursorPlatformKeyEnabled?: boolean;
|
|
4026
4069
|
/** @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`. */
|
|
4027
4070
|
agentExecutionProvider?: components["schemas"]["AgentExecutionProviderDto"];
|
|
4071
|
+
/** @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`. */
|
|
4072
|
+
codeIntelligenceEnabled?: boolean;
|
|
4073
|
+
/**
|
|
4074
|
+
* @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`).
|
|
4075
|
+
* @enum {string}
|
|
4076
|
+
*/
|
|
4077
|
+
codeIntelligenceKeyMode?: "reuse_agent_execution" | "dedicated";
|
|
4078
|
+
/** @description Active when `codeIntelligenceKeyMode` is `dedicated`. Null when reusing Agent Execution. */
|
|
4079
|
+
codeIntelligenceProvider?: components["schemas"]["AgentExecutionProviderDto"] | null;
|
|
4080
|
+
/** @description Optional Cursor model override for Code Intelligence (null/empty → env default). */
|
|
4081
|
+
codeIntelligenceCursorModel?: string | null;
|
|
4082
|
+
/** @description Optional Claude model override for Code Intelligence (null/empty → env default). */
|
|
4083
|
+
codeIntelligenceClaudeModel?: string | null;
|
|
4084
|
+
/** @description True when a dedicated `code_intelligence` source has a stored executionToken. */
|
|
4085
|
+
hasCodeIntelligenceExecutionToken?: boolean;
|
|
4028
4086
|
};
|
|
4029
4087
|
TestConnectionResponseDto: {
|
|
4030
4088
|
success: boolean;
|
|
@@ -6806,7 +6864,7 @@ export interface components {
|
|
|
6806
6864
|
* @description Type of workspace lifecycle event.
|
|
6807
6865
|
* @enum {string}
|
|
6808
6866
|
*/
|
|
6809
|
-
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";
|
|
6867
|
+
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";
|
|
6810
6868
|
ActivityLogActorDto: {
|
|
6811
6869
|
/** Format: uuid */
|
|
6812
6870
|
userId: string;
|
|
@@ -7768,6 +7826,10 @@ export interface components {
|
|
|
7768
7826
|
CodeInsightsMetricsDto: {
|
|
7769
7827
|
/** @description Readiness run that produced this metrics row. */
|
|
7770
7828
|
runId: string;
|
|
7829
|
+
/** @description Default branch at scan time from the linked readiness run, when `runId` matches a row in `tai_workspace_readiness_runs`. */
|
|
7830
|
+
defaultBranch?: string | null;
|
|
7831
|
+
/** @description Git commit (default branch tip) analyzed by the readiness run, when known. Null for seed runs or when the run record is missing. */
|
|
7832
|
+
scannedCommitSha?: string | null;
|
|
7771
7833
|
/** Format: date-time */
|
|
7772
7834
|
measuredAt: string;
|
|
7773
7835
|
metricsStatus: components["schemas"]["CodeInsightsMetricsStatus"];
|
|
@@ -8047,6 +8109,8 @@ export type CursorSourceConfigDto = components['schemas']['CursorSourceConfigDto
|
|
|
8047
8109
|
export type ClaudeSourceDto = components['schemas']['ClaudeSourceDto'];
|
|
8048
8110
|
export type ClaudeSourcePatchDto = components['schemas']['ClaudeSourcePatchDto'];
|
|
8049
8111
|
export type ClaudeSourceConfigDto = components['schemas']['ClaudeSourceConfigDto'];
|
|
8112
|
+
export type CodeIntelligenceSourcePatchDto = components['schemas']['CodeIntelligenceSourcePatchDto'];
|
|
8113
|
+
export type CodeIntelligenceSourceConfigDto = components['schemas']['CodeIntelligenceSourceConfigDto'];
|
|
8050
8114
|
export type NewRelicSourceDto = components['schemas']['NewRelicSourceDto'];
|
|
8051
8115
|
export type NewRelicSourceConfigDto = components['schemas']['NewRelicSourceConfigDto'];
|
|
8052
8116
|
export type PrometheusSourceDto = components['schemas']['PrometheusSourceDto'];
|
|
@@ -8058,6 +8122,7 @@ export type SonarQubeSourceConfigDto = components['schemas']['SonarQubeSourceCon
|
|
|
8058
8122
|
export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
|
|
8059
8123
|
export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
|
|
8060
8124
|
export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
|
|
8125
|
+
export type PutCodeIntelligenceSettingsDto = components['schemas']['PutCodeIntelligenceSettingsDto'];
|
|
8061
8126
|
export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
8062
8127
|
export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
|
|
8063
8128
|
export type CursorKeyUsageDto = components['schemas']['CursorKeyUsageDto'];
|
|
@@ -10022,7 +10087,7 @@ export interface operations {
|
|
|
10022
10087
|
requestBody: {
|
|
10023
10088
|
content: {
|
|
10024
10089
|
"application/json": {
|
|
10025
|
-
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"])[];
|
|
10090
|
+
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"])[];
|
|
10026
10091
|
};
|
|
10027
10092
|
};
|
|
10028
10093
|
};
|
|
@@ -10076,7 +10141,7 @@ export interface operations {
|
|
|
10076
10141
|
};
|
|
10077
10142
|
requestBody: {
|
|
10078
10143
|
content: {
|
|
10079
|
-
"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"];
|
|
10144
|
+
"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"];
|
|
10080
10145
|
};
|
|
10081
10146
|
};
|
|
10082
10147
|
responses: {
|
|
@@ -15295,7 +15360,52 @@ export interface operations {
|
|
|
15295
15360
|
[name: string]: unknown;
|
|
15296
15361
|
};
|
|
15297
15362
|
content: {
|
|
15298
|
-
"application/json":
|
|
15363
|
+
"application/json": {
|
|
15364
|
+
/** @example invalid_body */
|
|
15365
|
+
error: string;
|
|
15366
|
+
};
|
|
15367
|
+
};
|
|
15368
|
+
};
|
|
15369
|
+
401: components["responses"]["Unauthorized"];
|
|
15370
|
+
403: components["responses"]["Forbidden"];
|
|
15371
|
+
};
|
|
15372
|
+
};
|
|
15373
|
+
putCodeIntelligenceSettings: {
|
|
15374
|
+
parameters: {
|
|
15375
|
+
query?: never;
|
|
15376
|
+
header?: never;
|
|
15377
|
+
path: {
|
|
15378
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
15379
|
+
};
|
|
15380
|
+
cookie?: never;
|
|
15381
|
+
};
|
|
15382
|
+
requestBody: {
|
|
15383
|
+
content: {
|
|
15384
|
+
"application/json": components["schemas"]["PutCodeIntelligenceSettingsDto"];
|
|
15385
|
+
};
|
|
15386
|
+
};
|
|
15387
|
+
responses: {
|
|
15388
|
+
/** @description Settings updated */
|
|
15389
|
+
200: {
|
|
15390
|
+
headers: {
|
|
15391
|
+
[name: string]: unknown;
|
|
15392
|
+
};
|
|
15393
|
+
content: {
|
|
15394
|
+
"application/json": {
|
|
15395
|
+
ok: boolean;
|
|
15396
|
+
};
|
|
15397
|
+
};
|
|
15398
|
+
};
|
|
15399
|
+
/** @description Invalid request body */
|
|
15400
|
+
400: {
|
|
15401
|
+
headers: {
|
|
15402
|
+
[name: string]: unknown;
|
|
15403
|
+
};
|
|
15404
|
+
content: {
|
|
15405
|
+
"application/json": {
|
|
15406
|
+
/** @example invalid_body */
|
|
15407
|
+
error: string;
|
|
15408
|
+
};
|
|
15299
15409
|
};
|
|
15300
15410
|
};
|
|
15301
15411
|
401: components["responses"]["Unauthorized"];
|