@thinkai/tai-api-contract 2.58.0-pr.901.2e63dee8 → 2.58.1-pr.901.538cc170
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 +210 -2
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +211 -2
- package/package.json +1 -1
- package/src/generated/openapi.ts +210 -2
package/openapi/openapi.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
openapi: 3.0.3
|
|
2
2
|
info:
|
|
3
3
|
title: ThinkAI API
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.58.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}/...`.
|
|
@@ -2998,6 +2998,9 @@ paths:
|
|
|
2998
2998
|
operationId: postGithubInstallUrl
|
|
2999
2999
|
description: >
|
|
3000
3000
|
Creates a GitHub App installation URL scoped to the workspace and caller.
|
|
3001
|
+
Default intent `connect` installs ThinkAI Platform Insights (read).
|
|
3002
|
+
Intent `enable_fixes` installs ThinkAI Platform Automations (write) for the Insights
|
|
3003
|
+
installation identified by `installationId`.
|
|
3001
3004
|
Body is optional; when omitted, defaults to `/onboarding/integrations` return path.
|
|
3002
3005
|
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.
|
|
3003
3006
|
security:
|
|
@@ -3033,6 +3036,91 @@ paths:
|
|
|
3033
3036
|
application/json:
|
|
3034
3037
|
schema:
|
|
3035
3038
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3039
|
+
"503":
|
|
3040
|
+
description: Requested GitHub App is not configured
|
|
3041
|
+
content:
|
|
3042
|
+
application/json:
|
|
3043
|
+
schema:
|
|
3044
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3045
|
+
|
|
3046
|
+
/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/enable:
|
|
3047
|
+
post:
|
|
3048
|
+
tags: [Integrations]
|
|
3049
|
+
summary: Enable automated fixes for a GitHub installation
|
|
3050
|
+
operationId: postGithubAutomatedFixesEnable
|
|
3051
|
+
description: >
|
|
3052
|
+
Workspace-level enable for automated fixes on an Insights (read) installation.
|
|
3053
|
+
If an Automations (write) installation is already linked, flips `automatedFixesEnabled`
|
|
3054
|
+
without reinstalling. Otherwise returns `outcome: needs_install` so the client can
|
|
3055
|
+
call install-url with intent=enable_fixes.
|
|
3056
|
+
security:
|
|
3057
|
+
- bearerAuth: []
|
|
3058
|
+
parameters:
|
|
3059
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
3060
|
+
- name: installationId
|
|
3061
|
+
in: path
|
|
3062
|
+
required: true
|
|
3063
|
+
schema:
|
|
3064
|
+
type: string
|
|
3065
|
+
minLength: 1
|
|
3066
|
+
maxLength: 64
|
|
3067
|
+
responses:
|
|
3068
|
+
"200":
|
|
3069
|
+
description: Enable result
|
|
3070
|
+
content:
|
|
3071
|
+
application/json:
|
|
3072
|
+
schema:
|
|
3073
|
+
$ref: "#/components/schemas/GithubAutomatedFixesEnableResponseDto"
|
|
3074
|
+
"401":
|
|
3075
|
+
$ref: "#/components/responses/Unauthorized"
|
|
3076
|
+
"403":
|
|
3077
|
+
$ref: "#/components/responses/Forbidden"
|
|
3078
|
+
"404":
|
|
3079
|
+
description: Workspace or installation not found
|
|
3080
|
+
content:
|
|
3081
|
+
application/json:
|
|
3082
|
+
schema:
|
|
3083
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3084
|
+
"503":
|
|
3085
|
+
description: Automations GitHub App not configured
|
|
3086
|
+
content:
|
|
3087
|
+
application/json:
|
|
3088
|
+
schema:
|
|
3089
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3090
|
+
|
|
3091
|
+
/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes:
|
|
3092
|
+
delete:
|
|
3093
|
+
tags: [Integrations]
|
|
3094
|
+
summary: Disable automated fixes for a GitHub installation
|
|
3095
|
+
operationId: deleteGithubAutomatedFixes
|
|
3096
|
+
description: >
|
|
3097
|
+
Workspace-level disable. Clears `automatedFixesEnabled` but keeps the linked Automations
|
|
3098
|
+
write installation id so re-enable does not require reinstall. Does not uninstall the
|
|
3099
|
+
Automations app from GitHub.
|
|
3100
|
+
security:
|
|
3101
|
+
- bearerAuth: []
|
|
3102
|
+
parameters:
|
|
3103
|
+
- $ref: "#/components/parameters/WorkspaceId"
|
|
3104
|
+
- name: installationId
|
|
3105
|
+
in: path
|
|
3106
|
+
required: true
|
|
3107
|
+
schema:
|
|
3108
|
+
type: string
|
|
3109
|
+
minLength: 1
|
|
3110
|
+
maxLength: 64
|
|
3111
|
+
responses:
|
|
3112
|
+
"204":
|
|
3113
|
+
description: Automated fixes disabled (or already disabled)
|
|
3114
|
+
"401":
|
|
3115
|
+
$ref: "#/components/responses/Unauthorized"
|
|
3116
|
+
"403":
|
|
3117
|
+
$ref: "#/components/responses/Forbidden"
|
|
3118
|
+
"404":
|
|
3119
|
+
description: Workspace or installation not found
|
|
3120
|
+
content:
|
|
3121
|
+
application/json:
|
|
3122
|
+
schema:
|
|
3123
|
+
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3036
3124
|
|
|
3037
3125
|
/workspaces/{workspaceId}/integrations/github/user-authorize-url:
|
|
3038
3126
|
post:
|
|
@@ -5391,6 +5479,31 @@ paths:
|
|
|
5391
5479
|
application/json:
|
|
5392
5480
|
schema:
|
|
5393
5481
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5482
|
+
"422":
|
|
5483
|
+
description: GitHub installation lacks write permissions required for automated fix PRs
|
|
5484
|
+
content:
|
|
5485
|
+
application/json:
|
|
5486
|
+
schema:
|
|
5487
|
+
$ref: "#/components/schemas/GithubWritePermissionsRequiredErrorDto"
|
|
5488
|
+
examples:
|
|
5489
|
+
write_required:
|
|
5490
|
+
value:
|
|
5491
|
+
error: github_write_permissions_required
|
|
5492
|
+
missingPermissions:
|
|
5493
|
+
- name: contents
|
|
5494
|
+
required: write
|
|
5495
|
+
granted: read
|
|
5496
|
+
- name: pull_requests
|
|
5497
|
+
required: write
|
|
5498
|
+
granted: read
|
|
5499
|
+
manageUrl: https://github.com/settings/installations/12345
|
|
5500
|
+
writeUpgradeMessage: "Automated fixes need write access to your repositories: Contents (Read and write) and Pull requests (Read and write). Fixes open pull requests you review — nothing is merged automatically. Approve the update on GitHub to enable fix PRs."
|
|
5501
|
+
"503":
|
|
5502
|
+
description: GitHub installation permissions could not be verified
|
|
5503
|
+
content:
|
|
5504
|
+
application/json:
|
|
5505
|
+
schema:
|
|
5506
|
+
$ref: "#/components/schemas/GithubPermissionsCheckFailedErrorDto"
|
|
5394
5507
|
|
|
5395
5508
|
/workspaces/{workspaceId}/readiness/fixes/{fixId}/retrigger:
|
|
5396
5509
|
post:
|
|
@@ -5434,6 +5547,18 @@ paths:
|
|
|
5434
5547
|
value:
|
|
5435
5548
|
error: Fix is currently generating and cannot be superseded
|
|
5436
5549
|
code: fix_generating
|
|
5550
|
+
"422":
|
|
5551
|
+
description: GitHub installation lacks write permissions required for automated fix PRs
|
|
5552
|
+
content:
|
|
5553
|
+
application/json:
|
|
5554
|
+
schema:
|
|
5555
|
+
$ref: "#/components/schemas/GithubWritePermissionsRequiredErrorDto"
|
|
5556
|
+
"503":
|
|
5557
|
+
description: GitHub installation permissions could not be verified
|
|
5558
|
+
content:
|
|
5559
|
+
application/json:
|
|
5560
|
+
schema:
|
|
5561
|
+
$ref: "#/components/schemas/GithubPermissionsCheckFailedErrorDto"
|
|
5437
5562
|
|
|
5438
5563
|
/workspaces/{workspaceId}/cursor/platform-key-consent:
|
|
5439
5564
|
put:
|
|
@@ -10214,6 +10339,37 @@ components:
|
|
|
10214
10339
|
nullable: true
|
|
10215
10340
|
description: Null when the installation has not granted this permission.
|
|
10216
10341
|
|
|
10342
|
+
GithubWritePermissionsRequiredErrorDto:
|
|
10343
|
+
type: object
|
|
10344
|
+
additionalProperties: false
|
|
10345
|
+
required: [error, missingPermissions]
|
|
10346
|
+
properties:
|
|
10347
|
+
error:
|
|
10348
|
+
type: string
|
|
10349
|
+
enum: [github_write_permissions_required]
|
|
10350
|
+
missingPermissions:
|
|
10351
|
+
type: array
|
|
10352
|
+
items:
|
|
10353
|
+
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
10354
|
+
manageUrl:
|
|
10355
|
+
type: string
|
|
10356
|
+
nullable: true
|
|
10357
|
+
description: GitHub installation settings URL to approve write permissions.
|
|
10358
|
+
writeUpgradeMessage:
|
|
10359
|
+
type: string
|
|
10360
|
+
nullable: true
|
|
10361
|
+
description: Human-readable summary of the write permission upgrade.
|
|
10362
|
+
|
|
10363
|
+
GithubPermissionsCheckFailedErrorDto:
|
|
10364
|
+
type: object
|
|
10365
|
+
additionalProperties: false
|
|
10366
|
+
required: [error]
|
|
10367
|
+
properties:
|
|
10368
|
+
error:
|
|
10369
|
+
type: string
|
|
10370
|
+
enum: [github_permissions_check_failed]
|
|
10371
|
+
description: GitHub installation permissions could not be verified (transient upstream failure).
|
|
10372
|
+
|
|
10217
10373
|
GithubInstallationSummaryDto:
|
|
10218
10374
|
type: object
|
|
10219
10375
|
required:
|
|
@@ -10224,6 +10380,9 @@ components:
|
|
|
10224
10380
|
- corePermissionsOk
|
|
10225
10381
|
- writePermissionsOk
|
|
10226
10382
|
- writePermissionsUpgradeRequired
|
|
10383
|
+
- automatedFixesEnabled
|
|
10384
|
+
- writeAppInstalled
|
|
10385
|
+
- canEnableAutomatedFixes
|
|
10227
10386
|
properties:
|
|
10228
10387
|
installationId:
|
|
10229
10388
|
type: string
|
|
@@ -10255,7 +10414,8 @@ components:
|
|
|
10255
10414
|
writePermissionsOk:
|
|
10256
10415
|
type: boolean
|
|
10257
10416
|
description: >
|
|
10258
|
-
True when
|
|
10417
|
+
True when automated fixes are enabled and the linked Automations (write) installation
|
|
10418
|
+
grants write permissions required for fix PRs.
|
|
10259
10419
|
writePermissionsUpgradeRequired:
|
|
10260
10420
|
type: boolean
|
|
10261
10421
|
description: Alias for `!writePermissionsOk`.
|
|
@@ -10277,6 +10437,28 @@ components:
|
|
|
10277
10437
|
type: string
|
|
10278
10438
|
nullable: true
|
|
10279
10439
|
description: Human-readable summary for UI when write permissions are missing.
|
|
10440
|
+
automatedFixesEnabled:
|
|
10441
|
+
type: boolean
|
|
10442
|
+
description: >
|
|
10443
|
+
True when this workspace has enabled automated fixes for this Insights (read)
|
|
10444
|
+
installation and linked a ThinkAI Platform Automations (write) installation.
|
|
10445
|
+
writeAppInstalled:
|
|
10446
|
+
type: boolean
|
|
10447
|
+
description: True when an Automations (write) GitHub App installation is linked.
|
|
10448
|
+
writeInstallationId:
|
|
10449
|
+
type: string
|
|
10450
|
+
nullable: true
|
|
10451
|
+
description: GitHub installation id for the Automations (write) app, when linked.
|
|
10452
|
+
writeManageUrl:
|
|
10453
|
+
type: string
|
|
10454
|
+
format: uri
|
|
10455
|
+
nullable: true
|
|
10456
|
+
description: GitHub settings URL for the Automations (write) installation.
|
|
10457
|
+
canEnableAutomatedFixes:
|
|
10458
|
+
type: boolean
|
|
10459
|
+
description: >
|
|
10460
|
+
True when the Automations app is configured and automated fixes are not yet
|
|
10461
|
+
enabled for this installation (UI may show Enable automated fixes).
|
|
10280
10462
|
|
|
10281
10463
|
GithubPendingApprovalDto:
|
|
10282
10464
|
type: object
|
|
@@ -10500,6 +10682,17 @@ components:
|
|
|
10500
10682
|
format: uri
|
|
10501
10683
|
maxLength: 256
|
|
10502
10684
|
description: SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
|
|
10685
|
+
intent:
|
|
10686
|
+
type: string
|
|
10687
|
+
enum: [connect, enable_fixes]
|
|
10688
|
+
description: >
|
|
10689
|
+
connect installs ThinkAI Platform Insights (read). enable_fixes installs ThinkAI Platform
|
|
10690
|
+
Automations (write) for the Insights installation identified by installationId.
|
|
10691
|
+
installationId:
|
|
10692
|
+
type: string
|
|
10693
|
+
minLength: 1
|
|
10694
|
+
maxLength: 64
|
|
10695
|
+
description: Insights (read) installation id required when intent is enable_fixes.
|
|
10503
10696
|
|
|
10504
10697
|
GithubInstallUrlResponseDto:
|
|
10505
10698
|
type: object
|
|
@@ -10515,6 +10708,22 @@ components:
|
|
|
10515
10708
|
minLength: 16
|
|
10516
10709
|
maxLength: 128
|
|
10517
10710
|
|
|
10711
|
+
GithubAutomatedFixesEnableResponseDto:
|
|
10712
|
+
type: object
|
|
10713
|
+
additionalProperties: false
|
|
10714
|
+
required: [outcome]
|
|
10715
|
+
properties:
|
|
10716
|
+
outcome:
|
|
10717
|
+
type: string
|
|
10718
|
+
enum: [enabled, needs_install]
|
|
10719
|
+
description: >
|
|
10720
|
+
enabled — write app already linked and flag flipped; needs_install — client should
|
|
10721
|
+
call install-url with intent=enable_fixes.
|
|
10722
|
+
status:
|
|
10723
|
+
allOf:
|
|
10724
|
+
- $ref: "#/components/schemas/GithubInstallationStatusDto"
|
|
10725
|
+
description: Present when outcome is enabled.
|
|
10726
|
+
|
|
10518
10727
|
GithubUserAuthorizeUrlRequestDto:
|
|
10519
10728
|
type: object
|
|
10520
10729
|
additionalProperties: false
|
package/package.json
CHANGED
package/src/generated/openapi.ts
CHANGED
|
@@ -1039,7 +1039,7 @@ export interface paths {
|
|
|
1039
1039
|
put?: never;
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Create GitHub App installation URL
|
|
1042
|
-
* @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
|
+
* @description Creates a GitHub App installation URL scoped to the workspace and caller. Default intent `connect` installs ThinkAI Platform Insights (read). Intent `enable_fixes` installs ThinkAI Platform Automations (write) for the Insights installation identified by `installationId`. 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.
|
|
1043
1043
|
*/
|
|
1044
1044
|
post: operations["postGithubInstallUrl"];
|
|
1045
1045
|
delete?: never;
|
|
@@ -1048,6 +1048,46 @@ export interface paths {
|
|
|
1048
1048
|
patch?: never;
|
|
1049
1049
|
trace?: never;
|
|
1050
1050
|
};
|
|
1051
|
+
"/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/enable": {
|
|
1052
|
+
parameters: {
|
|
1053
|
+
query?: never;
|
|
1054
|
+
header?: never;
|
|
1055
|
+
path?: never;
|
|
1056
|
+
cookie?: never;
|
|
1057
|
+
};
|
|
1058
|
+
get?: never;
|
|
1059
|
+
put?: never;
|
|
1060
|
+
/**
|
|
1061
|
+
* Enable automated fixes for a GitHub installation
|
|
1062
|
+
* @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.
|
|
1063
|
+
*/
|
|
1064
|
+
post: operations["postGithubAutomatedFixesEnable"];
|
|
1065
|
+
delete?: never;
|
|
1066
|
+
options?: never;
|
|
1067
|
+
head?: never;
|
|
1068
|
+
patch?: never;
|
|
1069
|
+
trace?: never;
|
|
1070
|
+
};
|
|
1071
|
+
"/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes": {
|
|
1072
|
+
parameters: {
|
|
1073
|
+
query?: never;
|
|
1074
|
+
header?: never;
|
|
1075
|
+
path?: never;
|
|
1076
|
+
cookie?: never;
|
|
1077
|
+
};
|
|
1078
|
+
get?: never;
|
|
1079
|
+
put?: never;
|
|
1080
|
+
post?: never;
|
|
1081
|
+
/**
|
|
1082
|
+
* Disable automated fixes for a GitHub installation
|
|
1083
|
+
* @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.
|
|
1084
|
+
*/
|
|
1085
|
+
delete: operations["deleteGithubAutomatedFixes"];
|
|
1086
|
+
options?: never;
|
|
1087
|
+
head?: never;
|
|
1088
|
+
patch?: never;
|
|
1089
|
+
trace?: never;
|
|
1090
|
+
};
|
|
1051
1091
|
"/workspaces/{workspaceId}/integrations/github/user-authorize-url": {
|
|
1052
1092
|
parameters: {
|
|
1053
1093
|
query?: never;
|
|
@@ -4231,6 +4271,22 @@ export interface components {
|
|
|
4231
4271
|
*/
|
|
4232
4272
|
granted?: "read" | "write" | "admin" | null;
|
|
4233
4273
|
};
|
|
4274
|
+
GithubWritePermissionsRequiredErrorDto: {
|
|
4275
|
+
/** @enum {string} */
|
|
4276
|
+
error: "github_write_permissions_required";
|
|
4277
|
+
missingPermissions: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4278
|
+
/** @description GitHub installation settings URL to approve write permissions. */
|
|
4279
|
+
manageUrl?: string | null;
|
|
4280
|
+
/** @description Human-readable summary of the write permission upgrade. */
|
|
4281
|
+
writeUpgradeMessage?: string | null;
|
|
4282
|
+
};
|
|
4283
|
+
GithubPermissionsCheckFailedErrorDto: {
|
|
4284
|
+
/**
|
|
4285
|
+
* @description GitHub installation permissions could not be verified (transient upstream failure).
|
|
4286
|
+
* @enum {string}
|
|
4287
|
+
*/
|
|
4288
|
+
error: "github_permissions_check_failed";
|
|
4289
|
+
};
|
|
4234
4290
|
GithubInstallationSummaryDto: {
|
|
4235
4291
|
installationId: string;
|
|
4236
4292
|
account: components["schemas"]["GithubAccountDto"];
|
|
@@ -4244,7 +4300,7 @@ export interface components {
|
|
|
4244
4300
|
permissionsUpgradeRequired: boolean;
|
|
4245
4301
|
/** @description True when installation grants read permissions for repository analysis (contents, metadata, pull requests, and members for org installs). */
|
|
4246
4302
|
corePermissionsOk: boolean;
|
|
4247
|
-
/** @description True when installation grants write permissions required for
|
|
4303
|
+
/** @description True when automated fixes are enabled and the linked Automations (write) installation grants write permissions required for fix PRs. */
|
|
4248
4304
|
writePermissionsOk: boolean;
|
|
4249
4305
|
/** @description Alias for `!writePermissionsOk`. */
|
|
4250
4306
|
writePermissionsUpgradeRequired: boolean;
|
|
@@ -4256,6 +4312,19 @@ export interface components {
|
|
|
4256
4312
|
upgradeMessage?: string | null;
|
|
4257
4313
|
/** @description Human-readable summary for UI when write permissions are missing. */
|
|
4258
4314
|
writeUpgradeMessage?: string | null;
|
|
4315
|
+
/** @description True when this workspace has enabled automated fixes for this Insights (read) installation and linked a ThinkAI Platform Automations (write) installation. */
|
|
4316
|
+
automatedFixesEnabled: boolean;
|
|
4317
|
+
/** @description True when an Automations (write) GitHub App installation is linked. */
|
|
4318
|
+
writeAppInstalled: boolean;
|
|
4319
|
+
/** @description GitHub installation id for the Automations (write) app, when linked. */
|
|
4320
|
+
writeInstallationId?: string | null;
|
|
4321
|
+
/**
|
|
4322
|
+
* Format: uri
|
|
4323
|
+
* @description GitHub settings URL for the Automations (write) installation.
|
|
4324
|
+
*/
|
|
4325
|
+
writeManageUrl?: string | null;
|
|
4326
|
+
/** @description True when the Automations app is configured and automated fixes are not yet enabled for this installation (UI may show Enable automated fixes). */
|
|
4327
|
+
canEnableAutomatedFixes: boolean;
|
|
4259
4328
|
};
|
|
4260
4329
|
GithubPendingApprovalDto: {
|
|
4261
4330
|
/**
|
|
@@ -4374,12 +4443,28 @@ export interface components {
|
|
|
4374
4443
|
* @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
|
|
4375
4444
|
*/
|
|
4376
4445
|
spaOrigin?: string;
|
|
4446
|
+
/**
|
|
4447
|
+
* @description connect installs ThinkAI Platform Insights (read). enable_fixes installs ThinkAI Platform Automations (write) for the Insights installation identified by installationId.
|
|
4448
|
+
* @enum {string}
|
|
4449
|
+
*/
|
|
4450
|
+
intent?: "connect" | "enable_fixes";
|
|
4451
|
+
/** @description Insights (read) installation id required when intent is enable_fixes. */
|
|
4452
|
+
installationId?: string;
|
|
4377
4453
|
};
|
|
4378
4454
|
GithubInstallUrlResponseDto: {
|
|
4379
4455
|
/** Format: uri */
|
|
4380
4456
|
url: string;
|
|
4381
4457
|
state: string;
|
|
4382
4458
|
};
|
|
4459
|
+
GithubAutomatedFixesEnableResponseDto: {
|
|
4460
|
+
/**
|
|
4461
|
+
* @description enabled — write app already linked and flag flipped; needs_install — client should call install-url with intent=enable_fixes.
|
|
4462
|
+
* @enum {string}
|
|
4463
|
+
*/
|
|
4464
|
+
outcome: "enabled" | "needs_install";
|
|
4465
|
+
/** @description Present when outcome is enabled. */
|
|
4466
|
+
status?: components["schemas"]["GithubInstallationStatusDto"];
|
|
4467
|
+
};
|
|
4383
4468
|
GithubUserAuthorizeUrlRequestDto: {
|
|
4384
4469
|
returnPath?: string;
|
|
4385
4470
|
/**
|
|
@@ -5856,6 +5941,8 @@ export type RepoEligibilityOverridesDto = components['schemas']['RepoEligibility
|
|
|
5856
5941
|
export type WorkspaceRepoEligibilityDto = components['schemas']['WorkspaceRepoEligibilityDto'];
|
|
5857
5942
|
export type RepoEligibilityLimitsDto = components['schemas']['RepoEligibilityLimitsDto'];
|
|
5858
5943
|
export type GithubMissingPermissionDto = components['schemas']['GithubMissingPermissionDto'];
|
|
5944
|
+
export type GithubWritePermissionsRequiredErrorDto = components['schemas']['GithubWritePermissionsRequiredErrorDto'];
|
|
5945
|
+
export type GithubPermissionsCheckFailedErrorDto = components['schemas']['GithubPermissionsCheckFailedErrorDto'];
|
|
5859
5946
|
export type GithubInstallationSummaryDto = components['schemas']['GithubInstallationSummaryDto'];
|
|
5860
5947
|
export type GithubPendingApprovalDto = components['schemas']['GithubPendingApprovalDto'];
|
|
5861
5948
|
export type GithubSetupInProgressDto = components['schemas']['GithubSetupInProgressDto'];
|
|
@@ -5865,6 +5952,7 @@ export type GithubActionsEnableResponseDto = components['schemas']['GithubAction
|
|
|
5865
5952
|
export type GithubInstallationStatusDto = components['schemas']['GithubInstallationStatusDto'];
|
|
5866
5953
|
export type GithubInstallUrlRequestDto = components['schemas']['GithubInstallUrlRequestDto'];
|
|
5867
5954
|
export type GithubInstallUrlResponseDto = components['schemas']['GithubInstallUrlResponseDto'];
|
|
5955
|
+
export type GithubAutomatedFixesEnableResponseDto = components['schemas']['GithubAutomatedFixesEnableResponseDto'];
|
|
5868
5956
|
export type GithubUserAuthorizeUrlRequestDto = components['schemas']['GithubUserAuthorizeUrlRequestDto'];
|
|
5869
5957
|
export type GithubUserAuthorizeUrlResponseDto = components['schemas']['GithubUserAuthorizeUrlResponseDto'];
|
|
5870
5958
|
export type GithubConnectableAccountDto = components['schemas']['GithubConnectableAccountDto'];
|
|
@@ -8963,6 +9051,90 @@ export interface operations {
|
|
|
8963
9051
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
8964
9052
|
};
|
|
8965
9053
|
};
|
|
9054
|
+
/** @description Requested GitHub App is not configured */
|
|
9055
|
+
503: {
|
|
9056
|
+
headers: {
|
|
9057
|
+
[name: string]: unknown;
|
|
9058
|
+
};
|
|
9059
|
+
content: {
|
|
9060
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9061
|
+
};
|
|
9062
|
+
};
|
|
9063
|
+
};
|
|
9064
|
+
};
|
|
9065
|
+
postGithubAutomatedFixesEnable: {
|
|
9066
|
+
parameters: {
|
|
9067
|
+
query?: never;
|
|
9068
|
+
header?: never;
|
|
9069
|
+
path: {
|
|
9070
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9071
|
+
installationId: string;
|
|
9072
|
+
};
|
|
9073
|
+
cookie?: never;
|
|
9074
|
+
};
|
|
9075
|
+
requestBody?: never;
|
|
9076
|
+
responses: {
|
|
9077
|
+
/** @description Enable result */
|
|
9078
|
+
200: {
|
|
9079
|
+
headers: {
|
|
9080
|
+
[name: string]: unknown;
|
|
9081
|
+
};
|
|
9082
|
+
content: {
|
|
9083
|
+
"application/json": components["schemas"]["GithubAutomatedFixesEnableResponseDto"];
|
|
9084
|
+
};
|
|
9085
|
+
};
|
|
9086
|
+
401: components["responses"]["Unauthorized"];
|
|
9087
|
+
403: components["responses"]["Forbidden"];
|
|
9088
|
+
/** @description Workspace or installation not found */
|
|
9089
|
+
404: {
|
|
9090
|
+
headers: {
|
|
9091
|
+
[name: string]: unknown;
|
|
9092
|
+
};
|
|
9093
|
+
content: {
|
|
9094
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9095
|
+
};
|
|
9096
|
+
};
|
|
9097
|
+
/** @description Automations GitHub App not configured */
|
|
9098
|
+
503: {
|
|
9099
|
+
headers: {
|
|
9100
|
+
[name: string]: unknown;
|
|
9101
|
+
};
|
|
9102
|
+
content: {
|
|
9103
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9104
|
+
};
|
|
9105
|
+
};
|
|
9106
|
+
};
|
|
9107
|
+
};
|
|
9108
|
+
deleteGithubAutomatedFixes: {
|
|
9109
|
+
parameters: {
|
|
9110
|
+
query?: never;
|
|
9111
|
+
header?: never;
|
|
9112
|
+
path: {
|
|
9113
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9114
|
+
installationId: string;
|
|
9115
|
+
};
|
|
9116
|
+
cookie?: never;
|
|
9117
|
+
};
|
|
9118
|
+
requestBody?: never;
|
|
9119
|
+
responses: {
|
|
9120
|
+
/** @description Automated fixes disabled (or already disabled) */
|
|
9121
|
+
204: {
|
|
9122
|
+
headers: {
|
|
9123
|
+
[name: string]: unknown;
|
|
9124
|
+
};
|
|
9125
|
+
content?: never;
|
|
9126
|
+
};
|
|
9127
|
+
401: components["responses"]["Unauthorized"];
|
|
9128
|
+
403: components["responses"]["Forbidden"];
|
|
9129
|
+
/** @description Workspace or installation not found */
|
|
9130
|
+
404: {
|
|
9131
|
+
headers: {
|
|
9132
|
+
[name: string]: unknown;
|
|
9133
|
+
};
|
|
9134
|
+
content: {
|
|
9135
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9136
|
+
};
|
|
9137
|
+
};
|
|
8966
9138
|
};
|
|
8967
9139
|
};
|
|
8968
9140
|
postGithubUserAuthorizeUrl: {
|
|
@@ -11367,6 +11539,24 @@ export interface operations {
|
|
|
11367
11539
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11368
11540
|
};
|
|
11369
11541
|
};
|
|
11542
|
+
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
11543
|
+
422: {
|
|
11544
|
+
headers: {
|
|
11545
|
+
[name: string]: unknown;
|
|
11546
|
+
};
|
|
11547
|
+
content: {
|
|
11548
|
+
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
11549
|
+
};
|
|
11550
|
+
};
|
|
11551
|
+
/** @description GitHub installation permissions could not be verified */
|
|
11552
|
+
503: {
|
|
11553
|
+
headers: {
|
|
11554
|
+
[name: string]: unknown;
|
|
11555
|
+
};
|
|
11556
|
+
content: {
|
|
11557
|
+
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
11558
|
+
};
|
|
11559
|
+
};
|
|
11370
11560
|
};
|
|
11371
11561
|
};
|
|
11372
11562
|
postReadinessFixRetrigger: {
|
|
@@ -11410,6 +11600,24 @@ export interface operations {
|
|
|
11410
11600
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
11411
11601
|
};
|
|
11412
11602
|
};
|
|
11603
|
+
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
11604
|
+
422: {
|
|
11605
|
+
headers: {
|
|
11606
|
+
[name: string]: unknown;
|
|
11607
|
+
};
|
|
11608
|
+
content: {
|
|
11609
|
+
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
11610
|
+
};
|
|
11611
|
+
};
|
|
11612
|
+
/** @description GitHub installation permissions could not be verified */
|
|
11613
|
+
503: {
|
|
11614
|
+
headers: {
|
|
11615
|
+
[name: string]: unknown;
|
|
11616
|
+
};
|
|
11617
|
+
content: {
|
|
11618
|
+
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
11619
|
+
};
|
|
11620
|
+
};
|
|
11413
11621
|
};
|
|
11414
11622
|
};
|
|
11415
11623
|
putCursorPlatformKeyConsent: {
|