@thinkai/tai-api-contract 2.184.0 → 2.185.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/dist/generated/openapi.d.ts +173 -3
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +153 -5
- package/package.json +1 -1
- package/src/generated/openapi.ts +173 -3
|
@@ -2226,6 +2226,46 @@ export interface paths {
|
|
|
2226
2226
|
patch?: never;
|
|
2227
2227
|
trace?: never;
|
|
2228
2228
|
};
|
|
2229
|
+
"/workspaces/{workspaceId}/integrations/datadog": {
|
|
2230
|
+
parameters: {
|
|
2231
|
+
query?: never;
|
|
2232
|
+
header?: never;
|
|
2233
|
+
path?: never;
|
|
2234
|
+
cookie?: never;
|
|
2235
|
+
};
|
|
2236
|
+
/**
|
|
2237
|
+
* Datadog monitoring integration status
|
|
2238
|
+
* @description Returns whether Datadog is connected for the workspace (site + dual keys) and the last monitoring ingest sync outcome (incidents/deployments pulled into Quality and DORA metrics).
|
|
2239
|
+
*/
|
|
2240
|
+
get: operations["getWorkspaceDatadogIntegrationStatus"];
|
|
2241
|
+
put?: never;
|
|
2242
|
+
post?: never;
|
|
2243
|
+
delete?: never;
|
|
2244
|
+
options?: never;
|
|
2245
|
+
head?: never;
|
|
2246
|
+
patch?: never;
|
|
2247
|
+
trace?: never;
|
|
2248
|
+
};
|
|
2249
|
+
"/workspaces/{workspaceId}/integrations/datadog/sync": {
|
|
2250
|
+
parameters: {
|
|
2251
|
+
query?: never;
|
|
2252
|
+
header?: never;
|
|
2253
|
+
path?: never;
|
|
2254
|
+
cookie?: never;
|
|
2255
|
+
};
|
|
2256
|
+
get?: never;
|
|
2257
|
+
put?: never;
|
|
2258
|
+
/**
|
|
2259
|
+
* Trigger Datadog monitoring ingest now
|
|
2260
|
+
* @description Manually polls Datadog for incidents and deployment-tagged events, persists canonical monitoring events, and refreshes org-level Quality/DORA dashboard buckets. Requires editor role.
|
|
2261
|
+
*/
|
|
2262
|
+
post: operations["postWorkspaceDatadogIntegrationSync"];
|
|
2263
|
+
delete?: never;
|
|
2264
|
+
options?: never;
|
|
2265
|
+
head?: never;
|
|
2266
|
+
patch?: never;
|
|
2267
|
+
trace?: never;
|
|
2268
|
+
};
|
|
2229
2269
|
"/integrations/github/webhook": {
|
|
2230
2270
|
parameters: {
|
|
2231
2271
|
query?: never;
|
|
@@ -7906,6 +7946,50 @@ export interface components {
|
|
|
7906
7946
|
durationMs?: number;
|
|
7907
7947
|
error?: string;
|
|
7908
7948
|
};
|
|
7949
|
+
DatadogIntegrationStatusDto: {
|
|
7950
|
+
/** @description True when a type:datadog workspace source is configured. */
|
|
7951
|
+
connected: boolean;
|
|
7952
|
+
/**
|
|
7953
|
+
* @description Configured Datadog site when connected.
|
|
7954
|
+
* @enum {string}
|
|
7955
|
+
*/
|
|
7956
|
+
site?: "datadoghq.com" | "us3.datadoghq.com" | "us5.datadoghq.com" | "datadoghq.eu" | "ap1.datadoghq.com";
|
|
7957
|
+
/** @description Org display name when known from the last successful verify. */
|
|
7958
|
+
orgName?: string;
|
|
7959
|
+
/**
|
|
7960
|
+
* Format: date-time
|
|
7961
|
+
* @description Timestamp of the last monitoring ingest attempt (success or failure).
|
|
7962
|
+
*/
|
|
7963
|
+
lastSyncAt?: string | null;
|
|
7964
|
+
/**
|
|
7965
|
+
* @description Outcome of the most recent sync (`never` when not yet synced).
|
|
7966
|
+
* @enum {string}
|
|
7967
|
+
*/
|
|
7968
|
+
status: "ok" | "error" | "never";
|
|
7969
|
+
lastError?: string | null;
|
|
7970
|
+
/** @description Incidents fetched on the last successful sync (30d lookback). */
|
|
7971
|
+
issueCount?: number | null;
|
|
7972
|
+
/** @description Deployment-tagged events fetched on the last successful sync (30d lookback). */
|
|
7973
|
+
deploymentCount?: number | null;
|
|
7974
|
+
/** @description Canonical monitoring events upserted on the last successful sync. */
|
|
7975
|
+
eventCount?: number | null;
|
|
7976
|
+
};
|
|
7977
|
+
DatadogTriggerSyncResultDto: {
|
|
7978
|
+
/** @enum {string} */
|
|
7979
|
+
status: "ok" | "skipped" | "error";
|
|
7980
|
+
/** @description Stable machine-readable code (e.g. `datadog_not_connected`). */
|
|
7981
|
+
code?: string;
|
|
7982
|
+
/** @description Human-readable skip reason when status is skipped. */
|
|
7983
|
+
reason?: string;
|
|
7984
|
+
issueCount?: number;
|
|
7985
|
+
deploymentCount?: number;
|
|
7986
|
+
eventCount?: number;
|
|
7987
|
+
/** @description Weekly dashboard metric buckets updated from monitoring events. */
|
|
7988
|
+
bucketsWritten?: number;
|
|
7989
|
+
durationMs?: number;
|
|
7990
|
+
/** @description Error message when status is error. */
|
|
7991
|
+
error?: string;
|
|
7992
|
+
};
|
|
7909
7993
|
GithubActionsEnableResponseDto: {
|
|
7910
7994
|
/** @enum {string} */
|
|
7911
7995
|
outcome: "enabled" | "needs_github" | "permissions_missing" | "error";
|
|
@@ -9601,7 +9685,7 @@ export interface components {
|
|
|
9601
9685
|
* @description Type of workspace lifecycle event.
|
|
9602
9686
|
* @enum {string}
|
|
9603
9687
|
*/
|
|
9604
|
-
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "report.assessment_stored" | "report.assessment_link_sent" | "report.assessment_link_revoked" | "report.assessment_downloaded" | "report.assessment_hidden" | "report.assessment_restored" | "workspace.aggregate_use.changed" | "workspace.assessment_rollout.changed";
|
|
9688
|
+
ActivityLogEventTypeDto: "repo.added" | "repo.removed" | "repo.readded" | "integration.github.added" | "integration.github.updated" | "integration.github.removed" | "integration.github.permissions_changed" | "integration.github.suspended" | "integration.github.unsuspended" | "integration.github.repo_added" | "integration.github.repo_removed" | "fix.requested" | "fix.generating" | "fix.pr_created" | "fix.merged" | "fix.failed" | "readiness.scan_started" | "readiness.scan_completed" | "readiness.scan_failed" | "readiness.scan_partial" | "code_insights.design_run_started" | "integrations.agent_execution.provider_changed" | "integrations.repo_eligibility.overrides_changed" | "integrations.repo_eligibility.languages_refresh_requested" | "integrations.cursor.platform_key_enabled" | "integrations.cursor.platform_key_disabled" | "member.invited" | "member.invite_accepted" | "member.invite_rejected" | "member.role_changed" | "member.removed" | "hris.personio.sync_started" | "hris.personio.sync_completed" | "hris.personio.sync_failed" | "hris.zenhr.sync_started" | "hris.zenhr.sync_completed" | "hris.zenhr.sync_failed" | "hris.zelt.sync_started" | "hris.zelt.sync_completed" | "hris.zelt.sync_failed" | "hris.hibob.sync_started" | "hris.hibob.sync_completed" | "hris.hibob.sync_failed" | "hris.sync_started" | "hris.sync_completed" | "hris.sync_failed" | "repo.sync_skipped" | "integrations.cursor.execution_key.added" | "integrations.cursor.execution_key.updated" | "integrations.cursor.execution_key.removed" | "integrations.cursor.execution_key.check_failed" | "integrations.cursor.admin_key.added" | "integrations.cursor.admin_key.updated" | "integrations.cursor.admin_key.removed" | "integrations.claude.execution_key.added" | "integrations.claude.execution_key.updated" | "integrations.claude.execution_key.removed" | "integrations.claude.execution_key.check_failed" | "integrations.claude.admin_key.added" | "integrations.claude.admin_key.updated" | "integrations.claude.admin_key.removed" | "integrations.claude.analytics_key.added" | "integrations.claude.analytics_key.updated" | "integrations.claude.analytics_key.removed" | "integrations.code_intelligence.settings_changed" | "integrations.code_intelligence.execution_key.added" | "integrations.code_intelligence.execution_key.updated" | "integrations.code_intelligence.execution_key.removed" | "integrations.code_intelligence.execution_key.check_failed" | "readiness.scan_precheck_failed" | "productivity.ingest.completed" | "productivity.ingest.failed" | "productivity.ingest.skipped" | "productivity.ingest.repo_skipped" | "productivity.ingest.coverage_gap_detected" | "integrations.newrelic.added" | "integrations.newrelic.removed" | "integrations.newrelic.sync_completed" | "integrations.newrelic.sync_failed" | "integrations.prometheus.added" | "integrations.prometheus.removed" | "integrations.prometheus.sync_completed" | "integrations.prometheus.sync_failed" | "integrations.grafana.added" | "integrations.grafana.removed" | "integrations.grafana.sync_completed" | "integrations.grafana.sync_failed" | "integrations.datadog.added" | "integrations.datadog.removed" | "integrations.datadog.sync_completed" | "integrations.datadog.sync_failed" | "integrations.zelt.added" | "integrations.zelt.removed" | "report.exported" | "report.assessment_stored" | "report.assessment_link_sent" | "report.assessment_link_revoked" | "report.assessment_downloaded" | "report.assessment_hidden" | "report.assessment_restored" | "workspace.aggregate_use.changed" | "workspace.assessment_rollout.changed";
|
|
9605
9689
|
/** @description Current legal-approved opt-in notice, or `unset` while opt-in is unavailable. */
|
|
9606
9690
|
AggregateUseNoticeStatusDto: {
|
|
9607
9691
|
/** @enum {string} */
|
|
@@ -9764,7 +9848,7 @@ export interface components {
|
|
|
9764
9848
|
};
|
|
9765
9849
|
AssessmentDictionaryDto: {
|
|
9766
9850
|
/** @enum {string} */
|
|
9767
|
-
version: "2026-10-
|
|
9851
|
+
version: "2026-10-25.1";
|
|
9768
9852
|
/** @enum {integer} */
|
|
9769
9853
|
periodDays: 90;
|
|
9770
9854
|
/** @enum {integer} */
|
|
@@ -9800,7 +9884,7 @@ export interface components {
|
|
|
9800
9884
|
aiProviders: ("cursor" | "claude" | "copilot")[];
|
|
9801
9885
|
optionalProviders: {
|
|
9802
9886
|
roadmap: "jira"[];
|
|
9803
|
-
incident: ("pagerduty" | "opsgenie" | "goalert" | "newrelic" | "prometheus" | "grafana")[];
|
|
9887
|
+
incident: ("pagerduty" | "opsgenie" | "goalert" | "newrelic" | "prometheus" | "grafana" | "datadog")[];
|
|
9804
9888
|
};
|
|
9805
9889
|
selfManagedGit: {
|
|
9806
9890
|
/** @enum {string} */
|
|
@@ -12752,6 +12836,8 @@ export type PrometheusIntegrationStatusDto = components['schemas']['PrometheusIn
|
|
|
12752
12836
|
export type PrometheusTriggerSyncResultDto = components['schemas']['PrometheusTriggerSyncResultDto'];
|
|
12753
12837
|
export type GrafanaIntegrationStatusDto = components['schemas']['GrafanaIntegrationStatusDto'];
|
|
12754
12838
|
export type GrafanaTriggerSyncResultDto = components['schemas']['GrafanaTriggerSyncResultDto'];
|
|
12839
|
+
export type DatadogIntegrationStatusDto = components['schemas']['DatadogIntegrationStatusDto'];
|
|
12840
|
+
export type DatadogTriggerSyncResultDto = components['schemas']['DatadogTriggerSyncResultDto'];
|
|
12755
12841
|
export type GithubActionsEnableResponseDto = components['schemas']['GithubActionsEnableResponseDto'];
|
|
12756
12842
|
export type GithubInstallationStatusDto = components['schemas']['GithubInstallationStatusDto'];
|
|
12757
12843
|
export type GithubInstallUrlRequestDto = components['schemas']['GithubInstallUrlRequestDto'];
|
|
@@ -19406,6 +19492,90 @@ export interface operations {
|
|
|
19406
19492
|
};
|
|
19407
19493
|
};
|
|
19408
19494
|
};
|
|
19495
|
+
getWorkspaceDatadogIntegrationStatus: {
|
|
19496
|
+
parameters: {
|
|
19497
|
+
query?: never;
|
|
19498
|
+
header?: never;
|
|
19499
|
+
path: {
|
|
19500
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19501
|
+
};
|
|
19502
|
+
cookie?: never;
|
|
19503
|
+
};
|
|
19504
|
+
requestBody?: never;
|
|
19505
|
+
responses: {
|
|
19506
|
+
/** @description Datadog integration status */
|
|
19507
|
+
200: {
|
|
19508
|
+
headers: {
|
|
19509
|
+
[name: string]: unknown;
|
|
19510
|
+
};
|
|
19511
|
+
content: {
|
|
19512
|
+
"application/json": components["schemas"]["DatadogIntegrationStatusDto"];
|
|
19513
|
+
};
|
|
19514
|
+
};
|
|
19515
|
+
401: components["responses"]["Unauthorized"];
|
|
19516
|
+
403: components["responses"]["Forbidden"];
|
|
19517
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
19518
|
+
404: {
|
|
19519
|
+
headers: {
|
|
19520
|
+
[name: string]: unknown;
|
|
19521
|
+
};
|
|
19522
|
+
content: {
|
|
19523
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19524
|
+
};
|
|
19525
|
+
};
|
|
19526
|
+
};
|
|
19527
|
+
};
|
|
19528
|
+
postWorkspaceDatadogIntegrationSync: {
|
|
19529
|
+
parameters: {
|
|
19530
|
+
query?: never;
|
|
19531
|
+
header?: never;
|
|
19532
|
+
path: {
|
|
19533
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
19534
|
+
};
|
|
19535
|
+
cookie?: never;
|
|
19536
|
+
};
|
|
19537
|
+
requestBody?: never;
|
|
19538
|
+
responses: {
|
|
19539
|
+
/** @description Sync completed */
|
|
19540
|
+
200: {
|
|
19541
|
+
headers: {
|
|
19542
|
+
[name: string]: unknown;
|
|
19543
|
+
};
|
|
19544
|
+
content: {
|
|
19545
|
+
"application/json": components["schemas"]["DatadogTriggerSyncResultDto"];
|
|
19546
|
+
};
|
|
19547
|
+
};
|
|
19548
|
+
401: components["responses"]["Unauthorized"];
|
|
19549
|
+
403: components["responses"]["Forbidden"];
|
|
19550
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
19551
|
+
404: {
|
|
19552
|
+
headers: {
|
|
19553
|
+
[name: string]: unknown;
|
|
19554
|
+
};
|
|
19555
|
+
content: {
|
|
19556
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
19557
|
+
};
|
|
19558
|
+
};
|
|
19559
|
+
/** @description Datadog is not connected on this workspace */
|
|
19560
|
+
422: {
|
|
19561
|
+
headers: {
|
|
19562
|
+
[name: string]: unknown;
|
|
19563
|
+
};
|
|
19564
|
+
content: {
|
|
19565
|
+
"application/json": components["schemas"]["DatadogTriggerSyncResultDto"];
|
|
19566
|
+
};
|
|
19567
|
+
};
|
|
19568
|
+
/** @description Sync failed (Datadog API or persistence error) */
|
|
19569
|
+
503: {
|
|
19570
|
+
headers: {
|
|
19571
|
+
[name: string]: unknown;
|
|
19572
|
+
};
|
|
19573
|
+
content: {
|
|
19574
|
+
"application/json": components["schemas"]["DatadogTriggerSyncResultDto"];
|
|
19575
|
+
};
|
|
19576
|
+
};
|
|
19577
|
+
};
|
|
19578
|
+
};
|
|
19409
19579
|
postGithubWebhook: {
|
|
19410
19580
|
parameters: {
|
|
19411
19581
|
query?: never;
|