@thinkai/tai-api-contract 2.57.0 → 2.58.0-pr.901.2e63dee8

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.
@@ -10216,7 +10216,14 @@ components:
10216
10216
 
10217
10217
  GithubInstallationSummaryDto:
10218
10218
  type: object
10219
- required: [installationId, account, repos, permissionsUpgradeRequired]
10219
+ required:
10220
+ - installationId
10221
+ - account
10222
+ - repos
10223
+ - permissionsUpgradeRequired
10224
+ - corePermissionsOk
10225
+ - writePermissionsOk
10226
+ - writePermissionsUpgradeRequired
10220
10227
  properties:
10221
10228
  installationId:
10222
10229
  type: string
@@ -10238,16 +10245,38 @@ components:
10238
10245
  permissionsUpgradeRequired:
10239
10246
  type: boolean
10240
10247
  description: >
10241
- True when this installation's granted permissions are below what the ThinkAI GitHub App
10242
- currently requests.
10248
+ True when this installation lacks core read permissions required for connect and analysis.
10249
+ Alias for `!corePermissionsOk`.
10250
+ corePermissionsOk:
10251
+ type: boolean
10252
+ description: >
10253
+ True when installation grants read permissions for repository analysis (contents, metadata,
10254
+ pull requests, and members for org installs).
10255
+ writePermissionsOk:
10256
+ type: boolean
10257
+ description: >
10258
+ True when installation grants write permissions required for automated fix PRs.
10259
+ writePermissionsUpgradeRequired:
10260
+ type: boolean
10261
+ description: Alias for `!writePermissionsOk`.
10243
10262
  missingPermissions:
10244
10263
  type: array
10245
10264
  items:
10246
10265
  $ref: "#/components/schemas/GithubMissingPermissionDto"
10266
+ description: Core read permissions still needed for connect and analysis.
10267
+ missingWritePermissions:
10268
+ type: array
10269
+ items:
10270
+ $ref: "#/components/schemas/GithubMissingPermissionDto"
10271
+ description: Write permissions still needed for automated fix PRs.
10247
10272
  upgradeMessage:
10248
10273
  type: string
10249
10274
  nullable: true
10250
- description: Human-readable summary for UI when permissionsUpgradeRequired is true.
10275
+ description: Human-readable summary for UI when core permissions are missing.
10276
+ writeUpgradeMessage:
10277
+ type: string
10278
+ nullable: true
10279
+ description: Human-readable summary for UI when write permissions are missing.
10251
10280
 
10252
10281
  GithubPendingApprovalDto:
10253
10282
  type: object
@@ -10361,7 +10390,13 @@ components:
10361
10390
 
10362
10391
  GithubInstallationStatusDto:
10363
10392
  type: object
10364
- required: [installed, installations, permissionsUpgradeRequired]
10393
+ required:
10394
+ - installed
10395
+ - installations
10396
+ - permissionsUpgradeRequired
10397
+ - corePermissionsOk
10398
+ - writePermissionsOk
10399
+ - writePermissionsUpgradeRequired
10365
10400
  properties:
10366
10401
  installed:
10367
10402
  type: boolean
@@ -10371,7 +10406,25 @@ components:
10371
10406
  $ref: "#/components/schemas/GithubInstallationSummaryDto"
10372
10407
  permissionsUpgradeRequired:
10373
10408
  type: boolean
10374
- description: True if any connected installation is under-permissioned.
10409
+ description: True if any connected installation lacks core read permissions. Alias for `!corePermissionsOk`.
10410
+ corePermissionsOk:
10411
+ type: boolean
10412
+ description: True when every connected installation grants core read permissions.
10413
+ writePermissionsOk:
10414
+ type: boolean
10415
+ description: True when every connected installation grants write permissions for automated fixes.
10416
+ writePermissionsUpgradeRequired:
10417
+ type: boolean
10418
+ description: True when any connected installation lacks write permissions for automated fixes.
10419
+ missingWritePermissions:
10420
+ type: array
10421
+ items:
10422
+ $ref: "#/components/schemas/GithubMissingPermissionDto"
10423
+ description: Aggregated write permissions missing on installations that lack write access.
10424
+ writeUpgradeMessage:
10425
+ type: string
10426
+ nullable: true
10427
+ description: Human-readable summary when write permissions are missing.
10375
10428
  pendingApproval:
10376
10429
  nullable: true
10377
10430
  allOf:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thinkai/tai-api-contract",
3
- "version": "2.57.0",
3
+ "version": "2.58.0-pr.901.2e63dee8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -4240,11 +4240,22 @@ export interface components {
4240
4240
  manageUrl?: string | null;
4241
4241
  /** Format: date-time */
4242
4242
  lastSyncedAt?: string | null;
4243
- /** @description True when this installation's granted permissions are below what the ThinkAI GitHub App currently requests. */
4243
+ /** @description True when this installation lacks core read permissions required for connect and analysis. Alias for `!corePermissionsOk`. */
4244
4244
  permissionsUpgradeRequired: boolean;
4245
+ /** @description True when installation grants read permissions for repository analysis (contents, metadata, pull requests, and members for org installs). */
4246
+ corePermissionsOk: boolean;
4247
+ /** @description True when installation grants write permissions required for automated fix PRs. */
4248
+ writePermissionsOk: boolean;
4249
+ /** @description Alias for `!writePermissionsOk`. */
4250
+ writePermissionsUpgradeRequired: boolean;
4251
+ /** @description Core read permissions still needed for connect and analysis. */
4245
4252
  missingPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
4246
- /** @description Human-readable summary for UI when permissionsUpgradeRequired is true. */
4253
+ /** @description Write permissions still needed for automated fix PRs. */
4254
+ missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
4255
+ /** @description Human-readable summary for UI when core permissions are missing. */
4247
4256
  upgradeMessage?: string | null;
4257
+ /** @description Human-readable summary for UI when write permissions are missing. */
4258
+ writeUpgradeMessage?: string | null;
4248
4259
  };
4249
4260
  GithubPendingApprovalDto: {
4250
4261
  /**
@@ -4312,8 +4323,18 @@ export interface components {
4312
4323
  GithubInstallationStatusDto: {
4313
4324
  installed: boolean;
4314
4325
  installations: components["schemas"]["GithubInstallationSummaryDto"][];
4315
- /** @description True if any connected installation is under-permissioned. */
4326
+ /** @description True if any connected installation lacks core read permissions. Alias for `!corePermissionsOk`. */
4316
4327
  permissionsUpgradeRequired: boolean;
4328
+ /** @description True when every connected installation grants core read permissions. */
4329
+ corePermissionsOk: boolean;
4330
+ /** @description True when every connected installation grants write permissions for automated fixes. */
4331
+ writePermissionsOk: boolean;
4332
+ /** @description True when any connected installation lacks write permissions for automated fixes. */
4333
+ writePermissionsUpgradeRequired: boolean;
4334
+ /** @description Aggregated write permissions missing on installations that lack write access. */
4335
+ missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
4336
+ /** @description Human-readable summary when write permissions are missing. */
4337
+ writeUpgradeMessage?: string | null;
4317
4338
  /** @description Present when an org admin must approve the GitHub App install request. */
4318
4339
  pendingApproval?: components["schemas"]["GithubPendingApprovalDto"] | null;
4319
4340
  /** @description Present when GitHub connect was started but not completed (install OAuth state or account-picker session still active). Omitted when pendingApproval is set. */