@knpkv/codecommit-core 0.7.1 → 0.9.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/README.md +36 -0
- package/dist/AwsClient/AwsClientGated.d.ts +1 -1
- package/dist/AwsClient/AwsClientGated.d.ts.map +1 -1
- package/dist/AwsClient/AwsClientGated.js +39 -19
- package/dist/AwsClient/AwsClientGated.js.map +1 -1
- package/dist/AwsClient/approvalRuleContent.d.ts +15 -0
- package/dist/AwsClient/approvalRuleContent.d.ts.map +1 -0
- package/dist/AwsClient/approvalRuleContent.js +39 -0
- package/dist/AwsClient/approvalRuleContent.js.map +1 -0
- package/dist/AwsClient/createApprovalRule.d.ts +1 -1
- package/dist/AwsClient/createApprovalRule.d.ts.map +1 -1
- package/dist/AwsClient/createApprovalRule.js +2 -2
- package/dist/AwsClient/createApprovalRule.js.map +1 -1
- package/dist/AwsClient/createPullRequest.d.ts +1 -1
- package/dist/AwsClient/createPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/createPullRequest.js +1 -1
- package/dist/AwsClient/createPullRequest.js.map +1 -1
- package/dist/AwsClient/deleteApprovalRule.d.ts +1 -1
- package/dist/AwsClient/deleteApprovalRule.d.ts.map +1 -1
- package/dist/AwsClient/deleteApprovalRule.js +2 -2
- package/dist/AwsClient/deleteApprovalRule.js.map +1 -1
- package/dist/AwsClient/getCallerIdentity.d.ts +1 -1
- package/dist/AwsClient/getCallerIdentity.d.ts.map +1 -1
- package/dist/AwsClient/getCallerIdentity.js +1 -1
- package/dist/AwsClient/getCallerIdentity.js.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.d.ts +2 -1
- package/dist/AwsClient/getCommentsForPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getCommentsForPullRequest.js +29 -29
- package/dist/AwsClient/getCommentsForPullRequest.js.map +1 -1
- package/dist/AwsClient/getDifferences.d.ts +2 -13
- package/dist/AwsClient/getDifferences.d.ts.map +1 -1
- package/dist/AwsClient/getDifferences.js +1 -1
- package/dist/AwsClient/getDifferences.js.map +1 -1
- package/dist/AwsClient/getPullRequest.d.ts +1 -1
- package/dist/AwsClient/getPullRequest.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequest.js +11 -11
- package/dist/AwsClient/getPullRequest.js.map +1 -1
- package/dist/AwsClient/getPullRequests.d.ts +11 -27
- package/dist/AwsClient/getPullRequests.d.ts.map +1 -1
- package/dist/AwsClient/getPullRequests.js +60 -109
- package/dist/AwsClient/getPullRequests.js.map +1 -1
- package/dist/AwsClient/index.d.ts +5 -5
- package/dist/AwsClient/index.d.ts.map +1 -1
- package/dist/AwsClient/index.js +16 -28
- package/dist/AwsClient/index.js.map +1 -1
- package/dist/AwsClient/internal.d.ts +38 -105
- package/dist/AwsClient/internal.d.ts.map +1 -1
- package/dist/AwsClient/internal.js +36 -21
- package/dist/AwsClient/internal.js.map +1 -1
- package/dist/AwsClient/listBranches.d.ts +2 -1
- package/dist/AwsClient/listBranches.d.ts.map +1 -1
- package/dist/AwsClient/listBranches.js +6 -11
- package/dist/AwsClient/listBranches.js.map +1 -1
- package/dist/AwsClient/updateApprovalRule.d.ts +1 -1
- package/dist/AwsClient/updateApprovalRule.d.ts.map +1 -1
- package/dist/AwsClient/updateApprovalRule.js +2 -2
- package/dist/AwsClient/updateApprovalRule.js.map +1 -1
- package/dist/AwsClient/updatePullRequestDescription.d.ts +1 -1
- package/dist/AwsClient/updatePullRequestDescription.d.ts.map +1 -1
- package/dist/AwsClient/updatePullRequestDescription.js +1 -1
- package/dist/AwsClient/updatePullRequestDescription.js.map +1 -1
- package/dist/AwsClient/updatePullRequestTitle.d.ts +1 -1
- package/dist/AwsClient/updatePullRequestTitle.d.ts.map +1 -1
- package/dist/AwsClient/updatePullRequestTitle.js +1 -1
- package/dist/AwsClient/updatePullRequestTitle.js.map +1 -1
- package/dist/AwsClientConfig.d.ts +7 -7
- package/dist/AwsClientConfig.d.ts.map +1 -1
- package/dist/AwsClientConfig.js +1 -1
- package/dist/AwsClientConfig.js.map +1 -1
- package/dist/CacheService/CacheError.d.ts +4 -6
- package/dist/CacheService/CacheError.d.ts.map +1 -1
- package/dist/CacheService/CacheError.js +2 -2
- package/dist/CacheService/CacheError.js.map +1 -1
- package/dist/CacheService/Database.d.ts +5 -5
- package/dist/CacheService/Database.d.ts.map +1 -1
- package/dist/CacheService/Database.js +3 -3
- package/dist/CacheService/Database.js.map +1 -1
- package/dist/CacheService/EventsHub.d.ts +117 -132
- package/dist/CacheService/EventsHub.d.ts.map +1 -1
- package/dist/CacheService/EventsHub.js +19 -19
- package/dist/CacheService/EventsHub.js.map +1 -1
- package/dist/CacheService/diff.d.ts.map +1 -1
- package/dist/CacheService/migrations/0001_initial.d.ts +2 -2
- package/dist/CacheService/migrations/0001_initial.d.ts.map +1 -1
- package/dist/CacheService/migrations/0001_initial.js +1 -1
- package/dist/CacheService/migrations/0001_initial.js.map +1 -1
- package/dist/CacheService/migrations/0002_indexes.d.ts +2 -2
- package/dist/CacheService/migrations/0002_indexes.d.ts.map +1 -1
- package/dist/CacheService/migrations/0002_indexes.js +1 -1
- package/dist/CacheService/migrations/0002_indexes.js.map +1 -1
- package/dist/CacheService/migrations/0003_add_health_score.d.ts +2 -2
- package/dist/CacheService/migrations/0003_add_health_score.d.ts.map +1 -1
- package/dist/CacheService/migrations/0003_add_health_score.js +2 -2
- package/dist/CacheService/migrations/0003_add_health_score.js.map +1 -1
- package/dist/CacheService/migrations/0004_unify_notifications.d.ts +2 -2
- package/dist/CacheService/migrations/0004_unify_notifications.d.ts.map +1 -1
- package/dist/CacheService/migrations/0004_unify_notifications.js +3 -3
- package/dist/CacheService/migrations/0004_unify_notifications.js.map +1 -1
- package/dist/CacheService/migrations/0005_add_sandboxes.d.ts +2 -2
- package/dist/CacheService/migrations/0005_add_sandboxes.d.ts.map +1 -1
- package/dist/CacheService/migrations/0005_add_sandboxes.js +1 -1
- package/dist/CacheService/migrations/0005_add_sandboxes.js.map +1 -1
- package/dist/CacheService/migrations/0006_sandbox_logs.d.ts +2 -2
- package/dist/CacheService/migrations/0006_sandbox_logs.d.ts.map +1 -1
- package/dist/CacheService/migrations/0006_sandbox_logs.js +1 -1
- package/dist/CacheService/migrations/0006_sandbox_logs.js.map +1 -1
- package/dist/CacheService/migrations/0007_stats_columns.d.ts +2 -2
- package/dist/CacheService/migrations/0007_stats_columns.d.ts.map +1 -1
- package/dist/CacheService/migrations/0007_stats_columns.js +5 -5
- package/dist/CacheService/migrations/0007_stats_columns.js.map +1 -1
- package/dist/CacheService/migrations/0008_merged_by.d.ts +2 -2
- package/dist/CacheService/migrations/0008_merged_by.d.ts.map +1 -1
- package/dist/CacheService/migrations/0008_merged_by.js +2 -2
- package/dist/CacheService/migrations/0008_merged_by.js.map +1 -1
- package/dist/CacheService/migrations/0009_approved_by.d.ts +2 -2
- package/dist/CacheService/migrations/0009_approved_by.d.ts.map +1 -1
- package/dist/CacheService/migrations/0009_approved_by.js +2 -2
- package/dist/CacheService/migrations/0009_approved_by.js.map +1 -1
- package/dist/CacheService/migrations/0010_commented_by.d.ts +2 -2
- package/dist/CacheService/migrations/0010_commented_by.d.ts.map +1 -1
- package/dist/CacheService/migrations/0010_commented_by.js +2 -2
- package/dist/CacheService/migrations/0010_commented_by.js.map +1 -1
- package/dist/CacheService/migrations/0011_audit_log.d.ts +2 -2
- package/dist/CacheService/migrations/0011_audit_log.d.ts.map +1 -1
- package/dist/CacheService/migrations/0011_audit_log.js +2 -2
- package/dist/CacheService/migrations/0011_audit_log.js.map +1 -1
- package/dist/CacheService/migrations/0012_audit_log_indexes.d.ts +2 -2
- package/dist/CacheService/migrations/0012_audit_log_indexes.d.ts.map +1 -1
- package/dist/CacheService/migrations/0012_audit_log_indexes.js +2 -2
- package/dist/CacheService/migrations/0012_audit_log_indexes.js.map +1 -1
- package/dist/CacheService/migrations/0013_approval_rules.d.ts +2 -2
- package/dist/CacheService/migrations/0013_approval_rules.d.ts.map +1 -1
- package/dist/CacheService/migrations/0013_approval_rules.js +2 -2
- package/dist/CacheService/migrations/0013_approval_rules.js.map +1 -1
- package/dist/CacheService/migrations/0014_approved_by_arns.d.ts +2 -2
- package/dist/CacheService/migrations/0014_approved_by_arns.d.ts.map +1 -1
- package/dist/CacheService/migrations/0014_approved_by_arns.js +2 -2
- package/dist/CacheService/migrations/0014_approved_by_arns.js.map +1 -1
- package/dist/CacheService/migrations/0015_repo_account_id.d.ts +2 -2
- package/dist/CacheService/migrations/0015_repo_account_id.d.ts.map +1 -1
- package/dist/CacheService/migrations/0015_repo_account_id.js +2 -2
- package/dist/CacheService/migrations/0015_repo_account_id.js.map +1 -1
- package/dist/CacheService/repos/CommentRepo.d.ts +11 -9
- package/dist/CacheService/repos/CommentRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/CommentRepo.js +26 -29
- package/dist/CacheService/repos/CommentRepo.js.map +1 -1
- package/dist/CacheService/repos/NotificationRepo.d.ts +36 -34
- package/dist/CacheService/repos/NotificationRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/NotificationRepo.js +93 -94
- package/dist/CacheService/repos/NotificationRepo.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts +129 -127
- package/dist/CacheService/repos/PullRequestRepo/index.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/index.js +19 -19
- package/dist/CacheService/repos/PullRequestRepo/index.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/internal.d.ts +51 -54
- package/dist/CacheService/repos/PullRequestRepo/internal.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/internal.js +22 -19
- package/dist/CacheService/repos/PullRequestRepo/internal.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/mutations.d.ts +12 -12
- package/dist/CacheService/repos/PullRequestRepo/mutations.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/mutations.js +22 -5
- package/dist/CacheService/repos/PullRequestRepo/mutations.js.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts +108 -108
- package/dist/CacheService/repos/PullRequestRepo/queries.d.ts.map +1 -1
- package/dist/CacheService/repos/PullRequestRepo/queries.js +17 -6
- package/dist/CacheService/repos/PullRequestRepo/queries.js.map +1 -1
- package/dist/CacheService/repos/SandboxRepo.d.ts +97 -95
- package/dist/CacheService/repos/SandboxRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SandboxRepo.js +49 -48
- package/dist/CacheService/repos/SandboxRepo.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/index.d.ts +65 -63
- package/dist/CacheService/repos/StatsRepo/index.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/index.js +25 -25
- package/dist/CacheService/repos/StatsRepo/index.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/internal.d.ts +8 -13
- package/dist/CacheService/repos/StatsRepo/internal.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/internal.js +11 -4
- package/dist/CacheService/repos/StatsRepo/internal.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.d.ts +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/queries.js +8 -0
- package/dist/CacheService/repos/StatsRepo/queries.js.map +1 -1
- package/dist/CacheService/repos/StatsRepo/reviewerData.d.ts +2 -2
- package/dist/CacheService/repos/StatsRepo/reviewerData.d.ts.map +1 -1
- package/dist/CacheService/repos/StatsRepo/reviewerData.js +15 -4
- package/dist/CacheService/repos/StatsRepo/reviewerData.js.map +1 -1
- package/dist/CacheService/repos/SubscriptionRepo.d.ts +16 -14
- package/dist/CacheService/repos/SubscriptionRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SubscriptionRepo.js +38 -37
- package/dist/CacheService/repos/SubscriptionRepo.js.map +1 -1
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts +11 -9
- package/dist/CacheService/repos/SyncMetadataRepo.d.ts.map +1 -1
- package/dist/CacheService/repos/SyncMetadataRepo.js +23 -23
- package/dist/CacheService/repos/SyncMetadataRepo.js.map +1 -1
- package/dist/CacheService/repos/commentLocations.d.ts +7 -0
- package/dist/CacheService/repos/commentLocations.d.ts.map +1 -0
- package/dist/CacheService/repos/commentLocations.js +105 -0
- package/dist/CacheService/repos/commentLocations.js.map +1 -0
- package/dist/ConfigService/backup.d.ts +2 -2
- package/dist/ConfigService/backup.d.ts.map +1 -1
- package/dist/ConfigService/backup.js +1 -1
- package/dist/ConfigService/backup.js.map +1 -1
- package/dist/ConfigService/detectProfiles.d.ts +6 -3
- package/dist/ConfigService/detectProfiles.d.ts.map +1 -1
- package/dist/ConfigService/detectProfiles.js +11 -6
- package/dist/ConfigService/detectProfiles.js.map +1 -1
- package/dist/ConfigService/index.d.ts +12 -12
- package/dist/ConfigService/index.d.ts.map +1 -1
- package/dist/ConfigService/index.js +14 -6
- package/dist/ConfigService/index.js.map +1 -1
- package/dist/ConfigService/internal.d.ts +41 -137
- package/dist/ConfigService/internal.d.ts.map +1 -1
- package/dist/ConfigService/internal.js +40 -20
- package/dist/ConfigService/internal.js.map +1 -1
- package/dist/ConfigService/load.d.ts +25 -28
- package/dist/ConfigService/load.d.ts.map +1 -1
- package/dist/ConfigService/load.js +12 -28
- package/dist/ConfigService/load.js.map +1 -1
- package/dist/ConfigService/reset.d.ts +26 -5
- package/dist/ConfigService/reset.d.ts.map +1 -1
- package/dist/ConfigService/reset.js +10 -16
- package/dist/ConfigService/reset.js.map +1 -1
- package/dist/ConfigService/save.d.ts +3 -2
- package/dist/ConfigService/save.d.ts.map +1 -1
- package/dist/ConfigService/save.js +2 -1
- package/dist/ConfigService/save.js.map +1 -1
- package/dist/ConfigService/validate.d.ts +7 -21
- package/dist/ConfigService/validate.d.ts.map +1 -1
- package/dist/ConfigService/validate.js +11 -11
- package/dist/ConfigService/validate.js.map +1 -1
- package/dist/DateUtils.d.ts.map +1 -1
- package/dist/Domain.d.ts +177 -377
- package/dist/Domain.d.ts.map +1 -1
- package/dist/Domain.js +77 -20
- package/dist/Domain.js.map +1 -1
- package/dist/Errors.d.ts +45 -65
- package/dist/Errors.d.ts.map +1 -1
- package/dist/Errors.js +20 -20
- package/dist/Errors.js.map +1 -1
- package/dist/HealthScore.d.ts.map +1 -1
- package/dist/HealthScore.js +4 -1
- package/dist/HealthScore.js.map +1 -1
- package/dist/PRService/index.d.ts +37 -34
- package/dist/PRService/index.d.ts.map +1 -1
- package/dist/PRService/index.js +45 -45
- package/dist/PRService/index.js.map +1 -1
- package/dist/PRService/internal.d.ts +86 -118
- package/dist/PRService/internal.d.ts.map +1 -1
- package/dist/PRService/internal.js +28 -25
- package/dist/PRService/internal.js.map +1 -1
- package/dist/PRService/refresh.d.ts +1 -1
- package/dist/PRService/refresh.d.ts.map +1 -1
- package/dist/PRService/refresh.js +10 -8
- package/dist/PRService/refresh.js.map +1 -1
- package/dist/PRService/refreshDiffs.d.ts +1 -1
- package/dist/PRService/refreshDiffs.d.ts.map +1 -1
- package/dist/PRService/refreshDiffs.js +9 -6
- package/dist/PRService/refreshDiffs.js.map +1 -1
- package/dist/PRService/refreshEnrich.d.ts +1 -1
- package/dist/PRService/refreshEnrich.d.ts.map +1 -1
- package/dist/PRService/refreshEnrich.js +15 -12
- package/dist/PRService/refreshEnrich.js.map +1 -1
- package/dist/PRService/refreshFetch.d.ts.map +1 -1
- package/dist/PRService/refreshFetch.js +14 -14
- package/dist/PRService/refreshFetch.js.map +1 -1
- package/dist/PRService/refreshHistory.d.ts +1 -1
- package/dist/PRService/refreshHistory.d.ts.map +1 -1
- package/dist/PRService/refreshHistory.js +19 -11
- package/dist/PRService/refreshHistory.js.map +1 -1
- package/dist/PRService/refreshResolve.d.ts +7 -7
- package/dist/PRService/refreshResolve.d.ts.map +1 -1
- package/dist/PRService/refreshResolve.js +24 -14
- package/dist/PRService/refreshResolve.js.map +1 -1
- package/dist/PRService/refreshScore.d.ts.map +1 -1
- package/dist/PRService/refreshScore.js +5 -5
- package/dist/PRService/refreshScore.js.map +1 -1
- package/dist/PRService/refreshSinglePR.d.ts +4 -1
- package/dist/PRService/refreshSinglePR.d.ts.map +1 -1
- package/dist/PRService/refreshSinglePR.js +96 -85
- package/dist/PRService/refreshSinglePR.js.map +1 -1
- package/dist/PRService/setAllAccounts.d.ts.map +1 -1
- package/dist/PRService/setAllAccounts.js +5 -2
- package/dist/PRService/setAllAccounts.js.map +1 -1
- package/dist/PRService/toggleAccount.d.ts.map +1 -1
- package/dist/PRService/toggleAccount.js +5 -2
- package/dist/PRService/toggleAccount.js.map +1 -1
- package/dist/PermissionService/AuditLog.d.ts +30 -32
- package/dist/PermissionService/AuditLog.d.ts.map +1 -1
- package/dist/PermissionService/AuditLog.js +93 -90
- package/dist/PermissionService/AuditLog.js.map +1 -1
- package/dist/PermissionService/PermissionGate.d.ts +8 -21
- package/dist/PermissionService/PermissionGate.d.ts.map +1 -1
- package/dist/PermissionService/PermissionGate.js +2 -2
- package/dist/PermissionService/PermissionGate.js.map +1 -1
- package/dist/PermissionService/PermissionGateLive.d.ts +7 -11
- package/dist/PermissionService/PermissionGateLive.d.ts.map +1 -1
- package/dist/PermissionService/PermissionGateLive.js +49 -49
- package/dist/PermissionService/PermissionGateLive.js.map +1 -1
- package/dist/PermissionService/index.d.ts +17 -17
- package/dist/PermissionService/index.d.ts.map +1 -1
- package/dist/PermissionService/index.js +52 -50
- package/dist/PermissionService/index.js.map +1 -1
- package/dist/PermissionService/operations.d.ts +1 -19
- package/dist/PermissionService/operations.d.ts.map +1 -1
- package/dist/PermissionService/operations.js.map +1 -1
- package/dist/ReadClient/ReadClient.d.ts +31 -0
- package/dist/ReadClient/ReadClient.d.ts.map +1 -0
- package/dist/ReadClient/ReadClient.js +209 -0
- package/dist/ReadClient/ReadClient.js.map +1 -0
- package/dist/ReadClient/ReadProvider.d.ts +55 -0
- package/dist/ReadClient/ReadProvider.d.ts.map +1 -0
- package/dist/ReadClient/ReadProvider.js +51 -0
- package/dist/ReadClient/ReadProvider.js.map +1 -0
- package/dist/ReadClient/classification.d.ts +13 -0
- package/dist/ReadClient/classification.d.ts.map +1 -0
- package/dist/ReadClient/classification.js +35 -0
- package/dist/ReadClient/classification.js.map +1 -0
- package/dist/ReadClient/errors.d.ts +29 -0
- package/dist/ReadClient/errors.d.ts.map +1 -0
- package/dist/ReadClient/errors.js +21 -0
- package/dist/ReadClient/errors.js.map +1 -0
- package/dist/ReadClient/index.d.ts +7 -0
- package/dist/ReadClient/index.d.ts.map +1 -0
- package/dist/ReadClient/index.js +7 -0
- package/dist/ReadClient/index.js.map +1 -0
- package/dist/ReadClient/models.d.ts +104 -0
- package/dist/ReadClient/models.d.ts.map +1 -0
- package/dist/ReadClient/models.js +93 -0
- package/dist/ReadClient/models.js.map +1 -0
- package/dist/SandboxService/DockerService.d.ts +38 -19
- package/dist/SandboxService/DockerService.d.ts.map +1 -1
- package/dist/SandboxService/DockerService.js +90 -70
- package/dist/SandboxService/DockerService.js.map +1 -1
- package/dist/SandboxService/PluginService.d.ts +11 -8
- package/dist/SandboxService/PluginService.d.ts.map +1 -1
- package/dist/SandboxService/PluginService.js +17 -16
- package/dist/SandboxService/PluginService.js.map +1 -1
- package/dist/SandboxService/SandboxService.d.ts +78 -76
- package/dist/SandboxService/SandboxService.d.ts.map +1 -1
- package/dist/SandboxService/SandboxService.js +236 -226
- package/dist/SandboxService/SandboxService.js.map +1 -1
- package/dist/SandboxService/index.d.ts +0 -1
- package/dist/SandboxService/index.d.ts.map +1 -1
- package/dist/SandboxService/index.js +0 -1
- package/dist/SandboxService/index.js.map +1 -1
- package/dist/StatsService/WeeklyStats.d.ts +112 -112
- package/dist/StatsService/index.d.ts +4 -9
- package/dist/StatsService/index.d.ts.map +1 -1
- package/dist/StatsService/index.js +113 -112
- package/dist/StatsService/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
- package/dist/SandboxService/plugins/ClaudeCodePlugin.d.ts +0 -18
- package/dist/SandboxService/plugins/ClaudeCodePlugin.d.ts.map +0 -1
- package/dist/SandboxService/plugins/ClaudeCodePlugin.js +0 -24
- package/dist/SandboxService/plugins/ClaudeCodePlugin.js.map +0 -1
package/dist/Domain.d.ts
CHANGED
|
@@ -46,90 +46,77 @@ import { Data, Schema } from "effect";
|
|
|
46
46
|
*
|
|
47
47
|
* @category Domain
|
|
48
48
|
*/
|
|
49
|
-
export declare const PullRequestId: Schema.brand<
|
|
49
|
+
export declare const PullRequestId: Schema.brand<Schema.String, "PullRequestId">;
|
|
50
50
|
export type PullRequestId = typeof PullRequestId.Type;
|
|
51
51
|
/**
|
|
52
52
|
* Branded repository name.
|
|
53
53
|
*
|
|
54
54
|
* @category Domain
|
|
55
55
|
*/
|
|
56
|
-
export declare const RepositoryName: Schema.brand<
|
|
56
|
+
export declare const RepositoryName: Schema.brand<Schema.String, "RepositoryName">;
|
|
57
57
|
export type RepositoryName = typeof RepositoryName.Type;
|
|
58
58
|
/**
|
|
59
59
|
* Branded AWS profile name.
|
|
60
60
|
*
|
|
61
61
|
* @category Domain
|
|
62
62
|
*/
|
|
63
|
-
export declare const AwsProfileName: Schema.brand<
|
|
63
|
+
export declare const AwsProfileName: Schema.brand<Schema.String, "AwsProfileName">;
|
|
64
64
|
export type AwsProfileName = typeof AwsProfileName.Type;
|
|
65
65
|
/**
|
|
66
66
|
* Branded AWS region name.
|
|
67
67
|
*
|
|
68
68
|
* @category Domain
|
|
69
69
|
*/
|
|
70
|
-
export declare const AwsRegion: Schema.brand<
|
|
70
|
+
export declare const AwsRegion: Schema.brand<Schema.String, "AwsRegion">;
|
|
71
71
|
export type AwsRegion = typeof AwsRegion.Type;
|
|
72
72
|
/**
|
|
73
73
|
* Branded comment identifier.
|
|
74
74
|
*
|
|
75
75
|
* @category Domain
|
|
76
76
|
*/
|
|
77
|
-
export declare const CommentId: Schema.brand<
|
|
77
|
+
export declare const CommentId: Schema.brand<Schema.String, "CommentId">;
|
|
78
78
|
export type CommentId = typeof CommentId.Type;
|
|
79
79
|
/**
|
|
80
80
|
* Branded sandbox identifier.
|
|
81
81
|
*
|
|
82
82
|
* @category Domain
|
|
83
83
|
*/
|
|
84
|
-
export declare const SandboxId: Schema.brand<
|
|
84
|
+
export declare const SandboxId: Schema.brand<Schema.String, "SandboxId">;
|
|
85
85
|
export type SandboxId = typeof SandboxId.Type;
|
|
86
86
|
/**
|
|
87
87
|
* Pull request status.
|
|
88
88
|
*
|
|
89
89
|
* @category Domain
|
|
90
90
|
*/
|
|
91
|
-
export declare const PullRequestStatus: Schema.
|
|
91
|
+
export declare const PullRequestStatus: Schema.Literals<readonly ["OPEN", "CLOSED", "MERGED"]>;
|
|
92
92
|
export type PullRequestStatus = typeof PullRequestStatus.Type;
|
|
93
93
|
/**
|
|
94
94
|
* Notification severity type.
|
|
95
95
|
*
|
|
96
96
|
* @category Domain
|
|
97
97
|
*/
|
|
98
|
-
export declare const NotificationType: Schema.
|
|
98
|
+
export declare const NotificationType: Schema.Literals<readonly ["error", "info", "warning", "success"]>;
|
|
99
99
|
export type NotificationType = typeof NotificationType.Type;
|
|
100
100
|
/**
|
|
101
101
|
* Application loading status.
|
|
102
102
|
*
|
|
103
103
|
* @category Domain
|
|
104
104
|
*/
|
|
105
|
-
export declare const AppStatus: Schema.
|
|
105
|
+
export declare const AppStatus: Schema.Literals<readonly ["idle", "loading", "error"]>;
|
|
106
106
|
export type AppStatus = typeof AppStatus.Type;
|
|
107
107
|
/**
|
|
108
108
|
* Sandbox lifecycle status.
|
|
109
109
|
*
|
|
110
110
|
* @category Domain
|
|
111
111
|
*/
|
|
112
|
-
export declare const SandboxStatus: Schema.
|
|
112
|
+
export declare const SandboxStatus: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
113
113
|
export type SandboxStatus = typeof SandboxStatus.Type;
|
|
114
|
-
declare const Account_base: Schema.Class<Account, {
|
|
115
|
-
profile: Schema.brand<
|
|
116
|
-
region: Schema.brand<
|
|
117
|
-
awsAccountId: Schema.optional<
|
|
118
|
-
repoAccountId: Schema.optional<
|
|
119
|
-
}
|
|
120
|
-
profile: Schema.brand<typeof Schema.String, "AwsProfileName">;
|
|
121
|
-
region: Schema.brand<typeof Schema.String, "AwsRegion">;
|
|
122
|
-
awsAccountId: Schema.optional<typeof Schema.String>;
|
|
123
|
-
repoAccountId: Schema.optional<typeof Schema.String>;
|
|
124
|
-
}>, never, {
|
|
125
|
-
readonly profile: string & import("effect/Brand").Brand<"AwsProfileName">;
|
|
126
|
-
} & {
|
|
127
|
-
readonly region: string & import("effect/Brand").Brand<"AwsRegion">;
|
|
128
|
-
} & {
|
|
129
|
-
readonly awsAccountId?: string | undefined;
|
|
130
|
-
} & {
|
|
131
|
-
readonly repoAccountId?: string | undefined;
|
|
132
|
-
}, {}, {}>;
|
|
114
|
+
declare const Account_base: Schema.Class<Account, Schema.Struct<{
|
|
115
|
+
readonly profile: Schema.brand<Schema.String, "AwsProfileName">;
|
|
116
|
+
readonly region: Schema.brand<Schema.String, "AwsRegion">;
|
|
117
|
+
readonly awsAccountId: Schema.optional<Schema.String>;
|
|
118
|
+
readonly repoAccountId: Schema.optional<Schema.String>;
|
|
119
|
+
}>, {}>;
|
|
133
120
|
/**
|
|
134
121
|
* AWS account reference (profile + region).
|
|
135
122
|
*
|
|
@@ -137,37 +124,14 @@ declare const Account_base: Schema.Class<Account, {
|
|
|
137
124
|
*/
|
|
138
125
|
export declare class Account extends Account_base {
|
|
139
126
|
}
|
|
140
|
-
declare const ApprovalRule_base: Schema.Class<ApprovalRule, {
|
|
141
|
-
ruleName:
|
|
142
|
-
requiredApprovals:
|
|
143
|
-
poolMembers: Schema
|
|
144
|
-
poolMemberArns: Schema.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
fromTemplate: Schema.optional<typeof Schema.String>;
|
|
149
|
-
}, Schema.Struct.Encoded<{
|
|
150
|
-
ruleName: typeof Schema.String;
|
|
151
|
-
requiredApprovals: typeof Schema.Number;
|
|
152
|
-
poolMembers: Schema.Array$<typeof Schema.String>;
|
|
153
|
-
poolMemberArns: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
154
|
-
default: () => never[];
|
|
155
|
-
}>;
|
|
156
|
-
satisfied: typeof Schema.Boolean;
|
|
157
|
-
fromTemplate: Schema.optional<typeof Schema.String>;
|
|
158
|
-
}>, never, {
|
|
159
|
-
readonly ruleName: string;
|
|
160
|
-
} & {
|
|
161
|
-
readonly requiredApprovals: number;
|
|
162
|
-
} & {
|
|
163
|
-
readonly satisfied: boolean;
|
|
164
|
-
} & {
|
|
165
|
-
readonly poolMembers: readonly string[];
|
|
166
|
-
} & {
|
|
167
|
-
readonly poolMemberArns?: readonly string[];
|
|
168
|
-
} & {
|
|
169
|
-
readonly fromTemplate?: string | undefined;
|
|
170
|
-
}, {}, {}>;
|
|
127
|
+
declare const ApprovalRule_base: Schema.Class<ApprovalRule, Schema.Struct<{
|
|
128
|
+
readonly ruleName: Schema.String;
|
|
129
|
+
readonly requiredApprovals: Schema.Number;
|
|
130
|
+
readonly poolMembers: Schema.$Array<Schema.String>;
|
|
131
|
+
readonly poolMemberArns: Schema.withDecodingDefaultTypeKey<Schema.$Array<Schema.String>, never>;
|
|
132
|
+
readonly satisfied: Schema.Boolean;
|
|
133
|
+
readonly fromTemplate: Schema.optional<Schema.String>;
|
|
134
|
+
}>, {}>;
|
|
171
135
|
/**
|
|
172
136
|
* Approval rule attached to a pull request.
|
|
173
137
|
*
|
|
@@ -175,105 +139,30 @@ declare const ApprovalRule_base: Schema.Class<ApprovalRule, {
|
|
|
175
139
|
*/
|
|
176
140
|
export declare class ApprovalRule extends ApprovalRule_base {
|
|
177
141
|
}
|
|
178
|
-
declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
179
|
-
id: Schema.brand<
|
|
180
|
-
title:
|
|
181
|
-
description: Schema.optional<
|
|
182
|
-
author:
|
|
183
|
-
repositoryName: Schema.brand<
|
|
184
|
-
creationDate:
|
|
185
|
-
lastModifiedDate:
|
|
186
|
-
link:
|
|
187
|
-
account: typeof Account;
|
|
188
|
-
status: Schema.
|
|
189
|
-
sourceBranch:
|
|
190
|
-
destinationBranch:
|
|
191
|
-
isMergeable:
|
|
192
|
-
isApproved:
|
|
193
|
-
commentCount: Schema.optional<
|
|
194
|
-
healthScore: Schema.optional<
|
|
195
|
-
fetchedAt: Schema.optional<
|
|
196
|
-
approvedBy: Schema
|
|
197
|
-
approvedByArns: Schema.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
approvalRules: Schema.optionalWith<Schema.Array$<typeof ApprovalRule>, {
|
|
203
|
-
default: () => never[];
|
|
204
|
-
}>;
|
|
205
|
-
}, Schema.Struct.Encoded<{
|
|
206
|
-
id: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
207
|
-
title: typeof Schema.String;
|
|
208
|
-
description: Schema.optional<typeof Schema.String>;
|
|
209
|
-
author: typeof Schema.String;
|
|
210
|
-
repositoryName: Schema.brand<typeof Schema.String, "RepositoryName">;
|
|
211
|
-
creationDate: typeof Schema.DateFromSelf;
|
|
212
|
-
lastModifiedDate: typeof Schema.DateFromSelf;
|
|
213
|
-
link: typeof Schema.String;
|
|
214
|
-
account: typeof Account;
|
|
215
|
-
status: Schema.Literal<["OPEN", "CLOSED", "MERGED"]>;
|
|
216
|
-
sourceBranch: typeof Schema.String;
|
|
217
|
-
destinationBranch: typeof Schema.String;
|
|
218
|
-
isMergeable: typeof Schema.Boolean;
|
|
219
|
-
isApproved: typeof Schema.Boolean;
|
|
220
|
-
commentCount: Schema.optional<typeof Schema.Number>;
|
|
221
|
-
healthScore: Schema.optional<typeof Schema.Number>;
|
|
222
|
-
fetchedAt: Schema.optional<typeof Schema.DateFromSelf>;
|
|
223
|
-
approvedBy: Schema.Array$<typeof Schema.String>;
|
|
224
|
-
approvedByArns: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
225
|
-
default: () => never[];
|
|
226
|
-
}>;
|
|
227
|
-
commentedBy: Schema.Array$<typeof Schema.String>;
|
|
228
|
-
filesChanged: Schema.optional<typeof Schema.Number>;
|
|
229
|
-
approvalRules: Schema.optionalWith<Schema.Array$<typeof ApprovalRule>, {
|
|
230
|
-
default: () => never[];
|
|
231
|
-
}>;
|
|
232
|
-
}>, never, {
|
|
233
|
-
readonly link: string;
|
|
234
|
-
} & {
|
|
235
|
-
readonly id: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
236
|
-
} & {
|
|
237
|
-
readonly title: string;
|
|
238
|
-
} & {
|
|
239
|
-
readonly author: string;
|
|
240
|
-
} & {
|
|
241
|
-
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
242
|
-
} & {
|
|
243
|
-
readonly creationDate: Date;
|
|
244
|
-
} & {
|
|
245
|
-
readonly lastModifiedDate: Date;
|
|
246
|
-
} & {
|
|
247
|
-
readonly account: Account;
|
|
248
|
-
} & {
|
|
249
|
-
readonly status: "OPEN" | "CLOSED" | "MERGED";
|
|
250
|
-
} & {
|
|
251
|
-
readonly sourceBranch: string;
|
|
252
|
-
} & {
|
|
253
|
-
readonly destinationBranch: string;
|
|
254
|
-
} & {
|
|
255
|
-
readonly isMergeable: boolean;
|
|
256
|
-
} & {
|
|
257
|
-
readonly isApproved: boolean;
|
|
258
|
-
} & {
|
|
259
|
-
readonly description?: string | undefined;
|
|
260
|
-
} & {
|
|
261
|
-
readonly commentCount?: number | undefined;
|
|
262
|
-
} & {
|
|
263
|
-
readonly healthScore?: number | undefined;
|
|
264
|
-
} & {
|
|
265
|
-
readonly fetchedAt?: Date | undefined;
|
|
266
|
-
} & {
|
|
267
|
-
readonly approvedBy: readonly string[];
|
|
268
|
-
} & {
|
|
269
|
-
readonly approvedByArns?: readonly string[];
|
|
270
|
-
} & {
|
|
271
|
-
readonly commentedBy: readonly string[];
|
|
272
|
-
} & {
|
|
273
|
-
readonly filesChanged?: number | undefined;
|
|
274
|
-
} & {
|
|
275
|
-
readonly approvalRules?: readonly ApprovalRule[];
|
|
276
|
-
}, {}, {}>;
|
|
142
|
+
declare const PullRequest_base: Schema.Class<PullRequest, Schema.Struct<{
|
|
143
|
+
readonly id: Schema.brand<Schema.String, "PullRequestId">;
|
|
144
|
+
readonly title: Schema.String;
|
|
145
|
+
readonly description: Schema.optional<Schema.String>;
|
|
146
|
+
readonly author: Schema.String;
|
|
147
|
+
readonly repositoryName: Schema.brand<Schema.String, "RepositoryName">;
|
|
148
|
+
readonly creationDate: Schema.Date;
|
|
149
|
+
readonly lastModifiedDate: Schema.Date;
|
|
150
|
+
readonly link: Schema.String;
|
|
151
|
+
readonly account: typeof Account;
|
|
152
|
+
readonly status: Schema.Literals<readonly ["OPEN", "CLOSED", "MERGED"]>;
|
|
153
|
+
readonly sourceBranch: Schema.String;
|
|
154
|
+
readonly destinationBranch: Schema.String;
|
|
155
|
+
readonly isMergeable: Schema.Boolean;
|
|
156
|
+
readonly isApproved: Schema.Boolean;
|
|
157
|
+
readonly commentCount: Schema.optional<Schema.Number>;
|
|
158
|
+
readonly healthScore: Schema.optional<Schema.Number>;
|
|
159
|
+
readonly fetchedAt: Schema.optional<Schema.Date>;
|
|
160
|
+
readonly approvedBy: Schema.$Array<Schema.String>;
|
|
161
|
+
readonly approvedByArns: Schema.withDecodingDefaultTypeKey<Schema.$Array<Schema.String>, never>;
|
|
162
|
+
readonly commentedBy: Schema.$Array<Schema.String>;
|
|
163
|
+
readonly filesChanged: Schema.optional<Schema.Number>;
|
|
164
|
+
readonly approvalRules: Schema.withDecodingDefaultTypeKey<Schema.$Array<typeof ApprovalRule>, never>;
|
|
165
|
+
}>, {}>;
|
|
277
166
|
/**
|
|
278
167
|
* CodeCommit pull request.
|
|
279
168
|
*
|
|
@@ -282,66 +171,50 @@ declare const PullRequest_base: Schema.Class<PullRequest, {
|
|
|
282
171
|
export declare class PullRequest extends PullRequest_base {
|
|
283
172
|
get consoleUrl(): string;
|
|
284
173
|
}
|
|
174
|
+
/**
|
|
175
|
+
* Robust identity comparison for matching a caller against an author or
|
|
176
|
+
* approval-pool member.
|
|
177
|
+
*
|
|
178
|
+
* Both sides normally arrive already normalised by `normalizeAuthor`
|
|
179
|
+
* (ARN → trailing `/`-segment), so the happy path is a plain equality. Under
|
|
180
|
+
* cross-account SSO / assumed-role setups the two strings can still diverge —
|
|
181
|
+
* e.g. one side is a full ARN or `AWSReservedSSO_<perm>_<id>/<user>` form while
|
|
182
|
+
* the other is the bare username, or they differ only in case. This is a
|
|
183
|
+
* SUPERSET of exact match: it still matches when the strings are equal, and
|
|
184
|
+
* additionally matches when, after case-folding and reducing each side to its
|
|
185
|
+
* final `/`- or `:`-segment (the username), the username segments are equal.
|
|
186
|
+
* It deliberately anchors on the username segment so unrelated users never match.
|
|
187
|
+
*
|
|
188
|
+
* @category Domain
|
|
189
|
+
*/
|
|
190
|
+
export declare const identityMatches: (callerUsername: string, prAuthor: string) => boolean;
|
|
285
191
|
/**
|
|
286
192
|
* Check if a PR needs review from the given user.
|
|
287
193
|
* Standalone function so it works with both Schema.Class instances and plain wire objects.
|
|
194
|
+
*
|
|
195
|
+
* Uses {@link identityMatches} (a superset of exact equality) for the
|
|
196
|
+
* caller-vs-pool-member and caller-vs-approver comparisons so SSO/ARN identity
|
|
197
|
+
* forms still match when they refer to the same user.
|
|
288
198
|
*/
|
|
289
199
|
export declare const needsMyReview: (pr: {
|
|
290
200
|
readonly approvalRules: ReadonlyArray<ApprovalRule>;
|
|
291
201
|
readonly approvedBy: ReadonlyArray<string>;
|
|
292
202
|
}, currentUser: string | undefined) => boolean;
|
|
293
203
|
export declare const codecommitConsoleUrl: (region: string, repo: string, prId: string) => string;
|
|
294
|
-
declare const Sandbox_base: Schema.Class<Sandbox, {
|
|
295
|
-
id: Schema.brand<
|
|
296
|
-
pullRequestId: Schema.brand<
|
|
297
|
-
awsAccountId:
|
|
298
|
-
repositoryName: Schema.brand<
|
|
299
|
-
sourceBranch:
|
|
300
|
-
containerId: Schema.optional<
|
|
301
|
-
port: Schema.optional<
|
|
302
|
-
workspacePath:
|
|
303
|
-
status: Schema.
|
|
304
|
-
error: Schema.optional<
|
|
305
|
-
createdAt:
|
|
306
|
-
lastActivityAt:
|
|
307
|
-
}
|
|
308
|
-
id: Schema.brand<typeof Schema.String, "SandboxId">;
|
|
309
|
-
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
310
|
-
awsAccountId: typeof Schema.String;
|
|
311
|
-
repositoryName: Schema.brand<typeof Schema.String, "RepositoryName">;
|
|
312
|
-
sourceBranch: typeof Schema.String;
|
|
313
|
-
containerId: Schema.optional<typeof Schema.String>;
|
|
314
|
-
port: Schema.optional<typeof Schema.Number>;
|
|
315
|
-
workspacePath: typeof Schema.String;
|
|
316
|
-
status: Schema.Literal<["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
317
|
-
error: Schema.optional<typeof Schema.String>;
|
|
318
|
-
createdAt: typeof Schema.DateFromSelf;
|
|
319
|
-
lastActivityAt: typeof Schema.DateFromSelf;
|
|
320
|
-
}>, never, {
|
|
321
|
-
readonly error?: string | undefined;
|
|
322
|
-
} & {
|
|
323
|
-
readonly awsAccountId: string;
|
|
324
|
-
} & {
|
|
325
|
-
readonly id: string & import("effect/Brand").Brand<"SandboxId">;
|
|
326
|
-
} & {
|
|
327
|
-
readonly repositoryName: string & import("effect/Brand").Brand<"RepositoryName">;
|
|
328
|
-
} & {
|
|
329
|
-
readonly status: "error" | "creating" | "cloning" | "starting" | "running" | "stopping" | "stopped";
|
|
330
|
-
} & {
|
|
331
|
-
readonly sourceBranch: string;
|
|
332
|
-
} & {
|
|
333
|
-
readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
334
|
-
} & {
|
|
335
|
-
readonly workspacePath: string;
|
|
336
|
-
} & {
|
|
337
|
-
readonly createdAt: Date;
|
|
338
|
-
} & {
|
|
339
|
-
readonly lastActivityAt: Date;
|
|
340
|
-
} & {
|
|
341
|
-
readonly containerId?: string | undefined;
|
|
342
|
-
} & {
|
|
343
|
-
readonly port?: number | undefined;
|
|
344
|
-
}, {}, {}>;
|
|
204
|
+
declare const Sandbox_base: Schema.Class<Sandbox, Schema.Struct<{
|
|
205
|
+
readonly id: Schema.brand<Schema.String, "SandboxId">;
|
|
206
|
+
readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
|
|
207
|
+
readonly awsAccountId: Schema.String;
|
|
208
|
+
readonly repositoryName: Schema.brand<Schema.String, "RepositoryName">;
|
|
209
|
+
readonly sourceBranch: Schema.String;
|
|
210
|
+
readonly containerId: Schema.optional<Schema.String>;
|
|
211
|
+
readonly port: Schema.optional<Schema.Number>;
|
|
212
|
+
readonly workspacePath: Schema.String;
|
|
213
|
+
readonly status: Schema.Literals<readonly ["creating", "cloning", "starting", "running", "stopping", "stopped", "error"]>;
|
|
214
|
+
readonly error: Schema.optional<Schema.String>;
|
|
215
|
+
readonly createdAt: Schema.Date;
|
|
216
|
+
readonly lastActivityAt: Schema.Date;
|
|
217
|
+
}>, {}>;
|
|
345
218
|
/**
|
|
346
219
|
* Code sandbox instance for a pull request.
|
|
347
220
|
*
|
|
@@ -349,41 +222,16 @@ declare const Sandbox_base: Schema.Class<Sandbox, {
|
|
|
349
222
|
*/
|
|
350
223
|
export declare class Sandbox extends Sandbox_base {
|
|
351
224
|
}
|
|
352
|
-
declare const PRComment_base: Schema.Class<PRComment, {
|
|
353
|
-
id: Schema.brand<
|
|
354
|
-
content:
|
|
355
|
-
author:
|
|
356
|
-
creationDate:
|
|
357
|
-
inReplyTo: Schema.optional<Schema.brand<
|
|
358
|
-
deleted:
|
|
359
|
-
filePath: Schema.optional<
|
|
360
|
-
lineNumber: Schema.optional<
|
|
361
|
-
}
|
|
362
|
-
id: Schema.brand<typeof Schema.String, "CommentId">;
|
|
363
|
-
content: typeof Schema.String;
|
|
364
|
-
author: typeof Schema.String;
|
|
365
|
-
creationDate: typeof Schema.DateFromSelf;
|
|
366
|
-
inReplyTo: Schema.optional<Schema.brand<typeof Schema.String, "CommentId">>;
|
|
367
|
-
deleted: typeof Schema.Boolean;
|
|
368
|
-
filePath: Schema.optional<typeof Schema.String>;
|
|
369
|
-
lineNumber: Schema.optional<typeof Schema.Number>;
|
|
370
|
-
}>, never, {
|
|
371
|
-
readonly id: string & import("effect/Brand").Brand<"CommentId">;
|
|
372
|
-
} & {
|
|
373
|
-
readonly author: string;
|
|
374
|
-
} & {
|
|
375
|
-
readonly creationDate: Date;
|
|
376
|
-
} & {
|
|
377
|
-
readonly content: string;
|
|
378
|
-
} & {
|
|
379
|
-
readonly deleted: boolean;
|
|
380
|
-
} & {
|
|
381
|
-
readonly inReplyTo?: (string & import("effect/Brand").Brand<"CommentId">) | undefined;
|
|
382
|
-
} & {
|
|
383
|
-
readonly filePath?: string | undefined;
|
|
384
|
-
} & {
|
|
385
|
-
readonly lineNumber?: number | undefined;
|
|
386
|
-
}, {}, {}>;
|
|
225
|
+
declare const PRComment_base: Schema.Class<PRComment, Schema.Struct<{
|
|
226
|
+
readonly id: Schema.brand<Schema.String, "CommentId">;
|
|
227
|
+
readonly content: Schema.String;
|
|
228
|
+
readonly author: Schema.String;
|
|
229
|
+
readonly creationDate: Schema.Date;
|
|
230
|
+
readonly inReplyTo: Schema.optional<Schema.brand<Schema.String, "CommentId">>;
|
|
231
|
+
readonly deleted: Schema.Boolean;
|
|
232
|
+
readonly filePath: Schema.optional<Schema.String>;
|
|
233
|
+
readonly lineNumber: Schema.optional<Schema.Number>;
|
|
234
|
+
}>, {}>;
|
|
387
235
|
/**
|
|
388
236
|
* Comment on a pull request.
|
|
389
237
|
*
|
|
@@ -412,14 +260,14 @@ export interface PRCommentLocation {
|
|
|
412
260
|
readonly comments: ReadonlyArray<CommentThread>;
|
|
413
261
|
}
|
|
414
262
|
declare const PRCommentJson: Schema.Struct<{
|
|
415
|
-
id:
|
|
416
|
-
content:
|
|
417
|
-
author:
|
|
418
|
-
creationDate:
|
|
419
|
-
inReplyTo: Schema.optional<
|
|
420
|
-
deleted:
|
|
421
|
-
filePath: Schema.optional<
|
|
422
|
-
lineNumber: Schema.optional<
|
|
263
|
+
readonly id: Schema.String;
|
|
264
|
+
readonly content: Schema.String;
|
|
265
|
+
readonly author: Schema.String;
|
|
266
|
+
readonly creationDate: Schema.String;
|
|
267
|
+
readonly inReplyTo: Schema.optional<Schema.String>;
|
|
268
|
+
readonly deleted: Schema.Boolean;
|
|
269
|
+
readonly filePath: Schema.optional<Schema.String>;
|
|
270
|
+
readonly lineNumber: Schema.optional<Schema.Number>;
|
|
423
271
|
}>;
|
|
424
272
|
export interface CommentThreadJsonEncoded {
|
|
425
273
|
readonly root: typeof PRCommentJson.Type;
|
|
@@ -432,10 +280,10 @@ export interface CommentThreadJsonEncoded {
|
|
|
432
280
|
* @category Domain
|
|
433
281
|
*/
|
|
434
282
|
export declare const PRCommentLocationJson: Schema.Struct<{
|
|
435
|
-
filePath: Schema.optional<
|
|
436
|
-
beforeCommitId: Schema.optional<
|
|
437
|
-
afterCommitId: Schema.optional<
|
|
438
|
-
comments: Schema
|
|
283
|
+
readonly filePath: Schema.optional<Schema.String>;
|
|
284
|
+
readonly beforeCommitId: Schema.optional<Schema.String>;
|
|
285
|
+
readonly afterCommitId: Schema.optional<Schema.String>;
|
|
286
|
+
readonly comments: Schema.$Array<Schema.Schema<CommentThreadJsonEncoded>>;
|
|
439
287
|
}>;
|
|
440
288
|
/**
|
|
441
289
|
* Encode PRCommentLocations to JSON-safe format for HTTP responses.
|
|
@@ -443,39 +291,17 @@ export declare const PRCommentLocationJson: Schema.Struct<{
|
|
|
443
291
|
* @category Domain
|
|
444
292
|
*/
|
|
445
293
|
export declare const encodeCommentLocations: (locations: ReadonlyArray<PRCommentLocation>) => ReadonlyArray<typeof PRCommentLocationJson.Type>;
|
|
446
|
-
export declare const PersistentNotificationType: Schema.
|
|
294
|
+
export declare const PersistentNotificationType: Schema.Literals<readonly ["new_comment", "comment_edited", "comment_deleted", "approval_changed", "approval_requested", "review_reminder", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
447
295
|
export type PersistentNotificationType = typeof PersistentNotificationType.Type;
|
|
448
|
-
declare const PersistentNotification_base: Schema.Class<PersistentNotification, {
|
|
449
|
-
id:
|
|
450
|
-
pullRequestId: Schema.brand<
|
|
451
|
-
awsAccountId:
|
|
452
|
-
type: Schema.
|
|
453
|
-
message:
|
|
454
|
-
createdAt:
|
|
455
|
-
read:
|
|
456
|
-
}
|
|
457
|
-
id: typeof Schema.Number;
|
|
458
|
-
pullRequestId: Schema.brand<typeof Schema.String, "PullRequestId">;
|
|
459
|
-
awsAccountId: typeof Schema.String;
|
|
460
|
-
type: Schema.Literal<["new_comment", "comment_edited", "comment_deleted", "approval_changed", "approval_requested", "review_reminder", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
461
|
-
message: typeof Schema.String;
|
|
462
|
-
createdAt: typeof Schema.DateFromSelf;
|
|
463
|
-
read: typeof Schema.Boolean;
|
|
464
|
-
}>, never, {
|
|
465
|
-
readonly awsAccountId: string;
|
|
466
|
-
} & {
|
|
467
|
-
readonly id: number;
|
|
468
|
-
} & {
|
|
469
|
-
readonly pullRequestId: string & import("effect/Brand").Brand<"PullRequestId">;
|
|
470
|
-
} & {
|
|
471
|
-
readonly createdAt: Date;
|
|
472
|
-
} & {
|
|
473
|
-
readonly type: "new_comment" | "comment_edited" | "comment_deleted" | "approval_changed" | "approval_requested" | "review_reminder" | "merge_changed" | "title_changed" | "description_changed" | "pr_merged" | "pr_closed" | "pr_reopened";
|
|
474
|
-
} & {
|
|
475
|
-
readonly message: string;
|
|
476
|
-
} & {
|
|
477
|
-
readonly read: boolean;
|
|
478
|
-
}, {}, {}>;
|
|
296
|
+
declare const PersistentNotification_base: Schema.Class<PersistentNotification, Schema.Struct<{
|
|
297
|
+
readonly id: Schema.Number;
|
|
298
|
+
readonly pullRequestId: Schema.brand<Schema.String, "PullRequestId">;
|
|
299
|
+
readonly awsAccountId: Schema.String;
|
|
300
|
+
readonly type: Schema.Literals<readonly ["new_comment", "comment_edited", "comment_deleted", "approval_changed", "approval_requested", "review_reminder", "merge_changed", "title_changed", "description_changed", "pr_merged", "pr_closed", "pr_reopened"]>;
|
|
301
|
+
readonly message: Schema.String;
|
|
302
|
+
readonly createdAt: Schema.Date;
|
|
303
|
+
readonly read: Schema.Boolean;
|
|
304
|
+
}>, {}>;
|
|
479
305
|
export declare class PersistentNotification extends PersistentNotification_base {
|
|
480
306
|
}
|
|
481
307
|
export type PRSyncStatus = Data.TaggedEnum<{
|
|
@@ -494,26 +320,15 @@ export type PRSyncStatus = Data.TaggedEnum<{
|
|
|
494
320
|
};
|
|
495
321
|
}>;
|
|
496
322
|
export declare const PRSyncStatus: {
|
|
497
|
-
readonly Cached:
|
|
323
|
+
readonly $is: <Tag extends "Cached" | "Failed" | "Syncing" | "UpToDate">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
498
324
|
readonly _tag: "Cached";
|
|
499
325
|
readonly fetchedAt: Date;
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
readonly fetchedAt: Date;
|
|
504
|
-
}, "_tag">;
|
|
505
|
-
readonly UpToDate: Data.Case.Constructor<{
|
|
506
|
-
readonly _tag: "UpToDate";
|
|
507
|
-
readonly fetchedAt: Date;
|
|
508
|
-
}, "_tag">;
|
|
509
|
-
readonly Failed: Data.Case.Constructor<{
|
|
326
|
+
}, {
|
|
327
|
+
readonly _tag: Tag;
|
|
328
|
+
}> | Extract<{
|
|
510
329
|
readonly _tag: "Failed";
|
|
511
330
|
readonly fetchedAt: Date;
|
|
512
331
|
readonly error: string;
|
|
513
|
-
}, "_tag">;
|
|
514
|
-
readonly $is: <Tag extends "Cached" | "Syncing" | "UpToDate" | "Failed">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
515
|
-
readonly _tag: "Cached";
|
|
516
|
-
readonly fetchedAt: Date;
|
|
517
332
|
}, {
|
|
518
333
|
readonly _tag: Tag;
|
|
519
334
|
}> | Extract<{
|
|
@@ -526,107 +341,92 @@ export declare const PRSyncStatus: {
|
|
|
526
341
|
readonly fetchedAt: Date;
|
|
527
342
|
}, {
|
|
528
343
|
readonly _tag: Tag;
|
|
529
|
-
}> | Extract<{
|
|
530
|
-
readonly _tag: "Failed";
|
|
531
|
-
readonly fetchedAt: Date;
|
|
532
|
-
readonly error: string;
|
|
533
|
-
}, {
|
|
534
|
-
readonly _tag: Tag;
|
|
535
344
|
}>;
|
|
536
345
|
readonly $match: {
|
|
537
|
-
<
|
|
538
|
-
readonly Cached: (args: {
|
|
539
|
-
readonly _tag: "Cached";
|
|
540
|
-
readonly fetchedAt: Date;
|
|
541
|
-
}) => any;
|
|
542
|
-
readonly Syncing: (args: {
|
|
543
|
-
readonly _tag: "Syncing";
|
|
544
|
-
readonly fetchedAt: Date;
|
|
545
|
-
}) => any;
|
|
546
|
-
readonly UpToDate: (args: {
|
|
547
|
-
readonly _tag: "UpToDate";
|
|
548
|
-
readonly fetchedAt: Date;
|
|
549
|
-
}) => any;
|
|
550
|
-
readonly Failed: (args: {
|
|
551
|
-
readonly _tag: "Failed";
|
|
552
|
-
readonly fetchedAt: Date;
|
|
553
|
-
readonly error: string;
|
|
554
|
-
}) => any;
|
|
555
|
-
}>(cases: Cases & { [K in Exclude<keyof Cases, "Cached" | "Syncing" | "UpToDate" | "Failed">]: never; }): (value: {
|
|
346
|
+
<Cases extends { readonly [Tag in "Cached" | "Failed" | "Syncing" | "UpToDate"]: (args: Extract<{
|
|
556
347
|
readonly _tag: "Cached";
|
|
557
348
|
readonly fetchedAt: Date;
|
|
349
|
+
} | {
|
|
350
|
+
readonly _tag: "Failed";
|
|
351
|
+
readonly fetchedAt: Date;
|
|
352
|
+
readonly error: string;
|
|
558
353
|
} | {
|
|
559
354
|
readonly _tag: "Syncing";
|
|
560
355
|
readonly fetchedAt: Date;
|
|
561
356
|
} | {
|
|
562
357
|
readonly _tag: "UpToDate";
|
|
563
358
|
readonly fetchedAt: Date;
|
|
359
|
+
}, {
|
|
360
|
+
readonly _tag: Tag;
|
|
361
|
+
}>) => any; }>(cases: Cases): (value: {
|
|
362
|
+
readonly _tag: "Cached";
|
|
363
|
+
readonly fetchedAt: Date;
|
|
564
364
|
} | {
|
|
565
365
|
readonly _tag: "Failed";
|
|
566
366
|
readonly fetchedAt: Date;
|
|
567
367
|
readonly error: string;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
readonly
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
readonly fetchedAt: Date;
|
|
577
|
-
}) => any;
|
|
578
|
-
readonly UpToDate: (args: {
|
|
579
|
-
readonly _tag: "UpToDate";
|
|
580
|
-
readonly fetchedAt: Date;
|
|
581
|
-
}) => any;
|
|
582
|
-
readonly Failed: (args: {
|
|
583
|
-
readonly _tag: "Failed";
|
|
584
|
-
readonly fetchedAt: Date;
|
|
585
|
-
readonly error: string;
|
|
586
|
-
}) => any;
|
|
587
|
-
}>(value: {
|
|
368
|
+
} | {
|
|
369
|
+
readonly _tag: "Syncing";
|
|
370
|
+
readonly fetchedAt: Date;
|
|
371
|
+
} | {
|
|
372
|
+
readonly _tag: "UpToDate";
|
|
373
|
+
readonly fetchedAt: Date;
|
|
374
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Cached" | "Failed" | "Syncing" | "UpToDate"]>>;
|
|
375
|
+
<Cases extends { readonly [Tag in "Cached" | "Failed" | "Syncing" | "UpToDate"]: (args: Extract<{
|
|
588
376
|
readonly _tag: "Cached";
|
|
589
377
|
readonly fetchedAt: Date;
|
|
378
|
+
} | {
|
|
379
|
+
readonly _tag: "Failed";
|
|
380
|
+
readonly fetchedAt: Date;
|
|
381
|
+
readonly error: string;
|
|
590
382
|
} | {
|
|
591
383
|
readonly _tag: "Syncing";
|
|
592
384
|
readonly fetchedAt: Date;
|
|
593
385
|
} | {
|
|
594
386
|
readonly _tag: "UpToDate";
|
|
595
387
|
readonly fetchedAt: Date;
|
|
388
|
+
}, {
|
|
389
|
+
readonly _tag: Tag;
|
|
390
|
+
}>) => any; }>(value: {
|
|
391
|
+
readonly _tag: "Cached";
|
|
392
|
+
readonly fetchedAt: Date;
|
|
596
393
|
} | {
|
|
597
394
|
readonly _tag: "Failed";
|
|
598
395
|
readonly fetchedAt: Date;
|
|
599
396
|
readonly error: string;
|
|
600
|
-
}
|
|
397
|
+
} | {
|
|
398
|
+
readonly _tag: "Syncing";
|
|
399
|
+
readonly fetchedAt: Date;
|
|
400
|
+
} | {
|
|
401
|
+
readonly _tag: "UpToDate";
|
|
402
|
+
readonly fetchedAt: Date;
|
|
403
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Cached" | "Failed" | "Syncing" | "UpToDate"]>>;
|
|
601
404
|
};
|
|
405
|
+
readonly Cached: Data.TaggedEnum.ConstructorFrom<{
|
|
406
|
+
readonly _tag: "Cached";
|
|
407
|
+
readonly fetchedAt: Date;
|
|
408
|
+
}, "_tag">;
|
|
409
|
+
readonly Failed: Data.TaggedEnum.ConstructorFrom<{
|
|
410
|
+
readonly _tag: "Failed";
|
|
411
|
+
readonly fetchedAt: Date;
|
|
412
|
+
readonly error: string;
|
|
413
|
+
}, "_tag">;
|
|
414
|
+
readonly Syncing: Data.TaggedEnum.ConstructorFrom<{
|
|
415
|
+
readonly _tag: "Syncing";
|
|
416
|
+
readonly fetchedAt: Date;
|
|
417
|
+
}, "_tag">;
|
|
418
|
+
readonly UpToDate: Data.TaggedEnum.ConstructorFrom<{
|
|
419
|
+
readonly _tag: "UpToDate";
|
|
420
|
+
readonly fetchedAt: Date;
|
|
421
|
+
}, "_tag">;
|
|
602
422
|
};
|
|
603
|
-
declare const NotificationItem_base: Schema.Class<NotificationItem, {
|
|
604
|
-
type: Schema.
|
|
605
|
-
title:
|
|
606
|
-
message:
|
|
607
|
-
timestamp:
|
|
608
|
-
profile: Schema.
|
|
609
|
-
|
|
610
|
-
}>;
|
|
611
|
-
}, Schema.Struct.Encoded<{
|
|
612
|
-
type: Schema.Literal<["error", "info", "warning", "success"]>;
|
|
613
|
-
title: typeof Schema.String;
|
|
614
|
-
message: typeof Schema.String;
|
|
615
|
-
timestamp: typeof Schema.DateFromSelf;
|
|
616
|
-
profile: Schema.optionalWith<typeof Schema.String, {
|
|
617
|
-
exact: true;
|
|
618
|
-
}>;
|
|
619
|
-
}>, never, {
|
|
620
|
-
readonly profile?: string;
|
|
621
|
-
} & {
|
|
622
|
-
readonly title: string;
|
|
623
|
-
} & {
|
|
624
|
-
readonly type: "error" | "info" | "warning" | "success";
|
|
625
|
-
} & {
|
|
626
|
-
readonly message: string;
|
|
627
|
-
} & {
|
|
628
|
-
readonly timestamp: Date;
|
|
629
|
-
}, {}, {}>;
|
|
423
|
+
declare const NotificationItem_base: Schema.Class<NotificationItem, Schema.Struct<{
|
|
424
|
+
readonly type: Schema.Literals<readonly ["error", "info", "warning", "success"]>;
|
|
425
|
+
readonly title: Schema.String;
|
|
426
|
+
readonly message: Schema.String;
|
|
427
|
+
readonly timestamp: Schema.Date;
|
|
428
|
+
readonly profile: Schema.optionalKey<Schema.String>;
|
|
429
|
+
}>, {}>;
|
|
630
430
|
/**
|
|
631
431
|
* Notification item with timestamp.
|
|
632
432
|
*
|