import { AnalysisType, ConfigFileState, EncryptionOption, JobState, ProviderType, Reaction, RecommendationCategory, RepositoryAssociationState, Severity, Type, VendorName, } from "./enums"; export interface KMSKeyDetails { KMSKeyId?: string | undefined; EncryptionOption?: EncryptionOption | undefined; } export interface ThirdPartySourceRepository { Name: string | undefined; ConnectionArn: string | undefined; Owner: string | undefined; } export interface CodeCommitRepository { Name: string | undefined; } export interface S3Repository { Name: string | undefined; BucketName: string | undefined; } export interface Repository { CodeCommit?: CodeCommitRepository | undefined; Bitbucket?: ThirdPartySourceRepository | undefined; GitHubEnterpriseServer?: ThirdPartySourceRepository | undefined; S3Bucket?: S3Repository | undefined; } export interface AssociateRepositoryRequest { Repository: Repository | undefined; ClientRequestToken?: string | undefined; Tags?: Record | undefined; KMSKeyDetails?: KMSKeyDetails | undefined; } export interface CodeArtifacts { SourceCodeArtifactsObjectKey: string | undefined; BuildArtifactsObjectKey?: string | undefined; } export interface S3RepositoryDetails { BucketName?: string | undefined; CodeArtifacts?: CodeArtifacts | undefined; } export interface RepositoryAssociation { AssociationId?: string | undefined; AssociationArn?: string | undefined; ConnectionArn?: string | undefined; Name?: string | undefined; Owner?: string | undefined; ProviderType?: ProviderType | undefined; State?: RepositoryAssociationState | undefined; StateReason?: string | undefined; LastUpdatedTimeStamp?: Date | undefined; CreatedTimeStamp?: Date | undefined; KMSKeyDetails?: KMSKeyDetails | undefined; S3RepositoryDetails?: S3RepositoryDetails | undefined; } export interface AssociateRepositoryResponse { RepositoryAssociation?: RepositoryAssociation | undefined; Tags?: Record | undefined; } export interface RepositoryHeadSourceCodeType { BranchName: string | undefined; } export interface BranchDiffSourceCodeType { SourceBranchName: string | undefined; DestinationBranchName: string | undefined; } export interface CommitDiffSourceCodeType { SourceCommit?: string | undefined; DestinationCommit?: string | undefined; MergeBaseCommit?: string | undefined; } export interface EventInfo { Name?: string | undefined; State?: string | undefined; } export interface RequestMetadata { RequestId?: string | undefined; Requester?: string | undefined; EventInfo?: EventInfo | undefined; VendorName?: VendorName | undefined; } export interface S3BucketRepository { Name: string | undefined; Details?: S3RepositoryDetails | undefined; } export interface SourceCodeType { CommitDiff?: CommitDiffSourceCodeType | undefined; RepositoryHead?: RepositoryHeadSourceCodeType | undefined; BranchDiff?: BranchDiffSourceCodeType | undefined; S3BucketRepository?: S3BucketRepository | undefined; RequestMetadata?: RequestMetadata | undefined; } export interface RepositoryAnalysis { RepositoryHead?: RepositoryHeadSourceCodeType | undefined; SourceCodeType?: SourceCodeType | undefined; } export interface CodeReviewType { RepositoryAnalysis: RepositoryAnalysis | undefined; AnalysisTypes?: AnalysisType[] | undefined; } export interface CreateCodeReviewRequest { Name: string | undefined; RepositoryAssociationArn: string | undefined; Type: CodeReviewType | undefined; ClientRequestToken?: string | undefined; } export interface Metrics { MeteredLinesOfCodeCount?: number | undefined; SuppressedLinesOfCodeCount?: number | undefined; FindingsCount?: number | undefined; } export interface CodeReview { Name?: string | undefined; CodeReviewArn?: string | undefined; RepositoryName?: string | undefined; Owner?: string | undefined; ProviderType?: ProviderType | undefined; State?: JobState | undefined; StateReason?: string | undefined; CreatedTimeStamp?: Date | undefined; LastUpdatedTimeStamp?: Date | undefined; Type?: Type | undefined; PullRequestId?: string | undefined; SourceCodeType?: SourceCodeType | undefined; AssociationArn?: string | undefined; Metrics?: Metrics | undefined; AnalysisTypes?: AnalysisType[] | undefined; ConfigFileState?: ConfigFileState | undefined; } export interface CreateCodeReviewResponse { CodeReview?: CodeReview | undefined; } export interface DescribeCodeReviewRequest { CodeReviewArn: string | undefined; } export interface DescribeCodeReviewResponse { CodeReview?: CodeReview | undefined; } export interface DescribeRecommendationFeedbackRequest { CodeReviewArn: string | undefined; RecommendationId: string | undefined; UserId?: string | undefined; } export interface RecommendationFeedback { CodeReviewArn?: string | undefined; RecommendationId?: string | undefined; Reactions?: Reaction[] | undefined; UserId?: string | undefined; CreatedTimeStamp?: Date | undefined; LastUpdatedTimeStamp?: Date | undefined; } export interface DescribeRecommendationFeedbackResponse { RecommendationFeedback?: RecommendationFeedback | undefined; } export interface DescribeRepositoryAssociationRequest { AssociationArn: string | undefined; } export interface DescribeRepositoryAssociationResponse { RepositoryAssociation?: RepositoryAssociation | undefined; Tags?: Record | undefined; } export interface DisassociateRepositoryRequest { AssociationArn: string | undefined; } export interface DisassociateRepositoryResponse { RepositoryAssociation?: RepositoryAssociation | undefined; Tags?: Record | undefined; } export interface ListCodeReviewsRequest { ProviderTypes?: ProviderType[] | undefined; States?: JobState[] | undefined; RepositoryNames?: string[] | undefined; Type: Type | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface MetricsSummary { MeteredLinesOfCodeCount?: number | undefined; SuppressedLinesOfCodeCount?: number | undefined; FindingsCount?: number | undefined; } export interface CodeReviewSummary { Name?: string | undefined; CodeReviewArn?: string | undefined; RepositoryName?: string | undefined; Owner?: string | undefined; ProviderType?: ProviderType | undefined; State?: JobState | undefined; CreatedTimeStamp?: Date | undefined; LastUpdatedTimeStamp?: Date | undefined; Type?: Type | undefined; PullRequestId?: string | undefined; MetricsSummary?: MetricsSummary | undefined; SourceCodeType?: SourceCodeType | undefined; } export interface ListCodeReviewsResponse { CodeReviewSummaries?: CodeReviewSummary[] | undefined; NextToken?: string | undefined; } export interface ListRecommendationFeedbackRequest { NextToken?: string | undefined; MaxResults?: number | undefined; CodeReviewArn: string | undefined; UserIds?: string[] | undefined; RecommendationIds?: string[] | undefined; } export interface RecommendationFeedbackSummary { RecommendationId?: string | undefined; Reactions?: Reaction[] | undefined; UserId?: string | undefined; } export interface ListRecommendationFeedbackResponse { RecommendationFeedbackSummaries?: RecommendationFeedbackSummary[] | undefined; NextToken?: string | undefined; } export interface ListRecommendationsRequest { NextToken?: string | undefined; MaxResults?: number | undefined; CodeReviewArn: string | undefined; } export interface RuleMetadata { RuleId?: string | undefined; RuleName?: string | undefined; ShortDescription?: string | undefined; LongDescription?: string | undefined; RuleTags?: string[] | undefined; } export interface RecommendationSummary { FilePath?: string | undefined; RecommendationId?: string | undefined; StartLine?: number | undefined; EndLine?: number | undefined; Description?: string | undefined; RecommendationCategory?: RecommendationCategory | undefined; RuleMetadata?: RuleMetadata | undefined; Severity?: Severity | undefined; } export interface ListRecommendationsResponse { RecommendationSummaries?: RecommendationSummary[] | undefined; NextToken?: string | undefined; } export interface ListRepositoryAssociationsRequest { ProviderTypes?: ProviderType[] | undefined; States?: RepositoryAssociationState[] | undefined; Names?: string[] | undefined; Owners?: string[] | undefined; MaxResults?: number | undefined; NextToken?: string | undefined; } export interface RepositoryAssociationSummary { AssociationArn?: string | undefined; ConnectionArn?: string | undefined; LastUpdatedTimeStamp?: Date | undefined; AssociationId?: string | undefined; Name?: string | undefined; Owner?: string | undefined; ProviderType?: ProviderType | undefined; State?: RepositoryAssociationState | undefined; } export interface ListRepositoryAssociationsResponse { RepositoryAssociationSummaries?: RepositoryAssociationSummary[] | undefined; NextToken?: string | undefined; } export interface ListTagsForResourceRequest { resourceArn: string | undefined; } export interface ListTagsForResourceResponse { Tags?: Record | undefined; } export interface PutRecommendationFeedbackRequest { CodeReviewArn: string | undefined; RecommendationId: string | undefined; Reactions: Reaction[] | undefined; } export interface PutRecommendationFeedbackResponse {} export interface TagResourceRequest { resourceArn: string | undefined; Tags: Record | undefined; } export interface TagResourceResponse {} export interface UntagResourceRequest { resourceArn: string | undefined; TagKeys: string[] | undefined; } export interface UntagResourceResponse {}