@thinkai/tai-api-contract 2.206.0 → 2.207.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/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.207.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.
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -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. */
|
|
@@ -13405,6 +13431,8 @@ export type SonarQubeRepoMappingValidateRowDto = components['schemas']['SonarQub
|
|
|
13405
13431
|
export type SonarQubeRepoMappingsValidateResponseDto = components['schemas']['SonarQubeRepoMappingsValidateResponseDto'];
|
|
13406
13432
|
export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
|
|
13407
13433
|
export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
|
|
13434
|
+
export type IncidentIoSourceDto = components['schemas']['IncidentIoSourceDto'];
|
|
13435
|
+
export type IncidentIoSourceConfigDto = components['schemas']['IncidentIoSourceConfigDto'];
|
|
13408
13436
|
export type SentrySourceDto = components['schemas']['SentrySourceDto'];
|
|
13409
13437
|
export type SentrySourceConfigDto = components['schemas']['SentrySourceConfigDto'];
|
|
13410
13438
|
export type JiraSourceDto = components['schemas']['JiraSourceDto'];
|
|
@@ -17081,7 +17109,7 @@ export interface operations {
|
|
|
17081
17109
|
requestBody: {
|
|
17082
17110
|
content: {
|
|
17083
17111
|
"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"])[];
|
|
17112
|
+
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
17113
|
};
|
|
17086
17114
|
};
|
|
17087
17115
|
};
|
|
@@ -17135,7 +17163,7 @@ export interface operations {
|
|
|
17135
17163
|
};
|
|
17136
17164
|
requestBody: {
|
|
17137
17165
|
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"];
|
|
17166
|
+
"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
17167
|
};
|
|
17140
17168
|
};
|
|
17141
17169
|
responses: {
|