@thinkai/tai-api-contract 2.71.0 → 2.72.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.72.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}/...`.
|
|
@@ -1522,6 +1522,7 @@ paths:
|
|
|
1522
1522
|
- $ref: "#/components/schemas/PrometheusSourceDto"
|
|
1523
1523
|
- $ref: "#/components/schemas/GrafanaSourceDto"
|
|
1524
1524
|
- $ref: "#/components/schemas/SonarQubeSourceDto"
|
|
1525
|
+
- $ref: "#/components/schemas/PagerDutySourceDto"
|
|
1525
1526
|
- $ref: "#/components/schemas/TenantSourceEntryDto"
|
|
1526
1527
|
examples:
|
|
1527
1528
|
cursorAndJira:
|
|
@@ -1638,6 +1639,7 @@ paths:
|
|
|
1638
1639
|
- $ref: "#/components/schemas/PrometheusSourceDto"
|
|
1639
1640
|
- $ref: "#/components/schemas/GrafanaSourceDto"
|
|
1640
1641
|
- $ref: "#/components/schemas/SonarQubeSourceDto"
|
|
1642
|
+
- $ref: "#/components/schemas/PagerDutySourceDto"
|
|
1641
1643
|
- $ref: "#/components/schemas/TenantSourceEntryDto"
|
|
1642
1644
|
examples:
|
|
1643
1645
|
cursorValid:
|
|
@@ -9046,6 +9048,57 @@ components:
|
|
|
9046
9048
|
branch:
|
|
9047
9049
|
type: string
|
|
9048
9050
|
|
|
9051
|
+
PagerDutySourceDto:
|
|
9052
|
+
type: object
|
|
9053
|
+
description: >
|
|
9054
|
+
PagerDuty incident monitoring source for `PUT /workspaces/{workspaceId}/sources` and
|
|
9055
|
+
`POST /workspaces/{workspaceId}/sources/test`. Requires a REST API v2 token
|
|
9056
|
+
(an "API Access Key" from PagerDuty → **Integrations → API Access Keys**).
|
|
9057
|
+
required: [type, token]
|
|
9058
|
+
additionalProperties: false
|
|
9059
|
+
properties:
|
|
9060
|
+
type:
|
|
9061
|
+
type: string
|
|
9062
|
+
enum: [pagerduty]
|
|
9063
|
+
token:
|
|
9064
|
+
type: string
|
|
9065
|
+
minLength: 1
|
|
9066
|
+
maxLength: 512
|
|
9067
|
+
description: PagerDuty REST API v2 token (API Access Key, write-only on PUT).
|
|
9068
|
+
baseUrl:
|
|
9069
|
+
type: string
|
|
9070
|
+
description: Optional API base URL override. Default `https://api.pagerduty.com`.
|
|
9071
|
+
userName:
|
|
9072
|
+
type: string
|
|
9073
|
+
description: Optional display name from a successful connection test (echo-after-test).
|
|
9074
|
+
userEmail:
|
|
9075
|
+
type: string
|
|
9076
|
+
description: Optional email from a successful connection test (echo-after-test).
|
|
9077
|
+
|
|
9078
|
+
PagerDutySourceConfigDto:
|
|
9079
|
+
type: object
|
|
9080
|
+
description: >
|
|
9081
|
+
Redacted PagerDuty source returned by `GET /workspaces/{workspaceId}/config`.
|
|
9082
|
+
Raw token is never returned.
|
|
9083
|
+
required: [type, hasToken]
|
|
9084
|
+
additionalProperties: false
|
|
9085
|
+
properties:
|
|
9086
|
+
type:
|
|
9087
|
+
type: string
|
|
9088
|
+
enum: [pagerduty]
|
|
9089
|
+
hasToken:
|
|
9090
|
+
type: boolean
|
|
9091
|
+
description: Whether an API token is stored for this workspace.
|
|
9092
|
+
baseUrl:
|
|
9093
|
+
type: string
|
|
9094
|
+
description: Configured API base URL override, when set.
|
|
9095
|
+
userName:
|
|
9096
|
+
type: string
|
|
9097
|
+
description: PagerDuty user name when known from the last successful verify.
|
|
9098
|
+
userEmail:
|
|
9099
|
+
type: string
|
|
9100
|
+
description: PagerDuty user email when known from the last successful verify.
|
|
9101
|
+
|
|
9049
9102
|
AgentExecutionProviderDto:
|
|
9050
9103
|
type: string
|
|
9051
9104
|
description: >
|
|
@@ -9073,6 +9126,7 @@ components:
|
|
|
9073
9126
|
- $ref: "#/components/schemas/PrometheusSourceConfigDto"
|
|
9074
9127
|
- $ref: "#/components/schemas/GrafanaSourceConfigDto"
|
|
9075
9128
|
- $ref: "#/components/schemas/SonarQubeSourceConfigDto"
|
|
9129
|
+
- $ref: "#/components/schemas/PagerDutySourceConfigDto"
|
|
9076
9130
|
- $ref: "#/components/schemas/TenantSourceEntryDto"
|
|
9077
9131
|
orgChart:
|
|
9078
9132
|
nullable: true
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -3565,6 +3565,32 @@ export interface components {
|
|
|
3565
3565
|
projectKey: string;
|
|
3566
3566
|
branch?: string;
|
|
3567
3567
|
};
|
|
3568
|
+
/** @description PagerDuty incident monitoring source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires a REST API v2 token (an "API Access Key" from PagerDuty → **Integrations → API Access Keys**). */
|
|
3569
|
+
PagerDutySourceDto: {
|
|
3570
|
+
/** @enum {string} */
|
|
3571
|
+
type: "pagerduty";
|
|
3572
|
+
/** @description PagerDuty REST API v2 token (API Access Key, write-only on PUT). */
|
|
3573
|
+
token: string;
|
|
3574
|
+
/** @description Optional API base URL override. Default `https://api.pagerduty.com`. */
|
|
3575
|
+
baseUrl?: string;
|
|
3576
|
+
/** @description Optional display name from a successful connection test (echo-after-test). */
|
|
3577
|
+
userName?: string;
|
|
3578
|
+
/** @description Optional email from a successful connection test (echo-after-test). */
|
|
3579
|
+
userEmail?: string;
|
|
3580
|
+
};
|
|
3581
|
+
/** @description Redacted PagerDuty source returned by `GET /workspaces/{workspaceId}/config`. Raw token is never returned. */
|
|
3582
|
+
PagerDutySourceConfigDto: {
|
|
3583
|
+
/** @enum {string} */
|
|
3584
|
+
type: "pagerduty";
|
|
3585
|
+
/** @description Whether an API token is stored for this workspace. */
|
|
3586
|
+
hasToken: boolean;
|
|
3587
|
+
/** @description Configured API base URL override, when set. */
|
|
3588
|
+
baseUrl?: string;
|
|
3589
|
+
/** @description PagerDuty user name when known from the last successful verify. */
|
|
3590
|
+
userName?: string;
|
|
3591
|
+
/** @description PagerDuty user email when known from the last successful verify. */
|
|
3592
|
+
userEmail?: string;
|
|
3593
|
+
};
|
|
3568
3594
|
/**
|
|
3569
3595
|
* @description The agent execution account used for Agentic Foundation runs (readiness scanner + fix queue). Exactly one is active per workspace.
|
|
3570
3596
|
* - `thinkai_platform_cursor`: ThinkAI platform Cursor key (Cursor Agent CLI) — opt-in, never default.
|
|
@@ -3574,7 +3600,7 @@ export interface components {
|
|
|
3574
3600
|
*/
|
|
3575
3601
|
AgentExecutionProviderDto: "thinkai_platform_cursor" | "cursor_user_api_key" | "claude_api_key";
|
|
3576
3602
|
WorkspaceConfigDto: {
|
|
3577
|
-
sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["PrometheusSourceConfigDto"] | components["schemas"]["GrafanaSourceConfigDto"] | components["schemas"]["SonarQubeSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
3603
|
+
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"])[];
|
|
3578
3604
|
orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
|
|
3579
3605
|
/** @enum {string|null} */
|
|
3580
3606
|
region?: "us" | "eu" | "me" | null;
|
|
@@ -7000,6 +7026,8 @@ export type GrafanaSourceDto = components['schemas']['GrafanaSourceDto'];
|
|
|
7000
7026
|
export type GrafanaSourceConfigDto = components['schemas']['GrafanaSourceConfigDto'];
|
|
7001
7027
|
export type SonarQubeSourceDto = components['schemas']['SonarQubeSourceDto'];
|
|
7002
7028
|
export type SonarQubeSourceConfigDto = components['schemas']['SonarQubeSourceConfigDto'];
|
|
7029
|
+
export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
|
|
7030
|
+
export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
|
|
7003
7031
|
export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
|
|
7004
7032
|
export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
7005
7033
|
export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
|
|
@@ -8901,7 +8929,7 @@ export interface operations {
|
|
|
8901
8929
|
requestBody: {
|
|
8902
8930
|
content: {
|
|
8903
8931
|
"application/json": {
|
|
8904
|
-
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"]["TenantSourceEntryDto"])[];
|
|
8932
|
+
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"])[];
|
|
8905
8933
|
};
|
|
8906
8934
|
};
|
|
8907
8935
|
};
|
|
@@ -8955,7 +8983,7 @@ export interface operations {
|
|
|
8955
8983
|
};
|
|
8956
8984
|
requestBody: {
|
|
8957
8985
|
content: {
|
|
8958
|
-
"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"]["TenantSourceEntryDto"];
|
|
8986
|
+
"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"];
|
|
8959
8987
|
};
|
|
8960
8988
|
};
|
|
8961
8989
|
responses: {
|