@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
package/openapi/openapi.yaml
CHANGED
|
@@ -3008,9 +3008,6 @@ paths:
|
|
|
3008
3008
|
operationId: postGithubInstallUrl
|
|
3009
3009
|
description: >
|
|
3010
3010
|
Creates a GitHub App installation URL scoped to the workspace and caller.
|
|
3011
|
-
Default intent `connect` installs ThinkAI Platform Insights (read).
|
|
3012
|
-
Intent `enable_fixes` installs ThinkAI Platform Automations (write) for the Insights
|
|
3013
|
-
installation identified by `installationId`.
|
|
3014
3011
|
Body is optional; when omitted, defaults to `/onboarding/integrations` return path.
|
|
3015
3012
|
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.
|
|
3016
3013
|
security:
|
|
@@ -3046,91 +3043,6 @@ paths:
|
|
|
3046
3043
|
application/json:
|
|
3047
3044
|
schema:
|
|
3048
3045
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3049
|
-
"503":
|
|
3050
|
-
description: Requested GitHub App is not configured
|
|
3051
|
-
content:
|
|
3052
|
-
application/json:
|
|
3053
|
-
schema:
|
|
3054
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3055
|
-
|
|
3056
|
-
/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes/enable:
|
|
3057
|
-
post:
|
|
3058
|
-
tags: [Integrations]
|
|
3059
|
-
summary: Enable automated fixes for a GitHub installation
|
|
3060
|
-
operationId: postGithubAutomatedFixesEnable
|
|
3061
|
-
description: >
|
|
3062
|
-
Workspace-level enable for automated fixes on an Insights (read) installation.
|
|
3063
|
-
If an Automations (write) installation is already linked, flips `automatedFixesEnabled`
|
|
3064
|
-
without reinstalling. Otherwise returns `outcome: needs_install` so the client can
|
|
3065
|
-
call install-url with intent=enable_fixes.
|
|
3066
|
-
security:
|
|
3067
|
-
- bearerAuth: []
|
|
3068
|
-
parameters:
|
|
3069
|
-
- $ref: "#/components/parameters/WorkspaceId"
|
|
3070
|
-
- name: installationId
|
|
3071
|
-
in: path
|
|
3072
|
-
required: true
|
|
3073
|
-
schema:
|
|
3074
|
-
type: string
|
|
3075
|
-
minLength: 1
|
|
3076
|
-
maxLength: 64
|
|
3077
|
-
responses:
|
|
3078
|
-
"200":
|
|
3079
|
-
description: Enable result
|
|
3080
|
-
content:
|
|
3081
|
-
application/json:
|
|
3082
|
-
schema:
|
|
3083
|
-
$ref: "#/components/schemas/GithubAutomatedFixesEnableResponseDto"
|
|
3084
|
-
"401":
|
|
3085
|
-
$ref: "#/components/responses/Unauthorized"
|
|
3086
|
-
"403":
|
|
3087
|
-
$ref: "#/components/responses/Forbidden"
|
|
3088
|
-
"404":
|
|
3089
|
-
description: Workspace or installation not found
|
|
3090
|
-
content:
|
|
3091
|
-
application/json:
|
|
3092
|
-
schema:
|
|
3093
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3094
|
-
"503":
|
|
3095
|
-
description: Automations GitHub App not configured
|
|
3096
|
-
content:
|
|
3097
|
-
application/json:
|
|
3098
|
-
schema:
|
|
3099
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3100
|
-
|
|
3101
|
-
/workspaces/{workspaceId}/integrations/github/installations/{installationId}/automated-fixes:
|
|
3102
|
-
delete:
|
|
3103
|
-
tags: [Integrations]
|
|
3104
|
-
summary: Disable automated fixes for a GitHub installation
|
|
3105
|
-
operationId: deleteGithubAutomatedFixes
|
|
3106
|
-
description: >
|
|
3107
|
-
Workspace-level disable. Clears `automatedFixesEnabled` but keeps the linked Automations
|
|
3108
|
-
write installation id so re-enable does not require reinstall. Does not uninstall the
|
|
3109
|
-
Automations app from GitHub.
|
|
3110
|
-
security:
|
|
3111
|
-
- bearerAuth: []
|
|
3112
|
-
parameters:
|
|
3113
|
-
- $ref: "#/components/parameters/WorkspaceId"
|
|
3114
|
-
- name: installationId
|
|
3115
|
-
in: path
|
|
3116
|
-
required: true
|
|
3117
|
-
schema:
|
|
3118
|
-
type: string
|
|
3119
|
-
minLength: 1
|
|
3120
|
-
maxLength: 64
|
|
3121
|
-
responses:
|
|
3122
|
-
"204":
|
|
3123
|
-
description: Automated fixes disabled (or already disabled)
|
|
3124
|
-
"401":
|
|
3125
|
-
$ref: "#/components/responses/Unauthorized"
|
|
3126
|
-
"403":
|
|
3127
|
-
$ref: "#/components/responses/Forbidden"
|
|
3128
|
-
"404":
|
|
3129
|
-
description: Workspace or installation not found
|
|
3130
|
-
content:
|
|
3131
|
-
application/json:
|
|
3132
|
-
schema:
|
|
3133
|
-
$ref: "#/components/schemas/ErrorMessageDto"
|
|
3134
3046
|
|
|
3135
3047
|
/workspaces/{workspaceId}/integrations/github/user-authorize-url:
|
|
3136
3048
|
post:
|
|
@@ -5697,31 +5609,6 @@ paths:
|
|
|
5697
5609
|
application/json:
|
|
5698
5610
|
schema:
|
|
5699
5611
|
$ref: "#/components/schemas/ErrorMessageDto"
|
|
5700
|
-
"422":
|
|
5701
|
-
description: GitHub installation lacks write permissions required for automated fix PRs
|
|
5702
|
-
content:
|
|
5703
|
-
application/json:
|
|
5704
|
-
schema:
|
|
5705
|
-
$ref: "#/components/schemas/GithubWritePermissionsRequiredErrorDto"
|
|
5706
|
-
examples:
|
|
5707
|
-
write_required:
|
|
5708
|
-
value:
|
|
5709
|
-
error: github_write_permissions_required
|
|
5710
|
-
missingPermissions:
|
|
5711
|
-
- name: contents
|
|
5712
|
-
required: write
|
|
5713
|
-
granted: read
|
|
5714
|
-
- name: pull_requests
|
|
5715
|
-
required: write
|
|
5716
|
-
granted: read
|
|
5717
|
-
manageUrl: https://github.com/settings/installations/12345
|
|
5718
|
-
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."
|
|
5719
|
-
"503":
|
|
5720
|
-
description: GitHub installation permissions could not be verified
|
|
5721
|
-
content:
|
|
5722
|
-
application/json:
|
|
5723
|
-
schema:
|
|
5724
|
-
$ref: "#/components/schemas/GithubPermissionsCheckFailedErrorDto"
|
|
5725
5612
|
|
|
5726
5613
|
/workspaces/{workspaceId}/readiness/fixes/{fixId}/retrigger:
|
|
5727
5614
|
post:
|
|
@@ -5765,18 +5652,6 @@ paths:
|
|
|
5765
5652
|
value:
|
|
5766
5653
|
error: Fix is currently generating and cannot be superseded
|
|
5767
5654
|
code: fix_generating
|
|
5768
|
-
"422":
|
|
5769
|
-
description: GitHub installation lacks write permissions required for automated fix PRs
|
|
5770
|
-
content:
|
|
5771
|
-
application/json:
|
|
5772
|
-
schema:
|
|
5773
|
-
$ref: "#/components/schemas/GithubWritePermissionsRequiredErrorDto"
|
|
5774
|
-
"503":
|
|
5775
|
-
description: GitHub installation permissions could not be verified
|
|
5776
|
-
content:
|
|
5777
|
-
application/json:
|
|
5778
|
-
schema:
|
|
5779
|
-
$ref: "#/components/schemas/GithubPermissionsCheckFailedErrorDto"
|
|
5780
5655
|
|
|
5781
5656
|
/workspaces/{workspaceId}/cursor/platform-key-consent:
|
|
5782
5657
|
put:
|
|
@@ -10848,50 +10723,9 @@ components:
|
|
|
10848
10723
|
nullable: true
|
|
10849
10724
|
description: Null when the installation has not granted this permission.
|
|
10850
10725
|
|
|
10851
|
-
GithubWritePermissionsRequiredErrorDto:
|
|
10852
|
-
type: object
|
|
10853
|
-
additionalProperties: false
|
|
10854
|
-
required: [error, missingPermissions]
|
|
10855
|
-
properties:
|
|
10856
|
-
error:
|
|
10857
|
-
type: string
|
|
10858
|
-
enum: [github_write_permissions_required]
|
|
10859
|
-
missingPermissions:
|
|
10860
|
-
type: array
|
|
10861
|
-
items:
|
|
10862
|
-
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
10863
|
-
manageUrl:
|
|
10864
|
-
type: string
|
|
10865
|
-
nullable: true
|
|
10866
|
-
description: GitHub installation settings URL to approve write permissions.
|
|
10867
|
-
writeUpgradeMessage:
|
|
10868
|
-
type: string
|
|
10869
|
-
nullable: true
|
|
10870
|
-
description: Human-readable summary of the write permission upgrade.
|
|
10871
|
-
|
|
10872
|
-
GithubPermissionsCheckFailedErrorDto:
|
|
10873
|
-
type: object
|
|
10874
|
-
additionalProperties: false
|
|
10875
|
-
required: [error]
|
|
10876
|
-
properties:
|
|
10877
|
-
error:
|
|
10878
|
-
type: string
|
|
10879
|
-
enum: [github_permissions_check_failed]
|
|
10880
|
-
description: GitHub installation permissions could not be verified (transient upstream failure).
|
|
10881
|
-
|
|
10882
10726
|
GithubInstallationSummaryDto:
|
|
10883
10727
|
type: object
|
|
10884
|
-
required:
|
|
10885
|
-
- installationId
|
|
10886
|
-
- account
|
|
10887
|
-
- repos
|
|
10888
|
-
- permissionsUpgradeRequired
|
|
10889
|
-
- corePermissionsOk
|
|
10890
|
-
- writePermissionsOk
|
|
10891
|
-
- writePermissionsUpgradeRequired
|
|
10892
|
-
- automatedFixesEnabled
|
|
10893
|
-
- writeAppInstalled
|
|
10894
|
-
- canEnableAutomatedFixes
|
|
10728
|
+
required: [installationId, account, repos, permissionsUpgradeRequired]
|
|
10895
10729
|
properties:
|
|
10896
10730
|
installationId:
|
|
10897
10731
|
type: string
|
|
@@ -10913,61 +10747,16 @@ components:
|
|
|
10913
10747
|
permissionsUpgradeRequired:
|
|
10914
10748
|
type: boolean
|
|
10915
10749
|
description: >
|
|
10916
|
-
True when this installation
|
|
10917
|
-
|
|
10918
|
-
corePermissionsOk:
|
|
10919
|
-
type: boolean
|
|
10920
|
-
description: >
|
|
10921
|
-
True when installation grants read permissions for repository analysis (contents, metadata,
|
|
10922
|
-
pull requests, and members for org installs).
|
|
10923
|
-
writePermissionsOk:
|
|
10924
|
-
type: boolean
|
|
10925
|
-
description: >
|
|
10926
|
-
True when automated fixes are enabled and the linked Automations (write) installation
|
|
10927
|
-
grants write permissions required for fix PRs.
|
|
10928
|
-
writePermissionsUpgradeRequired:
|
|
10929
|
-
type: boolean
|
|
10930
|
-
description: Alias for `!writePermissionsOk`.
|
|
10750
|
+
True when this installation's granted permissions are below what the ThinkAI GitHub App
|
|
10751
|
+
currently requests.
|
|
10931
10752
|
missingPermissions:
|
|
10932
10753
|
type: array
|
|
10933
10754
|
items:
|
|
10934
10755
|
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
10935
|
-
description: Core read permissions still needed for connect and analysis.
|
|
10936
|
-
missingWritePermissions:
|
|
10937
|
-
type: array
|
|
10938
|
-
items:
|
|
10939
|
-
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
10940
|
-
description: Write permissions still needed for automated fix PRs.
|
|
10941
10756
|
upgradeMessage:
|
|
10942
10757
|
type: string
|
|
10943
10758
|
nullable: true
|
|
10944
|
-
description: Human-readable summary for UI when
|
|
10945
|
-
writeUpgradeMessage:
|
|
10946
|
-
type: string
|
|
10947
|
-
nullable: true
|
|
10948
|
-
description: Human-readable summary for UI when write permissions are missing.
|
|
10949
|
-
automatedFixesEnabled:
|
|
10950
|
-
type: boolean
|
|
10951
|
-
description: >
|
|
10952
|
-
True when this workspace has enabled automated fixes for this Insights (read)
|
|
10953
|
-
installation and linked a ThinkAI Platform Automations (write) installation.
|
|
10954
|
-
writeAppInstalled:
|
|
10955
|
-
type: boolean
|
|
10956
|
-
description: True when an Automations (write) GitHub App installation is linked.
|
|
10957
|
-
writeInstallationId:
|
|
10958
|
-
type: string
|
|
10959
|
-
nullable: true
|
|
10960
|
-
description: GitHub installation id for the Automations (write) app, when linked.
|
|
10961
|
-
writeManageUrl:
|
|
10962
|
-
type: string
|
|
10963
|
-
format: uri
|
|
10964
|
-
nullable: true
|
|
10965
|
-
description: GitHub settings URL for the Automations (write) installation.
|
|
10966
|
-
canEnableAutomatedFixes:
|
|
10967
|
-
type: boolean
|
|
10968
|
-
description: >
|
|
10969
|
-
True when the Automations app is configured and automated fixes are not yet
|
|
10970
|
-
enabled for this installation (UI may show Enable automated fixes).
|
|
10759
|
+
description: Human-readable summary for UI when permissionsUpgradeRequired is true.
|
|
10971
10760
|
|
|
10972
10761
|
GithubPendingApprovalDto:
|
|
10973
10762
|
type: object
|
|
@@ -11252,13 +11041,7 @@ components:
|
|
|
11252
11041
|
|
|
11253
11042
|
GithubInstallationStatusDto:
|
|
11254
11043
|
type: object
|
|
11255
|
-
required:
|
|
11256
|
-
- installed
|
|
11257
|
-
- installations
|
|
11258
|
-
- permissionsUpgradeRequired
|
|
11259
|
-
- corePermissionsOk
|
|
11260
|
-
- writePermissionsOk
|
|
11261
|
-
- writePermissionsUpgradeRequired
|
|
11044
|
+
required: [installed, installations, permissionsUpgradeRequired]
|
|
11262
11045
|
properties:
|
|
11263
11046
|
installed:
|
|
11264
11047
|
type: boolean
|
|
@@ -11268,25 +11051,7 @@ components:
|
|
|
11268
11051
|
$ref: "#/components/schemas/GithubInstallationSummaryDto"
|
|
11269
11052
|
permissionsUpgradeRequired:
|
|
11270
11053
|
type: boolean
|
|
11271
|
-
description: True if any connected installation
|
|
11272
|
-
corePermissionsOk:
|
|
11273
|
-
type: boolean
|
|
11274
|
-
description: True when every connected installation grants core read permissions.
|
|
11275
|
-
writePermissionsOk:
|
|
11276
|
-
type: boolean
|
|
11277
|
-
description: True when every connected installation grants write permissions for automated fixes.
|
|
11278
|
-
writePermissionsUpgradeRequired:
|
|
11279
|
-
type: boolean
|
|
11280
|
-
description: True when any connected installation lacks write permissions for automated fixes.
|
|
11281
|
-
missingWritePermissions:
|
|
11282
|
-
type: array
|
|
11283
|
-
items:
|
|
11284
|
-
$ref: "#/components/schemas/GithubMissingPermissionDto"
|
|
11285
|
-
description: Aggregated write permissions missing on installations that lack write access.
|
|
11286
|
-
writeUpgradeMessage:
|
|
11287
|
-
type: string
|
|
11288
|
-
nullable: true
|
|
11289
|
-
description: Human-readable summary when write permissions are missing.
|
|
11054
|
+
description: True if any connected installation is under-permissioned.
|
|
11290
11055
|
pendingApproval:
|
|
11291
11056
|
nullable: true
|
|
11292
11057
|
allOf:
|
|
@@ -11362,17 +11127,6 @@ components:
|
|
|
11362
11127
|
format: uri
|
|
11363
11128
|
maxLength: 256
|
|
11364
11129
|
description: SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
|
|
11365
|
-
intent:
|
|
11366
|
-
type: string
|
|
11367
|
-
enum: [connect, enable_fixes]
|
|
11368
|
-
description: >
|
|
11369
|
-
connect installs ThinkAI Platform Insights (read). enable_fixes installs ThinkAI Platform
|
|
11370
|
-
Automations (write) for the Insights installation identified by installationId.
|
|
11371
|
-
installationId:
|
|
11372
|
-
type: string
|
|
11373
|
-
minLength: 1
|
|
11374
|
-
maxLength: 64
|
|
11375
|
-
description: Insights (read) installation id required when intent is enable_fixes.
|
|
11376
11130
|
|
|
11377
11131
|
GithubInstallUrlResponseDto:
|
|
11378
11132
|
type: object
|
|
@@ -11388,22 +11142,6 @@ components:
|
|
|
11388
11142
|
minLength: 16
|
|
11389
11143
|
maxLength: 128
|
|
11390
11144
|
|
|
11391
|
-
GithubAutomatedFixesEnableResponseDto:
|
|
11392
|
-
type: object
|
|
11393
|
-
additionalProperties: false
|
|
11394
|
-
required: [outcome]
|
|
11395
|
-
properties:
|
|
11396
|
-
outcome:
|
|
11397
|
-
type: string
|
|
11398
|
-
enum: [enabled, needs_install]
|
|
11399
|
-
description: >
|
|
11400
|
-
enabled — write app already linked and flag flipped; needs_install — client should
|
|
11401
|
-
call install-url with intent=enable_fixes.
|
|
11402
|
-
status:
|
|
11403
|
-
allOf:
|
|
11404
|
-
- $ref: "#/components/schemas/GithubInstallationStatusDto"
|
|
11405
|
-
description: Present when outcome is enabled.
|
|
11406
|
-
|
|
11407
11145
|
GithubUserAuthorizeUrlRequestDto:
|
|
11408
11146
|
type: object
|
|
11409
11147
|
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.
|
|
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.
|
|
1043
1043
|
*/
|
|
1044
1044
|
post: operations["postGithubInstallUrl"];
|
|
1045
1045
|
delete?: never;
|
|
@@ -1048,46 +1048,6 @@ 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
|
-
};
|
|
1091
1051
|
"/workspaces/{workspaceId}/integrations/github/user-authorize-url": {
|
|
1092
1052
|
parameters: {
|
|
1093
1053
|
query?: never;
|
|
@@ -4529,22 +4489,6 @@ export interface components {
|
|
|
4529
4489
|
*/
|
|
4530
4490
|
granted?: "read" | "write" | "admin" | null;
|
|
4531
4491
|
};
|
|
4532
|
-
GithubWritePermissionsRequiredErrorDto: {
|
|
4533
|
-
/** @enum {string} */
|
|
4534
|
-
error: "github_write_permissions_required";
|
|
4535
|
-
missingPermissions: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4536
|
-
/** @description GitHub installation settings URL to approve write permissions. */
|
|
4537
|
-
manageUrl?: string | null;
|
|
4538
|
-
/** @description Human-readable summary of the write permission upgrade. */
|
|
4539
|
-
writeUpgradeMessage?: string | null;
|
|
4540
|
-
};
|
|
4541
|
-
GithubPermissionsCheckFailedErrorDto: {
|
|
4542
|
-
/**
|
|
4543
|
-
* @description GitHub installation permissions could not be verified (transient upstream failure).
|
|
4544
|
-
* @enum {string}
|
|
4545
|
-
*/
|
|
4546
|
-
error: "github_permissions_check_failed";
|
|
4547
|
-
};
|
|
4548
4492
|
GithubInstallationSummaryDto: {
|
|
4549
4493
|
installationId: string;
|
|
4550
4494
|
account: components["schemas"]["GithubAccountDto"];
|
|
@@ -4554,35 +4498,11 @@ export interface components {
|
|
|
4554
4498
|
manageUrl?: string | null;
|
|
4555
4499
|
/** Format: date-time */
|
|
4556
4500
|
lastSyncedAt?: string | null;
|
|
4557
|
-
/** @description True when this installation
|
|
4501
|
+
/** @description True when this installation's granted permissions are below what the ThinkAI GitHub App currently requests. */
|
|
4558
4502
|
permissionsUpgradeRequired: boolean;
|
|
4559
|
-
/** @description True when installation grants read permissions for repository analysis (contents, metadata, pull requests, and members for org installs). */
|
|
4560
|
-
corePermissionsOk: boolean;
|
|
4561
|
-
/** @description True when automated fixes are enabled and the linked Automations (write) installation grants write permissions required for fix PRs. */
|
|
4562
|
-
writePermissionsOk: boolean;
|
|
4563
|
-
/** @description Alias for `!writePermissionsOk`. */
|
|
4564
|
-
writePermissionsUpgradeRequired: boolean;
|
|
4565
|
-
/** @description Core read permissions still needed for connect and analysis. */
|
|
4566
4503
|
missingPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4567
|
-
/** @description
|
|
4568
|
-
missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4569
|
-
/** @description Human-readable summary for UI when core permissions are missing. */
|
|
4504
|
+
/** @description Human-readable summary for UI when permissionsUpgradeRequired is true. */
|
|
4570
4505
|
upgradeMessage?: string | null;
|
|
4571
|
-
/** @description Human-readable summary for UI when write permissions are missing. */
|
|
4572
|
-
writeUpgradeMessage?: string | null;
|
|
4573
|
-
/** @description True when this workspace has enabled automated fixes for this Insights (read) installation and linked a ThinkAI Platform Automations (write) installation. */
|
|
4574
|
-
automatedFixesEnabled: boolean;
|
|
4575
|
-
/** @description True when an Automations (write) GitHub App installation is linked. */
|
|
4576
|
-
writeAppInstalled: boolean;
|
|
4577
|
-
/** @description GitHub installation id for the Automations (write) app, when linked. */
|
|
4578
|
-
writeInstallationId?: string | null;
|
|
4579
|
-
/**
|
|
4580
|
-
* Format: uri
|
|
4581
|
-
* @description GitHub settings URL for the Automations (write) installation.
|
|
4582
|
-
*/
|
|
4583
|
-
writeManageUrl?: string | null;
|
|
4584
|
-
/** @description True when the Automations app is configured and automated fixes are not yet enabled for this installation (UI may show Enable automated fixes). */
|
|
4585
|
-
canEnableAutomatedFixes: boolean;
|
|
4586
4506
|
};
|
|
4587
4507
|
GithubPendingApprovalDto: {
|
|
4588
4508
|
/**
|
|
@@ -4738,18 +4658,8 @@ export interface components {
|
|
|
4738
4658
|
GithubInstallationStatusDto: {
|
|
4739
4659
|
installed: boolean;
|
|
4740
4660
|
installations: components["schemas"]["GithubInstallationSummaryDto"][];
|
|
4741
|
-
/** @description True if any connected installation
|
|
4661
|
+
/** @description True if any connected installation is under-permissioned. */
|
|
4742
4662
|
permissionsUpgradeRequired: boolean;
|
|
4743
|
-
/** @description True when every connected installation grants core read permissions. */
|
|
4744
|
-
corePermissionsOk: boolean;
|
|
4745
|
-
/** @description True when every connected installation grants write permissions for automated fixes. */
|
|
4746
|
-
writePermissionsOk: boolean;
|
|
4747
|
-
/** @description True when any connected installation lacks write permissions for automated fixes. */
|
|
4748
|
-
writePermissionsUpgradeRequired: boolean;
|
|
4749
|
-
/** @description Aggregated write permissions missing on installations that lack write access. */
|
|
4750
|
-
missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
|
|
4751
|
-
/** @description Human-readable summary when write permissions are missing. */
|
|
4752
|
-
writeUpgradeMessage?: string | null;
|
|
4753
4663
|
/** @description Present when an org admin must approve the GitHub App install request. */
|
|
4754
4664
|
pendingApproval?: components["schemas"]["GithubPendingApprovalDto"] | null;
|
|
4755
4665
|
/** @description Present when GitHub connect was started but not completed (install OAuth state or account-picker session still active). Omitted when pendingApproval is set. */
|
|
@@ -4789,28 +4699,12 @@ export interface components {
|
|
|
4789
4699
|
* @description SPA origin to redirect back to after OAuth; must match server spaOrigins allowlist.
|
|
4790
4700
|
*/
|
|
4791
4701
|
spaOrigin?: string;
|
|
4792
|
-
/**
|
|
4793
|
-
* @description connect installs ThinkAI Platform Insights (read). enable_fixes installs ThinkAI Platform Automations (write) for the Insights installation identified by installationId.
|
|
4794
|
-
* @enum {string}
|
|
4795
|
-
*/
|
|
4796
|
-
intent?: "connect" | "enable_fixes";
|
|
4797
|
-
/** @description Insights (read) installation id required when intent is enable_fixes. */
|
|
4798
|
-
installationId?: string;
|
|
4799
4702
|
};
|
|
4800
4703
|
GithubInstallUrlResponseDto: {
|
|
4801
4704
|
/** Format: uri */
|
|
4802
4705
|
url: string;
|
|
4803
4706
|
state: string;
|
|
4804
4707
|
};
|
|
4805
|
-
GithubAutomatedFixesEnableResponseDto: {
|
|
4806
|
-
/**
|
|
4807
|
-
* @description enabled — write app already linked and flag flipped; needs_install — client should call install-url with intent=enable_fixes.
|
|
4808
|
-
* @enum {string}
|
|
4809
|
-
*/
|
|
4810
|
-
outcome: "enabled" | "needs_install";
|
|
4811
|
-
/** @description Present when outcome is enabled. */
|
|
4812
|
-
status?: components["schemas"]["GithubInstallationStatusDto"];
|
|
4813
|
-
};
|
|
4814
4708
|
GithubUserAuthorizeUrlRequestDto: {
|
|
4815
4709
|
returnPath?: string;
|
|
4816
4710
|
/**
|
|
@@ -6320,8 +6214,6 @@ export type RepoEligibilityOverridesDto = components['schemas']['RepoEligibility
|
|
|
6320
6214
|
export type WorkspaceRepoEligibilityDto = components['schemas']['WorkspaceRepoEligibilityDto'];
|
|
6321
6215
|
export type RepoEligibilityLimitsDto = components['schemas']['RepoEligibilityLimitsDto'];
|
|
6322
6216
|
export type GithubMissingPermissionDto = components['schemas']['GithubMissingPermissionDto'];
|
|
6323
|
-
export type GithubWritePermissionsRequiredErrorDto = components['schemas']['GithubWritePermissionsRequiredErrorDto'];
|
|
6324
|
-
export type GithubPermissionsCheckFailedErrorDto = components['schemas']['GithubPermissionsCheckFailedErrorDto'];
|
|
6325
6217
|
export type GithubInstallationSummaryDto = components['schemas']['GithubInstallationSummaryDto'];
|
|
6326
6218
|
export type GithubPendingApprovalDto = components['schemas']['GithubPendingApprovalDto'];
|
|
6327
6219
|
export type GithubSetupInProgressDto = components['schemas']['GithubSetupInProgressDto'];
|
|
@@ -6337,7 +6229,6 @@ export type GithubActionsEnableResponseDto = components['schemas']['GithubAction
|
|
|
6337
6229
|
export type GithubInstallationStatusDto = components['schemas']['GithubInstallationStatusDto'];
|
|
6338
6230
|
export type GithubInstallUrlRequestDto = components['schemas']['GithubInstallUrlRequestDto'];
|
|
6339
6231
|
export type GithubInstallUrlResponseDto = components['schemas']['GithubInstallUrlResponseDto'];
|
|
6340
|
-
export type GithubAutomatedFixesEnableResponseDto = components['schemas']['GithubAutomatedFixesEnableResponseDto'];
|
|
6341
6232
|
export type GithubUserAuthorizeUrlRequestDto = components['schemas']['GithubUserAuthorizeUrlRequestDto'];
|
|
6342
6233
|
export type GithubUserAuthorizeUrlResponseDto = components['schemas']['GithubUserAuthorizeUrlResponseDto'];
|
|
6343
6234
|
export type GithubConnectableAccountDto = components['schemas']['GithubConnectableAccountDto'];
|
|
@@ -9441,90 +9332,6 @@ export interface operations {
|
|
|
9441
9332
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9442
9333
|
};
|
|
9443
9334
|
};
|
|
9444
|
-
/** @description Requested GitHub App is not configured */
|
|
9445
|
-
503: {
|
|
9446
|
-
headers: {
|
|
9447
|
-
[name: string]: unknown;
|
|
9448
|
-
};
|
|
9449
|
-
content: {
|
|
9450
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9451
|
-
};
|
|
9452
|
-
};
|
|
9453
|
-
};
|
|
9454
|
-
};
|
|
9455
|
-
postGithubAutomatedFixesEnable: {
|
|
9456
|
-
parameters: {
|
|
9457
|
-
query?: never;
|
|
9458
|
-
header?: never;
|
|
9459
|
-
path: {
|
|
9460
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9461
|
-
installationId: string;
|
|
9462
|
-
};
|
|
9463
|
-
cookie?: never;
|
|
9464
|
-
};
|
|
9465
|
-
requestBody?: never;
|
|
9466
|
-
responses: {
|
|
9467
|
-
/** @description Enable result */
|
|
9468
|
-
200: {
|
|
9469
|
-
headers: {
|
|
9470
|
-
[name: string]: unknown;
|
|
9471
|
-
};
|
|
9472
|
-
content: {
|
|
9473
|
-
"application/json": components["schemas"]["GithubAutomatedFixesEnableResponseDto"];
|
|
9474
|
-
};
|
|
9475
|
-
};
|
|
9476
|
-
401: components["responses"]["Unauthorized"];
|
|
9477
|
-
403: components["responses"]["Forbidden"];
|
|
9478
|
-
/** @description Workspace or installation not found */
|
|
9479
|
-
404: {
|
|
9480
|
-
headers: {
|
|
9481
|
-
[name: string]: unknown;
|
|
9482
|
-
};
|
|
9483
|
-
content: {
|
|
9484
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9485
|
-
};
|
|
9486
|
-
};
|
|
9487
|
-
/** @description Automations GitHub App not configured */
|
|
9488
|
-
503: {
|
|
9489
|
-
headers: {
|
|
9490
|
-
[name: string]: unknown;
|
|
9491
|
-
};
|
|
9492
|
-
content: {
|
|
9493
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9494
|
-
};
|
|
9495
|
-
};
|
|
9496
|
-
};
|
|
9497
|
-
};
|
|
9498
|
-
deleteGithubAutomatedFixes: {
|
|
9499
|
-
parameters: {
|
|
9500
|
-
query?: never;
|
|
9501
|
-
header?: never;
|
|
9502
|
-
path: {
|
|
9503
|
-
workspaceId: components["parameters"]["WorkspaceId"];
|
|
9504
|
-
installationId: string;
|
|
9505
|
-
};
|
|
9506
|
-
cookie?: never;
|
|
9507
|
-
};
|
|
9508
|
-
requestBody?: never;
|
|
9509
|
-
responses: {
|
|
9510
|
-
/** @description Automated fixes disabled (or already disabled) */
|
|
9511
|
-
204: {
|
|
9512
|
-
headers: {
|
|
9513
|
-
[name: string]: unknown;
|
|
9514
|
-
};
|
|
9515
|
-
content?: never;
|
|
9516
|
-
};
|
|
9517
|
-
401: components["responses"]["Unauthorized"];
|
|
9518
|
-
403: components["responses"]["Forbidden"];
|
|
9519
|
-
/** @description Workspace or installation not found */
|
|
9520
|
-
404: {
|
|
9521
|
-
headers: {
|
|
9522
|
-
[name: string]: unknown;
|
|
9523
|
-
};
|
|
9524
|
-
content: {
|
|
9525
|
-
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
9526
|
-
};
|
|
9527
|
-
};
|
|
9528
9335
|
};
|
|
9529
9336
|
};
|
|
9530
9337
|
postGithubUserAuthorizeUrl: {
|
|
@@ -12181,24 +11988,6 @@ export interface operations {
|
|
|
12181
11988
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
12182
11989
|
};
|
|
12183
11990
|
};
|
|
12184
|
-
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
12185
|
-
422: {
|
|
12186
|
-
headers: {
|
|
12187
|
-
[name: string]: unknown;
|
|
12188
|
-
};
|
|
12189
|
-
content: {
|
|
12190
|
-
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
12191
|
-
};
|
|
12192
|
-
};
|
|
12193
|
-
/** @description GitHub installation permissions could not be verified */
|
|
12194
|
-
503: {
|
|
12195
|
-
headers: {
|
|
12196
|
-
[name: string]: unknown;
|
|
12197
|
-
};
|
|
12198
|
-
content: {
|
|
12199
|
-
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
12200
|
-
};
|
|
12201
|
-
};
|
|
12202
11991
|
};
|
|
12203
11992
|
};
|
|
12204
11993
|
postReadinessFixRetrigger: {
|
|
@@ -12242,24 +12031,6 @@ export interface operations {
|
|
|
12242
12031
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
12243
12032
|
};
|
|
12244
12033
|
};
|
|
12245
|
-
/** @description GitHub installation lacks write permissions required for automated fix PRs */
|
|
12246
|
-
422: {
|
|
12247
|
-
headers: {
|
|
12248
|
-
[name: string]: unknown;
|
|
12249
|
-
};
|
|
12250
|
-
content: {
|
|
12251
|
-
"application/json": components["schemas"]["GithubWritePermissionsRequiredErrorDto"];
|
|
12252
|
-
};
|
|
12253
|
-
};
|
|
12254
|
-
/** @description GitHub installation permissions could not be verified */
|
|
12255
|
-
503: {
|
|
12256
|
-
headers: {
|
|
12257
|
-
[name: string]: unknown;
|
|
12258
|
-
};
|
|
12259
|
-
content: {
|
|
12260
|
-
"application/json": components["schemas"]["GithubPermissionsCheckFailedErrorDto"];
|
|
12261
|
-
};
|
|
12262
|
-
};
|
|
12263
12034
|
};
|
|
12264
12035
|
};
|
|
12265
12036
|
putCursorPlatformKeyConsent: {
|