@thinkai/tai-api-contract 2.61.0-pr.901.b553abc8 → 2.61.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 +4 -233
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +6 -268
- package/package.json +1 -1
- package/src/generated/openapi.ts +4 -233
|
@@ -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;
|
|
@@ -4528,22 +4488,6 @@ export interface components {
|
|
|
4528
4488
|
*/
|
|
4529
4489
|
granted?: "read" | "write" | "admin" | null;
|
|
4530
4490
|
};
|
|
4531
|
-
GithubWritePermissionsRequiredErrorDto: {
|
|
4532
|
-
/** @enum {string} */
|
|
4533
|
-
error: "github_write_permissions_required";
|
|
4534
|
-
missingPermissions: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4535
|
-
/** @description GitHub installation settings URL to approve write permissions. */
|
|
4536
|
-
manageUrl?: string | null;
|
|
4537
|
-
/** @description Human-readable summary of the write permission upgrade. */
|
|
4538
|
-
writeUpgradeMessage?: string | null;
|
|
4539
|
-
};
|
|
4540
|
-
GithubPermissionsCheckFailedErrorDto: {
|
|
4541
|
-
/**
|
|
4542
|
-
* @description GitHub installation permissions could not be verified (transient upstream failure).
|
|
4543
|
-
* @enum {string}
|
|
4544
|
-
*/
|
|
4545
|
-
error: "github_permissions_check_failed";
|
|
4546
|
-
};
|
|
4547
4491
|
GithubInstallationSummaryDto: {
|
|
4548
4492
|
installationId: string;
|
|
4549
4493
|
account: components["schemas"]["GithubAccountDto"];
|
|
@@ -4553,35 +4497,11 @@ export interface components {
|
|
|
4553
4497
|
manageUrl?: string | null;
|
|
4554
4498
|
/** Format: date-time */
|
|
4555
4499
|
lastSyncedAt?: string | null;
|
|
4556
|
-
/** @description True when this installation
|
|
4500
|
+
/** @description True when this installation's granted permissions are below what the ThinkAI GitHub App currently requests. */
|
|
4557
4501
|
permissionsUpgradeRequired: boolean;
|
|
4558
|
-
/** @description True when installation grants read permissions for repository analysis (contents, metadata, pull requests, and members for org installs). */
|
|
4559
|
-
corePermissionsOk: boolean;
|
|
4560
|
-
/** @description True when automated fixes are enabled and the linked Automations (write) installation grants write permissions required for fix PRs. */
|
|
4561
|
-
writePermissionsOk: boolean;
|
|
4562
|
-
/** @description Alias for `!writePermissionsOk`. */
|
|
4563
|
-
writePermissionsUpgradeRequired: boolean;
|
|
4564
|
-
/** @description Core read permissions still needed for connect and analysis. */
|
|
4565
4502
|
missingPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4566
|
-
/** @description
|
|
4567
|
-
missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4568
|
-
/** @description Human-readable summary for UI when core permissions are missing. */
|
|
4503
|
+
/** @description Human-readable summary for UI when permissionsUpgradeRequired is true. */
|
|
4569
4504
|
upgradeMessage?: string | null;
|
|
4570
|
-
/** @description Human-readable summary for UI when write permissions are missing. */
|
|
4571
|
-
writeUpgradeMessage?: string | null;
|
|
4572
|
-
/** @description True when this workspace has enabled automated fixes for this Insights (read) installation and linked a ThinkAI Platform Automations (write) installation. */
|
|
4573
|
-
automatedFixesEnabled: boolean;
|
|
4574
|
-
/** @description True when an Automations (write) GitHub App installation is linked. */
|
|
4575
|
-
writeAppInstalled: boolean;
|
|
4576
|
-
/** @description GitHub installation id for the Automations (write) app, when linked. */
|
|
4577
|
-
writeInstallationId?: string | null;
|
|
4578
|
-
/**
|
|
4579
|
-
* Format: uri
|
|
4580
|
-
* @description GitHub settings URL for the Automations (write) installation.
|
|
4581
|
-
*/
|
|
4582
|
-
writeManageUrl?: string | null;
|
|
4583
|
-
/** @description True when the Automations app is configured and automated fixes are not yet enabled for this installation (UI may show Enable automated fixes). */
|
|
4584
|
-
canEnableAutomatedFixes: boolean;
|
|
4585
4505
|
};
|
|
4586
4506
|
GithubPendingApprovalDto: {
|
|
4587
4507
|
/**
|
|
@@ -4737,18 +4657,8 @@ export interface components {
|
|
|
4737
4657
|
GithubInstallationStatusDto: {
|
|
4738
4658
|
installed: boolean;
|
|
4739
4659
|
installations: components["schemas"]["GithubInstallationSummaryDto"][];
|
|
4740
|
-
/** @description True if any connected installation
|
|
4660
|
+
/** @description True if any connected installation is under-permissioned. */
|
|
4741
4661
|
permissionsUpgradeRequired: boolean;
|
|
4742
|
-
/** @description True when every connected installation grants core read permissions. */
|
|
4743
|
-
corePermissionsOk: boolean;
|
|
4744
|
-
/** @description True when every connected installation grants write permissions for automated fixes. */
|
|
4745
|
-
writePermissionsOk: boolean;
|
|
4746
|
-
/** @description True when any connected installation lacks write permissions for automated fixes. */
|
|
4747
|
-
writePermissionsUpgradeRequired: boolean;
|
|
4748
|
-
/** @description Aggregated write permissions missing on installations that lack write access. */
|
|
4749
|
-
missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4750
|
-
/** @description Human-readable summary when write permissions are missing. */
|
|
4751
|
-
writeUpgradeMessage?: string | null;
|
|
4752
4662
|
/** @description Present when an org admin must approve the GitHub App install request. */
|
|
4753
4663
|
pendingApproval?: components["schemas"]["GithubPendingApprovalDto"] | null;
|
|
4754
4664
|
/** @description Present when GitHub connect was started but not completed (install OAuth state or account-picker session still active). Omitted when pendingApproval is set. */
|
|
@@ -4788,28 +4698,12 @@ export interface components {
|
|
|
4788
4698
|
* @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
|
|
4789
4699
|
*/
|
|
4790
4700
|
spaOrigin?: string;
|
|
4791
|
-
/**
|
|
4792
|
-
* @description connect installs ThinkAI Platform Insights (read). enable_fixes installs ThinkAI Platform Automations (write) for the Insights installation identified by installationId.
|
|
4793
|
-
* @enum {string}
|
|
4794
|
-
*/
|
|
4795
|
-
intent?: "connect" | "enable_fixes";
|
|
4796
|
-
/** @description Insights (read) installation id required when intent is enable_fixes. */
|
|
4797
|
-
installationId?: string;
|
|
4798
4701
|
};
|
|
4799
4702
|
GithubInstallUrlResponseDto: {
|
|
4800
4703
|
/** Format: uri */
|
|
4801
4704
|
url: string;
|
|
4802
4705
|
state: string;
|
|
4803
4706
|
};
|
|
4804
|
-
GithubAutomatedFixesEnableResponseDto: {
|
|
4805
|
-
/**
|
|
4806
|
-
* @description enabled — write app already linked and flag flipped; needs_install — client should call install-url with intent=enable_fixes.
|
|
4807
|
-
* @enum {string}
|
|
4808
|
-
*/
|
|
4809
|
-
outcome: "enabled" | "needs_install";
|
|
4810
|
-
/** @description Present when outcome is enabled. */
|
|
4811
|
-
status?: components["schemas"]["GithubInstallationStatusDto"];
|
|
4812
|
-
};
|
|
4813
4707
|
GithubUserAuthorizeUrlRequestDto: {
|
|
4814
4708
|
returnPath?: string;
|
|
4815
4709
|
/**
|
|
@@ -6319,8 +6213,6 @@ export type RepoEligibilityOverridesDto = components['schemas']['RepoEligibility
|
|
|
6319
6213
|
export type WorkspaceRepoEligibilityDto = components['schemas']['WorkspaceRepoEligibilityDto'];
|
|
6320
6214
|
export type RepoEligibilityLimitsDto = components['schemas']['RepoEligibilityLimitsDto'];
|
|
6321
6215
|
export type GithubMissingPermissionDto = components['schemas']['GithubMissingPermissionDto'];
|
|
6322
|
-
export type GithubWritePermissionsRequiredErrorDto = components['schemas']['GithubWritePermissionsRequiredErrorDto'];
|
|
6323
|
-
export type GithubPermissionsCheckFailedErrorDto = components['schemas']['GithubPermissionsCheckFailedErrorDto'];
|
|
6324
6216
|
export type GithubInstallationSummaryDto = components['schemas']['GithubInstallationSummaryDto'];
|
|
6325
6217
|
export type GithubPendingApprovalDto = components['schemas']['GithubPendingApprovalDto'];
|
|
6326
6218
|
export type GithubSetupInProgressDto = components['schemas']['GithubSetupInProgressDto'];
|
|
@@ -6336,7 +6228,6 @@ export type GithubActionsEnableResponseDto = components['schemas']['GithubAction
|
|
|
6336
6228
|
export type GithubInstallationStatusDto = components['schemas']['GithubInstallationStatusDto'];
|
|
6337
6229
|
export type GithubInstallUrlRequestDto = components['schemas']['GithubInstallUrlRequestDto'];
|
|
6338
6230
|
export type GithubInstallUrlResponseDto = components['schemas']['GithubInstallUrlResponseDto'];
|
|
6339
|
-
export type GithubAutomatedFixesEnableResponseDto = components['schemas']['GithubAutomatedFixesEnableResponseDto'];
|
|
6340
6231
|
export type GithubUserAuthorizeUrlRequestDto = components['schemas']['GithubUserAuthorizeUrlRequestDto'];
|
|
6341
6232
|
export type GithubUserAuthorizeUrlResponseDto = components['schemas']['GithubUserAuthorizeUrlResponseDto'];
|
|
6342
6233
|
export type GithubConnectableAccountDto = components['schemas']['GithubConnectableAccountDto'];
|
|
@@ -9440,90 +9331,6 @@ export interface operations {
|
|
|
9440
9331
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9441
9332
|
};
|
|
9442
9333
|
};
|
|
9443
|
-
/** @description Requested GitHub App is not configured */
|
|
9444
|
-
503: {
|
|
9445
|
-
headers: {
|
|
9446
|
-
[name: string]: unknown;
|
|
9447
|
-
};
|
|
9448
|
-
content: {
|
|
9449
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9450
|
-
};
|
|
9451
|
-
};
|
|
9452
|
-
};
|
|
9453
|
-
};
|
|
9454
|
-
postGithubAutomatedFixesEnable: {
|
|
9455
|
-
parameters: {
|
|
9456
|
-
query?: never;
|
|
9457
|
-
header?: never;
|
|
9458
|
-
path: {
|
|
9459
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9460
|
-
installationId: string;
|
|
9461
|
-
};
|
|
9462
|
-
cookie?: never;
|
|
9463
|
-
};
|
|
9464
|
-
requestBody?: never;
|
|
9465
|
-
responses: {
|
|
9466
|
-
/** @description Enable result */
|
|
9467
|
-
200: {
|
|
9468
|
-
headers: {
|
|
9469
|
-
[name: string]: unknown;
|
|
9470
|
-
};
|
|
9471
|
-
content: {
|
|
9472
|
-
"application/json": components["schemas"]["GithubAutomatedFixesEnableResponseDto"];
|
|
9473
|
-
};
|
|
9474
|
-
};
|
|
9475
|
-
401: components["responses"]["Unauthorized"];
|
|
9476
|
-
403: components["responses"]["Forbidden"];
|
|
9477
|
-
/** @description Workspace or installation not found */
|
|
9478
|
-
404: {
|
|
9479
|
-
headers: {
|
|
9480
|
-
[name: string]: unknown;
|
|
9481
|
-
};
|
|
9482
|
-
content: {
|
|
9483
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9484
|
-
};
|
|
9485
|
-
};
|
|
9486
|
-
/** @description Automations GitHub App not configured */
|
|
9487
|
-
503: {
|
|
9488
|
-
headers: {
|
|
9489
|
-
[name: string]: unknown;
|
|
9490
|
-
};
|
|
9491
|
-
content: {
|
|
9492
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9493
|
-
};
|
|
9494
|
-
};
|
|
9495
|
-
};
|
|
9496
|
-
};
|
|
9497
|
-
deleteGithubAutomatedFixes: {
|
|
9498
|
-
parameters: {
|
|
9499
|
-
query?: never;
|
|
9500
|
-
header?: never;
|
|
9501
|
-
path: {
|
|
9502
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9503
|
-
installationId: string;
|
|
9504
|
-
};
|
|
9505
|
-
cookie?: never;
|
|
9506
|
-
};
|
|
9507
|
-
requestBody?: never;
|
|
9508
|
-
responses: {
|
|
9509
|
-
/** @description Automated fixes disabled (or already disabled) */
|
|
9510
|
-
204: {
|
|
9511
|
-
headers: {
|
|
9512
|
-
[name: string]: unknown;
|
|
9513
|
-
};
|
|
9514
|
-
content?: never;
|
|
9515
|
-
};
|
|
9516
|
-
401: components["responses"]["Unauthorized"];
|
|
9517
|
-
403: components["responses"]["Forbidden"];
|
|
9518
|
-
/** @description Workspace or installation not found */
|
|
9519
|
-
404: {
|
|
9520
|
-
headers: {
|
|
9521
|
-
[name: string]: unknown;
|
|
9522
|
-
};
|
|
9523
|
-
content: {
|
|
9524
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9525
|
-
};
|
|
9526
|
-
};
|
|
9527
9334
|
};
|
|
9528
9335
|
};
|
|
9529
9336
|
postGithubUserAuthorizeUrl: {
|
|
@@ -12180,24 +11987,6 @@ export interface operations {
|
|
|
12180
11987
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
12181
11988
|
};
|
|
12182
11989
|
};
|
|
12183
|
-
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
12184
|
-
422: {
|
|
12185
|
-
headers: {
|
|
12186
|
-
[name: string]: unknown;
|
|
12187
|
-
};
|
|
12188
|
-
content: {
|
|
12189
|
-
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
12190
|
-
};
|
|
12191
|
-
};
|
|
12192
|
-
/** @description GitHub installation permissions could not be verified */
|
|
12193
|
-
503: {
|
|
12194
|
-
headers: {
|
|
12195
|
-
[name: string]: unknown;
|
|
12196
|
-
};
|
|
12197
|
-
content: {
|
|
12198
|
-
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
12199
|
-
};
|
|
12200
|
-
};
|
|
12201
11990
|
};
|
|
12202
11991
|
};
|
|
12203
11992
|
postReadinessFixRetrigger: {
|
|
@@ -12241,24 +12030,6 @@ export interface operations {
|
|
|
12241
12030
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
12242
12031
|
};
|
|
12243
12032
|
};
|
|
12244
|
-
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
12245
|
-
422: {
|
|
12246
|
-
headers: {
|
|
12247
|
-
[name: string]: unknown;
|
|
12248
|
-
};
|
|
12249
|
-
content: {
|
|
12250
|
-
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
12251
|
-
};
|
|
12252
|
-
};
|
|
12253
|
-
/** @description GitHub installation permissions could not be verified */
|
|
12254
|
-
503: {
|
|
12255
|
-
headers: {
|
|
12256
|
-
[name: string]: unknown;
|
|
12257
|
-
};
|
|
12258
|
-
content: {
|
|
12259
|
-
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
12260
|
-
};
|
|
12261
|
-
};
|
|
12262
12033
|
};
|
|
12263
12034
|
};
|
|
12264
12035
|
putCursorPlatformKeyConsent: {
|