@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.
@@ -4239,11 +4239,22 @@ export interface components {
4239
4239
  manageUrl?: string | null;
4240
4240
  /** Format: date-time */
4241
4241
  lastSyncedAt?: string | null;
4242
- /** @description True when this installation's granted permissions are below what the ThinkAI GitHub App currently requests. */
4242
+ /** @description True when this installation lacks core read permissions required for connect and analysis. Alias for `!corePermissionsOk`. */
4243
4243
  permissionsUpgradeRequired: boolean;
4244
+ /** @description True when installation grants read permissions for repository analysis (contents, metadata, pull requests, and members for org installs). */
4245
+ corePermissionsOk: boolean;
4246
+ /** @description True when installation grants write permissions required for automated fix PRs. */
4247
+ writePermissionsOk: boolean;
4248
+ /** @description Alias for `!writePermissionsOk`. */
4249
+ writePermissionsUpgradeRequired: boolean;
4250
+ /** @description Core read permissions still needed for connect and analysis. */
4244
4251
  missingPermissions?: components["schemas"]["GithubMissingPermissionDto"][];
4245
- /** @description Human-readable summary for UI when permissionsUpgradeRequired is true. */
4252
+ /** @description Write permissions still needed for automated fix PRs. */
4253
+ missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
4254
+ /** @description Human-readable summary for UI when core permissions are missing. */
4246
4255
  upgradeMessage?: string | null;
4256
+ /** @description Human-readable summary for UI when write permissions are missing. */
4257
+ writeUpgradeMessage?: string | null;
4247
4258
  };
4248
4259
  GithubPendingApprovalDto: {
4249
4260
  /**
@@ -4311,8 +4322,18 @@ export interface components {
4311
4322
  GithubInstallationStatusDto: {
4312
4323
  installed: boolean;
4313
4324
  installations: components["schemas"]["GithubInstallationSummaryDto"][];
4314
- /** @description True if any connected installation is under-permissioned. */
4325
+ /** @description True if any connected installation lacks core read permissions. Alias for `!corePermissionsOk`. */
4315
4326
  permissionsUpgradeRequired: boolean;
4327
+ /** @description True when every connected installation grants core read permissions. */
4328
+ corePermissionsOk: boolean;
4329
+ /** @description True when every connected installation grants write permissions for automated fixes. */
4330
+ writePermissionsOk: boolean;
4331
+ /** @description True when any connected installation lacks write permissions for automated fixes. */
4332
+ writePermissionsUpgradeRequired: boolean;
4333
+ /** @description Aggregated write permissions missing on installations that lack write access. */
4334
+ missingWritePermissions?: components["schemas"]["GithubMissingPermissionDto"][];
4335
+ /** @description Human-readable summary when write permissions are missing. */
4336
+ writeUpgradeMessage?: string | null;
4316
4337
  /** @description Present when an org admin must approve the GitHub App install request. */
4317
4338
  pendingApproval?: components["schemas"]["GithubPendingApprovalDto"] | null;
4318
4339
  /** @description Present when GitHub connect was started but not completed (install OAuth state or account-picker session still active). Omitted when pendingApproval is set. */