@thinkai/tai-api-contract 2.206.0 → 2.208.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.
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ThinkAI API
4
- version: 2.206.0
4
+ version: 2.208.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}/...`.
@@ -3083,6 +3083,7 @@ paths:
3083
3083
  - $ref: "#/components/schemas/GrafanaSourceDto"
3084
3084
  - $ref: "#/components/schemas/SonarQubeSourceDto"
3085
3085
  - $ref: "#/components/schemas/PagerDutySourceDto"
3086
+ - $ref: "#/components/schemas/IncidentIoSourceDto"
3086
3087
  - $ref: "#/components/schemas/SentrySourceDto"
3087
3088
  - $ref: "#/components/schemas/JiraSourceDto"
3088
3089
  - $ref: "#/components/schemas/TenantSourceEntryDto"
@@ -3206,6 +3207,7 @@ paths:
3206
3207
  - $ref: "#/components/schemas/GrafanaSourceDto"
3207
3208
  - $ref: "#/components/schemas/SonarQubeSourceDto"
3208
3209
  - $ref: "#/components/schemas/PagerDutySourceDto"
3210
+ - $ref: "#/components/schemas/IncidentIoSourceDto"
3209
3211
  - $ref: "#/components/schemas/SentrySourceDto"
3210
3212
  - $ref: "#/components/schemas/JiraSourceDto"
3211
3213
  - $ref: "#/components/schemas/TenantSourceEntryDto"
@@ -16365,6 +16367,52 @@ components:
16365
16367
  type: string
16366
16368
  description: PagerDuty user email when known from the last successful verify.
16367
16369
 
16370
+ IncidentIoSourceDto:
16371
+ type: object
16372
+ description: >
16373
+ incident.io incident-management source for `PUT /workspaces/{workspaceId}/sources` and
16374
+ `POST /workspaces/{workspaceId}/sources/test`. Requires an incident.io API key
16375
+ (incident.io → Settings → API keys) with permission to view incidents.
16376
+ The API host is fixed (`https://api.incident.io`); there is no base URL field.
16377
+ required: [type, token]
16378
+ additionalProperties: false
16379
+ properties:
16380
+ type:
16381
+ type: string
16382
+ enum: [incidentio]
16383
+ token:
16384
+ type: string
16385
+ minLength: 1
16386
+ maxLength: 512
16387
+ description: incident.io API key (Bearer, write-only on PUT).
16388
+ keyName:
16389
+ type: string
16390
+ description: Optional API key name from a successful connection test (echo-after-test).
16391
+ dashboardUrl:
16392
+ type: string
16393
+ description: Optional incident.io dashboard URL from a successful connection test (echo-after-test).
16394
+
16395
+ IncidentIoSourceConfigDto:
16396
+ type: object
16397
+ description: >
16398
+ Redacted incident.io source returned by `GET /workspaces/{workspaceId}/config`.
16399
+ Raw token is never returned.
16400
+ required: [type, hasToken]
16401
+ additionalProperties: false
16402
+ properties:
16403
+ type:
16404
+ type: string
16405
+ enum: [incidentio]
16406
+ hasToken:
16407
+ type: boolean
16408
+ description: Whether an API key is stored for this workspace.
16409
+ keyName:
16410
+ type: string
16411
+ description: incident.io API key name when known from the last successful verify.
16412
+ dashboardUrl:
16413
+ type: string
16414
+ description: incident.io dashboard URL when known from the last successful verify.
16415
+
16368
16416
  SentrySourceDto:
16369
16417
  type: object
16370
16418
  description: >
@@ -16705,6 +16753,7 @@ components:
16705
16753
  - $ref: "#/components/schemas/GrafanaSourceConfigDto"
16706
16754
  - $ref: "#/components/schemas/SonarQubeSourceConfigDto"
16707
16755
  - $ref: "#/components/schemas/PagerDutySourceConfigDto"
16756
+ - $ref: "#/components/schemas/IncidentIoSourceConfigDto"
16708
16757
  - $ref: "#/components/schemas/SentrySourceConfigDto"
16709
16758
  - $ref: "#/components/schemas/JiraSourceConfigDto"
16710
16759
  - $ref: "#/components/schemas/TenantSourceEntryDto"
@@ -17168,6 +17217,12 @@ components:
17168
17217
  orgName:
17169
17218
  type: string
17170
17219
  description: Present for Grafana, Datadog, or Sentry verify success — resolved organization name.
17220
+ keyName:
17221
+ type: string
17222
+ description: Present for incident.io verify success — API key name from `GET /v1/identity`.
17223
+ dashboardUrl:
17224
+ type: string
17225
+ description: Present for incident.io verify success — organization dashboard URL from `GET /v1/identity`.
17171
17226
  clusterName:
17172
17227
  type: string
17173
17228
  description: Present for Prometheus verify success — Alertmanager cluster name.
@@ -28043,6 +28098,12 @@ components:
28043
28098
  nodeCount: { type: integer }
28044
28099
  edgeCount: { type: integer }
28045
28100
  commitSha: { type: string, nullable: true }
28101
+ defaultBranch:
28102
+ type: string
28103
+ nullable: true
28104
+ description: >
28105
+ Host default branch for this repository (`tai_workspace_repos.default_branch`).
28106
+ Refreshed on tip-changing rebuilds. SPA wiki chip: `{defaultBranch} @ {shortSha}`.
28046
28107
  errorMessage: { type: string, nullable: true }
28047
28108
  progressMessage:
28048
28109
  type: string
@@ -28320,6 +28381,12 @@ components:
28320
28381
  type: array
28321
28382
  items: { $ref: "#/components/schemas/CodeChatAttachmentMetaDto" }
28322
28383
  description: Present on user turns that included uploaded files
28384
+ usage:
28385
+ allOf:
28386
+ - $ref: "#/components/schemas/CodeIntelligenceUsageDto"
28387
+ description: >
28388
+ Hydrated from `tai_workspace_code_intelligence_token_usage` on GET thread
28389
+ detail (assistant turns). Omitted when no ledger rows exist for the message.
28323
28390
 
28324
28391
  CodeChatThreadDetailDto:
28325
28392
  allOf:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.206.0",
3
+ "version": "2.208.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -6303,6 +6303,28 @@ export interface components {
6303
6303
  /** @description PagerDuty user email when known from the last successful verify. */
6304
6304
  userEmail?: string;
6305
6305
  };
6306
+ /** @description incident.io incident-management source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires an incident.io API key (incident.io → Settings → API keys) with permission to view incidents. The API host is fixed (`https://api.incident.io`); there is no base URL field. */
6307
+ IncidentIoSourceDto: {
6308
+ /** @enum {string} */
6309
+ type: "incidentio";
6310
+ /** @description incident.io API key (Bearer, write-only on PUT). */
6311
+ token: string;
6312
+ /** @description Optional API key name from a successful connection test (echo-after-test). */
6313
+ keyName?: string;
6314
+ /** @description Optional incident.io dashboard URL from a successful connection test (echo-after-test). */
6315
+ dashboardUrl?: string;
6316
+ };
6317
+ /** @description Redacted incident.io source returned by `GET /workspaces/{workspaceId}/config`. Raw token is never returned. */
6318
+ IncidentIoSourceConfigDto: {
6319
+ /** @enum {string} */
6320
+ type: "incidentio";
6321
+ /** @description Whether an API key is stored for this workspace. */
6322
+ hasToken: boolean;
6323
+ /** @description incident.io API key name when known from the last successful verify. */
6324
+ keyName?: string;
6325
+ /** @description incident.io dashboard URL when known from the last successful verify. */
6326
+ dashboardUrl?: string;
6327
+ };
6306
6328
  /** @description Sentry incident and release source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires an organization slug and an auth token with `org:read`, `event:read`, and `project:read`. Issues map to incident events and releases with a commit or environment map to deployment events. */
6307
6329
  SentrySourceDto: {
6308
6330
  /** @enum {string} */
@@ -6457,7 +6479,7 @@ export interface components {
6457
6479
  topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
6458
6480
  };
6459
6481
  WorkspaceConfigDto: {
6460
- sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
6482
+ sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["CodeIntelligenceSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["DatadogSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["PagerDutySourceConfigDto"] | components["schemas"]["IncidentIoSourceConfigDto"] | components["schemas"]["SentrySourceConfigDto"] | components["schemas"]["JiraSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
6461
6483
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
6462
6484
  /** @enum {string|null} */
6463
6485
  region?: "us" | "eu" | "me" | null;
@@ -6652,6 +6674,10 @@ export interface components {
6652
6674
  accountId?: string;
6653
6675
  /** @description Present for Grafana, Datadog, or Sentry verify success — resolved organization name. */
6654
6676
  orgName?: string;
6677
+ /** @description Present for incident.io verify success — API key name from `GET /v1/identity`. */
6678
+ keyName?: string;
6679
+ /** @description Present for incident.io verify success — organization dashboard URL from `GET /v1/identity`. */
6680
+ dashboardUrl?: string;
6655
6681
  /** @description Present for Prometheus verify success — Alertmanager cluster name. */
6656
6682
  clusterName?: string;
6657
6683
  /** @description Present for Prometheus verify success — Alertmanager version when available. */
@@ -11616,6 +11642,8 @@ export interface components {
11616
11642
  nodeCount: number;
11617
11643
  edgeCount: number;
11618
11644
  commitSha?: string | null;
11645
+ /** @description Host default branch for this repository (`tai_workspace_repos.default_branch`). Refreshed on tip-changing rebuilds. SPA wiki chip: `{defaultBranch} @ {shortSha}`. */
11646
+ defaultBranch?: string | null;
11619
11647
  errorMessage?: string | null;
11620
11648
  /** @description Human-readable indexing stage while a job is running (queued, clone, graph, save, wiki). Cleared when the index is ready or failed. */
11621
11649
  progressMessage?: string | null;
@@ -11797,6 +11825,8 @@ export interface components {
11797
11825
  createdAt: string;
11798
11826
  /** @description Present on user turns that included uploaded files */
11799
11827
  attachments?: components["schemas"]["CodeChatAttachmentMetaDto"][];
11828
+ /** @description Hydrated from `tai_workspace_code_intelligence_token_usage` on GET thread detail (assistant turns). Omitted when no ledger rows exist for the message. */
11829
+ usage?: components["schemas"]["CodeIntelligenceUsageDto"];
11800
11830
  };
11801
11831
  CodeChatThreadDetailDto: components["schemas"]["CodeChatThreadDto"] & {
11802
11832
  messages: components["schemas"]["CodeChatMessageDto"][];
@@ -13405,6 +13435,8 @@ export type SonarQubeRepoMappingValidateRowDto = components['schemas']['SonarQub
13405
13435
  export type SonarQubeRepoMappingsValidateResponseDto = components['schemas']['SonarQubeRepoMappingsValidateResponseDto'];
13406
13436
  export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
13407
13437
  export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
13438
+ export type IncidentIoSourceDto = components['schemas']['IncidentIoSourceDto'];
13439
+ export type IncidentIoSourceConfigDto = components['schemas']['IncidentIoSourceConfigDto'];
13408
13440
  export type SentrySourceDto = components['schemas']['SentrySourceDto'];
13409
13441
  export type SentrySourceConfigDto = components['schemas']['SentrySourceConfigDto'];
13410
13442
  export type JiraSourceDto = components['schemas']['JiraSourceDto'];
@@ -17081,7 +17113,7 @@ export interface operations {
17081
17113
  requestBody: {
17082
17114
  content: {
17083
17115
  "application/json": {
17084
- sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
17116
+ sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
17085
17117
  };
17086
17118
  };
17087
17119
  };
@@ -17135,7 +17167,7 @@ export interface operations {
17135
17167
  };
17136
17168
  requestBody: {
17137
17169
  content: {
17138
- "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
17170
+ "application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["CodeIntelligenceSourcePatchDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["DatadogSourceDto"] | components["schemas"]["PrometheusSourceDto"] | components["schemas"]["GrafanaSourceDto"] | components["schemas"]["SonarQubeSourceDto"] | components["schemas"]["PagerDutySourceDto"] | components["schemas"]["IncidentIoSourceDto"] | components["schemas"]["SentrySourceDto"] | components["schemas"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
17139
17171
  };
17140
17172
  };
17141
17173
  responses: {