@thinkai/tai-api-contract 2.58.1-pr.901.538cc170 → 2.59.0-pr.902.35f0838e
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 +215 -236
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +211 -269
- package/package.json +1 -1
- package/src/generated/openapi.ts +215 -236
|
@@ -1038,7 +1038,7 @@ export interface paths {
|
|
|
1038
1038
|
put?: never;
|
|
1039
1039
|
/**
|
|
1040
1040
|
* Create GitHub App installation URL
|
|
1041
|
-
* @description Creates a GitHub App installation URL scoped to the workspace and caller.
|
|
1041
|
+
* @description Creates a GitHub App installation URL scoped to the workspace and caller. Body is optional; when omitted, defaults to `/onboarding/integrations` return path. Optional `pickerSession` (from user OAuth org picker) recovers `returnPath` from the server-side picker snapshot when the multi-hop authorize→install flow should return to the page where OAuth started.
|
|
1042
1042
|
*/
|
|
1043
1043
|
post: operations["postGithubInstallUrl"];
|
|
1044
1044
|
delete?: never;
|
|
@@ -1047,46 +1047,6 @@ export interface paths {
|
|
|
1047
1047
|
patch?: never;
|
|
1048
1048
|
trace?: never;
|
|
1049
1049
|
};
|
|
1050
|
-
"/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/enable": {
|
|
1051
|
-
parameters: {
|
|
1052
|
-
query?: never;
|
|
1053
|
-
header?: never;
|
|
1054
|
-
path?: never;
|
|
1055
|
-
cookie?: never;
|
|
1056
|
-
};
|
|
1057
|
-
get?: never;
|
|
1058
|
-
put?: never;
|
|
1059
|
-
/**
|
|
1060
|
-
* Enable automated fixes for a GitHub installation
|
|
1061
|
-
* @description Workspace-level enable for automated fixes on an Insights (read) installation. If an Automations (write) installation is already linked, flips `automatedFixesEnabled` without reinstalling. Otherwise returns `outcome: needs_install` so the client can call install-url with intent=enable_fixes.
|
|
1062
|
-
*/
|
|
1063
|
-
post: operations["postGithubAutomatedFixesEnable"];
|
|
1064
|
-
delete?: never;
|
|
1065
|
-
options?: never;
|
|
1066
|
-
head?: never;
|
|
1067
|
-
patch?: never;
|
|
1068
|
-
trace?: never;
|
|
1069
|
-
};
|
|
1070
|
-
"/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes": {
|
|
1071
|
-
parameters: {
|
|
1072
|
-
query?: never;
|
|
1073
|
-
header?: never;
|
|
1074
|
-
path?: never;
|
|
1075
|
-
cookie?: never;
|
|
1076
|
-
};
|
|
1077
|
-
get?: never;
|
|
1078
|
-
put?: never;
|
|
1079
|
-
post?: never;
|
|
1080
|
-
/**
|
|
1081
|
-
* Disable automated fixes for a GitHub installation
|
|
1082
|
-
* @description Workspace-level disable. Clears `automatedFixesEnabled` but keeps the linked Automations write installation id so re-enable does not require reinstall. Does not uninstall the Automations app from GitHub.
|
|
1083
|
-
*/
|
|
1084
|
-
delete: operations["deleteGithubAutomatedFixes"];
|
|
1085
|
-
options?: never;
|
|
1086
|
-
head?: never;
|
|
1087
|
-
patch?: never;
|
|
1088
|
-
trace?: never;
|
|
1089
|
-
};
|
|
1090
1050
|
"/workspaces/{workspaceId}/integrations/github/user-authorize-url": {
|
|
1091
1051
|
parameters: {
|
|
1092
1052
|
query?: never;
|
|
@@ -1396,6 +1356,46 @@ export interface paths {
|
|
|
1396
1356
|
patch?: never;
|
|
1397
1357
|
trace?: never;
|
|
1398
1358
|
};
|
|
1359
|
+
"/workspaces/{workspaceId}/integrations/newrelic": {
|
|
1360
|
+
parameters: {
|
|
1361
|
+
query?: never;
|
|
1362
|
+
header?: never;
|
|
1363
|
+
path?: never;
|
|
1364
|
+
cookie?: never;
|
|
1365
|
+
};
|
|
1366
|
+
/**
|
|
1367
|
+
* New Relic monitoring integration status
|
|
1368
|
+
* @description Returns whether New Relic is connected for the workspace and the last monitoring ingest sync outcome (issues/deployments pulled into Quality and DORA metrics).
|
|
1369
|
+
*/
|
|
1370
|
+
get: operations["getWorkspaceNewRelicIntegrationStatus"];
|
|
1371
|
+
put?: never;
|
|
1372
|
+
post?: never;
|
|
1373
|
+
delete?: never;
|
|
1374
|
+
options?: never;
|
|
1375
|
+
head?: never;
|
|
1376
|
+
patch?: never;
|
|
1377
|
+
trace?: never;
|
|
1378
|
+
};
|
|
1379
|
+
"/workspaces/{workspaceId}/integrations/newrelic/sync": {
|
|
1380
|
+
parameters: {
|
|
1381
|
+
query?: never;
|
|
1382
|
+
header?: never;
|
|
1383
|
+
path?: never;
|
|
1384
|
+
cookie?: never;
|
|
1385
|
+
};
|
|
1386
|
+
get?: never;
|
|
1387
|
+
put?: never;
|
|
1388
|
+
/**
|
|
1389
|
+
* Trigger New Relic monitoring ingest now
|
|
1390
|
+
* @description Manually polls New Relic for alert issues and deployment markers, persists canonical monitoring events, and refreshes org-level Quality/DORA dashboard buckets. Requires editor role.
|
|
1391
|
+
*/
|
|
1392
|
+
post: operations["postWorkspaceNewRelicIntegrationSync"];
|
|
1393
|
+
delete?: never;
|
|
1394
|
+
options?: never;
|
|
1395
|
+
head?: never;
|
|
1396
|
+
patch?: never;
|
|
1397
|
+
trace?: never;
|
|
1398
|
+
};
|
|
1399
1399
|
"/integrations/github/webhook": {
|
|
1400
1400
|
parameters: {
|
|
1401
1401
|
query?: never;
|
|
@@ -2869,6 +2869,43 @@ export interface components {
|
|
|
2869
2869
|
/** @description Masked preview of the stored insights key (prefix + last four characters). Never includes the full secret. */
|
|
2870
2870
|
insightsTokenHint?: string;
|
|
2871
2871
|
};
|
|
2872
|
+
/** @description New Relic monitoring source for `PUT /workspaces/{workspaceId}/sources` and `POST /workspaces/{workspaceId}/sources/test`. Requires a User API key and numeric account ID. */
|
|
2873
|
+
NewRelicSourceDto: {
|
|
2874
|
+
/** @enum {string} */
|
|
2875
|
+
type: "newrelic";
|
|
2876
|
+
/** @description Numeric New Relic account ID. */
|
|
2877
|
+
accountId: string;
|
|
2878
|
+
/** @description New Relic User API key (write-only on PUT). */
|
|
2879
|
+
token: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* @description NerdGraph data region (`api.newrelic.com` or `api.eu.newrelic.com`).
|
|
2882
|
+
* @default us
|
|
2883
|
+
* @enum {string}
|
|
2884
|
+
*/
|
|
2885
|
+
region: "us" | "eu";
|
|
2886
|
+
/** @description Optional display name returned from a successful connection test. */
|
|
2887
|
+
accountName?: string;
|
|
2888
|
+
/** @description Optional New Relic user name returned from a successful connection test. */
|
|
2889
|
+
userName?: string;
|
|
2890
|
+
};
|
|
2891
|
+
/** @description Redacted New Relic source returned by `GET /workspaces/{workspaceId}/config`. Raw token is never returned. */
|
|
2892
|
+
NewRelicSourceConfigDto: {
|
|
2893
|
+
/** @enum {string} */
|
|
2894
|
+
type: "newrelic";
|
|
2895
|
+
/** @description Whether a User API key is stored for this workspace. */
|
|
2896
|
+
hasToken: boolean;
|
|
2897
|
+
/** @description Configured New Relic account ID. */
|
|
2898
|
+
accountId: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* @description Configured NerdGraph data region.
|
|
2901
|
+
* @enum {string}
|
|
2902
|
+
*/
|
|
2903
|
+
region: "us" | "eu";
|
|
2904
|
+
/** @description Account display name when known from the last successful verify. */
|
|
2905
|
+
accountName?: string;
|
|
2906
|
+
/** @description New Relic user name when known from the last successful verify. */
|
|
2907
|
+
userName?: string;
|
|
2908
|
+
};
|
|
2872
2909
|
/**
|
|
2873
2910
|
* @description The agent execution account used for Agentic Foundation runs (readiness scanner + fix queue). Exactly one is active per workspace.
|
|
2874
2911
|
* - `thinkai_platform_cursor`: ThinkAI platform Cursor key (Cursor Agent CLI) — opt-in, never default.
|
|
@@ -2878,7 +2915,7 @@ export interface components {
|
|
|
2878
2915
|
*/
|
|
2879
2916
|
AgentExecutionProviderDto: "thinkai_platform_cursor" | "cursor_user_api_key" | "claude_api_key";
|
|
2880
2917
|
WorkspaceConfigDto: {
|
|
2881
|
-
sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
2918
|
+
sources: (components["schemas"]["CursorSourceConfigDto"] | components["schemas"]["ClaudeSourceConfigDto"] | components["schemas"]["NewRelicSourceConfigDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
2882
2919
|
orgChart?: components["schemas"]["ScoringOrgChartDto"] | null;
|
|
2883
2920
|
/** @enum {string|null} */
|
|
2884
2921
|
region?: "us" | "eu" | "me" | null;
|
|
@@ -2897,6 +2934,12 @@ export interface components {
|
|
|
2897
2934
|
executionKeyValid?: boolean | null;
|
|
2898
2935
|
/** @description Error detail when `executionKeyValid` is false. */
|
|
2899
2936
|
executionKeyError?: string | null;
|
|
2937
|
+
/** @description Present for New Relic verify success — authenticated New Relic user name. */
|
|
2938
|
+
userName?: string;
|
|
2939
|
+
/** @description Present for New Relic verify success — resolved account display name. */
|
|
2940
|
+
accountName?: string;
|
|
2941
|
+
/** @description Present for New Relic verify success — resolved account ID. */
|
|
2942
|
+
accountId?: string;
|
|
2900
2943
|
};
|
|
2901
2944
|
CursorKeyUsageDto: {
|
|
2902
2945
|
/** @description Readiness runs this calendar month that used the ThinkAI platform Cursor key. */
|
|
@@ -4270,22 +4313,6 @@ export interface components {
|
|
|
4270
4313
|
*/
|
|
4271
4314
|
granted?: "read" | "write" | "admin" | null;
|
|
4272
4315
|
};
|
|
4273
|
-
GithubWritePermissionsRequiredErrorDto: {
|
|
4274
|
-
/** @enum {string} */
|
|
4275
|
-
error: "github_write_permissions_required";
|
|
4276
|
-
missingPermissions: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4277
|
-
/** @description GitHub installation settings URL to approve write permissions. */
|
|
4278
|
-
manageUrl?: string | null;
|
|
4279
|
-
/** @description Human-readable summary of the write permission upgrade. */
|
|
4280
|
-
writeUpgradeMessage?: string | null;
|
|
4281
|
-
};
|
|
4282
|
-
GithubPermissionsCheckFailedErrorDto: {
|
|
4283
|
-
/**
|
|
4284
|
-
* @description GitHub installation permissions could not be verified (transient upstream failure).
|
|
4285
|
-
* @enum {string}
|
|
4286
|
-
*/
|
|
4287
|
-
error: "github_permissions_check_failed";
|
|
4288
|
-
};
|
|
4289
4316
|
GithubInstallationSummaryDto: {
|
|
4290
4317
|
installationId: string;
|
|
4291
4318
|
account: components["schemas"]["GithubAccountDto"];
|
|
@@ -4295,35 +4322,11 @@ export interface components {
|
|
|
4295
4322
|
manageUrl?: string | null;
|
|
4296
4323
|
/** Format: date-time */
|
|
4297
4324
|
lastSyncedAt?: string | null;
|
|
4298
|
-
/** @description True when this installation
|
|
4325
|
+
/** @description True when this installation's granted permissions are below what the ThinkAI GitHub App currently requests. */
|
|
4299
4326
|
permissionsUpgradeRequired: boolean;
|
|
4300
|
-
/** @description True when installation grants read permissions for repository analysis (contents, metadata, pull requests, and members for org installs). */
|
|
4301
|
-
corePermissionsOk: boolean;
|
|
4302
|
-
/** @description True when automated fixes are enabled and the linked Automations (write) installation grants write permissions required for fix PRs. */
|
|
4303
|
-
writePermissionsOk: boolean;
|
|
4304
|
-
/** @description Alias for `!writePermissionsOk`. */
|
|
4305
|
-
writePermissionsUpgradeRequired: boolean;
|
|
4306
|
-
/** @description Core read permissions still needed for connect and analysis. */
|
|
4307
4327
|
missingPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4308
|
-
/** @description
|
|
4309
|
-
missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4310
|
-
/** @description Human-readable summary for UI when core permissions are missing. */
|
|
4328
|
+
/** @description Human-readable summary for UI when permissionsUpgradeRequired is true. */
|
|
4311
4329
|
upgradeMessage?: string | null;
|
|
4312
|
-
/** @description Human-readable summary for UI when write permissions are missing. */
|
|
4313
|
-
writeUpgradeMessage?: string | null;
|
|
4314
|
-
/** @description True when this workspace has enabled automated fixes for this Insights (read) installation and linked a ThinkAI Platform Automations (write) installation. */
|
|
4315
|
-
automatedFixesEnabled: boolean;
|
|
4316
|
-
/** @description True when an Automations (write) GitHub App installation is linked. */
|
|
4317
|
-
writeAppInstalled: boolean;
|
|
4318
|
-
/** @description GitHub installation id for the Automations (write) app, when linked. */
|
|
4319
|
-
writeInstallationId?: string | null;
|
|
4320
|
-
/**
|
|
4321
|
-
* Format: uri
|
|
4322
|
-
* @description GitHub settings URL for the Automations (write) installation.
|
|
4323
|
-
*/
|
|
4324
|
-
writeManageUrl?: string | null;
|
|
4325
|
-
/** @description True when the Automations app is configured and automated fixes are not yet enabled for this installation (UI may show Enable automated fixes). */
|
|
4326
|
-
canEnableAutomatedFixes: boolean;
|
|
4327
4330
|
};
|
|
4328
4331
|
GithubPendingApprovalDto: {
|
|
4329
4332
|
/**
|
|
@@ -4382,6 +4385,43 @@ export interface components {
|
|
|
4382
4385
|
/** @description Last enable or status error message when applicable. */
|
|
4383
4386
|
error?: string | null;
|
|
4384
4387
|
};
|
|
4388
|
+
NewRelicIntegrationStatusDto: {
|
|
4389
|
+
/** @description True when a type:newrelic workspace source is configured. */
|
|
4390
|
+
connected: boolean;
|
|
4391
|
+
/**
|
|
4392
|
+
* Format: date-time
|
|
4393
|
+
* @description Timestamp of the last monitoring ingest attempt (success or failure).
|
|
4394
|
+
*/
|
|
4395
|
+
lastSyncAt?: string | null;
|
|
4396
|
+
/**
|
|
4397
|
+
* @description Outcome of the most recent sync (`never` when not yet synced).
|
|
4398
|
+
* @enum {string}
|
|
4399
|
+
*/
|
|
4400
|
+
status: "ok" | "error" | "never";
|
|
4401
|
+
lastError?: string | null;
|
|
4402
|
+
/** @description Issues fetched on the last successful sync. */
|
|
4403
|
+
issueCount?: number | null;
|
|
4404
|
+
/** @description Deployment markers fetched on the last successful sync. */
|
|
4405
|
+
deploymentCount?: number | null;
|
|
4406
|
+
/** @description Canonical monitoring events upserted on the last successful sync. */
|
|
4407
|
+
eventCount?: number | null;
|
|
4408
|
+
};
|
|
4409
|
+
NewRelicTriggerSyncResultDto: {
|
|
4410
|
+
/** @enum {string} */
|
|
4411
|
+
status: "ok" | "skipped" | "error";
|
|
4412
|
+
/** @description Stable machine-readable code (e.g. `newrelic_not_connected`). */
|
|
4413
|
+
code?: string;
|
|
4414
|
+
/** @description Human-readable skip reason when status is skipped. */
|
|
4415
|
+
reason?: string;
|
|
4416
|
+
issueCount?: number;
|
|
4417
|
+
deploymentCount?: number;
|
|
4418
|
+
eventCount?: number;
|
|
4419
|
+
/** @description Weekly dashboard metric buckets updated from monitoring events. */
|
|
4420
|
+
bucketsWritten?: number;
|
|
4421
|
+
durationMs?: number;
|
|
4422
|
+
/** @description Error message when status is error. */
|
|
4423
|
+
error?: string;
|
|
4424
|
+
};
|
|
4385
4425
|
GithubActionsEnableResponseDto: {
|
|
4386
4426
|
/** @enum {string} */
|
|
4387
4427
|
outcome: "enabled" | "needs_github" | "permissions_missing" | "error";
|
|
@@ -4391,18 +4431,8 @@ export interface components {
|
|
|
4391
4431
|
GithubInstallationStatusDto: {
|
|
4392
4432
|
installed: boolean;
|
|
4393
4433
|
installations: components["schemas"]["GithubInstallationSummaryDto"][];
|
|
4394
|
-
/** @description True if any connected installation
|
|
4434
|
+
/** @description True if any connected installation is under-permissioned. */
|
|
4395
4435
|
permissionsUpgradeRequired: boolean;
|
|
4396
|
-
/** @description True when every connected installation grants core read permissions. */
|
|
4397
|
-
corePermissionsOk: boolean;
|
|
4398
|
-
/** @description True when every connected installation grants write permissions for automated fixes. */
|
|
4399
|
-
writePermissionsOk: boolean;
|
|
4400
|
-
/** @description True when any connected installation lacks write permissions for automated fixes. */
|
|
4401
|
-
writePermissionsUpgradeRequired: boolean;
|
|
4402
|
-
/** @description Aggregated write permissions missing on installations that lack write access. */
|
|
4403
|
-
missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4404
|
-
/** @description Human-readable summary when write permissions are missing. */
|
|
4405
|
-
writeUpgradeMessage?: string | null;
|
|
4406
4436
|
/** @description Present when an org admin must approve the GitHub App install request. */
|
|
4407
4437
|
pendingApproval?: components["schemas"]["GithubPendingApprovalDto"] | null;
|
|
4408
4438
|
/** @description Present when GitHub connect was started but not completed (install OAuth state or account-picker session still active). Omitted when pendingApproval is set. */
|
|
@@ -4442,28 +4472,12 @@ export interface components {
|
|
|
4442
4472
|
* @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
|
|
4443
4473
|
*/
|
|
4444
4474
|
spaOrigin?: string;
|
|
4445
|
-
/**
|
|
4446
|
-
* @description connect installs ThinkAI Platform Insights (read). enable_fixes installs ThinkAI Platform Automations (write) for the Insights installation identified by installationId.
|
|
4447
|
-
* @enum {string}
|
|
4448
|
-
*/
|
|
4449
|
-
intent?: "connect" | "enable_fixes";
|
|
4450
|
-
/** @description Insights (read) installation id required when intent is enable_fixes. */
|
|
4451
|
-
installationId?: string;
|
|
4452
4475
|
};
|
|
4453
4476
|
GithubInstallUrlResponseDto: {
|
|
4454
4477
|
/** Format: uri */
|
|
4455
4478
|
url: string;
|
|
4456
4479
|
state: string;
|
|
4457
4480
|
};
|
|
4458
|
-
GithubAutomatedFixesEnableResponseDto: {
|
|
4459
|
-
/**
|
|
4460
|
-
* @description enabled — write app already linked and flag flipped; needs_install — client should call install-url with intent=enable_fixes.
|
|
4461
|
-
* @enum {string}
|
|
4462
|
-
*/
|
|
4463
|
-
outcome: "enabled" | "needs_install";
|
|
4464
|
-
/** @description Present when outcome is enabled. */
|
|
4465
|
-
status?: components["schemas"]["GithubInstallationStatusDto"];
|
|
4466
|
-
};
|
|
4467
4481
|
GithubUserAuthorizeUrlRequestDto: {
|
|
4468
4482
|
returnPath?: string;
|
|
4469
4483
|
/**
|
|
@@ -5825,6 +5839,8 @@ export type CursorSourceConfigDto = components['schemas']['CursorSourceConfigDto
|
|
|
5825
5839
|
export type ClaudeSourceDto = components['schemas']['ClaudeSourceDto'];
|
|
5826
5840
|
export type ClaudeSourcePatchDto = components['schemas']['ClaudeSourcePatchDto'];
|
|
5827
5841
|
export type ClaudeSourceConfigDto = components['schemas']['ClaudeSourceConfigDto'];
|
|
5842
|
+
export type NewRelicSourceDto = components['schemas']['NewRelicSourceDto'];
|
|
5843
|
+
export type NewRelicSourceConfigDto = components['schemas']['NewRelicSourceConfigDto'];
|
|
5828
5844
|
export type AgentExecutionProviderDto = components['schemas']['AgentExecutionProviderDto'];
|
|
5829
5845
|
export type WorkspaceConfigDto = components['schemas']['WorkspaceConfigDto'];
|
|
5830
5846
|
export type TestConnectionResponseDto = components['schemas']['TestConnectionResponseDto'];
|
|
@@ -5940,18 +5956,17 @@ export type RepoEligibilityOverridesDto = components['schemas']['RepoEligibility
|
|
|
5940
5956
|
export type WorkspaceRepoEligibilityDto = components['schemas']['WorkspaceRepoEligibilityDto'];
|
|
5941
5957
|
export type RepoEligibilityLimitsDto = components['schemas']['RepoEligibilityLimitsDto'];
|
|
5942
5958
|
export type GithubMissingPermissionDto = components['schemas']['GithubMissingPermissionDto'];
|
|
5943
|
-
export type GithubWritePermissionsRequiredErrorDto = components['schemas']['GithubWritePermissionsRequiredErrorDto'];
|
|
5944
|
-
export type GithubPermissionsCheckFailedErrorDto = components['schemas']['GithubPermissionsCheckFailedErrorDto'];
|
|
5945
5959
|
export type GithubInstallationSummaryDto = components['schemas']['GithubInstallationSummaryDto'];
|
|
5946
5960
|
export type GithubPendingApprovalDto = components['schemas']['GithubPendingApprovalDto'];
|
|
5947
5961
|
export type GithubSetupInProgressDto = components['schemas']['GithubSetupInProgressDto'];
|
|
5948
5962
|
export type GithubActionsWorkflowPreviewDto = components['schemas']['GithubActionsWorkflowPreviewDto'];
|
|
5949
5963
|
export type GithubActionsIntegrationStatusDto = components['schemas']['GithubActionsIntegrationStatusDto'];
|
|
5964
|
+
export type NewRelicIntegrationStatusDto = components['schemas']['NewRelicIntegrationStatusDto'];
|
|
5965
|
+
export type NewRelicTriggerSyncResultDto = components['schemas']['NewRelicTriggerSyncResultDto'];
|
|
5950
5966
|
export type GithubActionsEnableResponseDto = components['schemas']['GithubActionsEnableResponseDto'];
|
|
5951
5967
|
export type GithubInstallationStatusDto = components['schemas']['GithubInstallationStatusDto'];
|
|
5952
5968
|
export type GithubInstallUrlRequestDto = components['schemas']['GithubInstallUrlRequestDto'];
|
|
5953
5969
|
export type GithubInstallUrlResponseDto = components['schemas']['GithubInstallUrlResponseDto'];
|
|
5954
|
-
export type GithubAutomatedFixesEnableResponseDto = components['schemas']['GithubAutomatedFixesEnableResponseDto'];
|
|
5955
5970
|
export type GithubUserAuthorizeUrlRequestDto = components['schemas']['GithubUserAuthorizeUrlRequestDto'];
|
|
5956
5971
|
export type GithubUserAuthorizeUrlResponseDto = components['schemas']['GithubUserAuthorizeUrlResponseDto'];
|
|
5957
5972
|
export type GithubConnectableAccountDto = components['schemas']['GithubConnectableAccountDto'];
|
|
@@ -7471,7 +7486,7 @@ export interface operations {
|
|
|
7471
7486
|
requestBody: {
|
|
7472
7487
|
content: {
|
|
7473
7488
|
"application/json": {
|
|
7474
|
-
sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
7489
|
+
sources: (components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["TenantSourceEntryDto"])[];
|
|
7475
7490
|
};
|
|
7476
7491
|
};
|
|
7477
7492
|
};
|
|
@@ -7525,7 +7540,7 @@ export interface operations {
|
|
|
7525
7540
|
};
|
|
7526
7541
|
requestBody: {
|
|
7527
7542
|
content: {
|
|
7528
|
-
"application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
|
|
7543
|
+
"application/json": components["schemas"]["CursorSourcePatchDto"] | components["schemas"]["CursorSourceDto"] | components["schemas"]["ClaudeSourcePatchDto"] | components["schemas"]["ClaudeSourceDto"] | components["schemas"]["NewRelicSourceDto"] | components["schemas"]["TenantSourceEntryDto"];
|
|
7529
7544
|
};
|
|
7530
7545
|
};
|
|
7531
7546
|
responses: {
|
|
@@ -9050,90 +9065,6 @@ export interface operations {
|
|
|
9050
9065
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9051
9066
|
};
|
|
9052
9067
|
};
|
|
9053
|
-
/** @description Requested GitHub App is not configured */
|
|
9054
|
-
503: {
|
|
9055
|
-
headers: {
|
|
9056
|
-
[name: string]: unknown;
|
|
9057
|
-
};
|
|
9058
|
-
content: {
|
|
9059
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9060
|
-
};
|
|
9061
|
-
};
|
|
9062
|
-
};
|
|
9063
|
-
};
|
|
9064
|
-
postGithubAutomatedFixesEnable: {
|
|
9065
|
-
parameters: {
|
|
9066
|
-
query?: never;
|
|
9067
|
-
header?: never;
|
|
9068
|
-
path: {
|
|
9069
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9070
|
-
installationId: string;
|
|
9071
|
-
};
|
|
9072
|
-
cookie?: never;
|
|
9073
|
-
};
|
|
9074
|
-
requestBody?: never;
|
|
9075
|
-
responses: {
|
|
9076
|
-
/** @description Enable result */
|
|
9077
|
-
200: {
|
|
9078
|
-
headers: {
|
|
9079
|
-
[name: string]: unknown;
|
|
9080
|
-
};
|
|
9081
|
-
content: {
|
|
9082
|
-
"application/json": components["schemas"]["GithubAutomatedFixesEnableResponseDto"];
|
|
9083
|
-
};
|
|
9084
|
-
};
|
|
9085
|
-
401: components["responses"]["Unauthorized"];
|
|
9086
|
-
403: components["responses"]["Forbidden"];
|
|
9087
|
-
/** @description Workspace or installation not found */
|
|
9088
|
-
404: {
|
|
9089
|
-
headers: {
|
|
9090
|
-
[name: string]: unknown;
|
|
9091
|
-
};
|
|
9092
|
-
content: {
|
|
9093
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9094
|
-
};
|
|
9095
|
-
};
|
|
9096
|
-
/** @description Automations GitHub App not configured */
|
|
9097
|
-
503: {
|
|
9098
|
-
headers: {
|
|
9099
|
-
[name: string]: unknown;
|
|
9100
|
-
};
|
|
9101
|
-
content: {
|
|
9102
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9103
|
-
};
|
|
9104
|
-
};
|
|
9105
|
-
};
|
|
9106
|
-
};
|
|
9107
|
-
deleteGithubAutomatedFixes: {
|
|
9108
|
-
parameters: {
|
|
9109
|
-
query?: never;
|
|
9110
|
-
header?: never;
|
|
9111
|
-
path: {
|
|
9112
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9113
|
-
installationId: string;
|
|
9114
|
-
};
|
|
9115
|
-
cookie?: never;
|
|
9116
|
-
};
|
|
9117
|
-
requestBody?: never;
|
|
9118
|
-
responses: {
|
|
9119
|
-
/** @description Automated fixes disabled (or already disabled) */
|
|
9120
|
-
204: {
|
|
9121
|
-
headers: {
|
|
9122
|
-
[name: string]: unknown;
|
|
9123
|
-
};
|
|
9124
|
-
content?: never;
|
|
9125
|
-
};
|
|
9126
|
-
401: components["responses"]["Unauthorized"];
|
|
9127
|
-
403: components["responses"]["Forbidden"];
|
|
9128
|
-
/** @description Workspace or installation not found */
|
|
9129
|
-
404: {
|
|
9130
|
-
headers: {
|
|
9131
|
-
[name: string]: unknown;
|
|
9132
|
-
};
|
|
9133
|
-
content: {
|
|
9134
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9135
|
-
};
|
|
9136
|
-
};
|
|
9137
9068
|
};
|
|
9138
9069
|
};
|
|
9139
9070
|
postGithubUserAuthorizeUrl: {
|
|
@@ -9835,6 +9766,90 @@ export interface operations {
|
|
|
9835
9766
|
};
|
|
9836
9767
|
};
|
|
9837
9768
|
};
|
|
9769
|
+
getWorkspaceNewRelicIntegrationStatus: {
|
|
9770
|
+
parameters: {
|
|
9771
|
+
query?: never;
|
|
9772
|
+
header?: never;
|
|
9773
|
+
path: {
|
|
9774
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9775
|
+
};
|
|
9776
|
+
cookie?: never;
|
|
9777
|
+
};
|
|
9778
|
+
requestBody?: never;
|
|
9779
|
+
responses: {
|
|
9780
|
+
/** @description New Relic integration status */
|
|
9781
|
+
200: {
|
|
9782
|
+
headers: {
|
|
9783
|
+
[name: string]: unknown;
|
|
9784
|
+
};
|
|
9785
|
+
content: {
|
|
9786
|
+
"application/json": components["schemas"]["NewRelicIntegrationStatusDto"];
|
|
9787
|
+
};
|
|
9788
|
+
};
|
|
9789
|
+
401: components["responses"]["Unauthorized"];
|
|
9790
|
+
403: components["responses"]["Forbidden"];
|
|
9791
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
9792
|
+
404: {
|
|
9793
|
+
headers: {
|
|
9794
|
+
[name: string]: unknown;
|
|
9795
|
+
};
|
|
9796
|
+
content: {
|
|
9797
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9798
|
+
};
|
|
9799
|
+
};
|
|
9800
|
+
};
|
|
9801
|
+
};
|
|
9802
|
+
postWorkspaceNewRelicIntegrationSync: {
|
|
9803
|
+
parameters: {
|
|
9804
|
+
query?: never;
|
|
9805
|
+
header?: never;
|
|
9806
|
+
path: {
|
|
9807
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9808
|
+
};
|
|
9809
|
+
cookie?: never;
|
|
9810
|
+
};
|
|
9811
|
+
requestBody?: never;
|
|
9812
|
+
responses: {
|
|
9813
|
+
/** @description Sync completed */
|
|
9814
|
+
200: {
|
|
9815
|
+
headers: {
|
|
9816
|
+
[name: string]: unknown;
|
|
9817
|
+
};
|
|
9818
|
+
content: {
|
|
9819
|
+
"application/json": components["schemas"]["NewRelicTriggerSyncResultDto"];
|
|
9820
|
+
};
|
|
9821
|
+
};
|
|
9822
|
+
401: components["responses"]["Unauthorized"];
|
|
9823
|
+
403: components["responses"]["Forbidden"];
|
|
9824
|
+
/** @description Workspace does not exist or malformed workspaceId */
|
|
9825
|
+
404: {
|
|
9826
|
+
headers: {
|
|
9827
|
+
[name: string]: unknown;
|
|
9828
|
+
};
|
|
9829
|
+
content: {
|
|
9830
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9831
|
+
};
|
|
9832
|
+
};
|
|
9833
|
+
/** @description New Relic is not connected on this workspace */
|
|
9834
|
+
422: {
|
|
9835
|
+
headers: {
|
|
9836
|
+
[name: string]: unknown;
|
|
9837
|
+
};
|
|
9838
|
+
content: {
|
|
9839
|
+
"application/json": components["schemas"]["NewRelicTriggerSyncResultDto"];
|
|
9840
|
+
};
|
|
9841
|
+
};
|
|
9842
|
+
/** @description Sync failed (NerdGraph or persistence error) */
|
|
9843
|
+
503: {
|
|
9844
|
+
headers: {
|
|
9845
|
+
[name: string]: unknown;
|
|
9846
|
+
};
|
|
9847
|
+
content: {
|
|
9848
|
+
"application/json": components["schemas"]["NewRelicTriggerSyncResultDto"];
|
|
9849
|
+
};
|
|
9850
|
+
};
|
|
9851
|
+
};
|
|
9852
|
+
};
|
|
9838
9853
|
postGithubWebhook: {
|
|
9839
9854
|
parameters: {
|
|
9840
9855
|
query?: never;
|
|
@@ -11538,24 +11553,6 @@ export interface operations {
|
|
|
11538
11553
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11539
11554
|
};
|
|
11540
11555
|
};
|
|
11541
|
-
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
11542
|
-
422: {
|
|
11543
|
-
headers: {
|
|
11544
|
-
[name: string]: unknown;
|
|
11545
|
-
};
|
|
11546
|
-
content: {
|
|
11547
|
-
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
11548
|
-
};
|
|
11549
|
-
};
|
|
11550
|
-
/** @description GitHub installation permissions could not be verified */
|
|
11551
|
-
503: {
|
|
11552
|
-
headers: {
|
|
11553
|
-
[name: string]: unknown;
|
|
11554
|
-
};
|
|
11555
|
-
content: {
|
|
11556
|
-
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
11557
|
-
};
|
|
11558
|
-
};
|
|
11559
11556
|
};
|
|
11560
11557
|
};
|
|
11561
11558
|
postReadinessFixRetrigger: {
|
|
@@ -11599,24 +11596,6 @@ export interface operations {
|
|
|
11599
11596
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11600
11597
|
};
|
|
11601
11598
|
};
|
|
11602
|
-
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
11603
|
-
422: {
|
|
11604
|
-
headers: {
|
|
11605
|
-
[name: string]: unknown;
|
|
11606
|
-
};
|
|
11607
|
-
content: {
|
|
11608
|
-
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
11609
|
-
};
|
|
11610
|
-
};
|
|
11611
|
-
/** @description GitHub installation permissions could not be verified */
|
|
11612
|
-
503: {
|
|
11613
|
-
headers: {
|
|
11614
|
-
[name: string]: unknown;
|
|
11615
|
-
};
|
|
11616
|
-
content: {
|
|
11617
|
-
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
11618
|
-
};
|
|
11619
|
-
};
|
|
11620
11599
|
};
|
|
11621
11600
|
};
|
|
11622
11601
|
putCursorPlatformKeyConsent: {
|