@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.
@@ -6302,6 +6302,28 @@ export interface components {
6302
6302
  /** @description PagerDuty user email when known from the last successful verify. */
6303
6303
  userEmail?: string;
6304
6304
  };
6305
+ /** @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. */
6306
+ IncidentIoSourceDto: {
6307
+ /** @enum {string} */
6308
+ type: "incidentio";
6309
+ /** @description incident.io API key (Bearer, write-only on PUT). */
6310
+ token: string;
6311
+ /** @description Optional API key name from a successful connection test (echo-after-test). */
6312
+ keyName?: string;
6313
+ /** @description Optional incident.io dashboard URL from a successful connection test (echo-after-test). */
6314
+ dashboardUrl?: string;
6315
+ };
6316
+ /** @description Redacted incident.io source returned by `GET /workspaces/{workspaceId}/config`. Raw token is never returned. */
6317
+ IncidentIoSourceConfigDto: {
6318
+ /** @enum {string} */
6319
+ type: "incidentio";
6320
+ /** @description Whether an API key is stored for this workspace. */
6321
+ hasToken: boolean;
6322
+ /** @description incident.io API key name when known from the last successful verify. */
6323
+ keyName?: string;
6324
+ /** @description incident.io dashboard URL when known from the last successful verify. */
6325
+ dashboardUrl?: string;
6326
+ };
6305
6327
  /** @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. */
6306
6328
  SentrySourceDto: {
6307
6329
  /** @enum {string} */
@@ -6456,7 +6478,7 @@ export interface components {
6456
6478
  topics?: components["schemas"]["CodeWikiGuidanceTopicDto"][];
6457
6479
  };
6458
6480
  WorkspaceConfigDto: {
6459
- 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"])[];
6481
+ 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"])[];
6460
6482
  orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
6461
6483
  /** @enum {string|null} */
6462
6484
  region?: "us" | "eu" | "me" | null;
@@ -6651,6 +6673,10 @@ export interface components {
6651
6673
  accountId?: string;
6652
6674
  /** @description Present for Grafana, Datadog, or Sentry verify success — resolved organization name. */
6653
6675
  orgName?: string;
6676
+ /** @description Present for incident.io verify success — API key name from `GET /v1/identity`. */
6677
+ keyName?: string;
6678
+ /** @description Present for incident.io verify success — organization dashboard URL from `GET /v1/identity`. */
6679
+ dashboardUrl?: string;
6654
6680
  /** @description Present for Prometheus verify success — Alertmanager cluster name. */
6655
6681
  clusterName?: string;
6656
6682
  /** @description Present for Prometheus verify success — Alertmanager version when available. */
@@ -11615,6 +11641,8 @@ export interface components {
11615
11641
  nodeCount: number;
11616
11642
  edgeCount: number;
11617
11643
  commitSha?: string | null;
11644
+ /** @description Host default branch for this repository (`tai_workspace_repos.default_branch`). Refreshed on tip-changing rebuilds. SPA wiki chip: `{defaultBranch} @ {shortSha}`. */
11645
+ defaultBranch?: string | null;
11618
11646
  errorMessage?: string | null;
11619
11647
  /** @description Human-readable indexing stage while a job is running (queued, clone, graph, save, wiki). Cleared when the index is ready or failed. */
11620
11648
  progressMessage?: string | null;
@@ -11796,6 +11824,8 @@ export interface components {
11796
11824
  createdAt: string;
11797
11825
  /** @description Present on user turns that included uploaded files */
11798
11826
  attachments?: components["schemas"]["CodeChatAttachmentMetaDto"][];
11827
+ /** @description Hydrated from `tai_workspace_code_intelligence_token_usage` on GET thread detail (assistant turns). Omitted when no ledger rows exist for the message. */
11828
+ usage?: components["schemas"]["CodeIntelligenceUsageDto"];
11799
11829
  };
11800
11830
  CodeChatThreadDetailDto: components["schemas"]["CodeChatThreadDto"] & {
11801
11831
  messages: components["schemas"]["CodeChatMessageDto"][];
@@ -13404,6 +13434,8 @@ export type SonarQubeRepoMappingValidateRowDto = components['schemas']['SonarQub
13404
13434
  export type SonarQubeRepoMappingsValidateResponseDto = components['schemas']['SonarQubeRepoMappingsValidateResponseDto'];
13405
13435
  export type PagerDutySourceDto = components['schemas']['PagerDutySourceDto'];
13406
13436
  export type PagerDutySourceConfigDto = components['schemas']['PagerDutySourceConfigDto'];
13437
+ export type IncidentIoSourceDto = components['schemas']['IncidentIoSourceDto'];
13438
+ export type IncidentIoSourceConfigDto = components['schemas']['IncidentIoSourceConfigDto'];
13407
13439
  export type SentrySourceDto = components['schemas']['SentrySourceDto'];
13408
13440
  export type SentrySourceConfigDto = components['schemas']['SentrySourceConfigDto'];
13409
13441
  export type JiraSourceDto = components['schemas']['JiraSourceDto'];
@@ -17080,7 +17112,7 @@ export interface operations {
17080
17112
  requestBody: {
17081
17113
  content: {
17082
17114
  "application/json": {
17083
- 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"])[];
17115
+ 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"])[];
17084
17116
  };
17085
17117
  };
17086
17118
  };
@@ -17134,7 +17166,7 @@ export interface operations {
17134
17166
  };
17135
17167
  requestBody: {
17136
17168
  content: {
17137
- "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"];
17169
+ "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"];
17138
17170
  };
17139
17171
  };
17140
17172
  responses: {