export interface Repository { readonly allow_auto_merge?: boolean; readonly id: number; readonly node_id: string; readonly name: string; readonly full_name: string; readonly private: boolean; readonly public?: boolean; readonly owner: User | null; readonly html_url: string; readonly description: string | null; readonly fork: boolean; readonly url: string; readonly forks_url: string; readonly keys_url: string; readonly collaborators_url: string; readonly teams_url: string; readonly hooks_url: string; readonly issue_events_url: string; readonly events_url: string; readonly assignees_url: string; readonly branches_url: string; readonly tags_url: string; readonly blobs_url: string; readonly git_tags_url: string; readonly git_refs_url: string; readonly trees_url: string; readonly statuses_url: string; readonly languages_url: string; readonly stargazers_url: string; readonly contributors_url: string; readonly master_branch?: string; readonly subscribers_url: string; readonly subscription_url: string; readonly commits_url: string; readonly git_commits_url: string; readonly comments_url: string; readonly issue_comment_url: string; readonly contents_url: string; readonly compare_url: string; readonly merges_url: string; readonly archive_url: string; readonly downloads_url: string; readonly issues_url: string; readonly pulls_url: string; readonly milestones_url: string; readonly notifications_url: string; readonly labels_url: string; readonly releases_url: string; readonly deployments_url: string; readonly created_at: number | string; readonly updated_at: string; readonly pushed_at: number | string | null; readonly git_url: string; readonly ssh_url: string; readonly clone_url: string; readonly svn_url: string; readonly homepage: string | null; readonly size: number; readonly stargazers?: number; readonly stargazers_count: number; readonly watchers_count: number; readonly language: string | null; readonly has_issues: boolean; readonly has_projects: boolean; readonly has_downloads: boolean; readonly has_discussions: boolean; readonly has_wiki: boolean; readonly has_pages: boolean; readonly forks_count: number; readonly mirror_url: string | null; readonly archived: boolean; readonly disabled?: boolean; readonly open_issues_count: number; readonly license: { readonly key: string; readonly name: string; readonly node_id: string; readonly spdx_id: string; readonly url: string | null; } | null; readonly allow_forking?: boolean; readonly is_template?: boolean; readonly web_commit_signoff_required?: boolean; readonly topics: string[]; readonly visibility: 'public' | 'private' | 'internal'; readonly forks: number; readonly open_issues: number; readonly organization?: string; readonly watchers: number; readonly default_branch: string; readonly allow_squash_merge?: boolean; readonly allow_update_branch?: boolean; readonly allow_merge_commit?: boolean; readonly allow_rebase_merge?: boolean; readonly delete_branch_on_merge?: boolean; readonly merge_commit_message?: 'PR_BODY' | 'PR_TITLE' | 'BLANK'; readonly merge_commit_title?: 'PR_TITLE' | 'MERGE_MESSAGE'; readonly permissions?: { readonly admin: boolean; readonly maintain?: boolean; readonly pull: boolean; readonly push: boolean; readonly triage?: boolean; }; readonly role_name?: string | null; readonly squash_merge_commit_title?: 'PR_TITLE' | 'COMMIT_OR_PR_TITLE'; readonly squash_merge_commit_message?: 'PR_BODY' | 'COMMIT_MESSAGES' | 'BLANK'; readonly use_squash_pr_title_as_default?: boolean; readonly custom_properties: Record[]; readonly network_count?: number; readonly subscribers_count?: number; } export interface TruncatedRepository { readonly archive_url?: string; readonly assignees_url?: string; readonly blobs_url?: string; readonly branches_url?: string; readonly collaborators_url?: string; readonly comments_url?: string; readonly commits_url?: string; readonly compare_url?: string; readonly contents_url?: string; readonly contributors_url?: string; readonly deployments_url?: string; readonly events_url?: string; readonly fork?: boolean; readonly forks_url?: string; readonly full_name?: string; readonly git_commits_url?: string; readonly git_refs_url?: string; readonly git_tags_url?: string; readonly hooks_url?: string; readonly html_url?: string; readonly id?: number; readonly issue_comment_url?: string; readonly issue_events_url?: string; readonly issues_url?: string; readonly keys_url?: string; readonly labels_url?: string; readonly languages_url?: string; readonly merges_url?: string; readonly milestones_url?: string; readonly name?: string; readonly node_id?: string; readonly notifications_url?: string; readonly owner?: User; readonly private?: boolean; readonly pulls_url?: string; readonly releases_url?: string; readonly stargazers_url?: string; readonly statuses_url?: string; readonly subscribers_url?: string; readonly subscriptions_url?: string; readonly tags_url?: string; readonly teams_url?: string; readonly trees_url?: string; readonly url?: string; } export interface MinimalRepository { readonly full_name: string; readonly id: number; readonly name: string; readonly node_id: string; readonly private: boolean; } export interface Account { readonly archived_at?: string | null; readonly avatar_url?: string; readonly blog?: string | null; readonly company?: string | null; readonly email?: string | null; readonly location?: string | null; readonly created_at?: string; readonly description?: null; readonly events_url?: string; readonly followers?: number; readonly followers_url?: string; readonly following?: number; readonly following_url?: string; readonly gists_url?: string; readonly gravatar_id?: string; readonly has_organization_projects?: boolean; readonly has_repository_projects?: boolean; readonly hooks_url?: string; readonly html_url: string; readonly id: number; readonly is_verified?: boolean; readonly issues_url?: string; readonly login?: string; readonly members_url?: string; readonly name?: string; readonly node_id: string; readonly organizations_url?: string; readonly public_gists?: number; readonly public_members_url?: string; readonly public_repos?: number; readonly twitter_username?: string | null; readonly received_events_url?: string; readonly repos_url?: string; readonly site_admin?: boolean; readonly slug?: string; readonly starred_url?: string; readonly subscriptions_url?: string; readonly type?: string; readonly updated_at?: string; readonly url?: string; readonly website_url?: null; } export interface PersonalAccessTokenRequest { readonly id: number; readonly owner: User; readonly permissions_added: { readonly organization?: Record; readonly repository?: Record; readonly other?: Record; }; readonly permissions_upgraded: { readonly organization?: Record; readonly repository?: Record; readonly other?: Record; }; readonly permissions_result?: { readonly organization?: Record; readonly repository?: Record; readonly other?: Record; }; readonly repository_selection: 'none' | 'all' | 'subset'; readonly repository_count: number | null; readonly repositories: MinimalRepository[] | null; readonly created_at: string; readonly token_expired: boolean; readonly token_expires_at: string | null; readonly token_last_used_at: string | null; } export interface User { readonly login: string; readonly id: number; readonly node_id?: string; readonly avatar_url?: string; readonly deleted?: boolean; readonly email?: string | null; readonly gravatar_id?: string | null; readonly url?: string; readonly html_url?: string; readonly followers_url?: string; readonly following_url?: string; readonly gists_url?: string; readonly name?: string | null; readonly starred_at?: string; readonly starred_url?: string; readonly subscriptions_url?: string; readonly organizations_url?: string; readonly repos_url?: string; readonly events_url?: string; readonly received_events_url?: string; readonly type?: 'Bot' | 'User' | 'Organization'; readonly site_admin?: boolean; } export interface TruncatedUser { readonly date?: string; readonly name: string; readonly username?: string; readonly email: string | null; } export interface Rule { readonly id: number; readonly repository_id: number; readonly name: string; readonly created_at: string; readonly updated_at: string; readonly pull_request_reviews_enforcement_level: EnforcementLevel; readonly required_approving_review_count: number; readonly dismiss_stale_reviews_on_push: boolean; readonly require_code_owner_review: boolean; readonly authorized_dismissal_actors_only: boolean; readonly ignore_approvals_from_contributors: boolean; readonly required_status_checks: string[]; readonly required_status_checks_enforcement_level: EnforcementLevel; readonly strict_required_status_checks_policy: boolean; readonly signature_requirement_enforcement_level: EnforcementLevel; readonly linear_history_requirement_enforcement_level: EnforcementLevel; readonly admin_enforced: boolean; readonly create_protected?: boolean; readonly allow_force_pushes_enforcement_level: EnforcementLevel; readonly allow_deletions_enforcement_level: EnforcementLevel; readonly merge_queue_enforcement_level: EnforcementLevel; readonly required_deployments_enforcement_level: EnforcementLevel; readonly required_conversation_resolution_level: EnforcementLevel; readonly authorized_actors_only: boolean; readonly authorized_actor_names: string[]; readonly require_last_push_approval: boolean; } export interface RepositoryRuleset { readonly id: number; readonly name: string; readonly target?: 'branch' | 'tag'; readonly source_type?: 'Repository' | 'Organization'; readonly source: string; readonly enforcement: 'disabled' | 'active' | 'evaluate'; readonly bypass_actors?: { readonly actor_id: number; readonly actor_type: 'RepositoryRole' | 'Team' | 'Integration' | 'OrganizationAdmin'; readonly bypass_mode: 'always' | 'pull_request'; }[]; readonly current_user_can_bypass?: 'always' | 'pull_requests_only' | 'never'; readonly node_id?: string; readonly _links?: { readonly self?: Link; readonly html?: Link; }; readonly conditions?: { readonly ref_name?: { readonly include?: string[]; readonly exclude?: string[]; }; readonly repository_property?: { readonly exclude?: string[]; readonly include?: string[]; }; }; readonly rules?: { readonly type?: string; readonly parameters?: Record; }[]; readonly created_at?: string; readonly updated_at?: string; } export interface CheckSuite { readonly id: number; readonly node_id: string; readonly head_branch: string | null; readonly head_sha: string; readonly status?: 'queued' | 'in_progress' | 'completed' | 'pending' | 'waiting'; readonly conclusion: 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped' | 'startup_failure' | null; readonly url: string; readonly before: string | null; readonly after: string | null; readonly pull_requests: TruncatedPullRequest[]; readonly app: App; readonly created_at: string; readonly updated_at: string; readonly rerequestable: boolean; readonly runs_rerequestable: boolean; readonly latest_check_runs_count: number; readonly check_runs_url: string; readonly head_commit: { readonly author: TruncatedUser; readonly committer: TruncatedUser; readonly id: string; readonly message: string; readonly timestamp: string; readonly tree_id: string; }; } export interface TruncatedCheckSuite { readonly after?: string | null; readonly app?: App; readonly before?: string | null; readonly conclusion?: 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped' | 'startup_failure' | null; readonly created_at?: string; readonly head_branch?: string | null; readonly head_sha?: string; readonly id?: number; readonly node_id?: string; readonly pull_requests?: TruncatedPullRequest[]; readonly repository?: TruncatedRepository; readonly status?: 'queued' | 'in_progress' | 'completed' | 'pending' | 'waiting'; readonly updated_at?: string; readonly url?: string; } export interface PullRequest { readonly url: string; readonly id: number; readonly node_id: string; readonly html_url: string; readonly diff_url: string; readonly patch_url: string; readonly issue_url: string; readonly number: number; readonly state: 'open' | 'closed'; readonly locked: boolean; readonly title: string; readonly user: User | null; readonly draft: boolean; readonly body: string | null; readonly created_at: string; readonly updated_at: string; readonly closed_at: string | null; readonly merged_at: string | null; readonly merge_commit_sha: string | null; readonly assignee: User | null; readonly assignees: User[]; readonly requested_reviewers: User[]; readonly requested_teams: Team[]; readonly labels: Label[]; readonly milestone: Milestone | null; readonly commits_url: string; readonly review_comments_url: string; readonly review_comment_url: string; readonly comments_url: string; readonly statuses_url: string; readonly head: Ref; readonly base: Ref; readonly _links: { readonly comments: Link; readonly commits: Link; readonly html: Link; readonly issue: Link; readonly review_comment: Link; readonly review_comments: Link; readonly self: Link; readonly statuses: Link; }; readonly author_association: AuthorAssociation; readonly auto_merge: { readonly commit_message: string | null; readonly commit_title: string | null; readonly enabled_by: User | null; readonly merge_method: 'merge' | 'squash' | 'rebase'; } | null; readonly active_lock_reason: ActiveLockReason | null; readonly merged?: boolean | null; readonly mergeable?: boolean | null; readonly rebaseable?: boolean | null; readonly mergeable_state?: string; readonly merged_by?: User | null; readonly comments?: number; readonly review_comments?: number; readonly maintainer_can_modify?: boolean; readonly commits?: number; readonly additions?: number; readonly deletions?: number; readonly changed_files?: number; } export interface Commit { readonly id: string; readonly tree_id: string; readonly message: string; readonly timestamp: string; readonly distinct: boolean; readonly added?: string[]; readonly modified?: string[]; readonly removed?: string[]; readonly url: string; readonly author: TruncatedUser; readonly committer: TruncatedUser; } export interface CheckRun { readonly id: number; readonly name: string; readonly node_id: string; readonly head_sha: string; readonly external_id: string; readonly url: string; readonly html_url: string; readonly details_url: string; readonly status: 'queued' | 'in_progress' | 'completed' | 'pending'; readonly conclusion: 'waiting' | 'pending' | 'startup_failure' | 'stale' | 'success' | 'failure' | 'neutral' | 'cancelled' | 'skipped' | 'timed_out' | 'action_required' | null; readonly started_at: string; readonly completed_at: string | null; readonly output: { readonly title: string | null; readonly summary: string | null; readonly text: string | null; readonly annotations_count: number; readonly annotations_url: string; }; readonly check_suite: TruncatedCheckSuite; readonly app: App; readonly pull_requests?: TruncatedPullRequest[] | null; readonly deployment?: Deployment; } export interface TruncatedCheckRun { readonly id: number; readonly name: string; readonly node_id: string; readonly head_sha: string; readonly external_id: string; readonly url: string; readonly html_url: string; readonly details_url: string; readonly status: 'queued' | 'in_progress' | 'completed' | 'pending'; readonly conclusion: 'waiting' | 'pending' | 'startup_failure' | 'stale' | 'success' | 'failure' | 'neutral' | 'cancelled' | 'skipped' | 'timed_out' | 'action_required' | null; readonly started_at: string; readonly completed_at: string | null; } export interface CustomPropertyDefinition { readonly property_name: string; readonly value_type: 'string' | 'single_select'; readonly required?: boolean; readonly default_value?: string | null; readonly description?: string | null; readonly allowed_values?: string[] | null; } export interface Enterprise { readonly id: number; readonly slug?: string; readonly name: string; readonly node_id: string; readonly avatar_url: string; readonly description: string | null; readonly website_url: string | null; readonly html_url: string; readonly created_at: string; readonly updated_at: string | null; } export interface Organization { readonly login: string; readonly id: number; readonly node_id: string; readonly url: string; readonly repos_url: string; readonly events_url: string; readonly hooks_url: string; readonly issues_url: string; readonly members_url: string; readonly public_members_url: string; readonly avatar_url: string; readonly description: string | null; } export interface Installation { readonly id: number; readonly node_id: string; readonly account?: User; readonly repository_selection: string; readonly access_tokens_url: string; readonly repositories_url: string; readonly html_url: string; readonly app_id: number; readonly app_slug: string; readonly target_id: number; readonly target_type: string; readonly permissions: Permissions; readonly events: string[]; readonly created_at: string | null; readonly updated_at: string | null; readonly single_file_name: string | null; readonly has_multiple_single_files: boolean; readonly single_file_paths: string[]; readonly suspended_by: User | null; readonly suspended_at: string | null; } export interface TruncatedInstallation { readonly id: number; readonly node_id: string; } export interface CodeScanningAlert { readonly number: number; readonly created_at: string; readonly updated_at: string | null; readonly url: string; readonly html_url: string; readonly state: 'open' | 'dismissed' | 'fixed'; readonly fixed_at?: string | null; readonly dismissed_by: User | null; readonly dismissed_at: string | null; readonly dismissed_reason: 'false positive' | `won't fix` | 'used in tests' | null; readonly dismissed_comment?: string | null; readonly instances_url?: string | null; readonly rule: { readonly id: string; readonly severity: 'none' | 'note' | 'warning' | 'error' | null; readonly description: string; readonly tags?: string[]; readonly full_description?: string; readonly help?: string; readonly security_severity_level?: string; }; readonly tool: { readonly name: string; readonly version: string | null; readonly guid?: string | null; }; readonly most_recent_instance?: { readonly analysis_key: string; readonly category?: string; readonly classifications?: string[]; readonly commit_sha?: string; readonly environment: string; readonly location?: { readonly end_column?: number; readonly end_line?: number; readonly path?: string; readonly start_column?: number; readonly start_line?: number; }; readonly message?: { readonly text?: string; }; readonly ref: string; readonly state: 'open' | 'dismissed' | 'fixed'; } | null; } export interface DependabotAlert { readonly number: number; readonly dependency: { readonly package?: { readonly ecosystem: string; readonly name: string; }; readonly manifest_path?: string; readonly scope?: 'development' | 'runtime' | null; }; readonly state: 'open' | 'dismissed' | 'fixed' | 'auto_dismissed'; readonly security_advisory: SecurityAdvisory; readonly security_vulnerability: Vulnerability; readonly url: string; readonly html_url: string; readonly created_at: string; readonly updated_at: string; readonly dismissed_at: string | null; readonly dismissed_by: User; readonly dismissed_reason: 'fix_started' | 'inaccurate' | 'no_bandwidth' | 'not_used' | 'tolerable_risk' | null; readonly dismissed_comment: string | null; readonly fixed_at: string | null; readonly auto_dismissed_at?: string | null; } export interface RepositoryVulnerabilityAlert { readonly id: number; readonly number: number; readonly node_id: string; readonly affected_range: string; readonly affected_package_name: string; readonly fixed_reason?: string; readonly fixed_at?: string; readonly fixed_in?: string; readonly external_reference: string | null; readonly external_identifier: string; readonly severity: string; readonly state: 'open' | 'dismissed' | 'fixed'; readonly ghsa_id: string; readonly created_at: string; readonly dismiss_reason?: string; readonly dismissed_at?: string; readonly dismisser?: User | null; } export interface SecretScanningAlert { readonly number?: number; readonly created_at?: string; readonly updated_at?: string | null; readonly url?: string; readonly html_url?: string; readonly locations_url?: string; readonly resolution?: 'false_positive' | 'wont_fix' | 'revoked' | 'used_in_tests' | 'pattern_deleted' | 'pattern_edited' | null; readonly resolved_at?: string | null; readonly resolved_by?: User; readonly resolution_comment?: string | null; readonly secret_type?: string; readonly push_protection_bypassed?: boolean | null; readonly push_protection_bypassed_by?: User; readonly push_protection_bypassed_at?: string | null; } export interface CommitComment extends Comment { readonly position: number | null; readonly line: number | null; readonly path: string | null; readonly commit_id: string; readonly reactions?: Reactions; } export interface DiscussionComment extends Comment { readonly child_comment_count: number; readonly discussion_id: number; readonly parent_id: number | null; readonly reactions: Reactions; readonly repository_url: string; } export interface IssueComment extends Comment { readonly issue_url: string; readonly reactions: Reactions; readonly performed_via_github_app: App; } export interface PullRequestReviewComment extends Comment { readonly pull_request_url: string; readonly position: number | null; readonly original_position: number; readonly line: number | null; readonly path: string; readonly commit_id: string; readonly original_commit_id: string; readonly pull_request_review_id: number | null; readonly diff_hunk: string; readonly _links: { readonly html: Link; readonly pull_request: Link; readonly self: Link; }; readonly reactions: Reactions; readonly in_reply_to_id?: number; readonly start_line: number | null; readonly subject_type?: 'line' | 'file'; readonly original_start_line: number | null; readonly start_side: 'LEFT' | 'RIGHT' | null; readonly original_line: number | null; readonly side: 'LEFT' | 'RIGHT'; } export interface DeployKey { readonly added_by?: string | null; readonly last_used?: string | null; readonly id: number; readonly key: string; readonly url: string; readonly title: string; readonly verified: boolean; readonly created_at: string; readonly read_only: boolean; } export interface Deployment { readonly url: string; readonly id: number; readonly node_id: string; readonly sha: string; readonly ref: string; readonly task: string; readonly payload: string | Record | null; readonly original_environment: string; readonly production_environment?: boolean; readonly transient_environment?: boolean; readonly environment: string; readonly description: string | null; readonly creator: User | null; readonly created_at: string; readonly updated_at: string; readonly statuses_url: string; readonly repository_url: string; readonly performed_via_github_app?: App | null; } export interface DeploymentStatus { readonly url: string; readonly id: number; readonly node_id: string; readonly state: 'pending' | 'success' | 'failure' | 'error'; readonly creator: User | null; readonly description: string; readonly environment: string; readonly environment_url?: string; readonly target_url: string; readonly created_at: string; readonly updated_at: string; readonly deployment_url: string; readonly repository_url: string; readonly log_url?: string; readonly performed_via_github_app?: App | null; } export interface DiscussionCategory { readonly id: number; readonly node_id?: string; readonly repository_id: number; readonly emoji: string; readonly name: string; readonly description: string; readonly created_at: string; readonly updated_at: string; readonly slug: string; readonly is_answerable: boolean; } export interface Discussion { readonly repository_url: string; readonly category: DiscussionCategory; readonly answer_html_url: string | null; readonly answer_chosen_at: string | null; readonly answer_chosen_by: User | null; readonly html_url: string; readonly id: number; readonly node_id: string; readonly number: number; readonly title: string; readonly user: User | null; readonly state: 'open' | 'closed' | 'converting' | 'transferring'; readonly state_reason: 'resolved' | 'outdated' | 'dupicate' | 'reopened' | null; readonly timeline_url?: string; readonly locked: boolean; readonly reactions?: Reactions; readonly comments: number; readonly created_at: string; readonly updated_at: string; readonly author_association: AuthorAssociation; readonly active_lock_reason: string | null; readonly body: string; } export interface Invitation { readonly created_at: string; readonly email: string | null; readonly failed_at: string | null; readonly failed_reason: string | null; readonly id: number; readonly invitation_teams_url: string; readonly inviter: User | null; readonly login: string | null; readonly node_id: string; readonly team_count: number; readonly invitation_source?: string; readonly role?: string; } export interface Issue { readonly url: string; readonly repository_url: string; readonly labels_url: string; readonly comments_url: string; readonly events_url: string; readonly html_url: string; readonly id: number; readonly node_id: string; readonly number: number; readonly title: string; readonly user: User | null; readonly labels: Label[]; readonly state?: 'open' | 'closed'; readonly state_reason?: string | null; readonly timeline_url?: string; readonly locked?: boolean; readonly assignee: User | null; readonly assignees: User[]; readonly milestone: Milestone | null; readonly comments: number; readonly created_at: string; readonly updated_at: string; readonly closed_at?: string | null; readonly draft?: boolean; readonly active_lock_reason: ActiveLockReason | null; readonly author_association: AuthorAssociation; readonly perform_via_github_app?: App | null; readonly pull_request?: { readonly diff_url?: string; readonly html_url?: string; readonly merged_at?: string; readonly patch_url?: string; readonly url?: string; }; readonly reactions: Reactions; readonly body: string | null; } export interface Milestone { readonly closed_at: string | null; readonly closed_issues: number; readonly created_at: string; readonly creator: User | null; readonly description: string | null; readonly due_on: string | null; readonly html_url: string; readonly id: number; readonly labels_url: string; readonly node_id: string; readonly number: number; readonly open_issues: number; readonly state: 'open' | 'closed'; readonly title: string; readonly updated_at: string; readonly url: string; } export interface Label { readonly id: number; readonly node_id: string; readonly url: string; readonly name: string; readonly color: string; readonly default: boolean; readonly description: string | null; } export interface Hook { readonly type: string; readonly id: number; readonly name: string; readonly active: boolean; readonly events: string[]; readonly config: { readonly content_type: 'json' | 'form'; readonly insecure_ssl: string; readonly secret?: string; readonly url: string; }; readonly updated_at: string; readonly created_at: string; readonly enterprise_id?: number; readonly test_url?: string; readonly ping_url?: string; readonly app_id?: number; readonly deliveries_url?: string; readonly last_response?: Record; [x: string]: any; } export interface Package { readonly id: number; readonly name: string; readonly namespace: string; readonly description: string | null; readonly ecosystem: string; readonly package_type?: string; readonly html_url: string; readonly created_at: string | null; readonly updated_at: string | null; readonly owner?: User | null; readonly package_version: { readonly package_url?: string; readonly id: number; readonly blob_store?: string | null; readonly version?: string; readonly summary?: string; readonly name: string; readonly description: string; readonly body?: string | Record; readonly body_html?: string; readonly container_metadata?: { readonly labels?: Record | null; readonly manifest?: Record | null; readonly tag?: { readonly digest?: string; readonly name?: string; }; } | null; readonly npm_metadata?: { readonly name?: string; readonly version?: string; readonly npm_user?: string; readonly author?: string | Record | null; readonly bugs?: string | Record | null; readonly dependencies?: Record; readonly dev_dependencies?: Record; readonly peer_dependencies?: Record; readonly optional_dependencies?: Record; readonly description?: string | null; readonly dist?: string | Record | null; readonly git_head?: string; readonly homepage?: string; readonly license?: string; readonly main?: string; readonly repository?: string | Record | null; readonly scripts?: Record; readonly id?: string; readonly node_version?: string; readonly npm_version?: string; readonly has_shrinkwrap?: boolean; readonly maintainers?: string[] | Record[]; readonly contributors?: string[] | Record[]; readonly engines?: Record; readonly keywords?: string[]; readonly files?: string[]; readonly bin?: Record; readonly man?: Record; readonly directories?: string | Record | null; readonly os?: string[]; readonly cpu?: string[]; readonly readme?: string; readonly installation_command?: string; readonly release_id?: number; readonly commit_oid?: string; readonly published_via_actions?: boolean; readonly deleted_by_id?: number; }; readonly nuget_metadata?: { readonly id?: number | string | Record | null; readonly name?: string; readonly value?: boolean | string | number | Record; }[] | null; readonly rubygems_metadata?: { readonly name?: string; readonly description?: string; readonly readme?: string; readonly homepage?: string; readonly version_info?: { readonly version?: string; }; readonly platform?: string; readonly metadata?: Record[]; readonly repo?: string; readonly dependencies?: Record[]; readonly commit_oid?: string; }[]; readonly release?: { readonly url?: string; readonly html_url?: string; readonly id?: number; readonly tag_name?: string; readonly target_commitish?: string; readonly name?: string | null; readonly draft?: boolean; readonly author?: User | null; readonly prerelease?: boolean; readonly created_at?: string; readonly published_at?: string; }; readonly manifest: string; readonly html_url: string; readonly tag_name?: string; readonly target_commitish?: string; readonly target_oid?: string; readonly draft?: boolean; readonly prerelease?: boolean; readonly created_at?: string; readonly updated_at?: string; readonly metadata: Record[]; readonly docker_metadata?: { readonly tags?: string[]; }[]; readonly package_files: { readonly download_url: string; readonly id: number; readonly name: string; readonly sha256: string | null; readonly sha1: string | null; readonly md5: string | null; readonly content_type: string; readonly state: string | null; readonly size: number; readonly created_at: string; readonly updated_at: string; }[]; readonly author?: User | null; readonly source_url: string; readonly installation_command: string; } | null; readonly registry: { readonly about_url: string; readonly name: string; readonly type: string; readonly url: string; readonly vendor: string; }; } export interface PageBuild { readonly url: string; readonly status: string; readonly error: { readonly message: string | null; }; readonly pusher: User | null; readonly commit: string | null; readonly duration: number; readonly created_at: string; readonly updated_at: string; } export interface ProjectCard { readonly after_id?: number | null; readonly url: string; readonly project_url: string; readonly column_url: string; readonly column_id: number; readonly content_url?: string; readonly id: number; readonly node_id: string; readonly note: string | null; readonly archived: boolean; readonly creator: User | null; readonly created_at: string; readonly updated_at: string; } export interface ProjectColumn { readonly after_id?: number | null; readonly url: string; readonly project_url: string; readonly cards_url: string; readonly id: number; readonly node_id: string; readonly name: string; readonly created_at: string; readonly updated_at: string; } export interface Project { readonly owner_url: string; readonly url: string; readonly html_url: string; readonly columns_url: string; readonly id: number; readonly node_id: string; readonly name: string; readonly body: string | null; readonly number: number; readonly state: 'open' | 'closed'; readonly creator: User | null; readonly created_at: string; readonly updated_at: string; } export interface ProjectV2 { readonly id: number; readonly node_id: string; readonly owner: User | null; readonly creator: User | null; readonly title: string; readonly description: string | null; readonly public: boolean; readonly closed_at: string | null; readonly created_at: string; readonly updated_at: string; readonly number: number; readonly short_description: string | null; readonly deleted_at: string | null; readonly deleted_by: User | null; } export interface ProjectV2Item { readonly id: number; readonly node_id?: string; readonly project_node_id?: string; readonly content_node_id: string; readonly content_type: 'Issue' | 'PullRequest' | 'DraftIssue'; readonly creator?: User; readonly created_at: string; readonly updated_at: string; readonly archived_at: string | null; } export interface PullRequestReviewThread { readonly node_id: string; readonly comments: PullRequestReviewComment[]; } export interface PullRequestReview { readonly id: number; readonly node_id: string; readonly user: User | null; readonly body: string | null; readonly commit_id: string; readonly submitted_at: string; readonly state: 'dismissed' | 'approved' | 'changes_requested'; readonly html_url: string; readonly pull_request_url: string; readonly author_association: AuthorAssociation; readonly _links: { readonly html: Link; readonly pull_request: Link; }; } export interface Release { readonly url: string; readonly assets_url: string; readonly upload_url: string; readonly discussion_url?: string; readonly html_url: string; readonly id: number; readonly node_id: string; readonly tag_name: string; readonly target_commitish: string; readonly name: string | null; readonly draft: boolean; readonly author: User | null; readonly prerelease: boolean; readonly created_at: string | null; readonly published_at: string | null; readonly assets: { readonly browser_download_url: string; readonly content_type: string; readonly created_at: string; readonly download_count: number; readonly id: number; readonly label: string | null; readonly name: string; readonly node_id: string; readonly size: number; readonly state: 'uploaded'; readonly updated_at: string; readonly uploader: User | null; }[]; readonly tarball_url: string | null; readonly zipball_url: string | null; readonly body: string | null; readonly reactions?: Reactions; } export interface SecretScanningAlertLocation { readonly type: 'commit' | 'issue_title' | 'issue_body' | 'issue_comment'; readonly details: { readonly path?: string; readonly start_line?: number; readonly end_line?: number; readonly start_column?: number; readonly end_column?: number; readonly blob_sha?: string; readonly blob_url?: string; readonly commit_sha?: string; readonly commit_url?: string; }; } export interface Sponsorship { readonly created_at: string; readonly maintainer?: User; readonly node_id: string; readonly privacy_level: string; readonly sponsor: User | null; readonly sponsorable: User | null; readonly tier: { readonly created_at: string; readonly description: string; readonly is_custom_ammount?: boolean; readonly is_custom_amount?: boolean; readonly is_one_time: boolean; readonly monthly_price_in_cents: number; readonly monthly_price_in_dollars: number; readonly name: string; readonly node_id: string; }; } export interface Branch { readonly name: string; readonly commit: { readonly sha: string | null; readonly url: string | null; }; readonly protected: boolean; } export interface Team { readonly deleted?: boolean; readonly name: string; readonly id: number; readonly node_id?: string; readonly slug?: string; readonly description?: string | null; readonly privacy?: 'open' | 'closed' | 'secret'; readonly url?: string; readonly html_url?: string; readonly members_url?: string; readonly notification_setting?: 'notifications_enabled' | 'notifications_disabled'; readonly repositories_url?: string; readonly permission?: string; readonly parent?: Team | null; } export interface Page { readonly page_name: string; readonly title: string; readonly summary: string | null; readonly action: 'created' | 'edited'; readonly sha: string; readonly html_url: string; } export interface WorkflowJob { readonly id: number; readonly run_id: number; readonly run_url: string; readonly node_id: string; readonly head_sha: string; readonly url: string; readonly html_url: string; readonly head_branch: string | null; readonly status: 'queued' | 'in_progress' | 'waiting' | 'completed'; readonly conclusion: 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'skipped' | null; readonly started_at: string; readonly created_at: string; readonly completed_at: string | null; readonly name: string; readonly steps: { readonly name: string; readonly status: 'queued' | 'in_progress' | 'completed'; readonly conclusion: 'failure' | 'skipped' | 'success' | 'cancelled' | null; readonly number: number; readonly started_at: string | null; readonly completed_at: string | null; }[]; readonly workflow_name: string | null; readonly check_run_url: string; readonly labels: string[]; readonly run_attempt: number; readonly runner_id: number | null; readonly runner_name: string | null; readonly runner_group_id: number | null; readonly runner_group_name: string | null; } export interface Workflow { readonly badge_url: string; readonly created_at: string; readonly html_url: string; readonly id: number; readonly name: string; readonly node_id: string; readonly path: string; readonly state: string; readonly updated_at: string; readonly url: string; } export interface WorkflowRun { readonly actor: User | null; readonly artifacts_url?: string; readonly cancel_url?: string; readonly check_suite_id: number; readonly check_suite_node_id: string; readonly check_suite_url?: string; readonly conclusion: 'success' | 'failure' | 'neutral' | 'cancelled' | 'timed_out' | 'action_required' | 'stale' | 'skipped' | null; readonly created_at: string; readonly display_title?: string; readonly event: string; readonly head_branch: string | null; readonly head_commit: { readonly author: TruncatedUser; readonly committer: TruncatedUser; readonly id: string; readonly message: string; readonly timestamp: string; readonly tree_id: string; } | null; readonly head_repository: TruncatedRepository; readonly head_sha: string; readonly html_url: string; readonly id: number; readonly jobs_url?: string; readonly logs_url?: string; readonly name: string; readonly node_id: string; readonly path: string; readonly previous_attempt_url?: string | null; readonly pull_requests: TruncatedPullRequest[]; readonly referenced_workflows?: { readonly path: string; readonly ref?: string; readonly sha: string; }[] | null; readonly repository: TruncatedRepository; readonly rerun_url?: string; readonly run_attempt: number; readonly run_number: number; readonly run_started_at: string; readonly status: 'requested' | 'in_progress' | 'completed' | 'queued' | 'pending' | 'waiting'; readonly triggering_actor?: User | null; readonly updated_at: string; readonly url: string; readonly workflow_id: number; readonly workflow_url?: string; } export interface MarketplacePurchase { readonly account?: { readonly type: string; readonly id: number; readonly node_id: string; readonly login: string; readonly organization_billing_email: string | null; }; readonly billing_cycle: string; readonly unit_count: number; readonly on_free_trial: boolean; readonly free_trial_ends_on: string | null; readonly next_billing_date: string | null; readonly plan: { readonly id: number; readonly name?: string; readonly description: string; readonly monthly_price_in_cents: number; readonly yearly_price_in_cents: number; readonly price_model: 'FREE' | 'FLAT_RATE' | 'PER_UNIT'; readonly has_free_trial: boolean; readonly unit_name?: string | null; readonly bullets: string[]; }; } export interface MergeGroup { readonly head_sha: string; readonly head_ref: string; readonly base_sha: string; readonly base_ref: string; readonly head_commit: TruncatedCommit; } export interface Membership { readonly url: string; readonly state: string; readonly role: string; readonly organization_url: string; readonly user: User | null; } export interface ProjectV2Item { readonly id: number; readonly node_id?: string; readonly project_node_id?: string; readonly content_node_id: string; readonly content_type: 'Issue' | 'PullRequest' | 'DraftIssue'; readonly creator?: User; readonly created_at: string; readonly updated_at: string; readonly archived_at: string | null; } export interface SecurityAdvisory { readonly cvss: { readonly score: number; readonly vector_string: string | null; }; readonly cwes: { readonly cwe_id: string; readonly name: string; }[]; readonly ghsa_id: string; readonly cve_id?: string; readonly summary: string; readonly description: string; readonly severity: 'low' | 'medium' | 'high' | 'critical'; readonly identifiers: { readonly value: string; readonly type: string; }[]; readonly references: { readonly url: string; }[]; readonly published_at: string; readonly updated_at: string; readonly withdrawn_at: string | null; readonly vulnerabilities: Vulnerability[]; } export interface RepositoryAdvisory { readonly ghsa_id: string; readonly cve_id: string | null; readonly url: string; readonly html_url: string; readonly summary: string; readonly description: string | null; readonly severity: 'critical' | 'high' | 'medium' | 'low' | null; readonly author: User | null; readonly publisher: User | null; readonly identifiers: { readonly type: 'CVE' | 'GHSA'; readonly value: string; }[]; readonly state: 'published' | 'closed' | 'withdrawn' | 'draft' | 'triage'; readonly created_at: string | null; readonly updated_at: string | null; readonly published_at: string | null; readonly closed_at: string | null; readonly withdrawn_at: string | null; readonly submission: { readonly accepted: boolean; } | null; readonly vulnerabilities: { readonly package: { readonly ecosystem: 'rubygems' | 'npm' | 'pip' | 'maven' | 'nuget' | 'composer' | 'go' | 'rust' | 'erlang' | 'actions' | 'pub' | 'other' | 'swift'; readonly name: string | null; }; readonly vulnerable_version_range: string | null; readonly patched_versions: string | null; readonly vulnerable_functions: string[] | null; }[]; readonly cvss: { readonly vector_string: string | null; readonly score: number | null; } | null; readonly cwes: { readonly cwe_id: string; readonly name: string; }[] | null; readonly cwe_ids: string[] | null; readonly credits: { readonly login?: string; readonly type?: 'analyst' | 'finder' | 'reporter' | 'coordinator' | 'remediation_developer' | 'remediation_reviewer' | 'remediation_verifier' | 'tool' | 'sponsor' | 'other'; }[] | null; readonly credits_detailed: { readonly user: User; readonly type: 'analyst' | 'finder' | 'reporter' | 'coordinator' | 'remediation_developer' | 'remediation_reviewer' | 'remediation_verifier' | 'tool' | 'sponsor' | 'other'; readonly state: 'accepted' | 'declined' | 'pending'; }[] | null; readonly collaborating_users: User[] | null; readonly collaborating_teams: Team[] | null; readonly private_fork: TruncatedRepository | null; } export interface SecurityAndAnalysis { readonly advanced_security?: { readonly status?: 'enabled' | 'disabled'; }; readonly dependabot_security_updates?: { readonly status?: 'enabled' | 'disabled'; }; readonly secret_scanning?: { readonly status?: 'enabled' | 'disabled'; }; readonly secret_scanning_push_protection?: { readonly status?: 'enabled' | 'disabled'; }; readonly secret_scanning_validity_checks?: { readonly status?: 'enabled' | 'disabled'; }; } interface App { readonly id: number | null; readonly slug?: string; readonly node_id: string; readonly owner: User | null; readonly name: string; readonly description: string | null; readonly external_url: string | null; readonly html_url: string; readonly created_at: string | null; readonly updated_at: string | null; readonly permissions: Permissions; readonly events?: string[]; readonly installations_count?: number; readonly client_id?: string; readonly client_secret?: string; readonly webhook_secret?: string | null; readonly pem?: string; } interface Ref { readonly label: string; readonly ref: string; readonly repo: Repository; readonly sha: string; readonly user: User | null; } interface Comment { readonly url: string; readonly html_url: string; readonly id: number; readonly node_id: string; readonly user: User | null; readonly created_at: string; readonly updated_at: string; readonly author_association: AuthorAssociation; readonly body: string; } interface Link { href: string; } interface Permissions { readonly actions?: PermissionType; readonly administration?: PermissionType; readonly checks?: PermissionType; readonly content_references?: PermissionType; readonly contents?: PermissionType; readonly deployments?: PermissionType; readonly discussions?: PermissionType; readonly emails?: PermissionType; readonly environments?: PermissionType; readonly issues?: PermissionType; readonly keys?: PermissionType; readonly members?: PermissionType; readonly metadata?: PermissionType; readonly organization_administration?: PermissionType; readonly organization_hooks?: PermissionType; readonly organization_plan?: PermissionType; readonly organization_projects?: PermissionType | 'admin'; readonly organization_secrets?: PermissionType; readonly organization_self_hosted_runners?: PermissionType; readonly organization_user_blocking?: PermissionType; readonly packages?: PermissionType; readonly pages?: PermissionType; readonly pull_requests?: PermissionType; readonly repository_hooks?: PermissionType; readonly repository_projects?: PermissionType; readonly secret_scanning_alerts?: PermissionType; readonly secrets?: PermissionType; readonly security_events?: PermissionType; readonly security_scanning_alert?: PermissionType; readonly single_file?: PermissionType; readonly statuses?: PermissionType; readonly team_discussions?: PermissionType; readonly vulnerability_alerts?: PermissionType; readonly workflows?: PermissionType; } interface Reactions { readonly url: string; readonly total_count: number; readonly '+1': number; readonly '-1': number; readonly laugh: number; readonly hooray: number; readonly confused: number; readonly heart: number; readonly rocket: number; readonly eyes: number; } interface TruncatedCommit { readonly id: number; readonly tree_id: string; readonly message: string; readonly timestamp: string; readonly author: { readonly name: string; readonly email: string; } | null; readonly committer: { readonly name: string; readonly email: string; } | null; } interface TruncatedPullRequest { readonly id: number; readonly number: number; readonly url: string; readonly head: { readonly ref: string; readonly sha: string; readonly repo: { readonly id: number; readonly url: string; readonly name: string; }; }; readonly base: { readonly ref: string; readonly sha: string; readonly repo: { readonly id: number; readonly url: string; readonly name: string; }; }; } interface Vulnerability { readonly package: { readonly ecosystem: string; readonly name: string; }; readonly severity: 'low' | 'medium' | 'high' | 'critical'; readonly vulnerable_version_range: string; readonly first_patched_version: { readonly identifier: string; } | null; } export declare type EnforcementLevel = 'off' | 'non_admins' | 'everyone'; declare type ActiveLockReason = 'resolved' | 'off-topic' | 'too heated' | 'spam'; declare type AuthorAssociation = 'COLLABORATOR' | 'CONTRIBUTOR' | 'FIRST_TIMER' | 'FIRST_TIME_CONTRIBUTOR' | 'MANNEQUIN' | 'MEMBER' | 'NONE' | 'OWNER'; declare type PermissionType = 'read' | 'write'; export {}; //# sourceMappingURL=types.d.ts.map