@thinkai/tai-api-contract 2.188.0 → 2.189.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.188.0
4
+ version: 2.189.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}/...`.
@@ -2755,6 +2755,7 @@ paths:
2755
2755
  - $ref: "#/components/schemas/GrafanaSourceDto"
2756
2756
  - $ref: "#/components/schemas/SonarQubeSourceDto"
2757
2757
  - $ref: "#/components/schemas/PagerDutySourceDto"
2758
+ - $ref: "#/components/schemas/SentrySourceDto"
2758
2759
  - $ref: "#/components/schemas/JiraSourceDto"
2759
2760
  - $ref: "#/components/schemas/TenantSourceEntryDto"
2760
2761
  examples:
@@ -2877,6 +2878,7 @@ paths:
2877
2878
  - $ref: "#/components/schemas/GrafanaSourceDto"
2878
2879
  - $ref: "#/components/schemas/SonarQubeSourceDto"
2879
2880
  - $ref: "#/components/schemas/PagerDutySourceDto"
2881
+ - $ref: "#/components/schemas/SentrySourceDto"
2880
2882
  - $ref: "#/components/schemas/JiraSourceDto"
2881
2883
  - $ref: "#/components/schemas/TenantSourceEntryDto"
2882
2884
  examples:
@@ -15830,6 +15832,66 @@ components:
15830
15832
  type: string
15831
15833
  description: PagerDuty user email when known from the last successful verify.
15832
15834
 
15835
+ SentrySourceDto:
15836
+ type: object
15837
+ description: >
15838
+ Sentry incident and release source for `PUT /workspaces/{workspaceId}/sources` and
15839
+ `POST /workspaces/{workspaceId}/sources/test`. Requires an organization slug and an auth
15840
+ token with `org:read`, `event:read`, and `project:read`. Issues map to incident events and
15841
+ releases with a commit or environment map to deployment events.
15842
+ required: [type, orgSlug, token]
15843
+ additionalProperties: false
15844
+ properties:
15845
+ type:
15846
+ type: string
15847
+ enum: [sentry]
15848
+ orgSlug:
15849
+ type: string
15850
+ minLength: 1
15851
+ maxLength: 128
15852
+ description: Sentry organization slug (the `{slug}` in `sentry.io/organizations/{slug}/`).
15853
+ token:
15854
+ type: string
15855
+ minLength: 1
15856
+ maxLength: 512
15857
+ description: Sentry auth token (organization or internal integration token, write-only on PUT).
15858
+ baseUrl:
15859
+ type: string
15860
+ description: Optional API base URL for self-hosted Sentry. Default `https://sentry.io/api/0`.
15861
+ projectSlug:
15862
+ type: string
15863
+ description: Optional project slug. When set, only that project's issues and releases are ingested.
15864
+ orgName:
15865
+ type: string
15866
+ description: Optional organization display name from a successful connection test (echo-after-test).
15867
+
15868
+ SentrySourceConfigDto:
15869
+ type: object
15870
+ description: >
15871
+ Redacted Sentry source returned by `GET /workspaces/{workspaceId}/config`.
15872
+ Raw token is never returned.
15873
+ required: [type, hasToken, orgSlug]
15874
+ additionalProperties: false
15875
+ properties:
15876
+ type:
15877
+ type: string
15878
+ enum: [sentry]
15879
+ hasToken:
15880
+ type: boolean
15881
+ description: Whether an auth token is stored for this workspace.
15882
+ orgSlug:
15883
+ type: string
15884
+ description: Configured Sentry organization slug.
15885
+ baseUrl:
15886
+ type: string
15887
+ description: Configured API base URL override, when set.
15888
+ projectSlug:
15889
+ type: string
15890
+ description: Configured project filter, when set.
15891
+ orgName:
15892
+ type: string
15893
+ description: Sentry organization name when known from the last successful verify.
15894
+
15833
15895
  JiraSourceDto:
15834
15896
  type: object
15835
15897
  description: >
@@ -16110,6 +16172,7 @@ components:
16110
16172
  - $ref: "#/components/schemas/GrafanaSourceConfigDto"
16111
16173
  - $ref: "#/components/schemas/SonarQubeSourceConfigDto"
16112
16174
  - $ref: "#/components/schemas/PagerDutySourceConfigDto"
16175
+ - $ref: "#/components/schemas/SentrySourceConfigDto"
16113
16176
  - $ref: "#/components/schemas/JiraSourceConfigDto"
16114
16177
  - $ref: "#/components/schemas/TenantSourceEntryDto"
16115
16178
  orgChart:
@@ -16366,7 +16429,7 @@ components:
16366
16429
  description: Present for New Relic or Jira verify success — resolved account ID.
16367
16430
  orgName:
16368
16431
  type: string
16369
- description: Present for Grafana or Datadog verify success — resolved organization name.
16432
+ description: Present for Grafana, Datadog, or Sentry verify success — resolved organization name.
16370
16433
  clusterName:
16371
16434
  type: string
16372
16435
  description: Present for Prometheus verify success — Alertmanager cluster name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.188.0",
3
+ "version": "2.189.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -6118,6 +6118,36 @@ export interface components {
6118
6118
  /** @description PagerDuty user email when known from the last successful verify. */
6119
6119
  userEmail?: string;
6120
6120
  };
6121
+ /** @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. */
6122
+ SentrySourceDto: {
6123
+ /** @enum {string} */
6124
+ type: "sentry";
6125
+ /** @description Sentry organization slug (the `{slug}` in `sentry.io/organizations/{slug}/`). */
6126
+ orgSlug: string;
6127
+ /** @description Sentry auth token (organization or internal integration token, write-only on PUT). */
6128
+ token: string;
6129
+ /** @description Optional API base URL for self-hosted Sentry. Default `https://sentry.io/api/0`. */
6130
+ baseUrl?: string;
6131
+ /** @description Optional project slug. When set, only that project's issues and releases are ingested. */
6132
+ projectSlug?: string;
6133
+ /** @description Optional organization display name from a successful connection test (echo-after-test). */
6134
+ orgName?: string;
6135
+ };
6136
+ /** @description Redacted Sentry source returned by `GET /workspaces/{workspaceId}/config`. Raw token is never returned. */
6137
+ SentrySourceConfigDto: {
6138
+ /** @enum {string} */
6139
+ type: "sentry";
6140
+ /** @description Whether an auth token is stored for this workspace. */
6141
+ hasToken: boolean;
6142
+ /** @description Configured Sentry organization slug. */
6143
+ orgSlug: string;
6144
+ /** @description Configured API base URL override, when set. */
6145
+ baseUrl?: string;
6146
+ /** @description Configured project filter, when set. */
6147
+ projectSlug?: string;
6148
+ /** @description Sentry organization name when known from the last successful verify. */
6149
+ orgName?: string;
6150
+ };
6121
6151
  /** @description Jira Cloud source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Uses Atlassian Cloud email + API token (Basic auth). Provide `apiToken` (preferred) or legacy write-only `api_key`; the server normalizes `api_key` to `apiToken` on write. */
6122
6152
  JiraSourceDto: {
6123
6153
  /** @enum {string} */
@@ -6242,7 +6272,7 @@ export interface components {
6242
6272
  topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
6243
6273
  };
6244
6274
  WorkspaceConfigDto: {
6245
- 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"]["JiraSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
6275
+ 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"])[];
6246
6276
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
6247
6277
  /** @enum {string|null} */
6248
6278
  region?: "us" | "eu" | "me" | null;
@@ -6365,7 +6395,7 @@ export interface components {
6365
6395
  accountName?: string;
6366
6396
  /** @description Present for New Relic or Jira verify success — resolved account ID. */
6367
6397
  accountId?: string;
6368
- /** @description Present for Grafana or Datadog verify success — resolved organization name. */
6398
+ /** @description Present for Grafana, Datadog, or Sentry verify success — resolved organization name. */
6369
6399
  orgName?: string;
6370
6400
  /** @description Present for Prometheus verify success — Alertmanager cluster name. */
6371
6401
  clusterName?: string;
@@ -12992,6 +13022,8 @@ export type SonarQubeRepoMappingValidateRowDto = components['schemas']['SonarQub
12992
13022
  export type SonarQubeRepoMappingsValidateResponseDto = components['schemas']['SonarQubeRepoMappingsValidateResponseDto'];
12993
13023
  export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
12994
13024
  export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
13025
+ export type SentrySourceDto = components['schemas']['SentrySourceDto'];
13026
+ export type SentrySourceConfigDto = components['schemas']['SentrySourceConfigDto'];
12995
13027
  export type JiraSourceDto = components['schemas']['JiraSourceDto'];
12996
13028
  export type JiraSourceConfigDto = components['schemas']['JiraSourceConfigDto'];
12997
13029
  export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
@@ -16330,7 +16362,7 @@ export interface operations {
16330
16362
  requestBody: {
16331
16363
  content: {
16332
16364
  "application/json": {
16333
- 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"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
16365
+ 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"])[];
16334
16366
  };
16335
16367
  };
16336
16368
  };
@@ -16384,7 +16416,7 @@ export interface operations {
16384
16416
  };
16385
16417
  requestBody: {
16386
16418
  content: {
16387
- "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"]["JiraSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
16419
+ "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"];
16388
16420
  };
16389
16421
  };
16390
16422
  responses: {