diff --git a/examples/OpenApiCodeGenerator.Examples/output/github-api-next.cs b/examples/OpenApiCodeGenerator.Examples/output/github-api-next.cs index 5762ab1..777c8ef 100644 --- a/examples/OpenApiCodeGenerator.Examples/output/github-api-next.cs +++ b/examples/OpenApiCodeGenerator.Examples/output/github-api-next.cs @@ -40,7 +40,7 @@ public override void Write(Utf8JsonWriter writer, TAlias value, JsonSerializerOp /// /// The type of advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GlobalAdvisoryType { [JsonStringEnumMemberName("reviewed")] @@ -54,7 +54,7 @@ public enum GlobalAdvisoryType /// /// Whether it's a group assignment or individual assignment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClassroomAssignmentType { [JsonStringEnumMemberName("individual")] @@ -66,7 +66,7 @@ public enum ClassroomAssignmentType /// /// The type of label. Read-only labels are applied automatically when the runner is configured. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RunnerLabelType { [JsonStringEnumMemberName("read-only")] @@ -78,7 +78,7 @@ public enum RunnerLabelType /// /// The ownership type of the team /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TeamSimpleType { [JsonStringEnumMemberName("enterprise")] @@ -87,49 +87,49 @@ public enum TeamSimpleType Organization } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCreationType { [JsonStringEnumMemberName("creation")] Creation } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleUpdateType { [JsonStringEnumMemberName("update")] Update } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleDeletionType { [JsonStringEnumMemberName("deletion")] Deletion } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredLinearHistoryType { [JsonStringEnumMemberName("required_linear_history")] RequiredLinearHistory } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleMergeQueueType { [JsonStringEnumMemberName("merge_queue")] MergeQueue } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredDeploymentsType { [JsonStringEnumMemberName("required_deployments")] RequiredDeployments } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredSignaturesType { [JsonStringEnumMemberName("required_signatures")] @@ -139,7 +139,7 @@ public enum RepositoryRuleRequiredSignaturesType /// /// The type of the actor /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleParamsActorType { [JsonStringEnumMemberName("User")] @@ -155,112 +155,119 @@ public enum RepositoryRuleParamsActorType /// /// The type of the reviewer /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleParamsReviewerType { [JsonStringEnumMemberName("Team")] Team } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulePullRequestType { [JsonStringEnumMemberName("pull_request")] PullRequest } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredStatusChecksType { [JsonStringEnumMemberName("required_status_checks")] RequiredStatusChecks } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleNonFastForwardType { [JsonStringEnumMemberName("non_fast_forward")] NonFastForward } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCommitMessagePatternType { [JsonStringEnumMemberName("commit_message_pattern")] CommitMessagePattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCommitAuthorEmailPatternType { [JsonStringEnumMemberName("commit_author_email_pattern")] CommitAuthorEmailPattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCommitterEmailPatternType { [JsonStringEnumMemberName("committer_email_pattern")] CommitterEmailPattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleBranchNamePatternType { [JsonStringEnumMemberName("branch_name_pattern")] BranchNamePattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleTagNamePatternType { [JsonStringEnumMemberName("tag_name_pattern")] TagNamePattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleWorkflowsType { [JsonStringEnumMemberName("workflows")] Workflows } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCodeScanningType { [JsonStringEnumMemberName("code_scanning")] CodeScanning } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCopilotCodeReviewType { [JsonStringEnumMemberName("copilot_code_review")] CopilotCodeReview } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RepositoryRuleLicenseComplianceScanningType +{ + [JsonStringEnumMemberName("license_compliance_scanning")] + LicenseComplianceScanning +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleFilePathRestrictionType { [JsonStringEnumMemberName("file_path_restriction")] FilePathRestriction } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleMaxFilePathLengthType { [JsonStringEnumMemberName("max_file_path_length")] MaxFilePathLength } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleFileExtensionRestrictionType { [JsonStringEnumMemberName("file_extension_restriction")] FileExtensionRestriction } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleMaxFileSizeType { [JsonStringEnumMemberName("max_file_size")] @@ -270,7 +277,7 @@ public enum RepositoryRuleMaxFileSizeType /// /// The type of credit the user is receiving. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryCreditType { [JsonStringEnumMemberName("analyst")] @@ -295,21 +302,21 @@ public enum RepositoryAdvisoryCreditType Other } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentFileType { [JsonStringEnumMemberName("file")] File } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentSymlinkType { [JsonStringEnumMemberName("symlink")] Symlink } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentSubmoduleType { [JsonStringEnumMemberName("submodule")] @@ -319,7 +326,7 @@ public enum ContentSubmoduleType /// /// Whether this rule targets a branch or tag. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeploymentBranchPolicyType { [JsonStringEnumMemberName("branch")] @@ -331,7 +338,7 @@ public enum DeploymentBranchPolicyType /// /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningLocationType { [JsonStringEnumMemberName("commit")] @@ -362,7 +369,7 @@ public enum SecretScanningLocationType PullRequestReviewComment } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksUserType { [JsonStringEnumMemberName("Bot")] @@ -373,7 +380,7 @@ public enum WebhooksUserType Organization } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksUserMannequinType { [JsonStringEnumMemberName("Bot")] @@ -389,7 +396,7 @@ public enum WebhooksUserMannequinType /// /// What type of scan was completed /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningScanCompletedType { [JsonStringEnumMemberName("backfill")] @@ -403,7 +410,7 @@ public enum WebhookSecretScanningScanCompletedType /// /// The severity of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GlobalAdvisorySeverity { [JsonStringEnumMemberName("critical")] @@ -421,7 +428,7 @@ public enum GlobalAdvisorySeverity /// /// The severity of the vulnerability. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertSecurityVulnerabilitySeverity { [JsonStringEnumMemberName("low")] @@ -437,7 +444,7 @@ public enum DependabotAlertSecurityVulnerabilitySeverity /// /// The severity of the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertRuleSummarySeverity { [JsonStringEnumMemberName("none")] @@ -455,7 +462,7 @@ public enum CodeScanningAlertRuleSummarySeverity /// /// The severity of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisorySeverity { [JsonStringEnumMemberName("critical")] @@ -470,10 +477,26 @@ public enum RepositoryAdvisorySeverity Unknown } +/// +/// The severity of the rule used to detect the finding. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum CodeQualityFindingRuleSeverity +{ + [JsonStringEnumMemberName("error")] + Error, + [JsonStringEnumMemberName("warning")] + Warning, + [JsonStringEnumMemberName("note")] + Note, + [JsonStringEnumMemberName("none")] + None +} + /// /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Actions { [JsonStringEnumMemberName("read")] @@ -485,7 +508,7 @@ public enum Actions /// /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Administration { [JsonStringEnumMemberName("read")] @@ -497,7 +520,7 @@ public enum Administration /// /// The level of permission to grant the access token to create and retrieve build artifact metadata records. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ArtifactMetadata { [JsonStringEnumMemberName("read")] @@ -509,7 +532,7 @@ public enum ArtifactMetadata /// /// The level of permission to create and retrieve the access token for repository attestations. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Attestations { [JsonStringEnumMemberName("read")] @@ -521,7 +544,7 @@ public enum Attestations /// /// The level of permission to grant the access token for checks on code. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Checks { [JsonStringEnumMemberName("read")] @@ -533,7 +556,7 @@ public enum Checks /// /// The level of permission to grant the access token to view and manage code quality data. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeQuality { [JsonStringEnumMemberName("read")] @@ -545,7 +568,7 @@ public enum CodeQuality /// /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Codespaces { [JsonStringEnumMemberName("read")] @@ -557,7 +580,7 @@ public enum Codespaces /// /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Contents { [JsonStringEnumMemberName("read")] @@ -569,7 +592,7 @@ public enum Contents /// /// The level of permission to grant the access token to manage Dependabot secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotSecrets { [JsonStringEnumMemberName("read")] @@ -581,7 +604,7 @@ public enum DependabotSecrets /// /// The level of permission to grant the access token for deployments and deployment statuses. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Deployments { [JsonStringEnumMemberName("read")] @@ -593,7 +616,7 @@ public enum Deployments /// /// The level of permission to grant the access token for discussions and related comments and labels. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Discussions { [JsonStringEnumMemberName("read")] @@ -605,7 +628,7 @@ public enum Discussions /// /// The level of permission to grant the access token for managing repository environments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Environments { [JsonStringEnumMemberName("read")] @@ -617,7 +640,7 @@ public enum Environments /// /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Issues { [JsonStringEnumMemberName("read")] @@ -629,7 +652,7 @@ public enum Issues /// /// The level of permission to grant the access token to manage the merge queues for a repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeQueues { [JsonStringEnumMemberName("read")] @@ -641,7 +664,7 @@ public enum MergeQueues /// /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Metadata2 { [JsonStringEnumMemberName("read")] @@ -653,7 +676,7 @@ public enum Metadata2 /// /// The level of permission to grant the access token for packages published to GitHub Packages. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Packages { [JsonStringEnumMemberName("read")] @@ -665,7 +688,7 @@ public enum Packages /// /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Pages { [JsonStringEnumMemberName("read")] @@ -677,7 +700,7 @@ public enum Pages /// /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PullRequests { [JsonStringEnumMemberName("read")] @@ -689,7 +712,7 @@ public enum PullRequests /// /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryCustomProperties { [JsonStringEnumMemberName("read")] @@ -701,7 +724,7 @@ public enum RepositoryCustomProperties /// /// The level of permission to grant the access token to manage the post-receive hooks for a repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryHooks { [JsonStringEnumMemberName("read")] @@ -713,7 +736,7 @@ public enum RepositoryHooks /// /// The level of permission to grant the access token to manage repository projects, columns, and cards. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryProjects { [JsonStringEnumMemberName("read")] @@ -727,7 +750,7 @@ public enum RepositoryProjects /// /// The level of permission to grant the access token to view and manage secret scanning alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlerts { [JsonStringEnumMemberName("read")] @@ -739,7 +762,7 @@ public enum SecretScanningAlerts /// /// The level of permission to grant the access token to manage repository secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Secrets { [JsonStringEnumMemberName("read")] @@ -751,7 +774,7 @@ public enum Secrets /// /// The level of permission to grant the access token to view and manage security events like code scanning alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityEvents { [JsonStringEnumMemberName("read")] @@ -763,7 +786,7 @@ public enum SecurityEvents /// /// The level of permission to grant the access token to manage just a single file. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SingleFile { [JsonStringEnumMemberName("read")] @@ -775,7 +798,7 @@ public enum SingleFile /// /// The level of permission to grant the access token for commit statuses. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Statuses { [JsonStringEnumMemberName("read")] @@ -787,7 +810,7 @@ public enum Statuses /// /// The level of permission to grant the access token to manage Dependabot alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum VulnerabilityAlerts { [JsonStringEnumMemberName("read")] @@ -799,7 +822,7 @@ public enum VulnerabilityAlerts /// /// The level of permission to grant the access token to update GitHub Actions workflow files. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Workflows { [JsonStringEnumMemberName("write")] @@ -809,7 +832,7 @@ public enum Workflows /// /// The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomPropertiesForOrganizations { [JsonStringEnumMemberName("read")] @@ -821,7 +844,7 @@ public enum CustomPropertiesForOrganizations /// /// The level of permission to grant the access token for organization teams and members. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Members { [JsonStringEnumMemberName("read")] @@ -833,7 +856,7 @@ public enum Members /// /// The level of permission to grant the access token to manage access to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationAdministration { [JsonStringEnumMemberName("read")] @@ -845,7 +868,7 @@ public enum OrganizationAdministration /// /// The level of permission to grant the access token for custom repository roles management. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCustomRoles { [JsonStringEnumMemberName("read")] @@ -857,7 +880,7 @@ public enum OrganizationCustomRoles /// /// The level of permission to grant the access token for custom organization roles management. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCustomOrgRoles { [JsonStringEnumMemberName("read")] @@ -869,7 +892,7 @@ public enum OrganizationCustomOrgRoles /// /// The level of permission to grant the access token for repository custom properties management at the organization level. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCustomProperties { [JsonStringEnumMemberName("read")] @@ -883,7 +906,7 @@ public enum OrganizationCustomProperties /// /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCopilotSeatManagement { [JsonStringEnumMemberName("read")] @@ -895,7 +918,7 @@ public enum OrganizationCopilotSeatManagement /// /// The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCopilotAgentSettings { [JsonStringEnumMemberName("read")] @@ -907,7 +930,7 @@ public enum OrganizationCopilotAgentSettings /// /// The level of permission to grant the access token to view and manage announcement banners for an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationAnnouncementBanners { [JsonStringEnumMemberName("read")] @@ -919,7 +942,7 @@ public enum OrganizationAnnouncementBanners /// /// The level of permission to grant the access token to view events triggered by an activity in an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationEvents { [JsonStringEnumMemberName("read")] @@ -929,7 +952,7 @@ public enum OrganizationEvents /// /// The level of permission to grant the access token to manage the post-receive hooks for an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationHooks { [JsonStringEnumMemberName("read")] @@ -941,7 +964,7 @@ public enum OrganizationHooks /// /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPersonalAccessTokens { [JsonStringEnumMemberName("read")] @@ -953,7 +976,7 @@ public enum OrganizationPersonalAccessTokens /// /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPersonalAccessTokenRequests { [JsonStringEnumMemberName("read")] @@ -965,7 +988,7 @@ public enum OrganizationPersonalAccessTokenRequests /// /// The level of permission to grant the access token for viewing an organization's plan. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPlan { [JsonStringEnumMemberName("read")] @@ -975,7 +998,7 @@ public enum OrganizationPlan /// /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationProjects { [JsonStringEnumMemberName("read")] @@ -989,7 +1012,7 @@ public enum OrganizationProjects /// /// The level of permission to grant the access token for organization packages published to GitHub Packages. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPackages { [JsonStringEnumMemberName("read")] @@ -1001,7 +1024,7 @@ public enum OrganizationPackages /// /// The level of permission to grant the access token to manage organization secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecrets { [JsonStringEnumMemberName("read")] @@ -1013,7 +1036,7 @@ public enum OrganizationSecrets /// /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSelfHostedRunners { [JsonStringEnumMemberName("read")] @@ -1025,7 +1048,7 @@ public enum OrganizationSelfHostedRunners /// /// The level of permission to grant the access token to view and manage users blocked by the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationUserBlocking { [JsonStringEnumMemberName("read")] @@ -1037,7 +1060,7 @@ public enum OrganizationUserBlocking /// /// The level of permission to grant the access token to manage the email addresses belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EmailAddresses { [JsonStringEnumMemberName("read")] @@ -1049,7 +1072,7 @@ public enum EmailAddresses /// /// The level of permission to grant the access token to manage the followers belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Followers { [JsonStringEnumMemberName("read")] @@ -1061,7 +1084,7 @@ public enum Followers /// /// The level of permission to grant the access token to manage git SSH keys. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GitSshKeys { [JsonStringEnumMemberName("read")] @@ -1073,7 +1096,7 @@ public enum GitSshKeys /// /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GpgKeys { [JsonStringEnumMemberName("read")] @@ -1085,7 +1108,7 @@ public enum GpgKeys /// /// The level of permission to grant the access token to view and manage interaction limits on a repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InteractionLimits { [JsonStringEnumMemberName("read")] @@ -1097,7 +1120,7 @@ public enum InteractionLimits /// /// The level of permission to grant the access token to manage the profile settings belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Profile { [JsonStringEnumMemberName("write")] @@ -1107,7 +1130,7 @@ public enum Profile /// /// The level of permission to grant the access token to list and manage repositories a user is starring. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Starring { [JsonStringEnumMemberName("read")] @@ -1119,7 +1142,7 @@ public enum Starring /// /// The level of permission to grant the access token for organization custom properties management at the enterprise level. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnterpriseCustomPropertiesForOrganizations { [JsonStringEnumMemberName("read")] @@ -1133,7 +1156,7 @@ public enum EnterpriseCustomPropertiesForOrganizations /// /// Describe whether all repositories have been selected or there's a selection involved /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InstallationRepositorySelection { [JsonStringEnumMemberName("all")] @@ -1145,7 +1168,7 @@ public enum InstallationRepositorySelection /// /// Type of repository selection requested. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationProgrammaticAccessGrantRequestRepositorySelection { [JsonStringEnumMemberName("none")] @@ -1159,7 +1182,7 @@ public enum OrganizationProgrammaticAccessGrantRequestRepositorySelection /// /// The policy controlling who can create pull requests: all or collaborators_only. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PullRequestCreationPolicy { [JsonStringEnumMemberName("all")] @@ -1174,7 +1197,7 @@ public enum PullRequestCreationPolicy /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SquashMergeCommitTitle { [JsonStringEnumMemberName("PR_TITLE")] @@ -1190,7 +1213,7 @@ public enum SquashMergeCommitTitle /// - `COMMIT_MESSAGES` - default to the branch's commit messages. /// - `BLANK` - default to a blank commit message. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SquashMergeCommitMessage { [JsonStringEnumMemberName("PR_BODY")] @@ -1207,7 +1230,7 @@ public enum SquashMergeCommitMessage /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeCommitTitle { [JsonStringEnumMemberName("PR_TITLE")] @@ -1223,7 +1246,7 @@ public enum MergeCommitTitle /// - `PR_BODY` - default to the pull request's body. /// - `BLANK` - default to a blank commit message. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeCommitMessage { [JsonStringEnumMemberName("PR_BODY")] @@ -1237,7 +1260,7 @@ public enum MergeCommitMessage /// /// Whether the inclusion was defined at the organization or enterprise level /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InclusionSource { [JsonStringEnumMemberName("organization")] @@ -1249,7 +1272,7 @@ public enum InclusionSource /// /// The type of the code security configuration. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TargetType { [JsonStringEnumMemberName("global")] @@ -1263,7 +1286,7 @@ public enum TargetType /// /// The enablement status of GitHub Advanced Security /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AdvancedSecurity { [JsonStringEnumMemberName("enabled")] @@ -1279,7 +1302,7 @@ public enum AdvancedSecurity /// /// The enablement status of Dependency Graph /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependencyGraph { [JsonStringEnumMemberName("enabled")] @@ -1293,7 +1316,7 @@ public enum DependencyGraph /// /// The enablement status of Automatic dependency submission /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependencyGraphAutosubmitAction { [JsonStringEnumMemberName("enabled")] @@ -1307,7 +1330,7 @@ public enum DependencyGraphAutosubmitAction /// /// The enablement status of Dependabot alerts /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlerts { [JsonStringEnumMemberName("enabled")] @@ -1321,7 +1344,7 @@ public enum DependabotAlerts /// /// The enablement status of Dependabot security updates /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotSecurityUpdates { [JsonStringEnumMemberName("enabled")] @@ -1335,7 +1358,7 @@ public enum DependabotSecurityUpdates /// /// The enablement status of Dependabot delegated alert dismissal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotDelegatedAlertDismissal { [JsonStringEnumMemberName("enabled")] @@ -1351,7 +1374,7 @@ public enum DependabotDelegatedAlertDismissal /// /// The enablement status of code scanning default setup /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningDefaultSetup2 { [JsonStringEnumMemberName("enabled")] @@ -1365,7 +1388,7 @@ public enum CodeScanningDefaultSetup2 /// /// The enablement status of code scanning delegated alert dismissal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningDelegatedAlertDismissal { [JsonStringEnumMemberName("enabled")] @@ -1379,7 +1402,7 @@ public enum CodeScanningDelegatedAlertDismissal /// /// The enablement status of secret scanning /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanning { [JsonStringEnumMemberName("enabled")] @@ -1393,7 +1416,7 @@ public enum SecretScanning /// /// The enablement status of secret scanning push protection /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningPushProtection { [JsonStringEnumMemberName("enabled")] @@ -1407,7 +1430,7 @@ public enum SecretScanningPushProtection /// /// The enablement status of secret scanning delegated bypass /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningDelegatedBypass { [JsonStringEnumMemberName("enabled")] @@ -1421,7 +1444,7 @@ public enum SecretScanningDelegatedBypass /// /// The enablement status of secret scanning validity checks /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningValidityChecks { [JsonStringEnumMemberName("enabled")] @@ -1435,7 +1458,7 @@ public enum SecretScanningValidityChecks /// /// The enablement status of secret scanning non-provider patterns /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningNonProviderPatterns { [JsonStringEnumMemberName("enabled")] @@ -1449,7 +1472,7 @@ public enum SecretScanningNonProviderPatterns /// /// The enablement status of Copilot secret scanning /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningGenericSecrets { [JsonStringEnumMemberName("enabled")] @@ -1463,7 +1486,7 @@ public enum SecretScanningGenericSecrets /// /// The enablement status of secret scanning delegated alert dismissal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningDelegatedAlertDismissal { [JsonStringEnumMemberName("enabled")] @@ -1477,7 +1500,7 @@ public enum SecretScanningDelegatedAlertDismissal /// /// The enablement status of secret scanning extended metadata /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningExtendedMetadata { [JsonStringEnumMemberName("enabled")] @@ -1491,7 +1514,7 @@ public enum SecretScanningExtendedMetadata /// /// The enablement status of private vulnerability reporting /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PrivateVulnerabilityReporting { [JsonStringEnumMemberName("enabled")] @@ -1505,7 +1528,7 @@ public enum PrivateVulnerabilityReporting /// /// The enforcement status for a security configuration /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeSecurityConfigurationEnforcement { [JsonStringEnumMemberName("enforced")] @@ -1517,7 +1540,7 @@ public enum CodeSecurityConfigurationEnforcement /// /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulesetEnforcement { [JsonStringEnumMemberName("disabled")] @@ -1531,7 +1554,7 @@ public enum RepositoryRulesetEnforcement /// /// Whether to use labeled runners or standard GitHub runners. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningDefaultSetupOptionsRunnerType { [JsonStringEnumMemberName("standard")] @@ -1545,7 +1568,7 @@ public enum CodeScanningDefaultSetupOptionsRunnerType /// /// Runner type to be used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeQualitySetupRunnerType { [JsonStringEnumMemberName("standard")] @@ -1559,7 +1582,7 @@ public enum CodeQualitySetupRunnerType /// /// Runner type to be used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeQualitySetupUpdateRunnerType { [JsonStringEnumMemberName("standard")] @@ -1571,7 +1594,7 @@ public enum CodeQualitySetupUpdateRunnerType /// /// The attachment status of the code security configuration on the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeSecurityConfigurationRepositoriesStatus { [JsonStringEnumMemberName("attached")] @@ -1595,7 +1618,7 @@ public enum CodeSecurityConfigurationRepositoriesStatus /// /// The current status of the dismissal request. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertDismissalRequestSimpleStatus { [JsonStringEnumMemberName("pending")] @@ -1611,7 +1634,7 @@ public enum DependabotAlertDismissalRequestSimpleStatus /// /// The status of the runner. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActionsHostedRunnerStatus { [JsonStringEnumMemberName("Ready")] @@ -1629,7 +1652,7 @@ public enum ActionsHostedRunnerStatus /// /// The current status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProjectsV2StatusUpdateStatus { [JsonStringEnumMemberName("INACTIVE")] @@ -1649,7 +1672,7 @@ public enum ProjectsV2StatusUpdateStatus /// /// The phase of the lifecycle that the job is currently in. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum JobStatus { [JsonStringEnumMemberName("queued")] @@ -1666,7 +1689,7 @@ public enum JobStatus Pending } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DiffEntryStatus { [JsonStringEnumMemberName("added")] @@ -1688,7 +1711,7 @@ public enum DiffEntryStatus /// /// The phase of the lifecycle that the check suite is currently in. Statuses of waiting, requested, and pending are reserved for GitHub Actions check suites. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckSuiteStatus { [JsonStringEnumMemberName("queued")] @@ -1710,7 +1733,7 @@ public enum CheckSuiteStatus /// /// The status of an autofix. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAutofixStatus2 { [JsonStringEnumMemberName("pending")] @@ -1723,7 +1746,7 @@ public enum CodeScanningAutofixStatus2 Outdated } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningVariantAnalysisStatus2 { [JsonStringEnumMemberName("in_progress")] @@ -1736,7 +1759,7 @@ public enum CodeScanningVariantAnalysisStatus2 Cancelled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CommitComparisonStatus { [JsonStringEnumMemberName("diverged")] @@ -1749,7 +1772,7 @@ public enum CommitComparisonStatus Identical } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ImportStatus { [JsonStringEnumMemberName("auth")] @@ -1789,7 +1812,7 @@ public enum ImportStatus /// /// The status of the most recent build of the Page. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PageStatus { [JsonStringEnumMemberName("built")] @@ -1805,7 +1828,7 @@ public enum PageStatus /// /// The current status of the deployment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PagesDeploymentStatusStatus { [JsonStringEnumMemberName("deployment_in_progress")] @@ -1832,7 +1855,20 @@ public enum PagesDeploymentStatusStatus Succeed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum PullRequestMergeAsyncResultStatus +{ + [JsonStringEnumMemberName("pending")] + Pending, + [JsonStringEnumMemberName("merged")] + Merged, + [JsonStringEnumMemberName("enqueued")] + Enqueued, + [JsonStringEnumMemberName("failed")] + Failed +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SimpleCheckSuiteStatus { [JsonStringEnumMemberName("queued")] @@ -1850,7 +1886,7 @@ public enum SimpleCheckSuiteStatus /// /// The phase of the lifecycle that the check is currently in. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckRunWithSimpleCheckSuiteStatus { [JsonStringEnumMemberName("queued")] @@ -1863,7 +1899,7 @@ public enum CheckRunWithSimpleCheckSuiteStatus Pending } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryImportStatus { [JsonStringEnumMemberName("success")] @@ -1877,7 +1913,7 @@ public enum WebhookRepositoryImportStatus /// /// The classification of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Classification { [JsonStringEnumMemberName("general")] @@ -1889,7 +1925,7 @@ public enum Classification /// /// The state of the Dependabot alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertWithRepositoryState { [JsonStringEnumMemberName("auto_dismissed")] @@ -1907,7 +1943,7 @@ public enum DependabotAlertWithRepositoryState /// `converting` means that the discussion is being converted from an issue. /// `transferring` means that the discussion is being transferred from another repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DiscussionState { [JsonStringEnumMemberName("open")] @@ -1925,7 +1961,7 @@ public enum DiscussionState /// /// The state of the milestone. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MilestoneState { [JsonStringEnumMemberName("open")] @@ -1937,7 +1973,7 @@ public enum MilestoneState /// /// State of the release asset. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReleaseAssetState { [JsonStringEnumMemberName("uploaded")] @@ -1949,7 +1985,7 @@ public enum ReleaseAssetState /// /// State of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertInstanceState2 { [JsonStringEnumMemberName("open")] @@ -1965,7 +2001,7 @@ public enum CodeScanningAlertInstanceState2 /// /// State of this codespace. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodespaceState { [JsonStringEnumMemberName("Unknown")] @@ -2007,7 +2043,7 @@ public enum CodespaceState /// /// The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrgMembershipState { [JsonStringEnumMemberName("active")] @@ -2019,7 +2055,7 @@ public enum OrgMembershipState /// /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecretScanningAlertState { [JsonStringEnumMemberName("open")] @@ -2028,10 +2064,22 @@ public enum OrganizationSecretScanningAlertState Resolved } +/// +/// The state of the custom pattern. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SecretScanningCustomPatternState +{ + [JsonStringEnumMemberName("published")] + Published, + [JsonStringEnumMemberName("unpublished")] + Unpublished +} + /// /// The state of the user's acceptance of the credit. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryCreditState { [JsonStringEnumMemberName("accepted")] @@ -2045,7 +2093,7 @@ public enum RepositoryAdvisoryCreditState /// /// The state of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryState { [JsonStringEnumMemberName("published")] @@ -2063,7 +2111,7 @@ public enum RepositoryAdvisoryState /// /// Whether deployment to the environment(s) was approved or rejected or pending (with comments) /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnvironmentApprovalsState { [JsonStringEnumMemberName("approved")] @@ -2077,7 +2125,7 @@ public enum EnvironmentApprovalsState /// /// Whether to approve or reject deployment to the specified environments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReviewCustomGatesStateRequiredState { [JsonStringEnumMemberName("approved")] @@ -2086,7 +2134,7 @@ public enum ReviewCustomGatesStateRequiredState Rejected } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WorkflowState { [JsonStringEnumMemberName("active")] @@ -2101,10 +2149,22 @@ public enum WorkflowState DisabledManually } +/// +/// State of the code quality finding. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum CodeQualityFindingState +{ + [JsonStringEnumMemberName("open")] + Open, + [JsonStringEnumMemberName("dismissed")] + Dismissed +} + /// /// Code quality setup has been configured or not. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeQualitySetupState { [JsonStringEnumMemberName("configured")] @@ -2116,7 +2176,7 @@ public enum CodeQualitySetupState /// /// State of a code scanning alert instance. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertInstanceListState { [JsonStringEnumMemberName("open")] @@ -2130,7 +2190,7 @@ public enum CodeScanningAlertInstanceListState /// /// The state of the status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeploymentStatusState { [JsonStringEnumMemberName("error")] @@ -2149,7 +2209,27 @@ public enum DeploymentStatusState InProgress } -[JsonConverter(typeof(JsonStringEnumConverter))] +/// +/// The suggestion's lifecycle state. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum IssueSuggestionState +{ + [JsonStringEnumMemberName("pending")] + Pending, + [JsonStringEnumMemberName("applied")] + Applied, + [JsonStringEnumMemberName("approved")] + Approved, + [JsonStringEnumMemberName("dismissed")] + Dismissed, + [JsonStringEnumMemberName("replaced")] + Replaced, + [JsonStringEnumMemberName("invalidated")] + Invalidated +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PagesHttpsCertificateState { [JsonStringEnumMemberName("new")] @@ -2181,7 +2261,7 @@ public enum PagesHttpsCertificateState /// /// The state of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryUpdateState { [JsonStringEnumMemberName("published")] @@ -2192,7 +2272,7 @@ public enum RepositoryAdvisoryUpdateState Draft } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksAlertState { [JsonStringEnumMemberName("auto_dismissed")] @@ -2204,7 +2284,7 @@ public enum WebhooksAlertState /// /// The new state. Can be `pending`, `success`, `failure`, or `error`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookStatusState { [JsonStringEnumMemberName("pending")] @@ -2220,7 +2300,7 @@ public enum WebhookStatusState /// /// The reason that the alert was dismissed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertWithRepositoryDismissedReason { [JsonStringEnumMemberName("fix_started")] @@ -2240,7 +2320,7 @@ public enum DependabotAlertWithRepositoryDismissedReason /// /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningOrganizationAlertItemsDismissedReason { [JsonStringEnumMemberName("false positive")] @@ -2249,6 +2329,8 @@ public enum CodeScanningOrganizationAlertItemsDismissedReason WontFix, [JsonStringEnumMemberName("used in tests")] UsedInTests, + [JsonStringEnumMemberName("mitigated")] + Mitigated, [JsonStringEnumMemberName("")] Unknown } @@ -2256,7 +2338,7 @@ public enum CodeScanningOrganizationAlertItemsDismissedReason /// /// The default repository access level for Dependabot updates. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DefaultLevel { [JsonStringEnumMemberName("public")] @@ -2270,7 +2352,7 @@ public enum DefaultLevel /// /// Whether team members will receive notifications when the team is mentioned. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NotificationSetting { [JsonStringEnumMemberName("notifications_enabled")] @@ -2282,7 +2364,7 @@ public enum NotificationSetting /// /// How the author is associated with the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthorAssociation2 { [JsonStringEnumMemberName("COLLABORATOR")] @@ -2306,7 +2388,7 @@ public enum AuthorAssociation2 /// /// The reason for the current state /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DiscussionStateReason { [JsonStringEnumMemberName("resolved")] @@ -2324,7 +2406,7 @@ public enum DiscussionStateReason /// /// The reason for the current state /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueStateReason { [JsonStringEnumMemberName("completed")] @@ -2342,7 +2424,7 @@ public enum IssueStateReason /// /// The color of the issue type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueTypeColor { [JsonStringEnumMemberName("gray")] @@ -2368,7 +2450,7 @@ public enum IssueTypeColor /// /// The color associated with the option. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProjectsV2FieldSingleSelectOptionColor { [JsonStringEnumMemberName("BLUE")] @@ -2392,7 +2474,7 @@ public enum ProjectsV2FieldSingleSelectOptionColor /// /// The data type of the issue field /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueFieldValueDataType { [JsonStringEnumMemberName("text")] @@ -2410,7 +2492,7 @@ public enum IssueFieldValueDataType /// /// The data type of the issue field. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueFieldDataType { [JsonStringEnumMemberName("text")] @@ -2428,7 +2510,7 @@ public enum IssueFieldDataType /// /// The field's data type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProjectsV2FieldDataType { [JsonStringEnumMemberName("assignees")] @@ -2463,7 +2545,7 @@ public enum ProjectsV2FieldDataType SubIssuesProgress } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PriceModel { [JsonStringEnumMemberName("FREE")] @@ -2477,7 +2559,7 @@ public enum PriceModel /// /// The scope of the budget /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BudgetScope { [JsonStringEnumMemberName("enterprise")] @@ -2490,6 +2572,8 @@ public enum BudgetScope CostCenter, [JsonStringEnumMemberName("multi_user_customer")] MultiUserCustomer, + [JsonStringEnumMemberName("multi_user_cost_center")] + MultiUserCostCenter, [JsonStringEnumMemberName("user")] User } @@ -2497,7 +2581,7 @@ public enum BudgetScope /// /// The image provider. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActionsHostedRunnerPoolImageSource { [JsonStringEnumMemberName("github")] @@ -2511,7 +2595,7 @@ public enum ActionsHostedRunnerPoolImageSource /// /// Source answers the question, "where did this role come from?" /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationRoleSource { [JsonStringEnumMemberName("Organization")] @@ -2527,7 +2611,7 @@ public enum OrganizationRoleSource /// /// The source of the repository property. Defaults to 'custom' if not specified. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulesetConditionsRepositoryPropertySpecSource { [JsonStringEnumMemberName("custom")] @@ -2539,7 +2623,7 @@ public enum RepositoryRulesetConditionsRepositoryPropertySpecSource /// /// What type of content was scanned /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningScanCompletedSource { [JsonStringEnumMemberName("git")] @@ -2557,7 +2641,7 @@ public enum WebhookSecretScanningScanCompletedSource /// /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActionsOrganizationPermissionsEnabledRepositories { [JsonStringEnumMemberName("all")] @@ -2571,7 +2655,7 @@ public enum ActionsOrganizationPermissionsEnabledRepositories /// /// The policy that controls whether self-hosted runners can be used by repositories in the organization /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SelfHostedRunnersSettingsEnabledRepositories { [JsonStringEnumMemberName("all")] @@ -2585,7 +2669,7 @@ public enum SelfHostedRunnersSettingsEnabledRepositories /// /// The permissions policy that controls the actions and reusable workflows that are allowed to run. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AllowedActions2 { [JsonStringEnumMemberName("all")] @@ -2599,7 +2683,7 @@ public enum AllowedActions2 /// /// The policy that controls when fork PR workflows require approval from a maintainer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ApprovalPolicy { [JsonStringEnumMemberName("first_time_contributors_new_to_github")] @@ -2613,7 +2697,7 @@ public enum ApprovalPolicy /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DefaultWorkflowPermissions { [JsonStringEnumMemberName("read")] @@ -2625,7 +2709,7 @@ public enum DefaultWorkflowPermissions /// /// Visibility of a secret /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationActionsSecretVisibility { [JsonStringEnumMemberName("all")] @@ -2636,7 +2720,7 @@ public enum OrganizationActionsSecretVisibility Selected } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PackageVisibility { [JsonStringEnumMemberName("private")] @@ -2648,7 +2732,7 @@ public enum PackageVisibility /// /// The visibility of the issue field. Can be `organization_members_only` (visible only within the organization) or `all` (visible to all users who can see issues). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueFieldVisibility { [JsonStringEnumMemberName("organization_members_only")] @@ -2657,10 +2741,26 @@ public enum IssueFieldVisibility All } +/// +/// How the team's access to the repository was granted. This property is only +/// present when the team is returned in a repository context, such as +/// `GET /repos/{owner}/{repo}/teams`. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum AccessSource +{ + [JsonStringEnumMemberName("direct")] + Direct, + [JsonStringEnumMemberName("organization")] + Organization, + [JsonStringEnumMemberName("enterprise")] + Enterprise +} + /// /// The security severity of the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecuritySeverityLevel { [JsonStringEnumMemberName("low")] @@ -2678,7 +2778,7 @@ public enum SecuritySeverityLevel /// /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PrebuildAvailability { [JsonStringEnumMemberName("none")] @@ -2694,7 +2794,7 @@ public enum PrebuildAvailability /// /// The initally assigned location of a new codespace. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Location { [JsonStringEnumMemberName("EastUs")] @@ -2714,7 +2814,7 @@ public enum Location /// - `writer`: Default write permissions (organization spaces only) /// - `admin`: Default admin permissions (organization spaces only) /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CopilotSpaceBaseRole { [JsonStringEnumMemberName("reader")] @@ -2730,7 +2830,7 @@ public enum CopilotSpaceBaseRole /// /// The system role from which this role inherits permissions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationRoleBaseRole { [JsonStringEnumMemberName("read")] @@ -2750,7 +2850,7 @@ public enum OrganizationRoleBaseRole /// /// The type of the resource. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ResourceType { [JsonStringEnumMemberName("repository")] @@ -2772,7 +2872,7 @@ public enum ResourceType /// /// The organization policy for allowing or blocking suggestions matching public code (duplication detection filter). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PublicCodeSuggestions { [JsonStringEnumMemberName("allow")] @@ -2786,7 +2886,7 @@ public enum PublicCodeSuggestions /// /// The organization policy for allowing or disallowing Copilot Chat in the IDE. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdeChat { [JsonStringEnumMemberName("enabled")] @@ -2800,7 +2900,7 @@ public enum IdeChat /// /// The organization policy for allowing or disallowing Copilot features on GitHub.com. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PlatformChat { [JsonStringEnumMemberName("enabled")] @@ -2814,7 +2914,7 @@ public enum PlatformChat /// /// The organization policy for allowing or disallowing Copilot CLI. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Cli { [JsonStringEnumMemberName("enabled")] @@ -2828,7 +2928,7 @@ public enum Cli /// /// The mode of assigning new seats. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SeatManagementSetting { [JsonStringEnumMemberName("assign_all")] @@ -2844,7 +2944,7 @@ public enum SeatManagementSetting /// /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CopilotOrganizationDetailsPlanType { [JsonStringEnumMemberName("business")] @@ -2856,7 +2956,7 @@ public enum CopilotOrganizationDetailsPlanType /// /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CopilotSeatDetailsPlanType { [JsonStringEnumMemberName("business")] @@ -2867,7 +2967,7 @@ public enum CopilotSeatDetailsPlanType Unknown } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PackageType { [JsonStringEnumMemberName("npm")] @@ -2887,7 +2987,7 @@ public enum PackageType /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Limit { [JsonStringEnumMemberName("existing_users")] @@ -2901,7 +3001,7 @@ public enum Limit /// /// The duration of the interaction restriction. Default: `one_day`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Expiry { [JsonStringEnumMemberName("one_day")] @@ -2919,7 +3019,7 @@ public enum Expiry /// /// The user's membership type in the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrgMembershipRole { [JsonStringEnumMemberName("admin")] @@ -2931,10 +3031,10 @@ public enum OrgMembershipRole } /// -/// The role of the user in the team. +/// The member's role on the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum TeamMembershipRole +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum TeamMemberRole { [JsonStringEnumMemberName("member")] Member, @@ -2945,7 +3045,7 @@ public enum TeamMembershipRole /// /// Determines if the team has a direct, indirect, or mixed relationship to a role /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Assignment { [JsonStringEnumMemberName("direct")] @@ -2959,7 +3059,7 @@ public enum Assignment /// /// The registry type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RegistryType { [JsonStringEnumMemberName("maven_repository")] @@ -2997,7 +3097,7 @@ public enum RegistryType /// /// The authentication type for the private registry. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthType { [JsonStringEnumMemberName("token")] @@ -3019,7 +3119,7 @@ public enum AuthType /// /// The merge method to use. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeMethod { [JsonStringEnumMemberName("merge")] @@ -3033,7 +3133,7 @@ public enum MergeMethod /// /// The type of content tracked in a project item /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentType { [JsonStringEnumMemberName("Issue")] @@ -3047,7 +3147,7 @@ public enum ContentType /// /// The layout of the view. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Layout { [JsonStringEnumMemberName("table")] @@ -3061,7 +3161,7 @@ public enum Layout /// /// The source type of the property /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomPropertySourceType { [JsonStringEnumMemberName("organization")] @@ -3073,7 +3173,7 @@ public enum CustomPropertySourceType /// /// The type of the source of the ruleset /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulesetSourceType { [JsonStringEnumMemberName("Repository")] @@ -3087,7 +3187,7 @@ public enum RepositoryRulesetSourceType /// /// The type of the value for the property /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ValueType { [JsonStringEnumMemberName("string")] @@ -3105,7 +3205,7 @@ public enum ValueType /// /// Who can edit the values of the property /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ValuesEditableBy { [JsonStringEnumMemberName("org_actors")] @@ -3119,7 +3219,7 @@ public enum ValuesEditableBy /// /// The type of actor that can bypass a ruleset. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActorType { [JsonStringEnumMemberName("Integration")] @@ -3139,7 +3239,7 @@ public enum ActorType /// /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BypassMode { [JsonStringEnumMemberName("always")] @@ -3153,7 +3253,7 @@ public enum BypassMode /// /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AlertsThreshold { [JsonStringEnumMemberName("none")] @@ -3169,7 +3269,7 @@ public enum AlertsThreshold /// /// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityAlertsThreshold { [JsonStringEnumMemberName("none")] @@ -3187,7 +3287,7 @@ public enum SecurityAlertsThreshold /// /// The target of the ruleset /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Target { [JsonStringEnumMemberName("branch")] @@ -3204,7 +3304,7 @@ public enum Target /// The bypass type of the user making the API request for this ruleset. This field is only returned when /// querying the repository-level endpoint. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CurrentUserCanBypass { [JsonStringEnumMemberName("always")] @@ -3220,7 +3320,7 @@ public enum CurrentUserCanBypass /// /// The result of the rule evaluations for rules with the `active` enforcement status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Result { [JsonStringEnumMemberName("pass")] @@ -3234,7 +3334,7 @@ public enum Result /// /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EvaluationResult { [JsonStringEnumMemberName("pass")] @@ -3250,7 +3350,7 @@ public enum EvaluationResult /// /// **Required when the `state` is `resolved`.** The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecretScanningAlertResolution { [JsonStringEnumMemberName("false_positive")] @@ -3268,7 +3368,7 @@ public enum OrganizationSecretScanningAlertResolution /// /// The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertWebhookResolution { [JsonStringEnumMemberName("false_positive")] @@ -3290,7 +3390,7 @@ public enum SecretScanningAlertWebhookResolution /// /// The token status as of the latest validity check. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Validity { [JsonStringEnumMemberName("active")] @@ -3301,10 +3401,34 @@ public enum Validity Unknown } +/// +/// A machine-readable code describing the error. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Code +{ + [JsonStringEnumMemberName("invalid")] + Invalid, + [JsonStringEnumMemberName("unprocessable")] + Unprocessable, + [JsonStringEnumMemberName("start_delimiter")] + StartDelimiter, + [JsonStringEnumMemberName("end_delimiter")] + EndDelimiter, + [JsonStringEnumMemberName("name")] + Name, + [JsonStringEnumMemberName("must_match")] + MustMatch, + [JsonStringEnumMemberName("must_not_match")] + MustNotMatch, + [JsonStringEnumMemberName("custom_pattern_version_mismatch")] + CustomPatternVersionMismatch +} + /// /// The default push protection setting for this pattern. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DefaultSetting { [JsonStringEnumMemberName("disabled")] @@ -3316,7 +3440,7 @@ public enum DefaultSetting /// /// The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnterpriseSetting { [JsonStringEnumMemberName("not-set")] @@ -3332,7 +3456,7 @@ public enum EnterpriseSetting /// /// The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Setting { [JsonStringEnumMemberName("not-set")] @@ -3346,7 +3470,7 @@ public enum Setting /// /// The policy that controls how immutable releases are enforced in the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnforcedRepositories { [JsonStringEnumMemberName("all")] @@ -3360,7 +3484,7 @@ public enum EnforcedRepositories /// /// The hosted compute service the network configuration supports. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ComputeService { [JsonStringEnumMemberName("none")] @@ -3374,7 +3498,7 @@ public enum ComputeService /// /// The level of privacy this team should have /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TeamFullPrivacy { [JsonStringEnumMemberName("closed")] @@ -3383,7 +3507,7 @@ public enum TeamFullPrivacy Secret } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksTeamPrivacy { [JsonStringEnumMemberName("open")] @@ -3397,7 +3521,7 @@ public enum WebhooksTeamPrivacy /// /// The outcome of the job. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum JobConclusion { [JsonStringEnumMemberName("success")] @@ -3418,7 +3542,7 @@ public enum JobConclusion Unknown } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckSuiteConclusion { [JsonStringEnumMemberName("success")] @@ -3443,7 +3567,7 @@ public enum CheckSuiteConclusion Unknown } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SimpleCheckSuiteConclusion { [JsonStringEnumMemberName("success")] @@ -3468,7 +3592,7 @@ public enum SimpleCheckSuiteConclusion Unknown } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckRunWithSimpleCheckSuiteConclusion { [JsonStringEnumMemberName("waiting")] @@ -3503,7 +3627,7 @@ public enum CheckRunWithSimpleCheckSuiteConclusion /// /// `none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccessLevel { [JsonStringEnumMemberName("none")] @@ -3517,7 +3641,7 @@ public enum AccessLevel /// /// The type of the activity that was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActivityType { [JsonStringEnumMemberName("push")] @@ -3534,10 +3658,24 @@ public enum ActivityType MergeQueueMerge } +/// +/// The category of the rule used to detect the finding. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Category +{ + [JsonStringEnumMemberName("none")] + None, + [JsonStringEnumMemberName("maintainability")] + Maintainability, + [JsonStringEnumMemberName("reliability")] + Reliability +} + /// /// The frequency of the periodic analysis. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Schedule { [JsonStringEnumMemberName("weekly")] @@ -3546,10 +3684,36 @@ public enum Schedule Unknown } +/// +/// The AI findings configuration for the repository. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum CodeQualitySetupAiFindingsOption +{ + [JsonStringEnumMemberName("disabled")] + Disabled, + [JsonStringEnumMemberName("on_push")] + OnPush, + [JsonStringEnumMemberName("")] + Unknown +} + +/// +/// Whether AI findings run for Code Quality on this repository. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum CodeQualitySetupUpdateAiFindingsOption +{ + [JsonStringEnumMemberName("disabled")] + Disabled, + [JsonStringEnumMemberName("on_push")] + OnPush +} + /// /// The language targeted by the CodeQL query /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum QueryLanguage { [JsonStringEnumMemberName("actions")] @@ -3577,7 +3741,7 @@ public enum QueryLanguage /// /// The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FailureReason { [JsonStringEnumMemberName("no_repos_queried")] @@ -3591,7 +3755,7 @@ public enum FailureReason /// /// The new status of the CodeQL variant analysis repository task. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AnalysisStatus { [JsonStringEnumMemberName("pending")] @@ -3611,7 +3775,7 @@ public enum AnalysisStatus /// /// CodeQL query suite to be used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum QuerySuite { [JsonStringEnumMemberName("default")] @@ -3623,7 +3787,7 @@ public enum QuerySuite /// /// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ThreatModel { [JsonStringEnumMemberName("remote")] @@ -3635,7 +3799,7 @@ public enum ThreatModel /// /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProcessingStatus { [JsonStringEnumMemberName("pending")] @@ -3649,7 +3813,7 @@ public enum ProcessingStatus /// /// The permission associated with the invitation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Permissions { [JsonStringEnumMemberName("read")] @@ -3667,7 +3831,7 @@ public enum Permissions /// /// The reaction to use /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Content { [JsonStringEnumMemberName("+1")] @@ -3691,7 +3855,7 @@ public enum Content /// /// A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Relationship { [JsonStringEnumMemberName("direct")] @@ -3703,7 +3867,7 @@ public enum Relationship /// /// A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependencyScope { [JsonStringEnumMemberName("runtime")] @@ -3715,7 +3879,7 @@ public enum DependencyScope /// /// The scope of the membership. Currently, can only be `team`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMembershipAddedScope { [JsonStringEnumMemberName("team")] @@ -3725,7 +3889,7 @@ public enum WebhookMembershipAddedScope /// /// The scope of the membership. Currently, can only be `team`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMembershipRemovedScope { [JsonStringEnumMemberName("team")] @@ -3737,7 +3901,7 @@ public enum WebhookMembershipRemovedScope /// /// The Git hash algorithm used by this repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum HashAlgorithm { [JsonStringEnumMemberName("sha1")] @@ -3747,597 +3911,355 @@ public enum HashAlgorithm } /// -/// The side of the first line of the range for a multi-line comment. +/// The confidence level the agent had when performing this action. /// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum StartSide -{ - [JsonStringEnumMemberName("LEFT")] - Left, - [JsonStringEnumMemberName("RIGHT")] - Right, - [JsonStringEnumMemberName("")] - Unknown -} - -/// -/// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum Side -{ - [JsonStringEnumMemberName("LEFT")] - Left, - [JsonStringEnumMemberName("RIGHT")] - Right -} - -/// -/// The level at which the comment is targeted, can be a diff line or a file. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum SubjectType -{ - [JsonStringEnumMemberName("line")] - Line, - [JsonStringEnumMemberName("file")] - File -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum MergeType +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Confidence { - [JsonStringEnumMemberName("merge")] - Merge, - [JsonStringEnumMemberName("fast-forward")] - FastForward, - [JsonStringEnumMemberName("none")] - None -} - -/// -/// The state if the domain is verified -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum ProtectedDomainState -{ - [JsonStringEnumMemberName("pending")] - Pending, - [JsonStringEnumMemberName("verified")] - Verified, - [JsonStringEnumMemberName("unverified")] - Unverified, - [JsonStringEnumMemberName("")] - Unknown -} - -/// -/// The process in which the Page will be built. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum BuildType -{ - [JsonStringEnumMemberName("legacy")] - Legacy, - [JsonStringEnumMemberName("workflow")] - Workflow, + [JsonStringEnumMemberName("LOW")] + Low, + [JsonStringEnumMemberName("MEDIUM")] + Medium, + [JsonStringEnumMemberName("HIGH")] + High, [JsonStringEnumMemberName("")] Unknown } /// -/// The type of source for the ruleset that includes this rule. +/// The kind of change proposed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RulesetSourceType +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum IssueSuggestionAction { - [JsonStringEnumMemberName("Repository")] - Repository, - [JsonStringEnumMemberName("Organization")] - Organization -} - -/// -/// The reason for bypassing push protection. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum SecretScanningPushProtectionBypassReason2 -{ - [JsonStringEnumMemberName("false_positive")] - FalsePositive, - [JsonStringEnumMemberName("used_in_tests")] - UsedInTests, - [JsonStringEnumMemberName("will_fix_later")] - WillFixLater -} - -/// -/// Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated). -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum WebhookMergeGroupDestroyedReason -{ - [JsonStringEnumMemberName("merged")] - Merged, - [JsonStringEnumMemberName("invalidated")] - Invalidated, - [JsonStringEnumMemberName("dequeued")] - Dequeued -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum WebhookPullRequestDequeuedReason -{ - [JsonStringEnumMemberName("UNKNOWN_REMOVAL_REASON")] - UnknownRemovalReason, - [JsonStringEnumMemberName("MANUAL")] - Manual, - [JsonStringEnumMemberName("MERGE")] - Merge, - [JsonStringEnumMemberName("MERGE_CONFLICT")] - MergeConflict, - [JsonStringEnumMemberName("CI_FAILURE")] - CiFailure, - [JsonStringEnumMemberName("CI_TIMEOUT")] - CiTimeout, - [JsonStringEnumMemberName("ALREADY_MERGED")] - AlreadyMerged, - [JsonStringEnumMemberName("QUEUE_CLEARED")] - QueueCleared, - [JsonStringEnumMemberName("ROLL_BACK")] - RollBack, - [JsonStringEnumMemberName("BRANCH_PROTECTIONS")] - BranchProtections, - [JsonStringEnumMemberName("GIT_TREE_INVALID")] - GitTreeInvalid, - [JsonStringEnumMemberName("INVALID_MERGE_COMMIT")] - InvalidMergeCommit -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum AllowDeletionsEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum AllowForcePushesEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum LinearHistoryRequirementEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -/// -/// The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum LockBranchEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum MergeQueueEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum PullRequestReviewsEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RequiredConversationResolutionLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RequiredDeploymentsEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RequiredStatusChecksEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum SignatureRequirementEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum ActiveLockReason -{ - [JsonStringEnumMemberName("resolved")] - Resolved, - [JsonStringEnumMemberName("off-topic")] - OffTopic, - [JsonStringEnumMemberName("too heated")] - TooHeated, - [JsonStringEnumMemberName("spam")] - Spam, - [JsonStringEnumMemberName("")] - Unknown + [JsonStringEnumMemberName("set_type")] + SetType, + [JsonStringEnumMemberName("add_label")] + AddLabel, + [JsonStringEnumMemberName("add_field")] + AddField, + [JsonStringEnumMemberName("add_assignee")] + AddAssignee, + [JsonStringEnumMemberName("close_issue")] + CloseIssue } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionConfigurationDisabledAction { [JsonStringEnumMemberName("disabled")] Disabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionConfigurationEnabledAction { [JsonStringEnumMemberName("enabled")] Enabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionRuleCreatedAction { [JsonStringEnumMemberName("created")] Created } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionRuleDeletedAction { [JsonStringEnumMemberName("deleted")] Deleted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionRuleEditedAction { [JsonStringEnumMemberName("edited")] Edited } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckRunCompletedAction { [JsonStringEnumMemberName("completed")] Completed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckRunRequestedActionAction { [JsonStringEnumMemberName("requested_action")] RequestedAction } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckRunRerequestedAction { [JsonStringEnumMemberName("rerequested")] Rerequested } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckSuiteRequestedAction { [JsonStringEnumMemberName("requested")] Requested } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertAppearedInBranchAction { [JsonStringEnumMemberName("appeared_in_branch")] AppearedInBranch } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertClosedByUserAction { [JsonStringEnumMemberName("closed_by_user")] ClosedByUser } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertFixedAction { [JsonStringEnumMemberName("fixed")] Fixed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertReopenedAction { [JsonStringEnumMemberName("reopened")] Reopened } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertReopenedByUserAction { [JsonStringEnumMemberName("reopened_by_user")] ReopenedByUser } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertUpdatedAssignmentAction { [JsonStringEnumMemberName("updated_assignment")] UpdatedAssignment } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCustomPropertyPromotedToEnterpriseAction { [JsonStringEnumMemberName("promote_to_enterprise")] PromoteToEnterprise } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCustomPropertyUpdatedAction { [JsonStringEnumMemberName("updated")] Updated } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertAssigneesChangedAction { [JsonStringEnumMemberName("assignees_changed")] AssigneesChanged } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertAutoDismissedAction { [JsonStringEnumMemberName("auto_dismissed")] AutoDismissed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertAutoReopenedAction { [JsonStringEnumMemberName("auto_reopened")] AutoReopened } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertDismissedAction { [JsonStringEnumMemberName("dismissed")] Dismissed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertReintroducedAction { [JsonStringEnumMemberName("reintroduced")] Reintroduced } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDeploymentReviewApprovedAction { [JsonStringEnumMemberName("approved")] Approved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDeploymentReviewRejectedAction { [JsonStringEnumMemberName("rejected")] Rejected } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionAnsweredAction { [JsonStringEnumMemberName("answered")] Answered } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionCategoryChangedAction { [JsonStringEnumMemberName("category_changed")] CategoryChanged } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionClosedAction { [JsonStringEnumMemberName("closed")] Closed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionLabeledAction { [JsonStringEnumMemberName("labeled")] Labeled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionLockedAction { [JsonStringEnumMemberName("locked")] Locked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionPinnedAction { [JsonStringEnumMemberName("pinned")] Pinned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionTransferredAction { [JsonStringEnumMemberName("transferred")] Transferred } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnansweredAction { [JsonStringEnumMemberName("unanswered")] Unanswered } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnlabeledAction { [JsonStringEnumMemberName("unlabeled")] Unlabeled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnlockedAction { [JsonStringEnumMemberName("unlocked")] Unlocked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnpinnedAction { [JsonStringEnumMemberName("unpinned")] Unpinned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookGithubAppAuthorizationRevokedAction { [JsonStringEnumMemberName("revoked")] Revoked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationNewPermissionsAcceptedAction { [JsonStringEnumMemberName("new_permissions_accepted")] NewPermissionsAccepted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationRepositoriesAddedAction { [JsonStringEnumMemberName("added")] Added } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationRepositoriesRemovedAction { [JsonStringEnumMemberName("removed")] Removed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationSuspendAction { [JsonStringEnumMemberName("suspend")] Suspend } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationTargetRenamedAction { [JsonStringEnumMemberName("renamed")] Renamed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationUnsuspendAction { [JsonStringEnumMemberName("unsuspend")] Unsuspend } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockedByAddedAction { [JsonStringEnumMemberName("blocked_by_added")] BlockedByAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockedByRemovedAction { [JsonStringEnumMemberName("blocked_by_removed")] BlockedByRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockingAddedAction { [JsonStringEnumMemberName("blocking_added")] BlockingAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockingRemovedAction { [JsonStringEnumMemberName("blocking_removed")] @@ -4347,49 +4269,49 @@ public enum WebhookIssueDependenciesBlockingRemovedAction /// /// The action that was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesAssignedAction { [JsonStringEnumMemberName("assigned")] Assigned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesDemilestonedAction { [JsonStringEnumMemberName("demilestoned")] Demilestoned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesFieldAddedAction { [JsonStringEnumMemberName("field_added")] FieldAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesFieldRemovedAction { [JsonStringEnumMemberName("field_removed")] FieldRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesMilestonedAction { [JsonStringEnumMemberName("milestoned")] Milestoned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesOpenedAction { [JsonStringEnumMemberName("opened")] Opened } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesTypedAction { [JsonStringEnumMemberName("typed")] @@ -4399,416 +4321,725 @@ public enum WebhookIssuesTypedAction /// /// The action that was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesUnassignedAction { [JsonStringEnumMemberName("unassigned")] Unassigned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesUntypedAction { [JsonStringEnumMemberName("untyped")] Untyped } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchaseCancelledAction { [JsonStringEnumMemberName("cancelled")] Cancelled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchaseChangedAction { [JsonStringEnumMemberName("changed")] Changed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchasePendingChangeAction { [JsonStringEnumMemberName("pending_change")] PendingChange } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchasePendingChangeCancelledAction { [JsonStringEnumMemberName("pending_change_cancelled")] PendingChangeCancelled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchasePurchasedAction { [JsonStringEnumMemberName("purchased")] Purchased } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMergeGroupChecksRequestedAction { [JsonStringEnumMemberName("checks_requested")] ChecksRequested } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMergeGroupDestroyedAction { [JsonStringEnumMemberName("destroyed")] Destroyed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrgBlockBlockedAction { [JsonStringEnumMemberName("blocked")] Blocked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrgBlockUnblockedAction { [JsonStringEnumMemberName("unblocked")] Unblocked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrganizationMemberAddedAction { [JsonStringEnumMemberName("member_added")] MemberAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrganizationMemberInvitedAction { [JsonStringEnumMemberName("member_invited")] MemberInvited } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrganizationMemberRemovedAction { [JsonStringEnumMemberName("member_removed")] MemberRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPackagePublishedAction { [JsonStringEnumMemberName("published")] Published } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPersonalAccessTokenRequestDeniedAction { [JsonStringEnumMemberName("denied")] Denied } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectCardConvertedAction { [JsonStringEnumMemberName("converted")] Converted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectCardMovedAction { [JsonStringEnumMemberName("moved")] Moved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectsV2ItemArchivedAction { [JsonStringEnumMemberName("archived")] Archived } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectsV2ItemReorderedAction { [JsonStringEnumMemberName("reordered")] Reordered } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectsV2ItemRestoredAction { [JsonStringEnumMemberName("restored")] Restored } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestAutoMergeDisabledAction { [JsonStringEnumMemberName("auto_merge_disabled")] AutoMergeDisabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestAutoMergeEnabledAction { [JsonStringEnumMemberName("auto_merge_enabled")] AutoMergeEnabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestConvertedToDraftAction { [JsonStringEnumMemberName("converted_to_draft")] ConvertedToDraft } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestDequeuedAction { [JsonStringEnumMemberName("dequeued")] Dequeued } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestEnqueuedAction { [JsonStringEnumMemberName("enqueued")] Enqueued } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReadyForReviewAction { [JsonStringEnumMemberName("ready_for_review")] ReadyForReview } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReviewSubmittedAction { [JsonStringEnumMemberName("submitted")] Submitted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReviewThreadResolvedAction { [JsonStringEnumMemberName("resolved")] Resolved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReviewThreadUnresolvedAction { [JsonStringEnumMemberName("unresolved")] Unresolved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookPullRequestStackedAction +{ + [JsonStringEnumMemberName("stacked")] + Stacked +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestSynchronizeAction { [JsonStringEnumMemberName("synchronize")] Synchronize } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookReleasePrereleasedAction { [JsonStringEnumMemberName("prereleased")] Prereleased } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookReleaseReleasedAction { [JsonStringEnumMemberName("released")] Released } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookReleaseUnpublishedAction { [JsonStringEnumMemberName("unpublished")] Unpublished } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryAdvisoryReportedAction { [JsonStringEnumMemberName("reported")] Reported } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryPrivatizedAction { [JsonStringEnumMemberName("privatized")] Privatized } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryPublicizedAction { [JsonStringEnumMemberName("publicized")] Publicized } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryUnarchivedAction { [JsonStringEnumMemberName("unarchived")] Unarchived } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertCreateAction { [JsonStringEnumMemberName("create")] Create } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertDismissAction { [JsonStringEnumMemberName("dismiss")] Dismiss } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertReopenAction { [JsonStringEnumMemberName("reopen")] Reopen } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertResolveAction { [JsonStringEnumMemberName("resolve")] Resolve } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookSecretScanningAlertMetadataCreatedAction +{ + [JsonStringEnumMemberName("metadata_created")] + MetadataCreated +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookSecretScanningAlertMetadataRemovedAction +{ + [JsonStringEnumMemberName("metadata_removed")] + MetadataRemoved +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningAlertPubliclyLeakedAction { [JsonStringEnumMemberName("publicly_leaked")] PubliclyLeaked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningAlertValidatedAction { [JsonStringEnumMemberName("validated")] Validated } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecurityAdvisoryWithdrawnAction { [JsonStringEnumMemberName("withdrawn")] Withdrawn } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSponsorshipPendingCancellationAction { [JsonStringEnumMemberName("pending_cancellation")] PendingCancellation } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSponsorshipPendingTierChangeAction { [JsonStringEnumMemberName("pending_tier_change")] PendingTierChange } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSponsorshipTierChangedAction { [JsonStringEnumMemberName("tier_changed")] TierChanged } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesParentIssueAddedAction { [JsonStringEnumMemberName("parent_issue_added")] ParentIssueAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesParentIssueRemovedAction { [JsonStringEnumMemberName("parent_issue_removed")] ParentIssueRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesSubIssueAddedAction { [JsonStringEnumMemberName("sub_issue_added")] SubIssueAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesSubIssueRemovedAction { [JsonStringEnumMemberName("sub_issue_removed")] SubIssueRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookTeamAddedToRepositoryAction { [JsonStringEnumMemberName("added_to_repository")] AddedToRepository } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookTeamRemovedFromRepositoryAction { [JsonStringEnumMemberName("removed_from_repository")] RemovedFromRepository } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWatchStartedAction { [JsonStringEnumMemberName("started")] Started } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWorkflowJobInProgressAction { [JsonStringEnumMemberName("in_progress")] InProgress } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWorkflowJobQueuedAction { [JsonStringEnumMemberName("queued")] Queued } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWorkflowJobWaitingAction { [JsonStringEnumMemberName("waiting")] Waiting } +/// +/// The side of the first line of the range for a multi-line comment. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum StartSide +{ + [JsonStringEnumMemberName("LEFT")] + Left, + [JsonStringEnumMemberName("RIGHT")] + Right, + [JsonStringEnumMemberName("")] + Unknown +} + +/// +/// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Side +{ + [JsonStringEnumMemberName("LEFT")] + Left, + [JsonStringEnumMemberName("RIGHT")] + Right +} + +/// +/// The level at which the comment is targeted, can be a diff line or a file. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SubjectType +{ + [JsonStringEnumMemberName("line")] + Line, + [JsonStringEnumMemberName("file")] + File +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum MergeType +{ + [JsonStringEnumMemberName("merge")] + Merge, + [JsonStringEnumMemberName("fast-forward")] + FastForward, + [JsonStringEnumMemberName("none")] + None +} + +/// +/// The state if the domain is verified +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum ProtectedDomainState +{ + [JsonStringEnumMemberName("pending")] + Pending, + [JsonStringEnumMemberName("verified")] + Verified, + [JsonStringEnumMemberName("unverified")] + Unverified, + [JsonStringEnumMemberName("")] + Unknown +} + +/// +/// The process in which the Page will be built. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum BuildType +{ + [JsonStringEnumMemberName("legacy")] + Legacy, + [JsonStringEnumMemberName("workflow")] + Workflow, + [JsonStringEnumMemberName("")] + Unknown +} + +/// +/// The type of source for the ruleset that includes this rule. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RulesetSourceType +{ + [JsonStringEnumMemberName("Repository")] + Repository, + [JsonStringEnumMemberName("Organization")] + Organization +} + +/// +/// The reason for bypassing push protection. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SecretScanningPushProtectionBypassReason2 +{ + [JsonStringEnumMemberName("false_positive")] + FalsePositive, + [JsonStringEnumMemberName("used_in_tests")] + UsedInTests, + [JsonStringEnumMemberName("will_fix_later")] + WillFixLater +} + +/// +/// Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated). +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookMergeGroupDestroyedReason +{ + [JsonStringEnumMemberName("merged")] + Merged, + [JsonStringEnumMemberName("invalidated")] + Invalidated, + [JsonStringEnumMemberName("dequeued")] + Dequeued +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookPullRequestDequeuedReason +{ + [JsonStringEnumMemberName("UNKNOWN_REMOVAL_REASON")] + UnknownRemovalReason, + [JsonStringEnumMemberName("MANUAL")] + Manual, + [JsonStringEnumMemberName("MERGE")] + Merge, + [JsonStringEnumMemberName("MERGE_CONFLICT")] + MergeConflict, + [JsonStringEnumMemberName("CI_FAILURE")] + CiFailure, + [JsonStringEnumMemberName("CI_TIMEOUT")] + CiTimeout, + [JsonStringEnumMemberName("ALREADY_MERGED")] + AlreadyMerged, + [JsonStringEnumMemberName("QUEUE_CLEARED")] + QueueCleared, + [JsonStringEnumMemberName("ROLL_BACK")] + RollBack, + [JsonStringEnumMemberName("BRANCH_PROTECTIONS")] + BranchProtections, + [JsonStringEnumMemberName("GIT_TREE_INVALID")] + GitTreeInvalid, + [JsonStringEnumMemberName("INVALID_MERGE_COMMIT")] + InvalidMergeCommit +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum AllowDeletionsEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum AllowForcePushesEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum LinearHistoryRequirementEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +/// +/// The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum LockBranchEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum MergeQueueEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum PullRequestReviewsEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RequiredConversationResolutionLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RequiredDeploymentsEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RequiredStatusChecksEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SignatureRequirementEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum ActiveLockReason +{ + [JsonStringEnumMemberName("resolved")] + Resolved, + [JsonStringEnumMemberName("off-topic")] + OffTopic, + [JsonStringEnumMemberName("too heated")] + TooHeated, + [JsonStringEnumMemberName("spam")] + Spam, + [JsonStringEnumMemberName("")] + Unknown +} + +/// +/// The category of the detected secret. `default` covers specific provider patterns and custom patterns; `generic` covers non-specific patterns and AI-detected secrets. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SecretCategory +{ + [JsonStringEnumMemberName("default")] + Default, + [JsonStringEnumMemberName("generic")] + Generic +} + /// /// The type of Git ref object created in the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RefType { [JsonStringEnumMemberName("tag")] @@ -4820,7 +5051,7 @@ public enum RefType /// /// If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomPatternScope { [JsonStringEnumMemberName("repository")] @@ -4833,7 +5064,7 @@ public enum CustomPatternScope Unknown } -public record Root +public partial record Root { [JsonPropertyName("current_user_url")] public required string CurrentUserUrl { get; init; } @@ -4939,7 +5170,7 @@ public record Root /// /// The package's language or package management ecosystem. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityAdvisoryEcosystems { [JsonStringEnumMemberName("rubygems")] @@ -4973,7 +5204,7 @@ public enum SecurityAdvisoryEcosystems /// /// A vulnerability describing the product and its affected versions within a GitHub Security Advisory. /// -public record Vulnerability +public partial record Vulnerability { /// /// The name of the package affected by the vulnerability. @@ -5001,7 +5232,7 @@ public record Vulnerability } -public record CvssSeverities +public partial record CvssSeverities { [JsonPropertyName("cvss_v3")] public object? CvssV3 { get; init; } @@ -5014,7 +5245,7 @@ public record CvssSeverities /// /// The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). /// -public record SecurityAdvisoryEpss +public partial record SecurityAdvisoryEpss { [JsonPropertyName("percentage")] public double? Percentage { get; init; } @@ -5027,7 +5258,7 @@ public record SecurityAdvisoryEpss /// /// A GitHub user. /// -public record SimpleUser +public partial record SimpleUser { [JsonPropertyName("name")] public string? Name { get; init; } @@ -5100,7 +5331,7 @@ public record SimpleUser /// /// The type of credit the user is receiving. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityAdvisoryCreditTypes { [JsonStringEnumMemberName("analyst")] @@ -5128,7 +5359,7 @@ public enum SecurityAdvisoryCreditTypes /// /// A GitHub Security Advisory. /// -public record GlobalAdvisory +public partial record GlobalAdvisory { /// /// The GitHub Security Advisory ID. @@ -5259,7 +5490,7 @@ public record GlobalAdvisory /// /// Basic Error /// -public record BasicError +public partial record BasicError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -5278,7 +5509,7 @@ public record BasicError /// /// Validation Error Simple /// -public record ValidationErrorSimple +public partial record ValidationErrorSimple { [JsonPropertyName("message")] public required string Message { get; init; } @@ -5294,7 +5525,7 @@ public record ValidationErrorSimple /// /// An enterprise on GitHub. /// -public record Enterprise +public partial record Enterprise { /// /// A short description of the enterprise. @@ -5346,7 +5577,7 @@ public record Enterprise /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// -public record Integration +public partial record Integration { /// /// Unique identifier of the GitHub app @@ -5417,7 +5648,7 @@ public record Integration /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhookConfigUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhookConfigUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static WebhookConfigUrl Create(Uri value) => new(value); } @@ -5429,7 +5660,7 @@ public readonly record struct WebhookConfigUrl(Uri Value) : IOpenApiGeneratedTyp /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhookConfigContentType(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhookConfigContentType(string Value) : IOpenApiGeneratedTypeAlias { public static WebhookConfigContentType Create(string value) => new(value); } @@ -5441,17 +5672,17 @@ public readonly record struct WebhookConfigContentType(string Value) : IOpenApiG /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhookConfigSecret(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhookConfigSecret(string Value) : IOpenApiGeneratedTypeAlias { public static WebhookConfigSecret Create(string value) => new(value); } -public abstract record WebhookConfigInsecureSsl; +public abstract partial record WebhookConfigInsecureSsl; /// /// Configuration object of the webhook /// -public record WebhookConfig +public partial record WebhookConfig { /// /// The URL to which the payloads will be delivered. @@ -5479,7 +5710,7 @@ public record WebhookConfig /// /// Delivery made by a webhook, without request and response information. /// -public record HookDeliveryItem +public partial record HookDeliveryItem { /// /// Unique identifier of the webhook delivery. @@ -5558,7 +5789,7 @@ public record HookDeliveryItem /// /// Scim Error /// -public record ScimError +public partial record ScimError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -5583,7 +5814,7 @@ public record ScimError /// /// Validation Error /// -public record ValidationError +public partial record ValidationError { [JsonPropertyName("message")] public required string Message { get; init; } @@ -5599,7 +5830,7 @@ public record ValidationError /// /// Delivery made by a webhook. /// -public record HookDelivery +public partial record HookDelivery { /// /// Unique identifier of the delivery. @@ -5690,7 +5921,7 @@ public record HookDelivery /// /// Request to install an integration on a target /// -public record IntegrationInstallationRequest +public partial record IntegrationInstallationRequest { /// /// Unique identifier of the request installation. @@ -5716,9 +5947,9 @@ public record IntegrationInstallationRequest } /// -/// The permissions granted to the user access token. +/// The permissions granted to the fine-grained access token. /// -public record AppPermissions +public partial record AppPermissions { /// /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. @@ -6055,7 +6286,7 @@ public record AppPermissions /// /// Installation /// -public record Installation +public partial record Installation { /// /// The ID of the installation. @@ -6097,7 +6328,7 @@ public record Installation public required string TargetType { get; init; } /// - /// The permissions granted to the user access token. + /// The permissions granted to the fine-grained access token. /// [JsonPropertyName("permissions")] public required AppPermissions Permissions { get; init; } @@ -6137,7 +6368,7 @@ public record Installation /// /// License Simple /// -public record LicenseSimple +public partial record LicenseSimple { [JsonPropertyName("key")] public required string Key { get; init; } @@ -6162,7 +6393,7 @@ public record LicenseSimple /// /// A repository on GitHub. /// -public record Repository +public partial record Repository { /// /// Unique identifier of the repository @@ -6573,7 +6804,7 @@ public record Repository /// /// Authentication token for a GitHub App installed on a user or org. /// -public record InstallationToken +public partial record InstallationToken { [JsonPropertyName("token")] public required string Token { get; init; } @@ -6582,7 +6813,7 @@ public record InstallationToken public required string ExpiresAt { get; init; } /// - /// The permissions granted to the user access token. + /// The permissions granted to the fine-grained access token. /// [JsonPropertyName("permissions")] public AppPermissions? Permissions { get; init; } @@ -6604,10 +6835,10 @@ public record InstallationToken } -public record ScopedInstallation +public partial record ScopedInstallation { /// - /// The permissions granted to the user access token. + /// The permissions granted to the fine-grained access token. /// [JsonPropertyName("permissions")] public required AppPermissions Permissions { get; init; } @@ -6641,7 +6872,7 @@ public record ScopedInstallation /// /// The authorization for an OAuth app, GitHub App, or a Personal Access Token. /// -public record Authorization +public partial record Authorization { [JsonPropertyName("id")] public required long Id { get; init; } @@ -6696,7 +6927,7 @@ public record Authorization /// /// A GitHub repository view for Classroom /// -public record SimpleClassroomRepository +public partial record SimpleClassroomRepository { /// /// A unique identifier of the repository. @@ -6739,7 +6970,7 @@ public record SimpleClassroomRepository /// /// A GitHub organization. /// -public record SimpleClassroomOrganization +public partial record SimpleClassroomOrganization { [JsonPropertyName("id")] public required int Id { get; init; } @@ -6764,7 +6995,7 @@ public record SimpleClassroomOrganization /// /// A GitHub Classroom classroom /// -public record Classroom +public partial record Classroom { /// /// Unique identifier of the classroom. @@ -6801,7 +7032,7 @@ public record Classroom /// /// A GitHub Classroom assignment /// -public record ClassroomAssignment +public partial record ClassroomAssignment { /// /// Unique identifier of the repository. @@ -6922,7 +7153,7 @@ public record ClassroomAssignment /// /// A GitHub user simplified for Classroom. /// -public record SimpleClassroomUser +public partial record SimpleClassroomUser { [JsonPropertyName("id")] public required int Id { get; init; } @@ -6941,7 +7172,7 @@ public record SimpleClassroomUser /// /// A GitHub Classroom classroom /// -public record SimpleClassroom +public partial record SimpleClassroom { /// /// Unique identifier of the classroom. @@ -6972,7 +7203,7 @@ public record SimpleClassroom /// /// A GitHub Classroom assignment /// -public record SimpleClassroomAssignment +public partial record SimpleClassroomAssignment { /// /// Unique identifier of the repository. @@ -7087,7 +7318,7 @@ public record SimpleClassroomAssignment /// /// A GitHub Classroom accepted assignment /// -public record ClassroomAcceptedAssignment +public partial record ClassroomAcceptedAssignment { /// /// Unique identifier of the repository. @@ -7139,7 +7370,7 @@ public record ClassroomAcceptedAssignment /// /// Grade for a student or groups GitHub Classroom assignment /// -public record ClassroomAssignmentGrade +public partial record ClassroomAssignmentGrade { /// /// Name of the assignment @@ -7212,7 +7443,7 @@ public record ClassroomAssignmentGrade /// /// Code Of Conduct /// -public record CodeOfConduct +public partial record CodeOfConduct { [JsonPropertyName("key")] public required string Key { get; init; } @@ -7234,7 +7465,7 @@ public record CodeOfConduct /// /// GitHub Actions cache retention policy for an enterprise. /// -public record ActionsCacheRetentionLimitForEnterprise +public partial record ActionsCacheRetentionLimitForEnterprise { /// /// For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained. @@ -7247,7 +7478,7 @@ public record ActionsCacheRetentionLimitForEnterprise /// /// GitHub Actions cache storage policy for an enterprise. /// -public record ActionsCacheStorageLimitForEnterprise +public partial record ActionsCacheStorageLimitForEnterprise { /// /// For repositories & organizations in an enterprise, the maximum size limit for the sum of all caches in a repository, in gigabytes. @@ -7260,7 +7491,7 @@ public record ActionsCacheStorageLimitForEnterprise /// /// An OIDC custom property inclusion for repository properties /// -public record OidcCustomPropertyInclusion +public partial record OidcCustomPropertyInclusion { /// /// The name of the custom property that is included in the OIDC token @@ -7279,7 +7510,7 @@ public record OidcCustomPropertyInclusion /// /// Input for creating an OIDC custom property inclusion /// -public record OidcCustomPropertyInclusionInput +public partial record OidcCustomPropertyInclusionInput { /// /// The name of the custom property to include in the OIDC token @@ -7292,7 +7523,7 @@ public record OidcCustomPropertyInclusionInput /// /// A code security configuration /// -public record CodeSecurityConfiguration +public partial record CodeSecurityConfiguration { /// /// The ID of the code security configuration @@ -7473,7 +7704,7 @@ public record CodeSecurityConfiguration /// /// Security Configuration feature options for code scanning /// -public record CodeScanningOptions +public partial record CodeScanningOptions { /// /// Whether to allow repos which use advanced setup @@ -7486,7 +7717,7 @@ public record CodeScanningOptions /// /// Feature options for code scanning default setup /// -public record CodeScanningDefaultSetupOptions +public partial record CodeScanningDefaultSetupOptions { /// /// Whether to use labeled runners or standard GitHub runners. @@ -7510,7 +7741,7 @@ public record CodeSecurityDefaultConfigurations; /// /// A GitHub repository. /// -public record SimpleRepository +public partial record SimpleRepository { /// /// A unique identifier of the repository. @@ -7793,7 +8024,7 @@ public record SimpleRepository /// /// Repositories associated with a code security configuration and attachment status /// -public record CodeSecurityConfigurationRepositories +public partial record CodeSecurityConfigurationRepositories { /// /// The attachment status of the code security configuration on the repository. @@ -7812,7 +8043,7 @@ public record CodeSecurityConfigurationRepositories /// /// Links to download the Copilot usage metrics report for an enterprise/organization for a specific day. /// -public record CopilotUsageMetrics1DayReport +public partial record CopilotUsageMetrics1DayReport { /// /// The URLs to download the Copilot usage metrics report for the enterprise/organization for the specified day. @@ -7831,7 +8062,7 @@ public record CopilotUsageMetrics1DayReport /// /// Links to download the latest Copilot usage metrics report for an enterprise/organization. /// -public record CopilotUsageMetrics28DayReport +public partial record CopilotUsageMetrics28DayReport { /// /// The URLs to download the latest Copilot usage metrics report for the enterprise/organization. @@ -7860,7 +8091,7 @@ public record CopilotUsageMetrics28DayReport /// Type alias for int. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlias { public static AlertNumber Create(int value) => new(value); } @@ -7868,7 +8099,7 @@ public readonly record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlia /// /// Details for the vulnerable package. /// -public record DependabotAlertPackage +public partial record DependabotAlertPackage { /// /// The package's language or package management ecosystem. @@ -7887,7 +8118,7 @@ public record DependabotAlertPackage /// /// Details pertaining to one vulnerable version range for the advisory. /// -public record DependabotAlertSecurityVulnerability +public partial record DependabotAlertSecurityVulnerability { /// /// Details for the vulnerable package. @@ -7918,7 +8149,7 @@ public record DependabotAlertSecurityVulnerability /// /// Details for the GitHub Security Advisory. /// -public record DependabotAlertSecurityAdvisory +public partial record DependabotAlertSecurityAdvisory { /// /// The unique GitHub Security Advisory ID assigned to the advisory. @@ -8022,7 +8253,7 @@ public record DependabotAlertSecurityAdvisory /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertUrl Create(Uri value) => new(value); } @@ -8034,7 +8265,7 @@ public readonly record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertHtmlUrl Create(Uri value) => new(value); } @@ -8046,7 +8277,7 @@ public readonly record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAli /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static AlertCreatedAt Create(DateTimeOffset value) => new(value); } @@ -8058,7 +8289,7 @@ public readonly record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGen /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static AlertUpdatedAt Create(DateTimeOffset value) => new(value); } @@ -8070,7 +8301,7 @@ public readonly record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGen /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static AlertDismissedAt Create(DateTimeOffset? value) => new(value); } @@ -8082,7 +8313,7 @@ public readonly record struct AlertDismissedAt(DateTimeOffset? Value) : IOpenApi /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertFixedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertFixedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static AlertFixedAt Create(DateTimeOffset? value) => new(value); } @@ -8094,7 +8325,7 @@ public readonly record struct AlertFixedAt(DateTimeOffset? Value) : IOpenApiGene /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertAutoDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertAutoDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static AlertAutoDismissedAt Create(DateTimeOffset? value) => new(value); } @@ -8102,7 +8333,7 @@ public readonly record struct AlertAutoDismissedAt(DateTimeOffset? Value) : IOpe /// /// Information about an active dismissal request for this Dependabot alert. /// -public record DependabotAlertDismissalRequestSimple +public partial record DependabotAlertDismissalRequestSimple { /// /// The unique identifier of the dismissal request. @@ -8139,7 +8370,7 @@ public record DependabotAlertDismissalRequestSimple /// /// A Dependabot alert. /// -public record DependabotAlertWithRepository +public partial record DependabotAlertWithRepository { /// /// The security alert number. @@ -8251,7 +8482,7 @@ public record DependabotAlertWithRepository /// /// Information about repositories that Dependabot is able to access in an organization /// -public record DependabotRepositoryAccessDetails +public partial record DependabotRepositoryAccessDetails { /// /// The default repository access level for Dependabot updates. @@ -8267,7 +8498,7 @@ public record DependabotRepositoryAccessDetails /// /// Group of enterprise owners and/or members /// -public record EnterpriseTeam +public partial record EnterpriseTeam { [JsonPropertyName("id")] public required long Id { get; init; } @@ -8325,7 +8556,7 @@ public record EnterpriseTeam /// /// A GitHub organization. /// -public record OrganizationSimple +public partial record OrganizationSimple { [JsonPropertyName("login")] public required string Login { get; init; } @@ -8368,7 +8599,7 @@ public record OrganizationSimple /// /// Actor /// -public record Actor +public partial record Actor { [JsonPropertyName("id")] public required int Id { get; init; } @@ -8393,7 +8624,7 @@ public record Actor /// /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). /// -public record Label +public partial record Label { /// /// Unique identifier for the label. @@ -8439,7 +8670,7 @@ public record Label /// /// A Discussion in a repository. /// -public record Discussion +public partial record Discussion { [JsonPropertyName("active_lock_reason")] public required string? ActiveLockReason { get; init; } @@ -8526,7 +8757,7 @@ public record Discussion /// /// A collection of related issues and pull requests. /// -public record Milestone +public partial record Milestone { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -8590,7 +8821,7 @@ public record Milestone /// /// The type assigned to the issue. This is only present for issues in repositories where issue types are supported. /// -public record IssueType +public partial record IssueType { /// /// The unique identifier of the issue type. @@ -8645,7 +8876,7 @@ public record IssueType /// /// How the author is associated with the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthorAssociation { [JsonStringEnumMemberName("COLLABORATOR")] @@ -8666,7 +8897,7 @@ public enum AuthorAssociation Owner } -public record ReactionRollup +public partial record ReactionRollup { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -8700,7 +8931,7 @@ public record ReactionRollup } -public record SubIssuesSummary +public partial record SubIssuesSummary { [JsonPropertyName("total")] public required int Total { get; init; } @@ -8716,7 +8947,7 @@ public record SubIssuesSummary /// /// Context around who pinned an issue comment and when it was pinned. /// -public record PinnedIssueComment +public partial record PinnedIssueComment { [JsonPropertyName("pinned_at")] public required DateTimeOffset PinnedAt { get; init; } @@ -8726,10 +8957,23 @@ public record PinnedIssueComment } +/// +/// Details about why an issue comment was minimized. +/// +public partial record IssueCommentMinimized +{ + /// + /// The reason the comment was minimized. + /// + [JsonPropertyName("reason")] + public required string? Reason { get; init; } + +} + /// /// Comments provide a way for people to collaborate on an issue. /// -public record IssueComment +public partial record IssueComment { /// /// Unique identifier of the issue comment @@ -8788,9 +9032,12 @@ public record IssueComment [JsonPropertyName("pin")] public PinnedIssueComment? Pin { get; init; } + [JsonPropertyName("minimized")] + public IssueCommentMinimized? Minimized { get; init; } + } -public record IssueDependenciesSummary +public partial record IssueDependenciesSummary { [JsonPropertyName("blocked_by")] public required int BlockedBy { get; init; } @@ -8809,7 +9056,7 @@ public record IssueDependenciesSummary /// /// A value assigned to an issue field /// -public record IssueFieldValue +public partial record IssueFieldValue { /// /// Unique identifier for the issue field. @@ -8817,6 +9064,12 @@ public record IssueFieldValue [JsonPropertyName("issue_field_id")] public required long IssueFieldId { get; init; } + /// + /// The human-readable name of the issue field. + /// + [JsonPropertyName("issue_field_name")] + public string? IssueFieldName { get; init; } + [JsonPropertyName("node_id")] public required string NodeId { get; init; } @@ -8849,7 +9102,7 @@ public record IssueFieldValue /// /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// -public record Issue +public partial record Issue { [JsonPropertyName("id")] public required long Id { get; init; } @@ -9006,7 +9259,7 @@ public record Issue } -public record PullRequestMinimal +public partial record PullRequestMinimal { [JsonPropertyName("id")] public required long Id { get; init; } @@ -9028,7 +9281,7 @@ public record PullRequestMinimal /// /// Data related to a release. /// -public record ReleaseAsset +public partial record ReleaseAsset { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9083,7 +9336,7 @@ public record ReleaseAsset /// /// A release. /// -public record Release +public partial record Release { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9186,7 +9439,7 @@ public record Release /// /// Event /// -public record Event +public partial record Event { [JsonPropertyName("id")] public required string Id { get; init; } @@ -9223,7 +9476,7 @@ public record Event /// /// Hypermedia Link with Type /// -public record LinkWithType +public partial record LinkWithType { [JsonPropertyName("href")] public required string Href { get; init; } @@ -9236,7 +9489,7 @@ public record LinkWithType /// /// Feed /// -public record Feed +public partial record Feed { [JsonPropertyName("timeline_url")] public required string TimelineUrl { get; init; } @@ -9282,7 +9535,7 @@ public record Feed /// /// Base Gist /// -public record BaseGist +public partial record BaseGist { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9355,7 +9608,7 @@ public record BaseGist /// /// Public User /// -public record PublicUser +public partial record PublicUser { [JsonPropertyName("login")] public required string Login { get; init; } @@ -9482,7 +9735,7 @@ public record PublicUser /// /// Gist History /// -public record GistHistory +public partial record GistHistory { [JsonPropertyName("user")] public SimpleUser? User { get; init; } @@ -9504,7 +9757,7 @@ public record GistHistory /// /// Gist Simple /// -public record GistSimple +public partial record GistSimple { [JsonPropertyName("forks")] public IReadOnlyList? Forks { get; init; } @@ -9583,7 +9836,7 @@ public record GistSimple /// /// A comment made to a gist. /// -public record GistComment +public partial record GistComment { [JsonPropertyName("id")] public required int Id { get; init; } @@ -9620,7 +9873,7 @@ public record GistComment /// /// Gist Commit /// -public record GistCommit +public partial record GistCommit { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9642,7 +9895,7 @@ public record GistCommit /// /// Gitignore Template /// -public record GitignoreTemplate +public partial record GitignoreTemplate { [JsonPropertyName("name")] public required string Name { get; init; } @@ -9655,7 +9908,7 @@ public record GitignoreTemplate /// /// License /// -public record License +public partial record License { [JsonPropertyName("key")] public required string Key { get; init; } @@ -9701,7 +9954,7 @@ public record License /// /// Marketplace Listing Plan /// -public record MarketplaceListingPlan +public partial record MarketplaceListingPlan { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9747,7 +10000,7 @@ public record MarketplaceListingPlan /// /// Marketplace Purchase /// -public record MarketplacePurchase +public partial record MarketplacePurchase { [JsonPropertyName("url")] public required string Url { get; init; } @@ -9778,7 +10031,7 @@ public record MarketplacePurchase /// /// Api Overview /// -public record ApiOverview +public partial record ApiOverview { [JsonPropertyName("verifiable_password_authentication")] public required bool VerifiablePasswordAuthentication { get; init; } @@ -9828,12 +10081,15 @@ public record ApiOverview [JsonPropertyName("copilot")] public IReadOnlyList? Copilot { get; init; } + [JsonPropertyName("commit_signing_keys")] + public IReadOnlyList? CommitSigningKeys { get; init; } + [JsonPropertyName("domains")] public object? Domains { get; init; } } -public record SecurityAndAnalysis +public partial record SecurityAndAnalysis { /// /// Enable or disable GitHub Advanced Security for the repository. @@ -9879,7 +10135,7 @@ public record SecurityAndAnalysis /// /// Minimal Repository /// -public record MinimalRepository +public partial record MinimalRepository { [JsonPropertyName("id")] public required long Id { get; init; } @@ -10171,7 +10427,7 @@ public record MinimalRepository /// /// Thread /// -public record Thread +public partial record Thread { [JsonPropertyName("id")] public required string Id { get; init; } @@ -10208,7 +10464,7 @@ public record Thread /// /// Thread Subscription /// -public record ThreadSubscription +public partial record ThreadSubscription { [JsonPropertyName("subscribed")] public required bool Subscribed { get; init; } @@ -10236,7 +10492,7 @@ public record ThreadSubscription /// /// GitHub Actions cache retention policy for an organization. /// -public record ActionsCacheRetentionLimitForOrganization +public partial record ActionsCacheRetentionLimitForOrganization { /// /// For repositories in this organization, the maximum duration, in days, for which caches in a repository may be retained. @@ -10249,7 +10505,7 @@ public record ActionsCacheRetentionLimitForOrganization /// /// GitHub Actions cache storage policy for an organization. /// -public record ActionsCacheStorageLimitForOrganization +public partial record ActionsCacheStorageLimitForOrganization { /// /// For repositories in the organization, the maximum size limit for the sum of all caches in a repository, in gigabytes. @@ -10259,7 +10515,7 @@ public record ActionsCacheStorageLimitForOrganization } -public record BillingAiCreditUsageReportOrg +public partial record BillingAiCreditUsageReportOrg { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -10293,7 +10549,7 @@ public record BillingAiCreditUsageReportOrg } -public record Budget +public partial record Budget { /// /// The unique identifier for the budget @@ -10337,6 +10593,12 @@ public record Budget [JsonPropertyName("user")] public string? User { get; init; } + /// + /// The amount consumed for a user-scoped budget, or for a multi-user budget when filtering by user. + /// + [JsonPropertyName("consumed_amount")] + public double? ConsumedAmount { get; init; } + /// /// A single product or sku to apply the budget to. /// @@ -10348,7 +10610,7 @@ public record Budget } -public record GetAllBudgets +public partial record GetAllBudgets { /// /// Array of budget objects for the enterprise @@ -10382,7 +10644,7 @@ public record GetAllBudgets } -public record CreateBudget +public partial record CreateBudget { /// /// A message indicating the result of the create operation @@ -10395,7 +10657,7 @@ public record CreateBudget } -public record GetBudget +public partial record GetBudget { /// /// ID of the budget. @@ -10450,7 +10712,7 @@ public record GetBudget } -public record UpdateBudget +public partial record UpdateBudget { /// /// A message indicating the result of the update operation @@ -10463,7 +10725,7 @@ public record UpdateBudget } -public record DeleteBudget +public partial record DeleteBudget { /// /// A message indicating the result of the deletion operation @@ -10479,7 +10741,7 @@ public record DeleteBudget } -public record BillingPremiumRequestUsageReportOrg +public partial record BillingPremiumRequestUsageReportOrg { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -10513,14 +10775,14 @@ public record BillingPremiumRequestUsageReportOrg } -public record BillingUsageReport +public partial record BillingUsageReport { [JsonPropertyName("usageItems")] public IReadOnlyList? UsageItems { get; init; } } -public record BillingUsageSummaryReportOrg +public partial record BillingUsageSummaryReportOrg { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -10557,7 +10819,7 @@ public record BillingUsageSummaryReportOrg /// /// Organization Full /// -public record OrganizationFull +public partial record OrganizationFull { [JsonPropertyName("login")] public required string Login { get; init; } @@ -10821,7 +11083,7 @@ public record OrganizationFull } -public record ActionsCacheUsageOrgEnterprise +public partial record ActionsCacheUsageOrgEnterprise { /// /// The count of active caches across all repositories of an enterprise or an organization. @@ -10840,7 +11102,7 @@ public record ActionsCacheUsageOrgEnterprise /// /// GitHub Actions Cache Usage by repository. /// -public record ActionsCacheUsageByRepository +public partial record ActionsCacheUsageByRepository { /// /// The repository owner and name for the cache usage being shown. @@ -10865,7 +11127,7 @@ public record ActionsCacheUsageByRepository /// /// Provides details of a hosted runner image /// -public record ActionsHostedRunnerPoolImage +public partial record ActionsHostedRunnerPoolImage { /// /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. @@ -10902,7 +11164,7 @@ public record ActionsHostedRunnerPoolImage /// /// Provides details of a particular machine spec. /// -public record ActionsHostedRunnerMachineSpec +public partial record ActionsHostedRunnerMachineSpec { /// /// The ID used for the `size` parameter when creating a new runner. @@ -10933,7 +11195,7 @@ public record ActionsHostedRunnerMachineSpec /// /// Provides details of Public IP for a GitHub-hosted larger runners /// -public record PublicIp +public partial record PublicIp { /// /// Whether public IP is enabled. @@ -10958,7 +11220,7 @@ public record PublicIp /// /// A Github-hosted hosted runner. /// -public record ActionsHostedRunner +public partial record ActionsHostedRunner { /// /// The unique identifier of the hosted runner. @@ -11034,7 +11296,7 @@ public record ActionsHostedRunner /// /// Provides details of a custom runner image /// -public record ActionsHostedRunnerCustomImage +public partial record ActionsHostedRunnerCustomImage { /// /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. @@ -11089,7 +11351,7 @@ public record ActionsHostedRunnerCustomImage /// /// Provides details of a hosted runner custom image version /// -public record ActionsHostedRunnerCustomImageVersion +public partial record ActionsHostedRunnerCustomImageVersion { /// /// The version of image. @@ -11126,7 +11388,7 @@ public record ActionsHostedRunnerCustomImageVersion /// /// Provides details of a hosted runner image /// -public record ActionsHostedRunnerCuratedImage +public partial record ActionsHostedRunnerCuratedImage { /// /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. @@ -11160,7 +11422,7 @@ public record ActionsHostedRunnerCuratedImage } -public record ActionsHostedRunnerLimits +public partial record ActionsHostedRunnerLimits { /// /// Provides details of static public IP limits for GitHub-hosted Hosted Runners @@ -11173,7 +11435,7 @@ public record ActionsHostedRunnerLimits /// /// Actions OIDC Subject customization /// -public record OidcCustomSub +public partial record OidcCustomSub { /// /// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. @@ -11192,14 +11454,14 @@ public record OidcCustomSub /// /// An object without any properties. /// -public record EmptyObject +public partial record EmptyObject { } /// /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnabledRepositories { [JsonStringEnumMemberName("all")] @@ -11213,7 +11475,7 @@ public enum EnabledRepositories /// /// The permissions policy that controls the actions and reusable workflows that are allowed to run. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AllowedActions { [JsonStringEnumMemberName("all")] @@ -11231,7 +11493,7 @@ public enum AllowedActions /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SelectedActionsUrl(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SelectedActionsUrl(string Value) : IOpenApiGeneratedTypeAlias { public static SelectedActionsUrl Create(string value) => new(value); } @@ -11243,12 +11505,12 @@ public readonly record struct SelectedActionsUrl(string Value) : IOpenApiGenerat /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct ShaPinningRequired(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct ShaPinningRequired(bool Value) : IOpenApiGeneratedTypeAlias { public static ShaPinningRequired Create(bool value) => new(value); } -public record ActionsOrganizationPermissions +public partial record ActionsOrganizationPermissions { /// /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. @@ -11282,7 +11544,7 @@ public record ActionsOrganizationPermissions } -public record ActionsArtifactAndLogRetentionResponse +public partial record ActionsArtifactAndLogRetentionResponse { /// /// The number of days artifacts and logs are retained @@ -11298,7 +11560,7 @@ public record ActionsArtifactAndLogRetentionResponse } -public record ActionsArtifactAndLogRetention +public partial record ActionsArtifactAndLogRetention { /// /// The number of days to retain artifacts and logs @@ -11308,7 +11570,7 @@ public record ActionsArtifactAndLogRetention } -public record ActionsForkPrContributorApproval +public partial record ActionsForkPrContributorApproval { /// /// The policy that controls when fork PR workflows require approval from a maintainer. @@ -11318,7 +11580,7 @@ public record ActionsForkPrContributorApproval } -public record ActionsForkPrWorkflowsPrivateRepos +public partial record ActionsForkPrWorkflowsPrivateRepos { /// /// Whether workflows triggered by pull requests from forks are allowed to run on private repositories. @@ -11346,7 +11608,7 @@ public record ActionsForkPrWorkflowsPrivateRepos } -public record ActionsForkPrWorkflowsPrivateReposRequest +public partial record ActionsForkPrWorkflowsPrivateReposRequest { /// /// Whether workflows triggered by pull requests from forks are allowed to run on private repositories. @@ -11374,7 +11636,7 @@ public record ActionsForkPrWorkflowsPrivateReposRequest } -public record SelectedActions +public partial record SelectedActions { /// /// Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. @@ -11399,7 +11661,7 @@ public record SelectedActions } -public record SelfHostedRunnersSettings +public partial record SelfHostedRunnersSettings { /// /// The policy that controls whether self-hosted runners can be used by repositories in the organization @@ -11418,7 +11680,7 @@ public record SelfHostedRunnersSettings /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActionsDefaultWorkflowPermissions { [JsonStringEnumMemberName("read")] @@ -11434,12 +11696,12 @@ public enum ActionsDefaultWorkflowPermissions /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct ActionsCanApprovePullRequestReviews(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct ActionsCanApprovePullRequestReviews(bool Value) : IOpenApiGeneratedTypeAlias { public static ActionsCanApprovePullRequestReviews Create(bool value) => new(value); } -public record ActionsGetDefaultWorkflowPermissions +public partial record ActionsGetDefaultWorkflowPermissions { /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. @@ -11455,7 +11717,7 @@ public record ActionsGetDefaultWorkflowPermissions } -public record ActionsSetDefaultWorkflowPermissions +public partial record ActionsSetDefaultWorkflowPermissions { /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. @@ -11471,7 +11733,7 @@ public record ActionsSetDefaultWorkflowPermissions } -public record RunnerGroupsOrg +public partial record RunnerGroupsOrg { [JsonPropertyName("id")] public required double Id { get; init; } @@ -11535,7 +11797,7 @@ public record RunnerGroupsOrg /// /// A label for a self hosted runner /// -public record RunnerLabel +public partial record RunnerLabel { /// /// Unique identifier of the label. @@ -11560,7 +11822,7 @@ public record RunnerLabel /// /// A self hosted runner /// -public record Runner +public partial record Runner { /// /// The ID of the runner. @@ -11612,7 +11874,7 @@ public record Runner /// /// Runner Application /// -public record RunnerApplication +public partial record RunnerApplication { [JsonPropertyName("os")] public required string Os { get; init; } @@ -11640,7 +11902,7 @@ public record RunnerApplication /// /// Authentication Token /// -public record AuthenticationToken +public partial record AuthenticationToken { /// /// The token used for authentication @@ -11677,7 +11939,7 @@ public record AuthenticationToken /// /// Secrets for GitHub Actions for an organization. /// -public record OrganizationActionsSecret +public partial record OrganizationActionsSecret { /// /// The name of the secret. @@ -11705,7 +11967,7 @@ public record OrganizationActionsSecret /// /// The public key used for setting Actions Secrets. /// -public record ActionsPublicKey +public partial record ActionsPublicKey { /// /// The identifier for the key. @@ -11736,7 +11998,7 @@ public record ActionsPublicKey /// /// Organization variable for GitHub Actions. /// -public record OrganizationActionsVariable +public partial record OrganizationActionsVariable { /// /// The name of the variable. @@ -11776,7 +12038,7 @@ public record OrganizationActionsVariable /// /// Artifact Metadata Deployment Record /// -public record ArtifactDeploymentRecord +public partial record ArtifactDeploymentRecord { [JsonPropertyName("id")] public int? Id { get; init; } @@ -11822,7 +12084,7 @@ public record ArtifactDeploymentRecord /// /// Indicates whether a campaign is open or closed /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CampaignState { [JsonStringEnumMemberName("open")] @@ -11834,7 +12096,7 @@ public enum CampaignState /// /// Indicates the alert type of a campaign /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CampaignAlertType { [JsonStringEnumMemberName("code_scanning")] @@ -11846,7 +12108,7 @@ public enum CampaignAlertType /// /// Groups of organization members that gives permissions on specified repositories. /// -public record TeamSimple +public partial record TeamSimple { /// /// Unique identifier of the team @@ -11934,7 +12196,7 @@ public record TeamSimple /// /// Groups of organization members that gives permissions on specified repositories. /// -public record Team +public partial record Team { [JsonPropertyName("id")] public required int Id { get; init; } @@ -11981,6 +12243,14 @@ public record Team [JsonPropertyName("type")] public required TeamSimpleType Type { get; init; } + /// + /// How the team's access to the repository was granted. This property is only + /// present when the team is returned in a repository context, such as + /// `GET /repos/{owner}/{repo}/teams`. + /// + [JsonPropertyName("access_source")] + public AccessSource? AccessSource { get; init; } + /// /// Unique identifier of the organization to which this team belongs /// @@ -12001,7 +12271,7 @@ public record Team /// /// The campaign metadata and alert stats. /// -public record CampaignSummary +public partial record CampaignSummary { /// /// The number of the newly created campaign @@ -12087,7 +12357,7 @@ public record CampaignSummary /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolName(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolName(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolName Create(string value) => new(value); } @@ -12099,7 +12369,7 @@ public readonly record struct CodeScanningAnalysisToolName(string Value) : IOpen /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolGuid(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolGuid(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolGuid Create(string? value) => new(value); } @@ -12107,7 +12377,7 @@ public readonly record struct CodeScanningAnalysisToolGuid(string? Value) : IOpe /// /// State of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertStateQuery { [JsonStringEnumMemberName("open")] @@ -12123,7 +12393,7 @@ public enum CodeScanningAlertStateQuery /// /// Severity of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertSeverity { [JsonStringEnumMemberName("critical")] @@ -12149,7 +12419,7 @@ public enum CodeScanningAlertSeverity /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertInstancesUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertInstancesUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertInstancesUrl Create(Uri value) => new(value); } @@ -12157,7 +12427,7 @@ public readonly record struct AlertInstancesUrl(Uri Value) : IOpenApiGeneratedTy /// /// State of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertState { [JsonStringEnumMemberName("open")] @@ -12173,7 +12443,7 @@ public enum CodeScanningAlertState /// /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertDismissedReason { [JsonStringEnumMemberName("false positive")] @@ -12182,6 +12452,8 @@ public enum CodeScanningAlertDismissedReason WontFix, [JsonStringEnumMemberName("used in tests")] UsedInTests, + [JsonStringEnumMemberName("mitigated")] + Mitigated, [JsonStringEnumMemberName("")] Unknown } @@ -12193,12 +12465,12 @@ public enum CodeScanningAlertDismissedReason /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAlertDismissedComment(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAlertDismissedComment(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAlertDismissedComment Create(string? value) => new(value); } -public record CodeScanningAlertRuleSummary +public partial record CodeScanningAlertRuleSummary { /// /// A unique identifier for the rule used to detect the alert. @@ -12263,12 +12535,12 @@ public record CodeScanningAlertRuleSummary /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolVersion(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolVersion(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolVersion Create(string? value) => new(value); } -public record CodeScanningAnalysisTool +public partial record CodeScanningAnalysisTool { /// /// The name of the tool used to generate the code scanning analysis. @@ -12298,7 +12570,7 @@ public record CodeScanningAnalysisTool /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningRef Create(string value) => new(value); } @@ -12310,7 +12582,7 @@ public readonly record struct CodeScanningRef(string Value) : IOpenApiGeneratedT /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisAnalysisKey(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisAnalysisKey(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisAnalysisKey Create(string value) => new(value); } @@ -12322,7 +12594,7 @@ public readonly record struct CodeScanningAnalysisAnalysisKey(string Value) : IO /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAlertEnvironment(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAlertEnvironment(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAlertEnvironment Create(string value) => new(value); } @@ -12334,7 +12606,7 @@ public readonly record struct CodeScanningAlertEnvironment(string Value) : IOpen /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCategory(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCategory(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCategory Create(string value) => new(value); } @@ -12342,7 +12614,7 @@ public readonly record struct CodeScanningAnalysisCategory(string Value) : IOpen /// /// Describe a region within a file for the alert. /// -public record CodeScanningAlertLocation +public partial record CodeScanningAlertLocation { [JsonPropertyName("path")] public string? Path { get; init; } @@ -12364,7 +12636,7 @@ public record CodeScanningAlertLocation /// /// A classification of the file. For example to identify it as generated. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertClassification { [JsonStringEnumMemberName("source")] @@ -12379,7 +12651,7 @@ public enum CodeScanningAlertClassification Unknown } -public record CodeScanningAlertInstance +public partial record CodeScanningAlertInstance { /// /// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`, @@ -12436,7 +12708,7 @@ public record CodeScanningAlertInstance } -public record CodeScanningOrganizationAlertItems +public partial record CodeScanningOrganizationAlertItems { /// /// The security alert number. @@ -12533,7 +12805,7 @@ public record CodeScanningOrganizationAlertItems /// /// A description of the machine powering a codespace. /// -public record CodespaceMachine +public partial record CodespaceMachine { /// /// The name of the machine. @@ -12582,7 +12854,7 @@ public record CodespaceMachine /// /// A codespace. /// -public record Codespace +public partial record Codespace { [JsonPropertyName("id")] public required long Id { get; init; } @@ -12763,7 +13035,7 @@ public record Codespace /// /// Secrets for a GitHub Codespace. /// -public record CodespacesOrgSecret +public partial record CodespacesOrgSecret { /// /// The name of the secret @@ -12800,7 +13072,7 @@ public record CodespacesOrgSecret /// /// The public key used for setting Codespaces secrets. /// -public record CodespacesPublicKey +public partial record CodespacesPublicKey { /// /// The identifier for the key. @@ -12831,7 +13103,7 @@ public record CodespacesPublicKey /// /// A GitHub Copilot Space represents an interactive AI workspace where users can ask questions and get assistance. /// -public record CopilotSpace +public partial record CopilotSpace { /// /// The unique identifier of the space. @@ -12920,14 +13192,14 @@ public record CopilotSpace /// /// A collaborator (user or team) of a Copilot Space /// -public record CopilotSpaceCollaborator +public partial record CopilotSpaceCollaborator { } /// /// A resource attached to a Copilot Space. /// -public record CopilotSpaceResource +public partial record CopilotSpaceResource { /// /// The unique identifier of the resource. @@ -12970,7 +13242,7 @@ public record CopilotSpaceResource /// /// The breakdown of Copilot Business seats for the organization. /// -public record CopilotOrganizationSeatBreakdown +public partial record CopilotOrganizationSeatBreakdown { /// /// The total number of seats being billed for the organization as of the current billing cycle. @@ -13013,7 +13285,7 @@ public record CopilotOrganizationSeatBreakdown /// /// Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription. /// -public record CopilotOrganizationDetails +public partial record CopilotOrganizationDetails { /// /// The breakdown of Copilot Business seats for the organization. @@ -13062,7 +13334,7 @@ public record CopilotOrganizationDetails /// /// Information about a Copilot Business seat assignment for a user, team, or organization. /// -public record CopilotSeatDetails +public partial record CopilotSeatDetails { [JsonPropertyName("assignee")] public SimpleUser? Assignee { get; init; } @@ -13125,135 +13397,10 @@ public record CopilotSeatDetails /// public record CopilotOrganizationContentExclusionDetails; -/// -/// Usage metrics for Copilot editor code completions in the IDE. -/// -public record CopilotIdeCodeCompletions -{ - /// - /// Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// Code completion metrics for active languages. - /// - [JsonPropertyName("languages")] - public IReadOnlyList? Languages { get; init; } - - [JsonPropertyName("editors")] - public IReadOnlyList? Editors { get; init; } - -} - -/// -/// Usage metrics for Copilot Chat in the IDE. -/// -public record CopilotIdeChat -{ - /// - /// Total number of users who prompted Copilot Chat in the IDE. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - [JsonPropertyName("editors")] - public IReadOnlyList? Editors { get; init; } - -} - -/// -/// Usage metrics for Copilot Chat in GitHub.com -/// -public record CopilotDotcomChat -{ - /// - /// Total number of users who prompted Copilot Chat on github.com at least once. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// List of model metrics for a custom models and the default model. - /// - [JsonPropertyName("models")] - public IReadOnlyList? Models { get; init; } - -} - -/// -/// Usage metrics for Copilot for pull requests. -/// -public record CopilotDotcomPullRequests -{ - /// - /// The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// Repositories in which users used Copilot for Pull Requests to generate pull request summaries - /// - [JsonPropertyName("repositories")] - public IReadOnlyList? Repositories { get; init; } - -} - -/// -/// Copilot usage metrics for a given day. -/// -public record CopilotUsageMetricsDay -{ - /// - /// The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format. - /// - [JsonPropertyName("date")] - public required DateOnly Date { get; init; } - - /// - /// The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. - /// - [JsonPropertyName("total_active_users")] - public int? TotalActiveUsers { get; init; } - - /// - /// The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// Usage metrics for Copilot editor code completions in the IDE. - /// - [JsonPropertyName("copilot_ide_code_completions")] - public CopilotIdeCodeCompletions? CopilotIdeCodeCompletions { get; init; } - - /// - /// Usage metrics for Copilot Chat in the IDE. - /// - [JsonPropertyName("copilot_ide_chat")] - public CopilotIdeChat? CopilotIdeChat { get; init; } - - /// - /// Usage metrics for Copilot Chat in GitHub.com - /// - [JsonPropertyName("copilot_dotcom_chat")] - public CopilotDotcomChat? CopilotDotcomChat { get; init; } - - /// - /// Usage metrics for Copilot for pull requests. - /// - [JsonPropertyName("copilot_dotcom_pull_requests")] - public CopilotDotcomPullRequests? CopilotDotcomPullRequests { get; init; } - -} - /// /// Secrets for GitHub Dependabot for an organization. /// -public record OrganizationDependabotSecret +public partial record OrganizationDependabotSecret { /// /// The name of the secret. @@ -13281,7 +13428,7 @@ public record OrganizationDependabotSecret /// /// The public key used for setting Dependabot Secrets. /// -public record DependabotPublicKey +public partial record DependabotPublicKey { /// /// The identifier for the key. @@ -13300,7 +13447,7 @@ public record DependabotPublicKey /// /// A software package /// -public record Package +public partial record Package { /// /// Unique identifier of the package. @@ -13349,7 +13496,7 @@ public record Package /// /// Organization Invitation /// -public record OrganizationInvitation +public partial record OrganizationInvitation { [JsonPropertyName("id")] public required long Id { get; init; } @@ -13395,7 +13542,7 @@ public record OrganizationInvitation /// /// Org Hook /// -public record OrgHook +public partial record OrgHook { [JsonPropertyName("id")] public required int Id { get; init; } @@ -13445,7 +13592,7 @@ public record ApiInsightsSubjectStats; /// /// API Insights usage summary stats for an organization /// -public record ApiInsightsSummaryStats +public partial record ApiInsightsSummaryStats { /// /// The total number of requests within the queried time period @@ -13474,7 +13621,7 @@ public record ApiInsightsUserStats; /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InteractionGroup { [JsonStringEnumMemberName("existing_users")] @@ -13488,7 +13635,7 @@ public enum InteractionGroup /// /// Interaction limit settings. /// -public record InteractionLimitResponse +public partial record InteractionLimitResponse { /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. @@ -13507,7 +13654,7 @@ public record InteractionLimitResponse /// /// The duration of the interaction restriction. Default: `one_day`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InteractionExpiry { [JsonStringEnumMemberName("one_day")] @@ -13525,7 +13672,7 @@ public enum InteractionExpiry /// /// Limit interactions to a specific type of user for a specified duration /// -public record InteractionLimit +public partial record InteractionLimit { /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. @@ -13544,7 +13691,7 @@ public record InteractionLimit /// /// A custom attribute defined at the organization level for attaching structured data to issues. /// -public record IssueField +public partial record IssueField { /// /// The unique identifier of the issue field. @@ -13602,7 +13749,7 @@ public record IssueField } -public record OrganizationCreateIssueField +public partial record OrganizationCreateIssueField { /// /// Name of the issue field. @@ -13636,7 +13783,7 @@ public record OrganizationCreateIssueField } -public record OrganizationUpdateIssueField +public partial record OrganizationUpdateIssueField { /// /// Name of the issue field. @@ -13664,7 +13811,7 @@ public record OrganizationUpdateIssueField } -public record OrganizationCreateIssueType +public partial record OrganizationCreateIssueType { /// /// Name of the issue type. @@ -13692,7 +13839,7 @@ public record OrganizationCreateIssueType } -public record OrganizationUpdateIssueType +public partial record OrganizationUpdateIssueType { /// /// Name of the issue type. @@ -13723,7 +13870,7 @@ public record OrganizationUpdateIssueType /// /// Org Membership /// -public record OrgMembership +public partial record OrgMembership { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -13773,7 +13920,7 @@ public record OrgMembership /// /// A migration. /// -public record Migration +public partial record Migration { [JsonPropertyName("id")] public required long Id { get; init; } @@ -13840,7 +13987,7 @@ public record Migration /// /// Organization roles /// -public record OrganizationRole +public partial record OrganizationRole { /// /// The unique identifier of the role. @@ -13898,7 +14045,7 @@ public record OrganizationRole /// /// The Relationship a Team has with a role. /// -public record TeamRoleAssignment +public partial record TeamRoleAssignment { /// /// Determines if the team has a direct, indirect, or mixed relationship to a role @@ -13971,7 +14118,7 @@ public record TeamRoleAssignment /// /// The Relationship a User has with a role. /// -public record UserRoleAssignment +public partial record UserRoleAssignment { /// /// Determines if the user has a direct, indirect, or mixed relationship to a role @@ -14056,7 +14203,7 @@ public record UserRoleAssignment /// /// A version of a software package /// -public record PackageVersion +public partial record PackageVersion { /// /// Unique identifier of the package version. @@ -14102,7 +14249,7 @@ public record PackageVersion /// /// Minimal representation of an organization programmatic access grant request for enumerations /// -public record OrganizationProgrammaticAccessGrantRequest +public partial record OrganizationProgrammaticAccessGrantRequest { /// /// Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests. @@ -14181,7 +14328,7 @@ public record OrganizationProgrammaticAccessGrantRequest /// /// Minimal representation of an organization programmatic access grant for enumerations /// -public record OrganizationProgrammaticAccessGrant +public partial record OrganizationProgrammaticAccessGrant { /// /// Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token. @@ -14254,7 +14401,7 @@ public record OrganizationProgrammaticAccessGrant /// /// Private registry configuration for an organization /// -public record OrgPrivateRegistryConfiguration +public partial record OrgPrivateRegistryConfiguration { /// /// The name of the private registry configuration. @@ -14399,7 +14546,7 @@ public record OrgPrivateRegistryConfiguration /// /// Private registry configuration for an organization /// -public record OrgPrivateRegistryConfigurationWithSelectedRepositories +public partial record OrgPrivateRegistryConfigurationWithSelectedRepositories { /// /// The name of the private registry configuration. @@ -14550,7 +14697,7 @@ public record OrgPrivateRegistryConfigurationWithSelectedRepositories /// /// An status update belonging to a project /// -public record ProjectsV2StatusUpdate +public partial record ProjectsV2StatusUpdate { /// /// The unique identifier of the status update. @@ -14617,7 +14764,7 @@ public record ProjectsV2StatusUpdate /// /// A projects v2 project /// -public record ProjectsV2 +public partial record ProjectsV2 { /// /// The unique identifier of the project. @@ -14720,7 +14867,7 @@ public record ProjectsV2 /// /// Hypermedia Link /// -public record Link +public partial record Link { [JsonPropertyName("href")] public required string Href { get; init; } @@ -14730,7 +14877,7 @@ public record Link /// /// The status of auto merging a pull request. /// -public record AutoMerge +public partial record AutoMerge { /// /// A GitHub user. @@ -14758,10 +14905,44 @@ public record AutoMerge } +/// +/// The stack information associated with a pull request. +/// +public partial record PullRequestStack +{ + [JsonPropertyName("base")] + public required object Base { get; init; } + + /// + /// The total number of pull requests in the stack. + /// + [JsonPropertyName("size")] + public int? Size { get; init; } + + /// + /// The one-based position of this pull request within the stack, where 1 is the bottom of the stack. + /// + [JsonPropertyName("position")] + public int? Position { get; init; } + + /// + /// The ID of the stack that this pull request belongs to. + /// + [JsonPropertyName("id")] + public int? Id { get; init; } + + /// + /// The number of the stack that this pull request belongs to. + /// + [JsonPropertyName("number")] + public int? Number { get; init; } + +} + /// /// Pull Request Simple /// -public record PullRequestSimple +public partial record PullRequestSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -14874,6 +15055,12 @@ public record PullRequestSimple [JsonPropertyName("auto_merge")] public required AutoMerge? AutoMerge { get; init; } + /// + /// The stack information associated with a pull request. + /// + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } + /// /// Indicates whether or not the pull request is a draft. /// @@ -14885,7 +15072,7 @@ public record PullRequestSimple /// /// A draft issue in a project /// -public record ProjectsV2DraftIssue +public partial record ProjectsV2DraftIssue { /// /// The ID of the draft issue @@ -14931,7 +15118,7 @@ public record ProjectsV2DraftIssue /// /// The type of content tracked in a project item /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProjectsV2ItemContentType { [JsonStringEnumMemberName("Issue")] @@ -14945,7 +15132,7 @@ public enum ProjectsV2ItemContentType /// /// An item belonging to a project /// -public record ProjectsV2ItemSimple +public partial record ProjectsV2ItemSimple { /// /// The unique identifier of the project item. @@ -15012,7 +15199,7 @@ public record ProjectsV2ItemSimple /// /// An option for a single select field /// -public record ProjectsV2SingleSelectOptions +public partial record ProjectsV2SingleSelectOptions { /// /// The unique identifier of the option. @@ -15043,7 +15230,7 @@ public record ProjectsV2SingleSelectOptions /// /// An iteration setting for an iteration field /// -public record ProjectsV2IterationSettings +public partial record ProjectsV2IterationSettings { /// /// The unique identifier of the iteration setting. @@ -15080,7 +15267,7 @@ public record ProjectsV2IterationSettings /// /// A field inside a projects v2 project /// -public record ProjectsV2Field +public partial record ProjectsV2Field { /// /// The unique identifier of the field. @@ -15144,7 +15331,7 @@ public record ProjectsV2Field } -public record ProjectsV2FieldSingleSelectOption +public partial record ProjectsV2FieldSingleSelectOption { /// /// The display name of the option. @@ -15169,19 +15356,19 @@ public record ProjectsV2FieldSingleSelectOption /// /// The configuration for iteration fields. /// -public record ProjectsV2FieldIterationConfiguration +public partial record ProjectsV2FieldIterationConfiguration { /// /// The start date of the first iteration. /// [JsonPropertyName("start_date")] - public DateOnly? StartDate { get; init; } + public required DateOnly StartDate { get; init; } /// /// The default duration for iterations in days. Individual iterations can override this value. /// [JsonPropertyName("duration")] - public int? Duration { get; init; } + public required int Duration { get; init; } /// /// Zero or more iterations for the field. @@ -15194,7 +15381,7 @@ public record ProjectsV2FieldIterationConfiguration /// /// An item belonging to a project /// -public record ProjectsV2ItemWithContent +public partial record ProjectsV2ItemWithContent { /// /// The unique identifier of the project item. @@ -15267,7 +15454,7 @@ public record ProjectsV2ItemWithContent /// /// A view inside a projects v2 project /// -public record ProjectsV2View +public partial record ProjectsV2View { /// /// The unique identifier of the view. @@ -15361,7 +15548,7 @@ public record ProjectsV2View /// /// Custom property defined on an organization /// -public record CustomProperty +public partial record CustomProperty { /// /// The name of the property @@ -15429,7 +15616,7 @@ public record CustomProperty /// /// Custom property set payload /// -public record CustomPropertySetPayload +public partial record CustomPropertySetPayload { /// /// The type of the value for the property @@ -15479,7 +15666,7 @@ public record CustomPropertySetPayload /// /// Custom property name and associated value /// -public record CustomPropertyValue +public partial record CustomPropertyValue { /// /// The name of the property @@ -15498,7 +15685,7 @@ public record CustomPropertyValue /// /// List of custom property values for a repository /// -public record OrgRepoCustomPropertyValues +public partial record OrgRepoCustomPropertyValues { [JsonPropertyName("repository_id")] public required int RepositoryId { get; init; } @@ -15520,7 +15707,7 @@ public record OrgRepoCustomPropertyValues /// /// Code of Conduct Simple /// -public record CodeOfConductSimple +public partial record CodeOfConductSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -15539,7 +15726,7 @@ public record CodeOfConductSimple /// /// Full Repository /// -public record FullRepository +public partial record FullRepository { [JsonPropertyName("id")] public required long Id { get; init; } @@ -15917,7 +16104,7 @@ public record FullRepository /// /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleEnforcement { [JsonStringEnumMemberName("disabled")] @@ -15931,7 +16118,7 @@ public enum RepositoryRuleEnforcement /// /// An actor that can bypass rules in a ruleset /// -public record RepositoryRulesetBypassActor +public partial record RepositoryRulesetBypassActor { /// /// The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, `Team`, and `User` actor types. If `actor_type` is `OrganizationAdmin`, `actor_id` is ignored. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. @@ -15956,7 +16143,7 @@ public record RepositoryRulesetBypassActor /// /// Parameters for a repository ruleset ref name condition /// -public record RepositoryRulesetConditions +public partial record RepositoryRulesetConditions { [JsonPropertyName("ref_name")] public object? RefName { get; init; } @@ -15966,7 +16153,7 @@ public record RepositoryRulesetConditions /// /// Parameters for a repository name condition /// -public record RepositoryRulesetConditionsRepositoryNameTarget +public partial record RepositoryRulesetConditionsRepositoryNameTarget { [JsonPropertyName("repository_name")] public required object RepositoryName { get; init; } @@ -15976,7 +16163,7 @@ public record RepositoryRulesetConditionsRepositoryNameTarget /// /// Parameters for a repository ID condition /// -public record RepositoryRulesetConditionsRepositoryIdTarget +public partial record RepositoryRulesetConditionsRepositoryIdTarget { [JsonPropertyName("repository_id")] public required object RepositoryId { get; init; } @@ -15986,7 +16173,7 @@ public record RepositoryRulesetConditionsRepositoryIdTarget /// /// Parameters for a targeting a repository property /// -public record RepositoryRulesetConditionsRepositoryPropertySpec +public partial record RepositoryRulesetConditionsRepositoryPropertySpec { /// /// The name of the repository property to target @@ -16011,7 +16198,7 @@ public record RepositoryRulesetConditionsRepositoryPropertySpec /// /// Parameters for a repository property condition /// -public record RepositoryRulesetConditionsRepositoryPropertyTarget +public partial record RepositoryRulesetConditionsRepositoryPropertyTarget { [JsonPropertyName("repository_property")] public required object RepositoryProperty { get; init; } @@ -16024,14 +16211,14 @@ public record RepositoryRulesetConditionsRepositoryPropertyTarget /// The push rulesets conditions object does not require the `ref_name` property. /// For repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`. /// -public record OrgRulesetConditions +public partial record OrgRulesetConditions { } /// /// Only allow users with bypass permission to create matching refs. /// -public record RepositoryRuleCreation +public partial record RepositoryRuleCreation { [JsonPropertyName("type")] public required RepositoryRuleCreationType Type { get; init; } @@ -16041,7 +16228,7 @@ public record RepositoryRuleCreation /// /// Only allow users with bypass permission to update matching refs. /// -public record RepositoryRuleUpdate +public partial record RepositoryRuleUpdate { [JsonPropertyName("type")] public required RepositoryRuleUpdateType Type { get; init; } @@ -16054,7 +16241,7 @@ public record RepositoryRuleUpdate /// /// Only allow users with bypass permissions to delete matching refs. /// -public record RepositoryRuleDeletion +public partial record RepositoryRuleDeletion { [JsonPropertyName("type")] public required RepositoryRuleDeletionType Type { get; init; } @@ -16064,7 +16251,7 @@ public record RepositoryRuleDeletion /// /// Prevent merge commits from being pushed to matching refs. /// -public record RepositoryRuleRequiredLinearHistory +public partial record RepositoryRuleRequiredLinearHistory { [JsonPropertyName("type")] public required RepositoryRuleRequiredLinearHistoryType Type { get; init; } @@ -16074,7 +16261,7 @@ public record RepositoryRuleRequiredLinearHistory /// /// Merges must be performed via a merge queue. /// -public record RepositoryRuleMergeQueue +public partial record RepositoryRuleMergeQueue { [JsonPropertyName("type")] public required RepositoryRuleMergeQueueType Type { get; init; } @@ -16087,7 +16274,7 @@ public record RepositoryRuleMergeQueue /// /// Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. /// -public record RepositoryRuleRequiredDeployments +public partial record RepositoryRuleRequiredDeployments { [JsonPropertyName("type")] public required RepositoryRuleRequiredDeploymentsType Type { get; init; } @@ -16100,7 +16287,7 @@ public record RepositoryRuleRequiredDeployments /// /// Commits pushed to matching refs must have verified signatures. /// -public record RepositoryRuleRequiredSignatures +public partial record RepositoryRuleRequiredSignatures { [JsonPropertyName("type")] public required RepositoryRuleRequiredSignaturesType Type { get; init; } @@ -16110,7 +16297,7 @@ public record RepositoryRuleRequiredSignatures /// /// An actor allowed to dismiss pull request reviews /// -public record RepositoryRuleParamsActor +public partial record RepositoryRuleParamsActor { /// /// ID of the actor that can dismiss reviews. @@ -16129,7 +16316,7 @@ public record RepositoryRuleParamsActor /// /// Specify people, teams, or apps allowed to dismiss pull request reviews. /// -public record RepositoryRuleParamsDismissalRestriction +public partial record RepositoryRuleParamsDismissalRestriction { /// /// Specify people, teams, or apps allowed to dismiss pull request reviews. @@ -16148,7 +16335,7 @@ public record RepositoryRuleParamsDismissalRestriction /// /// A required reviewing team /// -public record RepositoryRuleParamsReviewer +public partial record RepositoryRuleParamsReviewer { /// /// ID of the reviewer which must review changes to matching files. @@ -16167,7 +16354,7 @@ public record RepositoryRuleParamsReviewer /// /// A reviewing team, and file patterns describing which files they must approve changes to. /// -public record RepositoryRuleParamsRequiredReviewerConfiguration +public partial record RepositoryRuleParamsRequiredReviewerConfiguration { /// /// Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax. @@ -16192,7 +16379,7 @@ public record RepositoryRuleParamsRequiredReviewerConfiguration /// /// Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. /// -public record RepositoryRulePullRequest +public partial record RepositoryRulePullRequest { [JsonPropertyName("type")] public required RepositoryRulePullRequestType Type { get; init; } @@ -16205,7 +16392,7 @@ public record RepositoryRulePullRequest /// /// Required status check /// -public record RepositoryRuleParamsStatusCheckConfiguration +public partial record RepositoryRuleParamsStatusCheckConfiguration { /// /// The status check context name that must be present on the commit. @@ -16224,7 +16411,7 @@ public record RepositoryRuleParamsStatusCheckConfiguration /// /// Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. /// -public record RepositoryRuleRequiredStatusChecks +public partial record RepositoryRuleRequiredStatusChecks { [JsonPropertyName("type")] public required RepositoryRuleRequiredStatusChecksType Type { get; init; } @@ -16237,7 +16424,7 @@ public record RepositoryRuleRequiredStatusChecks /// /// Prevent users with push access from force pushing to refs. /// -public record RepositoryRuleNonFastForward +public partial record RepositoryRuleNonFastForward { [JsonPropertyName("type")] public required RepositoryRuleNonFastForwardType Type { get; init; } @@ -16247,7 +16434,7 @@ public record RepositoryRuleNonFastForward /// /// Parameters to be used for the commit_message_pattern rule /// -public record RepositoryRuleCommitMessagePattern +public partial record RepositoryRuleCommitMessagePattern { [JsonPropertyName("type")] public required RepositoryRuleCommitMessagePatternType Type { get; init; } @@ -16260,7 +16447,7 @@ public record RepositoryRuleCommitMessagePattern /// /// Parameters to be used for the commit_author_email_pattern rule /// -public record RepositoryRuleCommitAuthorEmailPattern +public partial record RepositoryRuleCommitAuthorEmailPattern { [JsonPropertyName("type")] public required RepositoryRuleCommitAuthorEmailPatternType Type { get; init; } @@ -16273,7 +16460,7 @@ public record RepositoryRuleCommitAuthorEmailPattern /// /// Parameters to be used for the committer_email_pattern rule /// -public record RepositoryRuleCommitterEmailPattern +public partial record RepositoryRuleCommitterEmailPattern { [JsonPropertyName("type")] public required RepositoryRuleCommitterEmailPatternType Type { get; init; } @@ -16286,7 +16473,7 @@ public record RepositoryRuleCommitterEmailPattern /// /// Parameters to be used for the branch_name_pattern rule /// -public record RepositoryRuleBranchNamePattern +public partial record RepositoryRuleBranchNamePattern { [JsonPropertyName("type")] public required RepositoryRuleBranchNamePatternType Type { get; init; } @@ -16299,7 +16486,7 @@ public record RepositoryRuleBranchNamePattern /// /// Parameters to be used for the tag_name_pattern rule /// -public record RepositoryRuleTagNamePattern +public partial record RepositoryRuleTagNamePattern { [JsonPropertyName("type")] public required RepositoryRuleTagNamePatternType Type { get; init; } @@ -16312,7 +16499,7 @@ public record RepositoryRuleTagNamePattern /// /// Restricted commit /// -public record RepositoryRuleParamsRestrictedCommits +public partial record RepositoryRuleParamsRestrictedCommits { /// /// Full or abbreviated commit hash to reject @@ -16331,7 +16518,7 @@ public record RepositoryRuleParamsRestrictedCommits /// /// A workflow that must run for this rule to pass /// -public record RepositoryRuleParamsWorkflowFileReference +public partial record RepositoryRuleParamsWorkflowFileReference { /// /// The path to the workflow file @@ -16362,7 +16549,7 @@ public record RepositoryRuleParamsWorkflowFileReference /// /// Require all changes made to a targeted branch to pass the specified workflows before they can be merged. /// -public record RepositoryRuleWorkflows +public partial record RepositoryRuleWorkflows { [JsonPropertyName("type")] public required RepositoryRuleWorkflowsType Type { get; init; } @@ -16375,7 +16562,7 @@ public record RepositoryRuleWorkflows /// /// A tool that must provide code scanning results for this rule to pass. /// -public record RepositoryRuleParamsCodeScanningTool +public partial record RepositoryRuleParamsCodeScanningTool { /// /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." @@ -16400,7 +16587,7 @@ public record RepositoryRuleParamsCodeScanningTool /// /// Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. /// -public record RepositoryRuleCodeScanning +public partial record RepositoryRuleCodeScanning { [JsonPropertyName("type")] public required RepositoryRuleCodeScanningType Type { get; init; } @@ -16413,7 +16600,7 @@ public record RepositoryRuleCodeScanning /// /// Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit. /// -public record RepositoryRuleCopilotCodeReview +public partial record RepositoryRuleCopilotCodeReview { [JsonPropertyName("type")] public required RepositoryRuleCopilotCodeReviewType Type { get; init; } @@ -16423,10 +16610,20 @@ public record RepositoryRuleCopilotCodeReview } +/// +/// Enforce any added or changed dependencies to comply with the organization's license policy. +/// +public partial record RepositoryRuleLicenseComplianceScanning +{ + [JsonPropertyName("type")] + public required RepositoryRuleLicenseComplianceScanningType Type { get; init; } + +} + /// /// Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names. /// -public record RepositoryRuleFilePathRestriction +public partial record RepositoryRuleFilePathRestriction { [JsonPropertyName("type")] public required RepositoryRuleFilePathRestrictionType Type { get; init; } @@ -16439,7 +16636,7 @@ public record RepositoryRuleFilePathRestriction /// /// Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph. /// -public record RepositoryRuleMaxFilePathLength +public partial record RepositoryRuleMaxFilePathLength { [JsonPropertyName("type")] public required RepositoryRuleMaxFilePathLengthType Type { get; init; } @@ -16452,7 +16649,7 @@ public record RepositoryRuleMaxFilePathLength /// /// Prevent commits that include files with specified file extensions from being pushed to the commit graph. /// -public record RepositoryRuleFileExtensionRestriction +public partial record RepositoryRuleFileExtensionRestriction { [JsonPropertyName("type")] public required RepositoryRuleFileExtensionRestrictionType Type { get; init; } @@ -16465,7 +16662,7 @@ public record RepositoryRuleFileExtensionRestriction /// /// Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph. /// -public record RepositoryRuleMaxFileSize +public partial record RepositoryRuleMaxFileSize { [JsonPropertyName("type")] public required RepositoryRuleMaxFileSizeType Type { get; init; } @@ -16478,14 +16675,14 @@ public record RepositoryRuleMaxFileSize /// /// A repository rule. /// -public record RepositoryRule +public partial record RepositoryRule { } /// /// A set of rules to apply when specified conditions are met. /// -public record RepositoryRuleset +public partial record RepositoryRuleset { /// /// The ID of the ruleset @@ -16559,7 +16756,7 @@ public record RepositoryRuleset /// /// A repository rule. /// -public record OrgRules +public partial record OrgRules { } @@ -16571,7 +16768,7 @@ public record RuleSuites; /// /// Metadata for a pull request rule evaluation result. /// -public record RuleSuitePullRequest +public partial record RuleSuitePullRequest { /// /// The pull request associated with the rule evaluation. @@ -16584,7 +16781,7 @@ public record RuleSuitePullRequest /// /// Metadata for a required status checks rule evaluation result. /// -public record RuleSuiteRequiredStatusChecks +public partial record RuleSuiteRequiredStatusChecks { /// /// The status checks associated with the rule evaluation. @@ -16597,7 +16794,7 @@ public record RuleSuiteRequiredStatusChecks /// /// Response /// -public record RuleSuite +public partial record RuleSuite { /// /// The unique identifier of the rule insight. @@ -16673,7 +16870,7 @@ public record RuleSuite /// /// The historical version of a ruleset /// -public record RulesetVersion +public partial record RulesetVersion { /// /// The ID of the previous version of the ruleset @@ -16692,7 +16889,7 @@ public record RulesetVersion } -public record RulesetVersionWithState : RulesetVersion +public partial record RulesetVersionWithState : RulesetVersion { /// /// The state of the ruleset version @@ -16705,7 +16902,7 @@ public record RulesetVersionWithState : RulesetVersion /// /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertState { [JsonStringEnumMemberName("open")] @@ -16717,7 +16914,7 @@ public enum SecretScanningAlertState /// /// **Required when the `state` is `resolved`.** The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertResolution { [JsonStringEnumMemberName("false_positive")] @@ -16735,7 +16932,7 @@ public enum SecretScanningAlertResolution /// /// Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. /// -public record SecretScanningLocationCommit +public partial record SecretScanningLocationCommit { /// /// The file path in the repository @@ -16802,7 +16999,7 @@ public record SecretScanningLocationCommit /// /// Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. /// -public record SecretScanningLocationWikiCommit +public partial record SecretScanningLocationWikiCommit { /// /// The file path of the wiki page @@ -16863,7 +17060,7 @@ public record SecretScanningLocationWikiCommit /// /// Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. /// -public record SecretScanningLocationIssueTitle +public partial record SecretScanningLocationIssueTitle { /// /// The API URL to get the issue where the secret was detected. @@ -16882,7 +17079,7 @@ public record SecretScanningLocationIssueTitle /// /// Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. /// -public record SecretScanningLocationIssueBody +public partial record SecretScanningLocationIssueBody { /// /// The API URL to get the issue where the secret was detected. @@ -16901,7 +17098,7 @@ public record SecretScanningLocationIssueBody /// /// Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. /// -public record SecretScanningLocationIssueComment +public partial record SecretScanningLocationIssueComment { /// /// The API URL to get the issue comment where the secret was detected. @@ -16920,7 +17117,7 @@ public record SecretScanningLocationIssueComment /// /// Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. /// -public record SecretScanningLocationDiscussionTitle +public partial record SecretScanningLocationDiscussionTitle { /// /// The URL to the discussion where the secret was detected. @@ -16933,7 +17130,7 @@ public record SecretScanningLocationDiscussionTitle /// /// Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. /// -public record SecretScanningLocationDiscussionBody +public partial record SecretScanningLocationDiscussionBody { /// /// The URL to the discussion where the secret was detected. @@ -16946,7 +17143,7 @@ public record SecretScanningLocationDiscussionBody /// /// Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. /// -public record SecretScanningLocationDiscussionComment +public partial record SecretScanningLocationDiscussionComment { /// /// The API URL to get the discussion comment where the secret was detected. @@ -16959,7 +17156,7 @@ public record SecretScanningLocationDiscussionComment /// /// Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. /// -public record SecretScanningLocationPullRequestTitle +public partial record SecretScanningLocationPullRequestTitle { /// /// The API URL to get the pull request where the secret was detected. @@ -16978,7 +17175,7 @@ public record SecretScanningLocationPullRequestTitle /// /// Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. /// -public record SecretScanningLocationPullRequestBody +public partial record SecretScanningLocationPullRequestBody { /// /// The API URL to get the pull request where the secret was detected. @@ -16997,7 +17194,7 @@ public record SecretScanningLocationPullRequestBody /// /// Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. /// -public record SecretScanningLocationPullRequestComment +public partial record SecretScanningLocationPullRequestComment { /// /// The API URL to get the pull request comment where the secret was detected. @@ -17016,7 +17213,7 @@ public record SecretScanningLocationPullRequestComment /// /// Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. /// -public record SecretScanningLocationPullRequestReview +public partial record SecretScanningLocationPullRequestReview { /// /// The API URL to get the pull request review where the secret was detected. @@ -17035,7 +17232,7 @@ public record SecretScanningLocationPullRequestReview /// /// Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request. /// -public record SecretScanningLocationPullRequestReviewComment +public partial record SecretScanningLocationPullRequestReviewComment { /// /// The API URL to get the pull request review comment where the secret was detected. @@ -17071,9 +17268,9 @@ public record SecretScanningLocationPullRequestReviewComment [JsonDerivedType(typeof(SecretScanningLocationPullRequestComment), "secret-scanning-location-pull-request-comment")] [JsonDerivedType(typeof(SecretScanningLocationPullRequestReview), "secret-scanning-location-pull-request-review")] [JsonDerivedType(typeof(SecretScanningLocationPullRequestReviewComment), "secret-scanning-location-pull-request-review-comment")] -public abstract record SecretScanningFirstDetectedLocation; +public abstract partial record SecretScanningFirstDetectedLocation; -public record OrganizationSecretScanningAlert +public partial record OrganizationSecretScanningAlert { /// /// The security alert number. @@ -17268,12 +17465,223 @@ public record OrganizationSecretScanningAlert /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningRowVersion(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningRowVersion(string? Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningRowVersion Create(string? value) => new(value); } -public record SecretScanningPatternOverride +/// +/// A custom pattern for secret scanning. +/// +public partial record SecretScanningCustomPattern +{ + /// + /// The ID of the custom pattern. + /// + [JsonPropertyName("id")] + public required int Id { get; init; } + + /// + /// The name of the custom pattern. + /// + [JsonPropertyName("name")] + public required string Name { get; init; } + + /// + /// The regular expression of the custom pattern. + /// + [JsonPropertyName("pattern")] + public required string Pattern { get; init; } + + /// + /// A URL-friendly identifier for the custom pattern, derived from its name. + /// + [JsonPropertyName("slug")] + public required string Slug { get; init; } + + /// + /// The state of the custom pattern. + /// + [JsonPropertyName("state")] + public required SecretScanningCustomPatternState State { get; init; } + + /// + /// Whether push protection is enabled for this custom pattern. + /// + [JsonPropertyName("push_protection_enabled")] + public required bool PushProtectionEnabled { get; init; } + + /// + /// The start delimiter regex for the custom pattern. + /// + [JsonPropertyName("start_delimiter")] + public string? StartDelimiter { get; init; } + + /// + /// The end delimiter regex for the custom pattern. + /// + [JsonPropertyName("end_delimiter")] + public string? EndDelimiter { get; init; } + + /// + /// List of regexes that the secret must match. + /// + [JsonPropertyName("must_match")] + public IReadOnlyList? MustMatch { get; init; } + + /// + /// List of regexes that the secret must not match. + /// + [JsonPropertyName("must_not_match")] + public IReadOnlyList? MustNotMatch { get; init; } + + /// + /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. + /// + [JsonPropertyName("custom_pattern_version")] + public SecretScanningRowVersion? CustomPatternVersion { get; init; } + + /// + /// The date and time the custom pattern was created in ISO 8601 format. + /// + [JsonPropertyName("created_at")] + public DateTimeOffset? CreatedAt { get; init; } + + /// + /// The date and time the custom pattern was last updated in ISO 8601 format. + /// + [JsonPropertyName("updated_at")] + public DateTimeOffset? UpdatedAt { get; init; } + +} + +/// +/// A custom pattern to create in a bulk operation. +/// +public partial record SecretScanningCustomPatternToCreate +{ + /// + /// The name of the custom pattern. + /// + [JsonPropertyName("name")] + public required string Name { get; init; } + + /// + /// The regular expression of the custom pattern. + /// + [JsonPropertyName("pattern")] + public required string Pattern { get; init; } + + /// + /// The start delimiter regex for the custom pattern. + /// Defaults to `\A|[^0-9A-Za-z]` when not specified. + /// + [JsonPropertyName("start_delimiter")] + public string StartDelimiter { get; init; } = "\\A|[^0-9A-Za-z]"; + + /// + /// The end delimiter regex for the custom pattern. + /// Defaults to `\z|[^0-9A-Za-z]` when not specified. + /// + [JsonPropertyName("end_delimiter")] + public string EndDelimiter { get; init; } = "\\z|[^0-9A-Za-z]"; + + /// + /// List of regexes that the secret must match. + /// + [JsonPropertyName("must_match")] + public IReadOnlyList? MustMatch { get; init; } + + /// + /// List of regexes that the secret must not match. + /// + [JsonPropertyName("must_not_match")] + public IReadOnlyList? MustNotMatch { get; init; } + +} + +/// +/// A validation error for a custom pattern in a batch operation. +/// +public partial record SecretScanningCustomPatternValidationError +{ + /// + /// A machine-readable code describing the error. + /// + [JsonPropertyName("code")] + public Code? Code { get; init; } + + /// + /// A human-readable description of the error. + /// + [JsonPropertyName("message")] + public string? Message { get; init; } + +} + +/// +/// A custom pattern to delete in a bulk operation. +/// +public partial record SecretScanningCustomPatternToDelete +{ + /// + /// The ID of the custom pattern to delete. + /// + [JsonPropertyName("pattern_id")] + public required int PatternId { get; init; } + + /// + /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. + /// + [JsonPropertyName("custom_pattern_version")] + public SecretScanningRowVersion? CustomPatternVersion { get; init; } + +} + +/// +/// Fields to update on a custom pattern. At least one updatable field (`pattern`, `start_delimiter`, `end_delimiter`, `must_match`, or `must_not_match`) must also be provided. Only provided fields will be updated. +/// +public partial record SecretScanningCustomPatternToUpdate +{ + /// + /// The updated regular expression of the custom pattern. + /// + [JsonPropertyName("pattern")] + public string? Pattern { get; init; } + + /// + /// The updated start delimiter regex for the custom pattern. + /// + [JsonPropertyName("start_delimiter")] + public string? StartDelimiter { get; init; } + + /// + /// The updated end delimiter regex for the custom pattern. + /// + [JsonPropertyName("end_delimiter")] + public string? EndDelimiter { get; init; } + + /// + /// Updated list of regexes that the secret must match. + /// + [JsonPropertyName("must_match")] + public IReadOnlyList? MustMatch { get; init; } + + /// + /// Updated list of regexes that the secret must not match. + /// + [JsonPropertyName("must_not_match")] + public IReadOnlyList? MustNotMatch { get; init; } + + /// + /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. + /// + [JsonPropertyName("custom_pattern_version")] + public required SecretScanningRowVersion? CustomPatternVersion { get; init; } + +} + +public partial record SecretScanningPatternOverride { /// /// The ID of the pattern. @@ -17352,7 +17760,7 @@ public record SecretScanningPatternOverride /// /// A collection of secret scanning patterns and their settings related to push protection. /// -public record SecretScanningPatternConfiguration +public partial record SecretScanningPatternConfiguration { /// /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. @@ -17377,7 +17785,7 @@ public record SecretScanningPatternConfiguration /// /// A product affected by the vulnerability detailed in a repository security advisory. /// -public record RepositoryAdvisoryVulnerability +public partial record RepositoryAdvisoryVulnerability { /// /// The name of the package affected by the vulnerability. @@ -17408,7 +17816,7 @@ public record RepositoryAdvisoryVulnerability /// /// A credit given to a user for a repository security advisory. /// -public record RepositoryAdvisoryCredit +public partial record RepositoryAdvisoryCredit { /// /// A GitHub user. @@ -17433,7 +17841,7 @@ public record RepositoryAdvisoryCredit /// /// A repository security advisory. /// -public record RepositoryAdvisory +public partial record RepositoryAdvisory { /// /// The GitHub Security Advisory ID. @@ -17578,7 +17986,7 @@ public record RepositoryAdvisory /// /// Check immutable releases settings for an organization. /// -public record ImmutableReleasesOrganizationSettings +public partial record ImmutableReleasesOrganizationSettings { /// /// The policy that controls how immutable releases are enforced in the organization. @@ -17597,7 +18005,7 @@ public record ImmutableReleasesOrganizationSettings /// /// A hosted compute network configuration. /// -public record NetworkConfiguration +public partial record NetworkConfiguration { /// /// The unique identifier of the network configuration. @@ -17646,7 +18054,7 @@ public record NetworkConfiguration /// /// A hosted compute network settings resource. /// -public record NetworkSettings +public partial record NetworkSettings { /// /// The unique identifier of the network settings resource. @@ -17683,7 +18091,7 @@ public record NetworkSettings /// /// Team Organization /// -public record TeamOrganization +public partial record TeamOrganization { [JsonPropertyName("login")] public required string Login { get; init; } @@ -17841,7 +18249,7 @@ public record TeamOrganization /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct LdapDn(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct LdapDn(string Value) : IOpenApiGeneratedTypeAlias { public static LdapDn Create(string value) => new(value); } @@ -17849,7 +18257,7 @@ public readonly record struct LdapDn(string Value) : IOpenApiGeneratedTypeAlias< /// /// Groups of organization members that gives permissions on specified repositories. /// -public record TeamFull +public partial record TeamFull { /// /// Unique identifier of the team @@ -17952,10 +18360,95 @@ public record TeamFull } +/// +/// A user that is a member of a team, including their role on the team and whether the membership is inherited from a child team. +/// +public partial record TeamMember +{ + [JsonPropertyName("name")] + public string? Name { get; init; } + + [JsonPropertyName("email")] + public string? Email { get; init; } + + [JsonPropertyName("login")] + public required string Login { get; init; } + + [JsonPropertyName("id")] + public required long Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("avatar_url")] + public required Uri AvatarUrl { get; init; } + + [JsonPropertyName("gravatar_id")] + public required string? GravatarId { get; init; } + + [JsonPropertyName("url")] + public required Uri Url { get; init; } + + [JsonPropertyName("html_url")] + public required Uri HtmlUrl { get; init; } + + [JsonPropertyName("followers_url")] + public required Uri FollowersUrl { get; init; } + + [JsonPropertyName("following_url")] + public required string FollowingUrl { get; init; } + + [JsonPropertyName("gists_url")] + public required string GistsUrl { get; init; } + + [JsonPropertyName("starred_url")] + public required string StarredUrl { get; init; } + + [JsonPropertyName("subscriptions_url")] + public required Uri SubscriptionsUrl { get; init; } + + [JsonPropertyName("organizations_url")] + public required Uri OrganizationsUrl { get; init; } + + [JsonPropertyName("repos_url")] + public required Uri ReposUrl { get; init; } + + [JsonPropertyName("events_url")] + public required string EventsUrl { get; init; } + + [JsonPropertyName("received_events_url")] + public required Uri ReceivedEventsUrl { get; init; } + + [JsonPropertyName("type")] + public required string Type { get; init; } + + [JsonPropertyName("site_admin")] + public required bool SiteAdmin { get; init; } + + [JsonPropertyName("starred_at")] + public string? StarredAt { get; init; } + + [JsonPropertyName("user_view_type")] + public string? UserViewType { get; init; } + + /// + /// The member's role on the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization. + /// + [JsonPropertyName("role")] + public TeamMemberRole? Role { get; init; } + + /// + /// Whether the user is a member of the team only through a child team. `true` means the membership is inherited from a child team; `false` means the user is a direct (immediate) member of the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization. + /// + [JsonPropertyName("inherited")] + public bool? Inherited { get; init; } + +} + /// /// Team Membership /// -public record TeamMembership +public partial record TeamMembership { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -17964,7 +18457,7 @@ public record TeamMembership /// The role of the user in the team. /// [JsonPropertyName("role")] - public required TeamMembershipRole Role { get; init; } = Generated.GithubApiNext.TeamMembershipRole.Member; + public required TeamMemberRole Role { get; init; } = Generated.GithubApiNext.TeamMemberRole.Member; /// /// The state of the user's membership in the team. @@ -17977,7 +18470,7 @@ public record TeamMembership /// /// A team's access to a repository. /// -public record TeamRepository +public partial record TeamRepository { /// /// Unique identifier of the repository @@ -18305,7 +18798,7 @@ public record TeamRepository } -public record RateLimit +public partial record RateLimit { [JsonPropertyName("limit")] public required int Limit { get; init; } @@ -18324,7 +18817,7 @@ public record RateLimit /// /// Rate Limit Overview /// -public record RateLimitOverview +public partial record RateLimitOverview { [JsonPropertyName("resources")] public required object Resources { get; init; } @@ -18337,7 +18830,7 @@ public record RateLimitOverview /// /// An artifact /// -public record Artifact +public partial record Artifact { [JsonPropertyName("id")] public required int Id { get; init; } @@ -18392,7 +18885,7 @@ public record Artifact /// /// GitHub Actions cache retention policy for a repository. /// -public record ActionsCacheRetentionLimitForRepository +public partial record ActionsCacheRetentionLimitForRepository { /// /// The maximum number of days to keep caches in this repository. @@ -18405,7 +18898,7 @@ public record ActionsCacheRetentionLimitForRepository /// /// GitHub Actions cache storage policy for a repository. /// -public record ActionsCacheStorageLimitForRepository +public partial record ActionsCacheStorageLimitForRepository { /// /// The maximum total cache size for this repository, in gigabytes. @@ -18418,7 +18911,7 @@ public record ActionsCacheStorageLimitForRepository /// /// Repository actions caches /// -public record ActionsCacheList +public partial record ActionsCacheList { /// /// Total number of caches @@ -18437,7 +18930,7 @@ public record ActionsCacheList /// /// A list of active concurrency groups for a repository. /// -public record ConcurrencyGroupList +public partial record ConcurrencyGroupList { [JsonPropertyName("total_count")] public required int TotalCount { get; init; } @@ -18451,7 +18944,7 @@ public record ConcurrencyGroupList /// A concurrency group with the workflow runs and jobs that are either currently holding /// or waiting for the concurrency group lease. /// -public record ConcurrencyGroup +public partial record ConcurrencyGroup { /// /// The name of the concurrency group. @@ -18476,19 +18969,19 @@ public record ConcurrencyGroup /// /// Information of a job execution in a workflow run /// -public record Job +public partial record Job { /// /// The id of the job. /// [JsonPropertyName("id")] - public required int Id { get; init; } + public required long Id { get; init; } /// /// The id of the associated workflow run. /// [JsonPropertyName("run_id")] - public required int RunId { get; init; } + public required long RunId { get; init; } [JsonPropertyName("run_url")] public required string RunUrl { get; init; } @@ -18606,7 +19099,7 @@ public record Job /// /// Actions OIDC subject customization for a repository /// -public record OidcCustomSubRepo +public partial record OidcCustomSubRepo { /// /// Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. @@ -18637,7 +19130,7 @@ public record OidcCustomSubRepo /// /// Set secrets for GitHub Actions. /// -public record ActionsSecret +public partial record ActionsSecret { /// /// The name of the secret. @@ -18653,7 +19146,7 @@ public record ActionsSecret } -public record ActionsVariable +public partial record ActionsVariable { /// /// The name of the variable. @@ -18688,12 +19181,12 @@ public record ActionsVariable /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct ActionsEnabled(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct ActionsEnabled(bool Value) : IOpenApiGeneratedTypeAlias { public static ActionsEnabled Create(bool value) => new(value); } -public record ActionsRepositoryPermissions +public partial record ActionsRepositoryPermissions { /// /// Whether GitHub Actions is enabled on the repository. @@ -18721,7 +19214,7 @@ public record ActionsRepositoryPermissions } -public record ActionsWorkflowAccessToRepository +public partial record ActionsWorkflowAccessToRepository { /// /// Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the @@ -18737,7 +19230,7 @@ public record ActionsWorkflowAccessToRepository /// /// A workflow referenced/reused by the initial caller workflow /// -public record ReferencedWorkflow +public partial record ReferencedWorkflow { [JsonPropertyName("path")] public required string Path { get; init; } @@ -18753,7 +19246,7 @@ public record ReferencedWorkflow /// /// A commit. /// -public record SimpleCommit +public partial record SimpleCommit { /// /// SHA for the commit @@ -18796,13 +19289,13 @@ public record SimpleCommit /// /// An invocation of a workflow /// -public record WorkflowRun +public partial record WorkflowRun { /// /// The ID of the workflow run. /// [JsonPropertyName("id")] - public required int Id { get; init; } + public required long Id { get; init; } /// /// The name of the workflow run. @@ -18817,7 +19310,7 @@ public record WorkflowRun /// The ID of the associated check suite. /// [JsonPropertyName("check_suite_id")] - public int? CheckSuiteId { get; init; } + public long? CheckSuiteId { get; init; } /// /// The node ID of the associated check suite. @@ -18986,7 +19479,7 @@ public record WorkflowRun /// /// An entry in the reviews log for environment deployments /// -public record EnvironmentApprovals +public partial record EnvironmentApprovals { /// /// The list of environments that were approved or rejected @@ -19017,7 +19510,7 @@ public record EnvironmentApprovals /// /// A list of concurrency groups associated with a workflow run. /// -public record ConcurrencyGroupRunList +public partial record ConcurrencyGroupRunList { /// /// The total number of concurrency groups this workflow run participates in, @@ -19034,7 +19527,7 @@ public record ConcurrencyGroupRunList } -public record ReviewCustomGatesCommentRequired +public partial record ReviewCustomGatesCommentRequired { /// /// The name of the environment to approve or reject. @@ -19050,7 +19543,7 @@ public record ReviewCustomGatesCommentRequired } -public record ReviewCustomGatesStateRequired +public partial record ReviewCustomGatesStateRequired { /// /// The name of the environment to approve or reject. @@ -19075,7 +19568,7 @@ public record ReviewCustomGatesStateRequired /// /// The type of reviewer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeploymentReviewerType { [JsonStringEnumMemberName("User")] @@ -19087,7 +19580,7 @@ public enum DeploymentReviewerType /// /// Details of a deployment that is waiting for protection rules to pass /// -public record PendingDeployment +public partial record PendingDeployment { [JsonPropertyName("environment")] public required object Environment { get; init; } @@ -19121,7 +19614,7 @@ public record PendingDeployment /// /// A request for a specific ref(branch,sha,tag) to be deployed /// -public record Deployment +public partial record Deployment { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19200,7 +19693,7 @@ public record Deployment /// /// Workflow Run Usage /// -public record WorkflowRunUsage +public partial record WorkflowRunUsage { [JsonPropertyName("billable")] public required object Billable { get; init; } @@ -19213,7 +19706,7 @@ public record WorkflowRunUsage /// /// A GitHub Actions workflow /// -public record Workflow +public partial record Workflow { [JsonPropertyName("id")] public required int Id { get; init; } @@ -19257,7 +19750,7 @@ public record Workflow /// Type alias for long. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WorkflowRunId(long Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WorkflowRunId(long Value) : IOpenApiGeneratedTypeAlias { public static WorkflowRunId Create(long value) => new(value); } @@ -19265,7 +19758,7 @@ public readonly record struct WorkflowRunId(long Value) : IOpenApiGeneratedTypeA /// /// Response containing the workflow run ID and URLs. /// -public record WorkflowDispatchResponse +public partial record WorkflowDispatchResponse { /// /// The ID of the workflow run. @@ -19287,7 +19780,7 @@ public record WorkflowDispatchResponse /// /// Workflow Usage /// -public record WorkflowUsage +public partial record WorkflowUsage { [JsonPropertyName("billable")] public required object Billable { get; init; } @@ -19297,7 +19790,7 @@ public record WorkflowUsage /// /// Activity /// -public record Activity +public partial record Activity { [JsonPropertyName("id")] public required int Id { get; init; } @@ -19343,7 +19836,7 @@ public record Activity /// /// An autolink reference. /// -public record Autolink +public partial record Autolink { [JsonPropertyName("id")] public required int Id { get; init; } @@ -19374,7 +19867,7 @@ public record Autolink /// /// Check Dependabot security updates /// -public record CheckAutomatedSecurityFixes +public partial record CheckAutomatedSecurityFixes { /// /// Whether Dependabot security updates are enabled for the repository. @@ -19393,7 +19886,7 @@ public record CheckAutomatedSecurityFixes /// /// Protected Branch Required Status Check /// -public record ProtectedBranchRequiredStatusCheck +public partial record ProtectedBranchRequiredStatusCheck { [JsonPropertyName("url")] public string? Url { get; init; } @@ -19418,7 +19911,7 @@ public record ProtectedBranchRequiredStatusCheck /// /// Protected Branch Admin Enforced /// -public record ProtectedBranchAdminEnforced +public partial record ProtectedBranchAdminEnforced { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19431,7 +19924,7 @@ public record ProtectedBranchAdminEnforced /// /// Protected Branch Pull Request Review /// -public record ProtectedBranchPullRequestReview +public partial record ProtectedBranchPullRequestReview { [JsonPropertyName("url")] public Uri? Url { get; init; } @@ -19465,7 +19958,7 @@ public record ProtectedBranchPullRequestReview /// /// Branch Restriction Policy /// -public record BranchRestrictionPolicy +public partial record BranchRestrictionPolicy { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19493,7 +19986,7 @@ public record BranchRestrictionPolicy /// /// Branch Protection /// -public record BranchProtection +public partial record BranchProtection { [JsonPropertyName("url")] public string? Url { get; init; } @@ -19566,7 +20059,7 @@ public record BranchProtection /// /// Short Branch /// -public record ShortBranch +public partial record ShortBranch { [JsonPropertyName("name")] public required string Name { get; init; } @@ -19591,7 +20084,7 @@ public record ShortBranch /// /// Metaproperties for Git author/committer information. /// -public record GitUser +public partial record GitUser { [JsonPropertyName("name")] public string? Name { get; init; } @@ -19604,7 +20097,7 @@ public record GitUser } -public record Verification +public partial record Verification { [JsonPropertyName("verified")] public required bool Verified { get; init; } @@ -19626,7 +20119,7 @@ public record Verification /// /// Diff Entry /// -public record DiffEntry +public partial record DiffEntry { [JsonPropertyName("sha")] public required string? Sha { get; init; } @@ -19666,7 +20159,7 @@ public record DiffEntry /// /// Commit /// -public record Commit +public partial record Commit { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19706,7 +20199,7 @@ public record Commit /// /// Branch With Protection /// -public record BranchWithProtection +public partial record BranchWithProtection { [JsonPropertyName("name")] public required string Name { get; init; } @@ -19743,7 +20236,7 @@ public record BranchWithProtection /// /// Status Check Policy /// -public record StatusCheckPolicy +public partial record StatusCheckPolicy { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19765,7 +20258,7 @@ public record StatusCheckPolicy /// /// Branch protections protect branches /// -public record ProtectedBranch +public partial record ProtectedBranch { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19823,7 +20316,7 @@ public record ProtectedBranch /// /// A deployment created as the result of an Actions check run from a workflow that references an environment /// -public record DeploymentSimple +public partial record DeploymentSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19887,7 +20380,7 @@ public record DeploymentSimple /// /// A check performed on the code of a given code change /// -public record CheckRun +public partial record CheckRun { /// /// The id of the check. @@ -19963,7 +20456,7 @@ public record CheckRun /// /// Check Annotation /// -public record CheckAnnotation +public partial record CheckAnnotation { [JsonPropertyName("path")] public required string Path { get; init; } @@ -20000,7 +20493,7 @@ public record CheckAnnotation /// /// A suite of checks performed on the code of a given code change /// -public record CheckSuite +public partial record CheckSuite { [JsonPropertyName("id")] public required long Id { get; init; } @@ -20076,7 +20569,7 @@ public record CheckSuite /// /// Check suite configuration preferences for a repository. /// -public record CheckSuitePreference +public partial record CheckSuitePreference { [JsonPropertyName("preferences")] public required object Preferences { get; init; } @@ -20089,10 +20582,158 @@ public record CheckSuitePreference } +/// +/// Code quality rule +/// +public partial record CodeQualityFindingRule +{ + /// + /// A unique identifier for the rule used to detect the finding. + /// + [JsonPropertyName("id")] + public required string Id { get; init; } + + /// + /// The name of the rule used to detect the finding. + /// + [JsonPropertyName("title")] + public required string Title { get; init; } + + /// + /// A short description of the rule used to detect the finding. + /// + [JsonPropertyName("description")] + public required string Description { get; init; } + + /// + /// A detailed description of the rule used to detect the finding. + /// + [JsonPropertyName("help")] + public string? Help { get; init; } + + /// + /// The severity of the rule used to detect the finding. + /// + [JsonPropertyName("severity")] + public required CodeQualityFindingRuleSeverity Severity { get; init; } + + /// + /// The category of the rule used to detect the finding. + /// + [JsonPropertyName("category")] + public required Category Category { get; init; } + +} + +/// +/// Code quality file location +/// +public partial record CodeQualityFindingLocation +{ + /// + /// The file path where the finding was detected. + /// + [JsonPropertyName("path")] + public required string Path { get; init; } + + /// + /// The line number where the finding starts. + /// + [JsonPropertyName("start_line")] + public int? StartLine { get; init; } + + /// + /// The column number where the finding starts. + /// + [JsonPropertyName("start_column")] + public int? StartColumn { get; init; } + + /// + /// The line number where the finding ends. + /// + [JsonPropertyName("end_line")] + public int? EndLine { get; init; } + + /// + /// The column number where the finding ends. + /// + [JsonPropertyName("end_column")] + public int? EndColumn { get; init; } + +} + +/// +/// Code quality finding message +/// +public partial record CodeQualityFindingMessage +{ + /// + /// The message text of the code quality finding. + /// + [JsonPropertyName("text")] + public required string Text { get; init; } + + /// + /// The message text of the code quality finding in markdown format. + /// + [JsonPropertyName("markdown")] + public required string Markdown { get; init; } + +} + +/// +/// Code quality finding +/// +public partial record CodeQualityFinding +{ + /// + /// The finding number. + /// + [JsonPropertyName("number")] + public required int Number { get; init; } + + /// + /// State of the code quality finding. + /// + [JsonPropertyName("state")] + public required CodeQualityFindingState State { get; init; } + + /// + /// The REST API URL of the code quality finding resource. + /// + [JsonPropertyName("url")] + public required Uri Url { get; init; } + + /// + /// Code quality rule + /// + [JsonPropertyName("rule")] + public required CodeQualityFindingRule Rule { get; init; } + + /// + /// Code quality file location + /// + [JsonPropertyName("location")] + public required CodeQualityFindingLocation Location { get; init; } + + /// + /// Code quality finding message + /// + [JsonPropertyName("message")] + public required CodeQualityFindingMessage Message { get; init; } + + /// + /// The time the code quality finding was created. + /// + [JsonPropertyName("created_at")] + public DateTimeOffset? CreatedAt { get; init; } + +} + /// /// Configuration for code quality setup. /// -public record CodeQualitySetup +public partial record CodeQualitySetup { /// /// Code quality setup has been configured or not. @@ -20130,12 +20771,18 @@ public record CodeQualitySetup [JsonPropertyName("schedule")] public Schedule? Schedule { get; init; } + /// + /// The AI findings configuration for the repository. + /// + [JsonPropertyName("ai_findings_option")] + public CodeQualitySetupAiFindingsOption? AiFindingsOption { get; init; } + } /// /// Configuration for code quality setup. /// -public record CodeQualitySetupUpdate +public partial record CodeQualitySetupUpdate { /// /// The desired state of code quality setup. @@ -20161,13 +20808,19 @@ public record CodeQualitySetupUpdate [JsonPropertyName("languages")] public IReadOnlyList? Languages { get; init; } + /// + /// Whether AI findings run for Code Quality on this repository. + /// + [JsonPropertyName("ai_findings_option")] + public CodeQualitySetupUpdateAiFindingsOption? AiFindingsOption { get; init; } + } /// /// You can use `run_url` to track the status of the run. This includes a property status and conclusion. /// You should not rely on this always being an actions workflow run object. /// -public record CodeQualitySetupUpdateResponse +public partial record CodeQualitySetupUpdateResponse { /// /// ID of the corresponding run. @@ -20183,7 +20836,7 @@ public record CodeQualitySetupUpdateResponse } -public record CodeScanningAlertItems +public partial record CodeScanningAlertItems { /// /// The security alert number. @@ -20271,7 +20924,7 @@ public record CodeScanningAlertItems } -public record CodeScanningAlertRule +public partial record CodeScanningAlertRule { /// /// A unique identifier for the rule used to detect the alert. @@ -20329,7 +20982,7 @@ public record CodeScanningAlertRule } -public record CodeScanningAlert +public partial record CodeScanningAlert { /// /// The security alert number. @@ -20415,12 +21068,18 @@ public record CodeScanningAlert [JsonPropertyName("assignees")] public IReadOnlyList? Assignees { get; init; } + /// + /// Pull requests linked to this alert. + /// + [JsonPropertyName("linked_pull_requests")] + public IReadOnlyList? LinkedPullRequests { get; init; } + } /// /// Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertSetState { [JsonStringEnumMemberName("open")] @@ -20436,7 +21095,7 @@ public enum CodeScanningAlertSetState /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAlertCreateRequest(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAlertCreateRequest(bool Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAlertCreateRequest Create(bool value) => new(value); } @@ -20449,7 +21108,7 @@ public record CodeScanningAlertAssignees; /// /// The status of an autofix. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAutofixStatus { [JsonStringEnumMemberName("pending")] @@ -20469,7 +21128,7 @@ public enum CodeScanningAutofixStatus /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAutofixDescription(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAutofixDescription(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAutofixDescription Create(string? value) => new(value); } @@ -20481,12 +21140,12 @@ public readonly record struct CodeScanningAutofixDescription(string? Value) : IO /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAutofixStartedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAutofixStartedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAutofixStartedAt Create(DateTimeOffset value) => new(value); } -public record CodeScanningAutofix +public partial record CodeScanningAutofix { /// /// The status of an autofix. @@ -20511,7 +21170,7 @@ public record CodeScanningAutofix /// /// Commit an autofix for a code scanning alert /// -public record CodeScanningAutofixCommits +public partial record CodeScanningAutofixCommits { /// /// The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -20527,7 +21186,7 @@ public record CodeScanningAutofixCommits } -public record CodeScanningAutofixCommitsResponse +public partial record CodeScanningAutofixCommitsResponse { /// /// The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -20546,7 +21205,7 @@ public record CodeScanningAutofixCommitsResponse /// /// State of a code scanning alert instance. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertInstanceState { [JsonStringEnumMemberName("open")] @@ -20557,7 +21216,7 @@ public enum CodeScanningAlertInstanceState Unknown } -public record CodeScanningAlertInstanceList +public partial record CodeScanningAlertInstanceList { /// /// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`, @@ -20621,7 +21280,7 @@ public record CodeScanningAlertInstanceList /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisSarifId(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisSarifId(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisSarifId Create(string value) => new(value); } @@ -20633,7 +21292,7 @@ public readonly record struct CodeScanningAnalysisSarifId(string Value) : IOpenA /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCommitSha(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCommitSha(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCommitSha Create(string value) => new(value); } @@ -20645,7 +21304,7 @@ public readonly record struct CodeScanningAnalysisCommitSha(string Value) : IOpe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisEnvironment(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisEnvironment(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisEnvironment Create(string value) => new(value); } @@ -20657,7 +21316,7 @@ public readonly record struct CodeScanningAnalysisEnvironment(string Value) : IO /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCreatedAt Create(DateTimeOffset value) => new(value); } @@ -20669,12 +21328,12 @@ public readonly record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisUrl Create(Uri value) => new(value); } -public record CodeScanningAnalysis +public partial record CodeScanningAnalysis { /// /// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`, @@ -20763,7 +21422,7 @@ public record CodeScanningAnalysis /// /// Successful deletion of a code scanning analysis /// -public record CodeScanningAnalysisDeletion +public partial record CodeScanningAnalysisDeletion { /// /// Next deletable analysis in chain, without last analysis deletion confirmation @@ -20782,7 +21441,7 @@ public record CodeScanningAnalysisDeletion /// /// A CodeQL database. /// -public record CodeScanningCodeqlDatabase +public partial record CodeScanningCodeqlDatabase { /// /// The ID of the CodeQL database. @@ -20849,7 +21508,7 @@ public record CodeScanningCodeqlDatabase /// /// The language targeted by the CodeQL query /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningVariantAnalysisLanguage { [JsonStringEnumMemberName("actions")] @@ -20877,7 +21536,7 @@ public enum CodeScanningVariantAnalysisLanguage /// /// Repository Identifier /// -public record CodeScanningVariantAnalysisRepository +public partial record CodeScanningVariantAnalysisRepository { /// /// A unique identifier of the repository. @@ -20914,7 +21573,7 @@ public record CodeScanningVariantAnalysisRepository /// /// The new status of the CodeQL variant analysis repository task. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningVariantAnalysisStatus { [JsonStringEnumMemberName("pending")] @@ -20931,7 +21590,7 @@ public enum CodeScanningVariantAnalysisStatus TimedOut } -public record CodeScanningVariantAnalysisSkippedRepoGroup +public partial record CodeScanningVariantAnalysisSkippedRepoGroup { /// /// The total number of repositories that were skipped for this reason. @@ -20950,7 +21609,7 @@ public record CodeScanningVariantAnalysisSkippedRepoGroup /// /// A run of a CodeQL query against one or more repositories. /// -public record CodeScanningVariantAnalysis +public partial record CodeScanningVariantAnalysis { /// /// The ID of the variant analysis. @@ -21026,7 +21685,7 @@ public record CodeScanningVariantAnalysis } -public record CodeScanningVariantAnalysisRepoTask +public partial record CodeScanningVariantAnalysisRepoTask { /// /// A GitHub repository. @@ -21081,7 +21740,7 @@ public record CodeScanningVariantAnalysisRepoTask /// /// Configuration for code scanning default setup. /// -public record CodeScanningDefaultSetup +public partial record CodeScanningDefaultSetup { /// /// Code scanning default setup has been configured or not. @@ -21136,7 +21795,7 @@ public record CodeScanningDefaultSetup /// /// Configuration for code scanning default setup. /// -public record CodeScanningDefaultSetupUpdate +public partial record CodeScanningDefaultSetupUpdate { /// /// The desired state of code scanning default setup. @@ -21180,7 +21839,7 @@ public record CodeScanningDefaultSetupUpdate /// You can use `run_url` to track the status of the run. This includes a property status and conclusion. /// You should not rely on this always being an actions workflow run object. /// -public record CodeScanningDefaultSetupUpdateResponse +public partial record CodeScanningDefaultSetupUpdateResponse { /// /// ID of the corresponding run. @@ -21204,7 +21863,7 @@ public record CodeScanningDefaultSetupUpdateResponse /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningRefFull(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningRefFull(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningRefFull Create(string value) => new(value); } @@ -21216,12 +21875,12 @@ public readonly record struct CodeScanningRefFull(string Value) : IOpenApiGenera /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisSarifFile(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisSarifFile(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisSarifFile Create(string value) => new(value); } -public record CodeScanningSarifsReceipt +public partial record CodeScanningSarifsReceipt { /// /// An identifier for the upload. @@ -21237,7 +21896,7 @@ public record CodeScanningSarifsReceipt } -public record CodeScanningSarifsStatus +public partial record CodeScanningSarifsStatus { /// /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. @@ -21262,7 +21921,7 @@ public record CodeScanningSarifsStatus /// /// Code security configuration associated with a repository and attachment status /// -public record CodeSecurityConfigurationForRepository +public partial record CodeSecurityConfigurationForRepository { /// /// The attachment status of the code security configuration on the repository. @@ -21281,7 +21940,7 @@ public record CodeSecurityConfigurationForRepository /// /// A list of errors found in a repo's CODEOWNERS file /// -public record CodeownersErrors +public partial record CodeownersErrors { [JsonPropertyName("errors")] public required IReadOnlyList Errors { get; init; } @@ -21291,7 +21950,7 @@ public record CodeownersErrors /// /// Permission check result for a given devcontainer config. /// -public record CodespacesPermissionsCheckForDevcontainer +public partial record CodespacesPermissionsCheckForDevcontainer { /// /// Whether the user has accepted the permissions defined by the devcontainer config @@ -21304,7 +21963,7 @@ public record CodespacesPermissionsCheckForDevcontainer /// /// Set repository secrets for GitHub Codespaces. /// -public record RepoCodespacesSecret +public partial record RepoCodespacesSecret { /// /// The name of the secret. @@ -21323,7 +21982,7 @@ public record RepoCodespacesSecret /// /// Collaborator /// -public record Collaborator +public partial record Collaborator { [JsonPropertyName("login")] public required string Login { get; init; } @@ -21399,7 +22058,7 @@ public record Collaborator /// /// Repository invitations let you manage who you collaborate with. /// -public record RepositoryInvitation +public partial record RepositoryInvitation { /// /// Unique identifier of the repository invitation. @@ -21451,7 +22110,7 @@ public record RepositoryInvitation /// /// Repository Collaborator Permission /// -public record RepositoryCollaboratorPermission +public partial record RepositoryCollaboratorPermission { [JsonPropertyName("permission")] public required string Permission { get; init; } @@ -21467,7 +22126,7 @@ public record RepositoryCollaboratorPermission /// /// Commit Comment /// -public record CommitComment +public partial record CommitComment { [JsonPropertyName("html_url")] public required Uri HtmlUrl { get; init; } @@ -21519,7 +22178,7 @@ public record CommitComment /// /// Reactions to conversations provide a way to help people express their feelings more simply and effectively. /// -public record Reaction +public partial record Reaction { [JsonPropertyName("id")] public required int Id { get; init; } @@ -21544,7 +22203,7 @@ public record Reaction /// /// Branch Short /// -public record BranchShort +public partial record BranchShort { [JsonPropertyName("name")] public required string Name { get; init; } @@ -21557,7 +22216,7 @@ public record BranchShort } -public record SimpleCommitStatus +public partial record SimpleCommitStatus { [JsonPropertyName("description")] public required string? Description { get; init; } @@ -21597,7 +22256,7 @@ public record SimpleCommitStatus /// /// Combined Commit Status /// -public record CombinedCommitStatus +public partial record CombinedCommitStatus { [JsonPropertyName("state")] public required string State { get; init; } @@ -21628,7 +22287,7 @@ public record CombinedCommitStatus /// /// The status of a commit. /// -public record Status +public partial record Status { [JsonPropertyName("url")] public required string Url { get; init; } @@ -21665,7 +22324,7 @@ public record Status } -public record CommunityHealthFile +public partial record CommunityHealthFile { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -21678,7 +22337,7 @@ public record CommunityHealthFile /// /// Community Profile /// -public record CommunityProfile +public partial record CommunityProfile { [JsonPropertyName("health_percentage")] public required int HealthPercentage { get; init; } @@ -21703,7 +22362,7 @@ public record CommunityProfile /// /// Commit Comparison /// -public record CommitComparison +public partial record CommitComparison { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -21755,7 +22414,7 @@ public record CommitComparison /// /// Content Tree /// -public record ContentTree +public partial record ContentTree { [JsonPropertyName("type")] public required string Type { get; init; } @@ -21806,7 +22465,7 @@ public record ContentDirectory; /// /// Content File /// -public record ContentFile +public partial record ContentFile { [JsonPropertyName("type")] public required ContentFileType Type { get; init; } @@ -21855,7 +22514,7 @@ public record ContentFile /// /// An object describing a symlink /// -public record ContentSymlink +public partial record ContentSymlink { [JsonPropertyName("type")] public required ContentSymlinkType Type { get; init; } @@ -21895,7 +22554,7 @@ public record ContentSymlink /// /// An object describing a submodule /// -public record ContentSubmodule +public partial record ContentSubmodule { [JsonPropertyName("type")] public required ContentSubmoduleType Type { get; init; } @@ -21935,7 +22594,7 @@ public record ContentSubmodule /// /// File Commit /// -public record FileCommit +public partial record FileCommit { [JsonPropertyName("content")] public required object? Content { get; init; } @@ -21952,7 +22611,7 @@ public record FileCommit /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningPushProtectionBypassPlaceholderId(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningPushProtectionBypassPlaceholderId(string Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningPushProtectionBypassPlaceholderId Create(string value) => new(value); } @@ -21960,7 +22619,7 @@ public readonly record struct SecretScanningPushProtectionBypassPlaceholderId(st /// /// Repository rule violation was detected /// -public record RepositoryRuleViolationError +public partial record RepositoryRuleViolationError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -21979,7 +22638,7 @@ public record RepositoryRuleViolationError /// /// Contributor /// -public record Contributor +public partial record Contributor { [JsonPropertyName("login")] public string? Login { get; init; } @@ -22052,7 +22711,7 @@ public record Contributor /// /// A Dependabot alert. /// -public record DependabotAlert +public partial record DependabotAlert { /// /// The security alert number. @@ -22158,7 +22817,7 @@ public record DependabotAlert /// /// Set secrets for Dependabot. /// -public record DependabotSecret +public partial record DependabotSecret { /// /// The name of the secret. @@ -22182,7 +22841,7 @@ public record DependencyGraphDiff; /// /// A schema for the SPDX JSON format returned by the Dependency Graph. /// -public record DependencyGraphSpdxSbom +public partial record DependencyGraphSpdxSbom { [JsonPropertyName("sbom")] public required object Sbom { get; init; } @@ -22194,7 +22853,7 @@ public record DependencyGraphSpdxSbom /// public record Metadata; -public record Dependency +public partial record Dependency { /// /// Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details. @@ -22228,7 +22887,7 @@ public record Dependency } -public record Manifest +public partial record Manifest { /// /// The name of the manifest. @@ -22256,7 +22915,7 @@ public record Manifest /// /// Create a new snapshot of a repository's dependencies. /// -public record Snapshot +public partial record Snapshot { /// /// The version of the repository snapshot submission. @@ -22268,7 +22927,7 @@ public record Snapshot public required object Job { get; init; } /// - /// The commit SHA associated with this dependency snapshot. Maximum length: 40 characters. + /// The commit SHA associated with this dependency snapshot. Maximum length: 64 characters. /// [JsonPropertyName("sha")] public required string Sha { get; init; } @@ -22308,7 +22967,7 @@ public record Snapshot /// /// The status of a deployment. /// -public record DeploymentStatus +public partial record DeploymentStatus { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -22382,7 +23041,7 @@ public record DeploymentStatus /// Type alias for int. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WaitTimer(int Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WaitTimer(int Value) : IOpenApiGeneratedTypeAlias { public static WaitTimer Create(int value) => new(value); } @@ -22390,7 +23049,7 @@ public readonly record struct WaitTimer(int Value) : IOpenApiGeneratedTypeAlias< /// /// The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. /// -public record DeploymentBranchPolicySettings +public partial record DeploymentBranchPolicySettings { /// /// Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. @@ -22409,7 +23068,7 @@ public record DeploymentBranchPolicySettings /// /// Details of a deployment environment /// -public record Environment +public partial record Environment { /// /// The id of the environment. @@ -22465,7 +23124,7 @@ public record Environment /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct PreventSelfReview(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct PreventSelfReview(bool Value) : IOpenApiGeneratedTypeAlias { public static PreventSelfReview Create(bool value) => new(value); } @@ -22473,7 +23132,7 @@ public readonly record struct PreventSelfReview(bool Value) : IOpenApiGeneratedT /// /// Details of a deployment branch or tag policy. /// -public record DeploymentBranchPolicy +public partial record DeploymentBranchPolicy { /// /// The unique identifier of the branch or tag policy. @@ -22498,7 +23157,7 @@ public record DeploymentBranchPolicy } -public record DeploymentBranchPolicyNamePatternWithType +public partial record DeploymentBranchPolicyNamePatternWithType { /// /// The name pattern that branches or tags must match in order to deploy to the environment. @@ -22517,7 +23176,7 @@ public record DeploymentBranchPolicyNamePatternWithType } -public record DeploymentBranchPolicyNamePattern +public partial record DeploymentBranchPolicyNamePattern { /// /// The name pattern that branches must match in order to deploy to the environment. @@ -22533,7 +23192,7 @@ public record DeploymentBranchPolicyNamePattern /// /// A GitHub App that is providing a custom deployment protection rule. /// -public record CustomDeploymentRuleApp +public partial record CustomDeploymentRuleApp { /// /// The unique identifier of the deployment protection rule integration. @@ -22564,7 +23223,7 @@ public record CustomDeploymentRuleApp /// /// Deployment protection rule /// -public record DeploymentProtectionRule +public partial record DeploymentProtectionRule { /// /// The unique identifier for the deployment protection rule. @@ -22595,7 +23254,7 @@ public record DeploymentProtectionRule /// /// Short Blob /// -public record ShortBlob +public partial record ShortBlob { [JsonPropertyName("url")] public required string Url { get; init; } @@ -22608,7 +23267,7 @@ public record ShortBlob /// /// Blob /// -public record Blob +public partial record Blob { [JsonPropertyName("content")] public required string Content { get; init; } @@ -22636,7 +23295,7 @@ public record Blob /// /// Low-level Git commit operations within a repository /// -public record GitCommit +public partial record GitCommit { /// /// SHA for the commit @@ -22685,7 +23344,7 @@ public record GitCommit /// /// Git references within a repository /// -public record GitRef +public partial record GitRef { [JsonPropertyName("ref")] public required string Ref { get; init; } @@ -22704,7 +23363,7 @@ public record GitRef /// /// Metadata for a Git tag /// -public record GitTag +public partial record GitTag { [JsonPropertyName("node_id")] public required string NodeId { get; init; } @@ -22744,7 +23403,7 @@ public record GitTag /// /// The hierarchy between files in a Git repository. /// -public record GitTree +public partial record GitTree { [JsonPropertyName("sha")] public required string Sha { get; init; } @@ -22766,7 +23425,7 @@ public record GitTree /// /// Repository hash algorithm /// -public record RepositoryHashAlgorithm +public partial record RepositoryHashAlgorithm { /// /// The Git hash algorithm used by this repository. @@ -22776,7 +23435,7 @@ public record RepositoryHashAlgorithm } -public record HookResponse +public partial record HookResponse { [JsonPropertyName("code")] public required int? Code { get; init; } @@ -22792,7 +23451,7 @@ public record HookResponse /// /// Webhooks for repositories. /// -public record Hook +public partial record Hook { [JsonPropertyName("type")] public required string Type { get; init; } @@ -22853,7 +23512,7 @@ public record Hook /// /// Check immutable releases /// -public record CheckImmutableReleases +public partial record CheckImmutableReleases { /// /// Whether immutable releases are enabled for the repository. @@ -22872,7 +23531,7 @@ public record CheckImmutableReleases /// /// A repository import from an external source. /// -public record Import +public partial record Import { [JsonPropertyName("vcs")] public required string? Vcs { get; init; } @@ -22951,7 +23610,7 @@ public record Import /// /// Porter Author /// -public record PorterAuthor +public partial record PorterAuthor { [JsonPropertyName("id")] public required int Id { get; init; } @@ -22979,7 +23638,7 @@ public record PorterAuthor /// /// Porter Large File /// -public record PorterLargeFile +public partial record PorterLargeFile { [JsonPropertyName("ref_name")] public required string RefName { get; init; } @@ -22995,10 +23654,23 @@ public record PorterLargeFile } +/// +/// A list of user logins to add or remove from the pull request creation cap bypass list. +/// +public partial record InteractionLimitPullRequestBypassList +{ + /// + /// A list of user logins to add or remove from the bypass list. + /// + [JsonPropertyName("users")] + public required IReadOnlyList Users { get; init; } + +} + /// /// Issue Event Label /// -public record IssueEventLabel +public partial record IssueEventLabel { [JsonPropertyName("name")] public required string? Name { get; init; } @@ -23008,7 +23680,7 @@ public record IssueEventLabel } -public record IssueEventDismissedReview +public partial record IssueEventDismissedReview { [JsonPropertyName("state")] public required string State { get; init; } @@ -23027,7 +23699,7 @@ public record IssueEventDismissedReview /// /// Issue Event Milestone /// -public record IssueEventMilestone +public partial record IssueEventMilestone { [JsonPropertyName("title")] public required string Title { get; init; } @@ -23037,7 +23709,7 @@ public record IssueEventMilestone /// /// Issue Event Project Card /// -public record IssueEventProjectCard +public partial record IssueEventProjectCard { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -23062,7 +23734,7 @@ public record IssueEventProjectCard /// /// Issue Event Rename /// -public record IssueEventRename +public partial record IssueEventRename { [JsonPropertyName("from")] public required string From { get; init; } @@ -23072,10 +23744,97 @@ public record IssueEventRename } +/// +/// The type of issue. +/// +public partial record IssueTypeWebhook +{ + /// + /// The unique identifier of the issue type. + /// + [JsonPropertyName("id")] + public required int Id { get; init; } + + /// + /// The name of the issue type. + /// + [JsonPropertyName("name")] + public required string Name { get; init; } + + /// + /// The color of the issue type. + /// + [JsonPropertyName("color")] + public IssueTypeColor? Color { get; init; } + +} + +/// +/// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). +/// +public partial record IssueReference +{ + /// + /// The number of the referenced issue. + /// + [JsonPropertyName("number")] + public required int Number { get; init; } + + /// + /// The title of the referenced issue. + /// + [JsonPropertyName("title")] + public required string Title { get; init; } + + /// + /// The state of the referenced issue. + /// + [JsonPropertyName("state")] + public required string State { get; init; } + + /// + /// The reason for the referenced issue's state. + /// + [JsonPropertyName("state_reason")] + public string? StateReason { get; init; } + + /// + /// A GitHub repository. + /// + [JsonPropertyName("repository")] + public required SimpleRepository Repository { get; init; } + + /// + /// The type of the referenced issue. + /// + [JsonPropertyName("issue_type")] + public required object? IssueType { get; init; } + +} + +/// +/// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. +/// +public partial record IssueEventIntent +{ + /// + /// The reasoning the agent provided for the change. + /// + [JsonPropertyName("rationale")] + public string? Rationale { get; init; } + + /// + /// The confidence level the agent had when performing this action. + /// + [JsonPropertyName("confidence")] + public Confidence? Confidence { get; init; } + +} + /// /// Issue Event /// -public record IssueEvent +public partial record IssueEvent { [JsonPropertyName("id")] public required long Id { get; init; } @@ -23149,6 +23908,33 @@ public record IssueEvent [JsonPropertyName("rename")] public IssueEventRename? Rename { get; init; } + /// + /// The type of issue. + /// + [JsonPropertyName("issue_type")] + public IssueTypeWebhook? IssueType { get; init; } + + /// + /// The type of issue. + /// + [JsonPropertyName("prev_issue_type")] + public IssueTypeWebhook? PrevIssueType { get; init; } + + [JsonPropertyName("sub_issue")] + public IssueReference? SubIssue { get; init; } + + [JsonPropertyName("parent_issue")] + public IssueReference? ParentIssue { get; init; } + + [JsonPropertyName("blocked_by")] + public IssueReference? BlockedBy { get; init; } + + [JsonPropertyName("blocking")] + public IssueReference? Blocking { get; init; } + + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + /// /// How the author is associated with the repository. /// @@ -23166,7 +23952,7 @@ public record IssueEvent /// /// Labeled Issue Event /// -public record LabeledIssueEvent +public partial record LabeledIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23201,12 +23987,15 @@ public record LabeledIssueEvent [JsonPropertyName("label")] public required object Label { get; init; } + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + } /// /// Unlabeled Issue Event /// -public record UnlabeledIssueEvent +public partial record UnlabeledIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23241,12 +24030,294 @@ public record UnlabeledIssueEvent [JsonPropertyName("label")] public required object Label { get; init; } + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + } /// /// Assigned Issue Event /// -public record AssignedIssueEvent +public partial record AssignedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assignee")] + public required SimpleUser Assignee { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assigner")] + public required SimpleUser Assigner { get; init; } + + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + +} + +/// +/// Unassigned Issue Event +/// +public partial record UnassignedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assignee")] + public required SimpleUser Assignee { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assigner")] + public required SimpleUser Assigner { get; init; } + +} + +/// +/// Milestoned Issue Event +/// +public partial record MilestonedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("milestone")] + public required object Milestone { get; init; } + +} + +/// +/// Demilestoned Issue Event +/// +public partial record DemilestonedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("milestone")] + public required object Milestone { get; init; } + +} + +/// +/// Renamed Issue Event +/// +public partial record RenamedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("rename")] + public required object Rename { get; init; } + +} + +/// +/// Review Requested Issue Event +/// +public partial record ReviewRequestedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("review_requester")] + public required SimpleUser ReviewRequester { get; init; } + + /// + /// Groups of organization members that gives permissions on specified repositories. + /// + [JsonPropertyName("requested_team")] + public Team? RequestedTeam { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("requested_reviewer")] + public SimpleUser? RequestedReviewer { get; init; } + +} + +/// +/// Review Request Removed Issue Event +/// +public partial record ReviewRequestRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23275,30 +24346,33 @@ public record AssignedIssueEvent [JsonPropertyName("created_at")] public required string CreatedAt { get; init; } - /// - /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. - /// [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } /// /// A GitHub user. /// - [JsonPropertyName("assignee")] - public required SimpleUser Assignee { get; init; } + [JsonPropertyName("review_requester")] + public required SimpleUser ReviewRequester { get; init; } + + /// + /// Groups of organization members that gives permissions on specified repositories. + /// + [JsonPropertyName("requested_team")] + public Team? RequestedTeam { get; init; } /// /// A GitHub user. /// - [JsonPropertyName("assigner")] - public required SimpleUser Assigner { get; init; } + [JsonPropertyName("requested_reviewer")] + public SimpleUser? RequestedReviewer { get; init; } } /// -/// Unassigned Issue Event +/// Review Dismissed Issue Event /// -public record UnassignedIssueEvent +public partial record ReviewDismissedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23330,24 +24404,95 @@ public record UnassignedIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } + [JsonPropertyName("dismissed_review")] + public required object DismissedReview { get; init; } + +} + +/// +/// Locked Issue Event +/// +public partial record LockedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + /// /// A GitHub user. /// - [JsonPropertyName("assignee")] - public required SimpleUser Assignee { get; init; } + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("lock_reason")] + public required string? LockReason { get; init; } + +} + +/// +/// Added to Project Issue Event +/// +public partial record AddedToProjectIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } /// /// A GitHub user. /// - [JsonPropertyName("assigner")] - public required SimpleUser Assigner { get; init; } + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } } /// -/// Milestoned Issue Event +/// Moved Column in Project Issue Event /// -public record MilestonedIssueEvent +public partial record MovedColumnInProjectIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23379,15 +24524,15 @@ public record MilestonedIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("milestone")] - public required object Milestone { get; init; } + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } } /// -/// Demilestoned Issue Event +/// Removed from Project Issue Event /// -public record DemilestonedIssueEvent +public partial record RemovedFromProjectIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23419,15 +24564,15 @@ public record DemilestonedIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("milestone")] - public required object Milestone { get; init; } + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } } /// -/// Renamed Issue Event +/// Converted Note to Issue Issue Event /// -public record RenamedIssueEvent +public partial record ConvertedNoteToIssueIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23456,18 +24601,21 @@ public record RenamedIssueEvent [JsonPropertyName("created_at")] public required string CreatedAt { get; init; } + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("rename")] - public required object Rename { get; init; } + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } } /// -/// Review Requested Issue Event +/// Issue Type Added Issue Event /// -public record ReviewRequestedIssueEvent +public partial record IssueTypeAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23500,29 +24648,66 @@ public record ReviewRequestedIssueEvent public required Integration? PerformedViaGithubApp { get; init; } /// - /// A GitHub user. + /// The type of issue. /// - [JsonPropertyName("review_requester")] - public required SimpleUser ReviewRequester { get; init; } + [JsonPropertyName("issue_type")] + public required IssueTypeWebhook? IssueType { get; init; } + + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + +} + +/// +/// Issue Type Removed Issue Event +/// +public partial record IssueTypeRemovedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } /// - /// Groups of organization members that gives permissions on specified repositories. + /// A GitHub user. /// - [JsonPropertyName("requested_team")] - public Team? RequestedTeam { get; init; } + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } /// - /// A GitHub user. + /// The type of issue. /// - [JsonPropertyName("requested_reviewer")] - public SimpleUser? RequestedReviewer { get; init; } + [JsonPropertyName("prev_issue_type")] + public required IssueTypeWebhook? PrevIssueType { get; init; } + + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } } /// -/// Review Request Removed Issue Event +/// Issue Type Changed Issue Event /// -public record ReviewRequestRemovedIssueEvent +public partial record IssueTypeChangedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23555,29 +24740,66 @@ public record ReviewRequestRemovedIssueEvent public required Integration? PerformedViaGithubApp { get; init; } /// - /// A GitHub user. + /// The type of issue. /// - [JsonPropertyName("review_requester")] - public required SimpleUser ReviewRequester { get; init; } + [JsonPropertyName("issue_type")] + public required IssueTypeWebhook? IssueType { get; init; } /// - /// Groups of organization members that gives permissions on specified repositories. + /// The type of issue. /// - [JsonPropertyName("requested_team")] - public Team? RequestedTeam { get; init; } + [JsonPropertyName("prev_issue_type")] + public required IssueTypeWebhook? PrevIssueType { get; init; } + + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + +} + +/// +/// Sub-issue Added Issue Event +/// +public partial record SubIssueAddedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } /// /// A GitHub user. /// - [JsonPropertyName("requested_reviewer")] - public SimpleUser? RequestedReviewer { get; init; } + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("sub_issue")] + public required IssueReference? SubIssue { get; init; } } /// -/// Review Dismissed Issue Event +/// Sub-issue Removed Issue Event /// -public record ReviewDismissedIssueEvent +public partial record SubIssueRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23609,15 +24831,15 @@ public record ReviewDismissedIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("dismissed_review")] - public required object DismissedReview { get; init; } + [JsonPropertyName("sub_issue")] + public required IssueReference? SubIssue { get; init; } } /// -/// Locked Issue Event +/// Parent-issue Added Issue Event /// -public record LockedIssueEvent +public partial record ParentIssueAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23649,15 +24871,15 @@ public record LockedIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("lock_reason")] - public required string? LockReason { get; init; } + [JsonPropertyName("parent_issue")] + public required IssueReference? ParentIssue { get; init; } } /// -/// Added to Project Issue Event +/// Parent-issue Removed Issue Event /// -public record AddedToProjectIssueEvent +public partial record ParentIssueRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23689,15 +24911,15 @@ public record AddedToProjectIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + [JsonPropertyName("parent_issue")] + public required IssueReference? ParentIssue { get; init; } } /// -/// Moved Column in Project Issue Event +/// Blocked-by Added Issue Event /// -public record MovedColumnInProjectIssueEvent +public partial record BlockedByAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23729,15 +24951,15 @@ public record MovedColumnInProjectIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + [JsonPropertyName("blocked_by")] + public required IssueReference? BlockedBy { get; init; } } /// -/// Removed from Project Issue Event +/// Blocked-by Removed Issue Event /// -public record RemovedFromProjectIssueEvent +public partial record BlockedByRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23769,15 +24991,15 @@ public record RemovedFromProjectIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + [JsonPropertyName("blocked_by")] + public required IssueReference? BlockedBy { get; init; } } /// -/// Converted Note to Issue Issue Event +/// Blocking Added Issue Event /// -public record ConvertedNoteToIssueIssueEvent +public partial record BlockingAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23806,14 +25028,51 @@ public record ConvertedNoteToIssueIssueEvent [JsonPropertyName("created_at")] public required string CreatedAt { get; init; } + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("blocking")] + public required IssueReference? Blocking { get; init; } + +} + +/// +/// Blocking Removed Issue Event +/// +public partial record BlockingRemovedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + /// - /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// A GitHub user. /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + [JsonPropertyName("blocking")] + public required IssueReference? Blocking { get; init; } } @@ -23821,7 +25080,7 @@ public record ConvertedNoteToIssueIssueEvent /// Issue Event for Issue /// /// -/// Union of: LabeledIssueEvent | UnlabeledIssueEvent | AssignedIssueEvent | UnassignedIssueEvent | MilestonedIssueEvent | DemilestonedIssueEvent | RenamedIssueEvent | ReviewRequestedIssueEvent | ReviewRequestRemovedIssueEvent | ReviewDismissedIssueEvent | LockedIssueEvent | AddedToProjectIssueEvent | MovedColumnInProjectIssueEvent | RemovedFromProjectIssueEvent | ConvertedNoteToIssueIssueEvent +/// Union of: LabeledIssueEvent | UnlabeledIssueEvent | AssignedIssueEvent | UnassignedIssueEvent | MilestonedIssueEvent | DemilestonedIssueEvent | RenamedIssueEvent | ReviewRequestedIssueEvent | ReviewRequestRemovedIssueEvent | ReviewDismissedIssueEvent | LockedIssueEvent | AddedToProjectIssueEvent | MovedColumnInProjectIssueEvent | RemovedFromProjectIssueEvent | ConvertedNoteToIssueIssueEvent | IssueTypeAddedIssueEvent | IssueTypeRemovedIssueEvent | IssueTypeChangedIssueEvent | SubIssueAddedIssueEvent | SubIssueRemovedIssueEvent | ParentIssueAddedIssueEvent | ParentIssueRemovedIssueEvent | BlockedByAddedIssueEvent | BlockedByRemovedIssueEvent | BlockingAddedIssueEvent | BlockingRemovedIssueEvent /// [JsonDerivedType(typeof(LabeledIssueEvent), "labeled-issue-event")] [JsonDerivedType(typeof(UnlabeledIssueEvent), "unlabeled-issue-event")] @@ -23838,12 +25097,108 @@ public record ConvertedNoteToIssueIssueEvent [JsonDerivedType(typeof(MovedColumnInProjectIssueEvent), "moved-column-in-project-issue-event")] [JsonDerivedType(typeof(RemovedFromProjectIssueEvent), "removed-from-project-issue-event")] [JsonDerivedType(typeof(ConvertedNoteToIssueIssueEvent), "converted-note-to-issue-issue-event")] -public abstract record IssueEventForIssue; +[JsonDerivedType(typeof(IssueTypeAddedIssueEvent), "issue-type-added-issue-event")] +[JsonDerivedType(typeof(IssueTypeRemovedIssueEvent), "issue-type-removed-issue-event")] +[JsonDerivedType(typeof(IssueTypeChangedIssueEvent), "issue-type-changed-issue-event")] +[JsonDerivedType(typeof(SubIssueAddedIssueEvent), "sub-issue-added-issue-event")] +[JsonDerivedType(typeof(SubIssueRemovedIssueEvent), "sub-issue-removed-issue-event")] +[JsonDerivedType(typeof(ParentIssueAddedIssueEvent), "parent-issue-added-issue-event")] +[JsonDerivedType(typeof(ParentIssueRemovedIssueEvent), "parent-issue-removed-issue-event")] +[JsonDerivedType(typeof(BlockedByAddedIssueEvent), "blocked-by-added-issue-event")] +[JsonDerivedType(typeof(BlockedByRemovedIssueEvent), "blocked-by-removed-issue-event")] +[JsonDerivedType(typeof(BlockingAddedIssueEvent), "blocking-added-issue-event")] +[JsonDerivedType(typeof(BlockingRemovedIssueEvent), "blocking-removed-issue-event")] +public abstract partial record IssueEventForIssue; + +/// +/// An agent-proposed change to an issue that a maintainer can approve or dismiss. +/// +public partial record IssueSuggestion +{ + /// + /// The unique identifier of the suggestion. + /// + [JsonPropertyName("id")] + public required int Id { get; init; } + + /// + /// The unique identifier of the issue the suggestion applies to. + /// + [JsonPropertyName("issue_id")] + public required int IssueId { get; init; } + + /// + /// The kind of change proposed. + /// + [JsonPropertyName("action")] + public required IssueSuggestionAction Action { get; init; } + + /// + /// The suggestion's lifecycle state. + /// + [JsonPropertyName("state")] + public required IssueSuggestionState State { get; init; } + + /// + /// The identifier of the target the change applies to (issue type, label, field, assignee, or duplicate issue), when applicable. + /// + [JsonPropertyName("target_id")] + public required int? TargetId { get; init; } + + /// + /// The proposed value, when applicable. An array for multi-select field suggestions. + /// + [JsonPropertyName("target_value")] + public required object? TargetValue { get; init; } + + /// + /// The rationale the actor provided for the suggestion. + /// + [JsonPropertyName("rationale")] + public required string? Rationale { get; init; } + + /// + /// The actor's confidence level in the suggestion. + /// + [JsonPropertyName("confidence")] + public required Confidence Confidence { get; init; } + + /// + /// The unique identifier of the actor that proposed the suggestion. + /// + [JsonPropertyName("actor_id")] + public required int? ActorId { get; init; } + + /// + /// The identifier of the timeline event created when the suggestion was approved, when applicable. + /// + [JsonPropertyName("issue_event_id")] + public required int? IssueEventId { get; init; } + + /// + /// The unique identifier of the user who approved or dismissed the suggestion. + /// + [JsonPropertyName("resolved_by")] + public required int? ResolvedBy { get; init; } + + /// + /// The time the suggestion was created. + /// + [JsonPropertyName("created_at")] + public required DateTimeOffset CreatedAt { get; init; } + + /// + /// The time the suggestion was last updated. + /// + [JsonPropertyName("updated_at")] + public required DateTimeOffset UpdatedAt { get; init; } + +} /// /// Timeline Comment Event /// -public record TimelineCommentEvent +public partial record TimelineCommentEvent { [JsonPropertyName("event")] public required string Event { get; init; } @@ -23914,12 +25269,15 @@ public record TimelineCommentEvent [JsonPropertyName("pin")] public PinnedIssueComment? Pin { get; init; } + [JsonPropertyName("minimized")] + public IssueCommentMinimized? Minimized { get; init; } + } /// /// Timeline Cross Referenced Event /// -public record TimelineCrossReferencedEvent +public partial record TimelineCrossReferencedEvent { [JsonPropertyName("event")] public required string Event { get; init; } @@ -23944,7 +25302,7 @@ public record TimelineCrossReferencedEvent /// /// Timeline Committed Event /// -public record TimelineCommittedEvent +public partial record TimelineCommittedEvent { [JsonPropertyName("event")] public string? Event { get; init; } @@ -23996,7 +25354,7 @@ public record TimelineCommittedEvent /// /// Timeline Reviewed Event /// -public record TimelineReviewedEvent +public partial record TimelineReviewedEvent { [JsonPropertyName("event")] public required string Event { get; init; } @@ -24063,7 +25421,7 @@ public record TimelineReviewedEvent /// /// Pull Request Review Comments are comments on a portion of the Pull Request's diff. /// -public record PullRequestReviewComment +public partial record PullRequestReviewComment { /// /// URL for the pull request review comment @@ -24223,7 +25581,7 @@ public record PullRequestReviewComment /// /// Timeline Line Commented Event /// -public record TimelineLineCommentedEvent +public partial record TimelineLineCommentedEvent { [JsonPropertyName("event")] public string? Event { get; init; } @@ -24239,7 +25597,7 @@ public record TimelineLineCommentedEvent /// /// Timeline Commit Commented Event /// -public record TimelineCommitCommentedEvent +public partial record TimelineCommitCommentedEvent { [JsonPropertyName("event")] public string? Event { get; init; } @@ -24258,7 +25616,7 @@ public record TimelineCommitCommentedEvent /// /// Timeline Assigned Issue Event /// -public record TimelineAssignedIssueEvent +public partial record TimelineAssignedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -24296,12 +25654,15 @@ public record TimelineAssignedIssueEvent [JsonPropertyName("assignee")] public required SimpleUser Assignee { get; init; } + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + } /// /// Timeline Unassigned Issue Event /// -public record TimelineUnassignedIssueEvent +public partial record TimelineUnassignedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -24344,7 +25705,7 @@ public record TimelineUnassignedIssueEvent /// /// State Change Issue Event /// -public record StateChangeIssueEvent +public partial record StateChangeIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -24379,19 +25740,22 @@ public record StateChangeIssueEvent [JsonPropertyName("state_reason")] public string? StateReason { get; init; } + [JsonPropertyName("intent")] + public IssueEventIntent? Intent { get; init; } + } /// /// Timeline Event /// -public record TimelineIssueEvents +public partial record TimelineIssueEvents { } /// /// An SSH key granting access to a single repository. /// -public record DeployKey +public partial record DeployKey { [JsonPropertyName("id")] public required int Id { get; init; } @@ -24433,7 +25797,7 @@ public record Language; /// /// License Content /// -public record LicenseContent +public partial record LicenseContent { [JsonPropertyName("name")] public required string Name { get; init; } @@ -24479,7 +25843,7 @@ public record LicenseContent /// /// Results of a successful merge upstream request /// -public record MergedUpstream +public partial record MergedUpstream { [JsonPropertyName("message")] public string? Message { get; init; } @@ -24492,7 +25856,7 @@ public record MergedUpstream } -public record PagesSourceHash +public partial record PagesSourceHash { [JsonPropertyName("branch")] public required string Branch { get; init; } @@ -24502,7 +25866,7 @@ public record PagesSourceHash } -public record PagesHttpsCertificate +public partial record PagesHttpsCertificate { [JsonPropertyName("state")] public required PagesHttpsCertificateState State { get; init; } @@ -24524,7 +25888,7 @@ public record PagesHttpsCertificate /// /// The configuration for GitHub Pages for a repository. /// -public record Page +public partial record Page { /// /// The API address for accessing this Page resource. @@ -24597,7 +25961,7 @@ public record Page /// /// Page Build /// -public record PageBuild +public partial record PageBuild { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -24628,7 +25992,7 @@ public record PageBuild /// /// Page Build Status /// -public record PageBuildStatus +public partial record PageBuildStatus { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -24641,7 +26005,7 @@ public record PageBuildStatus /// /// The GitHub Pages deployment status. /// -public record PageDeployment +public partial record PageDeployment { /// /// The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit. @@ -24669,7 +26033,7 @@ public record PageDeployment } -public record PagesDeploymentStatus +public partial record PagesDeploymentStatus { /// /// The current status of the deployment. @@ -24682,7 +26046,7 @@ public record PagesDeploymentStatus /// /// Pages Health Check Status /// -public record PagesHealthCheck +public partial record PagesHealthCheck { [JsonPropertyName("domain")] public object? Domain { get; init; } @@ -24695,7 +26059,7 @@ public record PagesHealthCheck /// /// Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary. /// -public record PullRequest +public partial record PullRequest { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -24820,6 +26184,12 @@ public record PullRequest [JsonPropertyName("auto_merge")] public required AutoMerge? AutoMerge { get; init; } + /// + /// The stack information associated with a pull request. + /// + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } + /// /// Indicates whether or not the pull request is a draft. /// @@ -24870,7 +26240,7 @@ public record PullRequest /// /// Pull Request Merge Result /// -public record PullRequestMergeResult +public partial record PullRequestMergeResult { [JsonPropertyName("sha")] public required string Sha { get; init; } @@ -24883,10 +26253,23 @@ public record PullRequestMergeResult } +/// +/// Pull Request Merge Async Result +/// +public partial record PullRequestMergeAsyncResult +{ + [JsonPropertyName("status")] + public required PullRequestMergeAsyncResultStatus Status { get; init; } + + [JsonPropertyName("details")] + public required object Details { get; init; } + +} + /// /// Pull Request Review Request /// -public record PullRequestReviewRequest +public partial record PullRequestReviewRequest { [JsonPropertyName("users")] public required IReadOnlyList Users { get; init; } @@ -24899,7 +26282,7 @@ public record PullRequestReviewRequest /// /// Pull Request Reviews are reviews on pull requests. /// -public record PullRequestReview +public partial record PullRequestReview { /// /// Unique identifier of the review @@ -24957,7 +26340,7 @@ public record PullRequestReview /// /// Legacy Review Comment /// -public record ReviewComment +public partial record ReviewComment { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -25075,7 +26458,7 @@ public record ReviewComment /// /// Generated name and body describing a release /// -public record ReleaseNotesContent +public partial record ReleaseNotesContent { /// /// The generated name of the release @@ -25094,7 +26477,7 @@ public record ReleaseNotesContent /// /// User-defined metadata to store domain-specific information limited to 8 keys with scalar values. /// -public record RepositoryRuleRulesetInfo +public partial record RepositoryRuleRulesetInfo { /// /// The type of source for the ruleset that includes this rule. @@ -25119,11 +26502,198 @@ public record RepositoryRuleRulesetInfo /// /// A repository rule with ruleset details. /// -public record RepositoryRuleDetailed +public partial record RepositoryRuleDetailed +{ +} + +public partial record SecretScanningAlert { + /// + /// The security alert number. + /// + [JsonPropertyName("number")] + public AlertNumber? Number { get; init; } + + /// + /// The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// + [JsonPropertyName("created_at")] + public AlertCreatedAt? CreatedAt { get; init; } + + [JsonPropertyName("updated_at")] + public AlertUpdatedAt? UpdatedAt { get; init; } + + /// + /// The REST API URL of the alert resource. + /// + [JsonPropertyName("url")] + public AlertUrl? Url { get; init; } + + /// + /// The GitHub URL of the alert resource. + /// + [JsonPropertyName("html_url")] + public AlertHtmlUrl? HtmlUrl { get; init; } + + /// + /// The REST API URL of the code locations for this alert. + /// + [JsonPropertyName("locations_url")] + public Uri? LocationsUrl { get; init; } + + /// + /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. + /// + [JsonPropertyName("state")] + public OrganizationSecretScanningAlertState? State { get; init; } + + /// + /// **Required when the `state` is `resolved`.** The reason for resolving the alert. + /// + [JsonPropertyName("resolution")] + public OrganizationSecretScanningAlertResolution? Resolution { get; init; } + + /// + /// The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// + [JsonPropertyName("resolved_at")] + public DateTimeOffset? ResolvedAt { get; init; } + + [JsonPropertyName("resolved_by")] + public SimpleUser? ResolvedBy { get; init; } + + /// + /// An optional comment to resolve an alert. + /// + [JsonPropertyName("resolution_comment")] + public string? ResolutionComment { get; init; } + + /// + /// The type of secret that secret scanning detected. + /// + [JsonPropertyName("secret_type")] + public string? SecretType { get; init; } + + /// + /// User-friendly name for the detected secret, matching the `secret_type`. + /// For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + /// + [JsonPropertyName("secret_type_display_name")] + public string? SecretTypeDisplayName { get; init; } + + /// + /// The provider of the secret that was detected. + /// + [JsonPropertyName("provider")] + public string? Provider { get; init; } + + /// + /// The slug identifier for the provider of the secret that was detected. Use this value for filtering by provider with the `providers` or `exclude_providers` parameters. + /// + [JsonPropertyName("provider_slug")] + public string? ProviderSlug { get; init; } + + /// + /// The secret that was detected. + /// + [JsonPropertyName("secret")] + public string? Secret { get; init; } + + /// + /// Whether push protection was bypassed for the detected secret. + /// + [JsonPropertyName("push_protection_bypassed")] + public bool? PushProtectionBypassed { get; init; } + + [JsonPropertyName("push_protection_bypassed_by")] + public SimpleUser? PushProtectionBypassedBy { get; init; } + + /// + /// The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// + [JsonPropertyName("push_protection_bypassed_at")] + public DateTimeOffset? PushProtectionBypassedAt { get; init; } + + [JsonPropertyName("push_protection_bypass_request_reviewer")] + public SimpleUser? PushProtectionBypassRequestReviewer { get; init; } + + /// + /// An optional comment when reviewing a push protection bypass. + /// + [JsonPropertyName("push_protection_bypass_request_reviewer_comment")] + public string? PushProtectionBypassRequestReviewerComment { get; init; } + + /// + /// An optional comment when requesting a push protection bypass. + /// + [JsonPropertyName("push_protection_bypass_request_comment")] + public string? PushProtectionBypassRequestComment { get; init; } + + /// + /// The URL to a push protection bypass request. + /// + [JsonPropertyName("push_protection_bypass_request_html_url")] + public Uri? PushProtectionBypassRequestHtmlUrl { get; init; } + + /// + /// The token status as of the latest validity check. + /// + [JsonPropertyName("validity")] + public Validity? Validity { get; init; } + + /// + /// Whether the detected secret was publicly leaked. + /// + [JsonPropertyName("publicly_leaked")] + public bool? PubliclyLeaked { get; init; } + + /// + /// Whether the detected secret was found in multiple repositories under the same organization or enterprise. + /// + [JsonPropertyName("multi_repo")] + public bool? MultiRepo { get; init; } + + /// + /// A boolean value representing whether or not alert is base64 encoded + /// + [JsonPropertyName("is_base64_encoded")] + public bool? IsBase64Encoded { get; init; } + + [JsonPropertyName("first_location_detected")] + public SecretScanningFirstDetectedLocation? FirstLocationDetected { get; init; } + + /// + /// A boolean value representing whether or not the token in the alert was detected in more than one location. + /// + [JsonPropertyName("has_more_locations")] + public bool? HasMoreLocations { get; init; } + + [JsonPropertyName("assigned_to")] + public SimpleUser? AssignedTo { get; init; } + + /// + /// An optional comment from the closure request author. + /// + [JsonPropertyName("closure_request_comment")] + public string? ClosureRequestComment { get; init; } + + /// + /// An optional comment from the closure request reviewer. + /// + [JsonPropertyName("closure_request_reviewer_comment")] + public string? ClosureRequestReviewerComment { get; init; } + + [JsonPropertyName("closure_request_reviewer")] + public SimpleUser? ClosureRequestReviewer { get; init; } + } -public record SecretScanningAlert +/// +/// A list of metadata key/value pairs associated with the secret scanning alert. +/// +public record SecretScanningAlertMetadata; + +public partial record SecretScanningAlertWithMetadata { /// /// The security alert number. @@ -25303,6 +26873,12 @@ public record SecretScanningAlert [JsonPropertyName("closure_request_reviewer")] public SimpleUser? ClosureRequestReviewer { get; init; } + /// + /// A list of metadata key/value pairs associated with the secret scanning alert. + /// + [JsonPropertyName("metadata")] + public SecretScanningAlertMetadata? Metadata { get; init; } + } /// @@ -25312,7 +26888,7 @@ public record SecretScanningAlert /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningAlertResolutionComment(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningAlertResolutionComment(string? Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningAlertResolutionComment Create(string? value) => new(value); } @@ -25324,12 +26900,12 @@ public readonly record struct SecretScanningAlertResolutionComment(string? Value /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningAlertAssignee(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningAlertAssignee(string? Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningAlertAssignee Create(string? value) => new(value); } -public record SecretScanningLocation +public partial record SecretScanningLocation { /// /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. @@ -25345,7 +26921,7 @@ public record SecretScanningLocation /// /// The reason for bypassing push protection. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningPushProtectionBypassReason { [JsonStringEnumMemberName("false_positive")] @@ -25356,7 +26932,7 @@ public enum SecretScanningPushProtectionBypassReason WillFixLater } -public record SecretScanningPushProtectionBypass +public partial record SecretScanningPushProtectionBypass { /// /// The reason for bypassing push protection. @@ -25381,7 +26957,7 @@ public record SecretScanningPushProtectionBypass /// /// Information on a single scan performed by secret scanning on the repository /// -public record SecretScanningScan +public partial record SecretScanningScan { /// /// The type of scan @@ -25414,7 +26990,7 @@ public record SecretScanningScan } -public record SecretScanningScanHistory +public partial record SecretScanningScanHistory { [JsonPropertyName("incremental_scans")] public IReadOnlyList? IncrementalScans { get; init; } @@ -25433,7 +27009,7 @@ public record SecretScanningScanHistory } -public record RepositoryAdvisoryCreate +public partial record RepositoryAdvisoryCreate { /// /// A short summary of the advisory. @@ -25491,7 +27067,7 @@ public record RepositoryAdvisoryCreate } -public record PrivateVulnerabilityReportCreate +public partial record PrivateVulnerabilityReportCreate { /// /// A short summary of the advisory. @@ -25537,7 +27113,7 @@ public record PrivateVulnerabilityReportCreate } -public record RepositoryAdvisoryUpdate +public partial record RepositoryAdvisoryUpdate { /// /// A short summary of the advisory. @@ -25607,10 +27183,66 @@ public record RepositoryAdvisoryUpdate } +public partial record PullRequestStackMinimal +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("number")] + public required int Number { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required Uri Url { get; init; } + + [JsonPropertyName("base")] + public required object Base { get; init; } + + /// + /// Whether the stack has any open pull request. False when all pull requests are merged or closed. + /// + [JsonPropertyName("open")] + public required bool Open { get; init; } + + [JsonPropertyName("created_at")] + public required DateTimeOffset CreatedAt { get; init; } + + [JsonPropertyName("pull_requests")] + public required IReadOnlyList PullRequests { get; init; } + +} + +public partial record PullRequestStackPullRequest : PullRequestMinimal +{ + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("title")] + public required string Title { get; init; } + + [JsonPropertyName("state")] + public required MilestoneState State { get; init; } + + [JsonPropertyName("merged_at")] + public required DateTimeOffset? MergedAt { get; init; } + + [JsonPropertyName("draft")] + public required bool Draft { get; init; } + + [JsonPropertyName("html_url")] + public required Uri HtmlUrl { get; init; } + + [JsonPropertyName("user")] + public required SimpleUser? User { get; init; } + +} + /// /// Stargazer /// -public record Stargazer +public partial record Stargazer { [JsonPropertyName("starred_at")] public required DateTimeOffset StarredAt { get; init; } @@ -25628,7 +27260,7 @@ public record CodeFrequencyStat; /// /// Commit Activity /// -public record CommitActivity +public partial record CommitActivity { [JsonPropertyName("days")] public required IReadOnlyList Days { get; init; } @@ -25644,7 +27276,7 @@ public record CommitActivity /// /// Contributor Activity /// -public record ContributorActivity +public partial record ContributorActivity { [JsonPropertyName("author")] public required SimpleUser? Author { get; init; } @@ -25657,7 +27289,7 @@ public record ContributorActivity } -public record ParticipationStats +public partial record ParticipationStats { [JsonPropertyName("all")] public required IReadOnlyList All { get; init; } @@ -25670,7 +27302,7 @@ public record ParticipationStats /// /// Repository invitations let you manage who you collaborate with. /// -public record RepositorySubscription +public partial record RepositorySubscription { /// /// Determines if notifications should be received from this repository. @@ -25701,7 +27333,7 @@ public record RepositorySubscription /// /// Tag /// -public record Tag +public partial record Tag { [JsonPropertyName("name")] public required string Name { get; init; } @@ -25723,14 +27355,14 @@ public record Tag /// /// A topic aggregates entities that are related to a subject. /// -public record Topic +public partial record Topic { [JsonPropertyName("names")] public required IReadOnlyList Names { get; init; } } -public record Traffic +public partial record Traffic { [JsonPropertyName("timestamp")] public required DateTimeOffset Timestamp { get; init; } @@ -25746,7 +27378,7 @@ public record Traffic /// /// Clone Traffic /// -public record CloneTraffic +public partial record CloneTraffic { [JsonPropertyName("count")] public required int Count { get; init; } @@ -25762,7 +27394,7 @@ public record CloneTraffic /// /// Content Traffic /// -public record ContentTraffic +public partial record ContentTraffic { [JsonPropertyName("path")] public required string Path { get; init; } @@ -25781,7 +27413,7 @@ public record ContentTraffic /// /// Referrer Traffic /// -public record ReferrerTraffic +public partial record ReferrerTraffic { [JsonPropertyName("referrer")] public required string Referrer { get; init; } @@ -25797,7 +27429,7 @@ public record ReferrerTraffic /// /// View Traffic /// -public record ViewTraffic +public partial record ViewTraffic { [JsonPropertyName("count")] public required int Count { get; init; } @@ -25815,7 +27447,7 @@ public record SearchResultTextMatches; /// /// Code Search Result Item /// -public record CodeSearchResultItem +public partial record CodeSearchResultItem { [JsonPropertyName("name")] public required string Name { get; init; } @@ -25864,7 +27496,7 @@ public record CodeSearchResultItem /// /// Commit Search Result Item /// -public record CommitSearchResultItem +public partial record CommitSearchResultItem { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -25910,7 +27542,7 @@ public record CommitSearchResultItem /// /// Issue Search Result Item /// -public record IssueSearchResultItem +public partial record IssueSearchResultItem { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -26046,7 +27678,7 @@ public record IssueSearchResultItem /// /// Label Search Result Item /// -public record LabelSearchResultItem +public partial record LabelSearchResultItem { [JsonPropertyName("id")] public required int Id { get; init; } @@ -26080,7 +27712,7 @@ public record LabelSearchResultItem /// /// Repo Search Result Item /// -public record RepoSearchResultItem +public partial record RepoSearchResultItem { [JsonPropertyName("id")] public required int Id { get; init; } @@ -26369,7 +28001,7 @@ public record RepoSearchResultItem /// /// Topic Search Result Item /// -public record TopicSearchResultItem +public partial record TopicSearchResultItem { [JsonPropertyName("name")] public required string Name { get; init; } @@ -26424,7 +28056,7 @@ public record TopicSearchResultItem /// /// User Search Result Item /// -public record UserSearchResultItem +public partial record UserSearchResultItem { [JsonPropertyName("login")] public required string Login { get; init; } @@ -26536,7 +28168,7 @@ public record UserSearchResultItem /// /// Private User /// -public record PrivateUser +public partial record PrivateUser { [JsonPropertyName("login")] public required string Login { get; init; } @@ -26672,7 +28304,7 @@ public record PrivateUser /// /// Secrets for a GitHub Codespace. /// -public record CodespacesSecret +public partial record CodespacesSecret { /// /// The name of the secret @@ -26709,7 +28341,7 @@ public record CodespacesSecret /// /// The public key used for setting user Codespaces' Secrets. /// -public record CodespacesUserPublicKey +public partial record CodespacesUserPublicKey { /// /// The identifier for the key. @@ -26728,7 +28360,7 @@ public record CodespacesUserPublicKey /// /// An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest /// -public record CodespaceExportDetails +public partial record CodespaceExportDetails { /// /// State of the latest export @@ -26777,7 +28409,7 @@ public record CodespaceExportDetails /// /// A codespace. /// -public record CodespaceWithFullRepository +public partial record CodespaceWithFullRepository { [JsonPropertyName("id")] public required long Id { get; init; } @@ -26952,7 +28584,7 @@ public record CodespaceWithFullRepository /// /// Email /// -public record Email +public partial record Email { [JsonPropertyName("email")] public required string EmailValue { get; init; } @@ -26971,7 +28603,7 @@ public record Email /// /// A unique encryption key /// -public record GpgKey +public partial record GpgKey { [JsonPropertyName("id")] public required long Id { get; init; } @@ -27023,7 +28655,7 @@ public record GpgKey /// /// Key /// -public record Key +public partial record Key { [JsonPropertyName("key")] public required string KeyValue { get; init; } @@ -27051,7 +28683,7 @@ public record Key } -public record MarketplaceAccount +public partial record MarketplaceAccount { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -27079,7 +28711,7 @@ public record MarketplaceAccount /// /// User Marketplace Purchase /// -public record UserMarketplacePurchase +public partial record UserMarketplacePurchase { [JsonPropertyName("billing_cycle")] public required string BillingCycle { get; init; } @@ -27113,7 +28745,7 @@ public record UserMarketplacePurchase /// /// Social media account /// -public record SocialAccount +public partial record SocialAccount { [JsonPropertyName("provider")] public required string Provider { get; init; } @@ -27126,7 +28758,7 @@ public record SocialAccount /// /// A public SSH key used to sign Git commits /// -public record SshSigningKey +public partial record SshSigningKey { [JsonPropertyName("key")] public required string Key { get; init; } @@ -27145,7 +28777,7 @@ public record SshSigningKey /// /// Starred Repository /// -public record StarredRepository +public partial record StarredRepository { [JsonPropertyName("starred_at")] public required DateTimeOffset StarredAt { get; init; } @@ -27161,7 +28793,7 @@ public record StarredRepository /// /// Hovercard /// -public record Hovercard +public partial record Hovercard { [JsonPropertyName("contexts")] public required IReadOnlyList Contexts { get; init; } @@ -27171,7 +28803,7 @@ public record Hovercard /// /// Key Simple /// -public record KeySimple +public partial record KeySimple { [JsonPropertyName("id")] public required int Id { get; init; } @@ -27187,7 +28819,7 @@ public record KeySimple } -public record BillingAiCreditUsageReportUser +public partial record BillingAiCreditUsageReportUser { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -27215,7 +28847,7 @@ public record BillingAiCreditUsageReportUser } -public record BillingPremiumRequestUsageReportUser +public partial record BillingPremiumRequestUsageReportUser { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -27243,14 +28875,14 @@ public record BillingPremiumRequestUsageReportUser } -public record BillingUsageReportUser +public partial record BillingUsageReportUser { [JsonPropertyName("usageItems")] public IReadOnlyList? UsageItems { get; init; } } -public record BillingUsageSummaryReportUser +public partial record BillingUsageSummaryReportUser { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -27289,7 +28921,7 @@ public record BillingUsageSummaryReportUser /// on an enterprise account or an organization that's part of an enterprise account. For more information, /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." /// -public record EnterpriseWebhooks +public partial record EnterpriseWebhooks { /// /// A short description of the enterprise. @@ -27343,7 +28975,7 @@ public record EnterpriseWebhooks /// for and sent to a GitHub App. For more information, /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// -public record SimpleInstallation +public partial record SimpleInstallation { /// /// The ID of the installation. @@ -27363,7 +28995,7 @@ public record SimpleInstallation /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an /// organization, or when the event occurs from activity in a repository owned by an organization. /// -public record OrganizationSimpleWebhooks +public partial record OrganizationSimpleWebhooks { [JsonPropertyName("login")] public required string Login { get; init; } @@ -27407,7 +29039,7 @@ public record OrganizationSimpleWebhooks /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. /// -public record RepositoryWebhooks +public partial record RepositoryWebhooks { /// /// Unique identifier of the repository @@ -27830,7 +29462,7 @@ public record RepositoryWebhooks /// /// The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings. /// -public record WebhooksRule +public partial record WebhooksRule { [JsonPropertyName("admin_enforced")] public required bool AdminEnforced { get; init; } @@ -27930,7 +29562,7 @@ public record WebhooksRule /// /// A suite of checks performed on the code of a given code change /// -public record SimpleCheckSuite +public partial record SimpleCheckSuite { [JsonPropertyName("after")] public string? After { get; init; } @@ -27988,7 +29620,7 @@ public record SimpleCheckSuite /// /// A check performed on the code of a given code change /// -public record CheckRunWithSimpleCheckSuite +public partial record CheckRunWithSimpleCheckSuite { /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. @@ -28071,7 +29703,7 @@ public record CheckRunWithSimpleCheckSuite /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksCodeScanningCommitOid(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksCodeScanningCommitOid(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksCodeScanningCommitOid Create(string value) => new(value); } @@ -28083,7 +29715,7 @@ public readonly record struct WebhooksCodeScanningCommitOid(string Value) : IOpe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksCodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksCodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksCodeScanningRef Create(string value) => new(value); } @@ -28095,7 +29727,7 @@ public readonly record struct WebhooksCodeScanningRef(string Value) : IOpenApiGe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksDeployPusherType(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksDeployPusherType(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksDeployPusherType Create(string value) => new(value); } @@ -28107,7 +29739,7 @@ public readonly record struct WebhooksDeployPusherType(string Value) : IOpenApiG /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksRef0(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksRef0(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksRef0 Create(string value) => new(value); } @@ -28115,7 +29747,7 @@ public readonly record struct WebhooksRef0(string Value) : IOpenApiGeneratedType /// /// The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource. /// -public record WebhooksDeployKey +public partial record WebhooksDeployKey { [JsonPropertyName("added_by")] public string? AddedBy { get; init; } @@ -28149,7 +29781,7 @@ public record WebhooksDeployKey } -public record WebhooksWorkflow +public partial record WebhooksWorkflow { [JsonPropertyName("badge_url")] public required Uri BadgeUrl { get; init; } @@ -28183,7 +29815,7 @@ public record WebhooksWorkflow } -public record WebhooksApprover +public partial record WebhooksApprover { [JsonPropertyName("avatar_url")] public string? AvatarUrl { get; init; } @@ -28246,7 +29878,7 @@ public record WebhooksApprover public record WebhooksReviewers; -public record WebhooksWorkflowJobRun +public partial record WebhooksWorkflowJobRun { [JsonPropertyName("conclusion")] public required object? Conclusion { get; init; } @@ -28274,7 +29906,7 @@ public record WebhooksWorkflowJobRun } -public record WebhooksUser +public partial record WebhooksUser { [JsonPropertyName("avatar_url")] public Uri? AvatarUrl { get; init; } @@ -28344,7 +29976,7 @@ public record WebhooksUser } -public record WebhooksAnswer +public partial record WebhooksAnswer { /// /// How the author is associated with the repository. @@ -28390,7 +30022,7 @@ public record WebhooksAnswer } -public record WebhooksComment +public partial record WebhooksComment { /// /// How the author is associated with the repository. @@ -28436,7 +30068,7 @@ public record WebhooksComment } -public record WebhooksLabel +public partial record WebhooksLabel { /// /// 6-character hex code, without the leading #, identifying the color @@ -28483,7 +30115,7 @@ public record WebhooksRepositoriesAdded; /// /// Describe whether all repositories have been selected or there's a selection involved /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksRepositorySelection { [JsonStringEnumMemberName("all")] @@ -28495,7 +30127,7 @@ public enum WebhooksRepositorySelection /// /// The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. /// -public record WebhooksIssueComment +public partial record WebhooksIssueComment { /// /// How the author is associated with the repository. @@ -28551,12 +30183,15 @@ public record WebhooksIssueComment [JsonPropertyName("pin")] public PinnedIssueComment? Pin { get; init; } + [JsonPropertyName("minimized")] + public IssueCommentMinimized? Minimized { get; init; } + } /// /// The changes to the comment. /// -public record WebhooksChanges +public partial record WebhooksChanges { [JsonPropertyName("body")] public object? Body { get; init; } @@ -28566,7 +30201,7 @@ public record WebhooksChanges /// /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. /// -public record WebhooksIssue +public partial record WebhooksIssue { [JsonPropertyName("active_lock_reason")] public required ActiveLockReason ActiveLockReason { get; init; } @@ -28702,7 +30337,7 @@ public record WebhooksIssue /// /// A collection of related issues and pull requests. /// -public record WebhooksMilestone +public partial record WebhooksMilestone { [JsonPropertyName("closed_at")] public required DateTimeOffset? ClosedAt { get; init; } @@ -28766,7 +30401,7 @@ public record WebhooksMilestone /// /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. /// -public record WebhooksIssue2 +public partial record WebhooksIssue2 { [JsonPropertyName("active_lock_reason")] public required ActiveLockReason ActiveLockReason { get; init; } @@ -28899,7 +30534,7 @@ public record WebhooksIssue2 } -public record WebhooksUserMannequin +public partial record WebhooksUserMannequin { [JsonPropertyName("avatar_url")] public Uri? AvatarUrl { get; init; } @@ -28969,7 +30604,7 @@ public record WebhooksUserMannequin } -public record WebhooksMarketplacePurchase +public partial record WebhooksMarketplacePurchase { [JsonPropertyName("account")] public required object Account { get; init; } @@ -28994,7 +30629,7 @@ public record WebhooksMarketplacePurchase } -public record WebhooksPreviousMarketplacePurchase +public partial record WebhooksPreviousMarketplacePurchase { [JsonPropertyName("account")] public required object Account { get; init; } @@ -29022,7 +30657,7 @@ public record WebhooksPreviousMarketplacePurchase /// /// Groups of organization members that gives permissions on specified repositories. /// -public record WebhooksTeam +public partial record WebhooksTeam { [JsonPropertyName("deleted")] public bool? Deleted { get; init; } @@ -29104,7 +30739,7 @@ public record WebhooksTeam /// /// A group of pull requests that the merge queue has grouped together to be merged. /// -public record MergeGroup +public partial record MergeGroup { /// /// The SHA of the merge group. @@ -29141,7 +30776,7 @@ public record MergeGroup /// /// A collection of related issues and pull requests. /// -public record WebhooksMilestone3 +public partial record WebhooksMilestone3 { [JsonPropertyName("closed_at")] public required DateTimeOffset? ClosedAt { get; init; } @@ -29205,7 +30840,7 @@ public record WebhooksMilestone3 /// /// The membership between the user and the organization. Not present when the action is `member_invited`. /// -public record WebhooksMembership +public partial record WebhooksMembership { [JsonPropertyName("organization_url")] public required Uri OrganizationUrl { get; init; } @@ -29240,7 +30875,7 @@ public record WebhooksMembership /// /// Details of a Personal Access Token Request. /// -public record PersonalAccessTokenRequest +public partial record PersonalAccessTokenRequest { /// /// Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls. @@ -29328,7 +30963,7 @@ public record PersonalAccessTokenRequest } -public record WebhooksProjectCard +public partial record WebhooksProjectCard { [JsonPropertyName("after_id")] public int? AfterId { get; init; } @@ -29377,7 +31012,7 @@ public record WebhooksProjectCard } -public record WebhooksProject +public partial record WebhooksProject { /// /// Body of the project @@ -29429,7 +31064,7 @@ public record WebhooksProject } -public record WebhooksProjectColumn +public partial record WebhooksProjectColumn { [JsonPropertyName("after_id")] public int? AfterId { get; init; } @@ -29466,7 +31101,7 @@ public record WebhooksProjectColumn } -public record WebhooksProjectChanges +public partial record WebhooksProjectChanges { [JsonPropertyName("archived_at")] public object? ArchivedAt { get; init; } @@ -29476,7 +31111,7 @@ public record WebhooksProjectChanges /// /// An item belonging to a project /// -public record ProjectsV2Item +public partial record ProjectsV2Item { /// /// The unique identifier of the project item. @@ -29537,7 +31172,7 @@ public record ProjectsV2Item /// /// An option for a single select field /// -public record ProjectsV2SingleSelectOption +public partial record ProjectsV2SingleSelectOption { /// /// The unique identifier of the option. @@ -29568,7 +31203,7 @@ public record ProjectsV2SingleSelectOption /// /// An iteration setting for an iteration field /// -public record ProjectsV2IterationSetting +public partial record ProjectsV2IterationSetting { /// /// The unique identifier of the iteration setting. @@ -29615,12 +31250,12 @@ public record ProjectsV2IterationSetting /// Type alias for int. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksNumber(int Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksNumber(int Value) : IOpenApiGeneratedTypeAlias { public static WebhooksNumber Create(int value) => new(value); } -public record PullRequestWebhook : PullRequest +public partial record PullRequestWebhook : PullRequest { /// /// Whether to allow auto-merge for pull requests. @@ -29682,7 +31317,7 @@ public record PullRequestWebhook : PullRequest } -public record WebhooksPullRequest5 +public partial record WebhooksPullRequest5 { [JsonPropertyName("_links")] public required object Links { get; init; } @@ -29828,6 +31463,12 @@ public record WebhooksPullRequest5 [JsonPropertyName("review_comments_url")] public required Uri ReviewCommentsUrl { get; init; } + /// + /// The stack information associated with a pull request. + /// + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } + /// /// State of this Pull Request. Either `open` or `closed`. /// @@ -29857,7 +31498,7 @@ public record WebhooksPullRequest5 /// /// The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. /// -public record WebhooksReviewComment +public partial record WebhooksReviewComment { [JsonPropertyName("_links")] public required object Links { get; init; } @@ -30011,7 +31652,7 @@ public record WebhooksReviewComment /// /// The review that was affected. /// -public record WebhooksReview +public partial record WebhooksReview { [JsonPropertyName("_links")] public required object Links { get; init; } @@ -30067,7 +31708,7 @@ public record WebhooksReview /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksNullableString(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksNullableString(string? Value) : IOpenApiGeneratedTypeAlias { public static WebhooksNullableString Create(string? value) => new(value); } @@ -30075,7 +31716,7 @@ public readonly record struct WebhooksNullableString(string? Value) : IOpenApiGe /// /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// -public record WebhooksRelease +public partial record WebhooksRelease { [JsonPropertyName("assets")] public required IReadOnlyList Assets { get; init; } @@ -30163,7 +31804,7 @@ public record WebhooksRelease /// /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// -public record WebhooksRelease1 +public partial record WebhooksRelease1 { [JsonPropertyName("assets")] public required IReadOnlyList Assets { get; init; } @@ -30251,7 +31892,7 @@ public record WebhooksRelease1 /// /// The security alert of the vulnerable dependency. /// -public record WebhooksAlert +public partial record WebhooksAlert { [JsonPropertyName("affected_package_name")] public required string AffectedPackageName { get; init; } @@ -30309,7 +31950,7 @@ public record WebhooksAlert /// /// The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertResolutionWebhook { [JsonStringEnumMemberName("false_positive")] @@ -30328,7 +31969,7 @@ public enum SecretScanningAlertResolutionWebhook Unknown } -public record SecretScanningAlertWebhook +public partial record SecretScanningAlertWebhook { /// /// The security alert number. @@ -30409,6 +32050,12 @@ public record SecretScanningAlertWebhook [JsonPropertyName("provider_slug")] public string? ProviderSlug { get; init; } + /// + /// The category of the detected secret. `default` covers specific provider patterns and custom patterns; `generic` covers non-specific patterns and AI-detected secrets. + /// + [JsonPropertyName("secret_category")] + public SecretCategory? SecretCategory { get; init; } + /// /// The token status as of the latest validity check. /// @@ -30481,12 +32128,18 @@ public record SecretScanningAlertWebhook [JsonPropertyName("closure_request_reviewer")] public SimpleUser? ClosureRequestReviewer { get; init; } + /// + /// A list of metadata key/value pairs associated with the secret scanning alert. + /// + [JsonPropertyName("metadata")] + public SecretScanningAlertMetadata? Metadata { get; init; } + } /// /// The details of the security advisory, including summary, description, and severity. /// -public record WebhooksSecurityAdvisory +public partial record WebhooksSecurityAdvisory { [JsonPropertyName("cvss")] public required object Cvss { get; init; } @@ -30529,7 +32182,7 @@ public record WebhooksSecurityAdvisory } -public record WebhooksSponsorship +public partial record WebhooksSponsorship { [JsonPropertyName("created_at")] public required string CreatedAt { get; init; } @@ -30564,12 +32217,12 @@ public record WebhooksSponsorship /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksEffectiveDate(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksEffectiveDate(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksEffectiveDate Create(string value) => new(value); } -public record WebhooksChanges8 +public partial record WebhooksChanges8 { [JsonPropertyName("tier")] public required object Tier { get; init; } @@ -30579,7 +32232,7 @@ public record WebhooksChanges8 /// /// Groups of organization members that gives permissions on specified repositories. /// -public record WebhooksTeam1 +public partial record WebhooksTeam1 { [JsonPropertyName("deleted")] public bool? Deleted { get; init; } @@ -30661,7 +32314,7 @@ public record WebhooksTeam1 } -public record WebhookBranchProtectionConfigurationDisabled +public partial record WebhookBranchProtectionConfigurationDisabled { [JsonPropertyName("action")] public required WebhookBranchProtectionConfigurationDisabledAction Action { get; init; } @@ -30704,7 +32357,7 @@ public record WebhookBranchProtectionConfigurationDisabled } -public record WebhookBranchProtectionConfigurationEnabled +public partial record WebhookBranchProtectionConfigurationEnabled { [JsonPropertyName("action")] public required WebhookBranchProtectionConfigurationEnabledAction Action { get; init; } @@ -30747,7 +32400,7 @@ public record WebhookBranchProtectionConfigurationEnabled } -public record WebhookBranchProtectionRuleCreated +public partial record WebhookBranchProtectionRuleCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -30796,7 +32449,7 @@ public record WebhookBranchProtectionRuleCreated } -public record WebhookBranchProtectionRuleDeleted +public partial record WebhookBranchProtectionRuleDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -30845,7 +32498,7 @@ public record WebhookBranchProtectionRuleDeleted } -public record WebhookBranchProtectionRuleEdited +public partial record WebhookBranchProtectionRuleEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -30900,7 +32553,7 @@ public record WebhookBranchProtectionRuleEdited } -public record WebhookCheckRunCompleted +public partial record WebhookCheckRunCompleted { [JsonPropertyName("action")] public WebhookCheckRunCompletedAction? Action { get; init; } @@ -30952,7 +32605,7 @@ public record WebhookCheckRunCompleted /// /// The check_run.completed webhook encoded with URL encoding /// -public record WebhookCheckRunCompletedFormEncoded +public partial record WebhookCheckRunCompletedFormEncoded { /// /// A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object. @@ -30962,7 +32615,7 @@ public record WebhookCheckRunCompletedFormEncoded } -public record WebhookCheckRunCreated +public partial record WebhookCheckRunCreated { [JsonPropertyName("action")] public WebhookBranchProtectionRuleCreatedAction? Action { get; init; } @@ -31014,7 +32667,7 @@ public record WebhookCheckRunCreated /// /// The check_run.created webhook encoded with URL encoding /// -public record WebhookCheckRunCreatedFormEncoded +public partial record WebhookCheckRunCreatedFormEncoded { /// /// A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object. @@ -31024,7 +32677,7 @@ public record WebhookCheckRunCreatedFormEncoded } -public record WebhookCheckRunRequestedAction +public partial record WebhookCheckRunRequestedAction { [JsonPropertyName("action")] public required WebhookCheckRunRequestedActionAction Action { get; init; } @@ -31082,7 +32735,7 @@ public record WebhookCheckRunRequestedAction /// /// The check_run.requested_action webhook encoded with URL encoding /// -public record WebhookCheckRunRequestedActionFormEncoded +public partial record WebhookCheckRunRequestedActionFormEncoded { /// /// A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object. @@ -31092,7 +32745,7 @@ public record WebhookCheckRunRequestedActionFormEncoded } -public record WebhookCheckRunRerequested +public partial record WebhookCheckRunRerequested { [JsonPropertyName("action")] public WebhookCheckRunRerequestedAction? Action { get; init; } @@ -31144,7 +32797,7 @@ public record WebhookCheckRunRerequested /// /// The check_run.rerequested webhook encoded with URL encoding /// -public record WebhookCheckRunRerequestedFormEncoded +public partial record WebhookCheckRunRerequestedFormEncoded { /// /// A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object. @@ -31154,7 +32807,7 @@ public record WebhookCheckRunRerequestedFormEncoded } -public record WebhookCheckSuiteCompleted +public partial record WebhookCheckSuiteCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -31203,7 +32856,7 @@ public record WebhookCheckSuiteCompleted } -public record WebhookCheckSuiteRequested +public partial record WebhookCheckSuiteRequested { [JsonPropertyName("action")] public required WebhookCheckSuiteRequestedAction Action { get; init; } @@ -31252,7 +32905,7 @@ public record WebhookCheckSuiteRequested } -public record WebhookCheckSuiteRerequested +public partial record WebhookCheckSuiteRerequested { [JsonPropertyName("action")] public required WebhookCheckRunRerequestedAction Action { get; init; } @@ -31301,7 +32954,7 @@ public record WebhookCheckSuiteRerequested } -public record WebhookCodeScanningAlertAppearedInBranch +public partial record WebhookCodeScanningAlertAppearedInBranch { [JsonPropertyName("action")] public required WebhookCodeScanningAlertAppearedInBranchAction Action { get; init; } @@ -31362,7 +33015,7 @@ public record WebhookCodeScanningAlertAppearedInBranch } -public record WebhookCodeScanningAlertClosedByUser +public partial record WebhookCodeScanningAlertClosedByUser { [JsonPropertyName("action")] public required WebhookCodeScanningAlertClosedByUserAction Action { get; init; } @@ -31423,7 +33076,7 @@ public record WebhookCodeScanningAlertClosedByUser } -public record WebhookCodeScanningAlertCreated +public partial record WebhookCodeScanningAlertCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -31484,7 +33137,7 @@ public record WebhookCodeScanningAlertCreated } -public record WebhookCodeScanningAlertFixed +public partial record WebhookCodeScanningAlertFixed { [JsonPropertyName("action")] public required WebhookCodeScanningAlertFixedAction Action { get; init; } @@ -31545,7 +33198,7 @@ public record WebhookCodeScanningAlertFixed } -public record WebhookCodeScanningAlertReopened +public partial record WebhookCodeScanningAlertReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -31606,7 +33259,7 @@ public record WebhookCodeScanningAlertReopened } -public record WebhookCodeScanningAlertReopenedByUser +public partial record WebhookCodeScanningAlertReopenedByUser { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedByUserAction Action { get; init; } @@ -31667,7 +33320,7 @@ public record WebhookCodeScanningAlertReopenedByUser } -public record WebhookCodeScanningAlertUpdatedAssignment +public partial record WebhookCodeScanningAlertUpdatedAssignment { [JsonPropertyName("action")] public required WebhookCodeScanningAlertUpdatedAssignmentAction Action { get; init; } @@ -31716,7 +33369,7 @@ public record WebhookCodeScanningAlertUpdatedAssignment } -public record WebhookCommitCommentCreated +public partial record WebhookCommitCommentCreated { /// /// The action performed. Can be `created`. @@ -31768,7 +33421,7 @@ public record WebhookCommitCommentCreated } -public record WebhookCreate +public partial record WebhookCreate { /// /// The repository's current description. @@ -31838,7 +33491,7 @@ public record WebhookCreate } -public record WebhookCustomPropertyCreated +public partial record WebhookCustomPropertyCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -31880,7 +33533,7 @@ public record WebhookCustomPropertyCreated } -public record WebhookCustomPropertyDeleted +public partial record WebhookCustomPropertyDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -31919,7 +33572,7 @@ public record WebhookCustomPropertyDeleted } -public record WebhookCustomPropertyPromotedToEnterprise +public partial record WebhookCustomPropertyPromotedToEnterprise { [JsonPropertyName("action")] public required WebhookCustomPropertyPromotedToEnterpriseAction Action { get; init; } @@ -31961,7 +33614,7 @@ public record WebhookCustomPropertyPromotedToEnterprise } -public record WebhookCustomPropertyUpdated +public partial record WebhookCustomPropertyUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -32003,7 +33656,7 @@ public record WebhookCustomPropertyUpdated } -public record WebhookCustomPropertyValuesUpdated +public partial record WebhookCustomPropertyValuesUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -32058,7 +33711,7 @@ public record WebhookCustomPropertyValuesUpdated } -public record WebhookDelete +public partial record WebhookDelete { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -32116,7 +33769,7 @@ public record WebhookDelete } -public record WebhookDependabotAlertAssigneesChanged +public partial record WebhookDependabotAlertAssigneesChanged { [JsonPropertyName("action")] public required WebhookDependabotAlertAssigneesChangedAction Action { get; init; } @@ -32165,7 +33818,7 @@ public record WebhookDependabotAlertAssigneesChanged } -public record WebhookDependabotAlertAutoDismissed +public partial record WebhookDependabotAlertAutoDismissed { [JsonPropertyName("action")] public required WebhookDependabotAlertAutoDismissedAction Action { get; init; } @@ -32214,7 +33867,7 @@ public record WebhookDependabotAlertAutoDismissed } -public record WebhookDependabotAlertAutoReopened +public partial record WebhookDependabotAlertAutoReopened { [JsonPropertyName("action")] public required WebhookDependabotAlertAutoReopenedAction Action { get; init; } @@ -32263,7 +33916,7 @@ public record WebhookDependabotAlertAutoReopened } -public record WebhookDependabotAlertCreated +public partial record WebhookDependabotAlertCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -32312,7 +33965,7 @@ public record WebhookDependabotAlertCreated } -public record WebhookDependabotAlertDismissed +public partial record WebhookDependabotAlertDismissed { [JsonPropertyName("action")] public required WebhookDependabotAlertDismissedAction Action { get; init; } @@ -32361,7 +34014,7 @@ public record WebhookDependabotAlertDismissed } -public record WebhookDependabotAlertFixed +public partial record WebhookDependabotAlertFixed { [JsonPropertyName("action")] public required WebhookCodeScanningAlertFixedAction Action { get; init; } @@ -32410,7 +34063,7 @@ public record WebhookDependabotAlertFixed } -public record WebhookDependabotAlertReintroduced +public partial record WebhookDependabotAlertReintroduced { [JsonPropertyName("action")] public required WebhookDependabotAlertReintroducedAction Action { get; init; } @@ -32459,7 +34112,7 @@ public record WebhookDependabotAlertReintroduced } -public record WebhookDependabotAlertReopened +public partial record WebhookDependabotAlertReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -32508,7 +34161,7 @@ public record WebhookDependabotAlertReopened } -public record WebhookDeployKeyCreated +public partial record WebhookDeployKeyCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -32557,7 +34210,7 @@ public record WebhookDeployKeyCreated } -public record WebhookDeployKeyDeleted +public partial record WebhookDeployKeyDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -32606,7 +34259,7 @@ public record WebhookDeployKeyDeleted } -public record WebhookDeploymentCreated +public partial record WebhookDeploymentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -32661,7 +34314,7 @@ public record WebhookDeploymentCreated } -public record WebhookDeploymentProtectionRuleRequested +public partial record WebhookDeploymentProtectionRuleRequested { [JsonPropertyName("action")] public WebhookCheckSuiteRequestedAction? Action { get; init; } @@ -32732,7 +34385,7 @@ public record WebhookDeploymentProtectionRuleRequested } -public record WebhookDeploymentReviewApproved +public partial record WebhookDeploymentReviewApproved { [JsonPropertyName("action")] public required WebhookDeploymentReviewApprovedAction Action { get; init; } @@ -32796,7 +34449,7 @@ public record WebhookDeploymentReviewApproved } -public record WebhookDeploymentReviewRejected +public partial record WebhookDeploymentReviewRejected { [JsonPropertyName("action")] public required WebhookDeploymentReviewRejectedAction Action { get; init; } @@ -32860,7 +34513,7 @@ public record WebhookDeploymentReviewRejected } -public record WebhookDeploymentReviewRequested +public partial record WebhookDeploymentReviewRequested { [JsonPropertyName("action")] public required WebhookCheckSuiteRequestedAction Action { get; init; } @@ -32921,7 +34574,7 @@ public record WebhookDeploymentReviewRequested } -public record WebhookDeploymentStatusCreated +public partial record WebhookDeploymentStatusCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -32985,7 +34638,7 @@ public record WebhookDeploymentStatusCreated } -public record WebhookDiscussionAnswered +public partial record WebhookDiscussionAnswered { [JsonPropertyName("action")] public required WebhookDiscussionAnsweredAction Action { get; init; } @@ -33037,7 +34690,7 @@ public record WebhookDiscussionAnswered } -public record WebhookDiscussionCategoryChanged +public partial record WebhookDiscussionCategoryChanged { [JsonPropertyName("action")] public required WebhookDiscussionCategoryChangedAction Action { get; init; } @@ -33089,7 +34742,7 @@ public record WebhookDiscussionCategoryChanged } -public record WebhookDiscussionClosed +public partial record WebhookDiscussionClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -33138,7 +34791,7 @@ public record WebhookDiscussionClosed } -public record WebhookDiscussionCommentCreated +public partial record WebhookDiscussionCommentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -33190,7 +34843,7 @@ public record WebhookDiscussionCommentCreated } -public record WebhookDiscussionCommentDeleted +public partial record WebhookDiscussionCommentDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -33242,7 +34895,7 @@ public record WebhookDiscussionCommentDeleted } -public record WebhookDiscussionCommentEdited +public partial record WebhookDiscussionCommentEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -33297,7 +34950,7 @@ public record WebhookDiscussionCommentEdited } -public record WebhookDiscussionCreated +public partial record WebhookDiscussionCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -33346,7 +34999,7 @@ public record WebhookDiscussionCreated } -public record WebhookDiscussionDeleted +public partial record WebhookDiscussionDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -33395,7 +35048,7 @@ public record WebhookDiscussionDeleted } -public record WebhookDiscussionEdited +public partial record WebhookDiscussionEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -33447,7 +35100,7 @@ public record WebhookDiscussionEdited } -public record WebhookDiscussionLabeled +public partial record WebhookDiscussionLabeled { [JsonPropertyName("action")] public required WebhookDiscussionLabeledAction Action { get; init; } @@ -33499,7 +35152,7 @@ public record WebhookDiscussionLabeled } -public record WebhookDiscussionLocked +public partial record WebhookDiscussionLocked { [JsonPropertyName("action")] public required WebhookDiscussionLockedAction Action { get; init; } @@ -33548,7 +35201,7 @@ public record WebhookDiscussionLocked } -public record WebhookDiscussionPinned +public partial record WebhookDiscussionPinned { [JsonPropertyName("action")] public required WebhookDiscussionPinnedAction Action { get; init; } @@ -33597,7 +35250,7 @@ public record WebhookDiscussionPinned } -public record WebhookDiscussionReopened +public partial record WebhookDiscussionReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -33646,7 +35299,7 @@ public record WebhookDiscussionReopened } -public record WebhookDiscussionTransferred +public partial record WebhookDiscussionTransferred { [JsonPropertyName("action")] public required WebhookDiscussionTransferredAction Action { get; init; } @@ -33698,7 +35351,7 @@ public record WebhookDiscussionTransferred } -public record WebhookDiscussionUnanswered +public partial record WebhookDiscussionUnanswered { [JsonPropertyName("action")] public required WebhookDiscussionUnansweredAction Action { get; init; } @@ -33734,7 +35387,7 @@ public record WebhookDiscussionUnanswered } -public record WebhookDiscussionUnlabeled +public partial record WebhookDiscussionUnlabeled { [JsonPropertyName("action")] public required WebhookDiscussionUnlabeledAction Action { get; init; } @@ -33786,7 +35439,7 @@ public record WebhookDiscussionUnlabeled } -public record WebhookDiscussionUnlocked +public partial record WebhookDiscussionUnlocked { [JsonPropertyName("action")] public required WebhookDiscussionUnlockedAction Action { get; init; } @@ -33835,7 +35488,7 @@ public record WebhookDiscussionUnlocked } -public record WebhookDiscussionUnpinned +public partial record WebhookDiscussionUnpinned { [JsonPropertyName("action")] public required WebhookDiscussionUnpinnedAction Action { get; init; } @@ -33887,7 +35540,7 @@ public record WebhookDiscussionUnpinned /// /// A user forks a repository. /// -public record WebhookFork +public partial record WebhookFork { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -33933,7 +35586,7 @@ public record WebhookFork } -public record WebhookGithubAppAuthorizationRevoked +public partial record WebhookGithubAppAuthorizationRevoked { [JsonPropertyName("action")] public required WebhookGithubAppAuthorizationRevokedAction Action { get; init; } @@ -33946,7 +35599,7 @@ public record WebhookGithubAppAuthorizationRevoked } -public record WebhookGollum +public partial record WebhookGollum { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -33992,7 +35645,7 @@ public record WebhookGollum } -public record WebhookInstallationCreated +public partial record WebhookInstallationCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -34042,7 +35695,7 @@ public record WebhookInstallationCreated } -public record WebhookInstallationDeleted +public partial record WebhookInstallationDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -34092,7 +35745,7 @@ public record WebhookInstallationDeleted } -public record WebhookInstallationNewPermissionsAccepted +public partial record WebhookInstallationNewPermissionsAccepted { [JsonPropertyName("action")] public required WebhookInstallationNewPermissionsAcceptedAction Action { get; init; } @@ -34142,7 +35795,7 @@ public record WebhookInstallationNewPermissionsAccepted } -public record WebhookInstallationRepositoriesAdded +public partial record WebhookInstallationRepositoriesAdded { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesAddedAction Action { get; init; } @@ -34175,7 +35828,7 @@ public record WebhookInstallationRepositoriesAdded public required WebhooksRepositoriesAdded RepositoriesAdded { get; init; } /// - /// An array of repository objects, which were removed from the installation. + /// An array of repository objects, which were removed from the installation. When `repository_selection` changes from `all` to `selected`, this array is empty. /// [JsonPropertyName("repositories_removed")] public required IReadOnlyList RepositoriesRemoved { get; init; } @@ -34204,7 +35857,7 @@ public record WebhookInstallationRepositoriesAdded } -public record WebhookInstallationRepositoriesRemoved +public partial record WebhookInstallationRepositoriesRemoved { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesRemovedAction Action { get; init; } @@ -34237,7 +35890,7 @@ public record WebhookInstallationRepositoriesRemoved public required WebhooksRepositoriesAdded RepositoriesAdded { get; init; } /// - /// An array of repository objects, which were removed from the installation. + /// An array of repository objects, which were removed from the installation. When `repository_selection` changes from `all` to `selected`, this array is empty. /// [JsonPropertyName("repositories_removed")] public required IReadOnlyList RepositoriesRemoved { get; init; } @@ -34266,7 +35919,7 @@ public record WebhookInstallationRepositoriesRemoved } -public record WebhookInstallationSuspend +public partial record WebhookInstallationSuspend { [JsonPropertyName("action")] public required WebhookInstallationSuspendAction Action { get; init; } @@ -34316,7 +35969,7 @@ public record WebhookInstallationSuspend } -public record WebhookInstallationTargetRenamed +public partial record WebhookInstallationTargetRenamed { [JsonPropertyName("account")] public required object Account { get; init; } @@ -34368,7 +36021,7 @@ public record WebhookInstallationTargetRenamed } -public record WebhookInstallationUnsuspend +public partial record WebhookInstallationUnsuspend { [JsonPropertyName("action")] public required WebhookInstallationUnsuspendAction Action { get; init; } @@ -34418,7 +36071,7 @@ public record WebhookInstallationUnsuspend } -public record WebhookIssueCommentCreated +public partial record WebhookIssueCommentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -34473,7 +36126,7 @@ public record WebhookIssueCommentCreated } -public record WebhookIssueCommentDeleted +public partial record WebhookIssueCommentDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -34528,7 +36181,7 @@ public record WebhookIssueCommentDeleted } -public record WebhookIssueCommentEdited +public partial record WebhookIssueCommentEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -34589,7 +36242,7 @@ public record WebhookIssueCommentEdited } -public record WebhookIssueCommentPinned +public partial record WebhookIssueCommentPinned { [JsonPropertyName("action")] public required WebhookDiscussionPinnedAction Action { get; init; } @@ -34644,7 +36297,7 @@ public record WebhookIssueCommentPinned } -public record WebhookIssueCommentUnpinned +public partial record WebhookIssueCommentUnpinned { [JsonPropertyName("action")] public required WebhookDiscussionUnpinnedAction Action { get; init; } @@ -34699,7 +36352,7 @@ public record WebhookIssueCommentUnpinned } -public record WebhookIssueDependenciesBlockedByAdded +public partial record WebhookIssueDependenciesBlockedByAdded { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockedByAddedAction Action { get; init; } @@ -34764,7 +36417,7 @@ public record WebhookIssueDependenciesBlockedByAdded } -public record WebhookIssueDependenciesBlockedByRemoved +public partial record WebhookIssueDependenciesBlockedByRemoved { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockedByRemovedAction Action { get; init; } @@ -34829,7 +36482,7 @@ public record WebhookIssueDependenciesBlockedByRemoved } -public record WebhookIssueDependenciesBlockingAdded +public partial record WebhookIssueDependenciesBlockingAdded { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockingAddedAction Action { get; init; } @@ -34894,7 +36547,7 @@ public record WebhookIssueDependenciesBlockingAdded } -public record WebhookIssueDependenciesBlockingRemoved +public partial record WebhookIssueDependenciesBlockingRemoved { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockingRemovedAction Action { get; init; } @@ -34959,7 +36612,7 @@ public record WebhookIssueDependenciesBlockingRemoved } -public record WebhookIssuesAssigned +public partial record WebhookIssuesAssigned { /// /// The action that was performed. @@ -35014,7 +36667,7 @@ public record WebhookIssuesAssigned } -public record WebhookIssuesClosed +public partial record WebhookIssuesClosed { /// /// The action that was performed. @@ -35066,7 +36719,7 @@ public record WebhookIssuesClosed } -public record WebhookIssuesDeleted +public partial record WebhookIssuesDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -35115,7 +36768,7 @@ public record WebhookIssuesDeleted } -public record WebhookIssuesDemilestoned +public partial record WebhookIssuesDemilestoned { [JsonPropertyName("action")] public required WebhookIssuesDemilestonedAction Action { get; init; } @@ -35170,7 +36823,7 @@ public record WebhookIssuesDemilestoned } -public record WebhookIssuesEdited +public partial record WebhookIssuesEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -35228,7 +36881,7 @@ public record WebhookIssuesEdited } -public record WebhookIssuesFieldAdded +public partial record WebhookIssuesFieldAdded { [JsonPropertyName("action")] public required WebhookIssuesFieldAddedAction Action { get; init; } @@ -35295,7 +36948,7 @@ public record WebhookIssuesFieldAdded } -public record WebhookIssuesFieldRemoved +public partial record WebhookIssuesFieldRemoved { [JsonPropertyName("action")] public required WebhookIssuesFieldRemovedAction Action { get; init; } @@ -35356,7 +37009,7 @@ public record WebhookIssuesFieldRemoved } -public record WebhookIssuesLabeled +public partial record WebhookIssuesLabeled { [JsonPropertyName("action")] public required WebhookDiscussionLabeledAction Action { get; init; } @@ -35408,7 +37061,7 @@ public record WebhookIssuesLabeled } -public record WebhookIssuesLocked +public partial record WebhookIssuesLocked { [JsonPropertyName("action")] public required WebhookDiscussionLockedAction Action { get; init; } @@ -35457,7 +37110,7 @@ public record WebhookIssuesLocked } -public record WebhookIssuesMilestoned +public partial record WebhookIssuesMilestoned { [JsonPropertyName("action")] public required WebhookIssuesMilestonedAction Action { get; init; } @@ -35512,7 +37165,7 @@ public record WebhookIssuesMilestoned } -public record WebhookIssuesOpened +public partial record WebhookIssuesOpened { [JsonPropertyName("action")] public required WebhookIssuesOpenedAction Action { get; init; } @@ -35564,7 +37217,7 @@ public record WebhookIssuesOpened } -public record WebhookIssuesPinned +public partial record WebhookIssuesPinned { [JsonPropertyName("action")] public required WebhookDiscussionPinnedAction Action { get; init; } @@ -35613,7 +37266,7 @@ public record WebhookIssuesPinned } -public record WebhookIssuesReopened +public partial record WebhookIssuesReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -35662,7 +37315,7 @@ public record WebhookIssuesReopened } -public record WebhookIssuesTransferred +public partial record WebhookIssuesTransferred { [JsonPropertyName("action")] public required WebhookDiscussionTransferredAction Action { get; init; } @@ -35714,7 +37367,7 @@ public record WebhookIssuesTransferred } -public record WebhookIssuesTyped +public partial record WebhookIssuesTyped { [JsonPropertyName("action")] public required WebhookIssuesTypedAction Action { get; init; } @@ -35769,7 +37422,7 @@ public record WebhookIssuesTyped } -public record WebhookIssuesUnassigned +public partial record WebhookIssuesUnassigned { /// /// The action that was performed. @@ -35824,7 +37477,7 @@ public record WebhookIssuesUnassigned } -public record WebhookIssuesUnlabeled +public partial record WebhookIssuesUnlabeled { [JsonPropertyName("action")] public required WebhookDiscussionUnlabeledAction Action { get; init; } @@ -35876,7 +37529,7 @@ public record WebhookIssuesUnlabeled } -public record WebhookIssuesUnlocked +public partial record WebhookIssuesUnlocked { [JsonPropertyName("action")] public required WebhookDiscussionUnlockedAction Action { get; init; } @@ -35925,7 +37578,7 @@ public record WebhookIssuesUnlocked } -public record WebhookIssuesUnpinned +public partial record WebhookIssuesUnpinned { [JsonPropertyName("action")] public required WebhookDiscussionUnpinnedAction Action { get; init; } @@ -35974,7 +37627,7 @@ public record WebhookIssuesUnpinned } -public record WebhookIssuesUntyped +public partial record WebhookIssuesUntyped { [JsonPropertyName("action")] public required WebhookIssuesUntypedAction Action { get; init; } @@ -36029,7 +37682,7 @@ public record WebhookIssuesUntyped } -public record WebhookLabelCreated +public partial record WebhookLabelCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -36075,7 +37728,7 @@ public record WebhookLabelCreated } -public record WebhookLabelDeleted +public partial record WebhookLabelDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -36121,7 +37774,7 @@ public record WebhookLabelDeleted } -public record WebhookLabelEdited +public partial record WebhookLabelEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -36173,7 +37826,7 @@ public record WebhookLabelEdited } -public record WebhookMarketplacePurchaseCancelled +public partial record WebhookMarketplacePurchaseCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseCancelledAction Action { get; init; } @@ -36225,7 +37878,7 @@ public record WebhookMarketplacePurchaseCancelled } -public record WebhookMarketplacePurchaseChanged +public partial record WebhookMarketplacePurchaseChanged { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseChangedAction Action { get; init; } @@ -36277,7 +37930,7 @@ public record WebhookMarketplacePurchaseChanged } -public record WebhookMarketplacePurchasePendingChange +public partial record WebhookMarketplacePurchasePendingChange { [JsonPropertyName("action")] public required WebhookMarketplacePurchasePendingChangeAction Action { get; init; } @@ -36329,7 +37982,7 @@ public record WebhookMarketplacePurchasePendingChange } -public record WebhookMarketplacePurchasePendingChangeCancelled +public partial record WebhookMarketplacePurchasePendingChangeCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchasePendingChangeCancelledAction Action { get; init; } @@ -36381,7 +38034,7 @@ public record WebhookMarketplacePurchasePendingChangeCancelled } -public record WebhookMarketplacePurchasePurchased +public partial record WebhookMarketplacePurchasePurchased { [JsonPropertyName("action")] public required WebhookMarketplacePurchasePurchasedAction Action { get; init; } @@ -36433,7 +38086,7 @@ public record WebhookMarketplacePurchasePurchased } -public record WebhookMemberAdded +public partial record WebhookMemberAdded { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesAddedAction Action { get; init; } @@ -36482,7 +38135,7 @@ public record WebhookMemberAdded } -public record WebhookMemberEdited +public partial record WebhookMemberEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -36534,7 +38187,7 @@ public record WebhookMemberEdited } -public record WebhookMemberRemoved +public partial record WebhookMemberRemoved { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesRemovedAction Action { get; init; } @@ -36580,7 +38233,7 @@ public record WebhookMemberRemoved } -public record WebhookMembershipAdded +public partial record WebhookMembershipAdded { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesAddedAction Action { get; init; } @@ -36635,7 +38288,7 @@ public record WebhookMembershipAdded } -public record WebhookMembershipRemoved +public partial record WebhookMembershipRemoved { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesRemovedAction Action { get; init; } @@ -36690,7 +38343,7 @@ public record WebhookMembershipRemoved } -public record WebhookMergeGroupChecksRequested +public partial record WebhookMergeGroupChecksRequested { [JsonPropertyName("action")] public required WebhookMergeGroupChecksRequestedAction Action { get; init; } @@ -36731,7 +38384,7 @@ public record WebhookMergeGroupChecksRequested } -public record WebhookMergeGroupDestroyed +public partial record WebhookMergeGroupDestroyed { [JsonPropertyName("action")] public required WebhookMergeGroupDestroyedAction Action { get; init; } @@ -36778,7 +38431,7 @@ public record WebhookMergeGroupDestroyed } -public record WebhookMetaDeleted +public partial record WebhookMetaDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -36829,7 +38482,7 @@ public record WebhookMetaDeleted } -public record WebhookMilestoneClosed +public partial record WebhookMilestoneClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -36878,7 +38531,7 @@ public record WebhookMilestoneClosed } -public record WebhookMilestoneCreated +public partial record WebhookMilestoneCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -36927,7 +38580,7 @@ public record WebhookMilestoneCreated } -public record WebhookMilestoneDeleted +public partial record WebhookMilestoneDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -36976,7 +38629,7 @@ public record WebhookMilestoneDeleted } -public record WebhookMilestoneEdited +public partial record WebhookMilestoneEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -37031,7 +38684,7 @@ public record WebhookMilestoneEdited } -public record WebhookMilestoneOpened +public partial record WebhookMilestoneOpened { [JsonPropertyName("action")] public required WebhookIssuesOpenedAction Action { get; init; } @@ -37080,7 +38733,7 @@ public record WebhookMilestoneOpened } -public record WebhookOrgBlockBlocked +public partial record WebhookOrgBlockBlocked { [JsonPropertyName("action")] public required WebhookOrgBlockBlockedAction Action { get; init; } @@ -37126,7 +38779,7 @@ public record WebhookOrgBlockBlocked } -public record WebhookOrgBlockUnblocked +public partial record WebhookOrgBlockUnblocked { [JsonPropertyName("action")] public required WebhookOrgBlockUnblockedAction Action { get; init; } @@ -37172,7 +38825,7 @@ public record WebhookOrgBlockUnblocked } -public record WebhookOrganizationDeleted +public partial record WebhookOrganizationDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -37221,7 +38874,7 @@ public record WebhookOrganizationDeleted } -public record WebhookOrganizationMemberAdded +public partial record WebhookOrganizationMemberAdded { [JsonPropertyName("action")] public required WebhookOrganizationMemberAddedAction Action { get; init; } @@ -37270,7 +38923,7 @@ public record WebhookOrganizationMemberAdded } -public record WebhookOrganizationMemberInvited +public partial record WebhookOrganizationMemberInvited { [JsonPropertyName("action")] public required WebhookOrganizationMemberInvitedAction Action { get; init; } @@ -37322,7 +38975,7 @@ public record WebhookOrganizationMemberInvited } -public record WebhookOrganizationMemberRemoved +public partial record WebhookOrganizationMemberRemoved { [JsonPropertyName("action")] public required WebhookOrganizationMemberRemovedAction Action { get; init; } @@ -37371,7 +39024,7 @@ public record WebhookOrganizationMemberRemoved } -public record WebhookOrganizationRenamed +public partial record WebhookOrganizationRenamed { [JsonPropertyName("action")] public required WebhookInstallationTargetRenamedAction Action { get; init; } @@ -37423,7 +39076,7 @@ public record WebhookOrganizationRenamed } -public record WebhookRubygemsMetadata +public partial record WebhookRubygemsMetadata { [JsonPropertyName("name")] public string? Name { get; init; } @@ -37457,7 +39110,7 @@ public record WebhookRubygemsMetadata } -public record WebhookPackagePublished +public partial record WebhookPackagePublished { [JsonPropertyName("action")] public required WebhookPackagePublishedAction Action { get; init; } @@ -37506,7 +39159,7 @@ public record WebhookPackagePublished } -public record WebhookPackageUpdated +public partial record WebhookPackageUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -37555,7 +39208,7 @@ public record WebhookPackageUpdated } -public record WebhookPageBuild +public partial record WebhookPageBuild { /// /// The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself. @@ -37604,7 +39257,7 @@ public record WebhookPageBuild } -public record WebhookPersonalAccessTokenRequestApproved +public partial record WebhookPersonalAccessTokenRequestApproved { [JsonPropertyName("action")] public required WebhookDeploymentReviewApprovedAction Action { get; init; } @@ -37646,7 +39299,7 @@ public record WebhookPersonalAccessTokenRequestApproved } -public record WebhookPersonalAccessTokenRequestCancelled +public partial record WebhookPersonalAccessTokenRequestCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseCancelledAction Action { get; init; } @@ -37688,7 +39341,7 @@ public record WebhookPersonalAccessTokenRequestCancelled } -public record WebhookPersonalAccessTokenRequestCreated +public partial record WebhookPersonalAccessTokenRequestCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -37730,7 +39383,7 @@ public record WebhookPersonalAccessTokenRequestCreated } -public record WebhookPersonalAccessTokenRequestDenied +public partial record WebhookPersonalAccessTokenRequestDenied { [JsonPropertyName("action")] public required WebhookPersonalAccessTokenRequestDeniedAction Action { get; init; } @@ -37772,7 +39425,7 @@ public record WebhookPersonalAccessTokenRequestDenied } -public record WebhookPing +public partial record WebhookPing { /// /// The webhook that is being pinged @@ -37817,7 +39470,7 @@ public record WebhookPing /// /// The webhooks ping payload encoded with URL encoding. /// -public record WebhookPingFormEncoded +public partial record WebhookPingFormEncoded { /// /// A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object. @@ -37827,7 +39480,7 @@ public record WebhookPingFormEncoded } -public record WebhookProjectCardConverted +public partial record WebhookProjectCardConverted { [JsonPropertyName("action")] public required WebhookProjectCardConvertedAction Action { get; init; } @@ -37876,7 +39529,7 @@ public record WebhookProjectCardConverted } -public record WebhookProjectCardCreated +public partial record WebhookProjectCardCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -37922,7 +39575,7 @@ public record WebhookProjectCardCreated } -public record WebhookProjectCardDeleted +public partial record WebhookProjectCardDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -37964,7 +39617,7 @@ public record WebhookProjectCardDeleted } -public record WebhookProjectCardEdited +public partial record WebhookProjectCardEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -38013,7 +39666,7 @@ public record WebhookProjectCardEdited } -public record WebhookProjectCardMoved +public partial record WebhookProjectCardMoved { [JsonPropertyName("action")] public required WebhookProjectCardMovedAction Action { get; init; } @@ -38062,7 +39715,7 @@ public record WebhookProjectCardMoved } -public record WebhookProjectClosed +public partial record WebhookProjectClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -38108,7 +39761,7 @@ public record WebhookProjectClosed } -public record WebhookProjectColumnCreated +public partial record WebhookProjectColumnCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -38154,7 +39807,7 @@ public record WebhookProjectColumnCreated } -public record WebhookProjectColumnDeleted +public partial record WebhookProjectColumnDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -38196,7 +39849,7 @@ public record WebhookProjectColumnDeleted } -public record WebhookProjectColumnEdited +public partial record WebhookProjectColumnEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -38245,7 +39898,7 @@ public record WebhookProjectColumnEdited } -public record WebhookProjectColumnMoved +public partial record WebhookProjectColumnMoved { [JsonPropertyName("action")] public required WebhookProjectCardMovedAction Action { get; init; } @@ -38291,7 +39944,7 @@ public record WebhookProjectColumnMoved } -public record WebhookProjectCreated +public partial record WebhookProjectCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -38337,7 +39990,7 @@ public record WebhookProjectCreated } -public record WebhookProjectDeleted +public partial record WebhookProjectDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -38379,7 +40032,7 @@ public record WebhookProjectDeleted } -public record WebhookProjectEdited +public partial record WebhookProjectEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -38431,7 +40084,7 @@ public record WebhookProjectEdited } -public record WebhookProjectReopened +public partial record WebhookProjectReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -38477,7 +40130,7 @@ public record WebhookProjectReopened } -public record WebhookProjectsV2ProjectClosed +public partial record WebhookProjectsV2ProjectClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -38514,7 +40167,7 @@ public record WebhookProjectsV2ProjectClosed /// /// A project was created /// -public record WebhookProjectsV2ProjectCreated +public partial record WebhookProjectsV2ProjectCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -38548,7 +40201,7 @@ public record WebhookProjectsV2ProjectCreated } -public record WebhookProjectsV2ProjectDeleted +public partial record WebhookProjectsV2ProjectDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -38582,7 +40235,7 @@ public record WebhookProjectsV2ProjectDeleted } -public record WebhookProjectsV2ProjectEdited +public partial record WebhookProjectsV2ProjectEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -38619,7 +40272,7 @@ public record WebhookProjectsV2ProjectEdited } -public record WebhookProjectsV2ItemArchived +public partial record WebhookProjectsV2ItemArchived { [JsonPropertyName("action")] public required WebhookProjectsV2ItemArchivedAction Action { get; init; } @@ -38656,7 +40309,7 @@ public record WebhookProjectsV2ItemArchived } -public record WebhookProjectsV2ItemConverted +public partial record WebhookProjectsV2ItemConverted { [JsonPropertyName("action")] public required WebhookProjectCardConvertedAction Action { get; init; } @@ -38693,7 +40346,7 @@ public record WebhookProjectsV2ItemConverted } -public record WebhookProjectsV2ItemCreated +public partial record WebhookProjectsV2ItemCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -38727,7 +40380,7 @@ public record WebhookProjectsV2ItemCreated } -public record WebhookProjectsV2ItemDeleted +public partial record WebhookProjectsV2ItemDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -38761,7 +40414,7 @@ public record WebhookProjectsV2ItemDeleted } -public record WebhookProjectsV2ItemEdited +public partial record WebhookProjectsV2ItemEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -38802,7 +40455,7 @@ public record WebhookProjectsV2ItemEdited } -public record WebhookProjectsV2ItemReordered +public partial record WebhookProjectsV2ItemReordered { [JsonPropertyName("action")] public required WebhookProjectsV2ItemReorderedAction Action { get; init; } @@ -38839,7 +40492,7 @@ public record WebhookProjectsV2ItemReordered } -public record WebhookProjectsV2ItemRestored +public partial record WebhookProjectsV2ItemRestored { [JsonPropertyName("action")] public required WebhookProjectsV2ItemRestoredAction Action { get; init; } @@ -38876,7 +40529,7 @@ public record WebhookProjectsV2ItemRestored } -public record WebhookProjectsV2ProjectReopened +public partial record WebhookProjectsV2ProjectReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -38910,7 +40563,7 @@ public record WebhookProjectsV2ProjectReopened } -public record WebhookProjectsV2StatusUpdateCreated +public partial record WebhookProjectsV2StatusUpdateCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -38944,7 +40597,7 @@ public record WebhookProjectsV2StatusUpdateCreated } -public record WebhookProjectsV2StatusUpdateDeleted +public partial record WebhookProjectsV2StatusUpdateDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -38978,7 +40631,7 @@ public record WebhookProjectsV2StatusUpdateDeleted } -public record WebhookProjectsV2StatusUpdateEdited +public partial record WebhookProjectsV2StatusUpdateEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -39015,7 +40668,7 @@ public record WebhookProjectsV2StatusUpdateEdited } -public record WebhookPublic +public partial record WebhookPublic { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -39055,7 +40708,7 @@ public record WebhookPublic } -public record WebhookPullRequestAssigned +public partial record WebhookPullRequestAssigned { [JsonPropertyName("action")] public required WebhookIssuesAssignedAction Action { get; init; } @@ -39110,7 +40763,7 @@ public record WebhookPullRequestAssigned } -public record WebhookPullRequestAutoMergeDisabled +public partial record WebhookPullRequestAutoMergeDisabled { [JsonPropertyName("action")] public required WebhookPullRequestAutoMergeDisabledAction Action { get; init; } @@ -39162,7 +40815,7 @@ public record WebhookPullRequestAutoMergeDisabled } -public record WebhookPullRequestAutoMergeEnabled +public partial record WebhookPullRequestAutoMergeEnabled { [JsonPropertyName("action")] public required WebhookPullRequestAutoMergeEnabledAction Action { get; init; } @@ -39214,7 +40867,7 @@ public record WebhookPullRequestAutoMergeEnabled } -public record WebhookPullRequestClosed +public partial record WebhookPullRequestClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -39266,7 +40919,7 @@ public record WebhookPullRequestClosed } -public record WebhookPullRequestConvertedToDraft +public partial record WebhookPullRequestConvertedToDraft { [JsonPropertyName("action")] public required WebhookPullRequestConvertedToDraftAction Action { get; init; } @@ -39318,7 +40971,7 @@ public record WebhookPullRequestConvertedToDraft } -public record WebhookPullRequestDemilestoned +public partial record WebhookPullRequestDemilestoned { [JsonPropertyName("action")] public required WebhookIssuesDemilestonedAction Action { get; init; } @@ -39368,7 +41021,7 @@ public record WebhookPullRequestDemilestoned } -public record WebhookPullRequestDequeued +public partial record WebhookPullRequestDequeued { [JsonPropertyName("action")] public required WebhookPullRequestDequeuedAction Action { get; init; } @@ -39420,7 +41073,7 @@ public record WebhookPullRequestDequeued } -public record WebhookPullRequestEdited +public partial record WebhookPullRequestEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -39478,7 +41131,7 @@ public record WebhookPullRequestEdited } -public record WebhookPullRequestEnqueued +public partial record WebhookPullRequestEnqueued { [JsonPropertyName("action")] public required WebhookPullRequestEnqueuedAction Action { get; init; } @@ -39527,7 +41180,7 @@ public record WebhookPullRequestEnqueued } -public record WebhookPullRequestLabeled +public partial record WebhookPullRequestLabeled { [JsonPropertyName("action")] public required WebhookDiscussionLabeledAction Action { get; init; } @@ -39582,7 +41235,7 @@ public record WebhookPullRequestLabeled } -public record WebhookPullRequestLocked +public partial record WebhookPullRequestLocked { [JsonPropertyName("action")] public required WebhookDiscussionLockedAction Action { get; init; } @@ -39634,7 +41287,7 @@ public record WebhookPullRequestLocked } -public record WebhookPullRequestMilestoned +public partial record WebhookPullRequestMilestoned { [JsonPropertyName("action")] public required WebhookIssuesMilestonedAction Action { get; init; } @@ -39684,7 +41337,7 @@ public record WebhookPullRequestMilestoned } -public record WebhookPullRequestOpened +public partial record WebhookPullRequestOpened { [JsonPropertyName("action")] public required WebhookIssuesOpenedAction Action { get; init; } @@ -39736,7 +41389,7 @@ public record WebhookPullRequestOpened } -public record WebhookPullRequestReadyForReview +public partial record WebhookPullRequestReadyForReview { [JsonPropertyName("action")] public required WebhookPullRequestReadyForReviewAction Action { get; init; } @@ -39788,7 +41441,7 @@ public record WebhookPullRequestReadyForReview } -public record WebhookPullRequestReopened +public partial record WebhookPullRequestReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -39840,7 +41493,7 @@ public record WebhookPullRequestReopened } -public record WebhookPullRequestReviewCommentCreated +public partial record WebhookPullRequestReviewCommentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -39892,7 +41545,7 @@ public record WebhookPullRequestReviewCommentCreated } -public record WebhookPullRequestReviewCommentDeleted +public partial record WebhookPullRequestReviewCommentDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -39944,7 +41597,7 @@ public record WebhookPullRequestReviewCommentDeleted } -public record WebhookPullRequestReviewCommentEdited +public partial record WebhookPullRequestReviewCommentEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -39998,69 +41651,229 @@ public record WebhookPullRequestReviewCommentEdited /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookPullRequestReviewDismissed -{ - [JsonPropertyName("action")] - public required WebhookDependabotAlertDismissedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - [JsonPropertyName("pull_request")] - public required object PullRequest { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookPullRequestReviewDismissed +{ + [JsonPropertyName("action")] + public required WebhookDependabotAlertDismissedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// The review that was affected. + /// + [JsonPropertyName("review")] + public required object Review { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookPullRequestReviewEdited +{ + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + + [JsonPropertyName("changes")] + public required object Changes { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// The review that was affected. + /// + [JsonPropertyName("review")] + public required WebhooksReview Review { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public abstract partial record WebhookPullRequestReviewRequestRemoved; + +public abstract partial record WebhookPullRequestReviewRequested; + +public partial record WebhookPullRequestReviewSubmitted +{ + [JsonPropertyName("action")] + public required WebhookPullRequestReviewSubmittedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// The review that was affected. + /// + [JsonPropertyName("review")] + public required WebhooksReview Review { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookPullRequestReviewThreadResolved +{ + [JsonPropertyName("action")] + public required WebhookPullRequestReviewThreadResolvedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public SimpleUser? Sender { get; init; } - /// - /// The review that was affected. - /// - [JsonPropertyName("review")] - public required object Review { get; init; } + [JsonPropertyName("thread")] + public required object Thread { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + [JsonPropertyName("updated_at")] + public DateTimeOffset? UpdatedAt { get; init; } } -public record WebhookPullRequestReviewEdited +public partial record WebhookPullRequestReviewThreadUnresolved { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } - - [JsonPropertyName("changes")] - public required object Changes { get; init; } + public required WebhookPullRequestReviewThreadUnresolvedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40095,80 +41908,24 @@ public record WebhookPullRequestReviewEdited [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } - /// - /// The review that was affected. - /// - [JsonPropertyName("review")] - public required WebhooksReview Review { get; init; } - /// /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public abstract record WebhookPullRequestReviewRequestRemoved; - -public abstract record WebhookPullRequestReviewRequested; - -public record WebhookPullRequestReviewSubmitted -{ - [JsonPropertyName("action")] - public required WebhookPullRequestReviewSubmittedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - [JsonPropertyName("pull_request")] - public required object PullRequest { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public SimpleUser? Sender { get; init; } - /// - /// The review that was affected. - /// - [JsonPropertyName("review")] - public required WebhooksReview Review { get; init; } + [JsonPropertyName("thread")] + public required object Thread { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + [JsonPropertyName("updated_at")] + public DateTimeOffset? UpdatedAt { get; init; } } -public record WebhookPullRequestReviewThreadResolved +public partial record WebhookPullRequestStacked { [JsonPropertyName("action")] - public required WebhookPullRequestReviewThreadResolvedAction Action { get; init; } + public required WebhookPullRequestStackedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40187,56 +41944,16 @@ public record WebhookPullRequestReviewThreadResolved public SimpleInstallation? Installation { get; init; } /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - [JsonPropertyName("pull_request")] - public required object PullRequest { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } - - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } - - [JsonPropertyName("thread")] - public required object Thread { get; init; } - - [JsonPropertyName("updated_at")] - public DateTimeOffset? UpdatedAt { get; init; } - -} - -public record WebhookPullRequestReviewThreadUnresolved -{ - [JsonPropertyName("action")] - public required WebhookPullRequestReviewThreadUnresolvedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// The stack information associated with a pull request. /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// The pull request number. /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } + [JsonPropertyName("number")] + public required WebhooksNumber Number { get; init; } /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -40259,17 +41976,11 @@ public record WebhookPullRequestReviewThreadUnresolved /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } - - [JsonPropertyName("thread")] - public required object Thread { get; init; } - - [JsonPropertyName("updated_at")] - public DateTimeOffset? UpdatedAt { get; init; } + public required SimpleUser Sender { get; init; } } -public record WebhookPullRequestSynchronize +public partial record WebhookPullRequestSynchronize { [JsonPropertyName("action")] public required WebhookPullRequestSynchronizeAction Action { get; init; } @@ -40327,7 +42038,7 @@ public record WebhookPullRequestSynchronize } -public record WebhookPullRequestUnassigned +public partial record WebhookPullRequestUnassigned { [JsonPropertyName("action")] public required WebhookIssuesUnassignedAction Action { get; init; } @@ -40382,7 +42093,7 @@ public record WebhookPullRequestUnassigned } -public record WebhookPullRequestUnlabeled +public partial record WebhookPullRequestUnlabeled { [JsonPropertyName("action")] public required WebhookDiscussionUnlabeledAction Action { get; init; } @@ -40437,7 +42148,7 @@ public record WebhookPullRequestUnlabeled } -public record WebhookPullRequestUnlocked +public partial record WebhookPullRequestUnlocked { [JsonPropertyName("action")] public required WebhookDiscussionUnlockedAction Action { get; init; } @@ -40489,7 +42200,7 @@ public record WebhookPullRequestUnlocked } -public record WebhookPush +public partial record WebhookPush { /// /// The SHA of the most recent commit on `ref` after the push. @@ -40588,7 +42299,7 @@ public record WebhookPush } -public record WebhookRegistryPackagePublished +public partial record WebhookRegistryPackagePublished { [JsonPropertyName("action")] public required WebhookPackagePublishedAction Action { get; init; } @@ -40616,15 +42327,110 @@ public record WebhookRegistryPackagePublished [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - [JsonPropertyName("registry_package")] - public required object RegistryPackage { get; init; } + [JsonPropertyName("registry_package")] + public required object RegistryPackage { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookRegistryPackageUpdated +{ + [JsonPropertyName("action")] + public required WebhookCustomPropertyUpdatedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("registry_package")] + public required object RegistryPackage { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookReleaseCreated +{ + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. + /// + [JsonPropertyName("release")] + public required WebhooksRelease Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -40634,10 +42440,10 @@ public record WebhookRegistryPackagePublished } -public record WebhookRegistryPackageUpdated +public partial record WebhookReleaseDeleted { [JsonPropertyName("action")] - public required WebhookCustomPropertyUpdatedAction Action { get; init; } + public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40662,15 +42468,18 @@ public record WebhookRegistryPackageUpdated [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - [JsonPropertyName("registry_package")] - public required object RegistryPackage { get; init; } + /// + /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. + /// + [JsonPropertyName("release")] + public required WebhooksRelease Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -40680,10 +42489,13 @@ public record WebhookRegistryPackageUpdated } -public record WebhookReleaseCreated +public partial record WebhookReleaseEdited { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + + [JsonPropertyName("changes")] + public required object Changes { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40725,14 +42537,14 @@ public record WebhookReleaseCreated /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookReleaseDeleted +public partial record WebhookReleasePrereleased { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } + public required WebhookReleasePrereleasedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40761,7 +42573,7 @@ public record WebhookReleaseDeleted /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// [JsonPropertyName("release")] - public required WebhooksRelease Release { get; init; } + public required object Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -40774,17 +42586,14 @@ public record WebhookReleaseDeleted /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookReleaseEdited +public partial record WebhookReleasePublished { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } - - [JsonPropertyName("changes")] - public required object Changes { get; init; } + public required WebhookPackagePublishedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40813,7 +42622,7 @@ public record WebhookReleaseEdited /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// [JsonPropertyName("release")] - public required WebhooksRelease Release { get; init; } + public required WebhooksRelease1 Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -40830,10 +42639,10 @@ public record WebhookReleaseEdited } -public record WebhookReleasePrereleased +public partial record WebhookReleaseReleased { [JsonPropertyName("action")] - public required WebhookReleasePrereleasedAction Action { get; init; } + public required WebhookReleaseReleasedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40862,7 +42671,7 @@ public record WebhookReleasePrereleased /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// [JsonPropertyName("release")] - public required object Release { get; init; } + public required WebhooksRelease Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -40879,10 +42688,10 @@ public record WebhookReleasePrereleased } -public record WebhookReleasePublished +public partial record WebhookReleaseUnpublished { [JsonPropertyName("action")] - public required WebhookPackagePublishedAction Action { get; init; } + public required WebhookReleaseUnpublishedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40928,10 +42737,10 @@ public record WebhookReleasePublished } -public record WebhookReleaseReleased +public partial record WebhookRepositoryAdvisoryPublished { [JsonPropertyName("action")] - public required WebhookReleaseReleasedAction Action { get; init; } + public required WebhookPackagePublishedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -40956,12 +42765,6 @@ public record WebhookReleaseReleased [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - /// - /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. - /// - [JsonPropertyName("release")] - public required WebhooksRelease Release { get; init; } - /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. @@ -40969,6 +42772,12 @@ public record WebhookReleaseReleased [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } + /// + /// A repository security advisory. + /// + [JsonPropertyName("repository_advisory")] + public required RepositoryAdvisory RepositoryAdvisory { get; init; } + /// /// A GitHub user. /// @@ -40977,10 +42786,10 @@ public record WebhookReleaseReleased } -public record WebhookReleaseUnpublished +public partial record WebhookRepositoryAdvisoryReported { [JsonPropertyName("action")] - public required WebhookReleaseUnpublishedAction Action { get; init; } + public required WebhookRepositoryAdvisoryReportedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41005,12 +42814,6 @@ public record WebhookReleaseUnpublished [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - /// - /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. - /// - [JsonPropertyName("release")] - public required WebhooksRelease1 Release { get; init; } - /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. @@ -41018,6 +42821,12 @@ public record WebhookReleaseUnpublished [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } + /// + /// A repository security advisory. + /// + [JsonPropertyName("repository_advisory")] + public required RepositoryAdvisory RepositoryAdvisory { get; init; } + /// /// A GitHub user. /// @@ -41026,10 +42835,10 @@ public record WebhookReleaseUnpublished } -public record WebhookRepositoryAdvisoryPublished +public partial record WebhookRepositoryArchived { [JsonPropertyName("action")] - public required WebhookPackagePublishedAction Action { get; init; } + public required WebhookProjectsV2ItemArchivedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41061,24 +42870,18 @@ public record WebhookRepositoryAdvisoryPublished [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } - /// - /// A repository security advisory. - /// - [JsonPropertyName("repository_advisory")] - public required RepositoryAdvisory RepositoryAdvisory { get; init; } - /// /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } + public required SimpleUser Sender { get; init; } } -public record WebhookRepositoryAdvisoryReported +public partial record WebhookRepositoryCreated { [JsonPropertyName("action")] - public required WebhookRepositoryAdvisoryReportedAction Action { get; init; } + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41110,24 +42913,18 @@ public record WebhookRepositoryAdvisoryReported [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } - /// - /// A repository security advisory. - /// - [JsonPropertyName("repository_advisory")] - public required RepositoryAdvisory RepositoryAdvisory { get; init; } - /// /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } + public required SimpleUser Sender { get; init; } } -public record WebhookRepositoryArchived +public partial record WebhookRepositoryDeleted { [JsonPropertyName("action")] - public required WebhookProjectsV2ItemArchivedAction Action { get; init; } + public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41167,10 +42964,22 @@ public record WebhookRepositoryArchived } -public record WebhookRepositoryCreated +public partial record WebhookRepositoryDispatchSample { + /// + /// The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required string Action { get; init; } + + [JsonPropertyName("branch")] + public required string Branch { get; init; } + + /// + /// The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// + [JsonPropertyName("client_payload")] + public required object? ClientPayload { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41186,7 +42995,7 @@ public record WebhookRepositoryCreated /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } + public required SimpleInstallation Installation { get; init; } /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -41210,10 +43019,13 @@ public record WebhookRepositoryCreated } -public record WebhookRepositoryDeleted +public partial record WebhookRepositoryEdited { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + + [JsonPropertyName("changes")] + public required object Changes { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41253,22 +43065,96 @@ public record WebhookRepositoryDeleted } -public record WebhookRepositoryDispatchSample +public partial record WebhookRepositoryImport { /// - /// The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + + [JsonPropertyName("status")] + public required WebhookRepositoryImportStatus Status { get; init; } + +} + +public partial record WebhookRepositoryPrivatized +{ [JsonPropertyName("action")] - public required string Action { get; init; } + public required WebhookRepositoryPrivatizedAction Action { get; init; } - [JsonPropertyName("branch")] - public required string Branch { get; init; } + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } /// - /// The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// - [JsonPropertyName("client_payload")] - public required object? ClientPayload { get; init; } + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookRepositoryPublicized +{ + [JsonPropertyName("action")] + public required WebhookRepositoryPublicizedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41284,7 +43170,7 @@ public record WebhookRepositoryDispatchSample /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// [JsonPropertyName("installation")] - public required SimpleInstallation Installation { get; init; } + public SimpleInstallation? Installation { get; init; } /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -41308,10 +43194,10 @@ public record WebhookRepositoryDispatchSample } -public record WebhookRepositoryEdited +public partial record WebhookRepositoryRenamed { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + public required WebhookInstallationTargetRenamedAction Action { get; init; } [JsonPropertyName("changes")] public required object Changes { get; init; } @@ -41354,8 +43240,60 @@ public record WebhookRepositoryEdited } -public record WebhookRepositoryImport +public partial record WebhookRepositoryRulesetCreated +{ + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A set of rules to apply when specified conditions are met. + /// + [JsonPropertyName("repository_ruleset")] + public required RepositoryRuleset RepositoryRuleset { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookRepositoryRulesetDeleted { + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } + /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured /// on an enterprise account or an organization that's part of an enterprise account. For more information, @@ -41384,7 +43322,13 @@ public record WebhookRepositoryImport /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A set of rules to apply when specified conditions are met. + /// + [JsonPropertyName("repository_ruleset")] + public required RepositoryRuleset RepositoryRuleset { get; init; } /// /// A GitHub user. @@ -41392,15 +43336,12 @@ public record WebhookRepositoryImport [JsonPropertyName("sender")] public required SimpleUser Sender { get; init; } - [JsonPropertyName("status")] - public required WebhookRepositoryImportStatus Status { get; init; } - } -public record WebhookRepositoryPrivatized +public partial record WebhookRepositoryRulesetEdited { [JsonPropertyName("action")] - public required WebhookRepositoryPrivatizedAction Action { get; init; } + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41430,50 +43371,16 @@ public record WebhookRepositoryPrivatized /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } - - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookRepositoryPublicized -{ - [JsonPropertyName("action")] - public required WebhookRepositoryPublicizedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } + public RepositoryWebhooks? Repository { get; init; } /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. + /// A set of rules to apply when specified conditions are met. /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } + [JsonPropertyName("repository_ruleset")] + public required RepositoryRuleset RepositoryRuleset { get; init; } - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + [JsonPropertyName("changes")] + public object? Changes { get; init; } /// /// A GitHub user. @@ -41483,10 +43390,10 @@ public record WebhookRepositoryPublicized } -public record WebhookRepositoryRenamed +public partial record WebhookRepositoryTransferred { [JsonPropertyName("action")] - public required WebhookInstallationTargetRenamedAction Action { get; init; } + public required WebhookDiscussionTransferredAction Action { get; init; } [JsonPropertyName("changes")] public required object Changes { get; init; } @@ -41529,10 +43436,10 @@ public record WebhookRepositoryRenamed } -public record WebhookRepositoryRulesetCreated +public partial record WebhookRepositoryUnarchived { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required WebhookRepositoryUnarchivedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41562,13 +43469,7 @@ public record WebhookRepositoryRulesetCreated /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } - - /// - /// A set of rules to apply when specified conditions are met. - /// - [JsonPropertyName("repository_ruleset")] - public required RepositoryRuleset RepositoryRuleset { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -41578,59 +43479,16 @@ public record WebhookRepositoryRulesetCreated } -public record WebhookRepositoryRulesetDeleted +public partial record WebhookRepositoryVulnerabilityAlertCreate { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } - - /// - /// A set of rules to apply when specified conditions are met. - /// - [JsonPropertyName("repository_ruleset")] - public required RepositoryRuleset RepositoryRuleset { get; init; } + public required WebhookRepositoryVulnerabilityAlertCreateAction Action { get; init; } /// - /// A GitHub user. + /// The security alert of the vulnerable dependency. /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookRepositoryRulesetEdited -{ - [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + [JsonPropertyName("alert")] + public required WebhooksAlert Alert { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41660,16 +43518,7 @@ public record WebhookRepositoryRulesetEdited /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } - - /// - /// A set of rules to apply when specified conditions are met. - /// - [JsonPropertyName("repository_ruleset")] - public required RepositoryRuleset RepositoryRuleset { get; init; } - - [JsonPropertyName("changes")] - public object? Changes { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -41679,56 +43528,16 @@ public record WebhookRepositoryRulesetEdited } -public record WebhookRepositoryTransferred +public partial record WebhookRepositoryVulnerabilityAlertDismiss { [JsonPropertyName("action")] - public required WebhookDiscussionTransferredAction Action { get; init; } - - [JsonPropertyName("changes")] - public required object Changes { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public required WebhookRepositoryVulnerabilityAlertDismissAction Action { get; init; } /// - /// A GitHub user. + /// The security alert of the vulnerable dependency. /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookRepositoryUnarchived -{ - [JsonPropertyName("action")] - public required WebhookRepositoryUnarchivedAction Action { get; init; } + [JsonPropertyName("alert")] + public required object Alert { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41768,10 +43577,10 @@ public record WebhookRepositoryUnarchived } -public record WebhookRepositoryVulnerabilityAlertCreate +public partial record WebhookRepositoryVulnerabilityAlertReopen { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertCreateAction Action { get; init; } + public required WebhookRepositoryVulnerabilityAlertReopenAction Action { get; init; } /// /// The security alert of the vulnerable dependency. @@ -41817,10 +43626,10 @@ public record WebhookRepositoryVulnerabilityAlertCreate } -public record WebhookRepositoryVulnerabilityAlertDismiss +public partial record WebhookRepositoryVulnerabilityAlertResolve { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertDismissAction Action { get; init; } + public required WebhookRepositoryVulnerabilityAlertResolveAction Action { get; init; } /// /// The security alert of the vulnerable dependency. @@ -41866,16 +43675,19 @@ public record WebhookRepositoryVulnerabilityAlertDismiss } -public record WebhookRepositoryVulnerabilityAlertReopen +public partial record WebhookSecretScanningAlertAssigned { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertReopenAction Action { get; init; } + public required WebhookIssuesAssignedAction Action { get; init; } + + [JsonPropertyName("alert")] + public required SecretScanningAlertWebhook Alert { get; init; } /// - /// The security alert of the vulnerable dependency. + /// A GitHub user. /// - [JsonPropertyName("alert")] - public required WebhooksAlert Alert { get; init; } + [JsonPropertyName("assignee")] + public SimpleUser? Assignee { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41911,20 +43723,17 @@ public record WebhookRepositoryVulnerabilityAlertReopen /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookRepositoryVulnerabilityAlertResolve +public partial record WebhookSecretScanningAlertCreated { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertResolveAction Action { get; init; } + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } - /// - /// The security alert of the vulnerable dependency. - /// [JsonPropertyName("alert")] - public required object Alert { get; init; } + public required SecretScanningAlertWebhook Alert { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41960,32 +43769,18 @@ public record WebhookRepositoryVulnerabilityAlertResolve /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookSecretScanningAlertAssigned +public partial record WebhookSecretScanningAlertLocationCreated { [JsonPropertyName("action")] - public required WebhookIssuesAssignedAction Action { get; init; } + public WebhookBranchProtectionRuleCreatedAction? Action { get; init; } [JsonPropertyName("alert")] public required SecretScanningAlertWebhook Alert { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("assignee")] - public SimpleUser? Assignee { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured /// for and sent to a GitHub App. For more information, @@ -41994,6 +43789,9 @@ public record WebhookSecretScanningAlertAssigned [JsonPropertyName("installation")] public SimpleInstallation? Installation { get; init; } + [JsonPropertyName("location")] + public required SecretScanningLocation Location { get; init; } + /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an /// organization, or when the event occurs from activity in a repository owned by an organization. @@ -42012,14 +43810,24 @@ public record WebhookSecretScanningAlertAssigned /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookSecretScanningAlertLocationCreatedFormEncoded +{ + /// + /// A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object. + /// + [JsonPropertyName("payload")] + public required string Payload { get; init; } } -public record WebhookSecretScanningAlertCreated +public partial record WebhookSecretScanningAlertMetadataCreated { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required WebhookSecretScanningAlertMetadataCreatedAction Action { get; init; } [JsonPropertyName("alert")] public required SecretScanningAlertWebhook Alert { get; init; } @@ -42062,14 +43870,22 @@ public record WebhookSecretScanningAlertCreated } -public record WebhookSecretScanningAlertLocationCreated +public partial record WebhookSecretScanningAlertMetadataRemoved { [JsonPropertyName("action")] - public WebhookBranchProtectionRuleCreatedAction? Action { get; init; } + public required WebhookSecretScanningAlertMetadataRemovedAction Action { get; init; } [JsonPropertyName("alert")] public required SecretScanningAlertWebhook Alert { get; init; } + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured /// for and sent to a GitHub App. For more information, @@ -42078,9 +43894,6 @@ public record WebhookSecretScanningAlertLocationCreated [JsonPropertyName("installation")] public SimpleInstallation? Installation { get; init; } - [JsonPropertyName("location")] - public required SecretScanningLocation Location { get; init; } - /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an /// organization, or when the event occurs from activity in a repository owned by an organization. @@ -42099,21 +43912,11 @@ public record WebhookSecretScanningAlertLocationCreated /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookSecretScanningAlertLocationCreatedFormEncoded -{ - /// - /// A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object. - /// - [JsonPropertyName("payload")] - public required string Payload { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookSecretScanningAlertPubliclyLeaked +public partial record WebhookSecretScanningAlertPubliclyLeaked { [JsonPropertyName("action")] public required WebhookSecretScanningAlertPubliclyLeakedAction Action { get; init; } @@ -42159,7 +43962,7 @@ public record WebhookSecretScanningAlertPubliclyLeaked } -public record WebhookSecretScanningAlertReopened +public partial record WebhookSecretScanningAlertReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -42205,7 +44008,7 @@ public record WebhookSecretScanningAlertReopened } -public record WebhookSecretScanningAlertResolved +public partial record WebhookSecretScanningAlertResolved { [JsonPropertyName("action")] public required WebhookPullRequestReviewThreadResolvedAction Action { get; init; } @@ -42251,7 +44054,7 @@ public record WebhookSecretScanningAlertResolved } -public record WebhookSecretScanningAlertUnassigned +public partial record WebhookSecretScanningAlertUnassigned { [JsonPropertyName("action")] public required WebhookIssuesUnassignedAction Action { get; init; } @@ -42303,7 +44106,7 @@ public record WebhookSecretScanningAlertUnassigned } -public record WebhookSecretScanningAlertValidated +public partial record WebhookSecretScanningAlertValidated { [JsonPropertyName("action")] public required WebhookSecretScanningAlertValidatedAction Action { get; init; } @@ -42349,7 +44152,7 @@ public record WebhookSecretScanningAlertValidated } -public record WebhookSecretScanningScanCompleted +public partial record WebhookSecretScanningScanCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -42434,7 +44237,7 @@ public record WebhookSecretScanningScanCompleted } -public record WebhookSecurityAdvisoryPublished +public partial record WebhookSecurityAdvisoryPublished { [JsonPropertyName("action")] public required WebhookPackagePublishedAction Action { get; init; } @@ -42483,7 +44286,7 @@ public record WebhookSecurityAdvisoryPublished } -public record WebhookSecurityAdvisoryUpdated +public partial record WebhookSecurityAdvisoryUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -42532,7 +44335,7 @@ public record WebhookSecurityAdvisoryUpdated } -public record WebhookSecurityAdvisoryWithdrawn +public partial record WebhookSecurityAdvisoryWithdrawn { [JsonPropertyName("action")] public required WebhookSecurityAdvisoryWithdrawnAction Action { get; init; } @@ -42581,7 +44384,7 @@ public record WebhookSecurityAdvisoryWithdrawn } -public record WebhookSecurityAndAnalysis +public partial record WebhookSecurityAndAnalysis { [JsonPropertyName("changes")] public required object Changes { get; init; } @@ -42623,7 +44426,7 @@ public record WebhookSecurityAndAnalysis } -public record WebhookSponsorshipCancelled +public partial record WebhookSponsorshipCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseCancelledAction Action { get; init; } @@ -42669,7 +44472,7 @@ public record WebhookSponsorshipCancelled } -public record WebhookSponsorshipCreated +public partial record WebhookSponsorshipCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -42715,7 +44518,7 @@ public record WebhookSponsorshipCreated } -public record WebhookSponsorshipEdited +public partial record WebhookSponsorshipEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -42764,7 +44567,7 @@ public record WebhookSponsorshipEdited } -public record WebhookSponsorshipPendingCancellation +public partial record WebhookSponsorshipPendingCancellation { [JsonPropertyName("action")] public required WebhookSponsorshipPendingCancellationAction Action { get; init; } @@ -42816,7 +44619,7 @@ public record WebhookSponsorshipPendingCancellation } -public record WebhookSponsorshipPendingTierChange +public partial record WebhookSponsorshipPendingTierChange { [JsonPropertyName("action")] public required WebhookSponsorshipPendingTierChangeAction Action { get; init; } @@ -42871,7 +44674,7 @@ public record WebhookSponsorshipPendingTierChange } -public record WebhookSponsorshipTierChanged +public partial record WebhookSponsorshipTierChanged { [JsonPropertyName("action")] public required WebhookSponsorshipTierChangedAction Action { get; init; } @@ -42920,7 +44723,7 @@ public record WebhookSponsorshipTierChanged } -public record WebhookStarCreated +public partial record WebhookStarCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -42969,7 +44772,7 @@ public record WebhookStarCreated } -public record WebhookStarDeleted +public partial record WebhookStarDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -43018,7 +44821,7 @@ public record WebhookStarDeleted } -public record WebhookStatus +public partial record WebhookStatus { [JsonPropertyName("avatar_url")] public Uri? AvatarUrl { get; init; } @@ -43112,7 +44915,7 @@ public record WebhookStatus } -public record WebhookSubIssuesParentIssueAdded +public partial record WebhookSubIssuesParentIssueAdded { [JsonPropertyName("action")] public required WebhookSubIssuesParentIssueAddedAction Action { get; init; } @@ -43177,7 +44980,7 @@ public record WebhookSubIssuesParentIssueAdded } -public record WebhookSubIssuesParentIssueRemoved +public partial record WebhookSubIssuesParentIssueRemoved { [JsonPropertyName("action")] public required WebhookSubIssuesParentIssueRemovedAction Action { get; init; } @@ -43242,7 +45045,7 @@ public record WebhookSubIssuesParentIssueRemoved } -public record WebhookSubIssuesSubIssueAdded +public partial record WebhookSubIssuesSubIssueAdded { [JsonPropertyName("action")] public required WebhookSubIssuesSubIssueAddedAction Action { get; init; } @@ -43307,7 +45110,7 @@ public record WebhookSubIssuesSubIssueAdded } -public record WebhookSubIssuesSubIssueRemoved +public partial record WebhookSubIssuesSubIssueRemoved { [JsonPropertyName("action")] public required WebhookSubIssuesSubIssueRemovedAction Action { get; init; } @@ -43372,7 +45175,7 @@ public record WebhookSubIssuesSubIssueRemoved } -public record WebhookTeamAdd +public partial record WebhookTeamAdd { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43418,7 +45221,7 @@ public record WebhookTeamAdd } -public record WebhookTeamAddedToRepository +public partial record WebhookTeamAddedToRepository { [JsonPropertyName("action")] public required WebhookTeamAddedToRepositoryAction Action { get; init; } @@ -43466,7 +45269,7 @@ public record WebhookTeamAddedToRepository } -public record WebhookTeamCreated +public partial record WebhookTeamCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -43514,7 +45317,7 @@ public record WebhookTeamCreated } -public record WebhookTeamDeleted +public partial record WebhookTeamDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -43562,7 +45365,7 @@ public record WebhookTeamDeleted } -public record WebhookTeamEdited +public partial record WebhookTeamEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -43616,7 +45419,7 @@ public record WebhookTeamEdited } -public record WebhookTeamRemovedFromRepository +public partial record WebhookTeamRemovedFromRepository { [JsonPropertyName("action")] public required WebhookTeamRemovedFromRepositoryAction Action { get; init; } @@ -43664,7 +45467,7 @@ public record WebhookTeamRemovedFromRepository } -public record WebhookWatchStarted +public partial record WebhookWatchStarted { [JsonPropertyName("action")] public required WebhookWatchStartedAction Action { get; init; } @@ -43707,7 +45510,7 @@ public record WebhookWatchStarted } -public record WebhookWorkflowDispatch +public partial record WebhookWorkflowDispatch { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43756,7 +45559,7 @@ public record WebhookWorkflowDispatch } -public record WebhookWorkflowJobCompleted +public partial record WebhookWorkflowJobCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -43808,7 +45611,7 @@ public record WebhookWorkflowJobCompleted } -public record WebhookWorkflowJobInProgress +public partial record WebhookWorkflowJobInProgress { [JsonPropertyName("action")] public required WebhookWorkflowJobInProgressAction Action { get; init; } @@ -43860,7 +45663,7 @@ public record WebhookWorkflowJobInProgress } -public record WebhookWorkflowJobQueued +public partial record WebhookWorkflowJobQueued { [JsonPropertyName("action")] public required WebhookWorkflowJobQueuedAction Action { get; init; } @@ -43912,7 +45715,7 @@ public record WebhookWorkflowJobQueued } -public record WebhookWorkflowJobWaiting +public partial record WebhookWorkflowJobWaiting { [JsonPropertyName("action")] public required WebhookWorkflowJobWaitingAction Action { get; init; } @@ -43964,7 +45767,7 @@ public record WebhookWorkflowJobWaiting } -public record WebhookWorkflowRunCompleted +public partial record WebhookWorkflowRunCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -44013,7 +45816,7 @@ public record WebhookWorkflowRunCompleted } -public record WebhookWorkflowRunInProgress +public partial record WebhookWorkflowRunInProgress { [JsonPropertyName("action")] public required WebhookWorkflowJobInProgressAction Action { get; init; } @@ -44062,7 +45865,7 @@ public record WebhookWorkflowRunInProgress } -public record WebhookWorkflowRunRequested +public partial record WebhookWorkflowRunRequested { [JsonPropertyName("action")] public required WebhookCheckSuiteRequestedAction Action { get; init; } @@ -44111,7 +45914,7 @@ public record WebhookWorkflowRunRequested } -public record CreateEvent +public partial record CreateEvent { [JsonPropertyName("ref")] public required string Ref { get; init; } @@ -44133,7 +45936,7 @@ public record CreateEvent } -public record DeleteEvent +public partial record DeleteEvent { [JsonPropertyName("ref")] public required string Ref { get; init; } @@ -44149,7 +45952,7 @@ public record DeleteEvent } -public record DiscussionEvent +public partial record DiscussionEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44162,7 +45965,7 @@ public record DiscussionEvent } -public record IssuesEvent +public partial record IssuesEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44193,7 +45996,7 @@ public record IssuesEvent } -public record IssueCommentEvent +public partial record IssueCommentEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44212,7 +46015,7 @@ public record IssueCommentEvent } -public record ForkEvent +public partial record ForkEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44222,14 +46025,14 @@ public record ForkEvent } -public record GollumEvent +public partial record GollumEvent { [JsonPropertyName("pages")] public required IReadOnlyList Pages { get; init; } } -public record MemberEvent +public partial record MemberEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44242,11 +46045,11 @@ public record MemberEvent } -public record PublicEvent +public partial record PublicEvent { } -public record PushEvent +public partial record PushEvent { [JsonPropertyName("repository_id")] public required int RepositoryId { get; init; } @@ -44265,7 +46068,7 @@ public record PushEvent } -public record PullRequestEvent +public partial record PullRequestEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44296,7 +46099,7 @@ public record PullRequestEvent } -public record PullRequestReviewCommentEvent +public partial record PullRequestReviewCommentEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44309,7 +46112,7 @@ public record PullRequestReviewCommentEvent } -public record PullRequestReviewEvent +public partial record PullRequestReviewEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44322,7 +46125,7 @@ public record PullRequestReviewEvent } -public record CommitCommentEvent +public partial record CommitCommentEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44332,7 +46135,7 @@ public record CommitCommentEvent } -public record ReleaseEvent +public partial record ReleaseEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -44342,7 +46145,7 @@ public record ReleaseEvent } -public record WatchEvent +public partial record WatchEvent { [JsonPropertyName("action")] public required string Action { get; init; } diff --git a/examples/OpenApiCodeGenerator.Examples/output/github-api.cs b/examples/OpenApiCodeGenerator.Examples/output/github-api.cs index c39d1c6..5c833fb 100644 --- a/examples/OpenApiCodeGenerator.Examples/output/github-api.cs +++ b/examples/OpenApiCodeGenerator.Examples/output/github-api.cs @@ -40,7 +40,7 @@ public override void Write(Utf8JsonWriter writer, TAlias value, JsonSerializerOp /// /// The type of advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GlobalAdvisoryType { [JsonStringEnumMemberName("reviewed")] @@ -54,7 +54,7 @@ public enum GlobalAdvisoryType /// /// Whether it's a group assignment or individual assignment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClassroomAssignmentType { [JsonStringEnumMemberName("individual")] @@ -66,7 +66,7 @@ public enum ClassroomAssignmentType /// /// The type of label. Read-only labels are applied automatically when the runner is configured. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RunnerLabelType { [JsonStringEnumMemberName("read-only")] @@ -78,7 +78,7 @@ public enum RunnerLabelType /// /// The ownership type of the team /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NullableTeamSimpleType { [JsonStringEnumMemberName("enterprise")] @@ -87,49 +87,49 @@ public enum NullableTeamSimpleType Organization } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCreationType { [JsonStringEnumMemberName("creation")] Creation } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleUpdateType { [JsonStringEnumMemberName("update")] Update } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleDeletionType { [JsonStringEnumMemberName("deletion")] Deletion } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredLinearHistoryType { [JsonStringEnumMemberName("required_linear_history")] RequiredLinearHistory } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleMergeQueueType { [JsonStringEnumMemberName("merge_queue")] MergeQueue } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredDeploymentsType { [JsonStringEnumMemberName("required_deployments")] RequiredDeployments } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredSignaturesType { [JsonStringEnumMemberName("required_signatures")] @@ -139,7 +139,7 @@ public enum RepositoryRuleRequiredSignaturesType /// /// The type of the actor /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleParamsActorType { [JsonStringEnumMemberName("User")] @@ -155,112 +155,119 @@ public enum RepositoryRuleParamsActorType /// /// The type of the reviewer /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleParamsReviewerType { [JsonStringEnumMemberName("Team")] Team } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulePullRequestType { [JsonStringEnumMemberName("pull_request")] PullRequest } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleRequiredStatusChecksType { [JsonStringEnumMemberName("required_status_checks")] RequiredStatusChecks } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleNonFastForwardType { [JsonStringEnumMemberName("non_fast_forward")] NonFastForward } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCommitMessagePatternType { [JsonStringEnumMemberName("commit_message_pattern")] CommitMessagePattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCommitAuthorEmailPatternType { [JsonStringEnumMemberName("commit_author_email_pattern")] CommitAuthorEmailPattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCommitterEmailPatternType { [JsonStringEnumMemberName("committer_email_pattern")] CommitterEmailPattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleBranchNamePatternType { [JsonStringEnumMemberName("branch_name_pattern")] BranchNamePattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleTagNamePatternType { [JsonStringEnumMemberName("tag_name_pattern")] TagNamePattern } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleWorkflowsType { [JsonStringEnumMemberName("workflows")] Workflows } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCodeScanningType { [JsonStringEnumMemberName("code_scanning")] CodeScanning } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleCopilotCodeReviewType { [JsonStringEnumMemberName("copilot_code_review")] CopilotCodeReview } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RepositoryRuleLicenseComplianceScanningType +{ + [JsonStringEnumMemberName("license_compliance_scanning")] + LicenseComplianceScanning +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleFilePathRestrictionType { [JsonStringEnumMemberName("file_path_restriction")] FilePathRestriction } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleMaxFilePathLengthType { [JsonStringEnumMemberName("max_file_path_length")] MaxFilePathLength } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleFileExtensionRestrictionType { [JsonStringEnumMemberName("file_extension_restriction")] FileExtensionRestriction } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleMaxFileSizeType { [JsonStringEnumMemberName("max_file_size")] @@ -270,7 +277,7 @@ public enum RepositoryRuleMaxFileSizeType /// /// The type of credit the user is receiving. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryCreditType { [JsonStringEnumMemberName("analyst")] @@ -295,21 +302,21 @@ public enum RepositoryAdvisoryCreditType Other } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentFileType { [JsonStringEnumMemberName("file")] File } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentSymlinkType { [JsonStringEnumMemberName("symlink")] Symlink } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentSubmoduleType { [JsonStringEnumMemberName("submodule")] @@ -319,7 +326,7 @@ public enum ContentSubmoduleType /// /// Whether this rule targets a branch or tag. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeploymentBranchPolicyType { [JsonStringEnumMemberName("branch")] @@ -331,7 +338,7 @@ public enum DeploymentBranchPolicyType /// /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningLocationType { [JsonStringEnumMemberName("commit")] @@ -362,7 +369,7 @@ public enum SecretScanningLocationType PullRequestReviewComment } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksUserType { [JsonStringEnumMemberName("Bot")] @@ -373,7 +380,7 @@ public enum WebhooksUserType Organization } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksUserMannequinType { [JsonStringEnumMemberName("Bot")] @@ -389,7 +396,7 @@ public enum WebhooksUserMannequinType /// /// What type of scan was completed /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningScanCompletedType { [JsonStringEnumMemberName("backfill")] @@ -403,7 +410,7 @@ public enum WebhookSecretScanningScanCompletedType /// /// The severity of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GlobalAdvisorySeverity { [JsonStringEnumMemberName("critical")] @@ -421,7 +428,7 @@ public enum GlobalAdvisorySeverity /// /// The severity of the vulnerability. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertSecurityVulnerabilitySeverity { [JsonStringEnumMemberName("low")] @@ -437,7 +444,7 @@ public enum DependabotAlertSecurityVulnerabilitySeverity /// /// The severity of the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertRuleSummarySeverity { [JsonStringEnumMemberName("none")] @@ -453,7 +460,7 @@ public enum CodeScanningAlertRuleSummarySeverity /// /// The severity of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisorySeverity { [JsonStringEnumMemberName("critical")] @@ -466,10 +473,26 @@ public enum RepositoryAdvisorySeverity Low } +/// +/// The severity of the rule used to detect the finding. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum CodeQualityFindingRuleSeverity +{ + [JsonStringEnumMemberName("error")] + Error, + [JsonStringEnumMemberName("warning")] + Warning, + [JsonStringEnumMemberName("note")] + Note, + [JsonStringEnumMemberName("none")] + None +} + /// /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Actions { [JsonStringEnumMemberName("read")] @@ -481,7 +504,7 @@ public enum Actions /// /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Administration { [JsonStringEnumMemberName("read")] @@ -493,7 +516,7 @@ public enum Administration /// /// The level of permission to grant the access token to create and retrieve build artifact metadata records. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ArtifactMetadata { [JsonStringEnumMemberName("read")] @@ -505,7 +528,7 @@ public enum ArtifactMetadata /// /// The level of permission to create and retrieve the access token for repository attestations. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Attestations { [JsonStringEnumMemberName("read")] @@ -517,7 +540,7 @@ public enum Attestations /// /// The level of permission to grant the access token for checks on code. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Checks { [JsonStringEnumMemberName("read")] @@ -529,7 +552,7 @@ public enum Checks /// /// The level of permission to grant the access token to view and manage code quality data. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeQuality { [JsonStringEnumMemberName("read")] @@ -541,7 +564,7 @@ public enum CodeQuality /// /// The level of permission to grant the access token to create, edit, delete, and list Codespaces. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Codespaces { [JsonStringEnumMemberName("read")] @@ -553,7 +576,7 @@ public enum Codespaces /// /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Contents { [JsonStringEnumMemberName("read")] @@ -565,7 +588,7 @@ public enum Contents /// /// The level of permission to grant the access token to manage Dependabot secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotSecrets { [JsonStringEnumMemberName("read")] @@ -577,7 +600,7 @@ public enum DependabotSecrets /// /// The level of permission to grant the access token for deployments and deployment statuses. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Deployments { [JsonStringEnumMemberName("read")] @@ -589,7 +612,7 @@ public enum Deployments /// /// The level of permission to grant the access token for discussions and related comments and labels. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Discussions { [JsonStringEnumMemberName("read")] @@ -601,7 +624,7 @@ public enum Discussions /// /// The level of permission to grant the access token for managing repository environments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Environments { [JsonStringEnumMemberName("read")] @@ -613,7 +636,7 @@ public enum Environments /// /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Issues { [JsonStringEnumMemberName("read")] @@ -625,7 +648,7 @@ public enum Issues /// /// The level of permission to grant the access token to manage the merge queues for a repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeQueues { [JsonStringEnumMemberName("read")] @@ -637,7 +660,7 @@ public enum MergeQueues /// /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Metadata2 { [JsonStringEnumMemberName("read")] @@ -649,7 +672,7 @@ public enum Metadata2 /// /// The level of permission to grant the access token for packages published to GitHub Packages. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Packages { [JsonStringEnumMemberName("read")] @@ -661,7 +684,7 @@ public enum Packages /// /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Pages { [JsonStringEnumMemberName("read")] @@ -673,7 +696,7 @@ public enum Pages /// /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PullRequests { [JsonStringEnumMemberName("read")] @@ -685,7 +708,7 @@ public enum PullRequests /// /// The level of permission to grant the access token to view and edit custom properties for a repository, when allowed by the property. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryCustomProperties { [JsonStringEnumMemberName("read")] @@ -697,7 +720,7 @@ public enum RepositoryCustomProperties /// /// The level of permission to grant the access token to manage the post-receive hooks for a repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryHooks { [JsonStringEnumMemberName("read")] @@ -709,7 +732,7 @@ public enum RepositoryHooks /// /// The level of permission to grant the access token to manage repository projects, columns, and cards. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryProjects { [JsonStringEnumMemberName("read")] @@ -723,7 +746,7 @@ public enum RepositoryProjects /// /// The level of permission to grant the access token to view and manage secret scanning alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlerts { [JsonStringEnumMemberName("read")] @@ -735,7 +758,7 @@ public enum SecretScanningAlerts /// /// The level of permission to grant the access token to manage repository secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Secrets { [JsonStringEnumMemberName("read")] @@ -747,7 +770,7 @@ public enum Secrets /// /// The level of permission to grant the access token to view and manage security events like code scanning alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityEvents { [JsonStringEnumMemberName("read")] @@ -759,7 +782,7 @@ public enum SecurityEvents /// /// The level of permission to grant the access token to manage just a single file. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SingleFile { [JsonStringEnumMemberName("read")] @@ -771,7 +794,7 @@ public enum SingleFile /// /// The level of permission to grant the access token for commit statuses. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Statuses { [JsonStringEnumMemberName("read")] @@ -783,7 +806,7 @@ public enum Statuses /// /// The level of permission to grant the access token to manage Dependabot alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum VulnerabilityAlerts { [JsonStringEnumMemberName("read")] @@ -795,7 +818,7 @@ public enum VulnerabilityAlerts /// /// The level of permission to grant the access token to update GitHub Actions workflow files. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Workflows { [JsonStringEnumMemberName("write")] @@ -805,7 +828,7 @@ public enum Workflows /// /// The level of permission to grant the access token to view and edit custom properties for an organization, when allowed by the property. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomPropertiesForOrganizations { [JsonStringEnumMemberName("read")] @@ -817,7 +840,7 @@ public enum CustomPropertiesForOrganizations /// /// The level of permission to grant the access token for organization teams and members. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Members { [JsonStringEnumMemberName("read")] @@ -829,7 +852,7 @@ public enum Members /// /// The level of permission to grant the access token to manage access to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationAdministration { [JsonStringEnumMemberName("read")] @@ -841,7 +864,7 @@ public enum OrganizationAdministration /// /// The level of permission to grant the access token for custom repository roles management. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCustomRoles { [JsonStringEnumMemberName("read")] @@ -853,7 +876,7 @@ public enum OrganizationCustomRoles /// /// The level of permission to grant the access token for custom organization roles management. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCustomOrgRoles { [JsonStringEnumMemberName("read")] @@ -865,7 +888,7 @@ public enum OrganizationCustomOrgRoles /// /// The level of permission to grant the access token for repository custom properties management at the organization level. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCustomProperties { [JsonStringEnumMemberName("read")] @@ -879,7 +902,7 @@ public enum OrganizationCustomProperties /// /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCopilotSeatManagement { [JsonStringEnumMemberName("read")] @@ -891,7 +914,7 @@ public enum OrganizationCopilotSeatManagement /// /// The level of permission to grant the access token to view and manage Copilot cloud agent settings for an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationCopilotAgentSettings { [JsonStringEnumMemberName("read")] @@ -903,7 +926,7 @@ public enum OrganizationCopilotAgentSettings /// /// The level of permission to grant the access token to view and manage announcement banners for an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationAnnouncementBanners { [JsonStringEnumMemberName("read")] @@ -915,7 +938,7 @@ public enum OrganizationAnnouncementBanners /// /// The level of permission to grant the access token to view events triggered by an activity in an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationEvents { [JsonStringEnumMemberName("read")] @@ -925,7 +948,7 @@ public enum OrganizationEvents /// /// The level of permission to grant the access token to manage the post-receive hooks for an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationHooks { [JsonStringEnumMemberName("read")] @@ -937,7 +960,7 @@ public enum OrganizationHooks /// /// The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPersonalAccessTokens { [JsonStringEnumMemberName("read")] @@ -949,7 +972,7 @@ public enum OrganizationPersonalAccessTokens /// /// The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPersonalAccessTokenRequests { [JsonStringEnumMemberName("read")] @@ -961,7 +984,7 @@ public enum OrganizationPersonalAccessTokenRequests /// /// The level of permission to grant the access token for viewing an organization's plan. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPlan { [JsonStringEnumMemberName("read")] @@ -971,7 +994,7 @@ public enum OrganizationPlan /// /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationProjects { [JsonStringEnumMemberName("read")] @@ -985,7 +1008,7 @@ public enum OrganizationProjects /// /// The level of permission to grant the access token for organization packages published to GitHub Packages. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPackages { [JsonStringEnumMemberName("read")] @@ -997,7 +1020,7 @@ public enum OrganizationPackages /// /// The level of permission to grant the access token to manage organization secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecrets { [JsonStringEnumMemberName("read")] @@ -1009,7 +1032,7 @@ public enum OrganizationSecrets /// /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSelfHostedRunners { [JsonStringEnumMemberName("read")] @@ -1021,7 +1044,7 @@ public enum OrganizationSelfHostedRunners /// /// The level of permission to grant the access token to view and manage users blocked by the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationUserBlocking { [JsonStringEnumMemberName("read")] @@ -1033,7 +1056,7 @@ public enum OrganizationUserBlocking /// /// The level of permission to grant the access token to manage the email addresses belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EmailAddresses { [JsonStringEnumMemberName("read")] @@ -1045,7 +1068,7 @@ public enum EmailAddresses /// /// The level of permission to grant the access token to manage the followers belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Followers { [JsonStringEnumMemberName("read")] @@ -1057,7 +1080,7 @@ public enum Followers /// /// The level of permission to grant the access token to manage git SSH keys. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GitSshKeys { [JsonStringEnumMemberName("read")] @@ -1069,7 +1092,7 @@ public enum GitSshKeys /// /// The level of permission to grant the access token to view and manage GPG keys belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GpgKeys { [JsonStringEnumMemberName("read")] @@ -1081,7 +1104,7 @@ public enum GpgKeys /// /// The level of permission to grant the access token to view and manage interaction limits on a repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InteractionLimits { [JsonStringEnumMemberName("read")] @@ -1093,7 +1116,7 @@ public enum InteractionLimits /// /// The level of permission to grant the access token to manage the profile settings belonging to a user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Profile { [JsonStringEnumMemberName("write")] @@ -1103,7 +1126,7 @@ public enum Profile /// /// The level of permission to grant the access token to list and manage repositories a user is starring. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Starring { [JsonStringEnumMemberName("read")] @@ -1115,7 +1138,7 @@ public enum Starring /// /// The level of permission to grant the access token for organization custom properties management at the enterprise level. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnterpriseCustomPropertiesForOrganizations { [JsonStringEnumMemberName("read")] @@ -1129,7 +1152,7 @@ public enum EnterpriseCustomPropertiesForOrganizations /// /// Describe whether all repositories have been selected or there's a selection involved /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InstallationRepositorySelection { [JsonStringEnumMemberName("all")] @@ -1141,7 +1164,7 @@ public enum InstallationRepositorySelection /// /// Type of repository selection requested. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationProgrammaticAccessGrantRequestRepositorySelection { [JsonStringEnumMemberName("none")] @@ -1155,7 +1178,7 @@ public enum OrganizationProgrammaticAccessGrantRequestRepositorySelection /// /// The policy controlling who can create pull requests: all or collaborators_only. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PullRequestCreationPolicy { [JsonStringEnumMemberName("all")] @@ -1170,7 +1193,7 @@ public enum PullRequestCreationPolicy /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SquashMergeCommitTitle { [JsonStringEnumMemberName("PR_TITLE")] @@ -1186,7 +1209,7 @@ public enum SquashMergeCommitTitle /// - `COMMIT_MESSAGES` - default to the branch's commit messages. /// - `BLANK` - default to a blank commit message. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SquashMergeCommitMessage { [JsonStringEnumMemberName("PR_BODY")] @@ -1203,7 +1226,7 @@ public enum SquashMergeCommitMessage /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeCommitTitle { [JsonStringEnumMemberName("PR_TITLE")] @@ -1219,7 +1242,7 @@ public enum MergeCommitTitle /// - `PR_BODY` - default to the pull request's body. /// - `BLANK` - default to a blank commit message. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeCommitMessage { [JsonStringEnumMemberName("PR_BODY")] @@ -1233,7 +1256,7 @@ public enum MergeCommitMessage /// /// Whether the inclusion was defined at the organization or enterprise level /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InclusionSource { [JsonStringEnumMemberName("organization")] @@ -1245,7 +1268,7 @@ public enum InclusionSource /// /// The type of the code security configuration. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TargetType { [JsonStringEnumMemberName("global")] @@ -1259,7 +1282,7 @@ public enum TargetType /// /// The enablement status of GitHub Advanced Security /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AdvancedSecurity { [JsonStringEnumMemberName("enabled")] @@ -1275,7 +1298,7 @@ public enum AdvancedSecurity /// /// The enablement status of Dependency Graph /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependencyGraph { [JsonStringEnumMemberName("enabled")] @@ -1289,7 +1312,7 @@ public enum DependencyGraph /// /// The enablement status of Automatic dependency submission /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependencyGraphAutosubmitAction { [JsonStringEnumMemberName("enabled")] @@ -1303,7 +1326,7 @@ public enum DependencyGraphAutosubmitAction /// /// The enablement status of Dependabot alerts /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlerts { [JsonStringEnumMemberName("enabled")] @@ -1317,7 +1340,7 @@ public enum DependabotAlerts /// /// The enablement status of Dependabot security updates /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotSecurityUpdates { [JsonStringEnumMemberName("enabled")] @@ -1331,7 +1354,7 @@ public enum DependabotSecurityUpdates /// /// The enablement status of Dependabot delegated alert dismissal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotDelegatedAlertDismissal { [JsonStringEnumMemberName("enabled")] @@ -1345,7 +1368,7 @@ public enum DependabotDelegatedAlertDismissal /// /// The enablement status of code scanning default setup /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningDefaultSetup2 { [JsonStringEnumMemberName("enabled")] @@ -1359,7 +1382,7 @@ public enum CodeScanningDefaultSetup2 /// /// The enablement status of code scanning delegated alert dismissal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningDelegatedAlertDismissal { [JsonStringEnumMemberName("enabled")] @@ -1373,7 +1396,7 @@ public enum CodeScanningDelegatedAlertDismissal /// /// The enablement status of secret scanning /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanning { [JsonStringEnumMemberName("enabled")] @@ -1387,7 +1410,7 @@ public enum SecretScanning /// /// The enablement status of secret scanning push protection /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningPushProtection { [JsonStringEnumMemberName("enabled")] @@ -1401,7 +1424,7 @@ public enum SecretScanningPushProtection /// /// The enablement status of secret scanning delegated bypass /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningDelegatedBypass { [JsonStringEnumMemberName("enabled")] @@ -1415,7 +1438,7 @@ public enum SecretScanningDelegatedBypass /// /// The enablement status of secret scanning validity checks /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningValidityChecks { [JsonStringEnumMemberName("enabled")] @@ -1429,7 +1452,7 @@ public enum SecretScanningValidityChecks /// /// The enablement status of secret scanning non-provider patterns /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningNonProviderPatterns { [JsonStringEnumMemberName("enabled")] @@ -1443,7 +1466,7 @@ public enum SecretScanningNonProviderPatterns /// /// The enablement status of Copilot secret scanning /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningGenericSecrets { [JsonStringEnumMemberName("enabled")] @@ -1457,7 +1480,7 @@ public enum SecretScanningGenericSecrets /// /// The enablement status of secret scanning delegated alert dismissal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningDelegatedAlertDismissal { [JsonStringEnumMemberName("enabled")] @@ -1471,7 +1494,7 @@ public enum SecretScanningDelegatedAlertDismissal /// /// The enablement status of secret scanning extended metadata /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningExtendedMetadata { [JsonStringEnumMemberName("enabled")] @@ -1485,7 +1508,7 @@ public enum SecretScanningExtendedMetadata /// /// The enablement status of private vulnerability reporting /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PrivateVulnerabilityReporting { [JsonStringEnumMemberName("enabled")] @@ -1499,7 +1522,7 @@ public enum PrivateVulnerabilityReporting /// /// The enforcement status for a security configuration /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeSecurityConfigurationEnforcement { [JsonStringEnumMemberName("enforced")] @@ -1511,7 +1534,7 @@ public enum CodeSecurityConfigurationEnforcement /// /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulesetEnforcement { [JsonStringEnumMemberName("disabled")] @@ -1525,7 +1548,7 @@ public enum RepositoryRulesetEnforcement /// /// Whether to use labeled runners or standard GitHub runners. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningDefaultSetupOptionsRunnerType { [JsonStringEnumMemberName("standard")] @@ -1539,7 +1562,7 @@ public enum CodeScanningDefaultSetupOptionsRunnerType /// /// Runner type to be used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeQualitySetupRunnerType { [JsonStringEnumMemberName("standard")] @@ -1551,7 +1574,7 @@ public enum CodeQualitySetupRunnerType /// /// The attachment status of the code security configuration on the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeSecurityConfigurationRepositoriesStatus { [JsonStringEnumMemberName("attached")] @@ -1575,7 +1598,7 @@ public enum CodeSecurityConfigurationRepositoriesStatus /// /// The current status of the dismissal request. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertDismissalRequestSimpleStatus { [JsonStringEnumMemberName("pending")] @@ -1591,7 +1614,7 @@ public enum DependabotAlertDismissalRequestSimpleStatus /// /// The status of the runner. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActionsHostedRunnerStatus { [JsonStringEnumMemberName("Ready")] @@ -1609,7 +1632,7 @@ public enum ActionsHostedRunnerStatus /// /// The current status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NullableProjectsV2StatusUpdateStatus { [JsonStringEnumMemberName("INACTIVE")] @@ -1627,7 +1650,7 @@ public enum NullableProjectsV2StatusUpdateStatus /// /// The phase of the lifecycle that the job is currently in. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum JobStatus { [JsonStringEnumMemberName("queued")] @@ -1644,7 +1667,7 @@ public enum JobStatus Pending } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DiffEntryStatus { [JsonStringEnumMemberName("added")] @@ -1666,7 +1689,7 @@ public enum DiffEntryStatus /// /// The status of an autofix. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAutofixStatus2 { [JsonStringEnumMemberName("pending")] @@ -1679,7 +1702,7 @@ public enum CodeScanningAutofixStatus2 Outdated } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningVariantAnalysisStatus2 { [JsonStringEnumMemberName("in_progress")] @@ -1692,7 +1715,7 @@ public enum CodeScanningVariantAnalysisStatus2 Cancelled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CommitComparisonStatus { [JsonStringEnumMemberName("diverged")] @@ -1705,7 +1728,7 @@ public enum CommitComparisonStatus Identical } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ImportStatus { [JsonStringEnumMemberName("auth")] @@ -1745,7 +1768,7 @@ public enum ImportStatus /// /// The status of the most recent build of the Page. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PageStatus { [JsonStringEnumMemberName("built")] @@ -1759,7 +1782,7 @@ public enum PageStatus /// /// The current status of the deployment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PagesDeploymentStatusStatus { [JsonStringEnumMemberName("deployment_in_progress")] @@ -1786,7 +1809,20 @@ public enum PagesDeploymentStatusStatus Succeed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum PullRequestMergeAsyncResultStatus +{ + [JsonStringEnumMemberName("pending")] + Pending, + [JsonStringEnumMemberName("merged")] + Merged, + [JsonStringEnumMemberName("enqueued")] + Enqueued, + [JsonStringEnumMemberName("failed")] + Failed +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SimpleCheckSuiteStatus { [JsonStringEnumMemberName("queued")] @@ -1804,7 +1840,7 @@ public enum SimpleCheckSuiteStatus /// /// The phase of the lifecycle that the check is currently in. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckRunWithSimpleCheckSuiteStatus { [JsonStringEnumMemberName("queued")] @@ -1817,7 +1853,7 @@ public enum CheckRunWithSimpleCheckSuiteStatus Pending } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryImportStatus { [JsonStringEnumMemberName("success")] @@ -1831,7 +1867,7 @@ public enum WebhookRepositoryImportStatus /// /// The classification of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Classification { [JsonStringEnumMemberName("general")] @@ -1843,7 +1879,7 @@ public enum Classification /// /// The state of the Dependabot alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertWithRepositoryState { [JsonStringEnumMemberName("auto_dismissed")] @@ -1861,7 +1897,7 @@ public enum DependabotAlertWithRepositoryState /// `converting` means that the discussion is being converted from an issue. /// `transferring` means that the discussion is being transferred from another repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DiscussionState { [JsonStringEnumMemberName("open")] @@ -1879,7 +1915,7 @@ public enum DiscussionState /// /// The state of the milestone. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NullableMilestoneState { [JsonStringEnumMemberName("open")] @@ -1891,7 +1927,7 @@ public enum NullableMilestoneState /// /// State of the release asset. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReleaseAssetState { [JsonStringEnumMemberName("uploaded")] @@ -1903,7 +1939,7 @@ public enum ReleaseAssetState /// /// State of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertInstanceState2 { [JsonStringEnumMemberName("open")] @@ -1917,7 +1953,7 @@ public enum CodeScanningAlertInstanceState2 /// /// State of this codespace. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodespaceState { [JsonStringEnumMemberName("Unknown")] @@ -1959,7 +1995,7 @@ public enum CodespaceState /// /// The state of the member in the organization. The `pending` state indicates the user has not yet accepted an invitation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrgMembershipState { [JsonStringEnumMemberName("active")] @@ -1971,7 +2007,7 @@ public enum OrgMembershipState /// /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecretScanningAlertState { [JsonStringEnumMemberName("open")] @@ -1980,10 +2016,22 @@ public enum OrganizationSecretScanningAlertState Resolved } +/// +/// The state of the custom pattern. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SecretScanningCustomPatternState +{ + [JsonStringEnumMemberName("published")] + Published, + [JsonStringEnumMemberName("unpublished")] + Unpublished +} + /// /// The state of the user's acceptance of the credit. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryCreditState { [JsonStringEnumMemberName("accepted")] @@ -1997,7 +2045,7 @@ public enum RepositoryAdvisoryCreditState /// /// The state of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryState { [JsonStringEnumMemberName("published")] @@ -2015,7 +2063,7 @@ public enum RepositoryAdvisoryState /// /// Whether deployment to the environment(s) was approved or rejected or pending (with comments) /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnvironmentApprovalsState { [JsonStringEnumMemberName("approved")] @@ -2029,7 +2077,7 @@ public enum EnvironmentApprovalsState /// /// Whether to approve or reject deployment to the specified environments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReviewCustomGatesStateRequiredState { [JsonStringEnumMemberName("approved")] @@ -2038,7 +2086,7 @@ public enum ReviewCustomGatesStateRequiredState Rejected } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WorkflowState { [JsonStringEnumMemberName("active")] @@ -2053,10 +2101,22 @@ public enum WorkflowState DisabledManually } +/// +/// State of the code quality finding. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum CodeQualityFindingState +{ + [JsonStringEnumMemberName("open")] + Open, + [JsonStringEnumMemberName("dismissed")] + Dismissed +} + /// /// Code quality setup has been configured or not. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeQualitySetupState { [JsonStringEnumMemberName("configured")] @@ -2068,7 +2128,7 @@ public enum CodeQualitySetupState /// /// State of a code scanning alert instance. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertInstanceListState { [JsonStringEnumMemberName("open")] @@ -2080,7 +2140,7 @@ public enum CodeScanningAlertInstanceListState /// /// The state of the status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeploymentStatusState { [JsonStringEnumMemberName("error")] @@ -2099,7 +2159,27 @@ public enum DeploymentStatusState InProgress } -[JsonConverter(typeof(JsonStringEnumConverter))] +/// +/// The suggestion's lifecycle state. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum IssueSuggestionState +{ + [JsonStringEnumMemberName("pending")] + Pending, + [JsonStringEnumMemberName("applied")] + Applied, + [JsonStringEnumMemberName("approved")] + Approved, + [JsonStringEnumMemberName("dismissed")] + Dismissed, + [JsonStringEnumMemberName("replaced")] + Replaced, + [JsonStringEnumMemberName("invalidated")] + Invalidated +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PagesHttpsCertificateState { [JsonStringEnumMemberName("new")] @@ -2131,7 +2211,7 @@ public enum PagesHttpsCertificateState /// /// The state of the advisory. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryAdvisoryUpdateState { [JsonStringEnumMemberName("published")] @@ -2142,7 +2222,7 @@ public enum RepositoryAdvisoryUpdateState Draft } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksAlertState { [JsonStringEnumMemberName("auto_dismissed")] @@ -2154,7 +2234,7 @@ public enum WebhooksAlertState /// /// The new state. Can be `pending`, `success`, `failure`, or `error`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookStatusState { [JsonStringEnumMemberName("pending")] @@ -2170,7 +2250,7 @@ public enum WebhookStatusState /// /// The reason that the alert was dismissed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependabotAlertWithRepositoryDismissedReason { [JsonStringEnumMemberName("fix_started")] @@ -2188,7 +2268,7 @@ public enum DependabotAlertWithRepositoryDismissedReason /// /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningOrganizationAlertItemsDismissedReason { [JsonStringEnumMemberName("false positive")] @@ -2196,13 +2276,15 @@ public enum CodeScanningOrganizationAlertItemsDismissedReason [JsonStringEnumMemberName("won't fix")] WontFix, [JsonStringEnumMemberName("used in tests")] - UsedInTests + UsedInTests, + [JsonStringEnumMemberName("mitigated")] + Mitigated } /// /// The default repository access level for Dependabot updates. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DefaultLevel { [JsonStringEnumMemberName("public")] @@ -2214,7 +2296,7 @@ public enum DefaultLevel /// /// Whether team members will receive notifications when the team is mentioned. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NotificationSetting { [JsonStringEnumMemberName("notifications_enabled")] @@ -2226,7 +2308,7 @@ public enum NotificationSetting /// /// How the author is associated with the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthorAssociation2 { [JsonStringEnumMemberName("COLLABORATOR")] @@ -2250,7 +2332,7 @@ public enum AuthorAssociation2 /// /// The reason for the current state /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DiscussionStateReason { [JsonStringEnumMemberName("resolved")] @@ -2266,7 +2348,7 @@ public enum DiscussionStateReason /// /// The reason for the current state /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueStateReason { [JsonStringEnumMemberName("completed")] @@ -2282,7 +2364,7 @@ public enum IssueStateReason /// /// The color of the issue type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueTypeColor { [JsonStringEnumMemberName("gray")] @@ -2306,7 +2388,7 @@ public enum IssueTypeColor /// /// The color associated with the option. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProjectsV2FieldSingleSelectOptionColor { [JsonStringEnumMemberName("BLUE")] @@ -2330,7 +2412,7 @@ public enum ProjectsV2FieldSingleSelectOptionColor /// /// The data type of the issue field /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueFieldValueDataType { [JsonStringEnumMemberName("text")] @@ -2348,7 +2430,7 @@ public enum IssueFieldValueDataType /// /// The data type of the issue field. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueFieldDataType { [JsonStringEnumMemberName("text")] @@ -2366,7 +2448,7 @@ public enum IssueFieldDataType /// /// The field's data type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProjectsV2FieldDataType { [JsonStringEnumMemberName("assignees")] @@ -2401,7 +2483,7 @@ public enum ProjectsV2FieldDataType SubIssuesProgress } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PriceModel { [JsonStringEnumMemberName("FREE")] @@ -2415,7 +2497,7 @@ public enum PriceModel /// /// The scope of the budget /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BudgetScope { [JsonStringEnumMemberName("enterprise")] @@ -2428,6 +2510,8 @@ public enum BudgetScope CostCenter, [JsonStringEnumMemberName("multi_user_customer")] MultiUserCustomer, + [JsonStringEnumMemberName("multi_user_cost_center")] + MultiUserCostCenter, [JsonStringEnumMemberName("user")] User } @@ -2435,7 +2519,7 @@ public enum BudgetScope /// /// The image provider. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NullableActionsHostedRunnerPoolImageSource { [JsonStringEnumMemberName("github")] @@ -2449,7 +2533,7 @@ public enum NullableActionsHostedRunnerPoolImageSource /// /// Source answers the question, "where did this role come from?" /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationRoleSource { [JsonStringEnumMemberName("Organization")] @@ -2463,7 +2547,7 @@ public enum OrganizationRoleSource /// /// The source of the repository property. Defaults to 'custom' if not specified. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulesetConditionsRepositoryPropertySpecSource { [JsonStringEnumMemberName("custom")] @@ -2475,7 +2559,7 @@ public enum RepositoryRulesetConditionsRepositoryPropertySpecSource /// /// What type of content was scanned /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningScanCompletedSource { [JsonStringEnumMemberName("git")] @@ -2493,7 +2577,7 @@ public enum WebhookSecretScanningScanCompletedSource /// /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActionsOrganizationPermissionsEnabledRepositories { [JsonStringEnumMemberName("all")] @@ -2507,7 +2591,7 @@ public enum ActionsOrganizationPermissionsEnabledRepositories /// /// The policy that controls whether self-hosted runners can be used by repositories in the organization /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SelfHostedRunnersSettingsEnabledRepositories { [JsonStringEnumMemberName("all")] @@ -2521,7 +2605,7 @@ public enum SelfHostedRunnersSettingsEnabledRepositories /// /// The permissions policy that controls the actions and reusable workflows that are allowed to run. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AllowedActions2 { [JsonStringEnumMemberName("all")] @@ -2535,7 +2619,7 @@ public enum AllowedActions2 /// /// The policy that controls when fork PR workflows require approval from a maintainer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ApprovalPolicy { [JsonStringEnumMemberName("first_time_contributors_new_to_github")] @@ -2549,7 +2633,7 @@ public enum ApprovalPolicy /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DefaultWorkflowPermissions { [JsonStringEnumMemberName("read")] @@ -2561,7 +2645,7 @@ public enum DefaultWorkflowPermissions /// /// Visibility of a secret /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationActionsSecretVisibility { [JsonStringEnumMemberName("all")] @@ -2572,7 +2656,7 @@ public enum OrganizationActionsSecretVisibility Selected } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PackageVisibility { [JsonStringEnumMemberName("private")] @@ -2584,7 +2668,7 @@ public enum PackageVisibility /// /// The visibility of the issue field. Can be `organization_members_only` (visible only within the organization) or `all` (visible to all users who can see issues). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssueFieldVisibility { [JsonStringEnumMemberName("organization_members_only")] @@ -2593,10 +2677,26 @@ public enum IssueFieldVisibility All } +/// +/// How the team's access to the repository was granted. This property is only +/// present when the team is returned in a repository context, such as +/// `GET /repos/{owner}/{repo}/teams`. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum AccessSource +{ + [JsonStringEnumMemberName("direct")] + Direct, + [JsonStringEnumMemberName("organization")] + Organization, + [JsonStringEnumMemberName("enterprise")] + Enterprise +} + /// /// The security severity of the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecuritySeverityLevel { [JsonStringEnumMemberName("low")] @@ -2612,7 +2712,7 @@ public enum SecuritySeverityLevel /// /// Whether a prebuild is currently available when creating a codespace for this machine and repository. If a branch was not specified as a ref, the default branch will be assumed. Value will be "null" if prebuilds are not supported or prebuild availability could not be determined. Value will be "none" if no prebuild is available. Latest values "ready" and "in_progress" indicate the prebuild availability status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PrebuildAvailability { [JsonStringEnumMemberName("none")] @@ -2626,7 +2726,7 @@ public enum PrebuildAvailability /// /// The initally assigned location of a new codespace. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Location { [JsonStringEnumMemberName("EastUs")] @@ -2646,7 +2746,7 @@ public enum Location /// - `writer`: Default write permissions (organization spaces only) /// - `admin`: Default admin permissions (organization spaces only) /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CopilotSpaceBaseRole { [JsonStringEnumMemberName("reader")] @@ -2662,7 +2762,7 @@ public enum CopilotSpaceBaseRole /// /// The system role from which this role inherits permissions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationRoleBaseRole { [JsonStringEnumMemberName("read")] @@ -2680,7 +2780,7 @@ public enum OrganizationRoleBaseRole /// /// The type of the resource. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ResourceType { [JsonStringEnumMemberName("repository")] @@ -2702,7 +2802,7 @@ public enum ResourceType /// /// The organization policy for allowing or blocking suggestions matching public code (duplication detection filter). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PublicCodeSuggestions { [JsonStringEnumMemberName("allow")] @@ -2716,7 +2816,7 @@ public enum PublicCodeSuggestions /// /// The organization policy for allowing or disallowing Copilot Chat in the IDE. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdeChat { [JsonStringEnumMemberName("enabled")] @@ -2730,7 +2830,7 @@ public enum IdeChat /// /// The organization policy for allowing or disallowing Copilot features on GitHub.com. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PlatformChat { [JsonStringEnumMemberName("enabled")] @@ -2744,7 +2844,7 @@ public enum PlatformChat /// /// The organization policy for allowing or disallowing Copilot CLI. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Cli { [JsonStringEnumMemberName("enabled")] @@ -2758,7 +2858,7 @@ public enum Cli /// /// The mode of assigning new seats. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SeatManagementSetting { [JsonStringEnumMemberName("assign_all")] @@ -2774,7 +2874,7 @@ public enum SeatManagementSetting /// /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CopilotOrganizationDetailsPlanType { [JsonStringEnumMemberName("business")] @@ -2786,7 +2886,7 @@ public enum CopilotOrganizationDetailsPlanType /// /// The Copilot plan of the organization, or the parent enterprise, when applicable. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CopilotSeatDetailsPlanType { [JsonStringEnumMemberName("business")] @@ -2797,7 +2897,7 @@ public enum CopilotSeatDetailsPlanType Unknown } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PackageType { [JsonStringEnumMemberName("npm")] @@ -2817,7 +2917,7 @@ public enum PackageType /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Limit { [JsonStringEnumMemberName("existing_users")] @@ -2831,7 +2931,7 @@ public enum Limit /// /// The duration of the interaction restriction. Default: `one_day`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Expiry { [JsonStringEnumMemberName("one_day")] @@ -2849,7 +2949,7 @@ public enum Expiry /// /// The user's membership type in the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrgMembershipRole { [JsonStringEnumMemberName("admin")] @@ -2861,10 +2961,10 @@ public enum OrgMembershipRole } /// -/// The role of the user in the team. +/// The member's role on the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum TeamMembershipRole +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum TeamMemberRole { [JsonStringEnumMemberName("member")] Member, @@ -2875,7 +2975,7 @@ public enum TeamMembershipRole /// /// Determines if the team has a direct, indirect, or mixed relationship to a role /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Assignment { [JsonStringEnumMemberName("direct")] @@ -2889,7 +2989,7 @@ public enum Assignment /// /// The registry type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RegistryType { [JsonStringEnumMemberName("maven_repository")] @@ -2927,7 +3027,7 @@ public enum RegistryType /// /// The authentication type for the private registry. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthType { [JsonStringEnumMemberName("token")] @@ -2949,7 +3049,7 @@ public enum AuthType /// /// The merge method to use. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeMethod { [JsonStringEnumMemberName("merge")] @@ -2963,7 +3063,7 @@ public enum MergeMethod /// /// The type of content tracked in a project item /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ContentType { [JsonStringEnumMemberName("Issue")] @@ -2977,7 +3077,7 @@ public enum ContentType /// /// The layout of the view. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Layout { [JsonStringEnumMemberName("table")] @@ -2991,7 +3091,7 @@ public enum Layout /// /// The source type of the property /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomPropertySourceType { [JsonStringEnumMemberName("organization")] @@ -3003,7 +3103,7 @@ public enum CustomPropertySourceType /// /// The type of the source of the ruleset /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRulesetSourceType { [JsonStringEnumMemberName("Repository")] @@ -3017,7 +3117,7 @@ public enum RepositoryRulesetSourceType /// /// The type of the value for the property /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ValueType { [JsonStringEnumMemberName("string")] @@ -3035,7 +3135,7 @@ public enum ValueType /// /// Who can edit the values of the property /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ValuesEditableBy { [JsonStringEnumMemberName("org_actors")] @@ -3047,7 +3147,7 @@ public enum ValuesEditableBy /// /// The type of actor that can bypass a ruleset. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActorType { [JsonStringEnumMemberName("Integration")] @@ -3067,7 +3167,7 @@ public enum ActorType /// /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. Also, `pull_request` is only applicable to branch rulesets. When `bypass_mode` is `exempt`, rules will not be run for that actor and a bypass audit entry will not be created. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BypassMode { [JsonStringEnumMemberName("always")] @@ -3081,7 +3181,7 @@ public enum BypassMode /// /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AlertsThreshold { [JsonStringEnumMemberName("none")] @@ -3097,7 +3197,7 @@ public enum AlertsThreshold /// /// The severity level at which code scanning results that raise security alerts block a reference update. For more information on security severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityAlertsThreshold { [JsonStringEnumMemberName("none")] @@ -3115,7 +3215,7 @@ public enum SecurityAlertsThreshold /// /// The target of the ruleset /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Target { [JsonStringEnumMemberName("branch")] @@ -3132,7 +3232,7 @@ public enum Target /// The bypass type of the user making the API request for this ruleset. This field is only returned when /// querying the repository-level endpoint. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CurrentUserCanBypass { [JsonStringEnumMemberName("always")] @@ -3148,7 +3248,7 @@ public enum CurrentUserCanBypass /// /// The result of the rule evaluations for rules with the `active` enforcement status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Result { [JsonStringEnumMemberName("pass")] @@ -3162,7 +3262,7 @@ public enum Result /// /// The result of the rule evaluations for rules with the `active` and `evaluate` enforcement statuses, demonstrating whether rules would pass or fail if all rules in the rule suite were `active`. Null if no rules with `evaluate` enforcement status were run. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EvaluationResult { [JsonStringEnumMemberName("pass")] @@ -3176,7 +3276,7 @@ public enum EvaluationResult /// /// **Required when the `state` is `resolved`.** The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecretScanningAlertResolution { [JsonStringEnumMemberName("false_positive")] @@ -3192,7 +3292,7 @@ public enum OrganizationSecretScanningAlertResolution /// /// The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertWebhookResolution { [JsonStringEnumMemberName("false_positive")] @@ -3212,7 +3312,7 @@ public enum SecretScanningAlertWebhookResolution /// /// The token status as of the latest validity check. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Validity { [JsonStringEnumMemberName("active")] @@ -3223,10 +3323,34 @@ public enum Validity Unknown } +/// +/// A machine-readable code describing the error. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Code +{ + [JsonStringEnumMemberName("invalid")] + Invalid, + [JsonStringEnumMemberName("unprocessable")] + Unprocessable, + [JsonStringEnumMemberName("start_delimiter")] + StartDelimiter, + [JsonStringEnumMemberName("end_delimiter")] + EndDelimiter, + [JsonStringEnumMemberName("name")] + Name, + [JsonStringEnumMemberName("must_match")] + MustMatch, + [JsonStringEnumMemberName("must_not_match")] + MustNotMatch, + [JsonStringEnumMemberName("custom_pattern_version_mismatch")] + CustomPatternVersionMismatch +} + /// /// The default push protection setting for this pattern. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DefaultSetting { [JsonStringEnumMemberName("disabled")] @@ -3238,7 +3362,7 @@ public enum DefaultSetting /// /// The push protection setting for this pattern set at the enterprise level. Only present for partner patterns when the organization has a parent enterprise. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnterpriseSetting { [JsonStringEnumMemberName("not-set")] @@ -3252,7 +3376,7 @@ public enum EnterpriseSetting /// /// The current push protection setting for this pattern. If this is `not-set`, then it inherits either the enterprise setting if it exists or the default setting. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Setting { [JsonStringEnumMemberName("not-set")] @@ -3266,7 +3390,7 @@ public enum Setting /// /// The policy that controls how immutable releases are enforced in the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnforcedRepositories { [JsonStringEnumMemberName("all")] @@ -3280,7 +3404,7 @@ public enum EnforcedRepositories /// /// The hosted compute service the network configuration supports. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ComputeService { [JsonStringEnumMemberName("none")] @@ -3294,7 +3418,7 @@ public enum ComputeService /// /// The level of privacy this team should have /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TeamFullPrivacy { [JsonStringEnumMemberName("closed")] @@ -3303,7 +3427,7 @@ public enum TeamFullPrivacy Secret } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksTeamPrivacy { [JsonStringEnumMemberName("open")] @@ -3317,7 +3441,7 @@ public enum WebhooksTeamPrivacy /// /// The outcome of the job. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum JobConclusion { [JsonStringEnumMemberName("success")] @@ -3336,7 +3460,7 @@ public enum JobConclusion ActionRequired } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckSuiteConclusion { [JsonStringEnumMemberName("success")] @@ -3361,7 +3485,7 @@ public enum CheckSuiteConclusion OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464 } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SimpleCheckSuiteConclusion { [JsonStringEnumMemberName("success")] @@ -3384,7 +3508,7 @@ public enum SimpleCheckSuiteConclusion StartupFailure } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckRunWithSimpleCheckSuiteConclusion { [JsonStringEnumMemberName("waiting")] @@ -3417,7 +3541,7 @@ public enum CheckRunWithSimpleCheckSuiteConclusion /// /// `none` means the access is only possible from workflows in this repository. `user` level access allows sharing across user owned private repositories only. `organization` level access allows sharing across the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccessLevel { [JsonStringEnumMemberName("none")] @@ -3431,7 +3555,7 @@ public enum AccessLevel /// /// The type of the activity that was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActivityType { [JsonStringEnumMemberName("push")] @@ -3448,20 +3572,46 @@ public enum ActivityType MergeQueueMerge } +/// +/// The category of the rule used to detect the finding. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Category +{ + [JsonStringEnumMemberName("none")] + None, + [JsonStringEnumMemberName("maintainability")] + Maintainability, + [JsonStringEnumMemberName("reliability")] + Reliability +} + /// /// The frequency of the periodic analysis. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Schedule { [JsonStringEnumMemberName("weekly")] Weekly } +/// +/// The AI findings configuration for the repository. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum AiFindingsOption +{ + [JsonStringEnumMemberName("disabled")] + Disabled, + [JsonStringEnumMemberName("on_push")] + OnPush +} + /// /// The language targeted by the CodeQL query /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum QueryLanguage { [JsonStringEnumMemberName("actions")] @@ -3489,7 +3639,7 @@ public enum QueryLanguage /// /// The reason for a failure of the variant analysis. This is only available if the variant analysis has failed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FailureReason { [JsonStringEnumMemberName("no_repos_queried")] @@ -3503,7 +3653,7 @@ public enum FailureReason /// /// The new status of the CodeQL variant analysis repository task. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AnalysisStatus { [JsonStringEnumMemberName("pending")] @@ -3523,7 +3673,7 @@ public enum AnalysisStatus /// /// CodeQL query suite to be used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum QuerySuite { [JsonStringEnumMemberName("default")] @@ -3535,7 +3685,7 @@ public enum QuerySuite /// /// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ThreatModel { [JsonStringEnumMemberName("remote")] @@ -3547,7 +3697,7 @@ public enum ThreatModel /// /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProcessingStatus { [JsonStringEnumMemberName("pending")] @@ -3561,7 +3711,7 @@ public enum ProcessingStatus /// /// The permission associated with the invitation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Permissions { [JsonStringEnumMemberName("read")] @@ -3579,7 +3729,7 @@ public enum Permissions /// /// The reaction to use /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Content { [JsonStringEnumMemberName("+1")] @@ -3603,7 +3753,7 @@ public enum Content /// /// A notation of whether a dependency is requested directly by this manifest or is a dependency of another dependency. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Relationship { [JsonStringEnumMemberName("direct")] @@ -3615,7 +3765,7 @@ public enum Relationship /// /// A notation of whether the dependency is required for the primary build artifact (runtime) or is only used for development. Future versions of this specification may allow for more granular scopes. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DependencyScope { [JsonStringEnumMemberName("runtime")] @@ -3627,7 +3777,7 @@ public enum DependencyScope /// /// The scope of the membership. Currently, can only be `team`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMembershipAddedScope { [JsonStringEnumMemberName("team")] @@ -3637,7 +3787,7 @@ public enum WebhookMembershipAddedScope /// /// The scope of the membership. Currently, can only be `team`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMembershipRemovedScope { [JsonStringEnumMemberName("team")] @@ -3649,7 +3799,7 @@ public enum WebhookMembershipRemovedScope /// /// The Git hash algorithm used by this repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum HashAlgorithm { [JsonStringEnumMemberName("sha1")] @@ -3659,605 +3809,353 @@ public enum HashAlgorithm } /// -/// The side of the first line of the range for a multi-line comment. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum PullRequestReviewCommentStartSide -{ - [JsonStringEnumMemberName("LEFT")] - Left, - [JsonStringEnumMemberName("RIGHT")] - Right -} - -/// -/// The side of the first line of the range for a multi-line comment. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum WebhooksReviewCommentStartSide -{ - [JsonStringEnumMemberName("LEFT")] - Left, - [JsonStringEnumMemberName("RIGHT")] - Right, - [JsonStringEnumMemberName("openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464")] - OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464 -} - -/// -/// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum Side -{ - [JsonStringEnumMemberName("LEFT")] - Left, - [JsonStringEnumMemberName("RIGHT")] - Right -} - -/// -/// The level at which the comment is targeted, can be a diff line or a file. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum SubjectType -{ - [JsonStringEnumMemberName("line")] - Line, - [JsonStringEnumMemberName("file")] - File -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum MergeType -{ - [JsonStringEnumMemberName("merge")] - Merge, - [JsonStringEnumMemberName("fast-forward")] - FastForward, - [JsonStringEnumMemberName("none")] - None -} - -/// -/// The state if the domain is verified -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum ProtectedDomainState -{ - [JsonStringEnumMemberName("pending")] - Pending, - [JsonStringEnumMemberName("verified")] - Verified, - [JsonStringEnumMemberName("unverified")] - Unverified -} - -/// -/// The process in which the Page will be built. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum BuildType -{ - [JsonStringEnumMemberName("legacy")] - Legacy, - [JsonStringEnumMemberName("workflow")] - Workflow -} - -/// -/// The type of source for the ruleset that includes this rule. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RulesetSourceType -{ - [JsonStringEnumMemberName("Repository")] - Repository, - [JsonStringEnumMemberName("Organization")] - Organization -} - -/// -/// The reason for bypassing push protection. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum SecretScanningPushProtectionBypassReason2 -{ - [JsonStringEnumMemberName("false_positive")] - FalsePositive, - [JsonStringEnumMemberName("used_in_tests")] - UsedInTests, - [JsonStringEnumMemberName("will_fix_later")] - WillFixLater -} - -/// -/// Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated). +/// The confidence level the agent had when performing this action. /// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum WebhookMergeGroupDestroyedReason -{ - [JsonStringEnumMemberName("merged")] - Merged, - [JsonStringEnumMemberName("invalidated")] - Invalidated, - [JsonStringEnumMemberName("dequeued")] - Dequeued -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum WebhookPullRequestDequeuedReason -{ - [JsonStringEnumMemberName("UNKNOWN_REMOVAL_REASON")] - UnknownRemovalReason, - [JsonStringEnumMemberName("MANUAL")] - Manual, - [JsonStringEnumMemberName("MERGE")] - Merge, - [JsonStringEnumMemberName("MERGE_CONFLICT")] - MergeConflict, - [JsonStringEnumMemberName("CI_FAILURE")] - CiFailure, - [JsonStringEnumMemberName("CI_TIMEOUT")] - CiTimeout, - [JsonStringEnumMemberName("ALREADY_MERGED")] - AlreadyMerged, - [JsonStringEnumMemberName("QUEUE_CLEARED")] - QueueCleared, - [JsonStringEnumMemberName("ROLL_BACK")] - RollBack, - [JsonStringEnumMemberName("BRANCH_PROTECTIONS")] - BranchProtections, - [JsonStringEnumMemberName("GIT_TREE_INVALID")] - GitTreeInvalid, - [JsonStringEnumMemberName("INVALID_MERGE_COMMIT")] - InvalidMergeCommit -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum AllowDeletionsEnforcementLevel +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Confidence { - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum AllowForcePushesEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum LinearHistoryRequirementEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone + [JsonStringEnumMemberName("LOW")] + Low, + [JsonStringEnumMemberName("MEDIUM")] + Medium, + [JsonStringEnumMemberName("HIGH")] + High } /// -/// The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone. +/// The kind of change proposed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum LockBranchEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum MergeQueueEnforcementLevel +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum IssueSuggestionAction { - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum PullRequestReviewsEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RequiredConversationResolutionLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RequiredDeploymentsEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum RequiredStatusChecksEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum SignatureRequirementEnforcementLevel -{ - [JsonStringEnumMemberName("off")] - Off, - [JsonStringEnumMemberName("non_admins")] - NonAdmins, - [JsonStringEnumMemberName("everyone")] - Everyone -} - -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum ActiveLockReason -{ - [JsonStringEnumMemberName("resolved")] - Resolved, - [JsonStringEnumMemberName("off-topic")] - OffTopic, - [JsonStringEnumMemberName("too heated")] - TooHeated, - [JsonStringEnumMemberName("spam")] - Spam, - [JsonStringEnumMemberName("openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464")] - OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464 + [JsonStringEnumMemberName("set_type")] + SetType, + [JsonStringEnumMemberName("add_label")] + AddLabel, + [JsonStringEnumMemberName("add_field")] + AddField, + [JsonStringEnumMemberName("add_assignee")] + AddAssignee, + [JsonStringEnumMemberName("close_issue")] + CloseIssue } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionConfigurationDisabledAction { [JsonStringEnumMemberName("disabled")] Disabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionConfigurationEnabledAction { [JsonStringEnumMemberName("enabled")] Enabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionRuleCreatedAction { [JsonStringEnumMemberName("created")] Created } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionRuleDeletedAction { [JsonStringEnumMemberName("deleted")] Deleted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookBranchProtectionRuleEditedAction { [JsonStringEnumMemberName("edited")] Edited } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckRunCompletedAction { [JsonStringEnumMemberName("completed")] Completed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckRunRequestedActionAction { [JsonStringEnumMemberName("requested_action")] RequestedAction } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckRunRerequestedAction { [JsonStringEnumMemberName("rerequested")] Rerequested } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCheckSuiteRequestedAction { [JsonStringEnumMemberName("requested")] Requested } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertAppearedInBranchAction { [JsonStringEnumMemberName("appeared_in_branch")] AppearedInBranch } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertClosedByUserAction { [JsonStringEnumMemberName("closed_by_user")] ClosedByUser } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertFixedAction { [JsonStringEnumMemberName("fixed")] Fixed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertReopenedAction { [JsonStringEnumMemberName("reopened")] Reopened } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertReopenedByUserAction { [JsonStringEnumMemberName("reopened_by_user")] ReopenedByUser } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCodeScanningAlertUpdatedAssignmentAction { [JsonStringEnumMemberName("updated_assignment")] UpdatedAssignment } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCustomPropertyPromotedToEnterpriseAction { [JsonStringEnumMemberName("promote_to_enterprise")] PromoteToEnterprise } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookCustomPropertyUpdatedAction { [JsonStringEnumMemberName("updated")] Updated } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertAssigneesChangedAction { [JsonStringEnumMemberName("assignees_changed")] AssigneesChanged } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertAutoDismissedAction { [JsonStringEnumMemberName("auto_dismissed")] AutoDismissed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertAutoReopenedAction { [JsonStringEnumMemberName("auto_reopened")] AutoReopened } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertDismissedAction { [JsonStringEnumMemberName("dismissed")] Dismissed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDependabotAlertReintroducedAction { [JsonStringEnumMemberName("reintroduced")] Reintroduced } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDeploymentReviewApprovedAction { [JsonStringEnumMemberName("approved")] Approved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDeploymentReviewRejectedAction { [JsonStringEnumMemberName("rejected")] Rejected } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionAnsweredAction { [JsonStringEnumMemberName("answered")] Answered } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionCategoryChangedAction { [JsonStringEnumMemberName("category_changed")] CategoryChanged } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionClosedAction { [JsonStringEnumMemberName("closed")] Closed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionLabeledAction { [JsonStringEnumMemberName("labeled")] Labeled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionLockedAction { [JsonStringEnumMemberName("locked")] Locked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionPinnedAction { [JsonStringEnumMemberName("pinned")] Pinned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionTransferredAction { [JsonStringEnumMemberName("transferred")] Transferred } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnansweredAction { [JsonStringEnumMemberName("unanswered")] Unanswered } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnlabeledAction { [JsonStringEnumMemberName("unlabeled")] Unlabeled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnlockedAction { [JsonStringEnumMemberName("unlocked")] Unlocked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookDiscussionUnpinnedAction { [JsonStringEnumMemberName("unpinned")] Unpinned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookGithubAppAuthorizationRevokedAction { [JsonStringEnumMemberName("revoked")] Revoked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationNewPermissionsAcceptedAction { [JsonStringEnumMemberName("new_permissions_accepted")] NewPermissionsAccepted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationRepositoriesAddedAction { [JsonStringEnumMemberName("added")] Added } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationRepositoriesRemovedAction { [JsonStringEnumMemberName("removed")] Removed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationSuspendAction { [JsonStringEnumMemberName("suspend")] Suspend } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationTargetRenamedAction { [JsonStringEnumMemberName("renamed")] Renamed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookInstallationUnsuspendAction { [JsonStringEnumMemberName("unsuspend")] Unsuspend } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockedByAddedAction { [JsonStringEnumMemberName("blocked_by_added")] BlockedByAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockedByRemovedAction { [JsonStringEnumMemberName("blocked_by_removed")] BlockedByRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockingAddedAction { [JsonStringEnumMemberName("blocking_added")] BlockingAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssueDependenciesBlockingRemovedAction { [JsonStringEnumMemberName("blocking_removed")] @@ -4267,49 +4165,49 @@ public enum WebhookIssueDependenciesBlockingRemovedAction /// /// The action that was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesAssignedAction { [JsonStringEnumMemberName("assigned")] Assigned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesDemilestonedAction { [JsonStringEnumMemberName("demilestoned")] Demilestoned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesFieldAddedAction { [JsonStringEnumMemberName("field_added")] FieldAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesFieldRemovedAction { [JsonStringEnumMemberName("field_removed")] FieldRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesMilestonedAction { [JsonStringEnumMemberName("milestoned")] Milestoned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesOpenedAction { [JsonStringEnumMemberName("opened")] Opened } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesTypedAction { [JsonStringEnumMemberName("typed")] @@ -4319,416 +4217,733 @@ public enum WebhookIssuesTypedAction /// /// The action that was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesUnassignedAction { [JsonStringEnumMemberName("unassigned")] Unassigned } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookIssuesUntypedAction { [JsonStringEnumMemberName("untyped")] Untyped } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchaseCancelledAction { [JsonStringEnumMemberName("cancelled")] Cancelled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchaseChangedAction { [JsonStringEnumMemberName("changed")] Changed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchasePendingChangeAction { [JsonStringEnumMemberName("pending_change")] PendingChange } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchasePendingChangeCancelledAction { [JsonStringEnumMemberName("pending_change_cancelled")] PendingChangeCancelled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMarketplacePurchasePurchasedAction { [JsonStringEnumMemberName("purchased")] Purchased } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMergeGroupChecksRequestedAction { [JsonStringEnumMemberName("checks_requested")] ChecksRequested } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookMergeGroupDestroyedAction { [JsonStringEnumMemberName("destroyed")] Destroyed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrgBlockBlockedAction { [JsonStringEnumMemberName("blocked")] Blocked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrgBlockUnblockedAction { [JsonStringEnumMemberName("unblocked")] Unblocked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrganizationMemberAddedAction { [JsonStringEnumMemberName("member_added")] MemberAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrganizationMemberInvitedAction { [JsonStringEnumMemberName("member_invited")] MemberInvited } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookOrganizationMemberRemovedAction { [JsonStringEnumMemberName("member_removed")] MemberRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPackagePublishedAction { [JsonStringEnumMemberName("published")] Published } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPersonalAccessTokenRequestDeniedAction { [JsonStringEnumMemberName("denied")] Denied } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectCardConvertedAction { [JsonStringEnumMemberName("converted")] Converted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectCardMovedAction { [JsonStringEnumMemberName("moved")] Moved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectsV2ItemArchivedAction { [JsonStringEnumMemberName("archived")] Archived } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectsV2ItemReorderedAction { [JsonStringEnumMemberName("reordered")] Reordered } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookProjectsV2ItemRestoredAction { [JsonStringEnumMemberName("restored")] Restored } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestAutoMergeDisabledAction { [JsonStringEnumMemberName("auto_merge_disabled")] AutoMergeDisabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestAutoMergeEnabledAction { [JsonStringEnumMemberName("auto_merge_enabled")] AutoMergeEnabled } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestConvertedToDraftAction { [JsonStringEnumMemberName("converted_to_draft")] ConvertedToDraft } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestDequeuedAction { [JsonStringEnumMemberName("dequeued")] Dequeued } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestEnqueuedAction { [JsonStringEnumMemberName("enqueued")] Enqueued } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReadyForReviewAction { [JsonStringEnumMemberName("ready_for_review")] ReadyForReview } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReviewSubmittedAction { [JsonStringEnumMemberName("submitted")] Submitted } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReviewThreadResolvedAction { [JsonStringEnumMemberName("resolved")] Resolved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestReviewThreadUnresolvedAction { [JsonStringEnumMemberName("unresolved")] Unresolved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookPullRequestStackedAction +{ + [JsonStringEnumMemberName("stacked")] + Stacked +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookPullRequestSynchronizeAction { [JsonStringEnumMemberName("synchronize")] Synchronize } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookReleasePrereleasedAction { [JsonStringEnumMemberName("prereleased")] Prereleased } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookReleaseReleasedAction { [JsonStringEnumMemberName("released")] Released } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookReleaseUnpublishedAction { [JsonStringEnumMemberName("unpublished")] Unpublished } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryAdvisoryReportedAction { [JsonStringEnumMemberName("reported")] Reported } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryPrivatizedAction { [JsonStringEnumMemberName("privatized")] Privatized } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryPublicizedAction { [JsonStringEnumMemberName("publicized")] Publicized } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryUnarchivedAction { [JsonStringEnumMemberName("unarchived")] Unarchived } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertCreateAction { [JsonStringEnumMemberName("create")] Create } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertDismissAction { [JsonStringEnumMemberName("dismiss")] Dismiss } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertReopenAction { [JsonStringEnumMemberName("reopen")] Reopen } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookRepositoryVulnerabilityAlertResolveAction { [JsonStringEnumMemberName("resolve")] Resolve } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookSecretScanningAlertMetadataCreatedAction +{ + [JsonStringEnumMemberName("metadata_created")] + MetadataCreated +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookSecretScanningAlertMetadataRemovedAction +{ + [JsonStringEnumMemberName("metadata_removed")] + MetadataRemoved +} + +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningAlertPubliclyLeakedAction { [JsonStringEnumMemberName("publicly_leaked")] PubliclyLeaked } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecretScanningAlertValidatedAction { [JsonStringEnumMemberName("validated")] Validated } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSecurityAdvisoryWithdrawnAction { [JsonStringEnumMemberName("withdrawn")] Withdrawn } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSponsorshipPendingCancellationAction { [JsonStringEnumMemberName("pending_cancellation")] PendingCancellation } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSponsorshipPendingTierChangeAction { [JsonStringEnumMemberName("pending_tier_change")] PendingTierChange } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSponsorshipTierChangedAction { [JsonStringEnumMemberName("tier_changed")] TierChanged } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesParentIssueAddedAction { [JsonStringEnumMemberName("parent_issue_added")] ParentIssueAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesParentIssueRemovedAction { [JsonStringEnumMemberName("parent_issue_removed")] ParentIssueRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesSubIssueAddedAction { [JsonStringEnumMemberName("sub_issue_added")] SubIssueAdded } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookSubIssuesSubIssueRemovedAction { [JsonStringEnumMemberName("sub_issue_removed")] SubIssueRemoved } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookTeamAddedToRepositoryAction { [JsonStringEnumMemberName("added_to_repository")] AddedToRepository } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookTeamRemovedFromRepositoryAction { [JsonStringEnumMemberName("removed_from_repository")] RemovedFromRepository } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWatchStartedAction { [JsonStringEnumMemberName("started")] Started } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWorkflowJobInProgressAction { [JsonStringEnumMemberName("in_progress")] InProgress } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWorkflowJobQueuedAction { [JsonStringEnumMemberName("queued")] Queued } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhookWorkflowJobWaitingAction { [JsonStringEnumMemberName("waiting")] Waiting } +/// +/// The side of the first line of the range for a multi-line comment. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum PullRequestReviewCommentStartSide +{ + [JsonStringEnumMemberName("LEFT")] + Left, + [JsonStringEnumMemberName("RIGHT")] + Right +} + +/// +/// The side of the first line of the range for a multi-line comment. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhooksReviewCommentStartSide +{ + [JsonStringEnumMemberName("LEFT")] + Left, + [JsonStringEnumMemberName("RIGHT")] + Right, + [JsonStringEnumMemberName("openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464")] + OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464 +} + +/// +/// The side of the diff to which the comment applies. The side of the last line of the range for a multi-line comment +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Side +{ + [JsonStringEnumMemberName("LEFT")] + Left, + [JsonStringEnumMemberName("RIGHT")] + Right +} + +/// +/// The level at which the comment is targeted, can be a diff line or a file. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SubjectType +{ + [JsonStringEnumMemberName("line")] + Line, + [JsonStringEnumMemberName("file")] + File +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum MergeType +{ + [JsonStringEnumMemberName("merge")] + Merge, + [JsonStringEnumMemberName("fast-forward")] + FastForward, + [JsonStringEnumMemberName("none")] + None +} + +/// +/// The state if the domain is verified +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum ProtectedDomainState +{ + [JsonStringEnumMemberName("pending")] + Pending, + [JsonStringEnumMemberName("verified")] + Verified, + [JsonStringEnumMemberName("unverified")] + Unverified +} + +/// +/// The process in which the Page will be built. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum BuildType +{ + [JsonStringEnumMemberName("legacy")] + Legacy, + [JsonStringEnumMemberName("workflow")] + Workflow +} + +/// +/// The type of source for the ruleset that includes this rule. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RulesetSourceType +{ + [JsonStringEnumMemberName("Repository")] + Repository, + [JsonStringEnumMemberName("Organization")] + Organization +} + +/// +/// The reason for bypassing push protection. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SecretScanningPushProtectionBypassReason2 +{ + [JsonStringEnumMemberName("false_positive")] + FalsePositive, + [JsonStringEnumMemberName("used_in_tests")] + UsedInTests, + [JsonStringEnumMemberName("will_fix_later")] + WillFixLater +} + +/// +/// Explains why the merge group is being destroyed. The group could have been merged, removed from the queue (dequeued), or invalidated by an earlier queue entry being dequeued (invalidated). +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookMergeGroupDestroyedReason +{ + [JsonStringEnumMemberName("merged")] + Merged, + [JsonStringEnumMemberName("invalidated")] + Invalidated, + [JsonStringEnumMemberName("dequeued")] + Dequeued +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum WebhookPullRequestDequeuedReason +{ + [JsonStringEnumMemberName("UNKNOWN_REMOVAL_REASON")] + UnknownRemovalReason, + [JsonStringEnumMemberName("MANUAL")] + Manual, + [JsonStringEnumMemberName("MERGE")] + Merge, + [JsonStringEnumMemberName("MERGE_CONFLICT")] + MergeConflict, + [JsonStringEnumMemberName("CI_FAILURE")] + CiFailure, + [JsonStringEnumMemberName("CI_TIMEOUT")] + CiTimeout, + [JsonStringEnumMemberName("ALREADY_MERGED")] + AlreadyMerged, + [JsonStringEnumMemberName("QUEUE_CLEARED")] + QueueCleared, + [JsonStringEnumMemberName("ROLL_BACK")] + RollBack, + [JsonStringEnumMemberName("BRANCH_PROTECTIONS")] + BranchProtections, + [JsonStringEnumMemberName("GIT_TREE_INVALID")] + GitTreeInvalid, + [JsonStringEnumMemberName("INVALID_MERGE_COMMIT")] + InvalidMergeCommit +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum AllowDeletionsEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum AllowForcePushesEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum LinearHistoryRequirementEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +/// +/// The enforcement level of the branch lock setting. `off` means the branch is not locked, `non_admins` means the branch is read-only for non_admins, and `everyone` means the branch is read-only for everyone. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum LockBranchEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum MergeQueueEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum PullRequestReviewsEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RequiredConversationResolutionLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RequiredDeploymentsEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RequiredStatusChecksEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SignatureRequirementEnforcementLevel +{ + [JsonStringEnumMemberName("off")] + Off, + [JsonStringEnumMemberName("non_admins")] + NonAdmins, + [JsonStringEnumMemberName("everyone")] + Everyone +} + +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum ActiveLockReason +{ + [JsonStringEnumMemberName("resolved")] + Resolved, + [JsonStringEnumMemberName("off-topic")] + OffTopic, + [JsonStringEnumMemberName("too heated")] + TooHeated, + [JsonStringEnumMemberName("spam")] + Spam, + [JsonStringEnumMemberName("openapi-json-null-sentinel-value-2BF93600-0FE4-4250-987A-E5DDB203E464")] + OpenapiJsonNullSentinelValue2BF936000FE44250987AE5DDB203E464 +} + +/// +/// The category of the detected secret. `default` covers specific provider patterns and custom patterns; `generic` covers non-specific patterns and AI-detected secrets. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum SecretCategory +{ + [JsonStringEnumMemberName("default")] + Default, + [JsonStringEnumMemberName("generic")] + Generic +} + /// /// The type of Git ref object created in the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RefType { [JsonStringEnumMemberName("tag")] @@ -4740,7 +4955,7 @@ public enum RefType /// /// If the scan was triggered by a custom pattern update, this will be the scope of the pattern that was updated /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomPatternScope { [JsonStringEnumMemberName("repository")] @@ -4751,7 +4966,7 @@ public enum CustomPatternScope Enterprise } -public record Root +public partial record Root { [JsonPropertyName("current_user_url")] public required string CurrentUserUrl { get; init; } @@ -4857,7 +5072,7 @@ public record Root /// /// The package's language or package management ecosystem. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityAdvisoryEcosystems { [JsonStringEnumMemberName("rubygems")] @@ -4891,7 +5106,7 @@ public enum SecurityAdvisoryEcosystems /// /// A vulnerability describing the product and its affected versions within a GitHub Security Advisory. /// -public record Vulnerability +public partial record Vulnerability { /// /// The name of the package affected by the vulnerability. @@ -4919,7 +5134,7 @@ public record Vulnerability } -public record CvssSeverities +public partial record CvssSeverities { [JsonPropertyName("cvss_v3")] public object? CvssV3 { get; init; } @@ -4932,7 +5147,7 @@ public record CvssSeverities /// /// The EPSS scores as calculated by the [Exploit Prediction Scoring System](https://www.first.org/epss). /// -public record SecurityAdvisoryEpss +public partial record SecurityAdvisoryEpss { [JsonPropertyName("percentage")] public double? Percentage { get; init; } @@ -4945,7 +5160,7 @@ public record SecurityAdvisoryEpss /// /// A GitHub user. /// -public record SimpleUser +public partial record SimpleUser { [JsonPropertyName("name")] public string? Name { get; init; } @@ -5018,7 +5233,7 @@ public record SimpleUser /// /// The type of credit the user is receiving. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityAdvisoryCreditTypes { [JsonStringEnumMemberName("analyst")] @@ -5046,7 +5261,7 @@ public enum SecurityAdvisoryCreditTypes /// /// A GitHub Security Advisory. /// -public record GlobalAdvisory +public partial record GlobalAdvisory { /// /// The GitHub Security Advisory ID. @@ -5177,7 +5392,7 @@ public record GlobalAdvisory /// /// Basic Error /// -public record BasicError +public partial record BasicError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -5196,7 +5411,7 @@ public record BasicError /// /// Validation Error Simple /// -public record ValidationErrorSimple +public partial record ValidationErrorSimple { [JsonPropertyName("message")] public required string Message { get; init; } @@ -5212,7 +5427,7 @@ public record ValidationErrorSimple /// /// An enterprise on GitHub. /// -public record Enterprise +public partial record Enterprise { /// /// A short description of the enterprise. @@ -5264,7 +5479,7 @@ public record Enterprise /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// -public record Integration +public partial record Integration { /// /// Unique identifier of the GitHub app @@ -5335,7 +5550,7 @@ public record Integration /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhookConfigUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhookConfigUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static WebhookConfigUrl Create(Uri value) => new(value); } @@ -5347,7 +5562,7 @@ public readonly record struct WebhookConfigUrl(Uri Value) : IOpenApiGeneratedTyp /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhookConfigContentType(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhookConfigContentType(string Value) : IOpenApiGeneratedTypeAlias { public static WebhookConfigContentType Create(string value) => new(value); } @@ -5359,17 +5574,17 @@ public readonly record struct WebhookConfigContentType(string Value) : IOpenApiG /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhookConfigSecret(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhookConfigSecret(string Value) : IOpenApiGeneratedTypeAlias { public static WebhookConfigSecret Create(string value) => new(value); } -public abstract record WebhookConfigInsecureSsl; +public abstract partial record WebhookConfigInsecureSsl; /// /// Configuration object of the webhook /// -public record WebhookConfig +public partial record WebhookConfig { /// /// The URL to which the payloads will be delivered. @@ -5397,7 +5612,7 @@ public record WebhookConfig /// /// Delivery made by a webhook, without request and response information. /// -public record HookDeliveryItem +public partial record HookDeliveryItem { /// /// Unique identifier of the webhook delivery. @@ -5476,7 +5691,7 @@ public record HookDeliveryItem /// /// Scim Error /// -public record ScimError +public partial record ScimError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -5501,7 +5716,7 @@ public record ScimError /// /// Validation Error /// -public record ValidationError +public partial record ValidationError { [JsonPropertyName("message")] public required string Message { get; init; } @@ -5517,7 +5732,7 @@ public record ValidationError /// /// Delivery made by a webhook. /// -public record HookDelivery +public partial record HookDelivery { /// /// Unique identifier of the delivery. @@ -5608,7 +5823,7 @@ public record HookDelivery /// /// Request to install an integration on a target /// -public record IntegrationInstallationRequest +public partial record IntegrationInstallationRequest { /// /// Unique identifier of the request installation. @@ -5634,9 +5849,9 @@ public record IntegrationInstallationRequest } /// -/// The permissions granted to the user access token. +/// The permissions granted to the fine-grained access token. /// -public record AppPermissions +public partial record AppPermissions { /// /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. @@ -5973,7 +6188,7 @@ public record AppPermissions /// /// A GitHub user. /// -public record NullableSimpleUser +public partial record NullableSimpleUser { [JsonPropertyName("name")] public string? Name { get; init; } @@ -6046,7 +6261,7 @@ public record NullableSimpleUser /// /// Installation /// -public record Installation +public partial record Installation { /// /// The ID of the installation. @@ -6088,7 +6303,7 @@ public record Installation public required string TargetType { get; init; } /// - /// The permissions granted to the user access token. + /// The permissions granted to the fine-grained access token. /// [JsonPropertyName("permissions")] public required AppPermissions Permissions { get; init; } @@ -6131,7 +6346,7 @@ public record Installation /// /// License Simple /// -public record NullableLicenseSimple +public partial record NullableLicenseSimple { [JsonPropertyName("key")] public required string Key { get; init; } @@ -6156,7 +6371,7 @@ public record NullableLicenseSimple /// /// A repository on GitHub. /// -public record Repository +public partial record Repository { /// /// Unique identifier of the repository @@ -6570,7 +6785,7 @@ public record Repository /// /// Authentication token for a GitHub App installed on a user or org. /// -public record InstallationToken +public partial record InstallationToken { [JsonPropertyName("token")] public required string Token { get; init; } @@ -6579,7 +6794,7 @@ public record InstallationToken public required string ExpiresAt { get; init; } /// - /// The permissions granted to the user access token. + /// The permissions granted to the fine-grained access token. /// [JsonPropertyName("permissions")] public AppPermissions? Permissions { get; init; } @@ -6601,10 +6816,10 @@ public record InstallationToken } -public record NullableScopedInstallation +public partial record NullableScopedInstallation { /// - /// The permissions granted to the user access token. + /// The permissions granted to the fine-grained access token. /// [JsonPropertyName("permissions")] public required AppPermissions Permissions { get; init; } @@ -6638,7 +6853,7 @@ public record NullableScopedInstallation /// /// The authorization for an OAuth app, GitHub App, or a Personal Access Token. /// -public record Authorization +public partial record Authorization { [JsonPropertyName("id")] public required long Id { get; init; } @@ -6696,7 +6911,7 @@ public record Authorization /// /// A GitHub repository view for Classroom /// -public record SimpleClassroomRepository +public partial record SimpleClassroomRepository { /// /// A unique identifier of the repository. @@ -6739,7 +6954,7 @@ public record SimpleClassroomRepository /// /// A GitHub organization. /// -public record SimpleClassroomOrganization +public partial record SimpleClassroomOrganization { [JsonPropertyName("id")] public required int Id { get; init; } @@ -6764,7 +6979,7 @@ public record SimpleClassroomOrganization /// /// A GitHub Classroom classroom /// -public record Classroom +public partial record Classroom { /// /// Unique identifier of the classroom. @@ -6801,7 +7016,7 @@ public record Classroom /// /// A GitHub Classroom assignment /// -public record ClassroomAssignment +public partial record ClassroomAssignment { /// /// Unique identifier of the repository. @@ -6922,7 +7137,7 @@ public record ClassroomAssignment /// /// A GitHub user simplified for Classroom. /// -public record SimpleClassroomUser +public partial record SimpleClassroomUser { [JsonPropertyName("id")] public required int Id { get; init; } @@ -6941,7 +7156,7 @@ public record SimpleClassroomUser /// /// A GitHub Classroom classroom /// -public record SimpleClassroom +public partial record SimpleClassroom { /// /// Unique identifier of the classroom. @@ -6972,7 +7187,7 @@ public record SimpleClassroom /// /// A GitHub Classroom assignment /// -public record SimpleClassroomAssignment +public partial record SimpleClassroomAssignment { /// /// Unique identifier of the repository. @@ -7087,7 +7302,7 @@ public record SimpleClassroomAssignment /// /// A GitHub Classroom accepted assignment /// -public record ClassroomAcceptedAssignment +public partial record ClassroomAcceptedAssignment { /// /// Unique identifier of the repository. @@ -7139,7 +7354,7 @@ public record ClassroomAcceptedAssignment /// /// Grade for a student or groups GitHub Classroom assignment /// -public record ClassroomAssignmentGrade +public partial record ClassroomAssignmentGrade { /// /// Name of the assignment @@ -7212,7 +7427,7 @@ public record ClassroomAssignmentGrade /// /// Code Of Conduct /// -public record CodeOfConduct +public partial record CodeOfConduct { [JsonPropertyName("key")] public required string Key { get; init; } @@ -7234,7 +7449,7 @@ public record CodeOfConduct /// /// GitHub Actions cache retention policy for an enterprise. /// -public record ActionsCacheRetentionLimitForEnterprise +public partial record ActionsCacheRetentionLimitForEnterprise { /// /// For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained. @@ -7247,7 +7462,7 @@ public record ActionsCacheRetentionLimitForEnterprise /// /// GitHub Actions cache storage policy for an enterprise. /// -public record ActionsCacheStorageLimitForEnterprise +public partial record ActionsCacheStorageLimitForEnterprise { /// /// For repositories & organizations in an enterprise, the maximum size limit for the sum of all caches in a repository, in gigabytes. @@ -7260,7 +7475,7 @@ public record ActionsCacheStorageLimitForEnterprise /// /// An OIDC custom property inclusion for repository properties /// -public record OidcCustomPropertyInclusion +public partial record OidcCustomPropertyInclusion { /// /// The name of the custom property that is included in the OIDC token @@ -7279,7 +7494,7 @@ public record OidcCustomPropertyInclusion /// /// Input for creating an OIDC custom property inclusion /// -public record OidcCustomPropertyInclusionInput +public partial record OidcCustomPropertyInclusionInput { /// /// The name of the custom property to include in the OIDC token @@ -7292,7 +7507,7 @@ public record OidcCustomPropertyInclusionInput /// /// A code security configuration /// -public record CodeSecurityConfiguration +public partial record CodeSecurityConfiguration { /// /// The ID of the code security configuration @@ -7473,7 +7688,7 @@ public record CodeSecurityConfiguration /// /// Security Configuration feature options for code scanning /// -public record CodeScanningOptions +public partial record CodeScanningOptions { /// /// Whether to allow repos which use advanced setup @@ -7486,7 +7701,7 @@ public record CodeScanningOptions /// /// Feature options for code scanning default setup /// -public record CodeScanningDefaultSetupOptions +public partial record CodeScanningDefaultSetupOptions { /// /// Whether to use labeled runners or standard GitHub runners. @@ -7510,7 +7725,7 @@ public record CodeSecurityDefaultConfigurations; /// /// A GitHub repository. /// -public record SimpleRepository +public partial record SimpleRepository { /// /// A unique identifier of the repository. @@ -7793,7 +8008,7 @@ public record SimpleRepository /// /// Repositories associated with a code security configuration and attachment status /// -public record CodeSecurityConfigurationRepositories +public partial record CodeSecurityConfigurationRepositories { /// /// The attachment status of the code security configuration on the repository. @@ -7812,7 +8027,7 @@ public record CodeSecurityConfigurationRepositories /// /// Links to download the Copilot usage metrics report for an enterprise/organization for a specific day. /// -public record CopilotUsageMetrics1DayReport +public partial record CopilotUsageMetrics1DayReport { /// /// The URLs to download the Copilot usage metrics report for the enterprise/organization for the specified day. @@ -7831,7 +8046,7 @@ public record CopilotUsageMetrics1DayReport /// /// Links to download the latest Copilot usage metrics report for an enterprise/organization. /// -public record CopilotUsageMetrics28DayReport +public partial record CopilotUsageMetrics28DayReport { /// /// The URLs to download the latest Copilot usage metrics report for the enterprise/organization. @@ -7860,7 +8075,7 @@ public record CopilotUsageMetrics28DayReport /// Type alias for int. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlias { public static AlertNumber Create(int value) => new(value); } @@ -7868,7 +8083,7 @@ public readonly record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlia /// /// Details for the vulnerable package. /// -public record DependabotAlertPackage +public partial record DependabotAlertPackage { /// /// The package's language or package management ecosystem. @@ -7887,7 +8102,7 @@ public record DependabotAlertPackage /// /// Details pertaining to one vulnerable version range for the advisory. /// -public record DependabotAlertSecurityVulnerability +public partial record DependabotAlertSecurityVulnerability { /// /// Details for the vulnerable package. @@ -7918,7 +8133,7 @@ public record DependabotAlertSecurityVulnerability /// /// Details for the GitHub Security Advisory. /// -public record DependabotAlertSecurityAdvisory +public partial record DependabotAlertSecurityAdvisory { /// /// The unique GitHub Security Advisory ID assigned to the advisory. @@ -8022,7 +8237,7 @@ public record DependabotAlertSecurityAdvisory /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertUrl Create(Uri value) => new(value); } @@ -8034,7 +8249,7 @@ public readonly record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertHtmlUrl Create(Uri value) => new(value); } @@ -8046,7 +8261,7 @@ public readonly record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAli /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static AlertCreatedAt Create(DateTimeOffset value) => new(value); } @@ -8058,7 +8273,7 @@ public readonly record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGen /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static AlertUpdatedAt Create(DateTimeOffset value) => new(value); } @@ -8070,7 +8285,7 @@ public readonly record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGen /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static AlertDismissedAt Create(DateTimeOffset? value) => new(value); } @@ -8082,7 +8297,7 @@ public readonly record struct AlertDismissedAt(DateTimeOffset? Value) : IOpenApi /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertFixedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertFixedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static AlertFixedAt Create(DateTimeOffset? value) => new(value); } @@ -8094,7 +8309,7 @@ public readonly record struct AlertFixedAt(DateTimeOffset? Value) : IOpenApiGene /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertAutoDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertAutoDismissedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static AlertAutoDismissedAt Create(DateTimeOffset? value) => new(value); } @@ -8102,7 +8317,7 @@ public readonly record struct AlertAutoDismissedAt(DateTimeOffset? Value) : IOpe /// /// Information about an active dismissal request for this Dependabot alert. /// -public record DependabotAlertDismissalRequestSimple +public partial record DependabotAlertDismissalRequestSimple { /// /// The unique identifier of the dismissal request. @@ -8139,7 +8354,7 @@ public record DependabotAlertDismissalRequestSimple /// /// A Dependabot alert. /// -public record DependabotAlertWithRepository +public partial record DependabotAlertWithRepository { /// /// The security alert number. @@ -8254,7 +8469,7 @@ public record DependabotAlertWithRepository /// /// A GitHub repository. /// -public record NullableSimpleRepository +public partial record NullableSimpleRepository { /// /// A unique identifier of the repository. @@ -8537,7 +8752,7 @@ public record NullableSimpleRepository /// /// Information about repositories that Dependabot is able to access in an organization /// -public record DependabotRepositoryAccessDetails +public partial record DependabotRepositoryAccessDetails { /// /// The default repository access level for Dependabot updates. @@ -8553,7 +8768,7 @@ public record DependabotRepositoryAccessDetails /// /// Group of enterprise owners and/or members /// -public record EnterpriseTeam +public partial record EnterpriseTeam { [JsonPropertyName("id")] public required long Id { get; init; } @@ -8611,7 +8826,7 @@ public record EnterpriseTeam /// /// A GitHub organization. /// -public record OrganizationSimple +public partial record OrganizationSimple { [JsonPropertyName("login")] public required string Login { get; init; } @@ -8654,7 +8869,7 @@ public record OrganizationSimple /// /// Actor /// -public record Actor +public partial record Actor { [JsonPropertyName("id")] public required int Id { get; init; } @@ -8679,7 +8894,7 @@ public record Actor /// /// Color-coded labels help you categorize and filter your issues (just like labels in Gmail). /// -public record Label +public partial record Label { /// /// Unique identifier for the label. @@ -8725,7 +8940,7 @@ public record Label /// /// A Discussion in a repository. /// -public record Discussion +public partial record Discussion { [JsonPropertyName("active_lock_reason")] public required string? ActiveLockReason { get; init; } @@ -8812,7 +9027,7 @@ public record Discussion /// /// A collection of related issues and pull requests. /// -public record NullableMilestone +public partial record NullableMilestone { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -8879,7 +9094,7 @@ public record NullableMilestone /// /// The type assigned to the issue. This is only present for issues in repositories where issue types are supported. /// -public record IssueType +public partial record IssueType { /// /// The unique identifier of the issue type. @@ -8934,7 +9149,7 @@ public record IssueType /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// -public record NullableIntegration +public partial record NullableIntegration { /// /// Unique identifier of the GitHub app @@ -9001,7 +9216,7 @@ public record NullableIntegration /// /// How the author is associated with the repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthorAssociation { [JsonStringEnumMemberName("COLLABORATOR")] @@ -9022,7 +9237,7 @@ public enum AuthorAssociation Owner } -public record ReactionRollup +public partial record ReactionRollup { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9056,7 +9271,7 @@ public record ReactionRollup } -public record SubIssuesSummary +public partial record SubIssuesSummary { [JsonPropertyName("total")] public required int Total { get; init; } @@ -9072,7 +9287,7 @@ public record SubIssuesSummary /// /// Context around who pinned an issue comment and when it was pinned. /// -public record NullablePinnedIssueComment +public partial record NullablePinnedIssueComment { [JsonPropertyName("pinned_at")] public required DateTimeOffset PinnedAt { get; init; } @@ -9085,10 +9300,23 @@ public record NullablePinnedIssueComment } +/// +/// Details about why an issue comment was minimized. +/// +public partial record NullableIssueCommentMinimized +{ + /// + /// The reason the comment was minimized. + /// + [JsonPropertyName("reason")] + public required string? Reason { get; init; } + +} + /// /// Comments provide a way for people to collaborate on an issue. /// -public record NullableIssueComment +public partial record NullableIssueComment { /// /// Unique identifier of the issue comment @@ -9156,9 +9384,15 @@ public record NullableIssueComment [JsonPropertyName("pin")] public NullablePinnedIssueComment? Pin { get; init; } + /// + /// Details about why an issue comment was minimized. + /// + [JsonPropertyName("minimized")] + public NullableIssueCommentMinimized? Minimized { get; init; } + } -public record IssueDependenciesSummary +public partial record IssueDependenciesSummary { [JsonPropertyName("blocked_by")] public required int BlockedBy { get; init; } @@ -9177,7 +9411,7 @@ public record IssueDependenciesSummary /// /// A value assigned to an issue field /// -public record IssueFieldValue +public partial record IssueFieldValue { /// /// Unique identifier for the issue field. @@ -9185,6 +9419,12 @@ public record IssueFieldValue [JsonPropertyName("issue_field_id")] public required long IssueFieldId { get; init; } + /// + /// The human-readable name of the issue field. + /// + [JsonPropertyName("issue_field_name")] + public string? IssueFieldName { get; init; } + [JsonPropertyName("node_id")] public required string NodeId { get; init; } @@ -9217,7 +9457,7 @@ public record IssueFieldValue /// /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// -public record Issue +public partial record Issue { [JsonPropertyName("id")] public required long Id { get; init; } @@ -9395,7 +9635,7 @@ public record Issue /// /// Comments provide a way for people to collaborate on an issue. /// -public record IssueComment +public partial record IssueComment { /// /// Unique identifier of the issue comment @@ -9463,9 +9703,15 @@ public record IssueComment [JsonPropertyName("pin")] public NullablePinnedIssueComment? Pin { get; init; } + /// + /// Details about why an issue comment was minimized. + /// + [JsonPropertyName("minimized")] + public NullableIssueCommentMinimized? Minimized { get; init; } + } -public record PullRequestMinimal +public partial record PullRequestMinimal { [JsonPropertyName("id")] public required long Id { get; init; } @@ -9487,7 +9733,7 @@ public record PullRequestMinimal /// /// Data related to a release. /// -public record ReleaseAsset +public partial record ReleaseAsset { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9545,7 +9791,7 @@ public record ReleaseAsset /// /// A release. /// -public record Release +public partial record Release { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9648,7 +9894,7 @@ public record Release /// /// Event /// -public record Event +public partial record Event { [JsonPropertyName("id")] public required string Id { get; init; } @@ -9685,7 +9931,7 @@ public record Event /// /// Hypermedia Link with Type /// -public record LinkWithType +public partial record LinkWithType { [JsonPropertyName("href")] public required string Href { get; init; } @@ -9698,7 +9944,7 @@ public record LinkWithType /// /// Feed /// -public record Feed +public partial record Feed { [JsonPropertyName("timeline_url")] public required string TimelineUrl { get; init; } @@ -9744,7 +9990,7 @@ public record Feed /// /// Base Gist /// -public record BaseGist +public partial record BaseGist { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -9820,7 +10066,7 @@ public record BaseGist /// /// Public User /// -public record PublicUser +public partial record PublicUser { [JsonPropertyName("login")] public required string Login { get; init; } @@ -9947,7 +10193,7 @@ public record PublicUser /// /// Gist History /// -public record GistHistory +public partial record GistHistory { /// /// A GitHub user. @@ -9972,7 +10218,7 @@ public record GistHistory /// /// Gist Simple /// -public record GistSimple +public partial record GistSimple { [JsonPropertyName("forks")] public IReadOnlyList? Forks { get; init; } @@ -10051,7 +10297,7 @@ public record GistSimple /// /// A comment made to a gist. /// -public record GistComment +public partial record GistComment { [JsonPropertyName("id")] public required int Id { get; init; } @@ -10091,7 +10337,7 @@ public record GistComment /// /// Gist Commit /// -public record GistCommit +public partial record GistCommit { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -10116,7 +10362,7 @@ public record GistCommit /// /// Gitignore Template /// -public record GitignoreTemplate +public partial record GitignoreTemplate { [JsonPropertyName("name")] public required string Name { get; init; } @@ -10129,7 +10375,7 @@ public record GitignoreTemplate /// /// License Simple /// -public record LicenseSimple +public partial record LicenseSimple { [JsonPropertyName("key")] public required string Key { get; init; } @@ -10154,7 +10400,7 @@ public record LicenseSimple /// /// License /// -public record License +public partial record License { [JsonPropertyName("key")] public required string Key { get; init; } @@ -10200,7 +10446,7 @@ public record License /// /// Marketplace Listing Plan /// -public record MarketplaceListingPlan +public partial record MarketplaceListingPlan { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -10246,7 +10492,7 @@ public record MarketplaceListingPlan /// /// Marketplace Purchase /// -public record MarketplacePurchase +public partial record MarketplacePurchase { [JsonPropertyName("url")] public required string Url { get; init; } @@ -10277,7 +10523,7 @@ public record MarketplacePurchase /// /// Api Overview /// -public record ApiOverview +public partial record ApiOverview { [JsonPropertyName("verifiable_password_authentication")] public required bool VerifiablePasswordAuthentication { get; init; } @@ -10327,12 +10573,15 @@ public record ApiOverview [JsonPropertyName("copilot")] public IReadOnlyList? Copilot { get; init; } + [JsonPropertyName("commit_signing_keys")] + public IReadOnlyList? CommitSigningKeys { get; init; } + [JsonPropertyName("domains")] public object? Domains { get; init; } } -public record SecurityAndAnalysis +public partial record SecurityAndAnalysis { /// /// Enable or disable GitHub Advanced Security for the repository. @@ -10378,7 +10627,7 @@ public record SecurityAndAnalysis /// /// Minimal Repository /// -public record MinimalRepository +public partial record MinimalRepository { [JsonPropertyName("id")] public required long Id { get; init; } @@ -10670,7 +10919,7 @@ public record MinimalRepository /// /// Thread /// -public record Thread +public partial record Thread { [JsonPropertyName("id")] public required string Id { get; init; } @@ -10707,7 +10956,7 @@ public record Thread /// /// Thread Subscription /// -public record ThreadSubscription +public partial record ThreadSubscription { [JsonPropertyName("subscribed")] public required bool Subscribed { get; init; } @@ -10735,7 +10984,7 @@ public record ThreadSubscription /// /// GitHub Actions cache retention policy for an organization. /// -public record ActionsCacheRetentionLimitForOrganization +public partial record ActionsCacheRetentionLimitForOrganization { /// /// For repositories in this organization, the maximum duration, in days, for which caches in a repository may be retained. @@ -10748,7 +10997,7 @@ public record ActionsCacheRetentionLimitForOrganization /// /// GitHub Actions cache storage policy for an organization. /// -public record ActionsCacheStorageLimitForOrganization +public partial record ActionsCacheStorageLimitForOrganization { /// /// For repositories in the organization, the maximum size limit for the sum of all caches in a repository, in gigabytes. @@ -10758,7 +11007,7 @@ public record ActionsCacheStorageLimitForOrganization } -public record BillingAiCreditUsageReportOrg +public partial record BillingAiCreditUsageReportOrg { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -10792,7 +11041,7 @@ public record BillingAiCreditUsageReportOrg } -public record Budget +public partial record Budget { /// /// The unique identifier for the budget @@ -10836,6 +11085,12 @@ public record Budget [JsonPropertyName("user")] public string? User { get; init; } + /// + /// The amount consumed for a user-scoped budget, or for a multi-user budget when filtering by user. + /// + [JsonPropertyName("consumed_amount")] + public double? ConsumedAmount { get; init; } + /// /// A single product or sku to apply the budget to. /// @@ -10847,7 +11102,7 @@ public record Budget } -public record GetAllBudgets +public partial record GetAllBudgets { /// /// Array of budget objects for the enterprise @@ -10881,7 +11136,7 @@ public record GetAllBudgets } -public record CreateBudget +public partial record CreateBudget { /// /// A message indicating the result of the create operation @@ -10894,7 +11149,7 @@ public record CreateBudget } -public record GetBudget +public partial record GetBudget { /// /// ID of the budget. @@ -10949,7 +11204,7 @@ public record GetBudget } -public record UpdateBudget +public partial record UpdateBudget { /// /// A message indicating the result of the update operation @@ -10962,7 +11217,7 @@ public record UpdateBudget } -public record DeleteBudget +public partial record DeleteBudget { /// /// A message indicating the result of the deletion operation @@ -10978,7 +11233,7 @@ public record DeleteBudget } -public record BillingPremiumRequestUsageReportOrg +public partial record BillingPremiumRequestUsageReportOrg { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -11012,14 +11267,14 @@ public record BillingPremiumRequestUsageReportOrg } -public record BillingUsageReport +public partial record BillingUsageReport { [JsonPropertyName("usageItems")] public IReadOnlyList? UsageItems { get; init; } } -public record BillingUsageSummaryReportOrg +public partial record BillingUsageSummaryReportOrg { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -11056,7 +11311,7 @@ public record BillingUsageSummaryReportOrg /// /// Organization Full /// -public record OrganizationFull +public partial record OrganizationFull { [JsonPropertyName("login")] public required string Login { get; init; } @@ -11320,7 +11575,7 @@ public record OrganizationFull } -public record ActionsCacheUsageOrgEnterprise +public partial record ActionsCacheUsageOrgEnterprise { /// /// The count of active caches across all repositories of an enterprise or an organization. @@ -11339,7 +11594,7 @@ public record ActionsCacheUsageOrgEnterprise /// /// GitHub Actions Cache Usage by repository. /// -public record ActionsCacheUsageByRepository +public partial record ActionsCacheUsageByRepository { /// /// The repository owner and name for the cache usage being shown. @@ -11364,7 +11619,7 @@ public record ActionsCacheUsageByRepository /// /// Provides details of a hosted runner image /// -public record NullableActionsHostedRunnerPoolImage +public partial record NullableActionsHostedRunnerPoolImage { /// /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. @@ -11401,7 +11656,7 @@ public record NullableActionsHostedRunnerPoolImage /// /// Provides details of a particular machine spec. /// -public record ActionsHostedRunnerMachineSpec +public partial record ActionsHostedRunnerMachineSpec { /// /// The ID used for the `size` parameter when creating a new runner. @@ -11432,7 +11687,7 @@ public record ActionsHostedRunnerMachineSpec /// /// Provides details of Public IP for a GitHub-hosted larger runners /// -public record PublicIp +public partial record PublicIp { /// /// Whether public IP is enabled. @@ -11457,7 +11712,7 @@ public record PublicIp /// /// A Github-hosted hosted runner. /// -public record ActionsHostedRunner +public partial record ActionsHostedRunner { /// /// The unique identifier of the hosted runner. @@ -11536,7 +11791,7 @@ public record ActionsHostedRunner /// /// Provides details of a custom runner image /// -public record ActionsHostedRunnerCustomImage +public partial record ActionsHostedRunnerCustomImage { /// /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. @@ -11591,7 +11846,7 @@ public record ActionsHostedRunnerCustomImage /// /// Provides details of a hosted runner custom image version /// -public record ActionsHostedRunnerCustomImageVersion +public partial record ActionsHostedRunnerCustomImageVersion { /// /// The version of image. @@ -11628,7 +11883,7 @@ public record ActionsHostedRunnerCustomImageVersion /// /// Provides details of a hosted runner image /// -public record ActionsHostedRunnerCuratedImage +public partial record ActionsHostedRunnerCuratedImage { /// /// The ID of the image. Use this ID for the `image` parameter when creating a new larger runner. @@ -11662,7 +11917,7 @@ public record ActionsHostedRunnerCuratedImage } -public record ActionsHostedRunnerLimits +public partial record ActionsHostedRunnerLimits { /// /// Provides details of static public IP limits for GitHub-hosted Hosted Runners @@ -11675,7 +11930,7 @@ public record ActionsHostedRunnerLimits /// /// Actions OIDC Subject customization /// -public record OidcCustomSub +public partial record OidcCustomSub { /// /// Array of unique strings. Each claim key can only contain alphanumeric characters and underscores. @@ -11694,14 +11949,14 @@ public record OidcCustomSub /// /// An object without any properties. /// -public record EmptyObject +public partial record EmptyObject { } /// /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EnabledRepositories { [JsonStringEnumMemberName("all")] @@ -11715,7 +11970,7 @@ public enum EnabledRepositories /// /// The permissions policy that controls the actions and reusable workflows that are allowed to run. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AllowedActions { [JsonStringEnumMemberName("all")] @@ -11733,7 +11988,7 @@ public enum AllowedActions /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SelectedActionsUrl(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SelectedActionsUrl(string Value) : IOpenApiGeneratedTypeAlias { public static SelectedActionsUrl Create(string value) => new(value); } @@ -11745,12 +12000,12 @@ public readonly record struct SelectedActionsUrl(string Value) : IOpenApiGenerat /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct ShaPinningRequired(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct ShaPinningRequired(bool Value) : IOpenApiGeneratedTypeAlias { public static ShaPinningRequired Create(bool value) => new(value); } -public record ActionsOrganizationPermissions +public partial record ActionsOrganizationPermissions { /// /// The policy that controls the repositories in the organization that are allowed to run GitHub Actions. @@ -11784,7 +12039,7 @@ public record ActionsOrganizationPermissions } -public record ActionsArtifactAndLogRetentionResponse +public partial record ActionsArtifactAndLogRetentionResponse { /// /// The number of days artifacts and logs are retained @@ -11800,7 +12055,7 @@ public record ActionsArtifactAndLogRetentionResponse } -public record ActionsArtifactAndLogRetention +public partial record ActionsArtifactAndLogRetention { /// /// The number of days to retain artifacts and logs @@ -11810,7 +12065,7 @@ public record ActionsArtifactAndLogRetention } -public record ActionsForkPrContributorApproval +public partial record ActionsForkPrContributorApproval { /// /// The policy that controls when fork PR workflows require approval from a maintainer. @@ -11820,7 +12075,7 @@ public record ActionsForkPrContributorApproval } -public record ActionsForkPrWorkflowsPrivateRepos +public partial record ActionsForkPrWorkflowsPrivateRepos { /// /// Whether workflows triggered by pull requests from forks are allowed to run on private repositories. @@ -11848,7 +12103,7 @@ public record ActionsForkPrWorkflowsPrivateRepos } -public record ActionsForkPrWorkflowsPrivateReposRequest +public partial record ActionsForkPrWorkflowsPrivateReposRequest { /// /// Whether workflows triggered by pull requests from forks are allowed to run on private repositories. @@ -11876,7 +12131,7 @@ public record ActionsForkPrWorkflowsPrivateReposRequest } -public record SelectedActions +public partial record SelectedActions { /// /// Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. @@ -11901,7 +12156,7 @@ public record SelectedActions } -public record SelfHostedRunnersSettings +public partial record SelfHostedRunnersSettings { /// /// The policy that controls whether self-hosted runners can be used by repositories in the organization @@ -11920,7 +12175,7 @@ public record SelfHostedRunnersSettings /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ActionsDefaultWorkflowPermissions { [JsonStringEnumMemberName("read")] @@ -11936,12 +12191,12 @@ public enum ActionsDefaultWorkflowPermissions /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct ActionsCanApprovePullRequestReviews(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct ActionsCanApprovePullRequestReviews(bool Value) : IOpenApiGeneratedTypeAlias { public static ActionsCanApprovePullRequestReviews Create(bool value) => new(value); } -public record ActionsGetDefaultWorkflowPermissions +public partial record ActionsGetDefaultWorkflowPermissions { /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. @@ -11957,7 +12212,7 @@ public record ActionsGetDefaultWorkflowPermissions } -public record ActionsSetDefaultWorkflowPermissions +public partial record ActionsSetDefaultWorkflowPermissions { /// /// The default workflow permissions granted to the GITHUB_TOKEN when running workflows. @@ -11973,7 +12228,7 @@ public record ActionsSetDefaultWorkflowPermissions } -public record RunnerGroupsOrg +public partial record RunnerGroupsOrg { [JsonPropertyName("id")] public required double Id { get; init; } @@ -12037,7 +12292,7 @@ public record RunnerGroupsOrg /// /// A label for a self hosted runner /// -public record RunnerLabel +public partial record RunnerLabel { /// /// Unique identifier of the label. @@ -12062,7 +12317,7 @@ public record RunnerLabel /// /// A self hosted runner /// -public record Runner +public partial record Runner { /// /// The ID of the runner. @@ -12114,7 +12369,7 @@ public record Runner /// /// Runner Application /// -public record RunnerApplication +public partial record RunnerApplication { [JsonPropertyName("os")] public required string Os { get; init; } @@ -12142,7 +12397,7 @@ public record RunnerApplication /// /// Authentication Token /// -public record AuthenticationToken +public partial record AuthenticationToken { /// /// The token used for authentication @@ -12179,7 +12434,7 @@ public record AuthenticationToken /// /// Secrets for GitHub Actions for an organization. /// -public record OrganizationActionsSecret +public partial record OrganizationActionsSecret { /// /// The name of the secret. @@ -12207,7 +12462,7 @@ public record OrganizationActionsSecret /// /// The public key used for setting Actions Secrets. /// -public record ActionsPublicKey +public partial record ActionsPublicKey { /// /// The identifier for the key. @@ -12238,7 +12493,7 @@ public record ActionsPublicKey /// /// Organization variable for GitHub Actions. /// -public record OrganizationActionsVariable +public partial record OrganizationActionsVariable { /// /// The name of the variable. @@ -12278,7 +12533,7 @@ public record OrganizationActionsVariable /// /// Artifact Metadata Deployment Record /// -public record ArtifactDeploymentRecord +public partial record ArtifactDeploymentRecord { [JsonPropertyName("id")] public int? Id { get; init; } @@ -12324,7 +12579,7 @@ public record ArtifactDeploymentRecord /// /// Indicates whether a campaign is open or closed /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CampaignState { [JsonStringEnumMemberName("open")] @@ -12336,7 +12591,7 @@ public enum CampaignState /// /// Indicates the alert type of a campaign /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CampaignAlertType { [JsonStringEnumMemberName("code_scanning")] @@ -12348,7 +12603,7 @@ public enum CampaignAlertType /// /// Groups of organization members that gives permissions on specified repositories. /// -public record NullableTeamSimple +public partial record NullableTeamSimple { /// /// Unique identifier of the team @@ -12436,7 +12691,7 @@ public record NullableTeamSimple /// /// Groups of organization members that gives permissions on specified repositories. /// -public record Team +public partial record Team { [JsonPropertyName("id")] public required int Id { get; init; } @@ -12483,6 +12738,14 @@ public record Team [JsonPropertyName("type")] public required NullableTeamSimpleType Type { get; init; } + /// + /// How the team's access to the repository was granted. This property is only + /// present when the team is returned in a repository context, such as + /// `GET /repos/{owner}/{repo}/teams`. + /// + [JsonPropertyName("access_source")] + public AccessSource? AccessSource { get; init; } + /// /// Unique identifier of the organization to which this team belongs /// @@ -12506,7 +12769,7 @@ public record Team /// /// The campaign metadata and alert stats. /// -public record CampaignSummary +public partial record CampaignSummary { /// /// The number of the newly created campaign @@ -12592,7 +12855,7 @@ public record CampaignSummary /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolName(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolName(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolName Create(string value) => new(value); } @@ -12604,7 +12867,7 @@ public readonly record struct CodeScanningAnalysisToolName(string Value) : IOpen /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolGuid(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolGuid(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolGuid Create(string? value) => new(value); } @@ -12612,7 +12875,7 @@ public readonly record struct CodeScanningAnalysisToolGuid(string? Value) : IOpe /// /// State of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertStateQuery { [JsonStringEnumMemberName("open")] @@ -12628,7 +12891,7 @@ public enum CodeScanningAlertStateQuery /// /// Severity of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertSeverity { [JsonStringEnumMemberName("critical")] @@ -12654,7 +12917,7 @@ public enum CodeScanningAlertSeverity /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertInstancesUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertInstancesUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertInstancesUrl Create(Uri value) => new(value); } @@ -12662,7 +12925,7 @@ public readonly record struct AlertInstancesUrl(Uri Value) : IOpenApiGeneratedTy /// /// State of a code scanning alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertState { [JsonStringEnumMemberName("open")] @@ -12676,7 +12939,7 @@ public enum CodeScanningAlertState /// /// **Required when the state is dismissed.** The reason for dismissing or closing the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertDismissedReason { [JsonStringEnumMemberName("false positive")] @@ -12684,7 +12947,9 @@ public enum CodeScanningAlertDismissedReason [JsonStringEnumMemberName("won't fix")] WontFix, [JsonStringEnumMemberName("used in tests")] - UsedInTests + UsedInTests, + [JsonStringEnumMemberName("mitigated")] + Mitigated } /// @@ -12694,12 +12959,12 @@ public enum CodeScanningAlertDismissedReason /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAlertDismissedComment(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAlertDismissedComment(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAlertDismissedComment Create(string? value) => new(value); } -public record CodeScanningAlertRuleSummary +public partial record CodeScanningAlertRuleSummary { /// /// A unique identifier for the rule used to detect the alert. @@ -12764,12 +13029,12 @@ public record CodeScanningAlertRuleSummary /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolVersion(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolVersion(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolVersion Create(string? value) => new(value); } -public record CodeScanningAnalysisTool +public partial record CodeScanningAnalysisTool { /// /// The name of the tool used to generate the code scanning analysis. @@ -12799,7 +13064,7 @@ public record CodeScanningAnalysisTool /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningRef Create(string value) => new(value); } @@ -12811,7 +13076,7 @@ public readonly record struct CodeScanningRef(string Value) : IOpenApiGeneratedT /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisAnalysisKey(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisAnalysisKey(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisAnalysisKey Create(string value) => new(value); } @@ -12823,7 +13088,7 @@ public readonly record struct CodeScanningAnalysisAnalysisKey(string Value) : IO /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAlertEnvironment(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAlertEnvironment(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAlertEnvironment Create(string value) => new(value); } @@ -12835,7 +13100,7 @@ public readonly record struct CodeScanningAlertEnvironment(string Value) : IOpen /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCategory(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCategory(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCategory Create(string value) => new(value); } @@ -12843,7 +13108,7 @@ public readonly record struct CodeScanningAnalysisCategory(string Value) : IOpen /// /// Describe a region within a file for the alert. /// -public record CodeScanningAlertLocation +public partial record CodeScanningAlertLocation { [JsonPropertyName("path")] public string? Path { get; init; } @@ -12865,7 +13130,7 @@ public record CodeScanningAlertLocation /// /// A classification of the file. For example to identify it as generated. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertClassification { [JsonStringEnumMemberName("source")] @@ -12878,7 +13143,7 @@ public enum CodeScanningAlertClassification Library } -public record CodeScanningAlertInstance +public partial record CodeScanningAlertInstance { /// /// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`, @@ -12935,7 +13200,7 @@ public record CodeScanningAlertInstance } -public record CodeScanningOrganizationAlertItems +public partial record CodeScanningOrganizationAlertItems { /// /// The security alert number. @@ -13038,7 +13303,7 @@ public record CodeScanningOrganizationAlertItems /// /// A description of the machine powering a codespace. /// -public record NullableCodespaceMachine +public partial record NullableCodespaceMachine { /// /// The name of the machine. @@ -13087,7 +13352,7 @@ public record NullableCodespaceMachine /// /// A codespace. /// -public record Codespace +public partial record Codespace { [JsonPropertyName("id")] public required long Id { get; init; } @@ -13271,7 +13536,7 @@ public record Codespace /// /// Secrets for a GitHub Codespace. /// -public record CodespacesOrgSecret +public partial record CodespacesOrgSecret { /// /// The name of the secret @@ -13308,7 +13573,7 @@ public record CodespacesOrgSecret /// /// The public key used for setting Codespaces secrets. /// -public record CodespacesPublicKey +public partial record CodespacesPublicKey { /// /// The identifier for the key. @@ -13339,7 +13604,7 @@ public record CodespacesPublicKey /// /// A GitHub Copilot Space represents an interactive AI workspace where users can ask questions and get assistance. /// -public record CopilotSpace +public partial record CopilotSpace { /// /// The unique identifier of the space. @@ -13428,14 +13693,14 @@ public record CopilotSpace /// /// A collaborator (user or team) of a Copilot Space /// -public record CopilotSpaceCollaborator +public partial record CopilotSpaceCollaborator { } /// /// A resource attached to a Copilot Space. /// -public record CopilotSpaceResource +public partial record CopilotSpaceResource { /// /// The unique identifier of the resource. @@ -13478,7 +13743,7 @@ public record CopilotSpaceResource /// /// The breakdown of Copilot Business seats for the organization. /// -public record CopilotOrganizationSeatBreakdown +public partial record CopilotOrganizationSeatBreakdown { /// /// The total number of seats being billed for the organization as of the current billing cycle. @@ -13521,7 +13786,7 @@ public record CopilotOrganizationSeatBreakdown /// /// Information about the seat breakdown and policies set for an organization with a Copilot Business or Copilot Enterprise subscription. /// -public record CopilotOrganizationDetails +public partial record CopilotOrganizationDetails { /// /// The breakdown of Copilot Business seats for the organization. @@ -13570,7 +13835,7 @@ public record CopilotOrganizationDetails /// /// A GitHub organization. /// -public record NullableOrganizationSimple +public partial record NullableOrganizationSimple { [JsonPropertyName("login")] public required string Login { get; init; } @@ -13613,7 +13878,7 @@ public record NullableOrganizationSimple /// /// Information about a Copilot Business seat assignment for a user, team, or organization. /// -public record CopilotSeatDetails +public partial record CopilotSeatDetails { /// /// A GitHub user. @@ -13682,135 +13947,10 @@ public record CopilotSeatDetails /// public record CopilotOrganizationContentExclusionDetails; -/// -/// Usage metrics for Copilot editor code completions in the IDE. -/// -public record CopilotIdeCodeCompletions -{ - /// - /// Number of users who accepted at least one Copilot code suggestion, across all active editors. Includes both full and partial acceptances. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// Code completion metrics for active languages. - /// - [JsonPropertyName("languages")] - public IReadOnlyList? Languages { get; init; } - - [JsonPropertyName("editors")] - public IReadOnlyList? Editors { get; init; } - -} - -/// -/// Usage metrics for Copilot Chat in the IDE. -/// -public record CopilotIdeChat -{ - /// - /// Total number of users who prompted Copilot Chat in the IDE. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - [JsonPropertyName("editors")] - public IReadOnlyList? Editors { get; init; } - -} - -/// -/// Usage metrics for Copilot Chat in GitHub.com -/// -public record CopilotDotcomChat -{ - /// - /// Total number of users who prompted Copilot Chat on github.com at least once. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// List of model metrics for a custom models and the default model. - /// - [JsonPropertyName("models")] - public IReadOnlyList? Models { get; init; } - -} - -/// -/// Usage metrics for Copilot for pull requests. -/// -public record CopilotDotcomPullRequests -{ - /// - /// The number of users who used Copilot for Pull Requests on github.com to generate a pull request summary at least once. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// Repositories in which users used Copilot for Pull Requests to generate pull request summaries - /// - [JsonPropertyName("repositories")] - public IReadOnlyList? Repositories { get; init; } - -} - -/// -/// Copilot usage metrics for a given day. -/// -public record CopilotUsageMetricsDay -{ - /// - /// The date for which the usage metrics are aggregated, in `YYYY-MM-DD` format. - /// - [JsonPropertyName("date")] - public required DateOnly Date { get; init; } - - /// - /// The total number of Copilot users with activity belonging to any Copilot feature, globally, for the given day. Includes passive activity such as receiving a code suggestion, as well as engagement activity such as accepting a code suggestion or prompting chat. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. - /// - [JsonPropertyName("total_active_users")] - public int? TotalActiveUsers { get; init; } - - /// - /// The total number of Copilot users who engaged with any Copilot feature, for the given day. Examples include but are not limited to accepting a code suggestion, prompting Copilot chat, or triggering a PR Summary. Does not include authentication events. Is not limited to the individual features detailed on the endpoint. - /// - [JsonPropertyName("total_engaged_users")] - public int? TotalEngagedUsers { get; init; } - - /// - /// Usage metrics for Copilot editor code completions in the IDE. - /// - [JsonPropertyName("copilot_ide_code_completions")] - public CopilotIdeCodeCompletions? CopilotIdeCodeCompletions { get; init; } - - /// - /// Usage metrics for Copilot Chat in the IDE. - /// - [JsonPropertyName("copilot_ide_chat")] - public CopilotIdeChat? CopilotIdeChat { get; init; } - - /// - /// Usage metrics for Copilot Chat in GitHub.com - /// - [JsonPropertyName("copilot_dotcom_chat")] - public CopilotDotcomChat? CopilotDotcomChat { get; init; } - - /// - /// Usage metrics for Copilot for pull requests. - /// - [JsonPropertyName("copilot_dotcom_pull_requests")] - public CopilotDotcomPullRequests? CopilotDotcomPullRequests { get; init; } - -} - /// /// Secrets for GitHub Dependabot for an organization. /// -public record OrganizationDependabotSecret +public partial record OrganizationDependabotSecret { /// /// The name of the secret. @@ -13838,7 +13978,7 @@ public record OrganizationDependabotSecret /// /// The public key used for setting Dependabot Secrets. /// -public record DependabotPublicKey +public partial record DependabotPublicKey { /// /// The identifier for the key. @@ -13857,7 +13997,7 @@ public record DependabotPublicKey /// /// Minimal Repository /// -public record NullableMinimalRepository +public partial record NullableMinimalRepository { [JsonPropertyName("id")] public required long Id { get; init; } @@ -14149,7 +14289,7 @@ public record NullableMinimalRepository /// /// A software package /// -public record Package +public partial record Package { /// /// Unique identifier of the package. @@ -14204,7 +14344,7 @@ public record Package /// /// Organization Invitation /// -public record OrganizationInvitation +public partial record OrganizationInvitation { [JsonPropertyName("id")] public required long Id { get; init; } @@ -14250,7 +14390,7 @@ public record OrganizationInvitation /// /// Org Hook /// -public record OrgHook +public partial record OrgHook { [JsonPropertyName("id")] public required int Id { get; init; } @@ -14300,7 +14440,7 @@ public record ApiInsightsSubjectStats; /// /// API Insights usage summary stats for an organization /// -public record ApiInsightsSummaryStats +public partial record ApiInsightsSummaryStats { /// /// The total number of requests within the queried time period @@ -14329,7 +14469,7 @@ public record ApiInsightsUserStats; /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InteractionGroup { [JsonStringEnumMemberName("existing_users")] @@ -14343,7 +14483,7 @@ public enum InteractionGroup /// /// Interaction limit settings. /// -public record InteractionLimitResponse +public partial record InteractionLimitResponse { /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. @@ -14362,7 +14502,7 @@ public record InteractionLimitResponse /// /// The duration of the interaction restriction. Default: `one_day`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InteractionExpiry { [JsonStringEnumMemberName("one_day")] @@ -14380,7 +14520,7 @@ public enum InteractionExpiry /// /// Limit interactions to a specific type of user for a specified duration /// -public record InteractionLimit +public partial record InteractionLimit { /// /// The type of GitHub user that can comment, open issues, or create pull requests while the interaction limit is in effect. @@ -14399,7 +14539,7 @@ public record InteractionLimit /// /// A custom attribute defined at the organization level for attaching structured data to issues. /// -public record IssueField +public partial record IssueField { /// /// The unique identifier of the issue field. @@ -14457,7 +14597,7 @@ public record IssueField } -public record OrganizationCreateIssueField +public partial record OrganizationCreateIssueField { /// /// Name of the issue field. @@ -14491,7 +14631,7 @@ public record OrganizationCreateIssueField } -public record OrganizationUpdateIssueField +public partial record OrganizationUpdateIssueField { /// /// Name of the issue field. @@ -14519,7 +14659,7 @@ public record OrganizationUpdateIssueField } -public record OrganizationCreateIssueType +public partial record OrganizationCreateIssueType { /// /// Name of the issue type. @@ -14547,7 +14687,7 @@ public record OrganizationCreateIssueType } -public record OrganizationUpdateIssueType +public partial record OrganizationUpdateIssueType { /// /// Name of the issue type. @@ -14578,7 +14718,7 @@ public record OrganizationUpdateIssueType /// /// Org Membership /// -public record OrgMembership +public partial record OrgMembership { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -14631,7 +14771,7 @@ public record OrgMembership /// /// A migration. /// -public record Migration +public partial record Migration { [JsonPropertyName("id")] public required long Id { get; init; } @@ -14701,7 +14841,7 @@ public record Migration /// /// Organization roles /// -public record OrganizationRole +public partial record OrganizationRole { /// /// The unique identifier of the role. @@ -14762,7 +14902,7 @@ public record OrganizationRole /// /// The Relationship a Team has with a role. /// -public record TeamRoleAssignment +public partial record TeamRoleAssignment { /// /// Determines if the team has a direct, indirect, or mixed relationship to a role @@ -14838,7 +14978,7 @@ public record TeamRoleAssignment /// /// Groups of organization members that gives permissions on specified repositories. /// -public record TeamSimple +public partial record TeamSimple { /// /// Unique identifier of the team @@ -14926,7 +15066,7 @@ public record TeamSimple /// /// The Relationship a User has with a role. /// -public record UserRoleAssignment +public partial record UserRoleAssignment { /// /// Determines if the user has a direct, indirect, or mixed relationship to a role @@ -15011,7 +15151,7 @@ public record UserRoleAssignment /// /// A version of a software package /// -public record PackageVersion +public partial record PackageVersion { /// /// Unique identifier of the package version. @@ -15057,7 +15197,7 @@ public record PackageVersion /// /// Minimal representation of an organization programmatic access grant request for enumerations /// -public record OrganizationProgrammaticAccessGrantRequest +public partial record OrganizationProgrammaticAccessGrantRequest { /// /// Unique identifier of the request for access via fine-grained personal access token. The `pat_request_id` used to review PAT requests. @@ -15136,7 +15276,7 @@ public record OrganizationProgrammaticAccessGrantRequest /// /// Minimal representation of an organization programmatic access grant for enumerations /// -public record OrganizationProgrammaticAccessGrant +public partial record OrganizationProgrammaticAccessGrant { /// /// Unique identifier of the fine-grained personal access token grant. The `pat_id` used to get details about an approved fine-grained personal access token. @@ -15209,7 +15349,7 @@ public record OrganizationProgrammaticAccessGrant /// /// Private registry configuration for an organization /// -public record OrgPrivateRegistryConfiguration +public partial record OrgPrivateRegistryConfiguration { /// /// The name of the private registry configuration. @@ -15354,7 +15494,7 @@ public record OrgPrivateRegistryConfiguration /// /// Private registry configuration for an organization /// -public record OrgPrivateRegistryConfigurationWithSelectedRepositories +public partial record OrgPrivateRegistryConfigurationWithSelectedRepositories { /// /// The name of the private registry configuration. @@ -15505,7 +15645,7 @@ public record OrgPrivateRegistryConfigurationWithSelectedRepositories /// /// An status update belonging to a project /// -public record NullableProjectsV2StatusUpdate +public partial record NullableProjectsV2StatusUpdate { /// /// The unique identifier of the status update. @@ -15572,7 +15712,7 @@ public record NullableProjectsV2StatusUpdate /// /// A projects v2 project /// -public record ProjectsV2 +public partial record ProjectsV2 { /// /// The unique identifier of the project. @@ -15681,7 +15821,7 @@ public record ProjectsV2 /// /// Hypermedia Link /// -public record Link +public partial record Link { [JsonPropertyName("href")] public required string Href { get; init; } @@ -15691,7 +15831,7 @@ public record Link /// /// The status of auto merging a pull request. /// -public record AutoMerge +public partial record AutoMerge { /// /// A GitHub user. @@ -15719,10 +15859,44 @@ public record AutoMerge } +/// +/// The stack information associated with a pull request. +/// +public partial record PullRequestStack +{ + [JsonPropertyName("base")] + public required object Base { get; init; } + + /// + /// The total number of pull requests in the stack. + /// + [JsonPropertyName("size")] + public int? Size { get; init; } + + /// + /// The one-based position of this pull request within the stack, where 1 is the bottom of the stack. + /// + [JsonPropertyName("position")] + public int? Position { get; init; } + + /// + /// The ID of the stack that this pull request belongs to. + /// + [JsonPropertyName("id")] + public int? Id { get; init; } + + /// + /// The number of the stack that this pull request belongs to. + /// + [JsonPropertyName("number")] + public int? Number { get; init; } + +} + /// /// Pull Request Simple /// -public record PullRequestSimple +public partial record PullRequestSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -15844,6 +16018,12 @@ public record PullRequestSimple [JsonPropertyName("auto_merge")] public required AutoMerge? AutoMerge { get; init; } + /// + /// The stack information associated with a pull request. + /// + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } + /// /// Indicates whether or not the pull request is a draft. /// @@ -15855,7 +16035,7 @@ public record PullRequestSimple /// /// A draft issue in a project /// -public record ProjectsV2DraftIssue +public partial record ProjectsV2DraftIssue { /// /// The ID of the draft issue @@ -15904,7 +16084,7 @@ public record ProjectsV2DraftIssue /// /// The type of content tracked in a project item /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProjectsV2ItemContentType { [JsonStringEnumMemberName("Issue")] @@ -15918,7 +16098,7 @@ public enum ProjectsV2ItemContentType /// /// An item belonging to a project /// -public record ProjectsV2ItemSimple +public partial record ProjectsV2ItemSimple { /// /// The unique identifier of the project item. @@ -15985,7 +16165,7 @@ public record ProjectsV2ItemSimple /// /// An option for a single select field /// -public record ProjectsV2SingleSelectOptions +public partial record ProjectsV2SingleSelectOptions { /// /// The unique identifier of the option. @@ -16016,7 +16196,7 @@ public record ProjectsV2SingleSelectOptions /// /// An iteration setting for an iteration field /// -public record ProjectsV2IterationSettings +public partial record ProjectsV2IterationSettings { /// /// The unique identifier of the iteration setting. @@ -16053,7 +16233,7 @@ public record ProjectsV2IterationSettings /// /// A field inside a projects v2 project /// -public record ProjectsV2Field +public partial record ProjectsV2Field { /// /// The unique identifier of the field. @@ -16117,7 +16297,7 @@ public record ProjectsV2Field } -public record ProjectsV2FieldSingleSelectOption +public partial record ProjectsV2FieldSingleSelectOption { /// /// The display name of the option. @@ -16142,19 +16322,19 @@ public record ProjectsV2FieldSingleSelectOption /// /// The configuration for iteration fields. /// -public record ProjectsV2FieldIterationConfiguration +public partial record ProjectsV2FieldIterationConfiguration { /// /// The start date of the first iteration. /// [JsonPropertyName("start_date")] - public DateOnly? StartDate { get; init; } + public required DateOnly StartDate { get; init; } /// /// The default duration for iterations in days. Individual iterations can override this value. /// [JsonPropertyName("duration")] - public int? Duration { get; init; } + public required int Duration { get; init; } /// /// Zero or more iterations for the field. @@ -16167,7 +16347,7 @@ public record ProjectsV2FieldIterationConfiguration /// /// An item belonging to a project /// -public record ProjectsV2ItemWithContent +public partial record ProjectsV2ItemWithContent { /// /// The unique identifier of the project item. @@ -16240,7 +16420,7 @@ public record ProjectsV2ItemWithContent /// /// A view inside a projects v2 project /// -public record ProjectsV2View +public partial record ProjectsV2View { /// /// The unique identifier of the view. @@ -16334,7 +16514,7 @@ public record ProjectsV2View /// /// Custom property defined on an organization /// -public record CustomProperty +public partial record CustomProperty { /// /// The name of the property @@ -16402,7 +16582,7 @@ public record CustomProperty /// /// Custom property set payload /// -public record CustomPropertySetPayload +public partial record CustomPropertySetPayload { /// /// The type of the value for the property @@ -16452,7 +16632,7 @@ public record CustomPropertySetPayload /// /// Custom property name and associated value /// -public record CustomPropertyValue +public partial record CustomPropertyValue { /// /// The name of the property @@ -16471,7 +16651,7 @@ public record CustomPropertyValue /// /// List of custom property values for a repository /// -public record OrgRepoCustomPropertyValues +public partial record OrgRepoCustomPropertyValues { [JsonPropertyName("repository_id")] public required int RepositoryId { get; init; } @@ -16493,7 +16673,7 @@ public record OrgRepoCustomPropertyValues /// /// A repository on GitHub. /// -public record NullableRepository +public partial record NullableRepository { /// /// Unique identifier of the repository @@ -16907,7 +17087,7 @@ public record NullableRepository /// /// Code of Conduct Simple /// -public record CodeOfConductSimple +public partial record CodeOfConductSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -16926,7 +17106,7 @@ public record CodeOfConductSimple /// /// Full Repository /// -public record FullRepository +public partial record FullRepository { [JsonPropertyName("id")] public required long Id { get; init; } @@ -17313,7 +17493,7 @@ public record FullRepository /// /// The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryRuleEnforcement { [JsonStringEnumMemberName("disabled")] @@ -17327,7 +17507,7 @@ public enum RepositoryRuleEnforcement /// /// An actor that can bypass rules in a ruleset /// -public record RepositoryRulesetBypassActor +public partial record RepositoryRulesetBypassActor { /// /// The ID of the actor that can bypass a ruleset. Required for `Integration`, `RepositoryRole`, `Team`, and `User` actor types. If `actor_type` is `OrganizationAdmin`, `actor_id` is ignored. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. @@ -17352,7 +17532,7 @@ public record RepositoryRulesetBypassActor /// /// Parameters for a repository ruleset ref name condition /// -public record RepositoryRulesetConditions +public partial record RepositoryRulesetConditions { [JsonPropertyName("ref_name")] public object? RefName { get; init; } @@ -17362,7 +17542,7 @@ public record RepositoryRulesetConditions /// /// Parameters for a repository name condition /// -public record RepositoryRulesetConditionsRepositoryNameTarget +public partial record RepositoryRulesetConditionsRepositoryNameTarget { [JsonPropertyName("repository_name")] public required object RepositoryName { get; init; } @@ -17372,7 +17552,7 @@ public record RepositoryRulesetConditionsRepositoryNameTarget /// /// Parameters for a repository ID condition /// -public record RepositoryRulesetConditionsRepositoryIdTarget +public partial record RepositoryRulesetConditionsRepositoryIdTarget { [JsonPropertyName("repository_id")] public required object RepositoryId { get; init; } @@ -17382,7 +17562,7 @@ public record RepositoryRulesetConditionsRepositoryIdTarget /// /// Parameters for a targeting a repository property /// -public record RepositoryRulesetConditionsRepositoryPropertySpec +public partial record RepositoryRulesetConditionsRepositoryPropertySpec { /// /// The name of the repository property to target @@ -17407,7 +17587,7 @@ public record RepositoryRulesetConditionsRepositoryPropertySpec /// /// Parameters for a repository property condition /// -public record RepositoryRulesetConditionsRepositoryPropertyTarget +public partial record RepositoryRulesetConditionsRepositoryPropertyTarget { [JsonPropertyName("repository_property")] public required object RepositoryProperty { get; init; } @@ -17420,14 +17600,14 @@ public record RepositoryRulesetConditionsRepositoryPropertyTarget /// The push rulesets conditions object does not require the `ref_name` property. /// For repository policy rulesets, the conditions object should only contain the `repository_name`, the `repository_id`, or the `repository_property`. /// -public record OrgRulesetConditions +public partial record OrgRulesetConditions { } /// /// Only allow users with bypass permission to create matching refs. /// -public record RepositoryRuleCreation +public partial record RepositoryRuleCreation { [JsonPropertyName("type")] public required RepositoryRuleCreationType Type { get; init; } @@ -17437,7 +17617,7 @@ public record RepositoryRuleCreation /// /// Only allow users with bypass permission to update matching refs. /// -public record RepositoryRuleUpdate +public partial record RepositoryRuleUpdate { [JsonPropertyName("type")] public required RepositoryRuleUpdateType Type { get; init; } @@ -17450,7 +17630,7 @@ public record RepositoryRuleUpdate /// /// Only allow users with bypass permissions to delete matching refs. /// -public record RepositoryRuleDeletion +public partial record RepositoryRuleDeletion { [JsonPropertyName("type")] public required RepositoryRuleDeletionType Type { get; init; } @@ -17460,7 +17640,7 @@ public record RepositoryRuleDeletion /// /// Prevent merge commits from being pushed to matching refs. /// -public record RepositoryRuleRequiredLinearHistory +public partial record RepositoryRuleRequiredLinearHistory { [JsonPropertyName("type")] public required RepositoryRuleRequiredLinearHistoryType Type { get; init; } @@ -17470,7 +17650,7 @@ public record RepositoryRuleRequiredLinearHistory /// /// Merges must be performed via a merge queue. /// -public record RepositoryRuleMergeQueue +public partial record RepositoryRuleMergeQueue { [JsonPropertyName("type")] public required RepositoryRuleMergeQueueType Type { get; init; } @@ -17483,7 +17663,7 @@ public record RepositoryRuleMergeQueue /// /// Choose which environments must be successfully deployed to before refs can be pushed into a ref that matches this rule. /// -public record RepositoryRuleRequiredDeployments +public partial record RepositoryRuleRequiredDeployments { [JsonPropertyName("type")] public required RepositoryRuleRequiredDeploymentsType Type { get; init; } @@ -17496,7 +17676,7 @@ public record RepositoryRuleRequiredDeployments /// /// Commits pushed to matching refs must have verified signatures. /// -public record RepositoryRuleRequiredSignatures +public partial record RepositoryRuleRequiredSignatures { [JsonPropertyName("type")] public required RepositoryRuleRequiredSignaturesType Type { get; init; } @@ -17506,7 +17686,7 @@ public record RepositoryRuleRequiredSignatures /// /// An actor allowed to dismiss pull request reviews /// -public record RepositoryRuleParamsActor +public partial record RepositoryRuleParamsActor { /// /// ID of the actor that can dismiss reviews. @@ -17525,7 +17705,7 @@ public record RepositoryRuleParamsActor /// /// Specify people, teams, or apps allowed to dismiss pull request reviews. /// -public record RepositoryRuleParamsDismissalRestriction +public partial record RepositoryRuleParamsDismissalRestriction { /// /// Specify people, teams, or apps allowed to dismiss pull request reviews. @@ -17544,7 +17724,7 @@ public record RepositoryRuleParamsDismissalRestriction /// /// A required reviewing team /// -public record RepositoryRuleParamsReviewer +public partial record RepositoryRuleParamsReviewer { /// /// ID of the reviewer which must review changes to matching files. @@ -17563,7 +17743,7 @@ public record RepositoryRuleParamsReviewer /// /// A reviewing team, and file patterns describing which files they must approve changes to. /// -public record RepositoryRuleParamsRequiredReviewerConfiguration +public partial record RepositoryRuleParamsRequiredReviewerConfiguration { /// /// Array of file patterns. Pull requests which change matching files must be approved by the specified team. File patterns use fnmatch syntax. @@ -17588,7 +17768,7 @@ public record RepositoryRuleParamsRequiredReviewerConfiguration /// /// Require all commits be made to a non-target branch and submitted via a pull request before they can be merged. /// -public record RepositoryRulePullRequest +public partial record RepositoryRulePullRequest { [JsonPropertyName("type")] public required RepositoryRulePullRequestType Type { get; init; } @@ -17601,7 +17781,7 @@ public record RepositoryRulePullRequest /// /// Required status check /// -public record RepositoryRuleParamsStatusCheckConfiguration +public partial record RepositoryRuleParamsStatusCheckConfiguration { /// /// The status check context name that must be present on the commit. @@ -17620,7 +17800,7 @@ public record RepositoryRuleParamsStatusCheckConfiguration /// /// Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass. /// -public record RepositoryRuleRequiredStatusChecks +public partial record RepositoryRuleRequiredStatusChecks { [JsonPropertyName("type")] public required RepositoryRuleRequiredStatusChecksType Type { get; init; } @@ -17633,7 +17813,7 @@ public record RepositoryRuleRequiredStatusChecks /// /// Prevent users with push access from force pushing to refs. /// -public record RepositoryRuleNonFastForward +public partial record RepositoryRuleNonFastForward { [JsonPropertyName("type")] public required RepositoryRuleNonFastForwardType Type { get; init; } @@ -17643,7 +17823,7 @@ public record RepositoryRuleNonFastForward /// /// Parameters to be used for the commit_message_pattern rule /// -public record RepositoryRuleCommitMessagePattern +public partial record RepositoryRuleCommitMessagePattern { [JsonPropertyName("type")] public required RepositoryRuleCommitMessagePatternType Type { get; init; } @@ -17656,7 +17836,7 @@ public record RepositoryRuleCommitMessagePattern /// /// Parameters to be used for the commit_author_email_pattern rule /// -public record RepositoryRuleCommitAuthorEmailPattern +public partial record RepositoryRuleCommitAuthorEmailPattern { [JsonPropertyName("type")] public required RepositoryRuleCommitAuthorEmailPatternType Type { get; init; } @@ -17669,7 +17849,7 @@ public record RepositoryRuleCommitAuthorEmailPattern /// /// Parameters to be used for the committer_email_pattern rule /// -public record RepositoryRuleCommitterEmailPattern +public partial record RepositoryRuleCommitterEmailPattern { [JsonPropertyName("type")] public required RepositoryRuleCommitterEmailPatternType Type { get; init; } @@ -17682,7 +17862,7 @@ public record RepositoryRuleCommitterEmailPattern /// /// Parameters to be used for the branch_name_pattern rule /// -public record RepositoryRuleBranchNamePattern +public partial record RepositoryRuleBranchNamePattern { [JsonPropertyName("type")] public required RepositoryRuleBranchNamePatternType Type { get; init; } @@ -17695,7 +17875,7 @@ public record RepositoryRuleBranchNamePattern /// /// Parameters to be used for the tag_name_pattern rule /// -public record RepositoryRuleTagNamePattern +public partial record RepositoryRuleTagNamePattern { [JsonPropertyName("type")] public required RepositoryRuleTagNamePatternType Type { get; init; } @@ -17708,7 +17888,7 @@ public record RepositoryRuleTagNamePattern /// /// Restricted commit /// -public record RepositoryRuleParamsRestrictedCommits +public partial record RepositoryRuleParamsRestrictedCommits { /// /// Full or abbreviated commit hash to reject @@ -17727,7 +17907,7 @@ public record RepositoryRuleParamsRestrictedCommits /// /// A workflow that must run for this rule to pass /// -public record RepositoryRuleParamsWorkflowFileReference +public partial record RepositoryRuleParamsWorkflowFileReference { /// /// The path to the workflow file @@ -17758,7 +17938,7 @@ public record RepositoryRuleParamsWorkflowFileReference /// /// Require all changes made to a targeted branch to pass the specified workflows before they can be merged. /// -public record RepositoryRuleWorkflows +public partial record RepositoryRuleWorkflows { [JsonPropertyName("type")] public required RepositoryRuleWorkflowsType Type { get; init; } @@ -17771,7 +17951,7 @@ public record RepositoryRuleWorkflows /// /// A tool that must provide code scanning results for this rule to pass. /// -public record RepositoryRuleParamsCodeScanningTool +public partial record RepositoryRuleParamsCodeScanningTool { /// /// The severity level at which code scanning results that raise alerts block a reference update. For more information on alert severity levels, see "[About code scanning alerts](https://docs.github.com/code-security/code-scanning/managing-code-scanning-alerts/about-code-scanning-alerts#about-alert-severity-and-security-severity-levels)." @@ -17796,7 +17976,7 @@ public record RepositoryRuleParamsCodeScanningTool /// /// Choose which tools must provide code scanning results before the reference is updated. When configured, code scanning must be enabled and have results for both the commit and the reference being updated. /// -public record RepositoryRuleCodeScanning +public partial record RepositoryRuleCodeScanning { [JsonPropertyName("type")] public required RepositoryRuleCodeScanningType Type { get; init; } @@ -17809,7 +17989,7 @@ public record RepositoryRuleCodeScanning /// /// Request Copilot code review for new pull requests automatically if the author has access to Copilot code review and their premium requests quota has not reached the limit. /// -public record RepositoryRuleCopilotCodeReview +public partial record RepositoryRuleCopilotCodeReview { [JsonPropertyName("type")] public required RepositoryRuleCopilotCodeReviewType Type { get; init; } @@ -17819,10 +17999,20 @@ public record RepositoryRuleCopilotCodeReview } +/// +/// Enforce any added or changed dependencies to comply with the organization's license policy. +/// +public partial record RepositoryRuleLicenseComplianceScanning +{ + [JsonPropertyName("type")] + public required RepositoryRuleLicenseComplianceScanningType Type { get; init; } + +} + /// /// Prevent commits that include changes in specified file and folder paths from being pushed to the commit graph. This includes absolute paths that contain file names. /// -public record RepositoryRuleFilePathRestriction +public partial record RepositoryRuleFilePathRestriction { [JsonPropertyName("type")] public required RepositoryRuleFilePathRestrictionType Type { get; init; } @@ -17835,7 +18025,7 @@ public record RepositoryRuleFilePathRestriction /// /// Prevent commits that include file paths that exceed the specified character limit from being pushed to the commit graph. /// -public record RepositoryRuleMaxFilePathLength +public partial record RepositoryRuleMaxFilePathLength { [JsonPropertyName("type")] public required RepositoryRuleMaxFilePathLengthType Type { get; init; } @@ -17848,7 +18038,7 @@ public record RepositoryRuleMaxFilePathLength /// /// Prevent commits that include files with specified file extensions from being pushed to the commit graph. /// -public record RepositoryRuleFileExtensionRestriction +public partial record RepositoryRuleFileExtensionRestriction { [JsonPropertyName("type")] public required RepositoryRuleFileExtensionRestrictionType Type { get; init; } @@ -17861,7 +18051,7 @@ public record RepositoryRuleFileExtensionRestriction /// /// Prevent commits with individual files that exceed the specified limit from being pushed to the commit graph. /// -public record RepositoryRuleMaxFileSize +public partial record RepositoryRuleMaxFileSize { [JsonPropertyName("type")] public required RepositoryRuleMaxFileSizeType Type { get; init; } @@ -17874,14 +18064,14 @@ public record RepositoryRuleMaxFileSize /// /// A repository rule. /// -public record RepositoryRule +public partial record RepositoryRule { } /// /// A set of rules to apply when specified conditions are met. /// -public record RepositoryRuleset +public partial record RepositoryRuleset { /// /// The ID of the ruleset @@ -17955,7 +18145,7 @@ public record RepositoryRuleset /// /// A repository rule. /// -public record OrgRules +public partial record OrgRules { } @@ -17967,7 +18157,7 @@ public record RuleSuites; /// /// Metadata for a pull request rule evaluation result. /// -public record RuleSuitePullRequest +public partial record RuleSuitePullRequest { /// /// The pull request associated with the rule evaluation. @@ -17980,7 +18170,7 @@ public record RuleSuitePullRequest /// /// Metadata for a required status checks rule evaluation result. /// -public record RuleSuiteRequiredStatusChecks +public partial record RuleSuiteRequiredStatusChecks { /// /// The status checks associated with the rule evaluation. @@ -17993,7 +18183,7 @@ public record RuleSuiteRequiredStatusChecks /// /// Response /// -public record RuleSuite +public partial record RuleSuite { /// /// The unique identifier of the rule insight. @@ -18069,7 +18259,7 @@ public record RuleSuite /// /// The historical version of a ruleset /// -public record RulesetVersion +public partial record RulesetVersion { /// /// The ID of the previous version of the ruleset @@ -18088,7 +18278,7 @@ public record RulesetVersion } -public record RulesetVersionWithState : RulesetVersion +public partial record RulesetVersionWithState : RulesetVersion { /// /// The state of the ruleset version @@ -18105,7 +18295,7 @@ public record RulesetVersionWithState : RulesetVersion /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct NullableAlertUpdatedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct NullableAlertUpdatedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static NullableAlertUpdatedAt Create(DateTimeOffset? value) => new(value); } @@ -18113,7 +18303,7 @@ public readonly record struct NullableAlertUpdatedAt(DateTimeOffset? Value) : IO /// /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertState { [JsonStringEnumMemberName("open")] @@ -18125,7 +18315,7 @@ public enum SecretScanningAlertState /// /// **Required when the `state` is `resolved`.** The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertResolution { [JsonStringEnumMemberName("false_positive")] @@ -18141,7 +18331,7 @@ public enum SecretScanningAlertResolution /// /// Represents a 'commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository. /// -public record SecretScanningLocationCommit +public partial record SecretScanningLocationCommit { /// /// The file path in the repository @@ -18208,7 +18398,7 @@ public record SecretScanningLocationCommit /// /// Represents a 'wiki_commit' secret scanning location type. This location type shows that a secret was detected inside a commit to a repository wiki. /// -public record SecretScanningLocationWikiCommit +public partial record SecretScanningLocationWikiCommit { /// /// The file path of the wiki page @@ -18269,7 +18459,7 @@ public record SecretScanningLocationWikiCommit /// /// Represents an 'issue_title' secret scanning location type. This location type shows that a secret was detected in the title of an issue. /// -public record SecretScanningLocationIssueTitle +public partial record SecretScanningLocationIssueTitle { /// /// The API URL to get the issue where the secret was detected. @@ -18288,7 +18478,7 @@ public record SecretScanningLocationIssueTitle /// /// Represents an 'issue_body' secret scanning location type. This location type shows that a secret was detected in the body of an issue. /// -public record SecretScanningLocationIssueBody +public partial record SecretScanningLocationIssueBody { /// /// The API URL to get the issue where the secret was detected. @@ -18307,7 +18497,7 @@ public record SecretScanningLocationIssueBody /// /// Represents an 'issue_comment' secret scanning location type. This location type shows that a secret was detected in a comment on an issue. /// -public record SecretScanningLocationIssueComment +public partial record SecretScanningLocationIssueComment { /// /// The API URL to get the issue comment where the secret was detected. @@ -18326,7 +18516,7 @@ public record SecretScanningLocationIssueComment /// /// Represents a 'discussion_title' secret scanning location type. This location type shows that a secret was detected in the title of a discussion. /// -public record SecretScanningLocationDiscussionTitle +public partial record SecretScanningLocationDiscussionTitle { /// /// The URL to the discussion where the secret was detected. @@ -18339,7 +18529,7 @@ public record SecretScanningLocationDiscussionTitle /// /// Represents a 'discussion_body' secret scanning location type. This location type shows that a secret was detected in the body of a discussion. /// -public record SecretScanningLocationDiscussionBody +public partial record SecretScanningLocationDiscussionBody { /// /// The URL to the discussion where the secret was detected. @@ -18352,7 +18542,7 @@ public record SecretScanningLocationDiscussionBody /// /// Represents a 'discussion_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a discussion. /// -public record SecretScanningLocationDiscussionComment +public partial record SecretScanningLocationDiscussionComment { /// /// The API URL to get the discussion comment where the secret was detected. @@ -18365,7 +18555,7 @@ public record SecretScanningLocationDiscussionComment /// /// Represents a 'pull_request_title' secret scanning location type. This location type shows that a secret was detected in the title of a pull request. /// -public record SecretScanningLocationPullRequestTitle +public partial record SecretScanningLocationPullRequestTitle { /// /// The API URL to get the pull request where the secret was detected. @@ -18384,7 +18574,7 @@ public record SecretScanningLocationPullRequestTitle /// /// Represents a 'pull_request_body' secret scanning location type. This location type shows that a secret was detected in the body of a pull request. /// -public record SecretScanningLocationPullRequestBody +public partial record SecretScanningLocationPullRequestBody { /// /// The API URL to get the pull request where the secret was detected. @@ -18403,7 +18593,7 @@ public record SecretScanningLocationPullRequestBody /// /// Represents a 'pull_request_comment' secret scanning location type. This location type shows that a secret was detected in a comment on a pull request. /// -public record SecretScanningLocationPullRequestComment +public partial record SecretScanningLocationPullRequestComment { /// /// The API URL to get the pull request comment where the secret was detected. @@ -18422,7 +18612,7 @@ public record SecretScanningLocationPullRequestComment /// /// Represents a 'pull_request_review' secret scanning location type. This location type shows that a secret was detected in a review on a pull request. /// -public record SecretScanningLocationPullRequestReview +public partial record SecretScanningLocationPullRequestReview { /// /// The API URL to get the pull request review where the secret was detected. @@ -18441,7 +18631,7 @@ public record SecretScanningLocationPullRequestReview /// /// Represents a 'pull_request_review_comment' secret scanning location type. This location type shows that a secret was detected in a review comment on a pull request. /// -public record SecretScanningLocationPullRequestReviewComment +public partial record SecretScanningLocationPullRequestReviewComment { /// /// The API URL to get the pull request review comment where the secret was detected. @@ -18477,9 +18667,9 @@ public record SecretScanningLocationPullRequestReviewComment [JsonDerivedType(typeof(SecretScanningLocationPullRequestComment), "secret-scanning-location-pull-request-comment")] [JsonDerivedType(typeof(SecretScanningLocationPullRequestReview), "secret-scanning-location-pull-request-review")] [JsonDerivedType(typeof(SecretScanningLocationPullRequestReviewComment), "secret-scanning-location-pull-request-review-comment")] -public abstract record NullableSecretScanningFirstDetectedLocation; +public abstract partial record NullableSecretScanningFirstDetectedLocation; -public record OrganizationSecretScanningAlert +public partial record OrganizationSecretScanningAlert { /// /// The security alert number. @@ -18696,12 +18886,223 @@ public record OrganizationSecretScanningAlert /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningRowVersion(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningRowVersion(string? Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningRowVersion Create(string? value) => new(value); } -public record SecretScanningPatternOverride +/// +/// A custom pattern for secret scanning. +/// +public partial record SecretScanningCustomPattern +{ + /// + /// The ID of the custom pattern. + /// + [JsonPropertyName("id")] + public required int Id { get; init; } + + /// + /// The name of the custom pattern. + /// + [JsonPropertyName("name")] + public required string Name { get; init; } + + /// + /// The regular expression of the custom pattern. + /// + [JsonPropertyName("pattern")] + public required string Pattern { get; init; } + + /// + /// A URL-friendly identifier for the custom pattern, derived from its name. + /// + [JsonPropertyName("slug")] + public required string Slug { get; init; } + + /// + /// The state of the custom pattern. + /// + [JsonPropertyName("state")] + public required SecretScanningCustomPatternState State { get; init; } + + /// + /// Whether push protection is enabled for this custom pattern. + /// + [JsonPropertyName("push_protection_enabled")] + public required bool PushProtectionEnabled { get; init; } + + /// + /// The start delimiter regex for the custom pattern. + /// + [JsonPropertyName("start_delimiter")] + public string? StartDelimiter { get; init; } + + /// + /// The end delimiter regex for the custom pattern. + /// + [JsonPropertyName("end_delimiter")] + public string? EndDelimiter { get; init; } + + /// + /// List of regexes that the secret must match. + /// + [JsonPropertyName("must_match")] + public IReadOnlyList? MustMatch { get; init; } + + /// + /// List of regexes that the secret must not match. + /// + [JsonPropertyName("must_not_match")] + public IReadOnlyList? MustNotMatch { get; init; } + + /// + /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. + /// + [JsonPropertyName("custom_pattern_version")] + public SecretScanningRowVersion? CustomPatternVersion { get; init; } + + /// + /// The date and time the custom pattern was created in ISO 8601 format. + /// + [JsonPropertyName("created_at")] + public DateTimeOffset? CreatedAt { get; init; } + + /// + /// The date and time the custom pattern was last updated in ISO 8601 format. + /// + [JsonPropertyName("updated_at")] + public DateTimeOffset? UpdatedAt { get; init; } + +} + +/// +/// A custom pattern to create in a bulk operation. +/// +public partial record SecretScanningCustomPatternToCreate +{ + /// + /// The name of the custom pattern. + /// + [JsonPropertyName("name")] + public required string Name { get; init; } + + /// + /// The regular expression of the custom pattern. + /// + [JsonPropertyName("pattern")] + public required string Pattern { get; init; } + + /// + /// The start delimiter regex for the custom pattern. + /// Defaults to `\A|[^0-9A-Za-z]` when not specified. + /// + [JsonPropertyName("start_delimiter")] + public string StartDelimiter { get; init; } = "\\A|[^0-9A-Za-z]"; + + /// + /// The end delimiter regex for the custom pattern. + /// Defaults to `\z|[^0-9A-Za-z]` when not specified. + /// + [JsonPropertyName("end_delimiter")] + public string EndDelimiter { get; init; } = "\\z|[^0-9A-Za-z]"; + + /// + /// List of regexes that the secret must match. + /// + [JsonPropertyName("must_match")] + public IReadOnlyList? MustMatch { get; init; } + + /// + /// List of regexes that the secret must not match. + /// + [JsonPropertyName("must_not_match")] + public IReadOnlyList? MustNotMatch { get; init; } + +} + +/// +/// A validation error for a custom pattern in a batch operation. +/// +public partial record SecretScanningCustomPatternValidationError +{ + /// + /// A machine-readable code describing the error. + /// + [JsonPropertyName("code")] + public Code? Code { get; init; } + + /// + /// A human-readable description of the error. + /// + [JsonPropertyName("message")] + public string? Message { get; init; } + +} + +/// +/// A custom pattern to delete in a bulk operation. +/// +public partial record SecretScanningCustomPatternToDelete +{ + /// + /// The ID of the custom pattern to delete. + /// + [JsonPropertyName("pattern_id")] + public required int PatternId { get; init; } + + /// + /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. + /// + [JsonPropertyName("custom_pattern_version")] + public SecretScanningRowVersion? CustomPatternVersion { get; init; } + +} + +/// +/// Fields to update on a custom pattern. At least one updatable field (`pattern`, `start_delimiter`, `end_delimiter`, `must_match`, or `must_not_match`) must also be provided. Only provided fields will be updated. +/// +public partial record SecretScanningCustomPatternToUpdate +{ + /// + /// The updated regular expression of the custom pattern. + /// + [JsonPropertyName("pattern")] + public string? Pattern { get; init; } + + /// + /// The updated start delimiter regex for the custom pattern. + /// + [JsonPropertyName("start_delimiter")] + public string? StartDelimiter { get; init; } + + /// + /// The updated end delimiter regex for the custom pattern. + /// + [JsonPropertyName("end_delimiter")] + public string? EndDelimiter { get; init; } + + /// + /// Updated list of regexes that the secret must match. + /// + [JsonPropertyName("must_match")] + public IReadOnlyList? MustMatch { get; init; } + + /// + /// Updated list of regexes that the secret must not match. + /// + [JsonPropertyName("must_not_match")] + public IReadOnlyList? MustNotMatch { get; init; } + + /// + /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. + /// + [JsonPropertyName("custom_pattern_version")] + public required SecretScanningRowVersion? CustomPatternVersion { get; init; } + +} + +public partial record SecretScanningPatternOverride { /// /// The ID of the pattern. @@ -18780,7 +19181,7 @@ public record SecretScanningPatternOverride /// /// A collection of secret scanning patterns and their settings related to push protection. /// -public record SecretScanningPatternConfiguration +public partial record SecretScanningPatternConfiguration { /// /// The version of the entity. This is used to confirm you're updating the current version of the entity and mitigate unintentionally overriding someone else's update. @@ -18805,7 +19206,7 @@ public record SecretScanningPatternConfiguration /// /// A product affected by the vulnerability detailed in a repository security advisory. /// -public record RepositoryAdvisoryVulnerability +public partial record RepositoryAdvisoryVulnerability { /// /// The name of the package affected by the vulnerability. @@ -18836,7 +19237,7 @@ public record RepositoryAdvisoryVulnerability /// /// A credit given to a user for a repository security advisory. /// -public record RepositoryAdvisoryCredit +public partial record RepositoryAdvisoryCredit { /// /// A GitHub user. @@ -18861,7 +19262,7 @@ public record RepositoryAdvisoryCredit /// /// A repository security advisory. /// -public record RepositoryAdvisory +public partial record RepositoryAdvisory { /// /// The GitHub Security Advisory ID. @@ -19006,7 +19407,7 @@ public record RepositoryAdvisory /// /// Check immutable releases settings for an organization. /// -public record ImmutableReleasesOrganizationSettings +public partial record ImmutableReleasesOrganizationSettings { /// /// The policy that controls how immutable releases are enforced in the organization. @@ -19025,7 +19426,7 @@ public record ImmutableReleasesOrganizationSettings /// /// A hosted compute network configuration. /// -public record NetworkConfiguration +public partial record NetworkConfiguration { /// /// The unique identifier of the network configuration. @@ -19074,7 +19475,7 @@ public record NetworkConfiguration /// /// A hosted compute network settings resource. /// -public record NetworkSettings +public partial record NetworkSettings { /// /// The unique identifier of the network settings resource. @@ -19111,7 +19512,7 @@ public record NetworkSettings /// /// Team Organization /// -public record TeamOrganization +public partial record TeamOrganization { [JsonPropertyName("login")] public required string Login { get; init; } @@ -19269,7 +19670,7 @@ public record TeamOrganization /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct LdapDn(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct LdapDn(string Value) : IOpenApiGeneratedTypeAlias { public static LdapDn Create(string value) => new(value); } @@ -19277,7 +19678,7 @@ public readonly record struct LdapDn(string Value) : IOpenApiGeneratedTypeAlias< /// /// Groups of organization members that gives permissions on specified repositories. /// -public record TeamFull +public partial record TeamFull { /// /// Unique identifier of the team @@ -19383,10 +19784,95 @@ public record TeamFull } +/// +/// A user that is a member of a team, including their role on the team and whether the membership is inherited from a child team. +/// +public partial record TeamMember +{ + [JsonPropertyName("name")] + public string? Name { get; init; } + + [JsonPropertyName("email")] + public string? Email { get; init; } + + [JsonPropertyName("login")] + public required string Login { get; init; } + + [JsonPropertyName("id")] + public required long Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("avatar_url")] + public required Uri AvatarUrl { get; init; } + + [JsonPropertyName("gravatar_id")] + public required string? GravatarId { get; init; } + + [JsonPropertyName("url")] + public required Uri Url { get; init; } + + [JsonPropertyName("html_url")] + public required Uri HtmlUrl { get; init; } + + [JsonPropertyName("followers_url")] + public required Uri FollowersUrl { get; init; } + + [JsonPropertyName("following_url")] + public required string FollowingUrl { get; init; } + + [JsonPropertyName("gists_url")] + public required string GistsUrl { get; init; } + + [JsonPropertyName("starred_url")] + public required string StarredUrl { get; init; } + + [JsonPropertyName("subscriptions_url")] + public required Uri SubscriptionsUrl { get; init; } + + [JsonPropertyName("organizations_url")] + public required Uri OrganizationsUrl { get; init; } + + [JsonPropertyName("repos_url")] + public required Uri ReposUrl { get; init; } + + [JsonPropertyName("events_url")] + public required string EventsUrl { get; init; } + + [JsonPropertyName("received_events_url")] + public required Uri ReceivedEventsUrl { get; init; } + + [JsonPropertyName("type")] + public required string Type { get; init; } + + [JsonPropertyName("site_admin")] + public required bool SiteAdmin { get; init; } + + [JsonPropertyName("starred_at")] + public string? StarredAt { get; init; } + + [JsonPropertyName("user_view_type")] + public string? UserViewType { get; init; } + + /// + /// The member's role on the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization. + /// + [JsonPropertyName("role")] + public TeamMemberRole? Role { get; init; } + + /// + /// Whether the user is a member of the team only through a child team. `true` means the membership is inherited from a child team; `false` means the user is a direct (immediate) member of the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization. + /// + [JsonPropertyName("inherited")] + public bool? Inherited { get; init; } + +} + /// /// Team Membership /// -public record TeamMembership +public partial record TeamMembership { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -19395,7 +19881,7 @@ public record TeamMembership /// The role of the user in the team. /// [JsonPropertyName("role")] - public required TeamMembershipRole Role { get; init; } = Generated.GithubApi.TeamMembershipRole.Member; + public required TeamMemberRole Role { get; init; } = Generated.GithubApi.TeamMemberRole.Member; /// /// The state of the user's membership in the team. @@ -19408,7 +19894,7 @@ public record TeamMembership /// /// A team's access to a repository. /// -public record TeamRepository +public partial record TeamRepository { /// /// Unique identifier of the repository @@ -19742,7 +20228,7 @@ public record TeamRepository } -public record RateLimit +public partial record RateLimit { [JsonPropertyName("limit")] public required int Limit { get; init; } @@ -19761,7 +20247,7 @@ public record RateLimit /// /// Rate Limit Overview /// -public record RateLimitOverview +public partial record RateLimitOverview { [JsonPropertyName("resources")] public required object Resources { get; init; } @@ -19774,7 +20260,7 @@ public record RateLimitOverview /// /// An artifact /// -public record Artifact +public partial record Artifact { [JsonPropertyName("id")] public required int Id { get; init; } @@ -19829,7 +20315,7 @@ public record Artifact /// /// GitHub Actions cache retention policy for a repository. /// -public record ActionsCacheRetentionLimitForRepository +public partial record ActionsCacheRetentionLimitForRepository { /// /// The maximum number of days to keep caches in this repository. @@ -19842,7 +20328,7 @@ public record ActionsCacheRetentionLimitForRepository /// /// GitHub Actions cache storage policy for a repository. /// -public record ActionsCacheStorageLimitForRepository +public partial record ActionsCacheStorageLimitForRepository { /// /// The maximum total cache size for this repository, in gigabytes. @@ -19855,7 +20341,7 @@ public record ActionsCacheStorageLimitForRepository /// /// Repository actions caches /// -public record ActionsCacheList +public partial record ActionsCacheList { /// /// Total number of caches @@ -19874,7 +20360,7 @@ public record ActionsCacheList /// /// A list of active concurrency groups for a repository. /// -public record ConcurrencyGroupList +public partial record ConcurrencyGroupList { [JsonPropertyName("total_count")] public required int TotalCount { get; init; } @@ -19888,7 +20374,7 @@ public record ConcurrencyGroupList /// A concurrency group with the workflow runs and jobs that are either currently holding /// or waiting for the concurrency group lease. /// -public record ConcurrencyGroup +public partial record ConcurrencyGroup { /// /// The name of the concurrency group. @@ -19913,19 +20399,19 @@ public record ConcurrencyGroup /// /// Information of a job execution in a workflow run /// -public record Job +public partial record Job { /// /// The id of the job. /// [JsonPropertyName("id")] - public required int Id { get; init; } + public required long Id { get; init; } /// /// The id of the associated workflow run. /// [JsonPropertyName("run_id")] - public required int RunId { get; init; } + public required long RunId { get; init; } [JsonPropertyName("run_url")] public required string RunUrl { get; init; } @@ -20043,7 +20529,7 @@ public record Job /// /// Actions OIDC subject customization for a repository /// -public record OidcCustomSubRepo +public partial record OidcCustomSubRepo { /// /// Whether to use the default template or not. If `true`, the `include_claim_keys` field is ignored. @@ -20074,7 +20560,7 @@ public record OidcCustomSubRepo /// /// Set secrets for GitHub Actions. /// -public record ActionsSecret +public partial record ActionsSecret { /// /// The name of the secret. @@ -20090,7 +20576,7 @@ public record ActionsSecret } -public record ActionsVariable +public partial record ActionsVariable { /// /// The name of the variable. @@ -20125,12 +20611,12 @@ public record ActionsVariable /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct ActionsEnabled(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct ActionsEnabled(bool Value) : IOpenApiGeneratedTypeAlias { public static ActionsEnabled Create(bool value) => new(value); } -public record ActionsRepositoryPermissions +public partial record ActionsRepositoryPermissions { /// /// Whether GitHub Actions is enabled on the repository. @@ -20158,7 +20644,7 @@ public record ActionsRepositoryPermissions } -public record ActionsWorkflowAccessToRepository +public partial record ActionsWorkflowAccessToRepository { /// /// Defines the level of access that workflows outside of the repository have to actions and reusable workflows within the @@ -20174,7 +20660,7 @@ public record ActionsWorkflowAccessToRepository /// /// A workflow referenced/reused by the initial caller workflow /// -public record ReferencedWorkflow +public partial record ReferencedWorkflow { [JsonPropertyName("path")] public required string Path { get; init; } @@ -20190,7 +20676,7 @@ public record ReferencedWorkflow /// /// A commit. /// -public record NullableSimpleCommit +public partial record NullableSimpleCommit { /// /// SHA for the commit @@ -20233,13 +20719,13 @@ public record NullableSimpleCommit /// /// An invocation of a workflow /// -public record WorkflowRun +public partial record WorkflowRun { /// /// The ID of the workflow run. /// [JsonPropertyName("id")] - public required int Id { get; init; } + public required long Id { get; init; } /// /// The name of the workflow run. @@ -20254,7 +20740,7 @@ public record WorkflowRun /// The ID of the associated check suite. /// [JsonPropertyName("check_suite_id")] - public int? CheckSuiteId { get; init; } + public long? CheckSuiteId { get; init; } /// /// The node ID of the associated check suite. @@ -20426,7 +20912,7 @@ public record WorkflowRun /// /// An entry in the reviews log for environment deployments /// -public record EnvironmentApprovals +public partial record EnvironmentApprovals { /// /// The list of environments that were approved or rejected @@ -20457,7 +20943,7 @@ public record EnvironmentApprovals /// /// A list of concurrency groups associated with a workflow run. /// -public record ConcurrencyGroupRunList +public partial record ConcurrencyGroupRunList { /// /// The total number of concurrency groups this workflow run participates in, @@ -20474,7 +20960,7 @@ public record ConcurrencyGroupRunList } -public record ReviewCustomGatesCommentRequired +public partial record ReviewCustomGatesCommentRequired { /// /// The name of the environment to approve or reject. @@ -20490,7 +20976,7 @@ public record ReviewCustomGatesCommentRequired } -public record ReviewCustomGatesStateRequired +public partial record ReviewCustomGatesStateRequired { /// /// The name of the environment to approve or reject. @@ -20515,7 +21001,7 @@ public record ReviewCustomGatesStateRequired /// /// The type of reviewer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeploymentReviewerType { [JsonStringEnumMemberName("User")] @@ -20527,7 +21013,7 @@ public enum DeploymentReviewerType /// /// Details of a deployment that is waiting for protection rules to pass /// -public record PendingDeployment +public partial record PendingDeployment { [JsonPropertyName("environment")] public required object Environment { get; init; } @@ -20561,7 +21047,7 @@ public record PendingDeployment /// /// A request for a specific ref(branch,sha,tag) to be deployed /// -public record Deployment +public partial record Deployment { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -20646,7 +21132,7 @@ public record Deployment /// /// Workflow Run Usage /// -public record WorkflowRunUsage +public partial record WorkflowRunUsage { [JsonPropertyName("billable")] public required object Billable { get; init; } @@ -20659,7 +21145,7 @@ public record WorkflowRunUsage /// /// A GitHub Actions workflow /// -public record Workflow +public partial record Workflow { [JsonPropertyName("id")] public required int Id { get; init; } @@ -20703,7 +21189,7 @@ public record Workflow /// Type alias for long. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WorkflowRunId(long Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WorkflowRunId(long Value) : IOpenApiGeneratedTypeAlias { public static WorkflowRunId Create(long value) => new(value); } @@ -20711,7 +21197,7 @@ public readonly record struct WorkflowRunId(long Value) : IOpenApiGeneratedTypeA /// /// Response containing the workflow run ID and URLs. /// -public record WorkflowDispatchResponse +public partial record WorkflowDispatchResponse { /// /// The ID of the workflow run. @@ -20733,7 +21219,7 @@ public record WorkflowDispatchResponse /// /// Workflow Usage /// -public record WorkflowUsage +public partial record WorkflowUsage { [JsonPropertyName("billable")] public required object Billable { get; init; } @@ -20743,7 +21229,7 @@ public record WorkflowUsage /// /// Activity /// -public record Activity +public partial record Activity { [JsonPropertyName("id")] public required int Id { get; init; } @@ -20792,7 +21278,7 @@ public record Activity /// /// An autolink reference. /// -public record Autolink +public partial record Autolink { [JsonPropertyName("id")] public required int Id { get; init; } @@ -20823,7 +21309,7 @@ public record Autolink /// /// Check Dependabot security updates /// -public record CheckAutomatedSecurityFixes +public partial record CheckAutomatedSecurityFixes { /// /// Whether Dependabot security updates are enabled for the repository. @@ -20842,7 +21328,7 @@ public record CheckAutomatedSecurityFixes /// /// Protected Branch Required Status Check /// -public record ProtectedBranchRequiredStatusCheck +public partial record ProtectedBranchRequiredStatusCheck { [JsonPropertyName("url")] public string? Url { get; init; } @@ -20867,7 +21353,7 @@ public record ProtectedBranchRequiredStatusCheck /// /// Protected Branch Admin Enforced /// -public record ProtectedBranchAdminEnforced +public partial record ProtectedBranchAdminEnforced { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -20880,7 +21366,7 @@ public record ProtectedBranchAdminEnforced /// /// Protected Branch Pull Request Review /// -public record ProtectedBranchPullRequestReview +public partial record ProtectedBranchPullRequestReview { [JsonPropertyName("url")] public Uri? Url { get; init; } @@ -20914,7 +21400,7 @@ public record ProtectedBranchPullRequestReview /// /// Branch Restriction Policy /// -public record BranchRestrictionPolicy +public partial record BranchRestrictionPolicy { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -20942,7 +21428,7 @@ public record BranchRestrictionPolicy /// /// Branch Protection /// -public record BranchProtection +public partial record BranchProtection { [JsonPropertyName("url")] public string? Url { get; init; } @@ -21015,7 +21501,7 @@ public record BranchProtection /// /// Short Branch /// -public record ShortBranch +public partial record ShortBranch { [JsonPropertyName("name")] public required string Name { get; init; } @@ -21040,7 +21526,7 @@ public record ShortBranch /// /// Metaproperties for Git author/committer information. /// -public record NullableGitUser +public partial record NullableGitUser { [JsonPropertyName("name")] public string? Name { get; init; } @@ -21053,7 +21539,23 @@ public record NullableGitUser } -public record Verification +/// +/// Metaproperties for Git author/committer information. +/// +public partial record GitUser +{ + [JsonPropertyName("name")] + public string? Name { get; init; } + + [JsonPropertyName("email")] + public string? Email { get; init; } + + [JsonPropertyName("date")] + public DateTimeOffset? Date { get; init; } + +} + +public partial record Verification { [JsonPropertyName("verified")] public required bool Verified { get; init; } @@ -21075,7 +21577,7 @@ public record Verification /// /// Diff Entry /// -public record DiffEntry +public partial record DiffEntry { [JsonPropertyName("sha")] public required string? Sha { get; init; } @@ -21115,7 +21617,7 @@ public record DiffEntry /// /// Commit /// -public record Commit +public partial record Commit { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -21155,7 +21657,7 @@ public record Commit /// /// Branch With Protection /// -public record BranchWithProtection +public partial record BranchWithProtection { [JsonPropertyName("name")] public required string Name { get; init; } @@ -21192,7 +21694,7 @@ public record BranchWithProtection /// /// Status Check Policy /// -public record StatusCheckPolicy +public partial record StatusCheckPolicy { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -21214,7 +21716,7 @@ public record StatusCheckPolicy /// /// Branch protections protect branches /// -public record ProtectedBranch +public partial record ProtectedBranch { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -21272,7 +21774,7 @@ public record ProtectedBranch /// /// A deployment created as the result of an Actions check run from a workflow that references an environment /// -public record DeploymentSimple +public partial record DeploymentSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -21339,7 +21841,7 @@ public record DeploymentSimple /// /// A check performed on the code of a given code change /// -public record CheckRun +public partial record CheckRun { /// /// The id of the check. @@ -21418,7 +21920,7 @@ public record CheckRun /// /// Check Annotation /// -public record CheckAnnotation +public partial record CheckAnnotation { [JsonPropertyName("path")] public required string Path { get; init; } @@ -21455,7 +21957,7 @@ public record CheckAnnotation /// /// A commit. /// -public record SimpleCommit +public partial record SimpleCommit { /// /// SHA for the commit @@ -21498,7 +22000,7 @@ public record SimpleCommit /// /// A suite of checks performed on the code of a given code change /// -public record CheckSuite +public partial record CheckSuite { [JsonPropertyName("id")] public required long Id { get; init; } @@ -21577,7 +22079,7 @@ public record CheckSuite /// /// Check suite configuration preferences for a repository. /// -public record CheckSuitePreference +public partial record CheckSuitePreference { [JsonPropertyName("preferences")] public required object Preferences { get; init; } @@ -21590,10 +22092,158 @@ public record CheckSuitePreference } +/// +/// Code quality rule +/// +public partial record CodeQualityFindingRule +{ + /// + /// A unique identifier for the rule used to detect the finding. + /// + [JsonPropertyName("id")] + public required string Id { get; init; } + + /// + /// The name of the rule used to detect the finding. + /// + [JsonPropertyName("title")] + public required string Title { get; init; } + + /// + /// A short description of the rule used to detect the finding. + /// + [JsonPropertyName("description")] + public required string Description { get; init; } + + /// + /// A detailed description of the rule used to detect the finding. + /// + [JsonPropertyName("help")] + public string? Help { get; init; } + + /// + /// The severity of the rule used to detect the finding. + /// + [JsonPropertyName("severity")] + public required CodeQualityFindingRuleSeverity Severity { get; init; } + + /// + /// The category of the rule used to detect the finding. + /// + [JsonPropertyName("category")] + public required Category Category { get; init; } + +} + +/// +/// Code quality file location +/// +public partial record CodeQualityFindingLocation +{ + /// + /// The file path where the finding was detected. + /// + [JsonPropertyName("path")] + public required string Path { get; init; } + + /// + /// The line number where the finding starts. + /// + [JsonPropertyName("start_line")] + public int? StartLine { get; init; } + + /// + /// The column number where the finding starts. + /// + [JsonPropertyName("start_column")] + public int? StartColumn { get; init; } + + /// + /// The line number where the finding ends. + /// + [JsonPropertyName("end_line")] + public int? EndLine { get; init; } + + /// + /// The column number where the finding ends. + /// + [JsonPropertyName("end_column")] + public int? EndColumn { get; init; } + +} + +/// +/// Code quality finding message +/// +public partial record CodeQualityFindingMessage +{ + /// + /// The message text of the code quality finding. + /// + [JsonPropertyName("text")] + public required string Text { get; init; } + + /// + /// The message text of the code quality finding in markdown format. + /// + [JsonPropertyName("markdown")] + public required string Markdown { get; init; } + +} + +/// +/// Code quality finding +/// +public partial record CodeQualityFinding +{ + /// + /// The finding number. + /// + [JsonPropertyName("number")] + public required int Number { get; init; } + + /// + /// State of the code quality finding. + /// + [JsonPropertyName("state")] + public required CodeQualityFindingState State { get; init; } + + /// + /// The REST API URL of the code quality finding resource. + /// + [JsonPropertyName("url")] + public required Uri Url { get; init; } + + /// + /// Code quality rule + /// + [JsonPropertyName("rule")] + public required CodeQualityFindingRule Rule { get; init; } + + /// + /// Code quality file location + /// + [JsonPropertyName("location")] + public required CodeQualityFindingLocation Location { get; init; } + + /// + /// Code quality finding message + /// + [JsonPropertyName("message")] + public required CodeQualityFindingMessage Message { get; init; } + + /// + /// The time the code quality finding was created. + /// + [JsonPropertyName("created_at")] + public DateTimeOffset? CreatedAt { get; init; } + +} + /// /// Configuration for code quality setup. /// -public record CodeQualitySetup +public partial record CodeQualitySetup { /// /// Code quality setup has been configured or not. @@ -21631,12 +22281,18 @@ public record CodeQualitySetup [JsonPropertyName("schedule")] public Schedule? Schedule { get; init; } + /// + /// The AI findings configuration for the repository. + /// + [JsonPropertyName("ai_findings_option")] + public AiFindingsOption? AiFindingsOption { get; init; } + } /// /// Configuration for code quality setup. /// -public record CodeQualitySetupUpdate +public partial record CodeQualitySetupUpdate { /// /// The desired state of code quality setup. @@ -21662,13 +22318,19 @@ public record CodeQualitySetupUpdate [JsonPropertyName("languages")] public IReadOnlyList? Languages { get; init; } + /// + /// Whether AI findings run for Code Quality on this repository. + /// + [JsonPropertyName("ai_findings_option")] + public AiFindingsOption? AiFindingsOption { get; init; } + } /// /// You can use `run_url` to track the status of the run. This includes a property status and conclusion. /// You should not rely on this always being an actions workflow run object. /// -public record CodeQualitySetupUpdateResponse +public partial record CodeQualitySetupUpdateResponse { /// /// ID of the corresponding run. @@ -21684,7 +22346,7 @@ public record CodeQualitySetupUpdateResponse } -public record CodeScanningAlertItems +public partial record CodeScanningAlertItems { /// /// The security alert number. @@ -21778,7 +22440,7 @@ public record CodeScanningAlertItems } -public record CodeScanningAlertRule +public partial record CodeScanningAlertRule { /// /// A unique identifier for the rule used to detect the alert. @@ -21836,7 +22498,7 @@ public record CodeScanningAlertRule } -public record CodeScanningAlert +public partial record CodeScanningAlert { /// /// The security alert number. @@ -21928,12 +22590,18 @@ public record CodeScanningAlert [JsonPropertyName("assignees")] public IReadOnlyList? Assignees { get; init; } + /// + /// Pull requests linked to this alert. + /// + [JsonPropertyName("linked_pull_requests")] + public IReadOnlyList? LinkedPullRequests { get; init; } + } /// /// Sets the state of the code scanning alert. You must provide `dismissed_reason` when you set the state to `dismissed`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertSetState { [JsonStringEnumMemberName("open")] @@ -21949,7 +22617,7 @@ public enum CodeScanningAlertSetState /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAlertCreateRequest(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAlertCreateRequest(bool Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAlertCreateRequest Create(bool value) => new(value); } @@ -21962,7 +22630,7 @@ public record CodeScanningAlertAssignees; /// /// The status of an autofix. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAutofixStatus { [JsonStringEnumMemberName("pending")] @@ -21982,7 +22650,7 @@ public enum CodeScanningAutofixStatus /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAutofixDescription(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAutofixDescription(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAutofixDescription Create(string? value) => new(value); } @@ -21994,12 +22662,12 @@ public readonly record struct CodeScanningAutofixDescription(string? Value) : IO /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAutofixStartedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAutofixStartedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAutofixStartedAt Create(DateTimeOffset value) => new(value); } -public record CodeScanningAutofix +public partial record CodeScanningAutofix { /// /// The status of an autofix. @@ -22024,7 +22692,7 @@ public record CodeScanningAutofix /// /// Commit an autofix for a code scanning alert /// -public record CodeScanningAutofixCommits +public partial record CodeScanningAutofixCommits { /// /// The Git reference of target branch for the commit. Branch needs to already exist. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -22040,7 +22708,7 @@ public record CodeScanningAutofixCommits } -public record CodeScanningAutofixCommitsResponse +public partial record CodeScanningAutofixCommitsResponse { /// /// The Git reference of target branch for the commit. For more information, see "[Git References](https://git-scm.com/book/en/v2/Git-Internals-Git-References)" in the Git documentation. @@ -22059,7 +22727,7 @@ public record CodeScanningAutofixCommitsResponse /// /// State of a code scanning alert instance. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningAlertInstanceState { [JsonStringEnumMemberName("open")] @@ -22068,7 +22736,7 @@ public enum CodeScanningAlertInstanceState Fixed } -public record CodeScanningAlertInstanceList +public partial record CodeScanningAlertInstanceList { /// /// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`, @@ -22132,7 +22800,7 @@ public record CodeScanningAlertInstanceList /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisSarifId(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisSarifId(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisSarifId Create(string value) => new(value); } @@ -22144,7 +22812,7 @@ public readonly record struct CodeScanningAnalysisSarifId(string Value) : IOpenA /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCommitSha(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCommitSha(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCommitSha Create(string value) => new(value); } @@ -22156,7 +22824,7 @@ public readonly record struct CodeScanningAnalysisCommitSha(string Value) : IOpe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisEnvironment(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisEnvironment(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisEnvironment Create(string value) => new(value); } @@ -22168,7 +22836,7 @@ public readonly record struct CodeScanningAnalysisEnvironment(string Value) : IO /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCreatedAt Create(DateTimeOffset value) => new(value); } @@ -22180,12 +22848,12 @@ public readonly record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisUrl Create(Uri value) => new(value); } -public record CodeScanningAnalysis +public partial record CodeScanningAnalysis { /// /// The Git reference, formatted as `refs/pull/<number>/merge`, `refs/pull/<number>/head`, @@ -22274,7 +22942,7 @@ public record CodeScanningAnalysis /// /// Successful deletion of a code scanning analysis /// -public record CodeScanningAnalysisDeletion +public partial record CodeScanningAnalysisDeletion { /// /// Next deletable analysis in chain, without last analysis deletion confirmation @@ -22293,7 +22961,7 @@ public record CodeScanningAnalysisDeletion /// /// A CodeQL database. /// -public record CodeScanningCodeqlDatabase +public partial record CodeScanningCodeqlDatabase { /// /// The ID of the CodeQL database. @@ -22360,7 +23028,7 @@ public record CodeScanningCodeqlDatabase /// /// The language targeted by the CodeQL query /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningVariantAnalysisLanguage { [JsonStringEnumMemberName("actions")] @@ -22388,7 +23056,7 @@ public enum CodeScanningVariantAnalysisLanguage /// /// Repository Identifier /// -public record CodeScanningVariantAnalysisRepository +public partial record CodeScanningVariantAnalysisRepository { /// /// A unique identifier of the repository. @@ -22425,7 +23093,7 @@ public record CodeScanningVariantAnalysisRepository /// /// The new status of the CodeQL variant analysis repository task. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CodeScanningVariantAnalysisStatus { [JsonStringEnumMemberName("pending")] @@ -22442,7 +23110,7 @@ public enum CodeScanningVariantAnalysisStatus TimedOut } -public record CodeScanningVariantAnalysisSkippedRepoGroup +public partial record CodeScanningVariantAnalysisSkippedRepoGroup { /// /// The total number of repositories that were skipped for this reason. @@ -22461,7 +23129,7 @@ public record CodeScanningVariantAnalysisSkippedRepoGroup /// /// A run of a CodeQL query against one or more repositories. /// -public record CodeScanningVariantAnalysis +public partial record CodeScanningVariantAnalysis { /// /// The ID of the variant analysis. @@ -22537,7 +23205,7 @@ public record CodeScanningVariantAnalysis } -public record CodeScanningVariantAnalysisRepoTask +public partial record CodeScanningVariantAnalysisRepoTask { /// /// A GitHub repository. @@ -22592,7 +23260,7 @@ public record CodeScanningVariantAnalysisRepoTask /// /// Configuration for code scanning default setup. /// -public record CodeScanningDefaultSetup +public partial record CodeScanningDefaultSetup { /// /// Code scanning default setup has been configured or not. @@ -22647,7 +23315,7 @@ public record CodeScanningDefaultSetup /// /// Configuration for code scanning default setup. /// -public record CodeScanningDefaultSetupUpdate +public partial record CodeScanningDefaultSetupUpdate { /// /// The desired state of code scanning default setup. @@ -22691,7 +23359,7 @@ public record CodeScanningDefaultSetupUpdate /// You can use `run_url` to track the status of the run. This includes a property status and conclusion. /// You should not rely on this always being an actions workflow run object. /// -public record CodeScanningDefaultSetupUpdateResponse +public partial record CodeScanningDefaultSetupUpdateResponse { /// /// ID of the corresponding run. @@ -22715,7 +23383,7 @@ public record CodeScanningDefaultSetupUpdateResponse /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningRefFull(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningRefFull(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningRefFull Create(string value) => new(value); } @@ -22727,12 +23395,12 @@ public readonly record struct CodeScanningRefFull(string Value) : IOpenApiGenera /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisSarifFile(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisSarifFile(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisSarifFile Create(string value) => new(value); } -public record CodeScanningSarifsReceipt +public partial record CodeScanningSarifsReceipt { /// /// An identifier for the upload. @@ -22748,7 +23416,7 @@ public record CodeScanningSarifsReceipt } -public record CodeScanningSarifsStatus +public partial record CodeScanningSarifsStatus { /// /// `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed. @@ -22773,7 +23441,7 @@ public record CodeScanningSarifsStatus /// /// Code security configuration associated with a repository and attachment status /// -public record CodeSecurityConfigurationForRepository +public partial record CodeSecurityConfigurationForRepository { /// /// The attachment status of the code security configuration on the repository. @@ -22792,7 +23460,7 @@ public record CodeSecurityConfigurationForRepository /// /// A list of errors found in a repo's CODEOWNERS file /// -public record CodeownersErrors +public partial record CodeownersErrors { [JsonPropertyName("errors")] public required IReadOnlyList Errors { get; init; } @@ -22802,7 +23470,7 @@ public record CodeownersErrors /// /// A description of the machine powering a codespace. /// -public record CodespaceMachine +public partial record CodespaceMachine { /// /// The name of the machine. @@ -22851,7 +23519,7 @@ public record CodespaceMachine /// /// Permission check result for a given devcontainer config. /// -public record CodespacesPermissionsCheckForDevcontainer +public partial record CodespacesPermissionsCheckForDevcontainer { /// /// Whether the user has accepted the permissions defined by the devcontainer config @@ -22864,7 +23532,7 @@ public record CodespacesPermissionsCheckForDevcontainer /// /// Set repository secrets for GitHub Codespaces. /// -public record RepoCodespacesSecret +public partial record RepoCodespacesSecret { /// /// The name of the secret. @@ -22883,7 +23551,7 @@ public record RepoCodespacesSecret /// /// Collaborator /// -public record Collaborator +public partial record Collaborator { [JsonPropertyName("login")] public required string Login { get; init; } @@ -22959,7 +23627,7 @@ public record Collaborator /// /// Repository invitations let you manage who you collaborate with. /// -public record RepositoryInvitation +public partial record RepositoryInvitation { /// /// Unique identifier of the repository invitation. @@ -23017,7 +23685,7 @@ public record RepositoryInvitation /// /// Collaborator /// -public record NullableCollaborator +public partial record NullableCollaborator { [JsonPropertyName("login")] public required string Login { get; init; } @@ -23093,7 +23761,7 @@ public record NullableCollaborator /// /// Repository Collaborator Permission /// -public record RepositoryCollaboratorPermission +public partial record RepositoryCollaboratorPermission { [JsonPropertyName("permission")] public required string Permission { get; init; } @@ -23112,7 +23780,7 @@ public record RepositoryCollaboratorPermission /// /// Commit Comment /// -public record CommitComment +public partial record CommitComment { [JsonPropertyName("html_url")] public required Uri HtmlUrl { get; init; } @@ -23167,7 +23835,7 @@ public record CommitComment /// /// Reactions to conversations provide a way to help people express their feelings more simply and effectively. /// -public record Reaction +public partial record Reaction { [JsonPropertyName("id")] public required int Id { get; init; } @@ -23195,7 +23863,7 @@ public record Reaction /// /// Branch Short /// -public record BranchShort +public partial record BranchShort { [JsonPropertyName("name")] public required string Name { get; init; } @@ -23208,7 +23876,7 @@ public record BranchShort } -public record SimpleCommitStatus +public partial record SimpleCommitStatus { [JsonPropertyName("description")] public required string? Description { get; init; } @@ -23248,7 +23916,7 @@ public record SimpleCommitStatus /// /// Combined Commit Status /// -public record CombinedCommitStatus +public partial record CombinedCommitStatus { [JsonPropertyName("state")] public required string State { get; init; } @@ -23279,7 +23947,7 @@ public record CombinedCommitStatus /// /// The status of a commit. /// -public record Status +public partial record Status { [JsonPropertyName("url")] public required string Url { get; init; } @@ -23322,7 +23990,7 @@ public record Status /// /// Code of Conduct Simple /// -public record NullableCodeOfConductSimple +public partial record NullableCodeOfConductSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -23338,7 +24006,7 @@ public record NullableCodeOfConductSimple } -public record NullableCommunityHealthFile +public partial record NullableCommunityHealthFile { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -23351,7 +24019,7 @@ public record NullableCommunityHealthFile /// /// Community Profile /// -public record CommunityProfile +public partial record CommunityProfile { [JsonPropertyName("health_percentage")] public required int HealthPercentage { get; init; } @@ -23376,7 +24044,7 @@ public record CommunityProfile /// /// Commit Comparison /// -public record CommitComparison +public partial record CommitComparison { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -23428,7 +24096,7 @@ public record CommitComparison /// /// Content Tree /// -public record ContentTree +public partial record ContentTree { [JsonPropertyName("type")] public required string Type { get; init; } @@ -23479,7 +24147,7 @@ public record ContentDirectory; /// /// Content File /// -public record ContentFile +public partial record ContentFile { [JsonPropertyName("type")] public required ContentFileType Type { get; init; } @@ -23528,7 +24196,7 @@ public record ContentFile /// /// An object describing a symlink /// -public record ContentSymlink +public partial record ContentSymlink { [JsonPropertyName("type")] public required ContentSymlinkType Type { get; init; } @@ -23568,7 +24236,7 @@ public record ContentSymlink /// /// An object describing a submodule /// -public record ContentSubmodule +public partial record ContentSubmodule { [JsonPropertyName("type")] public required ContentSubmoduleType Type { get; init; } @@ -23608,7 +24276,7 @@ public record ContentSubmodule /// /// File Commit /// -public record FileCommit +public partial record FileCommit { [JsonPropertyName("content")] public required object? Content { get; init; } @@ -23625,7 +24293,7 @@ public record FileCommit /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningPushProtectionBypassPlaceholderId(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningPushProtectionBypassPlaceholderId(string Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningPushProtectionBypassPlaceholderId Create(string value) => new(value); } @@ -23633,7 +24301,7 @@ public readonly record struct SecretScanningPushProtectionBypassPlaceholderId(st /// /// Repository rule violation was detected /// -public record RepositoryRuleViolationError +public partial record RepositoryRuleViolationError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -23652,7 +24320,7 @@ public record RepositoryRuleViolationError /// /// Contributor /// -public record Contributor +public partial record Contributor { [JsonPropertyName("login")] public string? Login { get; init; } @@ -23725,7 +24393,7 @@ public record Contributor /// /// A Dependabot alert. /// -public record DependabotAlert +public partial record DependabotAlert { /// /// The security alert number. @@ -23834,7 +24502,7 @@ public record DependabotAlert /// /// Set secrets for Dependabot. /// -public record DependabotSecret +public partial record DependabotSecret { /// /// The name of the secret. @@ -23858,7 +24526,7 @@ public record DependencyGraphDiff; /// /// A schema for the SPDX JSON format returned by the Dependency Graph. /// -public record DependencyGraphSpdxSbom +public partial record DependencyGraphSpdxSbom { [JsonPropertyName("sbom")] public required object Sbom { get; init; } @@ -23870,7 +24538,7 @@ public record DependencyGraphSpdxSbom /// public record Metadata; -public record Dependency +public partial record Dependency { /// /// Package-url (PURL) of dependency. See https://github.com/package-url/purl-spec for more details. @@ -23904,7 +24572,7 @@ public record Dependency } -public record Manifest +public partial record Manifest { /// /// The name of the manifest. @@ -23932,7 +24600,7 @@ public record Manifest /// /// Create a new snapshot of a repository's dependencies. /// -public record Snapshot +public partial record Snapshot { /// /// The version of the repository snapshot submission. @@ -23944,7 +24612,7 @@ public record Snapshot public required object Job { get; init; } /// - /// The commit SHA associated with this dependency snapshot. Maximum length: 40 characters. + /// The commit SHA associated with this dependency snapshot. Maximum length: 64 characters. /// [JsonPropertyName("sha")] public required string Sha { get; init; } @@ -23984,7 +24652,7 @@ public record Snapshot /// /// The status of a deployment. /// -public record DeploymentStatus +public partial record DeploymentStatus { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -24064,7 +24732,7 @@ public record DeploymentStatus /// Type alias for int. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WaitTimer(int Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WaitTimer(int Value) : IOpenApiGeneratedTypeAlias { public static WaitTimer Create(int value) => new(value); } @@ -24072,7 +24740,7 @@ public readonly record struct WaitTimer(int Value) : IOpenApiGeneratedTypeAlias< /// /// The type of deployment branch policy for this environment. To allow all branches to deploy, set to `null`. /// -public record DeploymentBranchPolicySettings +public partial record DeploymentBranchPolicySettings { /// /// Whether only branches with branch protection rules can deploy to this environment. If `protected_branches` is `true`, `custom_branch_policies` must be `false`; if `protected_branches` is `false`, `custom_branch_policies` must be `true`. @@ -24091,7 +24759,7 @@ public record DeploymentBranchPolicySettings /// /// Details of a deployment environment /// -public record Environment +public partial record Environment { /// /// The id of the environment. @@ -24147,7 +24815,7 @@ public record Environment /// Type alias for bool. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct PreventSelfReview(bool Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct PreventSelfReview(bool Value) : IOpenApiGeneratedTypeAlias { public static PreventSelfReview Create(bool value) => new(value); } @@ -24155,7 +24823,7 @@ public readonly record struct PreventSelfReview(bool Value) : IOpenApiGeneratedT /// /// Details of a deployment branch or tag policy. /// -public record DeploymentBranchPolicy +public partial record DeploymentBranchPolicy { /// /// The unique identifier of the branch or tag policy. @@ -24180,7 +24848,7 @@ public record DeploymentBranchPolicy } -public record DeploymentBranchPolicyNamePatternWithType +public partial record DeploymentBranchPolicyNamePatternWithType { /// /// The name pattern that branches or tags must match in order to deploy to the environment. @@ -24199,7 +24867,7 @@ public record DeploymentBranchPolicyNamePatternWithType } -public record DeploymentBranchPolicyNamePattern +public partial record DeploymentBranchPolicyNamePattern { /// /// The name pattern that branches must match in order to deploy to the environment. @@ -24215,7 +24883,7 @@ public record DeploymentBranchPolicyNamePattern /// /// A GitHub App that is providing a custom deployment protection rule. /// -public record CustomDeploymentRuleApp +public partial record CustomDeploymentRuleApp { /// /// The unique identifier of the deployment protection rule integration. @@ -24246,7 +24914,7 @@ public record CustomDeploymentRuleApp /// /// Deployment protection rule /// -public record DeploymentProtectionRule +public partial record DeploymentProtectionRule { /// /// The unique identifier for the deployment protection rule. @@ -24277,7 +24945,7 @@ public record DeploymentProtectionRule /// /// Short Blob /// -public record ShortBlob +public partial record ShortBlob { [JsonPropertyName("url")] public required string Url { get; init; } @@ -24290,7 +24958,7 @@ public record ShortBlob /// /// Blob /// -public record Blob +public partial record Blob { [JsonPropertyName("content")] public required string Content { get; init; } @@ -24318,7 +24986,7 @@ public record Blob /// /// Low-level Git commit operations within a repository /// -public record GitCommit +public partial record GitCommit { /// /// SHA for the commit @@ -24367,7 +25035,7 @@ public record GitCommit /// /// Git references within a repository /// -public record GitRef +public partial record GitRef { [JsonPropertyName("ref")] public required string Ref { get; init; } @@ -24386,7 +25054,7 @@ public record GitRef /// /// Metadata for a Git tag /// -public record GitTag +public partial record GitTag { [JsonPropertyName("node_id")] public required string NodeId { get; init; } @@ -24426,7 +25094,7 @@ public record GitTag /// /// The hierarchy between files in a Git repository. /// -public record GitTree +public partial record GitTree { [JsonPropertyName("sha")] public required string Sha { get; init; } @@ -24448,7 +25116,7 @@ public record GitTree /// /// Repository hash algorithm /// -public record RepositoryHashAlgorithm +public partial record RepositoryHashAlgorithm { /// /// The Git hash algorithm used by this repository. @@ -24458,7 +25126,7 @@ public record RepositoryHashAlgorithm } -public record HookResponse +public partial record HookResponse { [JsonPropertyName("code")] public required int? Code { get; init; } @@ -24474,7 +25142,7 @@ public record HookResponse /// /// Webhooks for repositories. /// -public record Hook +public partial record Hook { [JsonPropertyName("type")] public required string Type { get; init; } @@ -24535,7 +25203,7 @@ public record Hook /// /// Check immutable releases /// -public record CheckImmutableReleases +public partial record CheckImmutableReleases { /// /// Whether immutable releases are enabled for the repository. @@ -24554,7 +25222,7 @@ public record CheckImmutableReleases /// /// A repository import from an external source. /// -public record Import +public partial record Import { [JsonPropertyName("vcs")] public required string? Vcs { get; init; } @@ -24633,7 +25301,7 @@ public record Import /// /// Porter Author /// -public record PorterAuthor +public partial record PorterAuthor { [JsonPropertyName("id")] public required int Id { get; init; } @@ -24661,7 +25329,7 @@ public record PorterAuthor /// /// Porter Large File /// -public record PorterLargeFile +public partial record PorterLargeFile { [JsonPropertyName("ref_name")] public required string RefName { get; init; } @@ -24677,10 +25345,23 @@ public record PorterLargeFile } +/// +/// A list of user logins to add or remove from the pull request creation cap bypass list. +/// +public partial record InteractionLimitPullRequestBypassList +{ + /// + /// A list of user logins to add or remove from the bypass list. + /// + [JsonPropertyName("users")] + public required IReadOnlyList Users { get; init; } + +} + /// /// Issues are a great way to keep track of tasks, enhancements, and bugs for your projects. /// -public record NullableIssue +public partial record NullableIssue { [JsonPropertyName("id")] public required long Id { get; init; } @@ -24858,7 +25539,7 @@ public record NullableIssue /// /// Issue Event Label /// -public record IssueEventLabel +public partial record IssueEventLabel { [JsonPropertyName("name")] public required string? Name { get; init; } @@ -24868,7 +25549,7 @@ public record IssueEventLabel } -public record IssueEventDismissedReview +public partial record IssueEventDismissedReview { [JsonPropertyName("state")] public required string State { get; init; } @@ -24887,7 +25568,7 @@ public record IssueEventDismissedReview /// /// Issue Event Milestone /// -public record IssueEventMilestone +public partial record IssueEventMilestone { [JsonPropertyName("title")] public required string Title { get; init; } @@ -24897,7 +25578,7 @@ public record IssueEventMilestone /// /// Issue Event Project Card /// -public record IssueEventProjectCard +public partial record IssueEventProjectCard { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -24922,7 +25603,7 @@ public record IssueEventProjectCard /// /// Issue Event Rename /// -public record IssueEventRename +public partial record IssueEventRename { [JsonPropertyName("from")] public required string From { get; init; } @@ -24932,10 +25613,97 @@ public record IssueEventRename } +/// +/// The type of issue. +/// +public partial record IssueTypeWebhook +{ + /// + /// The unique identifier of the issue type. + /// + [JsonPropertyName("id")] + public required int Id { get; init; } + + /// + /// The name of the issue type. + /// + [JsonPropertyName("name")] + public required string Name { get; init; } + + /// + /// The color of the issue type. + /// + [JsonPropertyName("color")] + public IssueTypeColor? Color { get; init; } + +} + +/// +/// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). +/// +public partial record NullableIssueReference +{ + /// + /// The number of the referenced issue. + /// + [JsonPropertyName("number")] + public required int Number { get; init; } + + /// + /// The title of the referenced issue. + /// + [JsonPropertyName("title")] + public required string Title { get; init; } + + /// + /// The state of the referenced issue. + /// + [JsonPropertyName("state")] + public required string State { get; init; } + + /// + /// The reason for the referenced issue's state. + /// + [JsonPropertyName("state_reason")] + public string? StateReason { get; init; } + + /// + /// A GitHub repository. + /// + [JsonPropertyName("repository")] + public required SimpleRepository Repository { get; init; } + + /// + /// The type of the referenced issue. + /// + [JsonPropertyName("issue_type")] + public required object? IssueType { get; init; } + +} + +/// +/// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. +/// +public partial record NullableIssueEventIntent +{ + /// + /// The reasoning the agent provided for the change. + /// + [JsonPropertyName("rationale")] + public string? Rationale { get; init; } + + /// + /// The confidence level the agent had when performing this action. + /// + [JsonPropertyName("confidence")] + public Confidence? Confidence { get; init; } + +} + /// /// Issue Event /// -public record IssueEvent +public partial record IssueEvent { [JsonPropertyName("id")] public required long Id { get; init; } @@ -25027,6 +25795,48 @@ public record IssueEvent [JsonPropertyName("rename")] public IssueEventRename? Rename { get; init; } + /// + /// The type of issue. + /// + [JsonPropertyName("issue_type")] + public IssueTypeWebhook? IssueType { get; init; } + + /// + /// The type of issue. + /// + [JsonPropertyName("prev_issue_type")] + public IssueTypeWebhook? PrevIssueType { get; init; } + + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("sub_issue")] + public NullableIssueReference? SubIssue { get; init; } + + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("parent_issue")] + public NullableIssueReference? ParentIssue { get; init; } + + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("blocked_by")] + public NullableIssueReference? BlockedBy { get; init; } + + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("blocking")] + public NullableIssueReference? Blocking { get; init; } + + /// + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. + /// + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } + /// /// How the author is associated with the repository. /// @@ -25047,7 +25857,589 @@ public record IssueEvent /// /// Labeled Issue Event /// -public record LabeledIssueEvent +public partial record LabeledIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("label")] + public required object Label { get; init; } + + /// + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. + /// + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } + +} + +/// +/// Unlabeled Issue Event +/// +public partial record UnlabeledIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("label")] + public required object Label { get; init; } + + /// + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. + /// + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } + +} + +/// +/// Assigned Issue Event +/// +public partial record AssignedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required Integration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assignee")] + public required SimpleUser Assignee { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assigner")] + public required SimpleUser Assigner { get; init; } + + /// + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. + /// + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } + +} + +/// +/// Unassigned Issue Event +/// +public partial record UnassignedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assignee")] + public required SimpleUser Assignee { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assigner")] + public required SimpleUser Assigner { get; init; } + +} + +/// +/// Milestoned Issue Event +/// +public partial record MilestonedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("milestone")] + public required object Milestone { get; init; } + +} + +/// +/// Demilestoned Issue Event +/// +public partial record DemilestonedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("milestone")] + public required object Milestone { get; init; } + +} + +/// +/// Renamed Issue Event +/// +public partial record RenamedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("rename")] + public required object Rename { get; init; } + +} + +/// +/// Review Requested Issue Event +/// +public partial record ReviewRequestedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("review_requester")] + public required SimpleUser ReviewRequester { get; init; } + + /// + /// Groups of organization members that gives permissions on specified repositories. + /// + [JsonPropertyName("requested_team")] + public Team? RequestedTeam { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("requested_reviewer")] + public SimpleUser? RequestedReviewer { get; init; } + +} + +/// +/// Review Request Removed Issue Event +/// +public partial record ReviewRequestRemovedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("review_requester")] + public required SimpleUser ReviewRequester { get; init; } + + /// + /// Groups of organization members that gives permissions on specified repositories. + /// + [JsonPropertyName("requested_team")] + public Team? RequestedTeam { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("requested_reviewer")] + public SimpleUser? RequestedReviewer { get; init; } + +} + +/// +/// Review Dismissed Issue Event +/// +public partial record ReviewDismissedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("dismissed_review")] + public required object DismissedReview { get; init; } + +} + +/// +/// Locked Issue Event +/// +public partial record LockedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("lock_reason")] + public required string? LockReason { get; init; } + +} + +/// +/// Added to Project Issue Event +/// +public partial record AddedToProjectIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } + +} + +/// +/// Moved Column in Project Issue Event +/// +public partial record MovedColumnInProjectIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25082,15 +26474,15 @@ public record LabeledIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("label")] - public required object Label { get; init; } + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } } /// -/// Unlabeled Issue Event +/// Removed from Project Issue Event /// -public record UnlabeledIssueEvent +public partial record RemovedFromProjectIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25125,15 +26517,15 @@ public record UnlabeledIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("label")] - public required object Label { get; init; } + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } } /// -/// Assigned Issue Event +/// Converted Note to Issue Issue Event /// -public record AssignedIssueEvent +public partial record ConvertedNoteToIssueIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25168,24 +26560,15 @@ public record AssignedIssueEvent [JsonPropertyName("performed_via_github_app")] public required Integration? PerformedViaGithubApp { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("assignee")] - public required SimpleUser Assignee { get; init; } - - /// - /// A GitHub user. - /// - [JsonPropertyName("assigner")] - public required SimpleUser Assigner { get; init; } + [JsonPropertyName("project_card")] + public object? ProjectCard { get; init; } } /// -/// Unassigned Issue Event +/// Issue Type Added Issue Event /// -public record UnassignedIssueEvent +public partial record IssueTypeAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25221,23 +26604,23 @@ public record UnassignedIssueEvent public required NullableIntegration? PerformedViaGithubApp { get; init; } /// - /// A GitHub user. + /// The type of issue. /// - [JsonPropertyName("assignee")] - public required SimpleUser Assignee { get; init; } + [JsonPropertyName("issue_type")] + public required IssueTypeWebhook? IssueType { get; init; } /// - /// A GitHub user. + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. /// - [JsonPropertyName("assigner")] - public required SimpleUser Assigner { get; init; } + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } } /// -/// Milestoned Issue Event +/// Issue Type Removed Issue Event /// -public record MilestonedIssueEvent +public partial record IssueTypeRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25272,15 +26655,24 @@ public record MilestonedIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("milestone")] - public required object Milestone { get; init; } + /// + /// The type of issue. + /// + [JsonPropertyName("prev_issue_type")] + public required IssueTypeWebhook? PrevIssueType { get; init; } + + /// + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. + /// + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } } /// -/// Demilestoned Issue Event +/// Issue Type Changed Issue Event /// -public record DemilestonedIssueEvent +public partial record IssueTypeChangedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25315,58 +26707,30 @@ public record DemilestonedIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("milestone")] - public required object Milestone { get; init; } - -} - -/// -/// Renamed Issue Event -/// -public record RenamedIssueEvent -{ - [JsonPropertyName("id")] - public required int Id { get; init; } - - [JsonPropertyName("node_id")] - public required string NodeId { get; init; } - - [JsonPropertyName("url")] - public required string Url { get; init; } - /// - /// A GitHub user. + /// The type of issue. /// - [JsonPropertyName("actor")] - public required SimpleUser Actor { get; init; } - - [JsonPropertyName("event")] - public required string Event { get; init; } - - [JsonPropertyName("commit_id")] - public required string? CommitId { get; init; } - - [JsonPropertyName("commit_url")] - public required string? CommitUrl { get; init; } - - [JsonPropertyName("created_at")] - public required string CreatedAt { get; init; } + [JsonPropertyName("issue_type")] + public required IssueTypeWebhook? IssueType { get; init; } /// - /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// The type of issue. /// - [JsonPropertyName("performed_via_github_app")] - public required NullableIntegration? PerformedViaGithubApp { get; init; } + [JsonPropertyName("prev_issue_type")] + public required IssueTypeWebhook? PrevIssueType { get; init; } - [JsonPropertyName("rename")] - public required object Rename { get; init; } + /// + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. + /// + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } } /// -/// Review Requested Issue Event +/// Sub-issue Added Issue Event /// -public record ReviewRequestedIssueEvent +public partial record SubIssueAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25402,29 +26766,17 @@ public record ReviewRequestedIssueEvent public required NullableIntegration? PerformedViaGithubApp { get; init; } /// - /// A GitHub user. - /// - [JsonPropertyName("review_requester")] - public required SimpleUser ReviewRequester { get; init; } - - /// - /// Groups of organization members that gives permissions on specified repositories. - /// - [JsonPropertyName("requested_team")] - public Team? RequestedTeam { get; init; } - - /// - /// A GitHub user. + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). /// - [JsonPropertyName("requested_reviewer")] - public SimpleUser? RequestedReviewer { get; init; } + [JsonPropertyName("sub_issue")] + public required NullableIssueReference? SubIssue { get; init; } } /// -/// Review Request Removed Issue Event +/// Sub-issue Removed Issue Event /// -public record ReviewRequestRemovedIssueEvent +public partial record SubIssueRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25460,29 +26812,17 @@ public record ReviewRequestRemovedIssueEvent public required NullableIntegration? PerformedViaGithubApp { get; init; } /// - /// A GitHub user. - /// - [JsonPropertyName("review_requester")] - public required SimpleUser ReviewRequester { get; init; } - - /// - /// Groups of organization members that gives permissions on specified repositories. - /// - [JsonPropertyName("requested_team")] - public Team? RequestedTeam { get; init; } - - /// - /// A GitHub user. + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). /// - [JsonPropertyName("requested_reviewer")] - public SimpleUser? RequestedReviewer { get; init; } + [JsonPropertyName("sub_issue")] + public required NullableIssueReference? SubIssue { get; init; } } /// -/// Review Dismissed Issue Event +/// Parent-issue Added Issue Event /// -public record ReviewDismissedIssueEvent +public partial record ParentIssueAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25517,15 +26857,18 @@ public record ReviewDismissedIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("dismissed_review")] - public required object DismissedReview { get; init; } + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("parent_issue")] + public required NullableIssueReference? ParentIssue { get; init; } } /// -/// Locked Issue Event +/// Parent-issue Removed Issue Event /// -public record LockedIssueEvent +public partial record ParentIssueRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25560,15 +26903,18 @@ public record LockedIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("lock_reason")] - public required string? LockReason { get; init; } + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("parent_issue")] + public required NullableIssueReference? ParentIssue { get; init; } } /// -/// Added to Project Issue Event +/// Blocked-by Added Issue Event /// -public record AddedToProjectIssueEvent +public partial record BlockedByAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25603,15 +26949,18 @@ public record AddedToProjectIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("blocked_by")] + public required NullableIssueReference? BlockedBy { get; init; } } /// -/// Moved Column in Project Issue Event +/// Blocked-by Removed Issue Event /// -public record MovedColumnInProjectIssueEvent +public partial record BlockedByRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25646,15 +26995,18 @@ public record MovedColumnInProjectIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("blocked_by")] + public required NullableIssueReference? BlockedBy { get; init; } } /// -/// Removed from Project Issue Event +/// Blocking Added Issue Event /// -public record RemovedFromProjectIssueEvent +public partial record BlockingAddedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25689,15 +27041,18 @@ public record RemovedFromProjectIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("blocking")] + public required NullableIssueReference? Blocking { get; init; } } /// -/// Converted Note to Issue Issue Event +/// Blocking Removed Issue Event /// -public record ConvertedNoteToIssueIssueEvent +public partial record BlockingRemovedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -25730,10 +27085,13 @@ public record ConvertedNoteToIssueIssueEvent /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. /// [JsonPropertyName("performed_via_github_app")] - public required Integration? PerformedViaGithubApp { get; init; } + public required NullableIntegration? PerformedViaGithubApp { get; init; } - [JsonPropertyName("project_card")] - public object? ProjectCard { get; init; } + /// + /// A minimal reference to an issue linked from a timeline event (e.g. sub-issue, parent-issue, or dependency events). + /// + [JsonPropertyName("blocking")] + public required NullableIssueReference? Blocking { get; init; } } @@ -25741,7 +27099,7 @@ public record ConvertedNoteToIssueIssueEvent /// Issue Event for Issue /// /// -/// Union of: LabeledIssueEvent | UnlabeledIssueEvent | AssignedIssueEvent | UnassignedIssueEvent | MilestonedIssueEvent | DemilestonedIssueEvent | RenamedIssueEvent | ReviewRequestedIssueEvent | ReviewRequestRemovedIssueEvent | ReviewDismissedIssueEvent | LockedIssueEvent | AddedToProjectIssueEvent | MovedColumnInProjectIssueEvent | RemovedFromProjectIssueEvent | ConvertedNoteToIssueIssueEvent +/// Union of: LabeledIssueEvent | UnlabeledIssueEvent | AssignedIssueEvent | UnassignedIssueEvent | MilestonedIssueEvent | DemilestonedIssueEvent | RenamedIssueEvent | ReviewRequestedIssueEvent | ReviewRequestRemovedIssueEvent | ReviewDismissedIssueEvent | LockedIssueEvent | AddedToProjectIssueEvent | MovedColumnInProjectIssueEvent | RemovedFromProjectIssueEvent | ConvertedNoteToIssueIssueEvent | IssueTypeAddedIssueEvent | IssueTypeRemovedIssueEvent | IssueTypeChangedIssueEvent | SubIssueAddedIssueEvent | SubIssueRemovedIssueEvent | ParentIssueAddedIssueEvent | ParentIssueRemovedIssueEvent | BlockedByAddedIssueEvent | BlockedByRemovedIssueEvent | BlockingAddedIssueEvent | BlockingRemovedIssueEvent /// [JsonDerivedType(typeof(LabeledIssueEvent), "labeled-issue-event")] [JsonDerivedType(typeof(UnlabeledIssueEvent), "unlabeled-issue-event")] @@ -25758,12 +27116,108 @@ public record ConvertedNoteToIssueIssueEvent [JsonDerivedType(typeof(MovedColumnInProjectIssueEvent), "moved-column-in-project-issue-event")] [JsonDerivedType(typeof(RemovedFromProjectIssueEvent), "removed-from-project-issue-event")] [JsonDerivedType(typeof(ConvertedNoteToIssueIssueEvent), "converted-note-to-issue-issue-event")] -public abstract record IssueEventForIssue; +[JsonDerivedType(typeof(IssueTypeAddedIssueEvent), "issue-type-added-issue-event")] +[JsonDerivedType(typeof(IssueTypeRemovedIssueEvent), "issue-type-removed-issue-event")] +[JsonDerivedType(typeof(IssueTypeChangedIssueEvent), "issue-type-changed-issue-event")] +[JsonDerivedType(typeof(SubIssueAddedIssueEvent), "sub-issue-added-issue-event")] +[JsonDerivedType(typeof(SubIssueRemovedIssueEvent), "sub-issue-removed-issue-event")] +[JsonDerivedType(typeof(ParentIssueAddedIssueEvent), "parent-issue-added-issue-event")] +[JsonDerivedType(typeof(ParentIssueRemovedIssueEvent), "parent-issue-removed-issue-event")] +[JsonDerivedType(typeof(BlockedByAddedIssueEvent), "blocked-by-added-issue-event")] +[JsonDerivedType(typeof(BlockedByRemovedIssueEvent), "blocked-by-removed-issue-event")] +[JsonDerivedType(typeof(BlockingAddedIssueEvent), "blocking-added-issue-event")] +[JsonDerivedType(typeof(BlockingRemovedIssueEvent), "blocking-removed-issue-event")] +public abstract partial record IssueEventForIssue; + +/// +/// An agent-proposed change to an issue that a maintainer can approve or dismiss. +/// +public partial record IssueSuggestion +{ + /// + /// The unique identifier of the suggestion. + /// + [JsonPropertyName("id")] + public required int Id { get; init; } + + /// + /// The unique identifier of the issue the suggestion applies to. + /// + [JsonPropertyName("issue_id")] + public required int IssueId { get; init; } + + /// + /// The kind of change proposed. + /// + [JsonPropertyName("action")] + public required IssueSuggestionAction Action { get; init; } + + /// + /// The suggestion's lifecycle state. + /// + [JsonPropertyName("state")] + public required IssueSuggestionState State { get; init; } + + /// + /// The identifier of the target the change applies to (issue type, label, field, assignee, or duplicate issue), when applicable. + /// + [JsonPropertyName("target_id")] + public required int? TargetId { get; init; } + + /// + /// The proposed value, when applicable. An array for multi-select field suggestions. + /// + [JsonPropertyName("target_value")] + public required object? TargetValue { get; init; } + + /// + /// The rationale the actor provided for the suggestion. + /// + [JsonPropertyName("rationale")] + public required string? Rationale { get; init; } + + /// + /// The actor's confidence level in the suggestion. + /// + [JsonPropertyName("confidence")] + public required Confidence Confidence { get; init; } + + /// + /// The unique identifier of the actor that proposed the suggestion. + /// + [JsonPropertyName("actor_id")] + public required int? ActorId { get; init; } + + /// + /// The identifier of the timeline event created when the suggestion was approved, when applicable. + /// + [JsonPropertyName("issue_event_id")] + public required int? IssueEventId { get; init; } + + /// + /// The unique identifier of the user who approved or dismissed the suggestion. + /// + [JsonPropertyName("resolved_by")] + public required int? ResolvedBy { get; init; } + + /// + /// The time the suggestion was created. + /// + [JsonPropertyName("created_at")] + public required DateTimeOffset CreatedAt { get; init; } + + /// + /// The time the suggestion was last updated. + /// + [JsonPropertyName("updated_at")] + public required DateTimeOffset UpdatedAt { get; init; } + +} /// /// Timeline Comment Event /// -public record TimelineCommentEvent +public partial record TimelineCommentEvent { [JsonPropertyName("event")] public required string Event { get; init; } @@ -25840,12 +27294,18 @@ public record TimelineCommentEvent [JsonPropertyName("pin")] public NullablePinnedIssueComment? Pin { get; init; } + /// + /// Details about why an issue comment was minimized. + /// + [JsonPropertyName("minimized")] + public NullableIssueCommentMinimized? Minimized { get; init; } + } /// /// Timeline Cross Referenced Event /// -public record TimelineCrossReferencedEvent +public partial record TimelineCrossReferencedEvent { [JsonPropertyName("event")] public required string Event { get; init; } @@ -25870,7 +27330,7 @@ public record TimelineCrossReferencedEvent /// /// Timeline Committed Event /// -public record TimelineCommittedEvent +public partial record TimelineCommittedEvent { [JsonPropertyName("event")] public string? Event { get; init; } @@ -25922,7 +27382,7 @@ public record TimelineCommittedEvent /// /// Timeline Reviewed Event /// -public record TimelineReviewedEvent +public partial record TimelineReviewedEvent { [JsonPropertyName("event")] public required string Event { get; init; } @@ -25989,7 +27449,7 @@ public record TimelineReviewedEvent /// /// Pull Request Review Comments are comments on a portion of the Pull Request's diff. /// -public record PullRequestReviewComment +public partial record PullRequestReviewComment { /// /// URL for the pull request review comment @@ -26152,7 +27612,7 @@ public record PullRequestReviewComment /// /// Timeline Line Commented Event /// -public record TimelineLineCommentedEvent +public partial record TimelineLineCommentedEvent { [JsonPropertyName("event")] public string? Event { get; init; } @@ -26168,7 +27628,7 @@ public record TimelineLineCommentedEvent /// /// Timeline Commit Commented Event /// -public record TimelineCommitCommentedEvent +public partial record TimelineCommitCommentedEvent { [JsonPropertyName("event")] public string? Event { get; init; } @@ -26187,7 +27647,7 @@ public record TimelineCommitCommentedEvent /// /// Timeline Assigned Issue Event /// -public record TimelineAssignedIssueEvent +public partial record TimelineAssignedIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -26228,12 +27688,64 @@ public record TimelineAssignedIssueEvent [JsonPropertyName("assignee")] public required SimpleUser Assignee { get; init; } + /// + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. + /// + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } + } /// /// Timeline Unassigned Issue Event /// -public record TimelineUnassignedIssueEvent +public partial record TimelineUnassignedIssueEvent +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required string Url { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("actor")] + public required SimpleUser Actor { get; init; } + + [JsonPropertyName("event")] + public required string Event { get; init; } + + [JsonPropertyName("commit_id")] + public required string? CommitId { get; init; } + + [JsonPropertyName("commit_url")] + public required string? CommitUrl { get; init; } + + [JsonPropertyName("created_at")] + public required string CreatedAt { get; init; } + + /// + /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// + [JsonPropertyName("performed_via_github_app")] + public required NullableIntegration? PerformedViaGithubApp { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assignee")] + public required SimpleUser Assignee { get; init; } + +} + +/// +/// State Change Issue Event +/// +public partial record StateChangeIssueEvent { [JsonPropertyName("id")] public required int Id { get; init; } @@ -26268,68 +27780,28 @@ public record TimelineUnassignedIssueEvent [JsonPropertyName("performed_via_github_app")] public required NullableIntegration? PerformedViaGithubApp { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("assignee")] - public required SimpleUser Assignee { get; init; } - -} - -/// -/// State Change Issue Event -/// -public record StateChangeIssueEvent -{ - [JsonPropertyName("id")] - public required int Id { get; init; } - - [JsonPropertyName("node_id")] - public required string NodeId { get; init; } - - [JsonPropertyName("url")] - public required string Url { get; init; } - - /// - /// A GitHub user. - /// - [JsonPropertyName("actor")] - public required SimpleUser Actor { get; init; } - - [JsonPropertyName("event")] - public required string Event { get; init; } - - [JsonPropertyName("commit_id")] - public required string? CommitId { get; init; } - - [JsonPropertyName("commit_url")] - public required string? CommitUrl { get; init; } - - [JsonPropertyName("created_at")] - public required string CreatedAt { get; init; } + [JsonPropertyName("state_reason")] + public string? StateReason { get; init; } /// - /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. + /// The intent behind an agent's action on an issue, including the rationale and confidence. Present (and `null` when the event carried no agent intent) on supported event types while the issue suggestions feature is enabled for the repository; the property is omitted entirely when the feature is disabled or the event type does not support intent. /// - [JsonPropertyName("performed_via_github_app")] - public required NullableIntegration? PerformedViaGithubApp { get; init; } - - [JsonPropertyName("state_reason")] - public string? StateReason { get; init; } + [JsonPropertyName("intent")] + public NullableIssueEventIntent? Intent { get; init; } } /// /// Timeline Event /// -public record TimelineIssueEvents +public partial record TimelineIssueEvents { } /// /// An SSH key granting access to a single repository. /// -public record DeployKey +public partial record DeployKey { [JsonPropertyName("id")] public required int Id { get; init; } @@ -26371,7 +27843,7 @@ public record Language; /// /// License Content /// -public record LicenseContent +public partial record LicenseContent { [JsonPropertyName("name")] public required string Name { get; init; } @@ -26420,7 +27892,7 @@ public record LicenseContent /// /// Results of a successful merge upstream request /// -public record MergedUpstream +public partial record MergedUpstream { [JsonPropertyName("message")] public string? Message { get; init; } @@ -26436,7 +27908,7 @@ public record MergedUpstream /// /// A collection of related issues and pull requests. /// -public record Milestone +public partial record Milestone { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -26500,7 +27972,7 @@ public record Milestone } -public record PagesSourceHash +public partial record PagesSourceHash { [JsonPropertyName("branch")] public required string Branch { get; init; } @@ -26510,7 +27982,7 @@ public record PagesSourceHash } -public record PagesHttpsCertificate +public partial record PagesHttpsCertificate { [JsonPropertyName("state")] public required PagesHttpsCertificateState State { get; init; } @@ -26532,7 +28004,7 @@ public record PagesHttpsCertificate /// /// The configuration for GitHub Pages for a repository. /// -public record Page +public partial record Page { /// /// The API address for accessing this Page resource. @@ -26605,7 +28077,7 @@ public record Page /// /// Page Build /// -public record PageBuild +public partial record PageBuild { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -26639,7 +28111,7 @@ public record PageBuild /// /// Page Build Status /// -public record PageBuildStatus +public partial record PageBuildStatus { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -26652,7 +28124,7 @@ public record PageBuildStatus /// /// The GitHub Pages deployment status. /// -public record PageDeployment +public partial record PageDeployment { /// /// The ID of the GitHub Pages deployment. This is the Git SHA of the deployed commit. @@ -26680,7 +28152,7 @@ public record PageDeployment } -public record PagesDeploymentStatus +public partial record PagesDeploymentStatus { /// /// The current status of the deployment. @@ -26693,7 +28165,7 @@ public record PagesDeploymentStatus /// /// Pages Health Check Status /// -public record PagesHealthCheck +public partial record PagesHealthCheck { [JsonPropertyName("domain")] public object? Domain { get; init; } @@ -26706,7 +28178,7 @@ public record PagesHealthCheck /// /// Pull requests let you tell others about changes you've pushed to a repository on GitHub. Once a pull request is sent, interested parties can review the set of changes, discuss potential modifications, and even push follow-up commits if necessary. /// -public record PullRequest +public partial record PullRequest { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -26837,6 +28309,12 @@ public record PullRequest [JsonPropertyName("auto_merge")] public required AutoMerge? AutoMerge { get; init; } + /// + /// The stack information associated with a pull request. + /// + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } + /// /// Indicates whether or not the pull request is a draft. /// @@ -26890,7 +28368,7 @@ public record PullRequest /// /// Pull Request Merge Result /// -public record PullRequestMergeResult +public partial record PullRequestMergeResult { [JsonPropertyName("sha")] public required string Sha { get; init; } @@ -26903,10 +28381,23 @@ public record PullRequestMergeResult } +/// +/// Pull Request Merge Async Result +/// +public partial record PullRequestMergeAsyncResult +{ + [JsonPropertyName("status")] + public required PullRequestMergeAsyncResultStatus Status { get; init; } + + [JsonPropertyName("details")] + public required object Details { get; init; } + +} + /// /// Pull Request Review Request /// -public record PullRequestReviewRequest +public partial record PullRequestReviewRequest { [JsonPropertyName("users")] public required IReadOnlyList Users { get; init; } @@ -26919,7 +28410,7 @@ public record PullRequestReviewRequest /// /// Pull Request Reviews are reviews on pull requests. /// -public record PullRequestReview +public partial record PullRequestReview { /// /// Unique identifier of the review @@ -26980,7 +28471,7 @@ public record PullRequestReview /// /// Legacy Review Comment /// -public record ReviewComment +public partial record ReviewComment { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -27101,7 +28592,7 @@ public record ReviewComment /// /// Generated name and body describing a release /// -public record ReleaseNotesContent +public partial record ReleaseNotesContent { /// /// The generated name of the release @@ -27120,7 +28611,7 @@ public record ReleaseNotesContent /// /// User-defined metadata to store domain-specific information limited to 8 keys with scalar values. /// -public record RepositoryRuleRulesetInfo +public partial record RepositoryRuleRulesetInfo { /// /// The type of source for the ruleset that includes this rule. @@ -27145,11 +28636,220 @@ public record RepositoryRuleRulesetInfo /// /// A repository rule with ruleset details. /// -public record RepositoryRuleDetailed +public partial record RepositoryRuleDetailed +{ +} + +public partial record SecretScanningAlert { + /// + /// The security alert number. + /// + [JsonPropertyName("number")] + public AlertNumber? Number { get; init; } + + /// + /// The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// + [JsonPropertyName("created_at")] + public AlertCreatedAt? CreatedAt { get; init; } + + /// + /// The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// + [JsonPropertyName("updated_at")] + public NullableAlertUpdatedAt? UpdatedAt { get; init; } + + /// + /// The REST API URL of the alert resource. + /// + [JsonPropertyName("url")] + public AlertUrl? Url { get; init; } + + /// + /// The GitHub URL of the alert resource. + /// + [JsonPropertyName("html_url")] + public AlertHtmlUrl? HtmlUrl { get; init; } + + /// + /// The REST API URL of the code locations for this alert. + /// + [JsonPropertyName("locations_url")] + public Uri? LocationsUrl { get; init; } + + /// + /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. + /// + [JsonPropertyName("state")] + public OrganizationSecretScanningAlertState? State { get; init; } + + /// + /// **Required when the `state` is `resolved`.** The reason for resolving the alert. + /// + [JsonPropertyName("resolution")] + public OrganizationSecretScanningAlertResolution? Resolution { get; init; } + + /// + /// The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// + [JsonPropertyName("resolved_at")] + public DateTimeOffset? ResolvedAt { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("resolved_by")] + public NullableSimpleUser? ResolvedBy { get; init; } + + /// + /// An optional comment to resolve an alert. + /// + [JsonPropertyName("resolution_comment")] + public string? ResolutionComment { get; init; } + + /// + /// The type of secret that secret scanning detected. + /// + [JsonPropertyName("secret_type")] + public string? SecretType { get; init; } + + /// + /// User-friendly name for the detected secret, matching the `secret_type`. + /// For a list of built-in patterns, see "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." + /// + [JsonPropertyName("secret_type_display_name")] + public string? SecretTypeDisplayName { get; init; } + + /// + /// The provider of the secret that was detected. + /// + [JsonPropertyName("provider")] + public string? Provider { get; init; } + + /// + /// The slug identifier for the provider of the secret that was detected. Use this value for filtering by provider with the `providers` or `exclude_providers` parameters. + /// + [JsonPropertyName("provider_slug")] + public string? ProviderSlug { get; init; } + + /// + /// The secret that was detected. + /// + [JsonPropertyName("secret")] + public string? Secret { get; init; } + + /// + /// Whether push protection was bypassed for the detected secret. + /// + [JsonPropertyName("push_protection_bypassed")] + public bool? PushProtectionBypassed { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("push_protection_bypassed_by")] + public NullableSimpleUser? PushProtectionBypassedBy { get; init; } + + /// + /// The time that push protection was bypassed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. + /// + [JsonPropertyName("push_protection_bypassed_at")] + public DateTimeOffset? PushProtectionBypassedAt { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("push_protection_bypass_request_reviewer")] + public NullableSimpleUser? PushProtectionBypassRequestReviewer { get; init; } + + /// + /// An optional comment when reviewing a push protection bypass. + /// + [JsonPropertyName("push_protection_bypass_request_reviewer_comment")] + public string? PushProtectionBypassRequestReviewerComment { get; init; } + + /// + /// An optional comment when requesting a push protection bypass. + /// + [JsonPropertyName("push_protection_bypass_request_comment")] + public string? PushProtectionBypassRequestComment { get; init; } + + /// + /// The URL to a push protection bypass request. + /// + [JsonPropertyName("push_protection_bypass_request_html_url")] + public Uri? PushProtectionBypassRequestHtmlUrl { get; init; } + + /// + /// The token status as of the latest validity check. + /// + [JsonPropertyName("validity")] + public Validity? Validity { get; init; } + + /// + /// Whether the detected secret was publicly leaked. + /// + [JsonPropertyName("publicly_leaked")] + public bool? PubliclyLeaked { get; init; } + + /// + /// Whether the detected secret was found in multiple repositories under the same organization or enterprise. + /// + [JsonPropertyName("multi_repo")] + public bool? MultiRepo { get; init; } + + /// + /// A boolean value representing whether or not alert is base64 encoded + /// + [JsonPropertyName("is_base64_encoded")] + public bool? IsBase64Encoded { get; init; } + + /// + /// Details on the location where the token was initially detected. This can be a commit, wiki commit, issue, discussion, pull request. + /// + /// + [JsonPropertyName("first_location_detected")] + public NullableSecretScanningFirstDetectedLocation? FirstLocationDetected { get; init; } + + /// + /// A boolean value representing whether or not the token in the alert was detected in more than one location. + /// + [JsonPropertyName("has_more_locations")] + public bool? HasMoreLocations { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("assigned_to")] + public NullableSimpleUser? AssignedTo { get; init; } + + /// + /// An optional comment from the closure request author. + /// + [JsonPropertyName("closure_request_comment")] + public string? ClosureRequestComment { get; init; } + + /// + /// An optional comment from the closure request reviewer. + /// + [JsonPropertyName("closure_request_reviewer_comment")] + public string? ClosureRequestReviewerComment { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("closure_request_reviewer")] + public NullableSimpleUser? ClosureRequestReviewer { get; init; } + } -public record SecretScanningAlert +/// +/// A list of metadata key/value pairs associated with the secret scanning alert. +/// +public record SecretScanningAlertMetadata; + +public partial record SecretScanningAlertWithMetadata { /// /// The security alert number. @@ -27351,6 +29051,12 @@ public record SecretScanningAlert [JsonPropertyName("closure_request_reviewer")] public NullableSimpleUser? ClosureRequestReviewer { get; init; } + /// + /// A list of metadata key/value pairs associated with the secret scanning alert. + /// + [JsonPropertyName("metadata")] + public SecretScanningAlertMetadata? Metadata { get; init; } + } /// @@ -27360,7 +29066,7 @@ public record SecretScanningAlert /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningAlertResolutionComment(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningAlertResolutionComment(string? Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningAlertResolutionComment Create(string? value) => new(value); } @@ -27372,12 +29078,12 @@ public readonly record struct SecretScanningAlertResolutionComment(string? Value /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct SecretScanningAlertAssignee(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct SecretScanningAlertAssignee(string? Value) : IOpenApiGeneratedTypeAlias { public static SecretScanningAlertAssignee Create(string? value) => new(value); } -public record SecretScanningLocation +public partial record SecretScanningLocation { /// /// The location type. Because secrets may be found in different types of resources (ie. code, comments, issues, pull requests, discussions), this field identifies the type of resource where the secret was found. @@ -27393,7 +29099,7 @@ public record SecretScanningLocation /// /// The reason for bypassing push protection. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningPushProtectionBypassReason { [JsonStringEnumMemberName("false_positive")] @@ -27404,7 +29110,7 @@ public enum SecretScanningPushProtectionBypassReason WillFixLater } -public record SecretScanningPushProtectionBypass +public partial record SecretScanningPushProtectionBypass { /// /// The reason for bypassing push protection. @@ -27429,7 +29135,7 @@ public record SecretScanningPushProtectionBypass /// /// Information on a single scan performed by secret scanning on the repository /// -public record SecretScanningScan +public partial record SecretScanningScan { /// /// The type of scan @@ -27462,7 +29168,7 @@ public record SecretScanningScan } -public record SecretScanningScanHistory +public partial record SecretScanningScanHistory { [JsonPropertyName("incremental_scans")] public IReadOnlyList? IncrementalScans { get; init; } @@ -27481,7 +29187,7 @@ public record SecretScanningScanHistory } -public record RepositoryAdvisoryCreate +public partial record RepositoryAdvisoryCreate { /// /// A short summary of the advisory. @@ -27539,7 +29245,7 @@ public record RepositoryAdvisoryCreate } -public record PrivateVulnerabilityReportCreate +public partial record PrivateVulnerabilityReportCreate { /// /// A short summary of the advisory. @@ -27585,7 +29291,7 @@ public record PrivateVulnerabilityReportCreate } -public record RepositoryAdvisoryUpdate +public partial record RepositoryAdvisoryUpdate { /// /// A short summary of the advisory. @@ -27655,10 +29361,69 @@ public record RepositoryAdvisoryUpdate } +public partial record PullRequestStackMinimal +{ + [JsonPropertyName("id")] + public required int Id { get; init; } + + [JsonPropertyName("number")] + public required int Number { get; init; } + + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("url")] + public required Uri Url { get; init; } + + [JsonPropertyName("base")] + public required object Base { get; init; } + + /// + /// Whether the stack has any open pull request. False when all pull requests are merged or closed. + /// + [JsonPropertyName("open")] + public required bool Open { get; init; } + + [JsonPropertyName("created_at")] + public required DateTimeOffset CreatedAt { get; init; } + + [JsonPropertyName("pull_requests")] + public required IReadOnlyList PullRequests { get; init; } + +} + +public partial record PullRequestStackPullRequest : PullRequestMinimal +{ + [JsonPropertyName("node_id")] + public required string NodeId { get; init; } + + [JsonPropertyName("title")] + public required string Title { get; init; } + + [JsonPropertyName("state")] + public required NullableMilestoneState State { get; init; } + + [JsonPropertyName("merged_at")] + public required DateTimeOffset? MergedAt { get; init; } + + [JsonPropertyName("draft")] + public required bool Draft { get; init; } + + [JsonPropertyName("html_url")] + public required Uri HtmlUrl { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("user")] + public required NullableSimpleUser? User { get; init; } + +} + /// /// Stargazer /// -public record Stargazer +public partial record Stargazer { [JsonPropertyName("starred_at")] public required DateTimeOffset StarredAt { get; init; } @@ -27679,7 +29444,7 @@ public record CodeFrequencyStat; /// /// Commit Activity /// -public record CommitActivity +public partial record CommitActivity { [JsonPropertyName("days")] public required IReadOnlyList Days { get; init; } @@ -27695,7 +29460,7 @@ public record CommitActivity /// /// Contributor Activity /// -public record ContributorActivity +public partial record ContributorActivity { /// /// A GitHub user. @@ -27711,7 +29476,7 @@ public record ContributorActivity } -public record ParticipationStats +public partial record ParticipationStats { [JsonPropertyName("all")] public required IReadOnlyList All { get; init; } @@ -27724,7 +29489,7 @@ public record ParticipationStats /// /// Repository invitations let you manage who you collaborate with. /// -public record RepositorySubscription +public partial record RepositorySubscription { /// /// Determines if notifications should be received from this repository. @@ -27755,7 +29520,7 @@ public record RepositorySubscription /// /// Tag /// -public record Tag +public partial record Tag { [JsonPropertyName("name")] public required string Name { get; init; } @@ -27777,14 +29542,14 @@ public record Tag /// /// A topic aggregates entities that are related to a subject. /// -public record Topic +public partial record Topic { [JsonPropertyName("names")] public required IReadOnlyList Names { get; init; } } -public record Traffic +public partial record Traffic { [JsonPropertyName("timestamp")] public required DateTimeOffset Timestamp { get; init; } @@ -27800,7 +29565,7 @@ public record Traffic /// /// Clone Traffic /// -public record CloneTraffic +public partial record CloneTraffic { [JsonPropertyName("count")] public required int Count { get; init; } @@ -27816,7 +29581,7 @@ public record CloneTraffic /// /// Content Traffic /// -public record ContentTraffic +public partial record ContentTraffic { [JsonPropertyName("path")] public required string Path { get; init; } @@ -27835,7 +29600,7 @@ public record ContentTraffic /// /// Referrer Traffic /// -public record ReferrerTraffic +public partial record ReferrerTraffic { [JsonPropertyName("referrer")] public required string Referrer { get; init; } @@ -27851,7 +29616,7 @@ public record ReferrerTraffic /// /// View Traffic /// -public record ViewTraffic +public partial record ViewTraffic { [JsonPropertyName("count")] public required int Count { get; init; } @@ -27869,7 +29634,7 @@ public record SearchResultTextMatches; /// /// Code Search Result Item /// -public record CodeSearchResultItem +public partial record CodeSearchResultItem { [JsonPropertyName("name")] public required string Name { get; init; } @@ -27918,7 +29683,7 @@ public record CodeSearchResultItem /// /// Commit Search Result Item /// -public record CommitSearchResultItem +public partial record CommitSearchResultItem { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -27970,7 +29735,7 @@ public record CommitSearchResultItem /// /// Issue Search Result Item /// -public record IssueSearchResultItem +public partial record IssueSearchResultItem { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -28121,7 +29886,7 @@ public record IssueSearchResultItem /// /// Label Search Result Item /// -public record LabelSearchResultItem +public partial record LabelSearchResultItem { [JsonPropertyName("id")] public required int Id { get; init; } @@ -28155,7 +29920,7 @@ public record LabelSearchResultItem /// /// Repo Search Result Item /// -public record RepoSearchResultItem +public partial record RepoSearchResultItem { [JsonPropertyName("id")] public required int Id { get; init; } @@ -28450,7 +30215,7 @@ public record RepoSearchResultItem /// /// Topic Search Result Item /// -public record TopicSearchResultItem +public partial record TopicSearchResultItem { [JsonPropertyName("name")] public required string Name { get; init; } @@ -28505,7 +30270,7 @@ public record TopicSearchResultItem /// /// User Search Result Item /// -public record UserSearchResultItem +public partial record UserSearchResultItem { [JsonPropertyName("login")] public required string Login { get; init; } @@ -28617,7 +30382,7 @@ public record UserSearchResultItem /// /// Private User /// -public record PrivateUser +public partial record PrivateUser { [JsonPropertyName("login")] public required string Login { get; init; } @@ -28753,7 +30518,7 @@ public record PrivateUser /// /// Secrets for a GitHub Codespace. /// -public record CodespacesSecret +public partial record CodespacesSecret { /// /// The name of the secret @@ -28790,7 +30555,7 @@ public record CodespacesSecret /// /// The public key used for setting user Codespaces' Secrets. /// -public record CodespacesUserPublicKey +public partial record CodespacesUserPublicKey { /// /// The identifier for the key. @@ -28809,7 +30574,7 @@ public record CodespacesUserPublicKey /// /// An export of a codespace. Also, latest export details for a codespace can be fetched with id = latest /// -public record CodespaceExportDetails +public partial record CodespaceExportDetails { /// /// State of the latest export @@ -28858,7 +30623,7 @@ public record CodespaceExportDetails /// /// A codespace. /// -public record CodespaceWithFullRepository +public partial record CodespaceWithFullRepository { [JsonPropertyName("id")] public required long Id { get; init; } @@ -29036,7 +30801,7 @@ public record CodespaceWithFullRepository /// /// Email /// -public record Email +public partial record Email { [JsonPropertyName("email")] public required string EmailValue { get; init; } @@ -29055,7 +30820,7 @@ public record Email /// /// A unique encryption key /// -public record GpgKey +public partial record GpgKey { [JsonPropertyName("id")] public required long Id { get; init; } @@ -29107,7 +30872,7 @@ public record GpgKey /// /// Key /// -public record Key +public partial record Key { [JsonPropertyName("key")] public required string KeyValue { get; init; } @@ -29135,7 +30900,7 @@ public record Key } -public record MarketplaceAccount +public partial record MarketplaceAccount { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -29163,7 +30928,7 @@ public record MarketplaceAccount /// /// User Marketplace Purchase /// -public record UserMarketplacePurchase +public partial record UserMarketplacePurchase { [JsonPropertyName("billing_cycle")] public required string BillingCycle { get; init; } @@ -29197,7 +30962,7 @@ public record UserMarketplacePurchase /// /// Social media account /// -public record SocialAccount +public partial record SocialAccount { [JsonPropertyName("provider")] public required string Provider { get; init; } @@ -29210,7 +30975,7 @@ public record SocialAccount /// /// A public SSH key used to sign Git commits /// -public record SshSigningKey +public partial record SshSigningKey { [JsonPropertyName("key")] public required string Key { get; init; } @@ -29229,7 +30994,7 @@ public record SshSigningKey /// /// Starred Repository /// -public record StarredRepository +public partial record StarredRepository { [JsonPropertyName("starred_at")] public required DateTimeOffset StarredAt { get; init; } @@ -29245,7 +31010,7 @@ public record StarredRepository /// /// Hovercard /// -public record Hovercard +public partial record Hovercard { [JsonPropertyName("contexts")] public required IReadOnlyList Contexts { get; init; } @@ -29255,7 +31020,7 @@ public record Hovercard /// /// Key Simple /// -public record KeySimple +public partial record KeySimple { [JsonPropertyName("id")] public required int Id { get; init; } @@ -29271,7 +31036,7 @@ public record KeySimple } -public record BillingAiCreditUsageReportUser +public partial record BillingAiCreditUsageReportUser { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -29299,7 +31064,7 @@ public record BillingAiCreditUsageReportUser } -public record BillingPremiumRequestUsageReportUser +public partial record BillingPremiumRequestUsageReportUser { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -29327,14 +31092,14 @@ public record BillingPremiumRequestUsageReportUser } -public record BillingUsageReportUser +public partial record BillingUsageReportUser { [JsonPropertyName("usageItems")] public IReadOnlyList? UsageItems { get; init; } } -public record BillingUsageSummaryReportUser +public partial record BillingUsageSummaryReportUser { [JsonPropertyName("timePeriod")] public required object TimePeriod { get; init; } @@ -29373,7 +31138,7 @@ public record BillingUsageSummaryReportUser /// on an enterprise account or an organization that's part of an enterprise account. For more information, /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." /// -public record EnterpriseWebhooks +public partial record EnterpriseWebhooks { /// /// A short description of the enterprise. @@ -29427,7 +31192,7 @@ public record EnterpriseWebhooks /// for and sent to a GitHub App. For more information, /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// -public record SimpleInstallation +public partial record SimpleInstallation { /// /// The ID of the installation. @@ -29447,7 +31212,7 @@ public record SimpleInstallation /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an /// organization, or when the event occurs from activity in a repository owned by an organization. /// -public record OrganizationSimpleWebhooks +public partial record OrganizationSimpleWebhooks { [JsonPropertyName("login")] public required string Login { get; init; } @@ -29491,7 +31256,7 @@ public record OrganizationSimpleWebhooks /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. /// -public record RepositoryWebhooks +public partial record RepositoryWebhooks { /// /// Unique identifier of the repository @@ -29920,7 +31685,7 @@ public record RepositoryWebhooks /// /// The branch protection rule. Includes a `name` and all the [branch protection settings](https://docs.github.com/github/administering-a-repository/defining-the-mergeability-of-pull-requests/about-protected-branches#about-branch-protection-settings) applied to branches that match the name. Binary settings are boolean. Multi-level configurations are one of `off`, `non_admins`, or `everyone`. Actor and build lists are arrays of strings. /// -public record WebhooksRule +public partial record WebhooksRule { [JsonPropertyName("admin_enforced")] public required bool AdminEnforced { get; init; } @@ -30020,7 +31785,7 @@ public record WebhooksRule /// /// A suite of checks performed on the code of a given code change /// -public record SimpleCheckSuite +public partial record SimpleCheckSuite { [JsonPropertyName("after")] public string? After { get; init; } @@ -30078,7 +31843,7 @@ public record SimpleCheckSuite /// /// A check performed on the code of a given code change /// -public record CheckRunWithSimpleCheckSuite +public partial record CheckRunWithSimpleCheckSuite { /// /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. @@ -30161,7 +31926,7 @@ public record CheckRunWithSimpleCheckSuite /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksCodeScanningCommitOid(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksCodeScanningCommitOid(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksCodeScanningCommitOid Create(string value) => new(value); } @@ -30173,7 +31938,7 @@ public readonly record struct WebhooksCodeScanningCommitOid(string Value) : IOpe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksCodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksCodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksCodeScanningRef Create(string value) => new(value); } @@ -30185,7 +31950,7 @@ public readonly record struct WebhooksCodeScanningRef(string Value) : IOpenApiGe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksDeployPusherType(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksDeployPusherType(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksDeployPusherType Create(string value) => new(value); } @@ -30197,7 +31962,7 @@ public readonly record struct WebhooksDeployPusherType(string Value) : IOpenApiG /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksRef0(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksRef0(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksRef0 Create(string value) => new(value); } @@ -30205,7 +31970,7 @@ public readonly record struct WebhooksRef0(string Value) : IOpenApiGeneratedType /// /// The [`deploy key`](https://docs.github.com/rest/deploy-keys/deploy-keys#get-a-deploy-key) resource. /// -public record WebhooksDeployKey +public partial record WebhooksDeployKey { [JsonPropertyName("added_by")] public string? AddedBy { get; init; } @@ -30239,7 +32004,7 @@ public record WebhooksDeployKey } -public record WebhooksWorkflow +public partial record WebhooksWorkflow { [JsonPropertyName("badge_url")] public required Uri BadgeUrl { get; init; } @@ -30276,7 +32041,7 @@ public record WebhooksWorkflow /// /// A request for a specific ref(branch,sha,tag) to be deployed /// -public record NullableDeployment +public partial record NullableDeployment { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -30358,7 +32123,7 @@ public record NullableDeployment } -public record WebhooksApprover +public partial record WebhooksApprover { [JsonPropertyName("avatar_url")] public string? AvatarUrl { get; init; } @@ -30421,7 +32186,7 @@ public record WebhooksApprover public record WebhooksReviewers; -public record WebhooksWorkflowJobRun +public partial record WebhooksWorkflowJobRun { [JsonPropertyName("conclusion")] public required object? Conclusion { get; init; } @@ -30449,7 +32214,7 @@ public record WebhooksWorkflowJobRun } -public record WebhooksUser +public partial record WebhooksUser { [JsonPropertyName("avatar_url")] public Uri? AvatarUrl { get; init; } @@ -30519,7 +32284,7 @@ public record WebhooksUser } -public record WebhooksAnswer +public partial record WebhooksAnswer { /// /// How the author is associated with the repository. @@ -30565,7 +32330,7 @@ public record WebhooksAnswer } -public record WebhooksComment +public partial record WebhooksComment { /// /// How the author is associated with the repository. @@ -30611,7 +32376,7 @@ public record WebhooksComment } -public record WebhooksLabel +public partial record WebhooksLabel { /// /// 6-character hex code, without the leading #, identifying the color @@ -30658,7 +32423,7 @@ public record WebhooksRepositoriesAdded; /// /// Describe whether all repositories have been selected or there's a selection involved /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WebhooksRepositorySelection { [JsonStringEnumMemberName("all")] @@ -30670,7 +32435,7 @@ public enum WebhooksRepositorySelection /// /// The [comment](https://docs.github.com/rest/issues/comments#get-an-issue-comment) itself. /// -public record WebhooksIssueComment +public partial record WebhooksIssueComment { /// /// How the author is associated with the repository. @@ -30729,12 +32494,18 @@ public record WebhooksIssueComment [JsonPropertyName("pin")] public NullablePinnedIssueComment? Pin { get; init; } + /// + /// Details about why an issue comment was minimized. + /// + [JsonPropertyName("minimized")] + public NullableIssueCommentMinimized? Minimized { get; init; } + } /// /// The changes to the comment. /// -public record WebhooksChanges +public partial record WebhooksChanges { [JsonPropertyName("body")] public object? Body { get; init; } @@ -30744,7 +32515,7 @@ public record WebhooksChanges /// /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. /// -public record WebhooksIssue +public partial record WebhooksIssue { [JsonPropertyName("active_lock_reason")] public required ActiveLockReason ActiveLockReason { get; init; } @@ -30883,7 +32654,7 @@ public record WebhooksIssue /// /// A collection of related issues and pull requests. /// -public record WebhooksMilestone +public partial record WebhooksMilestone { [JsonPropertyName("closed_at")] public required DateTimeOffset? ClosedAt { get; init; } @@ -30947,7 +32718,7 @@ public record WebhooksMilestone /// /// The [issue](https://docs.github.com/rest/issues/issues#get-an-issue) itself. /// -public record WebhooksIssue2 +public partial record WebhooksIssue2 { [JsonPropertyName("active_lock_reason")] public required ActiveLockReason ActiveLockReason { get; init; } @@ -31083,7 +32854,7 @@ public record WebhooksIssue2 } -public record WebhooksUserMannequin +public partial record WebhooksUserMannequin { [JsonPropertyName("avatar_url")] public Uri? AvatarUrl { get; init; } @@ -31153,7 +32924,7 @@ public record WebhooksUserMannequin } -public record WebhooksMarketplacePurchase +public partial record WebhooksMarketplacePurchase { [JsonPropertyName("account")] public required object Account { get; init; } @@ -31178,7 +32949,7 @@ public record WebhooksMarketplacePurchase } -public record WebhooksPreviousMarketplacePurchase +public partial record WebhooksPreviousMarketplacePurchase { [JsonPropertyName("account")] public required object Account { get; init; } @@ -31206,7 +32977,7 @@ public record WebhooksPreviousMarketplacePurchase /// /// Groups of organization members that gives permissions on specified repositories. /// -public record WebhooksTeam +public partial record WebhooksTeam { [JsonPropertyName("deleted")] public bool? Deleted { get; init; } @@ -31288,7 +33059,7 @@ public record WebhooksTeam /// /// A group of pull requests that the merge queue has grouped together to be merged. /// -public record MergeGroup +public partial record MergeGroup { /// /// The SHA of the merge group. @@ -31326,7 +33097,7 @@ public record MergeGroup /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. /// -public record NullableRepositoryWebhooks +public partial record NullableRepositoryWebhooks { /// /// Unique identifier of the repository @@ -31755,7 +33526,7 @@ public record NullableRepositoryWebhooks /// /// A collection of related issues and pull requests. /// -public record WebhooksMilestone3 +public partial record WebhooksMilestone3 { [JsonPropertyName("closed_at")] public required DateTimeOffset? ClosedAt { get; init; } @@ -31819,7 +33590,7 @@ public record WebhooksMilestone3 /// /// The membership between the user and the organization. Not present when the action is `member_invited`. /// -public record WebhooksMembership +public partial record WebhooksMembership { [JsonPropertyName("organization_url")] public required Uri OrganizationUrl { get; init; } @@ -31854,7 +33625,7 @@ public record WebhooksMembership /// /// Details of a Personal Access Token Request. /// -public record PersonalAccessTokenRequest +public partial record PersonalAccessTokenRequest { /// /// Unique identifier of the request for access via fine-grained personal access token. Used as the `pat_request_id` parameter in the list and review API calls. @@ -31942,7 +33713,7 @@ public record PersonalAccessTokenRequest } -public record WebhooksProjectCard +public partial record WebhooksProjectCard { [JsonPropertyName("after_id")] public int? AfterId { get; init; } @@ -31991,7 +33762,7 @@ public record WebhooksProjectCard } -public record WebhooksProject +public partial record WebhooksProject { /// /// Body of the project @@ -32043,7 +33814,7 @@ public record WebhooksProject } -public record WebhooksProjectColumn +public partial record WebhooksProjectColumn { [JsonPropertyName("after_id")] public int? AfterId { get; init; } @@ -32080,7 +33851,7 @@ public record WebhooksProjectColumn } -public record WebhooksProjectChanges +public partial record WebhooksProjectChanges { [JsonPropertyName("archived_at")] public object? ArchivedAt { get; init; } @@ -32090,7 +33861,7 @@ public record WebhooksProjectChanges /// /// An item belonging to a project /// -public record ProjectsV2Item +public partial record ProjectsV2Item { /// /// The unique identifier of the project item. @@ -32151,7 +33922,7 @@ public record ProjectsV2Item /// /// An option for a single select field /// -public record ProjectsV2SingleSelectOption +public partial record ProjectsV2SingleSelectOption { /// /// The unique identifier of the option. @@ -32182,7 +33953,7 @@ public record ProjectsV2SingleSelectOption /// /// An iteration setting for an iteration field /// -public record ProjectsV2IterationSetting +public partial record ProjectsV2IterationSetting { /// /// The unique identifier of the iteration setting. @@ -32225,7 +33996,7 @@ public record ProjectsV2IterationSetting /// /// An status update belonging to a project /// -public record ProjectsV2StatusUpdate +public partial record ProjectsV2StatusUpdate { /// /// The unique identifier of the status update. @@ -32296,12 +34067,12 @@ public record ProjectsV2StatusUpdate /// Type alias for int. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksNumber(int Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksNumber(int Value) : IOpenApiGeneratedTypeAlias { public static WebhooksNumber Create(int value) => new(value); } -public record PullRequestWebhook : PullRequest +public partial record PullRequestWebhook : PullRequest { /// /// Whether to allow auto-merge for pull requests. @@ -32363,7 +34134,7 @@ public record PullRequestWebhook : PullRequest } -public record WebhooksPullRequest5 +public partial record WebhooksPullRequest5 { [JsonPropertyName("_links")] public required object Links { get; init; } @@ -32509,6 +34280,12 @@ public record WebhooksPullRequest5 [JsonPropertyName("review_comments_url")] public required Uri ReviewCommentsUrl { get; init; } + /// + /// The stack information associated with a pull request. + /// + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } + /// /// State of this Pull Request. Either `open` or `closed`. /// @@ -32538,7 +34315,7 @@ public record WebhooksPullRequest5 /// /// The [comment](https://docs.github.com/rest/pulls/comments#get-a-review-comment-for-a-pull-request) itself. /// -public record WebhooksReviewComment +public partial record WebhooksReviewComment { [JsonPropertyName("_links")] public required object Links { get; init; } @@ -32692,7 +34469,7 @@ public record WebhooksReviewComment /// /// The review that was affected. /// -public record WebhooksReview +public partial record WebhooksReview { [JsonPropertyName("_links")] public required object Links { get; init; } @@ -32748,7 +34525,7 @@ public record WebhooksReview /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksNullableString(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksNullableString(string? Value) : IOpenApiGeneratedTypeAlias { public static WebhooksNullableString Create(string? value) => new(value); } @@ -32756,7 +34533,7 @@ public readonly record struct WebhooksNullableString(string? Value) : IOpenApiGe /// /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// -public record WebhooksRelease +public partial record WebhooksRelease { [JsonPropertyName("assets")] public required IReadOnlyList Assets { get; init; } @@ -32844,7 +34621,7 @@ public record WebhooksRelease /// /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// -public record WebhooksRelease1 +public partial record WebhooksRelease1 { [JsonPropertyName("assets")] public required IReadOnlyList Assets { get; init; } @@ -32932,7 +34709,7 @@ public record WebhooksRelease1 /// /// The security alert of the vulnerable dependency. /// -public record WebhooksAlert +public partial record WebhooksAlert { [JsonPropertyName("affected_package_name")] public required string AffectedPackageName { get; init; } @@ -32990,7 +34767,7 @@ public record WebhooksAlert /// /// The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertResolutionWebhook { [JsonStringEnumMemberName("false_positive")] @@ -33007,7 +34784,7 @@ public enum SecretScanningAlertResolutionWebhook PatternEdited } -public record SecretScanningAlertWebhook +public partial record SecretScanningAlertWebhook { /// /// The security alert number. @@ -33094,6 +34871,12 @@ public record SecretScanningAlertWebhook [JsonPropertyName("provider_slug")] public string? ProviderSlug { get; init; } + /// + /// The category of the detected secret. `default` covers specific provider patterns and custom patterns; `generic` covers non-specific patterns and AI-detected secrets. + /// + [JsonPropertyName("secret_category")] + public SecretCategory? SecretCategory { get; init; } + /// /// The token status as of the latest validity check. /// @@ -33178,12 +34961,18 @@ public record SecretScanningAlertWebhook [JsonPropertyName("closure_request_reviewer")] public NullableSimpleUser? ClosureRequestReviewer { get; init; } + /// + /// A list of metadata key/value pairs associated with the secret scanning alert. + /// + [JsonPropertyName("metadata")] + public SecretScanningAlertMetadata? Metadata { get; init; } + } /// /// The details of the security advisory, including summary, description, and severity. /// -public record WebhooksSecurityAdvisory +public partial record WebhooksSecurityAdvisory { [JsonPropertyName("cvss")] public required object Cvss { get; init; } @@ -33226,7 +35015,7 @@ public record WebhooksSecurityAdvisory } -public record WebhooksSponsorship +public partial record WebhooksSponsorship { [JsonPropertyName("created_at")] public required string CreatedAt { get; init; } @@ -33261,12 +35050,12 @@ public record WebhooksSponsorship /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct WebhooksEffectiveDate(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct WebhooksEffectiveDate(string Value) : IOpenApiGeneratedTypeAlias { public static WebhooksEffectiveDate Create(string value) => new(value); } -public record WebhooksChanges8 +public partial record WebhooksChanges8 { [JsonPropertyName("tier")] public required object Tier { get; init; } @@ -33276,7 +35065,7 @@ public record WebhooksChanges8 /// /// Groups of organization members that gives permissions on specified repositories. /// -public record WebhooksTeam1 +public partial record WebhooksTeam1 { [JsonPropertyName("deleted")] public bool? Deleted { get; init; } @@ -33358,7 +35147,7 @@ public record WebhooksTeam1 } -public record WebhookBranchProtectionConfigurationDisabled +public partial record WebhookBranchProtectionConfigurationDisabled { [JsonPropertyName("action")] public required WebhookBranchProtectionConfigurationDisabledAction Action { get; init; } @@ -33401,7 +35190,7 @@ public record WebhookBranchProtectionConfigurationDisabled } -public record WebhookBranchProtectionConfigurationEnabled +public partial record WebhookBranchProtectionConfigurationEnabled { [JsonPropertyName("action")] public required WebhookBranchProtectionConfigurationEnabledAction Action { get; init; } @@ -33444,7 +35233,7 @@ public record WebhookBranchProtectionConfigurationEnabled } -public record WebhookBranchProtectionRuleCreated +public partial record WebhookBranchProtectionRuleCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -33493,7 +35282,7 @@ public record WebhookBranchProtectionRuleCreated } -public record WebhookBranchProtectionRuleDeleted +public partial record WebhookBranchProtectionRuleDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -33542,7 +35331,7 @@ public record WebhookBranchProtectionRuleDeleted } -public record WebhookBranchProtectionRuleEdited +public partial record WebhookBranchProtectionRuleEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -33597,7 +35386,7 @@ public record WebhookBranchProtectionRuleEdited } -public record WebhookCheckRunCompleted +public partial record WebhookCheckRunCompleted { [JsonPropertyName("action")] public WebhookCheckRunCompletedAction? Action { get; init; } @@ -33649,7 +35438,7 @@ public record WebhookCheckRunCompleted /// /// The check_run.completed webhook encoded with URL encoding /// -public record WebhookCheckRunCompletedFormEncoded +public partial record WebhookCheckRunCompletedFormEncoded { /// /// A URL-encoded string of the check_run.completed JSON payload. The decoded payload is a JSON object. @@ -33659,7 +35448,7 @@ public record WebhookCheckRunCompletedFormEncoded } -public record WebhookCheckRunCreated +public partial record WebhookCheckRunCreated { [JsonPropertyName("action")] public WebhookBranchProtectionRuleCreatedAction? Action { get; init; } @@ -33711,7 +35500,7 @@ public record WebhookCheckRunCreated /// /// The check_run.created webhook encoded with URL encoding /// -public record WebhookCheckRunCreatedFormEncoded +public partial record WebhookCheckRunCreatedFormEncoded { /// /// A URL-encoded string of the check_run.created JSON payload. The decoded payload is a JSON object. @@ -33721,7 +35510,7 @@ public record WebhookCheckRunCreatedFormEncoded } -public record WebhookCheckRunRequestedAction +public partial record WebhookCheckRunRequestedAction { [JsonPropertyName("action")] public required WebhookCheckRunRequestedActionAction Action { get; init; } @@ -33779,7 +35568,7 @@ public record WebhookCheckRunRequestedAction /// /// The check_run.requested_action webhook encoded with URL encoding /// -public record WebhookCheckRunRequestedActionFormEncoded +public partial record WebhookCheckRunRequestedActionFormEncoded { /// /// A URL-encoded string of the check_run.requested_action JSON payload. The decoded payload is a JSON object. @@ -33789,7 +35578,7 @@ public record WebhookCheckRunRequestedActionFormEncoded } -public record WebhookCheckRunRerequested +public partial record WebhookCheckRunRerequested { [JsonPropertyName("action")] public WebhookCheckRunRerequestedAction? Action { get; init; } @@ -33841,7 +35630,7 @@ public record WebhookCheckRunRerequested /// /// The check_run.rerequested webhook encoded with URL encoding /// -public record WebhookCheckRunRerequestedFormEncoded +public partial record WebhookCheckRunRerequestedFormEncoded { /// /// A URL-encoded string of the check_run.rerequested JSON payload. The decoded payload is a JSON object. @@ -33851,7 +35640,7 @@ public record WebhookCheckRunRerequestedFormEncoded } -public record WebhookCheckSuiteCompleted +public partial record WebhookCheckSuiteCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -33900,7 +35689,7 @@ public record WebhookCheckSuiteCompleted } -public record WebhookCheckSuiteRequested +public partial record WebhookCheckSuiteRequested { [JsonPropertyName("action")] public required WebhookCheckSuiteRequestedAction Action { get; init; } @@ -33949,7 +35738,7 @@ public record WebhookCheckSuiteRequested } -public record WebhookCheckSuiteRerequested +public partial record WebhookCheckSuiteRerequested { [JsonPropertyName("action")] public required WebhookCheckRunRerequestedAction Action { get; init; } @@ -33998,7 +35787,7 @@ public record WebhookCheckSuiteRerequested } -public record WebhookCodeScanningAlertAppearedInBranch +public partial record WebhookCodeScanningAlertAppearedInBranch { [JsonPropertyName("action")] public required WebhookCodeScanningAlertAppearedInBranchAction Action { get; init; } @@ -34059,7 +35848,7 @@ public record WebhookCodeScanningAlertAppearedInBranch } -public record WebhookCodeScanningAlertClosedByUser +public partial record WebhookCodeScanningAlertClosedByUser { [JsonPropertyName("action")] public required WebhookCodeScanningAlertClosedByUserAction Action { get; init; } @@ -34120,7 +35909,7 @@ public record WebhookCodeScanningAlertClosedByUser } -public record WebhookCodeScanningAlertCreated +public partial record WebhookCodeScanningAlertCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -34181,7 +35970,7 @@ public record WebhookCodeScanningAlertCreated } -public record WebhookCodeScanningAlertFixed +public partial record WebhookCodeScanningAlertFixed { [JsonPropertyName("action")] public required WebhookCodeScanningAlertFixedAction Action { get; init; } @@ -34242,7 +36031,7 @@ public record WebhookCodeScanningAlertFixed } -public record WebhookCodeScanningAlertReopened +public partial record WebhookCodeScanningAlertReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -34303,7 +36092,7 @@ public record WebhookCodeScanningAlertReopened } -public record WebhookCodeScanningAlertReopenedByUser +public partial record WebhookCodeScanningAlertReopenedByUser { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedByUserAction Action { get; init; } @@ -34364,7 +36153,7 @@ public record WebhookCodeScanningAlertReopenedByUser } -public record WebhookCodeScanningAlertUpdatedAssignment +public partial record WebhookCodeScanningAlertUpdatedAssignment { [JsonPropertyName("action")] public required WebhookCodeScanningAlertUpdatedAssignmentAction Action { get; init; } @@ -34413,7 +36202,7 @@ public record WebhookCodeScanningAlertUpdatedAssignment } -public record WebhookCommitCommentCreated +public partial record WebhookCommitCommentCreated { /// /// The action performed. Can be `created`. @@ -34465,7 +36254,7 @@ public record WebhookCommitCommentCreated } -public record WebhookCreate +public partial record WebhookCreate { /// /// The repository's current description. @@ -34535,7 +36324,7 @@ public record WebhookCreate } -public record WebhookCustomPropertyCreated +public partial record WebhookCustomPropertyCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -34577,7 +36366,7 @@ public record WebhookCustomPropertyCreated } -public record WebhookCustomPropertyDeleted +public partial record WebhookCustomPropertyDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -34616,7 +36405,7 @@ public record WebhookCustomPropertyDeleted } -public record WebhookCustomPropertyPromotedToEnterprise +public partial record WebhookCustomPropertyPromotedToEnterprise { [JsonPropertyName("action")] public required WebhookCustomPropertyPromotedToEnterpriseAction Action { get; init; } @@ -34658,7 +36447,7 @@ public record WebhookCustomPropertyPromotedToEnterprise } -public record WebhookCustomPropertyUpdated +public partial record WebhookCustomPropertyUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -34700,7 +36489,7 @@ public record WebhookCustomPropertyUpdated } -public record WebhookCustomPropertyValuesUpdated +public partial record WebhookCustomPropertyValuesUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -34755,7 +36544,7 @@ public record WebhookCustomPropertyValuesUpdated } -public record WebhookDelete +public partial record WebhookDelete { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -34813,7 +36602,7 @@ public record WebhookDelete } -public record WebhookDependabotAlertAssigneesChanged +public partial record WebhookDependabotAlertAssigneesChanged { [JsonPropertyName("action")] public required WebhookDependabotAlertAssigneesChangedAction Action { get; init; } @@ -34862,7 +36651,7 @@ public record WebhookDependabotAlertAssigneesChanged } -public record WebhookDependabotAlertAutoDismissed +public partial record WebhookDependabotAlertAutoDismissed { [JsonPropertyName("action")] public required WebhookDependabotAlertAutoDismissedAction Action { get; init; } @@ -34911,7 +36700,7 @@ public record WebhookDependabotAlertAutoDismissed } -public record WebhookDependabotAlertAutoReopened +public partial record WebhookDependabotAlertAutoReopened { [JsonPropertyName("action")] public required WebhookDependabotAlertAutoReopenedAction Action { get; init; } @@ -34960,7 +36749,7 @@ public record WebhookDependabotAlertAutoReopened } -public record WebhookDependabotAlertCreated +public partial record WebhookDependabotAlertCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -35009,7 +36798,7 @@ public record WebhookDependabotAlertCreated } -public record WebhookDependabotAlertDismissed +public partial record WebhookDependabotAlertDismissed { [JsonPropertyName("action")] public required WebhookDependabotAlertDismissedAction Action { get; init; } @@ -35058,7 +36847,7 @@ public record WebhookDependabotAlertDismissed } -public record WebhookDependabotAlertFixed +public partial record WebhookDependabotAlertFixed { [JsonPropertyName("action")] public required WebhookCodeScanningAlertFixedAction Action { get; init; } @@ -35107,7 +36896,7 @@ public record WebhookDependabotAlertFixed } -public record WebhookDependabotAlertReintroduced +public partial record WebhookDependabotAlertReintroduced { [JsonPropertyName("action")] public required WebhookDependabotAlertReintroducedAction Action { get; init; } @@ -35156,7 +36945,7 @@ public record WebhookDependabotAlertReintroduced } -public record WebhookDependabotAlertReopened +public partial record WebhookDependabotAlertReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -35205,7 +36994,7 @@ public record WebhookDependabotAlertReopened } -public record WebhookDeployKeyCreated +public partial record WebhookDeployKeyCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -35254,7 +37043,7 @@ public record WebhookDeployKeyCreated } -public record WebhookDeployKeyDeleted +public partial record WebhookDeployKeyDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -35303,7 +37092,7 @@ public record WebhookDeployKeyDeleted } -public record WebhookDeploymentCreated +public partial record WebhookDeploymentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -35358,7 +37147,7 @@ public record WebhookDeploymentCreated } -public record WebhookDeploymentProtectionRuleRequested +public partial record WebhookDeploymentProtectionRuleRequested { [JsonPropertyName("action")] public WebhookCheckSuiteRequestedAction? Action { get; init; } @@ -35432,7 +37221,7 @@ public record WebhookDeploymentProtectionRuleRequested } -public record WebhookDeploymentReviewApproved +public partial record WebhookDeploymentReviewApproved { [JsonPropertyName("action")] public required WebhookDeploymentReviewApprovedAction Action { get; init; } @@ -35496,7 +37285,7 @@ public record WebhookDeploymentReviewApproved } -public record WebhookDeploymentReviewRejected +public partial record WebhookDeploymentReviewRejected { [JsonPropertyName("action")] public required WebhookDeploymentReviewRejectedAction Action { get; init; } @@ -35560,7 +37349,7 @@ public record WebhookDeploymentReviewRejected } -public record WebhookDeploymentReviewRequested +public partial record WebhookDeploymentReviewRequested { [JsonPropertyName("action")] public required WebhookCheckSuiteRequestedAction Action { get; init; } @@ -35621,7 +37410,7 @@ public record WebhookDeploymentReviewRequested } -public record WebhookDeploymentStatusCreated +public partial record WebhookDeploymentStatusCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -35685,7 +37474,7 @@ public record WebhookDeploymentStatusCreated } -public record WebhookDiscussionAnswered +public partial record WebhookDiscussionAnswered { [JsonPropertyName("action")] public required WebhookDiscussionAnsweredAction Action { get; init; } @@ -35737,7 +37526,7 @@ public record WebhookDiscussionAnswered } -public record WebhookDiscussionCategoryChanged +public partial record WebhookDiscussionCategoryChanged { [JsonPropertyName("action")] public required WebhookDiscussionCategoryChangedAction Action { get; init; } @@ -35789,7 +37578,7 @@ public record WebhookDiscussionCategoryChanged } -public record WebhookDiscussionClosed +public partial record WebhookDiscussionClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -35838,7 +37627,7 @@ public record WebhookDiscussionClosed } -public record WebhookDiscussionCommentCreated +public partial record WebhookDiscussionCommentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -35890,7 +37679,7 @@ public record WebhookDiscussionCommentCreated } -public record WebhookDiscussionCommentDeleted +public partial record WebhookDiscussionCommentDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -35942,7 +37731,7 @@ public record WebhookDiscussionCommentDeleted } -public record WebhookDiscussionCommentEdited +public partial record WebhookDiscussionCommentEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -35997,7 +37786,7 @@ public record WebhookDiscussionCommentEdited } -public record WebhookDiscussionCreated +public partial record WebhookDiscussionCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -36046,7 +37835,7 @@ public record WebhookDiscussionCreated } -public record WebhookDiscussionDeleted +public partial record WebhookDiscussionDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -36095,7 +37884,7 @@ public record WebhookDiscussionDeleted } -public record WebhookDiscussionEdited +public partial record WebhookDiscussionEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -36147,7 +37936,7 @@ public record WebhookDiscussionEdited } -public record WebhookDiscussionLabeled +public partial record WebhookDiscussionLabeled { [JsonPropertyName("action")] public required WebhookDiscussionLabeledAction Action { get; init; } @@ -36199,7 +37988,7 @@ public record WebhookDiscussionLabeled } -public record WebhookDiscussionLocked +public partial record WebhookDiscussionLocked { [JsonPropertyName("action")] public required WebhookDiscussionLockedAction Action { get; init; } @@ -36248,7 +38037,7 @@ public record WebhookDiscussionLocked } -public record WebhookDiscussionPinned +public partial record WebhookDiscussionPinned { [JsonPropertyName("action")] public required WebhookDiscussionPinnedAction Action { get; init; } @@ -36297,7 +38086,7 @@ public record WebhookDiscussionPinned } -public record WebhookDiscussionReopened +public partial record WebhookDiscussionReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -36346,7 +38135,7 @@ public record WebhookDiscussionReopened } -public record WebhookDiscussionTransferred +public partial record WebhookDiscussionTransferred { [JsonPropertyName("action")] public required WebhookDiscussionTransferredAction Action { get; init; } @@ -36398,7 +38187,7 @@ public record WebhookDiscussionTransferred } -public record WebhookDiscussionUnanswered +public partial record WebhookDiscussionUnanswered { [JsonPropertyName("action")] public required WebhookDiscussionUnansweredAction Action { get; init; } @@ -36434,7 +38223,7 @@ public record WebhookDiscussionUnanswered } -public record WebhookDiscussionUnlabeled +public partial record WebhookDiscussionUnlabeled { [JsonPropertyName("action")] public required WebhookDiscussionUnlabeledAction Action { get; init; } @@ -36486,7 +38275,7 @@ public record WebhookDiscussionUnlabeled } -public record WebhookDiscussionUnlocked +public partial record WebhookDiscussionUnlocked { [JsonPropertyName("action")] public required WebhookDiscussionUnlockedAction Action { get; init; } @@ -36535,7 +38324,7 @@ public record WebhookDiscussionUnlocked } -public record WebhookDiscussionUnpinned +public partial record WebhookDiscussionUnpinned { [JsonPropertyName("action")] public required WebhookDiscussionUnpinnedAction Action { get; init; } @@ -36587,7 +38376,7 @@ public record WebhookDiscussionUnpinned /// /// A user forks a repository. /// -public record WebhookFork +public partial record WebhookFork { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -36633,7 +38422,7 @@ public record WebhookFork } -public record WebhookGithubAppAuthorizationRevoked +public partial record WebhookGithubAppAuthorizationRevoked { [JsonPropertyName("action")] public required WebhookGithubAppAuthorizationRevokedAction Action { get; init; } @@ -36646,7 +38435,7 @@ public record WebhookGithubAppAuthorizationRevoked } -public record WebhookGollum +public partial record WebhookGollum { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -36692,7 +38481,7 @@ public record WebhookGollum } -public record WebhookInstallationCreated +public partial record WebhookInstallationCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -36742,7 +38531,7 @@ public record WebhookInstallationCreated } -public record WebhookInstallationDeleted +public partial record WebhookInstallationDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -36792,7 +38581,7 @@ public record WebhookInstallationDeleted } -public record WebhookInstallationNewPermissionsAccepted +public partial record WebhookInstallationNewPermissionsAccepted { [JsonPropertyName("action")] public required WebhookInstallationNewPermissionsAcceptedAction Action { get; init; } @@ -36842,7 +38631,7 @@ public record WebhookInstallationNewPermissionsAccepted } -public record WebhookInstallationRepositoriesAdded +public partial record WebhookInstallationRepositoriesAdded { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesAddedAction Action { get; init; } @@ -36875,7 +38664,7 @@ public record WebhookInstallationRepositoriesAdded public required WebhooksRepositoriesAdded RepositoriesAdded { get; init; } /// - /// An array of repository objects, which were removed from the installation. + /// An array of repository objects, which were removed from the installation. When `repository_selection` changes from `all` to `selected`, this array is empty. /// [JsonPropertyName("repositories_removed")] public required IReadOnlyList RepositoriesRemoved { get; init; } @@ -36904,7 +38693,7 @@ public record WebhookInstallationRepositoriesAdded } -public record WebhookInstallationRepositoriesRemoved +public partial record WebhookInstallationRepositoriesRemoved { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesRemovedAction Action { get; init; } @@ -36937,7 +38726,7 @@ public record WebhookInstallationRepositoriesRemoved public required WebhooksRepositoriesAdded RepositoriesAdded { get; init; } /// - /// An array of repository objects, which were removed from the installation. + /// An array of repository objects, which were removed from the installation. When `repository_selection` changes from `all` to `selected`, this array is empty. /// [JsonPropertyName("repositories_removed")] public required IReadOnlyList RepositoriesRemoved { get; init; } @@ -36966,7 +38755,7 @@ public record WebhookInstallationRepositoriesRemoved } -public record WebhookInstallationSuspend +public partial record WebhookInstallationSuspend { [JsonPropertyName("action")] public required WebhookInstallationSuspendAction Action { get; init; } @@ -37016,7 +38805,7 @@ public record WebhookInstallationSuspend } -public record WebhookInstallationTargetRenamed +public partial record WebhookInstallationTargetRenamed { [JsonPropertyName("account")] public required object Account { get; init; } @@ -37068,7 +38857,7 @@ public record WebhookInstallationTargetRenamed } -public record WebhookInstallationUnsuspend +public partial record WebhookInstallationUnsuspend { [JsonPropertyName("action")] public required WebhookInstallationUnsuspendAction Action { get; init; } @@ -37118,7 +38907,7 @@ public record WebhookInstallationUnsuspend } -public record WebhookIssueCommentCreated +public partial record WebhookIssueCommentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -37173,7 +38962,7 @@ public record WebhookIssueCommentCreated } -public record WebhookIssueCommentDeleted +public partial record WebhookIssueCommentDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -37228,7 +39017,7 @@ public record WebhookIssueCommentDeleted } -public record WebhookIssueCommentEdited +public partial record WebhookIssueCommentEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -37289,7 +39078,7 @@ public record WebhookIssueCommentEdited } -public record WebhookIssueCommentPinned +public partial record WebhookIssueCommentPinned { [JsonPropertyName("action")] public required WebhookDiscussionPinnedAction Action { get; init; } @@ -37344,7 +39133,7 @@ public record WebhookIssueCommentPinned } -public record WebhookIssueCommentUnpinned +public partial record WebhookIssueCommentUnpinned { [JsonPropertyName("action")] public required WebhookDiscussionUnpinnedAction Action { get; init; } @@ -37399,7 +39188,7 @@ public record WebhookIssueCommentUnpinned } -public record WebhookIssueDependenciesBlockedByAdded +public partial record WebhookIssueDependenciesBlockedByAdded { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockedByAddedAction Action { get; init; } @@ -37464,7 +39253,7 @@ public record WebhookIssueDependenciesBlockedByAdded } -public record WebhookIssueDependenciesBlockedByRemoved +public partial record WebhookIssueDependenciesBlockedByRemoved { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockedByRemovedAction Action { get; init; } @@ -37529,7 +39318,7 @@ public record WebhookIssueDependenciesBlockedByRemoved } -public record WebhookIssueDependenciesBlockingAdded +public partial record WebhookIssueDependenciesBlockingAdded { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockingAddedAction Action { get; init; } @@ -37594,7 +39383,7 @@ public record WebhookIssueDependenciesBlockingAdded } -public record WebhookIssueDependenciesBlockingRemoved +public partial record WebhookIssueDependenciesBlockingRemoved { [JsonPropertyName("action")] public required WebhookIssueDependenciesBlockingRemovedAction Action { get; init; } @@ -37659,7 +39448,7 @@ public record WebhookIssueDependenciesBlockingRemoved } -public record WebhookIssuesAssigned +public partial record WebhookIssuesAssigned { /// /// The action that was performed. @@ -37714,7 +39503,7 @@ public record WebhookIssuesAssigned } -public record WebhookIssuesClosed +public partial record WebhookIssuesClosed { /// /// The action that was performed. @@ -37766,7 +39555,7 @@ public record WebhookIssuesClosed } -public record WebhookIssuesDeleted +public partial record WebhookIssuesDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -37815,7 +39604,7 @@ public record WebhookIssuesDeleted } -public record WebhookIssuesDemilestoned +public partial record WebhookIssuesDemilestoned { [JsonPropertyName("action")] public required WebhookIssuesDemilestonedAction Action { get; init; } @@ -37870,7 +39659,7 @@ public record WebhookIssuesDemilestoned } -public record WebhookIssuesEdited +public partial record WebhookIssuesEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -37928,7 +39717,7 @@ public record WebhookIssuesEdited } -public record WebhookIssuesFieldAdded +public partial record WebhookIssuesFieldAdded { [JsonPropertyName("action")] public required WebhookIssuesFieldAddedAction Action { get; init; } @@ -37995,7 +39784,7 @@ public record WebhookIssuesFieldAdded } -public record WebhookIssuesFieldRemoved +public partial record WebhookIssuesFieldRemoved { [JsonPropertyName("action")] public required WebhookIssuesFieldRemovedAction Action { get; init; } @@ -38056,7 +39845,7 @@ public record WebhookIssuesFieldRemoved } -public record WebhookIssuesLabeled +public partial record WebhookIssuesLabeled { [JsonPropertyName("action")] public required WebhookDiscussionLabeledAction Action { get; init; } @@ -38108,7 +39897,7 @@ public record WebhookIssuesLabeled } -public record WebhookIssuesLocked +public partial record WebhookIssuesLocked { [JsonPropertyName("action")] public required WebhookDiscussionLockedAction Action { get; init; } @@ -38157,7 +39946,7 @@ public record WebhookIssuesLocked } -public record WebhookIssuesMilestoned +public partial record WebhookIssuesMilestoned { [JsonPropertyName("action")] public required WebhookIssuesMilestonedAction Action { get; init; } @@ -38212,7 +40001,7 @@ public record WebhookIssuesMilestoned } -public record WebhookIssuesOpened +public partial record WebhookIssuesOpened { [JsonPropertyName("action")] public required WebhookIssuesOpenedAction Action { get; init; } @@ -38264,7 +40053,7 @@ public record WebhookIssuesOpened } -public record WebhookIssuesPinned +public partial record WebhookIssuesPinned { [JsonPropertyName("action")] public required WebhookDiscussionPinnedAction Action { get; init; } @@ -38313,7 +40102,7 @@ public record WebhookIssuesPinned } -public record WebhookIssuesReopened +public partial record WebhookIssuesReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -38362,7 +40151,7 @@ public record WebhookIssuesReopened } -public record WebhookIssuesTransferred +public partial record WebhookIssuesTransferred { [JsonPropertyName("action")] public required WebhookDiscussionTransferredAction Action { get; init; } @@ -38414,7 +40203,7 @@ public record WebhookIssuesTransferred } -public record WebhookIssuesTyped +public partial record WebhookIssuesTyped { [JsonPropertyName("action")] public required WebhookIssuesTypedAction Action { get; init; } @@ -38469,7 +40258,7 @@ public record WebhookIssuesTyped } -public record WebhookIssuesUnassigned +public partial record WebhookIssuesUnassigned { /// /// The action that was performed. @@ -38524,7 +40313,7 @@ public record WebhookIssuesUnassigned } -public record WebhookIssuesUnlabeled +public partial record WebhookIssuesUnlabeled { [JsonPropertyName("action")] public required WebhookDiscussionUnlabeledAction Action { get; init; } @@ -38576,7 +40365,7 @@ public record WebhookIssuesUnlabeled } -public record WebhookIssuesUnlocked +public partial record WebhookIssuesUnlocked { [JsonPropertyName("action")] public required WebhookDiscussionUnlockedAction Action { get; init; } @@ -38625,7 +40414,7 @@ public record WebhookIssuesUnlocked } -public record WebhookIssuesUnpinned +public partial record WebhookIssuesUnpinned { [JsonPropertyName("action")] public required WebhookDiscussionUnpinnedAction Action { get; init; } @@ -38674,7 +40463,7 @@ public record WebhookIssuesUnpinned } -public record WebhookIssuesUntyped +public partial record WebhookIssuesUntyped { [JsonPropertyName("action")] public required WebhookIssuesUntypedAction Action { get; init; } @@ -38729,7 +40518,7 @@ public record WebhookIssuesUntyped } -public record WebhookLabelCreated +public partial record WebhookLabelCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -38775,7 +40564,7 @@ public record WebhookLabelCreated } -public record WebhookLabelDeleted +public partial record WebhookLabelDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -38821,7 +40610,7 @@ public record WebhookLabelDeleted } -public record WebhookLabelEdited +public partial record WebhookLabelEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -38873,7 +40662,7 @@ public record WebhookLabelEdited } -public record WebhookMarketplacePurchaseCancelled +public partial record WebhookMarketplacePurchaseCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseCancelledAction Action { get; init; } @@ -38925,7 +40714,7 @@ public record WebhookMarketplacePurchaseCancelled } -public record WebhookMarketplacePurchaseChanged +public partial record WebhookMarketplacePurchaseChanged { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseChangedAction Action { get; init; } @@ -38977,7 +40766,7 @@ public record WebhookMarketplacePurchaseChanged } -public record WebhookMarketplacePurchasePendingChange +public partial record WebhookMarketplacePurchasePendingChange { [JsonPropertyName("action")] public required WebhookMarketplacePurchasePendingChangeAction Action { get; init; } @@ -39029,7 +40818,7 @@ public record WebhookMarketplacePurchasePendingChange } -public record WebhookMarketplacePurchasePendingChangeCancelled +public partial record WebhookMarketplacePurchasePendingChangeCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchasePendingChangeCancelledAction Action { get; init; } @@ -39081,7 +40870,7 @@ public record WebhookMarketplacePurchasePendingChangeCancelled } -public record WebhookMarketplacePurchasePurchased +public partial record WebhookMarketplacePurchasePurchased { [JsonPropertyName("action")] public required WebhookMarketplacePurchasePurchasedAction Action { get; init; } @@ -39133,7 +40922,7 @@ public record WebhookMarketplacePurchasePurchased } -public record WebhookMemberAdded +public partial record WebhookMemberAdded { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesAddedAction Action { get; init; } @@ -39182,7 +40971,7 @@ public record WebhookMemberAdded } -public record WebhookMemberEdited +public partial record WebhookMemberEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -39234,7 +41023,7 @@ public record WebhookMemberEdited } -public record WebhookMemberRemoved +public partial record WebhookMemberRemoved { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesRemovedAction Action { get; init; } @@ -39280,7 +41069,7 @@ public record WebhookMemberRemoved } -public record WebhookMembershipAdded +public partial record WebhookMembershipAdded { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesAddedAction Action { get; init; } @@ -39335,7 +41124,7 @@ public record WebhookMembershipAdded } -public record WebhookMembershipRemoved +public partial record WebhookMembershipRemoved { [JsonPropertyName("action")] public required WebhookInstallationRepositoriesRemovedAction Action { get; init; } @@ -39390,7 +41179,7 @@ public record WebhookMembershipRemoved } -public record WebhookMergeGroupChecksRequested +public partial record WebhookMergeGroupChecksRequested { [JsonPropertyName("action")] public required WebhookMergeGroupChecksRequestedAction Action { get; init; } @@ -39431,7 +41220,7 @@ public record WebhookMergeGroupChecksRequested } -public record WebhookMergeGroupDestroyed +public partial record WebhookMergeGroupDestroyed { [JsonPropertyName("action")] public required WebhookMergeGroupDestroyedAction Action { get; init; } @@ -39478,7 +41267,7 @@ public record WebhookMergeGroupDestroyed } -public record WebhookMetaDeleted +public partial record WebhookMetaDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -39533,7 +41322,7 @@ public record WebhookMetaDeleted } -public record WebhookMilestoneClosed +public partial record WebhookMilestoneClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -39582,7 +41371,7 @@ public record WebhookMilestoneClosed } -public record WebhookMilestoneCreated +public partial record WebhookMilestoneCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -39631,7 +41420,7 @@ public record WebhookMilestoneCreated } -public record WebhookMilestoneDeleted +public partial record WebhookMilestoneDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -39680,7 +41469,7 @@ public record WebhookMilestoneDeleted } -public record WebhookMilestoneEdited +public partial record WebhookMilestoneEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -39735,7 +41524,7 @@ public record WebhookMilestoneEdited } -public record WebhookMilestoneOpened +public partial record WebhookMilestoneOpened { [JsonPropertyName("action")] public required WebhookIssuesOpenedAction Action { get; init; } @@ -39784,7 +41573,7 @@ public record WebhookMilestoneOpened } -public record WebhookOrgBlockBlocked +public partial record WebhookOrgBlockBlocked { [JsonPropertyName("action")] public required WebhookOrgBlockBlockedAction Action { get; init; } @@ -39830,7 +41619,7 @@ public record WebhookOrgBlockBlocked } -public record WebhookOrgBlockUnblocked +public partial record WebhookOrgBlockUnblocked { [JsonPropertyName("action")] public required WebhookOrgBlockUnblockedAction Action { get; init; } @@ -39876,7 +41665,7 @@ public record WebhookOrgBlockUnblocked } -public record WebhookOrganizationDeleted +public partial record WebhookOrganizationDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -39925,7 +41714,7 @@ public record WebhookOrganizationDeleted } -public record WebhookOrganizationMemberAdded +public partial record WebhookOrganizationMemberAdded { [JsonPropertyName("action")] public required WebhookOrganizationMemberAddedAction Action { get; init; } @@ -39974,7 +41763,7 @@ public record WebhookOrganizationMemberAdded } -public record WebhookOrganizationMemberInvited +public partial record WebhookOrganizationMemberInvited { [JsonPropertyName("action")] public required WebhookOrganizationMemberInvitedAction Action { get; init; } @@ -40026,7 +41815,7 @@ public record WebhookOrganizationMemberInvited } -public record WebhookOrganizationMemberRemoved +public partial record WebhookOrganizationMemberRemoved { [JsonPropertyName("action")] public required WebhookOrganizationMemberRemovedAction Action { get; init; } @@ -40075,7 +41864,7 @@ public record WebhookOrganizationMemberRemoved } -public record WebhookOrganizationRenamed +public partial record WebhookOrganizationRenamed { [JsonPropertyName("action")] public required WebhookInstallationTargetRenamedAction Action { get; init; } @@ -40127,7 +41916,7 @@ public record WebhookOrganizationRenamed } -public record WebhookRubygemsMetadata +public partial record WebhookRubygemsMetadata { [JsonPropertyName("name")] public string? Name { get; init; } @@ -40161,7 +41950,7 @@ public record WebhookRubygemsMetadata } -public record WebhookPackagePublished +public partial record WebhookPackagePublished { [JsonPropertyName("action")] public required WebhookPackagePublishedAction Action { get; init; } @@ -40210,7 +41999,7 @@ public record WebhookPackagePublished } -public record WebhookPackageUpdated +public partial record WebhookPackageUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -40259,7 +42048,7 @@ public record WebhookPackageUpdated } -public record WebhookPageBuild +public partial record WebhookPageBuild { /// /// The [List GitHub Pages builds](https://docs.github.com/rest/pages/pages#list-github-pages-builds) itself. @@ -40308,7 +42097,7 @@ public record WebhookPageBuild } -public record WebhookPersonalAccessTokenRequestApproved +public partial record WebhookPersonalAccessTokenRequestApproved { [JsonPropertyName("action")] public required WebhookDeploymentReviewApprovedAction Action { get; init; } @@ -40350,7 +42139,7 @@ public record WebhookPersonalAccessTokenRequestApproved } -public record WebhookPersonalAccessTokenRequestCancelled +public partial record WebhookPersonalAccessTokenRequestCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseCancelledAction Action { get; init; } @@ -40392,7 +42181,7 @@ public record WebhookPersonalAccessTokenRequestCancelled } -public record WebhookPersonalAccessTokenRequestCreated +public partial record WebhookPersonalAccessTokenRequestCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -40434,7 +42223,7 @@ public record WebhookPersonalAccessTokenRequestCreated } -public record WebhookPersonalAccessTokenRequestDenied +public partial record WebhookPersonalAccessTokenRequestDenied { [JsonPropertyName("action")] public required WebhookPersonalAccessTokenRequestDeniedAction Action { get; init; } @@ -40476,7 +42265,7 @@ public record WebhookPersonalAccessTokenRequestDenied } -public record WebhookPing +public partial record WebhookPing { /// /// The webhook that is being pinged @@ -40521,7 +42310,7 @@ public record WebhookPing /// /// The webhooks ping payload encoded with URL encoding. /// -public record WebhookPingFormEncoded +public partial record WebhookPingFormEncoded { /// /// A URL-encoded string of the ping JSON payload. The decoded payload is a JSON object. @@ -40531,7 +42320,7 @@ public record WebhookPingFormEncoded } -public record WebhookProjectCardConverted +public partial record WebhookProjectCardConverted { [JsonPropertyName("action")] public required WebhookProjectCardConvertedAction Action { get; init; } @@ -40580,7 +42369,7 @@ public record WebhookProjectCardConverted } -public record WebhookProjectCardCreated +public partial record WebhookProjectCardCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -40626,7 +42415,7 @@ public record WebhookProjectCardCreated } -public record WebhookProjectCardDeleted +public partial record WebhookProjectCardDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -40672,7 +42461,7 @@ public record WebhookProjectCardDeleted } -public record WebhookProjectCardEdited +public partial record WebhookProjectCardEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -40721,7 +42510,7 @@ public record WebhookProjectCardEdited } -public record WebhookProjectCardMoved +public partial record WebhookProjectCardMoved { [JsonPropertyName("action")] public required WebhookProjectCardMovedAction Action { get; init; } @@ -40770,7 +42559,7 @@ public record WebhookProjectCardMoved } -public record WebhookProjectClosed +public partial record WebhookProjectClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -40816,7 +42605,7 @@ public record WebhookProjectClosed } -public record WebhookProjectColumnCreated +public partial record WebhookProjectColumnCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -40862,7 +42651,7 @@ public record WebhookProjectColumnCreated } -public record WebhookProjectColumnDeleted +public partial record WebhookProjectColumnDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -40908,7 +42697,7 @@ public record WebhookProjectColumnDeleted } -public record WebhookProjectColumnEdited +public partial record WebhookProjectColumnEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -40957,7 +42746,7 @@ public record WebhookProjectColumnEdited } -public record WebhookProjectColumnMoved +public partial record WebhookProjectColumnMoved { [JsonPropertyName("action")] public required WebhookProjectCardMovedAction Action { get; init; } @@ -41003,7 +42792,7 @@ public record WebhookProjectColumnMoved } -public record WebhookProjectCreated +public partial record WebhookProjectCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -41049,7 +42838,7 @@ public record WebhookProjectCreated } -public record WebhookProjectDeleted +public partial record WebhookProjectDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -41095,7 +42884,7 @@ public record WebhookProjectDeleted } -public record WebhookProjectEdited +public partial record WebhookProjectEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -41147,7 +42936,7 @@ public record WebhookProjectEdited } -public record WebhookProjectReopened +public partial record WebhookProjectReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -41193,7 +42982,7 @@ public record WebhookProjectReopened } -public record WebhookProjectsV2ProjectClosed +public partial record WebhookProjectsV2ProjectClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -41230,7 +43019,7 @@ public record WebhookProjectsV2ProjectClosed /// /// A project was created /// -public record WebhookProjectsV2ProjectCreated +public partial record WebhookProjectsV2ProjectCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -41264,7 +43053,7 @@ public record WebhookProjectsV2ProjectCreated } -public record WebhookProjectsV2ProjectDeleted +public partial record WebhookProjectsV2ProjectDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -41298,7 +43087,7 @@ public record WebhookProjectsV2ProjectDeleted } -public record WebhookProjectsV2ProjectEdited +public partial record WebhookProjectsV2ProjectEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -41335,7 +43124,7 @@ public record WebhookProjectsV2ProjectEdited } -public record WebhookProjectsV2ItemArchived +public partial record WebhookProjectsV2ItemArchived { [JsonPropertyName("action")] public required WebhookProjectsV2ItemArchivedAction Action { get; init; } @@ -41372,7 +43161,7 @@ public record WebhookProjectsV2ItemArchived } -public record WebhookProjectsV2ItemConverted +public partial record WebhookProjectsV2ItemConverted { [JsonPropertyName("action")] public required WebhookProjectCardConvertedAction Action { get; init; } @@ -41409,7 +43198,7 @@ public record WebhookProjectsV2ItemConverted } -public record WebhookProjectsV2ItemCreated +public partial record WebhookProjectsV2ItemCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -41443,7 +43232,7 @@ public record WebhookProjectsV2ItemCreated } -public record WebhookProjectsV2ItemDeleted +public partial record WebhookProjectsV2ItemDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -41477,7 +43266,7 @@ public record WebhookProjectsV2ItemDeleted } -public record WebhookProjectsV2ItemEdited +public partial record WebhookProjectsV2ItemEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -41518,7 +43307,7 @@ public record WebhookProjectsV2ItemEdited } -public record WebhookProjectsV2ItemReordered +public partial record WebhookProjectsV2ItemReordered { [JsonPropertyName("action")] public required WebhookProjectsV2ItemReorderedAction Action { get; init; } @@ -41555,7 +43344,7 @@ public record WebhookProjectsV2ItemReordered } -public record WebhookProjectsV2ItemRestored +public partial record WebhookProjectsV2ItemRestored { [JsonPropertyName("action")] public required WebhookProjectsV2ItemRestoredAction Action { get; init; } @@ -41592,7 +43381,7 @@ public record WebhookProjectsV2ItemRestored } -public record WebhookProjectsV2ProjectReopened +public partial record WebhookProjectsV2ProjectReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -41626,7 +43415,7 @@ public record WebhookProjectsV2ProjectReopened } -public record WebhookProjectsV2StatusUpdateCreated +public partial record WebhookProjectsV2StatusUpdateCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -41660,7 +43449,7 @@ public record WebhookProjectsV2StatusUpdateCreated } -public record WebhookProjectsV2StatusUpdateDeleted +public partial record WebhookProjectsV2StatusUpdateDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -41694,7 +43483,7 @@ public record WebhookProjectsV2StatusUpdateDeleted } -public record WebhookProjectsV2StatusUpdateEdited +public partial record WebhookProjectsV2StatusUpdateEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -41731,7 +43520,7 @@ public record WebhookProjectsV2StatusUpdateEdited } -public record WebhookPublic +public partial record WebhookPublic { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -41771,7 +43560,7 @@ public record WebhookPublic } -public record WebhookPullRequestAssigned +public partial record WebhookPullRequestAssigned { [JsonPropertyName("action")] public required WebhookIssuesAssignedAction Action { get; init; } @@ -41826,7 +43615,7 @@ public record WebhookPullRequestAssigned } -public record WebhookPullRequestAutoMergeDisabled +public partial record WebhookPullRequestAutoMergeDisabled { [JsonPropertyName("action")] public required WebhookPullRequestAutoMergeDisabledAction Action { get; init; } @@ -41878,7 +43667,7 @@ public record WebhookPullRequestAutoMergeDisabled } -public record WebhookPullRequestAutoMergeEnabled +public partial record WebhookPullRequestAutoMergeEnabled { [JsonPropertyName("action")] public required WebhookPullRequestAutoMergeEnabledAction Action { get; init; } @@ -41930,7 +43719,7 @@ public record WebhookPullRequestAutoMergeEnabled } -public record WebhookPullRequestClosed +public partial record WebhookPullRequestClosed { [JsonPropertyName("action")] public required WebhookDiscussionClosedAction Action { get; init; } @@ -41982,7 +43771,7 @@ public record WebhookPullRequestClosed } -public record WebhookPullRequestConvertedToDraft +public partial record WebhookPullRequestConvertedToDraft { [JsonPropertyName("action")] public required WebhookPullRequestConvertedToDraftAction Action { get; init; } @@ -42034,7 +43823,7 @@ public record WebhookPullRequestConvertedToDraft } -public record WebhookPullRequestDemilestoned +public partial record WebhookPullRequestDemilestoned { [JsonPropertyName("action")] public required WebhookIssuesDemilestonedAction Action { get; init; } @@ -42084,7 +43873,7 @@ public record WebhookPullRequestDemilestoned } -public record WebhookPullRequestDequeued +public partial record WebhookPullRequestDequeued { [JsonPropertyName("action")] public required WebhookPullRequestDequeuedAction Action { get; init; } @@ -42136,7 +43925,7 @@ public record WebhookPullRequestDequeued } -public record WebhookPullRequestEdited +public partial record WebhookPullRequestEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -42194,7 +43983,7 @@ public record WebhookPullRequestEdited } -public record WebhookPullRequestEnqueued +public partial record WebhookPullRequestEnqueued { [JsonPropertyName("action")] public required WebhookPullRequestEnqueuedAction Action { get; init; } @@ -42243,7 +44032,7 @@ public record WebhookPullRequestEnqueued } -public record WebhookPullRequestLabeled +public partial record WebhookPullRequestLabeled { [JsonPropertyName("action")] public required WebhookDiscussionLabeledAction Action { get; init; } @@ -42298,7 +44087,7 @@ public record WebhookPullRequestLabeled } -public record WebhookPullRequestLocked +public partial record WebhookPullRequestLocked { [JsonPropertyName("action")] public required WebhookDiscussionLockedAction Action { get; init; } @@ -42350,7 +44139,7 @@ public record WebhookPullRequestLocked } -public record WebhookPullRequestMilestoned +public partial record WebhookPullRequestMilestoned { [JsonPropertyName("action")] public required WebhookIssuesMilestonedAction Action { get; init; } @@ -42400,7 +44189,7 @@ public record WebhookPullRequestMilestoned } -public record WebhookPullRequestOpened +public partial record WebhookPullRequestOpened { [JsonPropertyName("action")] public required WebhookIssuesOpenedAction Action { get; init; } @@ -42452,7 +44241,7 @@ public record WebhookPullRequestOpened } -public record WebhookPullRequestReadyForReview +public partial record WebhookPullRequestReadyForReview { [JsonPropertyName("action")] public required WebhookPullRequestReadyForReviewAction Action { get; init; } @@ -42504,7 +44293,7 @@ public record WebhookPullRequestReadyForReview } -public record WebhookPullRequestReopened +public partial record WebhookPullRequestReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -42556,7 +44345,7 @@ public record WebhookPullRequestReopened } -public record WebhookPullRequestReviewCommentCreated +public partial record WebhookPullRequestReviewCommentCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -42608,7 +44397,7 @@ public record WebhookPullRequestReviewCommentCreated } -public record WebhookPullRequestReviewCommentDeleted +public partial record WebhookPullRequestReviewCommentDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -42660,7 +44449,7 @@ public record WebhookPullRequestReviewCommentDeleted } -public record WebhookPullRequestReviewCommentEdited +public partial record WebhookPullRequestReviewCommentEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -42714,69 +44503,229 @@ public record WebhookPullRequestReviewCommentEdited /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookPullRequestReviewDismissed -{ - [JsonPropertyName("action")] - public required WebhookDependabotAlertDismissedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - [JsonPropertyName("pull_request")] - public required object PullRequest { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookPullRequestReviewDismissed +{ + [JsonPropertyName("action")] + public required WebhookDependabotAlertDismissedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// The review that was affected. + /// + [JsonPropertyName("review")] + public required object Review { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookPullRequestReviewEdited +{ + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + + [JsonPropertyName("changes")] + public required object Changes { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// The review that was affected. + /// + [JsonPropertyName("review")] + public required WebhooksReview Review { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public abstract partial record WebhookPullRequestReviewRequestRemoved; + +public abstract partial record WebhookPullRequestReviewRequested; + +public partial record WebhookPullRequestReviewSubmitted +{ + [JsonPropertyName("action")] + public required WebhookPullRequestReviewSubmittedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// The review that was affected. + /// + [JsonPropertyName("review")] + public required WebhooksReview Review { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookPullRequestReviewThreadResolved +{ + [JsonPropertyName("action")] + public required WebhookPullRequestReviewThreadResolvedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("pull_request")] + public required object PullRequest { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public SimpleUser? Sender { get; init; } - /// - /// The review that was affected. - /// - [JsonPropertyName("review")] - public required object Review { get; init; } + [JsonPropertyName("thread")] + public required object Thread { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + [JsonPropertyName("updated_at")] + public DateTimeOffset? UpdatedAt { get; init; } } -public record WebhookPullRequestReviewEdited +public partial record WebhookPullRequestReviewThreadUnresolved { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } - - [JsonPropertyName("changes")] - public required object Changes { get; init; } + public required WebhookPullRequestReviewThreadUnresolvedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -42811,80 +44760,24 @@ public record WebhookPullRequestReviewEdited [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } - /// - /// The review that was affected. - /// - [JsonPropertyName("review")] - public required WebhooksReview Review { get; init; } - /// /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public abstract record WebhookPullRequestReviewRequestRemoved; - -public abstract record WebhookPullRequestReviewRequested; - -public record WebhookPullRequestReviewSubmitted -{ - [JsonPropertyName("action")] - public required WebhookPullRequestReviewSubmittedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - [JsonPropertyName("pull_request")] - public required object PullRequest { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public SimpleUser? Sender { get; init; } - /// - /// The review that was affected. - /// - [JsonPropertyName("review")] - public required WebhooksReview Review { get; init; } + [JsonPropertyName("thread")] + public required object Thread { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + [JsonPropertyName("updated_at")] + public DateTimeOffset? UpdatedAt { get; init; } } -public record WebhookPullRequestReviewThreadResolved +public partial record WebhookPullRequestStacked { [JsonPropertyName("action")] - public required WebhookPullRequestReviewThreadResolvedAction Action { get; init; } + public required WebhookPullRequestStackedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -42903,56 +44796,16 @@ public record WebhookPullRequestReviewThreadResolved public SimpleInstallation? Installation { get; init; } /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - [JsonPropertyName("pull_request")] - public required object PullRequest { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } - - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } - - [JsonPropertyName("thread")] - public required object Thread { get; init; } - - [JsonPropertyName("updated_at")] - public DateTimeOffset? UpdatedAt { get; init; } - -} - -public record WebhookPullRequestReviewThreadUnresolved -{ - [JsonPropertyName("action")] - public required WebhookPullRequestReviewThreadUnresolvedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// The stack information associated with a pull request. /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } + [JsonPropertyName("stack")] + public PullRequestStack? Stack { get; init; } /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// The pull request number. /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } + [JsonPropertyName("number")] + public required WebhooksNumber Number { get; init; } /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -42975,17 +44828,11 @@ public record WebhookPullRequestReviewThreadUnresolved /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } - - [JsonPropertyName("thread")] - public required object Thread { get; init; } - - [JsonPropertyName("updated_at")] - public DateTimeOffset? UpdatedAt { get; init; } + public required SimpleUser Sender { get; init; } } -public record WebhookPullRequestSynchronize +public partial record WebhookPullRequestSynchronize { [JsonPropertyName("action")] public required WebhookPullRequestSynchronizeAction Action { get; init; } @@ -43043,7 +44890,7 @@ public record WebhookPullRequestSynchronize } -public record WebhookPullRequestUnassigned +public partial record WebhookPullRequestUnassigned { [JsonPropertyName("action")] public required WebhookIssuesUnassignedAction Action { get; init; } @@ -43098,7 +44945,7 @@ public record WebhookPullRequestUnassigned } -public record WebhookPullRequestUnlabeled +public partial record WebhookPullRequestUnlabeled { [JsonPropertyName("action")] public required WebhookDiscussionUnlabeledAction Action { get; init; } @@ -43153,7 +45000,7 @@ public record WebhookPullRequestUnlabeled } -public record WebhookPullRequestUnlocked +public partial record WebhookPullRequestUnlocked { [JsonPropertyName("action")] public required WebhookDiscussionUnlockedAction Action { get; init; } @@ -43205,7 +45052,7 @@ public record WebhookPullRequestUnlocked } -public record WebhookPush +public partial record WebhookPush { /// /// The SHA of the most recent commit on `ref` after the push. @@ -43304,7 +45151,7 @@ public record WebhookPush } -public record WebhookRegistryPackagePublished +public partial record WebhookRegistryPackagePublished { [JsonPropertyName("action")] public required WebhookPackagePublishedAction Action { get; init; } @@ -43332,15 +45179,110 @@ public record WebhookRegistryPackagePublished [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - [JsonPropertyName("registry_package")] - public required object RegistryPackage { get; init; } + [JsonPropertyName("registry_package")] + public required object RegistryPackage { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookRegistryPackageUpdated +{ + [JsonPropertyName("action")] + public required WebhookCustomPropertyUpdatedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + [JsonPropertyName("registry_package")] + public required object RegistryPackage { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookReleaseCreated +{ + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. + /// + [JsonPropertyName("release")] + public required WebhooksRelease Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -43350,10 +45292,10 @@ public record WebhookRegistryPackagePublished } -public record WebhookRegistryPackageUpdated +public partial record WebhookReleaseDeleted { [JsonPropertyName("action")] - public required WebhookCustomPropertyUpdatedAction Action { get; init; } + public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43378,15 +45320,18 @@ public record WebhookRegistryPackageUpdated [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - [JsonPropertyName("registry_package")] - public required object RegistryPackage { get; init; } + /// + /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. + /// + [JsonPropertyName("release")] + public required WebhooksRelease Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -43396,10 +45341,13 @@ public record WebhookRegistryPackageUpdated } -public record WebhookReleaseCreated +public partial record WebhookReleaseEdited { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + + [JsonPropertyName("changes")] + public required object Changes { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43441,14 +45389,14 @@ public record WebhookReleaseCreated /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookReleaseDeleted +public partial record WebhookReleasePrereleased { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } + public required WebhookReleasePrereleasedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43477,7 +45425,7 @@ public record WebhookReleaseDeleted /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// [JsonPropertyName("release")] - public required WebhooksRelease Release { get; init; } + public required object Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -43490,17 +45438,14 @@ public record WebhookReleaseDeleted /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookReleaseEdited +public partial record WebhookReleasePublished { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } - - [JsonPropertyName("changes")] - public required object Changes { get; init; } + public required WebhookPackagePublishedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43529,7 +45474,7 @@ public record WebhookReleaseEdited /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// [JsonPropertyName("release")] - public required WebhooksRelease Release { get; init; } + public required WebhooksRelease1 Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -43546,10 +45491,10 @@ public record WebhookReleaseEdited } -public record WebhookReleasePrereleased +public partial record WebhookReleaseReleased { [JsonPropertyName("action")] - public required WebhookReleasePrereleasedAction Action { get; init; } + public required WebhookReleaseReleasedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43578,7 +45523,7 @@ public record WebhookReleasePrereleased /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. /// [JsonPropertyName("release")] - public required object Release { get; init; } + public required WebhooksRelease Release { get; init; } /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property @@ -43595,10 +45540,10 @@ public record WebhookReleasePrereleased } -public record WebhookReleasePublished +public partial record WebhookReleaseUnpublished { [JsonPropertyName("action")] - public required WebhookPackagePublishedAction Action { get; init; } + public required WebhookReleaseUnpublishedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43644,10 +45589,10 @@ public record WebhookReleasePublished } -public record WebhookReleaseReleased +public partial record WebhookRepositoryAdvisoryPublished { [JsonPropertyName("action")] - public required WebhookReleaseReleasedAction Action { get; init; } + public required WebhookPackagePublishedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43672,12 +45617,6 @@ public record WebhookReleaseReleased [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - /// - /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. - /// - [JsonPropertyName("release")] - public required WebhooksRelease Release { get; init; } - /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. @@ -43685,6 +45624,12 @@ public record WebhookReleaseReleased [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } + /// + /// A repository security advisory. + /// + [JsonPropertyName("repository_advisory")] + public required RepositoryAdvisory RepositoryAdvisory { get; init; } + /// /// A GitHub user. /// @@ -43693,10 +45638,10 @@ public record WebhookReleaseReleased } -public record WebhookReleaseUnpublished +public partial record WebhookRepositoryAdvisoryReported { [JsonPropertyName("action")] - public required WebhookReleaseUnpublishedAction Action { get; init; } + public required WebhookRepositoryAdvisoryReportedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43721,12 +45666,6 @@ public record WebhookReleaseUnpublished [JsonPropertyName("organization")] public OrganizationSimpleWebhooks? Organization { get; init; } - /// - /// The [release](https://docs.github.com/rest/releases/releases/#get-a-release) object. - /// - [JsonPropertyName("release")] - public required WebhooksRelease1 Release { get; init; } - /// /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property /// when the event occurs from activity in a repository. @@ -43734,6 +45673,12 @@ public record WebhookReleaseUnpublished [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } + /// + /// A repository security advisory. + /// + [JsonPropertyName("repository_advisory")] + public required RepositoryAdvisory RepositoryAdvisory { get; init; } + /// /// A GitHub user. /// @@ -43742,10 +45687,10 @@ public record WebhookReleaseUnpublished } -public record WebhookRepositoryAdvisoryPublished +public partial record WebhookRepositoryArchived { [JsonPropertyName("action")] - public required WebhookPackagePublishedAction Action { get; init; } + public required WebhookProjectsV2ItemArchivedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43777,24 +45722,18 @@ public record WebhookRepositoryAdvisoryPublished [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } - /// - /// A repository security advisory. - /// - [JsonPropertyName("repository_advisory")] - public required RepositoryAdvisory RepositoryAdvisory { get; init; } - /// /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } + public required SimpleUser Sender { get; init; } } -public record WebhookRepositoryAdvisoryReported +public partial record WebhookRepositoryCreated { [JsonPropertyName("action")] - public required WebhookRepositoryAdvisoryReportedAction Action { get; init; } + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43826,24 +45765,18 @@ public record WebhookRepositoryAdvisoryReported [JsonPropertyName("repository")] public required RepositoryWebhooks Repository { get; init; } - /// - /// A repository security advisory. - /// - [JsonPropertyName("repository_advisory")] - public required RepositoryAdvisory RepositoryAdvisory { get; init; } - /// /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } + public required SimpleUser Sender { get; init; } } -public record WebhookRepositoryArchived +public partial record WebhookRepositoryDeleted { [JsonPropertyName("action")] - public required WebhookProjectsV2ItemArchivedAction Action { get; init; } + public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43883,10 +45816,22 @@ public record WebhookRepositoryArchived } -public record WebhookRepositoryCreated +public partial record WebhookRepositoryDispatchSample { + /// + /// The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required string Action { get; init; } + + [JsonPropertyName("branch")] + public required string Branch { get; init; } + + /// + /// The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// + [JsonPropertyName("client_payload")] + public required object? ClientPayload { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43902,7 +45847,7 @@ public record WebhookRepositoryCreated /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } + public required SimpleInstallation Installation { get; init; } /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -43926,10 +45871,13 @@ public record WebhookRepositoryCreated } -public record WebhookRepositoryDeleted +public partial record WebhookRepositoryEdited { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + + [JsonPropertyName("changes")] + public required object Changes { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -43969,22 +45917,96 @@ public record WebhookRepositoryDeleted } -public record WebhookRepositoryDispatchSample +public partial record WebhookRepositoryImport { /// - /// The `event_type` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + + [JsonPropertyName("status")] + public required WebhookRepositoryImportStatus Status { get; init; } + +} + +public partial record WebhookRepositoryPrivatized +{ [JsonPropertyName("action")] - public required string Action { get; init; } + public required WebhookRepositoryPrivatizedAction Action { get; init; } - [JsonPropertyName("branch")] - public required string Branch { get; init; } + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } /// - /// The `client_payload` that was specified in the `POST /repos/{owner}/{repo}/dispatches` request body. + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// - [JsonPropertyName("client_payload")] - public required object? ClientPayload { get; init; } + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public required RepositoryWebhooks Repository { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookRepositoryPublicized +{ + [JsonPropertyName("action")] + public required WebhookRepositoryPublicizedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -44000,7 +46022,7 @@ public record WebhookRepositoryDispatchSample /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." /// [JsonPropertyName("installation")] - public required SimpleInstallation Installation { get; init; } + public SimpleInstallation? Installation { get; init; } /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an @@ -44024,10 +46046,10 @@ public record WebhookRepositoryDispatchSample } -public record WebhookRepositoryEdited +public partial record WebhookRepositoryRenamed { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + public required WebhookInstallationTargetRenamedAction Action { get; init; } [JsonPropertyName("changes")] public required object Changes { get; init; } @@ -44070,8 +46092,60 @@ public record WebhookRepositoryEdited } -public record WebhookRepositoryImport +public partial record WebhookRepositoryRulesetCreated +{ + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + + /// + /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured + /// for and sent to a GitHub App. For more information, + /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." + /// + [JsonPropertyName("installation")] + public SimpleInstallation? Installation { get; init; } + + /// + /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an + /// organization, or when the event occurs from activity in a repository owned by an organization. + /// + [JsonPropertyName("organization")] + public OrganizationSimpleWebhooks? Organization { get; init; } + + /// + /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property + /// when the event occurs from activity in a repository. + /// + [JsonPropertyName("repository")] + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A set of rules to apply when specified conditions are met. + /// + [JsonPropertyName("repository_ruleset")] + public required RepositoryRuleset RepositoryRuleset { get; init; } + + /// + /// A GitHub user. + /// + [JsonPropertyName("sender")] + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookRepositoryRulesetDeleted { + [JsonPropertyName("action")] + public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } + /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured /// on an enterprise account or an organization that's part of an enterprise account. For more information, @@ -44100,7 +46174,13 @@ public record WebhookRepositoryImport /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public RepositoryWebhooks? Repository { get; init; } + + /// + /// A set of rules to apply when specified conditions are met. + /// + [JsonPropertyName("repository_ruleset")] + public required RepositoryRuleset RepositoryRuleset { get; init; } /// /// A GitHub user. @@ -44108,15 +46188,12 @@ public record WebhookRepositoryImport [JsonPropertyName("sender")] public required SimpleUser Sender { get; init; } - [JsonPropertyName("status")] - public required WebhookRepositoryImportStatus Status { get; init; } - } -public record WebhookRepositoryPrivatized +public partial record WebhookRepositoryRulesetEdited { [JsonPropertyName("action")] - public required WebhookRepositoryPrivatizedAction Action { get; init; } + public required WebhookBranchProtectionRuleEditedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -44146,50 +46223,16 @@ public record WebhookRepositoryPrivatized /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } - - /// - /// A GitHub user. - /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookRepositoryPublicized -{ - [JsonPropertyName("action")] - public required WebhookRepositoryPublicizedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } + public RepositoryWebhooks? Repository { get; init; } /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. + /// A set of rules to apply when specified conditions are met. /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } + [JsonPropertyName("repository_ruleset")] + public required RepositoryRuleset RepositoryRuleset { get; init; } - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + [JsonPropertyName("changes")] + public object? Changes { get; init; } /// /// A GitHub user. @@ -44199,10 +46242,10 @@ public record WebhookRepositoryPublicized } -public record WebhookRepositoryRenamed +public partial record WebhookRepositoryTransferred { [JsonPropertyName("action")] - public required WebhookInstallationTargetRenamedAction Action { get; init; } + public required WebhookDiscussionTransferredAction Action { get; init; } [JsonPropertyName("changes")] public required object Changes { get; init; } @@ -44245,10 +46288,10 @@ public record WebhookRepositoryRenamed } -public record WebhookRepositoryRulesetCreated +public partial record WebhookRepositoryUnarchived { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required WebhookRepositoryUnarchivedAction Action { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -44278,13 +46321,7 @@ public record WebhookRepositoryRulesetCreated /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } - - /// - /// A set of rules to apply when specified conditions are met. - /// - [JsonPropertyName("repository_ruleset")] - public required RepositoryRuleset RepositoryRuleset { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -44294,59 +46331,16 @@ public record WebhookRepositoryRulesetCreated } -public record WebhookRepositoryRulesetDeleted +public partial record WebhookRepositoryVulnerabilityAlertCreate { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } - - /// - /// A set of rules to apply when specified conditions are met. - /// - [JsonPropertyName("repository_ruleset")] - public required RepositoryRuleset RepositoryRuleset { get; init; } + public required WebhookRepositoryVulnerabilityAlertCreateAction Action { get; init; } /// - /// A GitHub user. + /// The security alert of the vulnerable dependency. /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookRepositoryRulesetEdited -{ - [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleEditedAction Action { get; init; } + [JsonPropertyName("alert")] + public required WebhooksAlert Alert { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -44376,16 +46370,7 @@ public record WebhookRepositoryRulesetEdited /// when the event occurs from activity in a repository. /// [JsonPropertyName("repository")] - public RepositoryWebhooks? Repository { get; init; } - - /// - /// A set of rules to apply when specified conditions are met. - /// - [JsonPropertyName("repository_ruleset")] - public required RepositoryRuleset RepositoryRuleset { get; init; } - - [JsonPropertyName("changes")] - public object? Changes { get; init; } + public required RepositoryWebhooks Repository { get; init; } /// /// A GitHub user. @@ -44395,56 +46380,16 @@ public record WebhookRepositoryRulesetEdited } -public record WebhookRepositoryTransferred +public partial record WebhookRepositoryVulnerabilityAlertDismiss { [JsonPropertyName("action")] - public required WebhookDiscussionTransferredAction Action { get; init; } - - [JsonPropertyName("changes")] - public required object Changes { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - - /// - /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured - /// for and sent to a GitHub App. For more information, - /// see "[Using webhooks with GitHub Apps](https://docs.github.com/apps/creating-github-apps/registering-a-github-app/using-webhooks-with-github-apps)." - /// - [JsonPropertyName("installation")] - public SimpleInstallation? Installation { get; init; } - - /// - /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an - /// organization, or when the event occurs from activity in a repository owned by an organization. - /// - [JsonPropertyName("organization")] - public OrganizationSimpleWebhooks? Organization { get; init; } - - /// - /// The repository on GitHub where the event occurred. Webhook payloads contain the `repository` property - /// when the event occurs from activity in a repository. - /// - [JsonPropertyName("repository")] - public required RepositoryWebhooks Repository { get; init; } + public required WebhookRepositoryVulnerabilityAlertDismissAction Action { get; init; } /// - /// A GitHub user. + /// The security alert of the vulnerable dependency. /// - [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookRepositoryUnarchived -{ - [JsonPropertyName("action")] - public required WebhookRepositoryUnarchivedAction Action { get; init; } + [JsonPropertyName("alert")] + public required object Alert { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -44484,10 +46429,10 @@ public record WebhookRepositoryUnarchived } -public record WebhookRepositoryVulnerabilityAlertCreate +public partial record WebhookRepositoryVulnerabilityAlertReopen { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertCreateAction Action { get; init; } + public required WebhookRepositoryVulnerabilityAlertReopenAction Action { get; init; } /// /// The security alert of the vulnerable dependency. @@ -44533,10 +46478,10 @@ public record WebhookRepositoryVulnerabilityAlertCreate } -public record WebhookRepositoryVulnerabilityAlertDismiss +public partial record WebhookRepositoryVulnerabilityAlertResolve { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertDismissAction Action { get; init; } + public required WebhookRepositoryVulnerabilityAlertResolveAction Action { get; init; } /// /// The security alert of the vulnerable dependency. @@ -44582,16 +46527,19 @@ public record WebhookRepositoryVulnerabilityAlertDismiss } -public record WebhookRepositoryVulnerabilityAlertReopen +public partial record WebhookSecretScanningAlertAssigned { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertReopenAction Action { get; init; } + public required WebhookIssuesAssignedAction Action { get; init; } + + [JsonPropertyName("alert")] + public required SecretScanningAlertWebhook Alert { get; init; } /// - /// The security alert of the vulnerable dependency. + /// A GitHub user. /// - [JsonPropertyName("alert")] - public required WebhooksAlert Alert { get; init; } + [JsonPropertyName("assignee")] + public SimpleUser? Assignee { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -44627,20 +46575,17 @@ public record WebhookRepositoryVulnerabilityAlertReopen /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookRepositoryVulnerabilityAlertResolve +public partial record WebhookSecretScanningAlertCreated { [JsonPropertyName("action")] - public required WebhookRepositoryVulnerabilityAlertResolveAction Action { get; init; } + public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } - /// - /// The security alert of the vulnerable dependency. - /// [JsonPropertyName("alert")] - public required object Alert { get; init; } + public required SecretScanningAlertWebhook Alert { get; init; } /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -44676,32 +46621,18 @@ public record WebhookRepositoryVulnerabilityAlertResolve /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookSecretScanningAlertAssigned +public partial record WebhookSecretScanningAlertLocationCreated { [JsonPropertyName("action")] - public required WebhookIssuesAssignedAction Action { get; init; } + public WebhookBranchProtectionRuleCreatedAction? Action { get; init; } [JsonPropertyName("alert")] public required SecretScanningAlertWebhook Alert { get; init; } - /// - /// A GitHub user. - /// - [JsonPropertyName("assignee")] - public SimpleUser? Assignee { get; init; } - - /// - /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured - /// on an enterprise account or an organization that's part of an enterprise account. For more information, - /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." - /// - [JsonPropertyName("enterprise")] - public EnterpriseWebhooks? Enterprise { get; init; } - /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured /// for and sent to a GitHub App. For more information, @@ -44710,6 +46641,9 @@ public record WebhookSecretScanningAlertAssigned [JsonPropertyName("installation")] public SimpleInstallation? Installation { get; init; } + [JsonPropertyName("location")] + public required SecretScanningLocation Location { get; init; } + /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an /// organization, or when the event occurs from activity in a repository owned by an organization. @@ -44728,14 +46662,24 @@ public record WebhookSecretScanningAlertAssigned /// A GitHub user. /// [JsonPropertyName("sender")] - public SimpleUser? Sender { get; init; } + public required SimpleUser Sender { get; init; } + +} + +public partial record WebhookSecretScanningAlertLocationCreatedFormEncoded +{ + /// + /// A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object. + /// + [JsonPropertyName("payload")] + public required string Payload { get; init; } } -public record WebhookSecretScanningAlertCreated +public partial record WebhookSecretScanningAlertMetadataCreated { [JsonPropertyName("action")] - public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } + public required WebhookSecretScanningAlertMetadataCreatedAction Action { get; init; } [JsonPropertyName("alert")] public required SecretScanningAlertWebhook Alert { get; init; } @@ -44778,14 +46722,22 @@ public record WebhookSecretScanningAlertCreated } -public record WebhookSecretScanningAlertLocationCreated +public partial record WebhookSecretScanningAlertMetadataRemoved { [JsonPropertyName("action")] - public WebhookBranchProtectionRuleCreatedAction? Action { get; init; } + public required WebhookSecretScanningAlertMetadataRemovedAction Action { get; init; } [JsonPropertyName("alert")] public required SecretScanningAlertWebhook Alert { get; init; } + /// + /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured + /// on an enterprise account or an organization that's part of an enterprise account. For more information, + /// see "[About enterprise accounts](https://docs.github.com/admin/overview/about-enterprise-accounts)." + /// + [JsonPropertyName("enterprise")] + public EnterpriseWebhooks? Enterprise { get; init; } + /// /// The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured /// for and sent to a GitHub App. For more information, @@ -44794,9 +46746,6 @@ public record WebhookSecretScanningAlertLocationCreated [JsonPropertyName("installation")] public SimpleInstallation? Installation { get; init; } - [JsonPropertyName("location")] - public required SecretScanningLocation Location { get; init; } - /// /// A GitHub organization. Webhook payloads contain the `organization` property when the webhook is configured for an /// organization, or when the event occurs from activity in a repository owned by an organization. @@ -44815,21 +46764,11 @@ public record WebhookSecretScanningAlertLocationCreated /// A GitHub user. /// [JsonPropertyName("sender")] - public required SimpleUser Sender { get; init; } - -} - -public record WebhookSecretScanningAlertLocationCreatedFormEncoded -{ - /// - /// A URL-encoded string of the secret_scanning_alert_location.created JSON payload. The decoded payload is a JSON object. - /// - [JsonPropertyName("payload")] - public required string Payload { get; init; } + public SimpleUser? Sender { get; init; } } -public record WebhookSecretScanningAlertPubliclyLeaked +public partial record WebhookSecretScanningAlertPubliclyLeaked { [JsonPropertyName("action")] public required WebhookSecretScanningAlertPubliclyLeakedAction Action { get; init; } @@ -44875,7 +46814,7 @@ public record WebhookSecretScanningAlertPubliclyLeaked } -public record WebhookSecretScanningAlertReopened +public partial record WebhookSecretScanningAlertReopened { [JsonPropertyName("action")] public required WebhookCodeScanningAlertReopenedAction Action { get; init; } @@ -44921,7 +46860,7 @@ public record WebhookSecretScanningAlertReopened } -public record WebhookSecretScanningAlertResolved +public partial record WebhookSecretScanningAlertResolved { [JsonPropertyName("action")] public required WebhookPullRequestReviewThreadResolvedAction Action { get; init; } @@ -44967,7 +46906,7 @@ public record WebhookSecretScanningAlertResolved } -public record WebhookSecretScanningAlertUnassigned +public partial record WebhookSecretScanningAlertUnassigned { [JsonPropertyName("action")] public required WebhookIssuesUnassignedAction Action { get; init; } @@ -45019,7 +46958,7 @@ public record WebhookSecretScanningAlertUnassigned } -public record WebhookSecretScanningAlertValidated +public partial record WebhookSecretScanningAlertValidated { [JsonPropertyName("action")] public required WebhookSecretScanningAlertValidatedAction Action { get; init; } @@ -45065,7 +47004,7 @@ public record WebhookSecretScanningAlertValidated } -public record WebhookSecretScanningScanCompleted +public partial record WebhookSecretScanningScanCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -45150,7 +47089,7 @@ public record WebhookSecretScanningScanCompleted } -public record WebhookSecurityAdvisoryPublished +public partial record WebhookSecurityAdvisoryPublished { [JsonPropertyName("action")] public required WebhookPackagePublishedAction Action { get; init; } @@ -45199,7 +47138,7 @@ public record WebhookSecurityAdvisoryPublished } -public record WebhookSecurityAdvisoryUpdated +public partial record WebhookSecurityAdvisoryUpdated { [JsonPropertyName("action")] public required WebhookCustomPropertyUpdatedAction Action { get; init; } @@ -45248,7 +47187,7 @@ public record WebhookSecurityAdvisoryUpdated } -public record WebhookSecurityAdvisoryWithdrawn +public partial record WebhookSecurityAdvisoryWithdrawn { [JsonPropertyName("action")] public required WebhookSecurityAdvisoryWithdrawnAction Action { get; init; } @@ -45297,7 +47236,7 @@ public record WebhookSecurityAdvisoryWithdrawn } -public record WebhookSecurityAndAnalysis +public partial record WebhookSecurityAndAnalysis { [JsonPropertyName("changes")] public required object Changes { get; init; } @@ -45339,7 +47278,7 @@ public record WebhookSecurityAndAnalysis } -public record WebhookSponsorshipCancelled +public partial record WebhookSponsorshipCancelled { [JsonPropertyName("action")] public required WebhookMarketplacePurchaseCancelledAction Action { get; init; } @@ -45385,7 +47324,7 @@ public record WebhookSponsorshipCancelled } -public record WebhookSponsorshipCreated +public partial record WebhookSponsorshipCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -45431,7 +47370,7 @@ public record WebhookSponsorshipCreated } -public record WebhookSponsorshipEdited +public partial record WebhookSponsorshipEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -45480,7 +47419,7 @@ public record WebhookSponsorshipEdited } -public record WebhookSponsorshipPendingCancellation +public partial record WebhookSponsorshipPendingCancellation { [JsonPropertyName("action")] public required WebhookSponsorshipPendingCancellationAction Action { get; init; } @@ -45532,7 +47471,7 @@ public record WebhookSponsorshipPendingCancellation } -public record WebhookSponsorshipPendingTierChange +public partial record WebhookSponsorshipPendingTierChange { [JsonPropertyName("action")] public required WebhookSponsorshipPendingTierChangeAction Action { get; init; } @@ -45587,7 +47526,7 @@ public record WebhookSponsorshipPendingTierChange } -public record WebhookSponsorshipTierChanged +public partial record WebhookSponsorshipTierChanged { [JsonPropertyName("action")] public required WebhookSponsorshipTierChangedAction Action { get; init; } @@ -45636,7 +47575,7 @@ public record WebhookSponsorshipTierChanged } -public record WebhookStarCreated +public partial record WebhookStarCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -45685,7 +47624,7 @@ public record WebhookStarCreated } -public record WebhookStarDeleted +public partial record WebhookStarDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -45734,7 +47673,7 @@ public record WebhookStarDeleted } -public record WebhookStatus +public partial record WebhookStatus { [JsonPropertyName("avatar_url")] public Uri? AvatarUrl { get; init; } @@ -45828,7 +47767,7 @@ public record WebhookStatus } -public record WebhookSubIssuesParentIssueAdded +public partial record WebhookSubIssuesParentIssueAdded { [JsonPropertyName("action")] public required WebhookSubIssuesParentIssueAddedAction Action { get; init; } @@ -45893,7 +47832,7 @@ public record WebhookSubIssuesParentIssueAdded } -public record WebhookSubIssuesParentIssueRemoved +public partial record WebhookSubIssuesParentIssueRemoved { [JsonPropertyName("action")] public required WebhookSubIssuesParentIssueRemovedAction Action { get; init; } @@ -45958,7 +47897,7 @@ public record WebhookSubIssuesParentIssueRemoved } -public record WebhookSubIssuesSubIssueAdded +public partial record WebhookSubIssuesSubIssueAdded { [JsonPropertyName("action")] public required WebhookSubIssuesSubIssueAddedAction Action { get; init; } @@ -46023,7 +47962,7 @@ public record WebhookSubIssuesSubIssueAdded } -public record WebhookSubIssuesSubIssueRemoved +public partial record WebhookSubIssuesSubIssueRemoved { [JsonPropertyName("action")] public required WebhookSubIssuesSubIssueRemovedAction Action { get; init; } @@ -46088,7 +48027,7 @@ public record WebhookSubIssuesSubIssueRemoved } -public record WebhookTeamAdd +public partial record WebhookTeamAdd { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -46134,7 +48073,7 @@ public record WebhookTeamAdd } -public record WebhookTeamAddedToRepository +public partial record WebhookTeamAddedToRepository { [JsonPropertyName("action")] public required WebhookTeamAddedToRepositoryAction Action { get; init; } @@ -46182,7 +48121,7 @@ public record WebhookTeamAddedToRepository } -public record WebhookTeamCreated +public partial record WebhookTeamCreated { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleCreatedAction Action { get; init; } @@ -46230,7 +48169,7 @@ public record WebhookTeamCreated } -public record WebhookTeamDeleted +public partial record WebhookTeamDeleted { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleDeletedAction Action { get; init; } @@ -46278,7 +48217,7 @@ public record WebhookTeamDeleted } -public record WebhookTeamEdited +public partial record WebhookTeamEdited { [JsonPropertyName("action")] public required WebhookBranchProtectionRuleEditedAction Action { get; init; } @@ -46332,7 +48271,7 @@ public record WebhookTeamEdited } -public record WebhookTeamRemovedFromRepository +public partial record WebhookTeamRemovedFromRepository { [JsonPropertyName("action")] public required WebhookTeamRemovedFromRepositoryAction Action { get; init; } @@ -46380,7 +48319,7 @@ public record WebhookTeamRemovedFromRepository } -public record WebhookWatchStarted +public partial record WebhookWatchStarted { [JsonPropertyName("action")] public required WebhookWatchStartedAction Action { get; init; } @@ -46423,7 +48362,7 @@ public record WebhookWatchStarted } -public record WebhookWorkflowDispatch +public partial record WebhookWorkflowDispatch { /// /// An enterprise on GitHub. Webhook payloads contain the `enterprise` property when the webhook is configured @@ -46472,7 +48411,7 @@ public record WebhookWorkflowDispatch } -public record WebhookWorkflowJobCompleted +public partial record WebhookWorkflowJobCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -46524,7 +48463,7 @@ public record WebhookWorkflowJobCompleted } -public record WebhookWorkflowJobInProgress +public partial record WebhookWorkflowJobInProgress { [JsonPropertyName("action")] public required WebhookWorkflowJobInProgressAction Action { get; init; } @@ -46576,7 +48515,7 @@ public record WebhookWorkflowJobInProgress } -public record WebhookWorkflowJobQueued +public partial record WebhookWorkflowJobQueued { [JsonPropertyName("action")] public required WebhookWorkflowJobQueuedAction Action { get; init; } @@ -46628,7 +48567,7 @@ public record WebhookWorkflowJobQueued } -public record WebhookWorkflowJobWaiting +public partial record WebhookWorkflowJobWaiting { [JsonPropertyName("action")] public required WebhookWorkflowJobWaitingAction Action { get; init; } @@ -46680,7 +48619,7 @@ public record WebhookWorkflowJobWaiting } -public record WebhookWorkflowRunCompleted +public partial record WebhookWorkflowRunCompleted { [JsonPropertyName("action")] public required WebhookCheckRunCompletedAction Action { get; init; } @@ -46729,7 +48668,7 @@ public record WebhookWorkflowRunCompleted } -public record WebhookWorkflowRunInProgress +public partial record WebhookWorkflowRunInProgress { [JsonPropertyName("action")] public required WebhookWorkflowJobInProgressAction Action { get; init; } @@ -46778,7 +48717,7 @@ public record WebhookWorkflowRunInProgress } -public record WebhookWorkflowRunRequested +public partial record WebhookWorkflowRunRequested { [JsonPropertyName("action")] public required WebhookCheckSuiteRequestedAction Action { get; init; } @@ -46827,7 +48766,7 @@ public record WebhookWorkflowRunRequested } -public record CreateEvent +public partial record CreateEvent { [JsonPropertyName("ref")] public required string Ref { get; init; } @@ -46849,7 +48788,7 @@ public record CreateEvent } -public record DeleteEvent +public partial record DeleteEvent { [JsonPropertyName("ref")] public required string Ref { get; init; } @@ -46865,7 +48804,7 @@ public record DeleteEvent } -public record DiscussionEvent +public partial record DiscussionEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -46878,7 +48817,7 @@ public record DiscussionEvent } -public record IssuesEvent +public partial record IssuesEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -46909,7 +48848,7 @@ public record IssuesEvent } -public record IssueCommentEvent +public partial record IssueCommentEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -46928,7 +48867,7 @@ public record IssueCommentEvent } -public record ForkEvent +public partial record ForkEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -46938,14 +48877,14 @@ public record ForkEvent } -public record GollumEvent +public partial record GollumEvent { [JsonPropertyName("pages")] public required IReadOnlyList Pages { get; init; } } -public record MemberEvent +public partial record MemberEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -46958,11 +48897,11 @@ public record MemberEvent } -public record PublicEvent +public partial record PublicEvent { } -public record PushEvent +public partial record PushEvent { [JsonPropertyName("repository_id")] public required int RepositoryId { get; init; } @@ -46981,7 +48920,7 @@ public record PushEvent } -public record PullRequestEvent +public partial record PullRequestEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -47012,7 +48951,7 @@ public record PullRequestEvent } -public record PullRequestReviewCommentEvent +public partial record PullRequestReviewCommentEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -47025,7 +48964,7 @@ public record PullRequestReviewCommentEvent } -public record PullRequestReviewEvent +public partial record PullRequestReviewEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -47038,7 +48977,7 @@ public record PullRequestReviewEvent } -public record CommitCommentEvent +public partial record CommitCommentEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -47048,7 +48987,7 @@ public record CommitCommentEvent } -public record ReleaseEvent +public partial record ReleaseEvent { [JsonPropertyName("action")] public required string Action { get; init; } @@ -47058,7 +48997,7 @@ public record ReleaseEvent } -public record WatchEvent +public partial record WatchEvent { [JsonPropertyName("action")] public required string Action { get; init; } diff --git a/examples/OpenApiCodeGenerator.Examples/output/octokit-ghes-3.6-diff-to-api.cs b/examples/OpenApiCodeGenerator.Examples/output/octokit-ghes-3.6-diff-to-api.cs index 49d1f33..a42c0d2 100644 --- a/examples/OpenApiCodeGenerator.Examples/output/octokit-ghes-3.6-diff-to-api.cs +++ b/examples/OpenApiCodeGenerator.Examples/output/octokit-ghes-3.6-diff-to-api.cs @@ -40,7 +40,7 @@ public override void Write(Utf8JsonWriter writer, TAlias value, JsonSerializerOp /// /// Describe whether all repositories have been selected or there's a selection involved /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositorySelection { [JsonStringEnumMemberName("all")] @@ -52,7 +52,7 @@ public enum RepositorySelection /// /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Actions { [JsonStringEnumMemberName("read")] @@ -64,7 +64,7 @@ public enum Actions /// /// The level of permission to grant the access token for repository creation, deletion, settings, teams, and collaborators creation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Administration { [JsonStringEnumMemberName("read")] @@ -76,7 +76,7 @@ public enum Administration /// /// The level of permission to grant the access token for checks on code. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Checks { [JsonStringEnumMemberName("read")] @@ -88,7 +88,7 @@ public enum Checks /// /// The level of permission to grant the access token for repository contents, commits, branches, downloads, releases, and merges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Contents { [JsonStringEnumMemberName("read")] @@ -100,7 +100,7 @@ public enum Contents /// /// The level of permission to grant the access token for deployments and deployment statuses. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Deployments { [JsonStringEnumMemberName("read")] @@ -112,7 +112,7 @@ public enum Deployments /// /// The level of permission to grant the access token for managing repository environments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Environments { [JsonStringEnumMemberName("read")] @@ -124,7 +124,7 @@ public enum Environments /// /// The level of permission to grant the access token for issues and related comments, assignees, labels, and milestones. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Issues { [JsonStringEnumMemberName("read")] @@ -136,7 +136,7 @@ public enum Issues /// /// The level of permission to grant the access token to search repositories, list collaborators, and access repository metadata. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Metadata { [JsonStringEnumMemberName("read")] @@ -148,7 +148,7 @@ public enum Metadata /// /// The level of permission to grant the access token for packages published to GitHub Packages. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Packages { [JsonStringEnumMemberName("read")] @@ -160,7 +160,7 @@ public enum Packages /// /// The level of permission to grant the access token to retrieve Pages statuses, configuration, and builds, as well as create new builds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Pages { [JsonStringEnumMemberName("read")] @@ -172,7 +172,7 @@ public enum Pages /// /// The level of permission to grant the access token for pull requests and related comments, assignees, labels, milestones, and merges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PullRequests { [JsonStringEnumMemberName("read")] @@ -184,7 +184,7 @@ public enum PullRequests /// /// The level of permission to grant the access token to manage the post-receive hooks for a repository. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryHooks { [JsonStringEnumMemberName("read")] @@ -196,7 +196,7 @@ public enum RepositoryHooks /// /// The level of permission to grant the access token to manage repository projects, columns, and cards. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RepositoryProjects { [JsonStringEnumMemberName("read")] @@ -210,7 +210,7 @@ public enum RepositoryProjects /// /// The level of permission to grant the access token to view and manage secret scanning alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlerts { [JsonStringEnumMemberName("read")] @@ -222,7 +222,7 @@ public enum SecretScanningAlerts /// /// The level of permission to grant the access token to manage repository secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Secrets { [JsonStringEnumMemberName("read")] @@ -234,7 +234,7 @@ public enum Secrets /// /// The level of permission to grant the access token to view and manage security events like code scanning alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecurityEvents { [JsonStringEnumMemberName("read")] @@ -246,7 +246,7 @@ public enum SecurityEvents /// /// The level of permission to grant the access token to manage just a single file. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SingleFile { [JsonStringEnumMemberName("read")] @@ -258,7 +258,7 @@ public enum SingleFile /// /// The level of permission to grant the access token for commit statuses. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Statuses { [JsonStringEnumMemberName("read")] @@ -270,7 +270,7 @@ public enum Statuses /// /// The level of permission to grant the access token to manage Dependabot alerts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum VulnerabilityAlerts { [JsonStringEnumMemberName("read")] @@ -282,7 +282,7 @@ public enum VulnerabilityAlerts /// /// The level of permission to grant the access token to update GitHub Actions workflow files. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Workflows { [JsonStringEnumMemberName("write")] @@ -292,7 +292,7 @@ public enum Workflows /// /// The level of permission to grant the access token for organization teams and members. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Members { [JsonStringEnumMemberName("read")] @@ -304,7 +304,7 @@ public enum Members /// /// The level of permission to grant the access token to manage access to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationAdministration { [JsonStringEnumMemberName("read")] @@ -316,7 +316,7 @@ public enum OrganizationAdministration /// /// The level of permission to grant the access token to manage the post-receive hooks for an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationHooks { [JsonStringEnumMemberName("read")] @@ -328,7 +328,7 @@ public enum OrganizationHooks /// /// The level of permission to grant the access token for viewing an organization's plan. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPlan { [JsonStringEnumMemberName("read")] @@ -338,7 +338,7 @@ public enum OrganizationPlan /// /// The level of permission to grant the access token to manage organization projects and projects beta (where available). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationProjects { [JsonStringEnumMemberName("read")] @@ -352,7 +352,7 @@ public enum OrganizationProjects /// /// The level of permission to grant the access token for organization packages published to GitHub Packages. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationPackages { [JsonStringEnumMemberName("read")] @@ -364,7 +364,7 @@ public enum OrganizationPackages /// /// The level of permission to grant the access token to manage organization secrets. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecrets { [JsonStringEnumMemberName("read")] @@ -376,7 +376,7 @@ public enum OrganizationSecrets /// /// The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSelfHostedRunners { [JsonStringEnumMemberName("read")] @@ -388,7 +388,7 @@ public enum OrganizationSelfHostedRunners /// /// The level of permission to grant the access token to view and manage users blocked by the organization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationUserBlocking { [JsonStringEnumMemberName("read")] @@ -400,7 +400,7 @@ public enum OrganizationUserBlocking /// /// The level of permission to grant the access token to manage team discussions and related comments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TeamDiscussions { [JsonStringEnumMemberName("read")] @@ -412,7 +412,7 @@ public enum TeamDiscussions /// /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrganizationSecretScanningAlertState { [JsonStringEnumMemberName("open")] @@ -424,7 +424,7 @@ public enum OrganizationSecretScanningAlertState /// /// State of the release asset. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReleaseAssetState { [JsonStringEnumMemberName("uploaded")] @@ -436,7 +436,7 @@ public enum ReleaseAssetState /// /// **Required when the `state` is `resolved`.** The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Resolution { [JsonStringEnumMemberName("false_positive")] @@ -452,7 +452,7 @@ public enum Resolution /// /// The level of privacy this team should have /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Privacy { [JsonStringEnumMemberName("closed")] @@ -467,7 +467,7 @@ public enum Privacy /// - `PR_TITLE` - default to the pull request's title. /// - `COMMIT_OR_PR_TITLE` - default to the commit's title (if only one commit) or the pull request's title (when more than one commit). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SquashMergeCommitTitle { [JsonStringEnumMemberName("PR_TITLE")] @@ -483,7 +483,7 @@ public enum SquashMergeCommitTitle /// - `COMMIT_MESSAGES` - default to the branch's commit messages. /// - `BLANK` - default to a blank commit message. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SquashMergeCommitMessage { [JsonStringEnumMemberName("PR_BODY")] @@ -500,7 +500,7 @@ public enum SquashMergeCommitMessage /// - `PR_TITLE` - default to the pull request's title. /// - `MERGE_MESSAGE` - default to the classic title for a merge message (e.g., Merge pull request #123 from branch-name). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeCommitTitle { [JsonStringEnumMemberName("PR_TITLE")] @@ -516,7 +516,7 @@ public enum MergeCommitTitle /// - `PR_BODY` - default to the pull request's body. /// - `BLANK` - default to a blank commit message. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MergeCommitMessage { [JsonStringEnumMemberName("PR_BODY")] @@ -527,7 +527,7 @@ public enum MergeCommitMessage Blank } -public record GlobalHook +public partial record GlobalHook { [JsonPropertyName("type")] public string? Type { get; init; } @@ -561,7 +561,7 @@ public record GlobalHook } -public record GlobalHook2 +public partial record GlobalHook2 { [JsonPropertyName("type")] public string? Type { get; init; } @@ -595,7 +595,7 @@ public record GlobalHook2 } -public record PublicKeyFull +public partial record PublicKeyFull { [JsonPropertyName("id")] public required int Id { get; init; } @@ -626,7 +626,7 @@ public record PublicKeyFull } -public record LdapMappingTeam +public partial record LdapMappingTeam { [JsonPropertyName("ldap_dn")] public string? LdapDn { get; init; } @@ -672,7 +672,7 @@ public record LdapMappingTeam /// /// Ldap Private User /// -public record LdapMappingUser +public partial record LdapMappingUser { [JsonPropertyName("ldap_dn")] public string? LdapDn { get; init; } @@ -805,7 +805,7 @@ public record LdapMappingUser /// /// Organization Simple /// -public record OrganizationSimple +public partial record OrganizationSimple { [JsonPropertyName("login")] public required string Login { get; init; } @@ -845,7 +845,7 @@ public record OrganizationSimple } -public record PreReceiveEnvironment +public partial record PreReceiveEnvironment { [JsonPropertyName("id")] public int? Id { get; init; } @@ -876,7 +876,7 @@ public record PreReceiveEnvironment } -public record PreReceiveEnvironmentDownloadStatus +public partial record PreReceiveEnvironmentDownloadStatus { [JsonPropertyName("url")] public string? Url { get; init; } @@ -892,7 +892,7 @@ public record PreReceiveEnvironmentDownloadStatus } -public record PreReceiveHook +public partial record PreReceiveHook { [JsonPropertyName("id")] public int? Id { get; init; } @@ -920,7 +920,7 @@ public record PreReceiveHook /// /// The authorization for an OAuth app, GitHub App, or a Personal Access Token. /// -public record Authorization +public partial record Authorization { [JsonPropertyName("id")] public required int Id { get; init; } @@ -978,7 +978,7 @@ public record Authorization /// /// Simple User /// -public record SimpleUser +public partial record SimpleUser { [JsonPropertyName("name")] public string? Name { get; init; } @@ -1048,7 +1048,7 @@ public record SimpleUser /// /// Installation /// -public record Installation +public partial record Installation { /// /// The ID of the installation. @@ -1130,7 +1130,7 @@ public record Installation /// /// The permissions granted to the user-to-server access token. /// -public record AppPermissions +public partial record AppPermissions { /// /// The level of permission to grant the access token for GitHub Actions workflows, workflow runs, and artifacts. @@ -1317,7 +1317,7 @@ public record AppPermissions /// /// Authentication token for a GitHub App installed on a user or org. /// -public record InstallationToken +public partial record InstallationToken { [JsonPropertyName("token")] public required string Token { get; init; } @@ -1351,7 +1351,7 @@ public record InstallationToken /// /// The authorization associated with an OAuth Access. /// -public record ApplicationGrant +public partial record ApplicationGrant { [JsonPropertyName("id")] public required int Id { get; init; } @@ -1382,7 +1382,7 @@ public record ApplicationGrant /// /// Enterprise global announcement /// -public record Announcement +public partial record Announcement { /// /// The announcement text in GitHub Flavored Markdown. For more information about GitHub Flavored Markdown, see "[Basic writing and formatting syntax](https://docs.github.com/enterprise-server@3.6/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)." @@ -1398,7 +1398,7 @@ public record Announcement } -public record LicenseInfo +public partial record LicenseInfo { [JsonPropertyName("seats")] public object? Seats { get; init; } @@ -1420,7 +1420,7 @@ public record LicenseInfo } -public record EnterpriseOverview +public partial record EnterpriseOverview { [JsonPropertyName("repos")] public EnterpriseRepositoryOverview? Repos { get; init; } @@ -1454,7 +1454,7 @@ public record EnterpriseOverview } -public record EnterpriseCommentOverview +public partial record EnterpriseCommentOverview { [JsonPropertyName("total_commit_comments")] public required int TotalCommitComments { get; init; } @@ -1470,7 +1470,7 @@ public record EnterpriseCommentOverview } -public record EnterpriseGistOverview +public partial record EnterpriseGistOverview { [JsonPropertyName("total_gists")] public required int TotalGists { get; init; } @@ -1483,7 +1483,7 @@ public record EnterpriseGistOverview } -public record EnterpriseHookOverview +public partial record EnterpriseHookOverview { [JsonPropertyName("total_hooks")] public required int TotalHooks { get; init; } @@ -1496,7 +1496,7 @@ public record EnterpriseHookOverview } -public record EnterpriseIssueOverview +public partial record EnterpriseIssueOverview { [JsonPropertyName("total_issues")] public required int TotalIssues { get; init; } @@ -1509,7 +1509,7 @@ public record EnterpriseIssueOverview } -public record EnterpriseMilestoneOverview +public partial record EnterpriseMilestoneOverview { [JsonPropertyName("total_milestones")] public required int TotalMilestones { get; init; } @@ -1522,7 +1522,7 @@ public record EnterpriseMilestoneOverview } -public record EnterpriseOrganizationOverview +public partial record EnterpriseOrganizationOverview { [JsonPropertyName("total_orgs")] public required int TotalOrgs { get; init; } @@ -1538,14 +1538,14 @@ public record EnterpriseOrganizationOverview } -public record EnterprisePageOverview +public partial record EnterprisePageOverview { [JsonPropertyName("total_pages")] public required int TotalPages { get; init; } } -public record EnterprisePullRequestOverview +public partial record EnterprisePullRequestOverview { [JsonPropertyName("total_pulls")] public required int TotalPulls { get; init; } @@ -1561,7 +1561,7 @@ public record EnterprisePullRequestOverview } -public record EnterpriseRepositoryOverview +public partial record EnterpriseRepositoryOverview { [JsonPropertyName("total_repos")] public required int TotalRepos { get; init; } @@ -1583,7 +1583,7 @@ public record EnterpriseRepositoryOverview } -public record EnterpriseUserOverview +public partial record EnterpriseUserOverview { [JsonPropertyName("total_users")] public required int TotalUsers { get; init; } @@ -1599,7 +1599,7 @@ public record EnterpriseUserOverview /// /// GitHub Actions cache usage policy for an enterprise. /// -public record ActionsCacheUsagePolicyEnterprise +public partial record ActionsCacheUsagePolicyEnterprise { /// /// For repositories in an enterprise, the default size limit for the sum of all caches in a repository, in gigabytes. @@ -1615,7 +1615,7 @@ public record ActionsCacheUsagePolicyEnterprise } -public record SelectedActions +public partial record SelectedActions { /// /// Whether GitHub-owned actions are allowed. For example, this includes the actions in the `actions` organization. @@ -1631,7 +1631,7 @@ public record SelectedActions } -public record AuditLogEvent +public partial record AuditLogEvent { /// /// The time the audit log event occurred, given as a [Unix timestamp](http://en.wikipedia.org/wiki/Unix_time). @@ -1794,7 +1794,7 @@ public record AuditLogEvent } -public record OrganizationSecretScanningAlert +public partial record OrganizationSecretScanningAlert { /// /// The security alert number. @@ -1904,7 +1904,7 @@ public record OrganizationSecretScanningAlert /// /// Api Overview /// -public record ApiOverview +public partial record ApiOverview { [JsonPropertyName("verifiable_password_authentication")] public required bool VerifiablePasswordAuthentication { get; init; } @@ -1923,7 +1923,7 @@ public record ApiOverview /// /// Custom repository roles created by organization administrators /// -public record OrganizationCustomRepositoryRole +public partial record OrganizationCustomRepositoryRole { /// /// The unique identifier of the custom role. @@ -1942,7 +1942,7 @@ public record OrganizationCustomRepositoryRole /// /// Organization Full /// -public record OrganizationFull +public partial record OrganizationFull { [JsonPropertyName("login")] public required string Login { get; init; } @@ -2093,7 +2093,7 @@ public record OrganizationFull /// /// Validation Error /// -public record ValidationError +public partial record ValidationError { [JsonPropertyName("message")] public required string Message { get; init; } @@ -2109,7 +2109,7 @@ public record ValidationError /// /// Validation Error Simple /// -public record ValidationErrorSimple +public partial record ValidationErrorSimple { [JsonPropertyName("message")] public required string Message { get; init; } @@ -2125,7 +2125,7 @@ public record ValidationErrorSimple /// /// Information about an external group's usage and its members /// -public record ExternalGroup +public partial record ExternalGroup { /// /// The internal ID of the group @@ -2162,7 +2162,7 @@ public record ExternalGroup /// /// A list of external groups available to be connected to a team /// -public record ExternalGroups +public partial record ExternalGroups { /// /// An array of external groups available to be mapped to a team @@ -2172,7 +2172,7 @@ public record ExternalGroups } -public record OrgPreReceiveHook +public partial record OrgPreReceiveHook { [JsonPropertyName("id")] public int? Id { get; init; } @@ -2194,7 +2194,7 @@ public record OrgPreReceiveHook /// /// Groups of organization members that gives permissions on specified repositories. /// -public record TeamFull +public partial record TeamFull { /// /// Unique identifier of the team @@ -2279,7 +2279,7 @@ public record TeamFull /// /// Rate Limit Overview /// -public record RateLimitOverview +public partial record RateLimitOverview { [JsonPropertyName("resources")] public required object Resources { get; init; } @@ -2292,7 +2292,7 @@ public record RateLimitOverview /// /// GitHub Actions cache usage policy for repository. /// -public record ActionsCacheUsagePolicyForRepository +public partial record ActionsCacheUsagePolicyForRepository { /// /// The size limit for the sum of all caches, in gigabytes. @@ -2305,7 +2305,7 @@ public record ActionsCacheUsagePolicyForRepository /// /// An invocation of a workflow /// -public record WorkflowRun +public partial record WorkflowRun { /// /// The ID of the workflow run. @@ -2489,7 +2489,7 @@ public record WorkflowRun /// /// An autolink reference. /// -public record Autolink +public partial record Autolink { [JsonPropertyName("id")] public required int Id { get; init; } @@ -2516,7 +2516,7 @@ public record Autolink /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningRef(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningRef Create(string value) => new(value); } @@ -2528,12 +2528,12 @@ public readonly record struct CodeScanningRef(string Value) : IOpenApiGeneratedT /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisSarifId(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisSarifId(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisSarifId Create(string value) => new(value); } -public record CodeScanningAnalysis +public partial record CodeScanningAnalysis { /// /// The full Git reference, formatted as `refs/heads/<branch name>`, @@ -2622,7 +2622,7 @@ public record CodeScanningAnalysis /// /// Collaborator /// -public record Collaborator +public partial record Collaborator { [JsonPropertyName("login")] public required string Login { get; init; } @@ -2695,7 +2695,7 @@ public record Collaborator /// /// Repository Collaborator Permission /// -public record RepositoryCollaboratorPermission +public partial record RepositoryCollaboratorPermission { [JsonPropertyName("permission")] public required string Permission { get; init; } @@ -2719,7 +2719,7 @@ public record DependencyGraphDiff; /// /// Full Repository /// -public record FullRepository +public partial record FullRepository { [JsonPropertyName("id")] public required int Id { get; init; } @@ -3088,7 +3088,7 @@ public record FullRepository /// /// An SSH key granting access to a single repository. /// -public record DeployKey +public partial record DeployKey { [JsonPropertyName("id")] public required int Id { get; init; } @@ -3113,7 +3113,7 @@ public record DeployKey } -public record RepositoryPreReceiveHook +public partial record RepositoryPreReceiveHook { [JsonPropertyName("id")] public int? Id { get; init; } @@ -3132,7 +3132,7 @@ public record RepositoryPreReceiveHook /// /// A release. /// -public record Release +public partial record Release { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -3217,7 +3217,7 @@ public record Release } -public record SecretScanningAlert +public partial record SecretScanningAlert { /// /// The security alert number. @@ -3321,7 +3321,7 @@ public record SecretScanningAlert /// /// Sets the state of the secret scanning alert. You must provide `resolution` when you set the state to `resolved`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertState { [JsonStringEnumMemberName("open")] @@ -3333,7 +3333,7 @@ public enum SecretScanningAlertState /// /// **Required when the `state` is `resolved`.** The reason for resolving the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretScanningAlertResolution { [JsonStringEnumMemberName("false_positive")] @@ -3349,7 +3349,7 @@ public enum SecretScanningAlertResolution /// /// Minimal Repository /// -public record MinimalRepository +public partial record MinimalRepository { [JsonPropertyName("id")] public required int Id { get; init; } @@ -3623,7 +3623,7 @@ public record MinimalRepository } -public record ScimGroupListEnterprise +public partial record ScimGroupListEnterprise { [JsonPropertyName("schemas")] public required IReadOnlyList Schemas { get; init; } @@ -3642,7 +3642,7 @@ public record ScimGroupListEnterprise } -public record ScimEnterpriseGroup +public partial record ScimEnterpriseGroup { [JsonPropertyName("schemas")] public required IReadOnlyList Schemas { get; init; } @@ -3664,7 +3664,7 @@ public record ScimEnterpriseGroup } -public record ScimUserListEnterprise +public partial record ScimUserListEnterprise { [JsonPropertyName("schemas")] public required IReadOnlyList Schemas { get; init; } @@ -3683,7 +3683,7 @@ public record ScimUserListEnterprise } -public record ScimEnterpriseUser +public partial record ScimEnterpriseUser { [JsonPropertyName("schemas")] public required IReadOnlyList Schemas { get; init; } @@ -3714,7 +3714,7 @@ public record ScimEnterpriseUser } -public record ConfigurationStatus +public partial record ConfigurationStatus { [JsonPropertyName("status")] public string? Status { get; init; } @@ -3724,7 +3724,7 @@ public record ConfigurationStatus } -public record MaintenanceStatus +public partial record MaintenanceStatus { [JsonPropertyName("status")] public string? Status { get; init; } @@ -3737,7 +3737,7 @@ public record MaintenanceStatus } -public record EnterpriseSettings +public partial record EnterpriseSettings { [JsonPropertyName("enterprise")] public object? Enterprise { get; init; } @@ -3747,7 +3747,7 @@ public record EnterpriseSettings } -public record SshKey +public partial record SshKey { [JsonPropertyName("key")] public string? Key { get; init; } @@ -3760,7 +3760,7 @@ public record SshKey /// /// Simple User /// -public record NullableSimpleUser +public partial record NullableSimpleUser { [JsonPropertyName("name")] public string? Name { get; init; } @@ -3827,7 +3827,7 @@ public record NullableSimpleUser } -public record NullableScopedInstallation +public partial record NullableScopedInstallation { /// /// The permissions granted to the user-to-server access token. @@ -3864,7 +3864,7 @@ public record NullableScopedInstallation /// /// An enterprise account /// -public record Enterprise +public partial record Enterprise { /// /// A short description of the enterprise. @@ -3916,7 +3916,7 @@ public record Enterprise /// /// Basic Error /// -public record BasicError +public partial record BasicError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -3935,7 +3935,7 @@ public record BasicError /// /// A git repository /// -public record Repository +public partial record Repository { /// /// Unique identifier of the repository @@ -4340,7 +4340,7 @@ public record Repository /// /// License Simple /// -public record NullableLicenseSimple +public partial record NullableLicenseSimple { [JsonPropertyName("key")] public required string Key { get; init; } @@ -4369,7 +4369,7 @@ public record NullableLicenseSimple /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AnnouncementMessage(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AnnouncementMessage(string Value) : IOpenApiGeneratedTypeAlias { public static AnnouncementMessage Create(string value) => new(value); } @@ -4381,7 +4381,7 @@ public readonly record struct AnnouncementMessage(string Value) : IOpenApiGenera /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AnnouncementExpiration(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AnnouncementExpiration(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static AnnouncementExpiration Create(DateTimeOffset? value) => new(value); } @@ -4393,7 +4393,7 @@ public readonly record struct AnnouncementExpiration(DateTimeOffset? Value) : IO /// Type alias for int. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlias { public static AlertNumber Create(int value) => new(value); } @@ -4405,7 +4405,7 @@ public readonly record struct AlertNumber(int Value) : IOpenApiGeneratedTypeAlia /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static AlertCreatedAt Create(DateTimeOffset value) => new(value); } @@ -4417,7 +4417,7 @@ public readonly record struct AlertCreatedAt(DateTimeOffset Value) : IOpenApiGen /// Type alias for DateTimeOffset?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct NullableAlertUpdatedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct NullableAlertUpdatedAt(DateTimeOffset? Value) : IOpenApiGeneratedTypeAlias { public static NullableAlertUpdatedAt Create(DateTimeOffset? value) => new(value); } @@ -4429,7 +4429,7 @@ public readonly record struct NullableAlertUpdatedAt(DateTimeOffset? Value) : IO /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertUrl Create(Uri value) => new(value); } @@ -4441,7 +4441,7 @@ public readonly record struct AlertUrl(Uri Value) : IOpenApiGeneratedTypeAlias [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static AlertHtmlUrl Create(Uri value) => new(value); } @@ -4449,7 +4449,7 @@ public readonly record struct AlertHtmlUrl(Uri Value) : IOpenApiGeneratedTypeAli /// /// Simple Repository /// -public record SimpleRepository +public partial record SimpleRepository { /// /// A unique identifier of the repository. @@ -4732,7 +4732,7 @@ public record SimpleRepository /// /// Groups of organization members that gives permissions on specified repositories. /// -public record NullableTeamSimple +public partial record NullableTeamSimple { /// /// Unique identifier of the team @@ -4796,7 +4796,7 @@ public record NullableTeamSimple /// /// Team Organization /// -public record TeamOrganization +public partial record TeamOrganization { [JsonPropertyName("login")] public required string Login { get; init; } @@ -4944,7 +4944,7 @@ public record TeamOrganization } -public record RateLimit +public partial record RateLimit { [JsonPropertyName("limit")] public required int Limit { get; init; } @@ -4963,7 +4963,7 @@ public record RateLimit /// /// A workflow referenced/reused by the initial caller workflow /// -public record ReferencedWorkflow +public partial record ReferencedWorkflow { [JsonPropertyName("path")] public required string Path { get; init; } @@ -4976,7 +4976,7 @@ public record ReferencedWorkflow } -public record PullRequestMinimal +public partial record PullRequestMinimal { [JsonPropertyName("id")] public required int Id { get; init; } @@ -4998,7 +4998,7 @@ public record PullRequestMinimal /// /// Simple Commit /// -public record NullableSimpleCommit +public partial record NullableSimpleCommit { [JsonPropertyName("id")] public required string Id { get; init; } @@ -5027,7 +5027,7 @@ public record NullableSimpleCommit /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolName(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolName(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolName Create(string value) => new(value); } @@ -5039,7 +5039,7 @@ public readonly record struct CodeScanningAnalysisToolName(string Value) : IOpen /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolGuid(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolGuid(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolGuid Create(string? value) => new(value); } @@ -5051,7 +5051,7 @@ public readonly record struct CodeScanningAnalysisToolGuid(string? Value) : IOpe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCommitSha(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCommitSha(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCommitSha Create(string value) => new(value); } @@ -5063,7 +5063,7 @@ public readonly record struct CodeScanningAnalysisCommitSha(string Value) : IOpe /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisAnalysisKey(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisAnalysisKey(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisAnalysisKey Create(string value) => new(value); } @@ -5075,7 +5075,7 @@ public readonly record struct CodeScanningAnalysisAnalysisKey(string Value) : IO /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisEnvironment(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisEnvironment(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisEnvironment Create(string value) => new(value); } @@ -5087,7 +5087,7 @@ public readonly record struct CodeScanningAnalysisEnvironment(string Value) : IO /// Type alias for string. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCategory(string Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCategory(string Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCategory Create(string value) => new(value); } @@ -5099,7 +5099,7 @@ public readonly record struct CodeScanningAnalysisCategory(string Value) : IOpen /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisCreatedAt Create(DateTimeOffset value) => new(value); } @@ -5111,12 +5111,12 @@ public readonly record struct CodeScanningAnalysisCreatedAt(DateTimeOffset Value /// Type alias for Uri. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisUrl(Uri Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisUrl(Uri Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisUrl Create(Uri value) => new(value); } -public record CodeScanningAnalysisTool +public partial record CodeScanningAnalysisTool { /// /// The name of the tool used to generate the code scanning analysis. @@ -5145,7 +5145,7 @@ public record CodeScanningAnalysisTool /// Type alias for string?. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct CodeScanningAnalysisToolVersion(string? Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct CodeScanningAnalysisToolVersion(string? Value) : IOpenApiGeneratedTypeAlias { public static CodeScanningAnalysisToolVersion Create(string? value) => new(value); } @@ -5153,7 +5153,7 @@ public readonly record struct CodeScanningAnalysisToolVersion(string? Value) : I /// /// Collaborator /// -public record NullableCollaborator +public partial record NullableCollaborator { [JsonPropertyName("login")] public required string Login { get; init; } @@ -5226,7 +5226,7 @@ public record NullableCollaborator /// /// A git repository /// -public record NullableRepository +public partial record NullableRepository { /// /// Unique identifier of the repository @@ -5631,7 +5631,7 @@ public record NullableRepository /// /// Code of Conduct Simple /// -public record CodeOfConductSimple +public partial record CodeOfConductSimple { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -5647,7 +5647,7 @@ public record CodeOfConductSimple } -public record SecurityAndAnalysis +public partial record SecurityAndAnalysis { [JsonPropertyName("advanced_security")] public object? AdvancedSecurity { get; init; } @@ -5663,7 +5663,7 @@ public record SecurityAndAnalysis /// /// Scim Error /// -public record ScimError +public partial record ScimError { [JsonPropertyName("message")] public string? Message { get; init; } @@ -5688,7 +5688,7 @@ public record ScimError /// /// Data related to a release. /// -public record ReleaseAsset +public partial record ReleaseAsset { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -5740,7 +5740,7 @@ public record ReleaseAsset } -public record ReactionRollup +public partial record ReactionRollup { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -5781,7 +5781,7 @@ public record ReactionRollup /// Type alias for DateTimeOffset. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static AlertUpdatedAt Create(DateTimeOffset value) => new(value); } @@ -5789,7 +5789,7 @@ public readonly record struct AlertUpdatedAt(DateTimeOffset Value) : IOpenApiGen /// /// Code Of Conduct /// -public record CodeOfConduct +public partial record CodeOfConduct { [JsonPropertyName("key")] public required string Key { get; init; } diff --git a/examples/OpenApiCodeGenerator.Examples/output/petstore.cs b/examples/OpenApiCodeGenerator.Examples/output/petstore.cs index daf070e..8eda28f 100644 --- a/examples/OpenApiCodeGenerator.Examples/output/petstore.cs +++ b/examples/OpenApiCodeGenerator.Examples/output/petstore.cs @@ -16,7 +16,7 @@ namespace Generated.Petstore; /// /// Order Status /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OrderStatus { [JsonStringEnumMemberName("placed")] @@ -30,7 +30,7 @@ public enum OrderStatus /// /// pet status in the store /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PetStatus { [JsonStringEnumMemberName("available")] @@ -41,7 +41,7 @@ public enum PetStatus Sold } -public record Order +public partial record Order { [JsonPropertyName("id")] public long? Id { get; init; } @@ -66,7 +66,7 @@ public record Order } -public record Category +public partial record Category { [JsonPropertyName("id")] public long? Id { get; init; } @@ -76,7 +76,7 @@ public record Category } -public record User +public partial record User { [JsonPropertyName("id")] public long? Id { get; init; } @@ -107,7 +107,7 @@ public record User } -public record Tag +public partial record Tag { [JsonPropertyName("id")] public long? Id { get; init; } @@ -117,7 +117,7 @@ public record Tag } -public record Pet +public partial record Pet { [JsonPropertyName("id")] public long? Id { get; init; } @@ -142,7 +142,7 @@ public record Pet } -public record ApiResponse +public partial record ApiResponse { [JsonPropertyName("code")] public int? Code { get; init; } diff --git a/examples/OpenApiCodeGenerator.Examples/output/showcase-openapi.cs b/examples/OpenApiCodeGenerator.Examples/output/showcase-openapi.cs index 22b3146..151231d 100644 --- a/examples/OpenApiCodeGenerator.Examples/output/showcase-openapi.cs +++ b/examples/OpenApiCodeGenerator.Examples/output/showcase-openapi.cs @@ -117,7 +117,7 @@ public override void Write(Utf8JsonWriter writer, TAlias value, JsonSerializerOp } } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Kind { [JsonStringEnumMemberName("invoice")] @@ -131,7 +131,7 @@ public enum Kind /// /// Simple string enum. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Status { [JsonStringEnumMemberName("pending")] @@ -142,14 +142,14 @@ public enum Status Failed } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CircleShapeType { [JsonStringEnumMemberName("circle")] Circle } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RectangleShapeType { [JsonStringEnumMemberName("rectangle")] @@ -163,7 +163,7 @@ public enum RectangleShapeType /// Type alias for Guid. /// [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct EventId(Guid Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct EventId(Guid Value) : IOpenApiGeneratedTypeAlias { public static EventId Create(Guid value) => new(value); } @@ -175,7 +175,7 @@ public readonly record struct EventId(Guid Value) : IOpenApiGeneratedTypeAlias [JsonConverter(typeof(OpenApiGeneratedTypeAliasJsonConverter))] -public readonly record struct EventTimestamp(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct EventTimestamp(DateTimeOffset Value) : IOpenApiGeneratedTypeAlias { public static EventTimestamp Create(DateTimeOffset value) => new(value); } @@ -187,7 +187,7 @@ public readonly record struct EventTimestamp(DateTimeOffset Value) : IOpenApiGen /// Type alias for Stream. /// [JsonConverter(typeof(OpenApiGeneratedBinaryStreamTypeAliasJsonConverter))] -public readonly record struct BinaryPayload(Stream Value) : IOpenApiGeneratedTypeAlias +public readonly partial record struct BinaryPayload(Stream Value) : IOpenApiGeneratedTypeAlias { public static BinaryPayload Create(Stream value) => new(value); } @@ -195,7 +195,7 @@ public readonly record struct BinaryPayload(Stream Value) : IOpenApiGeneratedTyp /// /// Simple string enum. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeliveryState { [JsonStringEnumMemberName("pending")] @@ -209,7 +209,7 @@ public enum DeliveryState /// /// Demonstrates additionalProperties extension-data support. /// -public record Metadata +public partial record Metadata { [JsonPropertyName("source")] public required string Source { get; init; } @@ -222,7 +222,7 @@ public record Metadata /// /// Demonstrates direct stream handling and inline enums. /// -public record Attachment +public partial record Attachment { [JsonPropertyName("fileName")] public required string FileName { get; init; } @@ -242,7 +242,7 @@ public record Attachment /// /// Base record for allOf inheritance. /// -public record DeliveryBase +public partial record DeliveryBase { /// /// Strongly typed UUID alias. @@ -258,7 +258,7 @@ public record DeliveryBase } -public record DeliveryRecord : DeliveryBase +public partial record DeliveryRecord : DeliveryBase { /// /// Simple string enum. @@ -292,7 +292,7 @@ public record DeliveryRecord : DeliveryBase } -public record Circle +public partial record Circle { [JsonPropertyName("shapeType")] public required CircleShapeType ShapeType { get; init; } @@ -302,7 +302,7 @@ public record Circle } -public record Rectangle +public partial record Rectangle { [JsonPropertyName("shapeType")] public required RectangleShapeType ShapeType { get; init; } @@ -318,16 +318,16 @@ public record Rectangle [JsonDerivedType(typeof(Circle), "circle")] [JsonDerivedType(typeof(Rectangle), "rectangle")] [JsonPolymorphic(TypeDiscriminatorPropertyName = "shapeType")] -public abstract record Shape; +public abstract partial record Shape; -public record EmailContact +public partial record EmailContact { [JsonPropertyName("email")] public required string Email { get; init; } } -public record WebhookContact +public partial record WebhookContact { [JsonPropertyName("url")] public required Uri Url { get; init; } @@ -339,9 +339,9 @@ public record WebhookContact /// [JsonDerivedType(typeof(EmailContact), "EmailContact")] [JsonDerivedType(typeof(WebhookContact), "WebhookContact")] -public abstract record ContactMethod; +public abstract partial record ContactMethod; -public record Notification +public partial record Notification { [JsonPropertyName("record")] public required DeliveryRecord Record { get; init; } diff --git a/examples/OpenApiCodeGenerator.Examples/output/stripe-api.cs b/examples/OpenApiCodeGenerator.Examples/output/stripe-api.cs index 172a0d5..ae876f5 100644 --- a/examples/OpenApiCodeGenerator.Examples/output/stripe-api.cs +++ b/examples/OpenApiCodeGenerator.Examples/output/stripe-api.cs @@ -16,7 +16,7 @@ namespace Generated.StripeApi; /// /// The business type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BusinessType { [JsonStringEnumMemberName("company")] @@ -32,7 +32,7 @@ public enum BusinessType /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountObject { [JsonStringEnumMemberName("account")] @@ -42,7 +42,7 @@ public enum AccountObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountLinkObject { [JsonStringEnumMemberName("account_link")] @@ -52,7 +52,7 @@ public enum AccountLinkObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountSessionObject { [JsonStringEnumMemberName("account_session")] @@ -62,7 +62,7 @@ public enum AccountSessionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ApplePayDomainObject { [JsonStringEnumMemberName("apple_pay_domain")] @@ -72,7 +72,7 @@ public enum ApplePayDomainObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ApplicationObject { [JsonStringEnumMemberName("application")] @@ -82,7 +82,7 @@ public enum ApplicationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ApplicationFeeObject { [JsonStringEnumMemberName("application_fee")] @@ -92,7 +92,7 @@ public enum ApplicationFeeObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AppsSecretObject { [JsonStringEnumMemberName("apps.secret")] @@ -102,7 +102,7 @@ public enum AppsSecretObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceObject { [JsonStringEnumMemberName("balance")] @@ -112,7 +112,7 @@ public enum BalanceObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceSettingsObject { [JsonStringEnumMemberName("balance_settings")] @@ -122,7 +122,7 @@ public enum BalanceSettingsObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceTransactionObject { [JsonStringEnumMemberName("balance_transaction")] @@ -132,7 +132,7 @@ public enum BalanceTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BankAccountObject { [JsonStringEnumMemberName("bank_account")] @@ -142,7 +142,7 @@ public enum BankAccountObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingAlertObject { [JsonStringEnumMemberName("billing.alert")] @@ -152,7 +152,7 @@ public enum BillingAlertObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditBalanceSummaryObject { [JsonStringEnumMemberName("billing.credit_balance_summary")] @@ -162,7 +162,7 @@ public enum BillingCreditBalanceSummaryObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditBalanceTransactionObject { [JsonStringEnumMemberName("billing.credit_balance_transaction")] @@ -172,7 +172,7 @@ public enum BillingCreditBalanceTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditGrantObject { [JsonStringEnumMemberName("billing.credit_grant")] @@ -182,7 +182,7 @@ public enum BillingCreditGrantObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterObject { [JsonStringEnumMemberName("billing.meter")] @@ -192,7 +192,7 @@ public enum BillingMeterObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterEventObject { [JsonStringEnumMemberName("billing.meter_event")] @@ -202,7 +202,7 @@ public enum BillingMeterEventObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterEventAdjustmentObject { [JsonStringEnumMemberName("billing.meter_event_adjustment")] @@ -212,7 +212,7 @@ public enum BillingMeterEventAdjustmentObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterEventSummaryObject { [JsonStringEnumMemberName("billing.meter_event_summary")] @@ -222,7 +222,7 @@ public enum BillingMeterEventSummaryObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingPortalConfigurationObject { [JsonStringEnumMemberName("billing_portal.configuration")] @@ -232,7 +232,7 @@ public enum BillingPortalConfigurationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingPortalSessionObject { [JsonStringEnumMemberName("billing_portal.session")] @@ -242,7 +242,7 @@ public enum BillingPortalSessionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CapabilityObject { [JsonStringEnumMemberName("capability")] @@ -252,7 +252,7 @@ public enum CapabilityObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CardObject { [JsonStringEnumMemberName("card")] @@ -262,7 +262,7 @@ public enum CardObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CashBalanceObject { [JsonStringEnumMemberName("cash_balance")] @@ -272,7 +272,7 @@ public enum CashBalanceObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ChargeObject { [JsonStringEnumMemberName("charge")] @@ -282,7 +282,7 @@ public enum ChargeObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutSessionObject { [JsonStringEnumMemberName("checkout.session")] @@ -292,7 +292,7 @@ public enum CheckoutSessionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClimateOrderObject { [JsonStringEnumMemberName("climate.order")] @@ -302,7 +302,7 @@ public enum ClimateOrderObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClimateProductObject { [JsonStringEnumMemberName("climate.product")] @@ -312,7 +312,7 @@ public enum ClimateProductObject /// /// String representing the object’s type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClimateSupplierObject { [JsonStringEnumMemberName("climate.supplier")] @@ -322,7 +322,7 @@ public enum ClimateSupplierObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ConfirmationTokenObject { [JsonStringEnumMemberName("confirmation_token")] @@ -332,7 +332,7 @@ public enum ConfirmationTokenObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ConnectCollectionTransferObject { [JsonStringEnumMemberName("connect_collection_transfer")] @@ -342,7 +342,7 @@ public enum ConnectCollectionTransferObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CountrySpecObject { [JsonStringEnumMemberName("country_spec")] @@ -352,7 +352,7 @@ public enum CountrySpecObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CouponObject { [JsonStringEnumMemberName("coupon")] @@ -362,7 +362,7 @@ public enum CouponObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNoteObject { [JsonStringEnumMemberName("credit_note")] @@ -372,7 +372,7 @@ public enum CreditNoteObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNoteLineItemObject { [JsonStringEnumMemberName("credit_note_line_item")] @@ -382,7 +382,7 @@ public enum CreditNoteLineItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerObject { [JsonStringEnumMemberName("customer")] @@ -392,7 +392,7 @@ public enum CustomerObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerBalanceTransactionObject { [JsonStringEnumMemberName("customer_balance_transaction")] @@ -402,7 +402,7 @@ public enum CustomerBalanceTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerCashBalanceTransactionObject { [JsonStringEnumMemberName("customer_cash_balance_transaction")] @@ -412,7 +412,7 @@ public enum CustomerCashBalanceTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerSessionObject { [JsonStringEnumMemberName("customer_session")] @@ -422,7 +422,7 @@ public enum CustomerSessionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedDiscountObject { [JsonStringEnumMemberName("discount")] @@ -432,7 +432,7 @@ public enum DeletedDiscountObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedInvoiceObject { [JsonStringEnumMemberName("invoice")] @@ -442,7 +442,7 @@ public enum DeletedInvoiceObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedInvoiceitemObject { [JsonStringEnumMemberName("invoiceitem")] @@ -452,7 +452,7 @@ public enum DeletedInvoiceitemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedPersonObject { [JsonStringEnumMemberName("person")] @@ -462,7 +462,7 @@ public enum DeletedPersonObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedPlanObject { [JsonStringEnumMemberName("plan")] @@ -472,7 +472,7 @@ public enum DeletedPlanObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedPriceObject { [JsonStringEnumMemberName("price")] @@ -482,7 +482,7 @@ public enum DeletedPriceObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedProductObject { [JsonStringEnumMemberName("product")] @@ -492,7 +492,7 @@ public enum DeletedProductObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedProductFeatureObject { [JsonStringEnumMemberName("product_feature")] @@ -502,7 +502,7 @@ public enum DeletedProductFeatureObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedRadarValueListObject { [JsonStringEnumMemberName("radar.value_list")] @@ -512,7 +512,7 @@ public enum DeletedRadarValueListObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedRadarValueListItemObject { [JsonStringEnumMemberName("radar.value_list_item")] @@ -522,7 +522,7 @@ public enum DeletedRadarValueListItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedSubscriptionItemObject { [JsonStringEnumMemberName("subscription_item")] @@ -532,7 +532,7 @@ public enum DeletedSubscriptionItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedTaxIdObject { [JsonStringEnumMemberName("tax_id")] @@ -542,7 +542,7 @@ public enum DeletedTaxIdObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedTerminalConfigurationObject { [JsonStringEnumMemberName("terminal.configuration")] @@ -552,7 +552,7 @@ public enum DeletedTerminalConfigurationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedTerminalLocationObject { [JsonStringEnumMemberName("terminal.location")] @@ -562,7 +562,7 @@ public enum DeletedTerminalLocationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedTerminalReaderObject { [JsonStringEnumMemberName("terminal.reader")] @@ -572,7 +572,7 @@ public enum DeletedTerminalReaderObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedTestHelpersTestClockObject { [JsonStringEnumMemberName("test_helpers.test_clock")] @@ -582,7 +582,7 @@ public enum DeletedTestHelpersTestClockObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeletedWebhookEndpointObject { [JsonStringEnumMemberName("webhook_endpoint")] @@ -592,7 +592,7 @@ public enum DeletedWebhookEndpointObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DisputeObject { [JsonStringEnumMemberName("dispute")] @@ -602,7 +602,7 @@ public enum DisputeObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EntitlementsActiveEntitlementObject { [JsonStringEnumMemberName("entitlements.active_entitlement")] @@ -612,7 +612,7 @@ public enum EntitlementsActiveEntitlementObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EntitlementsFeatureObject { [JsonStringEnumMemberName("entitlements.feature")] @@ -622,7 +622,7 @@ public enum EntitlementsFeatureObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EphemeralKeyObject { [JsonStringEnumMemberName("ephemeral_key")] @@ -632,7 +632,7 @@ public enum EphemeralKeyObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EventObject { [JsonStringEnumMemberName("event")] @@ -642,7 +642,7 @@ public enum EventObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ExchangeRateObject { [JsonStringEnumMemberName("exchange_rate")] @@ -652,7 +652,7 @@ public enum ExchangeRateObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FeeRefundObject { [JsonStringEnumMemberName("fee_refund")] @@ -662,7 +662,7 @@ public enum FeeRefundObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FileObject { [JsonStringEnumMemberName("file")] @@ -672,7 +672,7 @@ public enum FileObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FileLinkObject { [JsonStringEnumMemberName("file_link")] @@ -682,7 +682,7 @@ public enum FileLinkObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsAccountObject { [JsonStringEnumMemberName("financial_connections.account")] @@ -692,7 +692,7 @@ public enum FinancialConnectionsAccountObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsAccountOwnerObject { [JsonStringEnumMemberName("financial_connections.account_owner")] @@ -702,7 +702,7 @@ public enum FinancialConnectionsAccountOwnerObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsAccountOwnershipObject { [JsonStringEnumMemberName("financial_connections.account_ownership")] @@ -712,7 +712,7 @@ public enum FinancialConnectionsAccountOwnershipObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsSessionObject { [JsonStringEnumMemberName("financial_connections.session")] @@ -722,7 +722,7 @@ public enum FinancialConnectionsSessionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsTransactionObject { [JsonStringEnumMemberName("financial_connections.transaction")] @@ -732,7 +732,7 @@ public enum FinancialConnectionsTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ForwardingRequestObject { [JsonStringEnumMemberName("forwarding.request")] @@ -742,7 +742,7 @@ public enum ForwardingRequestObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FundingInstructionsObject { [JsonStringEnumMemberName("funding_instructions")] @@ -752,7 +752,7 @@ public enum FundingInstructionsObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdentityVerificationReportObject { [JsonStringEnumMemberName("identity.verification_report")] @@ -762,7 +762,7 @@ public enum IdentityVerificationReportObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdentityVerificationSessionObject { [JsonStringEnumMemberName("identity.verification_session")] @@ -772,7 +772,7 @@ public enum IdentityVerificationSessionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoicePaymentObject { [JsonStringEnumMemberName("invoice_payment")] @@ -782,7 +782,7 @@ public enum InvoicePaymentObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoiceRenderingTemplateObject { [JsonStringEnumMemberName("invoice_rendering_template")] @@ -792,7 +792,7 @@ public enum InvoiceRenderingTemplateObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationObject { [JsonStringEnumMemberName("issuing.authorization")] @@ -802,7 +802,7 @@ public enum IssuingAuthorizationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardObject { [JsonStringEnumMemberName("issuing.card")] @@ -812,7 +812,7 @@ public enum IssuingCardObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardholderObject { [JsonStringEnumMemberName("issuing.cardholder")] @@ -822,7 +822,7 @@ public enum IssuingCardholderObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingDisputeObject { [JsonStringEnumMemberName("issuing.dispute")] @@ -832,7 +832,7 @@ public enum IssuingDisputeObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingPersonalizationDesignObject { [JsonStringEnumMemberName("issuing.personalization_design")] @@ -842,7 +842,7 @@ public enum IssuingPersonalizationDesignObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingPhysicalBundleObject { [JsonStringEnumMemberName("issuing.physical_bundle")] @@ -852,7 +852,7 @@ public enum IssuingPhysicalBundleObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingSettlementObject { [JsonStringEnumMemberName("issuing.settlement")] @@ -862,7 +862,7 @@ public enum IssuingSettlementObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingTokenObject { [JsonStringEnumMemberName("issuing.token")] @@ -872,7 +872,7 @@ public enum IssuingTokenObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingTransactionObject { [JsonStringEnumMemberName("issuing.transaction")] @@ -882,7 +882,7 @@ public enum IssuingTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ItemObject { [JsonStringEnumMemberName("item")] @@ -892,7 +892,7 @@ public enum ItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum LineItemObject { [JsonStringEnumMemberName("line_item")] @@ -902,7 +902,7 @@ public enum LineItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum LoginLinkObject { [JsonStringEnumMemberName("login_link")] @@ -912,7 +912,7 @@ public enum LoginLinkObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MandateObject { [JsonStringEnumMemberName("mandate")] @@ -922,7 +922,7 @@ public enum MandateObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentAttemptRecordObject { [JsonStringEnumMemberName("payment_attempt_record")] @@ -932,7 +932,7 @@ public enum PaymentAttemptRecordObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentIntentObject { [JsonStringEnumMemberName("payment_intent")] @@ -942,7 +942,7 @@ public enum PaymentIntentObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentIntentAmountDetailsLineItemObject { [JsonStringEnumMemberName("payment_intent_amount_details_line_item")] @@ -952,7 +952,7 @@ public enum PaymentIntentAmountDetailsLineItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentLinkObject { [JsonStringEnumMemberName("payment_link")] @@ -962,7 +962,7 @@ public enum PaymentLinkObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodObject { [JsonStringEnumMemberName("payment_method")] @@ -972,7 +972,7 @@ public enum PaymentMethodObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodConfigurationObject { [JsonStringEnumMemberName("payment_method_configuration")] @@ -982,7 +982,7 @@ public enum PaymentMethodConfigurationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDomainObject { [JsonStringEnumMemberName("payment_method_domain")] @@ -992,7 +992,7 @@ public enum PaymentMethodDomainObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentRecordObject { [JsonStringEnumMemberName("payment_record")] @@ -1002,7 +1002,7 @@ public enum PaymentRecordObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PayoutObject { [JsonStringEnumMemberName("payout")] @@ -1012,7 +1012,7 @@ public enum PayoutObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PromotionCodeObject { [JsonStringEnumMemberName("promotion_code")] @@ -1022,7 +1022,7 @@ public enum PromotionCodeObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum QuoteObject { [JsonStringEnumMemberName("quote")] @@ -1032,7 +1032,7 @@ public enum QuoteObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RadarEarlyFraudWarningObject { [JsonStringEnumMemberName("radar.early_fraud_warning")] @@ -1042,7 +1042,7 @@ public enum RadarEarlyFraudWarningObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RadarPaymentEvaluationObject { [JsonStringEnumMemberName("radar.payment_evaluation")] @@ -1052,7 +1052,7 @@ public enum RadarPaymentEvaluationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RefundObject { [JsonStringEnumMemberName("refund")] @@ -1062,7 +1062,7 @@ public enum RefundObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReportingReportRunObject { [JsonStringEnumMemberName("reporting.report_run")] @@ -1072,7 +1072,7 @@ public enum ReportingReportRunObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReportingReportTypeObject { [JsonStringEnumMemberName("reporting.report_type")] @@ -1082,7 +1082,7 @@ public enum ReportingReportTypeObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReserveTransactionObject { [JsonStringEnumMemberName("reserve_transaction")] @@ -1092,7 +1092,7 @@ public enum ReserveTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReviewObject { [JsonStringEnumMemberName("review")] @@ -1102,7 +1102,7 @@ public enum ReviewObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ScheduledQueryRunObject { [JsonStringEnumMemberName("scheduled_query_run")] @@ -1112,7 +1112,7 @@ public enum ScheduledQueryRunObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SetupAttemptObject { [JsonStringEnumMemberName("setup_attempt")] @@ -1122,7 +1122,7 @@ public enum SetupAttemptObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SetupIntentObject { [JsonStringEnumMemberName("setup_intent")] @@ -1132,7 +1132,7 @@ public enum SetupIntentObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ShippingRateObject { [JsonStringEnumMemberName("shipping_rate")] @@ -1142,7 +1142,7 @@ public enum ShippingRateObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SigmaSigmaApiQueryObject { [JsonStringEnumMemberName("sigma.sigma_api_query")] @@ -1152,7 +1152,7 @@ public enum SigmaSigmaApiQueryObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SourceObject { [JsonStringEnumMemberName("source")] @@ -1162,7 +1162,7 @@ public enum SourceObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SourceMandateNotificationObject { [JsonStringEnumMemberName("source_mandate_notification")] @@ -1172,7 +1172,7 @@ public enum SourceMandateNotificationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SourceTransactionObject { [JsonStringEnumMemberName("source_transaction")] @@ -1182,7 +1182,7 @@ public enum SourceTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionObject { [JsonStringEnumMemberName("subscription")] @@ -1192,7 +1192,7 @@ public enum SubscriptionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionScheduleObject { [JsonStringEnumMemberName("subscription_schedule")] @@ -1202,7 +1202,7 @@ public enum SubscriptionScheduleObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxAssociationObject { [JsonStringEnumMemberName("tax.association")] @@ -1212,7 +1212,7 @@ public enum TaxAssociationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxCalculationObject { [JsonStringEnumMemberName("tax.calculation")] @@ -1222,7 +1222,7 @@ public enum TaxCalculationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxCalculationLineItemObject { [JsonStringEnumMemberName("tax.calculation_line_item")] @@ -1232,7 +1232,7 @@ public enum TaxCalculationLineItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxRegistrationObject { [JsonStringEnumMemberName("tax.registration")] @@ -1242,7 +1242,7 @@ public enum TaxRegistrationObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxSettingsObject { [JsonStringEnumMemberName("tax.settings")] @@ -1252,7 +1252,7 @@ public enum TaxSettingsObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxTransactionObject { [JsonStringEnumMemberName("tax.transaction")] @@ -1262,7 +1262,7 @@ public enum TaxTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxTransactionLineItemObject { [JsonStringEnumMemberName("tax.transaction_line_item")] @@ -1272,7 +1272,7 @@ public enum TaxTransactionLineItemObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxCodeObject { [JsonStringEnumMemberName("tax_code")] @@ -1282,7 +1282,7 @@ public enum TaxCodeObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxDeductedAtSourceObject { [JsonStringEnumMemberName("tax_deducted_at_source")] @@ -1292,7 +1292,7 @@ public enum TaxDeductedAtSourceObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxRateObject { [JsonStringEnumMemberName("tax_rate")] @@ -1302,14 +1302,14 @@ public enum TaxRateObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalConnectionTokenObject { [JsonStringEnumMemberName("terminal.connection_token")] TerminalConnectionToken } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalOnboardingLinkObject { [JsonStringEnumMemberName("terminal.onboarding_link")] @@ -1319,7 +1319,7 @@ public enum TerminalOnboardingLinkObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TokenObject { [JsonStringEnumMemberName("token")] @@ -1329,7 +1329,7 @@ public enum TokenObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TopupObject { [JsonStringEnumMemberName("topup")] @@ -1339,7 +1339,7 @@ public enum TopupObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TransferObject { [JsonStringEnumMemberName("transfer")] @@ -1349,7 +1349,7 @@ public enum TransferObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TransferReversalObject { [JsonStringEnumMemberName("transfer_reversal")] @@ -1359,7 +1359,7 @@ public enum TransferReversalObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryCreditReversalObject { [JsonStringEnumMemberName("treasury.credit_reversal")] @@ -1369,7 +1369,7 @@ public enum TreasuryCreditReversalObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryDebitReversalObject { [JsonStringEnumMemberName("treasury.debit_reversal")] @@ -1379,7 +1379,7 @@ public enum TreasuryDebitReversalObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryFinancialAccountObject { [JsonStringEnumMemberName("treasury.financial_account")] @@ -1389,7 +1389,7 @@ public enum TreasuryFinancialAccountObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryFinancialAccountFeaturesObject { [JsonStringEnumMemberName("treasury.financial_account_features")] @@ -1399,7 +1399,7 @@ public enum TreasuryFinancialAccountFeaturesObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryInboundTransferObject { [JsonStringEnumMemberName("treasury.inbound_transfer")] @@ -1409,7 +1409,7 @@ public enum TreasuryInboundTransferObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryOutboundPaymentObject { [JsonStringEnumMemberName("treasury.outbound_payment")] @@ -1419,7 +1419,7 @@ public enum TreasuryOutboundPaymentObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryOutboundTransferObject { [JsonStringEnumMemberName("treasury.outbound_transfer")] @@ -1429,7 +1429,7 @@ public enum TreasuryOutboundTransferObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryReceivedCreditObject { [JsonStringEnumMemberName("treasury.received_credit")] @@ -1439,7 +1439,7 @@ public enum TreasuryReceivedCreditObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryReceivedDebitObject { [JsonStringEnumMemberName("treasury.received_debit")] @@ -1449,7 +1449,7 @@ public enum TreasuryReceivedDebitObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryTransactionObject { [JsonStringEnumMemberName("treasury.transaction")] @@ -1459,7 +1459,7 @@ public enum TreasuryTransactionObject /// /// String representing the object's type. Objects of the same type share the same value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryTransactionEntryObject { [JsonStringEnumMemberName("treasury.transaction_entry")] @@ -1469,7 +1469,7 @@ public enum TreasuryTransactionEntryObject /// /// The Stripe account type. Can be `standard`, `express`, `custom`, or `none`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountType { [JsonStringEnumMemberName("custom")] @@ -1485,7 +1485,7 @@ public enum AccountType /// /// The controller type. Can be `application`, if a Connect application controls the account, or `account`, if the account controls itself. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountUnificationAccountControllerType { [JsonStringEnumMemberName("account")] @@ -1497,7 +1497,7 @@ public enum AccountUnificationAccountControllerType /// /// A value indicating the Stripe dashboard this account has access to independent of the Connect application. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountUnificationAccountControllerStripeDashboardType { [JsonStringEnumMemberName("express")] @@ -1511,7 +1511,7 @@ public enum AccountUnificationAccountControllerStripeDashboardType /// /// funding type of the underlying payment method. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AmazonPayUnderlyingPaymentMethodFundingDetailsType { [JsonStringEnumMemberName("card")] @@ -1521,7 +1521,7 @@ public enum AmazonPayUnderlyingPaymentMethodFundingDetailsType /// /// The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ApiErrorsType { [JsonStringEnumMemberName("api_error")] @@ -1537,7 +1537,7 @@ public enum ApiErrorsType /// /// The type of automatic transfer rule. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceSettingsResourceAutomaticTransferRuleType { [JsonStringEnumMemberName("transfer_all")] @@ -1547,9 +1547,9 @@ public enum BalanceSettingsResourceAutomaticTransferRuleType } /// -/// Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. +/// Transaction type: `tax_fund`, `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `inbound_transfer`, `inbound_transfer_reversal`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `reserve_hold`, `reserve_release`, `stripe_fee`, `stripe_fx_fee`, `stripe_balance_payment_debit`, `stripe_balance_payment_debit_reversal`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, `transfer_refund`, or `fee_credit_funding`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceTransactionType { [JsonStringEnumMemberName("adjustment")] @@ -1638,6 +1638,8 @@ public enum BalanceTransactionType StripeFxFee, [JsonStringEnumMemberName("tax_fee")] TaxFee, + [JsonStringEnumMemberName("tax_fund")] + TaxFund, [JsonStringEnumMemberName("topup")] Topup, [JsonStringEnumMemberName("topup_reversal")] @@ -1655,7 +1657,7 @@ public enum BalanceTransactionType /// /// Type of account holder that this account belongs to. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BankConnectionsResourceAccountholderType { [JsonStringEnumMemberName("account")] @@ -1667,7 +1669,7 @@ public enum BankConnectionsResourceAccountholderType /// /// The `type` of the balance. An additional hash is included on the balance with a name matching this value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BankConnectionsResourceBalanceType { [JsonStringEnumMemberName("cash")] @@ -1679,7 +1681,7 @@ public enum BankConnectionsResourceBalanceType /// /// The type of credit balance transaction (credit or debit). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditBalanceTransactionType { [JsonStringEnumMemberName("credit")] @@ -1691,7 +1693,7 @@ public enum BillingCreditBalanceTransactionType /// /// Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterEventAdjustmentType { [JsonStringEnumMemberName("cancel")] @@ -1701,7 +1703,7 @@ public enum BillingMeterEventAdjustmentType /// /// The type of parent that generated this invoice item /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingBillResourceInvoiceItemParentsInvoiceItemParentType { [JsonStringEnumMemberName("subscription_details")] @@ -1711,7 +1713,7 @@ public enum BillingBillResourceInvoiceItemParentsInvoiceItemParentType /// /// The type of parent that generated this line item /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentType { [JsonStringEnumMemberName("invoice_item_details")] @@ -1723,7 +1725,7 @@ public enum BillingBillResourceInvoicingLinesParentsInvoiceLineItemParentType /// /// The type of parent that generated this invoice /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingBillResourceInvoicingParentsInvoiceParentType { [JsonStringEnumMemberName("quote_details")] @@ -1735,7 +1737,7 @@ public enum BillingBillResourceInvoicingParentsInvoiceParentType /// /// The type of the pricing details. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingBillResourceInvoicingPricingPricingType { [JsonStringEnumMemberName("price_details")] @@ -1745,7 +1747,7 @@ public enum BillingBillResourceInvoicingPricingPricingType /// /// The type of tax information. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingBillResourceInvoicingTaxesTaxType { [JsonStringEnumMemberName("tax_rate_details")] @@ -1755,7 +1757,7 @@ public enum BillingBillResourceInvoicingTaxesTaxType /// /// The type of this amount. We currently only support `monetary` billing credits. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditGrantsResourceAmountType { [JsonStringEnumMemberName("monetary")] @@ -1765,7 +1767,7 @@ public enum BillingCreditGrantsResourceAmountType /// /// The type of credit transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditGrantsResourceBalanceCreditType { [JsonStringEnumMemberName("credits_application_invoice_voided")] @@ -1777,7 +1779,7 @@ public enum BillingCreditGrantsResourceBalanceCreditType /// /// The type of debit transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditGrantsResourceBalanceDebitType { [JsonStringEnumMemberName("credits_applied")] @@ -1791,7 +1793,7 @@ public enum BillingCreditGrantsResourceBalanceDebitType /// /// The method for mapping a meter event to a customer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterResourceCustomerMappingSettingsType { [JsonStringEnumMemberName("by_id")] @@ -1801,7 +1803,7 @@ public enum BillingMeterResourceCustomerMappingSettingsType /// /// The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutCustomerBalanceBankTransferPaymentMethodOptionsType { [JsonStringEnumMemberName("eu_bank_transfer")] @@ -1819,7 +1821,7 @@ public enum CheckoutCustomerBalanceBankTransferPaymentMethodOptionsType /// /// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ConfirmationTokensResourcePaymentMethodPreviewType { [JsonStringEnumMemberName("acss_debit")] @@ -1941,7 +1943,7 @@ public enum ConfirmationTokensResourcePaymentMethodPreviewType /// /// Type of the account referenced. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ConnectAccountReferenceType { [JsonStringEnumMemberName("account")] @@ -1953,7 +1955,7 @@ public enum ConnectAccountReferenceType /// /// Type of this credit note, one of `pre_payment` or `post_payment`. A `pre_payment` credit note means it was issued when the invoice was open. A `post_payment` credit note means it was issued when the invoice was paid. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNoteType { [JsonStringEnumMemberName("mixed")] @@ -1967,7 +1969,7 @@ public enum CreditNoteType /// /// The type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. When the type is `invoice_line_item` there is an additional `invoice_line_item` property on the resource the value of which is the id of the credited line item on the invoice. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNoteLineItemType { [JsonStringEnumMemberName("custom_line_item")] @@ -1979,7 +1981,7 @@ public enum CreditNoteLineItemType /// /// Type of the refund, one of `refund` or `payment_record_refund`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNoteRefundType { [JsonStringEnumMemberName("payment_record_refund")] @@ -1991,7 +1993,7 @@ public enum CreditNoteRefundType /// /// Type of the pretax credit amount referenced. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNotesPretaxCreditAmountType { [JsonStringEnumMemberName("credit_balance_transaction")] @@ -2003,7 +2005,7 @@ public enum CreditNotesPretaxCreditAmountType /// /// The mandate includes the type of customer acceptance information, such as: `online` or `offline`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerAcceptanceType { [JsonStringEnumMemberName("offline")] @@ -2015,7 +2017,7 @@ public enum CustomerAcceptanceType /// /// Transaction type: `adjustment`, `applied_to_invoice`, `credit_note`, `initial`, `invoice_overpaid`, `invoice_too_large`, `invoice_too_small`, `unspent_receiver_credit`, `unapplied_from_invoice`, `checkout_session_subscription_payment`, or `checkout_session_subscription_payment_canceled`. See the [Customer Balance page](https://docs.stripe.com/billing/customer/balance#types) to learn more about transaction types. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerBalanceTransactionType { [JsonStringEnumMemberName("adjustment")] @@ -2047,7 +2049,7 @@ public enum CustomerBalanceTransactionType /// /// The type of the cash balance transaction. New types may be added in future. See [Customer Balance](https://docs.stripe.com/payments/customer-balance#types) to learn more about these types. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerCashBalanceTransactionType { [JsonStringEnumMemberName("adjusted_for_overdraft")] @@ -2073,7 +2075,7 @@ public enum CustomerCashBalanceTransactionType /// /// The source type of the discount. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DiscountSourceType { [JsonStringEnumMemberName("coupon")] @@ -2083,7 +2085,7 @@ public enum DiscountSourceType /// /// Payment method type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DisputePaymentMethodDetailsType { [JsonStringEnumMemberName("amazon_pay")] @@ -2099,7 +2101,7 @@ public enum DisputePaymentMethodDetailsType /// /// The bank_transfer type /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FundingInstructionsBankTransferType { [JsonStringEnumMemberName("eu_bank_transfer")] @@ -2111,7 +2113,7 @@ public enum FundingInstructionsBankTransferType /// /// The type of financial address /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FundingInstructionsBankTransferFinancialAddressType { [JsonStringEnumMemberName("aba")] @@ -2131,7 +2133,7 @@ public enum FundingInstructionsBankTransferFinancialAddressType /// /// Type of the document. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoDocumentReportType { [JsonStringEnumMemberName("driving_license")] @@ -2145,7 +2147,7 @@ public enum GelatoDocumentReportType /// /// Type of report. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdentityVerificationReportType { [JsonStringEnumMemberName("document")] @@ -2159,7 +2161,7 @@ public enum IdentityVerificationReportType /// /// The type of the payment method used in the InboundTransfer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InboundTransfersType { [JsonStringEnumMemberName("us_bank_account")] @@ -2169,7 +2171,7 @@ public enum InboundTransfersType /// /// Indicates the type of event attached to the payment evaluation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationEventType { [JsonStringEnumMemberName("dispute_opened")] @@ -2187,7 +2189,7 @@ public enum InsightsResourcesPaymentEvaluationEventType /// /// Indicates the outcome of the payment evaluation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationOutcomeType { [JsonStringEnumMemberName("failed")] @@ -2203,7 +2205,7 @@ public enum InsightsResourcesPaymentEvaluationOutcomeType /// /// Type of user intervention raised. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationUserInterventionRaisedType { [JsonStringEnumMemberName("3ds")] @@ -2217,7 +2219,7 @@ public enum InsightsResourcesPaymentEvaluationUserInterventionRaisedType /// /// Whether the credit references a pending invoice item or one or more invoice line items on an invoice. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoiceItemProrationCreditedItemsType { [JsonStringEnumMemberName("invoice_item")] @@ -2229,7 +2231,7 @@ public enum InvoiceItemProrationCreditedItemsType /// /// Type of payment object associated with this invoice payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoicesPaymentsInvoicePaymentAssociatedPaymentType { [JsonStringEnumMemberName("charge")] @@ -2241,9 +2243,9 @@ public enum InvoicesPaymentsInvoicePaymentAssociatedPaymentType } /// -/// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` +/// The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown` /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoicesResourceInvoiceTaxIdType { [JsonStringEnumMemberName("ad_nrt")] @@ -2352,6 +2354,8 @@ public enum InvoicesResourceInvoiceTaxIdType HrOib, [JsonStringEnumMemberName("hu_tin")] HuTin, + [JsonStringEnumMemberName("ic_nif")] + IcNif, [JsonStringEnumMemberName("id_npwp")] IdNpwp, [JsonStringEnumMemberName("il_vat")] @@ -2485,7 +2489,7 @@ public enum InvoicesResourceInvoiceTaxIdType /// /// The type of the card. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardType { [JsonStringEnumMemberName("physical")] @@ -2497,7 +2501,7 @@ public enum IssuingCardType /// /// One of `individual` or `company`. See [Choose a cardholder type](https://docs.stripe.com/issuing/other/choose-cardholder) for more details. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardholderType { [JsonStringEnumMemberName("company")] @@ -2509,7 +2513,7 @@ public enum IssuingCardholderType /// /// Whether this physical bundle is a standard Stripe offering or custom-made for you. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingPhysicalBundleType { [JsonStringEnumMemberName("custom")] @@ -2521,7 +2525,7 @@ public enum IssuingPhysicalBundleType /// /// The nature of the transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingTransactionType { [JsonStringEnumMemberName("capture")] @@ -2533,7 +2537,7 @@ public enum IssuingTransactionType /// /// The specific exemption claimed for this authorization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationAuthenticationExemptionType { [JsonStringEnumMemberName("low_value_transaction")] @@ -2547,7 +2551,7 @@ public enum IssuingAuthorizationAuthenticationExemptionType /// /// The type of fuel that was purchased. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationFuelDataType { [JsonStringEnumMemberName("diesel")] @@ -2565,7 +2569,7 @@ public enum IssuingAuthorizationFuelDataType /// /// The type of fraud warning that most recently took place on this card. This field updates with every new fraud warning, so the value changes over time. If populated, cancel and reissue the card. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardFraudWarningType { [JsonStringEnumMemberName("card_testing_exposure")] @@ -2581,7 +2585,7 @@ public enum IssuingCardFraudWarningType /// /// Packaging options. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardShippingType { [JsonStringEnumMemberName("bulk")] @@ -2593,7 +2597,7 @@ public enum IssuingCardShippingType /// /// The type of device used for tokenization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingNetworkTokenDeviceType { [JsonStringEnumMemberName("other")] @@ -2607,7 +2611,7 @@ public enum IssuingNetworkTokenDeviceType /// /// The network that the token is associated with. An additional hash is included with a name matching this value, containing tokenization data specific to the card network. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingNetworkTokenNetworkDataType { [JsonStringEnumMemberName("mastercard")] @@ -2619,7 +2623,7 @@ public enum IssuingNetworkTokenNetworkDataType /// /// The type of the mandate. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MandateType { [JsonStringEnumMemberName("multi_use")] @@ -2631,7 +2635,7 @@ public enum MandateType /// /// The type of the payment method used in the OutboundPayment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OutboundPaymentsPaymentMethodDetailsType { [JsonStringEnumMemberName("financial_account")] @@ -2643,7 +2647,7 @@ public enum OutboundPaymentsPaymentMethodDetailsType /// /// The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletType { [JsonStringEnumMemberName("apple_pay")] @@ -2659,7 +2663,7 @@ public enum PaymentFlowsPrivatePaymentMethodsCardPresentCommonWalletType /// /// The specified behavior after the purchase is complete. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentLinksResourceAfterCompletionType { [JsonStringEnumMemberName("hosted_confirmation")] @@ -2671,7 +2675,7 @@ public enum PaymentLinksResourceAfterCompletionType /// /// The type of the field. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentLinksResourceCustomFieldsType { [JsonStringEnumMemberName("dropdown")] @@ -2685,7 +2689,7 @@ public enum PaymentLinksResourceCustomFieldsType /// /// The type of the label. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentLinksResourceCustomFieldsLabelType { [JsonStringEnumMemberName("custom")] @@ -2695,7 +2699,7 @@ public enum PaymentLinksResourceCustomFieldsLabelType /// /// The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodCardWalletType { [JsonStringEnumMemberName("amex_express_checkout")] @@ -2717,7 +2721,7 @@ public enum PaymentMethodCardWalletType /// /// Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsCardInstallmentsPlanType { [JsonStringEnumMemberName("bonus")] @@ -2731,7 +2735,7 @@ public enum PaymentMethodDetailsCardInstallmentsPlanType /// /// The method used to process this payment method offline. Only deferred is allowed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsCardPresentOfflineType { [JsonStringEnumMemberName("deferred")] @@ -2741,7 +2745,7 @@ public enum PaymentMethodDetailsCardPresentOfflineType /// /// The type of image for the icon. Must be one of `file` or `url`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentPagesCheckoutSessionBrandingSettingsIconType { [JsonStringEnumMemberName("file")] @@ -2753,7 +2757,7 @@ public enum PaymentPagesCheckoutSessionBrandingSettingsIconType /// /// Can be `bank_account` or `card`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PayoutType { [JsonStringEnumMemberName("bank_account")] @@ -2765,7 +2769,7 @@ public enum PayoutType /// /// Type of object that created the application fee. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PlatformEarningFeeSourceType { [JsonStringEnumMemberName("charge")] @@ -2777,7 +2781,7 @@ public enum PlatformEarningFeeSourceType /// /// Type of flow that the customer will go through. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PortalFlowsFlowType { [JsonStringEnumMemberName("payment_method_update")] @@ -2793,7 +2797,7 @@ public enum PortalFlowsFlowType /// /// The specified type of behavior after the flow is completed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PortalFlowsFlowAfterCompletionType { [JsonStringEnumMemberName("hosted_confirmation")] @@ -2807,7 +2811,7 @@ public enum PortalFlowsFlowAfterCompletionType /// /// Type of retention strategy that will be used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PortalFlowsRetentionType { [JsonStringEnumMemberName("coupon_offer")] @@ -2817,7 +2821,7 @@ public enum PortalFlowsRetentionType /// /// The type of condition. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PortalResourceScheduleUpdateAtPeriodEndConditionType { [JsonStringEnumMemberName("decreasing_item_amount")] @@ -2829,7 +2833,7 @@ public enum PortalResourceScheduleUpdateAtPeriodEndConditionType /// /// One of `one_time` or `recurring` depending on whether the price is for a one-time purchase or a recurring (subscription) purchase. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PriceType { [JsonStringEnumMemberName("one_time")] @@ -2841,7 +2845,7 @@ public enum PriceType /// /// Controls how prorations and invoices for subscriptions are calculated and orchestrated. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum QuotesResourceSubscriptionDataBillingModeType { [JsonStringEnumMemberName("classic")] @@ -2853,7 +2857,7 @@ public enum QuotesResourceSubscriptionDataBillingModeType /// /// The type of refund. This can be `refund`, `reversal`, or `pending`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RefundDestinationDetailsCardType { [JsonStringEnumMemberName("pending")] @@ -2867,7 +2871,7 @@ public enum RefundDestinationDetailsCardType /// /// The secret scope type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecretServiceResourceScopeType { [JsonStringEnumMemberName("account")] @@ -2879,7 +2883,7 @@ public enum SecretServiceResourceScopeType /// /// The type of the card wallet, one of `apple_pay`, `google_pay`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SetupAttemptPaymentMethodDetailsCardWalletType { [JsonStringEnumMemberName("apple_pay")] @@ -2893,7 +2897,7 @@ public enum SetupAttemptPaymentMethodDetailsCardWalletType /// /// The type of calculation to use on the shipping rate. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ShippingRateType { [JsonStringEnumMemberName("fixed_amount")] @@ -2903,7 +2907,7 @@ public enum ShippingRateType /// /// The `type` of the source. The `type` is a payment method, one of `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `multibanco`, `klarna`, `p24`, `sepa_debit`, `sofort`, `three_d_secure`, or `wechat`. An additional hash is included on the source with a name matching this value. It contains additional information specific to the [payment method](https://docs.stripe.com/sources) used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SourceType { [JsonStringEnumMemberName("ach_credit_transfer")] @@ -2947,7 +2951,7 @@ public enum SourceType /// /// The type of source this transaction is attached to. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SourceTransactionType { [JsonStringEnumMemberName("ach_credit_transfer")] @@ -2987,7 +2991,7 @@ public enum SourceTransactionType /// /// Select how to calculate the end of the invoice item period. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndType { [JsonStringEnumMemberName("min_item_period_end")] @@ -3001,7 +3005,7 @@ public enum SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodEndType /// /// Select how to calculate the start of the invoice item period. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartType { [JsonStringEnumMemberName("max_item_period_start")] @@ -3015,7 +3019,7 @@ public enum SubscriptionSchedulesResourceInvoiceItemPeriodResourcePeriodStartTyp /// /// Controls which subscription items the billing schedule applies to. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionsResourceBillingSchedulesAppliesToType { [JsonStringEnumMemberName("price")] @@ -3025,7 +3029,7 @@ public enum SubscriptionsResourceBillingSchedulesAppliesToType /// /// Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionsResourceBillingSchedulesBillUntilType { [JsonStringEnumMemberName("duration")] @@ -3037,7 +3041,7 @@ public enum SubscriptionsResourceBillingSchedulesBillUntilType /// /// If `reversal`, this transaction reverses an earlier transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxTransactionType { [JsonStringEnumMemberName("reversal")] @@ -3049,7 +3053,7 @@ public enum TaxTransactionType /// /// Type of owner referenced. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxIDsOwnerType { [JsonStringEnumMemberName("account")] @@ -3065,7 +3069,7 @@ public enum TaxIDsOwnerType /// /// Type of registration in Canada. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsCanadaType { [JsonStringEnumMemberName("province_standard")] @@ -3079,7 +3083,7 @@ public enum TaxProductRegistrationsResourceCountryOptionsCanadaType /// /// Type of registration in `country`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsDefaultType { [JsonStringEnumMemberName("standard")] @@ -3089,7 +3093,7 @@ public enum TaxProductRegistrationsResourceCountryOptionsDefaultType /// /// Type of registration in an EU country. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsEuropeType { [JsonStringEnumMemberName("ioss")] @@ -3105,7 +3109,7 @@ public enum TaxProductRegistrationsResourceCountryOptionsEuropeType /// /// Type of registration in `country`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsSimplifiedType { [JsonStringEnumMemberName("simplified")] @@ -3115,13 +3119,17 @@ public enum TaxProductRegistrationsResourceCountryOptionsSimplifiedType /// /// Type of registration in the US. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsUnitedStatesType { [JsonStringEnumMemberName("local_amusement_tax")] LocalAmusementTax, [JsonStringEnumMemberName("local_lease_tax")] LocalLeaseTax, + [JsonStringEnumMemberName("mass_transit_parking_tax")] + MassTransitParkingTax, + [JsonStringEnumMemberName("parking_tax")] + ParkingTax, [JsonStringEnumMemberName("state_communications_tax")] StateCommunicationsTax, [JsonStringEnumMemberName("state_retail_delivery_fee")] @@ -3133,7 +3141,7 @@ public enum TaxProductRegistrationsResourceCountryOptionsUnitedStatesType /// /// The type of the election for the state sales tax registration. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElectionType { [JsonStringEnumMemberName("local_use_tax")] @@ -3147,7 +3155,7 @@ public enum TaxProductRegistrationsResourceCountryOptionsUsStateSalesTaxElection /// /// Security type of the WiFi network. The hash with the corresponding name contains the credentials for this security type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalConfigurationConfigurationResourceWifiConfigType { [JsonStringEnumMemberName("enterprise_eap_peap")] @@ -3161,7 +3169,7 @@ public enum TerminalConfigurationConfigurationResourceWifiConfigType /// /// Type of input being collected. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderReaderResourceInputType { [JsonStringEnumMemberName("email")] @@ -3181,7 +3189,7 @@ public enum TerminalReaderReaderResourceInputType /// /// The type of content to print. Currently supports `image`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderReaderResourcePrintContentType { [JsonStringEnumMemberName("image")] @@ -3191,7 +3199,7 @@ public enum TerminalReaderReaderResourcePrintContentType /// /// Type of action performed by the reader. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderReaderResourceReaderActionType { [JsonStringEnumMemberName("collect_inputs")] @@ -3215,14 +3223,14 @@ public enum TerminalReaderReaderResourceReaderActionType /// /// Type of information to be displayed by the reader. Only `cart` is currently supported. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderReaderResourceSetReaderDisplayActionType { [JsonStringEnumMemberName("cart")] Cart } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ThresholdsResourceUsageAlertFilterType { [JsonStringEnumMemberName("customer")] @@ -3232,7 +3240,7 @@ public enum ThresholdsResourceUsageAlertFilterType /// /// The specific money movement that generated the TransactionEntry. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryTransactionEntryType { [JsonStringEnumMemberName("credit_reversal")] @@ -3280,7 +3288,7 @@ public enum TreasuryTransactionEntryType /// /// The type of financial address /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryFinancialAccountsResourceFinancialAddressType { [JsonStringEnumMemberName("aba")] @@ -3290,7 +3298,7 @@ public enum TreasuryFinancialAccountsResourceFinancialAddressType /// /// The US bank account network used to send funds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetailsType { [JsonStringEnumMemberName("ach")] @@ -3302,7 +3310,7 @@ public enum TreasuryOutboundPaymentsResourceOutboundPaymentResourceTrackingDetai /// /// The type of the source flow that originated the ReceivedCredit. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryReceivedCreditsResourceSourceFlowsDetailsType { [JsonStringEnumMemberName("credit_reversal")] @@ -3320,7 +3328,7 @@ public enum TreasuryReceivedCreditsResourceSourceFlowsDetailsType /// /// Polymorphic type matching the originating money movement's source. This can be an external account, a Stripe balance, or a FinancialAccount. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymentMethodDetailsType { [JsonStringEnumMemberName("balance")] @@ -3338,7 +3346,7 @@ public enum TreasurySharedResourceInitiatingPaymentMethodDetailsInitiatingPaymen /// /// Type of the flow that created the Transaction. Set to the same value as `flow_type`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryTransactionsResourceFlowDetailsType { [JsonStringEnumMemberName("credit_reversal")] @@ -3364,7 +3372,7 @@ public enum TreasuryTransactionsResourceFlowDetailsType /// /// The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AcssDebitPayments { [JsonStringEnumMemberName("active")] @@ -3378,7 +3386,7 @@ public enum AcssDebitPayments /// /// The status of the Affirm capability of the account, or whether the account can directly process Affirm charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AffirmPayments { [JsonStringEnumMemberName("active")] @@ -3392,7 +3400,7 @@ public enum AffirmPayments /// /// The status of the Afterpay Clearpay capability of the account, or whether the account can directly process Afterpay Clearpay charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AfterpayClearpayPayments { [JsonStringEnumMemberName("active")] @@ -3406,7 +3414,7 @@ public enum AfterpayClearpayPayments /// /// The status of the Alma capability of the account, or whether the account can directly process Alma payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AlmaPayments { [JsonStringEnumMemberName("active")] @@ -3420,7 +3428,7 @@ public enum AlmaPayments /// /// The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AmazonPayPayments { [JsonStringEnumMemberName("active")] @@ -3434,7 +3442,7 @@ public enum AmazonPayPayments /// /// The status of the `app_distribution` capability of the account, or whether the platform can distribute apps to other accounts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AppDistribution { [JsonStringEnumMemberName("active")] @@ -3448,7 +3456,7 @@ public enum AppDistribution /// /// The status of the BECS Direct Debit (AU) payments capability of the account, or whether the account can directly process BECS Direct Debit (AU) charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuBecsDebitPayments { [JsonStringEnumMemberName("active")] @@ -3462,7 +3470,7 @@ public enum AuBecsDebitPayments /// /// The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BacsDebitPayments { [JsonStringEnumMemberName("active")] @@ -3476,7 +3484,7 @@ public enum BacsDebitPayments /// /// The status of the Bancontact payments capability of the account, or whether the account can directly process Bancontact charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BancontactPayments { [JsonStringEnumMemberName("active")] @@ -3490,7 +3498,7 @@ public enum BancontactPayments /// /// The status of the customer_balance payments capability of the account, or whether the account can directly process customer_balance charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BankTransferPayments { [JsonStringEnumMemberName("active")] @@ -3504,7 +3512,7 @@ public enum BankTransferPayments /// /// The status of the Billie capability of the account, or whether the account can directly process Billie payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BilliePayments { [JsonStringEnumMemberName("active")] @@ -3518,7 +3526,7 @@ public enum BilliePayments /// /// The status of the Bizum capability of the account, or whether the account can directly process Bizum payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BizumPayments { [JsonStringEnumMemberName("active")] @@ -3532,7 +3540,7 @@ public enum BizumPayments /// /// The status of the blik payments capability of the account, or whether the account can directly process blik charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BlikPayments { [JsonStringEnumMemberName("active")] @@ -3546,7 +3554,7 @@ public enum BlikPayments /// /// The status of the boleto payments capability of the account, or whether the account can directly process boleto charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BoletoPayments { [JsonStringEnumMemberName("active")] @@ -3560,7 +3568,7 @@ public enum BoletoPayments /// /// The status of the card issuing capability of the account, or whether you can use Issuing to distribute funds on cards /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CardIssuing { [JsonStringEnumMemberName("active")] @@ -3574,7 +3582,7 @@ public enum CardIssuing /// /// The status of the card payments capability of the account, or whether the account can directly process credit and debit card charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CardPayments { [JsonStringEnumMemberName("active")] @@ -3588,7 +3596,7 @@ public enum CardPayments /// /// The status of the Cartes Bancaires payments capability of the account, or whether the account can directly process Cartes Bancaires card charges in EUR currency. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CartesBancairesPayments { [JsonStringEnumMemberName("active")] @@ -3602,7 +3610,7 @@ public enum CartesBancairesPayments /// /// The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CashappPayments { [JsonStringEnumMemberName("active")] @@ -3616,7 +3624,7 @@ public enum CashappPayments /// /// The status of the Crypto capability of the account, or whether the account can directly process Crypto payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CryptoPayments { [JsonStringEnumMemberName("active")] @@ -3630,7 +3638,7 @@ public enum CryptoPayments /// /// The status of the EPS payments capability of the account, or whether the account can directly process EPS charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EpsPayments { [JsonStringEnumMemberName("active")] @@ -3644,7 +3652,7 @@ public enum EpsPayments /// /// The status of the FPX payments capability of the account, or whether the account can directly process FPX charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FpxPayments { [JsonStringEnumMemberName("active")] @@ -3658,7 +3666,7 @@ public enum FpxPayments /// /// The status of the GB customer_balance payments (GBP currency) capability of the account, or whether the account can directly process GB customer_balance charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GbBankTransferPayments { [JsonStringEnumMemberName("active")] @@ -3672,7 +3680,7 @@ public enum GbBankTransferPayments /// /// The status of the giropay payments capability of the account, or whether the account can directly process giropay charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GiropayPayments { [JsonStringEnumMemberName("active")] @@ -3686,7 +3694,7 @@ public enum GiropayPayments /// /// The status of the GrabPay payments capability of the account, or whether the account can directly process GrabPay charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GrabpayPayments { [JsonStringEnumMemberName("active")] @@ -3700,7 +3708,7 @@ public enum GrabpayPayments /// /// The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdealPayments { [JsonStringEnumMemberName("active")] @@ -3714,7 +3722,7 @@ public enum IdealPayments /// /// The status of the india_international_payments capability of the account, or whether the account can process international charges (non INR) in India. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IndiaInternationalPayments { [JsonStringEnumMemberName("active")] @@ -3728,7 +3736,7 @@ public enum IndiaInternationalPayments /// /// The status of the JCB payments capability of the account, or whether the account (Japan only) can directly process JCB credit card charges in JPY currency. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum JcbPayments { [JsonStringEnumMemberName("active")] @@ -3742,7 +3750,7 @@ public enum JcbPayments /// /// The status of the Japanese customer_balance payments (JPY currency) capability of the account, or whether the account can directly process Japanese customer_balance charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum JpBankTransferPayments { [JsonStringEnumMemberName("active")] @@ -3756,7 +3764,7 @@ public enum JpBankTransferPayments /// /// The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum KakaoPayPayments { [JsonStringEnumMemberName("active")] @@ -3770,7 +3778,7 @@ public enum KakaoPayPayments /// /// The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum KlarnaPayments { [JsonStringEnumMemberName("active")] @@ -3784,7 +3792,7 @@ public enum KlarnaPayments /// /// The status of the konbini payments capability of the account, or whether the account can directly process konbini charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum KonbiniPayments { [JsonStringEnumMemberName("active")] @@ -3798,7 +3806,7 @@ public enum KonbiniPayments /// /// The status of the KrCard capability of the account, or whether the account can directly process KrCard payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum KrCardPayments { [JsonStringEnumMemberName("active")] @@ -3812,7 +3820,7 @@ public enum KrCardPayments /// /// The status of the legacy payments capability of the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum LegacyPayments { [JsonStringEnumMemberName("active")] @@ -3826,7 +3834,7 @@ public enum LegacyPayments /// /// The status of the link_payments capability of the account, or whether the account can directly process Link charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum LinkPayments { [JsonStringEnumMemberName("active")] @@ -3840,7 +3848,7 @@ public enum LinkPayments /// /// The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MbWayPayments { [JsonStringEnumMemberName("active")] @@ -3854,7 +3862,7 @@ public enum MbWayPayments /// /// The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MobilepayPayments { [JsonStringEnumMemberName("active")] @@ -3868,7 +3876,7 @@ public enum MobilepayPayments /// /// The status of the Multibanco payments capability of the account, or whether the account can directly process Multibanco charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MultibancoPayments { [JsonStringEnumMemberName("active")] @@ -3882,7 +3890,7 @@ public enum MultibancoPayments /// /// The status of the Mexican customer_balance payments (MXN currency) capability of the account, or whether the account can directly process Mexican customer_balance charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MxBankTransferPayments { [JsonStringEnumMemberName("active")] @@ -3896,7 +3904,7 @@ public enum MxBankTransferPayments /// /// The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NaverPayPayments { [JsonStringEnumMemberName("active")] @@ -3910,7 +3918,7 @@ public enum NaverPayPayments /// /// The status of the New Zealand BECS Direct Debit payments capability of the account, or whether the account can directly process New Zealand BECS Direct Debit charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NzBankAccountBecsDebitPayments { [JsonStringEnumMemberName("active")] @@ -3924,7 +3932,7 @@ public enum NzBankAccountBecsDebitPayments /// /// The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OxxoPayments { [JsonStringEnumMemberName("active")] @@ -3938,7 +3946,7 @@ public enum OxxoPayments /// /// The status of the P24 payments capability of the account, or whether the account can directly process P24 charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum P24Payments { [JsonStringEnumMemberName("active")] @@ -3952,7 +3960,7 @@ public enum P24Payments /// /// The status of the pay_by_bank payments capability of the account, or whether the account can directly process pay_by_bank charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PayByBankPayments { [JsonStringEnumMemberName("active")] @@ -3966,7 +3974,7 @@ public enum PayByBankPayments /// /// The status of the Payco capability of the account, or whether the account can directly process Payco payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaycoPayments { [JsonStringEnumMemberName("active")] @@ -3980,7 +3988,7 @@ public enum PaycoPayments /// /// The status of the paynow payments capability of the account, or whether the account can directly process paynow charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaynowPayments { [JsonStringEnumMemberName("active")] @@ -3994,7 +4002,7 @@ public enum PaynowPayments /// /// The status of the PayTo capability of the account, or whether the account can directly process PayTo charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaytoPayments { [JsonStringEnumMemberName("active")] @@ -4008,7 +4016,7 @@ public enum PaytoPayments /// /// The status of the pix payments capability of the account, or whether the account can directly process pix charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PixPayments { [JsonStringEnumMemberName("active")] @@ -4022,7 +4030,7 @@ public enum PixPayments /// /// The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PromptpayPayments { [JsonStringEnumMemberName("active")] @@ -4036,7 +4044,7 @@ public enum PromptpayPayments /// /// The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RevolutPayPayments { [JsonStringEnumMemberName("active")] @@ -4050,7 +4058,7 @@ public enum RevolutPayPayments /// /// The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SamsungPayPayments { [JsonStringEnumMemberName("active")] @@ -4064,7 +4072,7 @@ public enum SamsungPayPayments /// /// The status of the Satispay capability of the account, or whether the account can directly process Satispay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SatispayPayments { [JsonStringEnumMemberName("active")] @@ -4078,7 +4086,7 @@ public enum SatispayPayments /// /// The status of the Scalapay capability of the account, or whether the account can directly process Scalapay payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ScalapayPayments { [JsonStringEnumMemberName("active")] @@ -4092,7 +4100,7 @@ public enum ScalapayPayments /// /// The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SepaBankTransferPayments { [JsonStringEnumMemberName("active")] @@ -4106,7 +4114,7 @@ public enum SepaBankTransferPayments /// /// The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SepaDebitPayments { [JsonStringEnumMemberName("active")] @@ -4120,7 +4128,7 @@ public enum SepaDebitPayments /// /// The status of the Sofort payments capability of the account, or whether the account can directly process Sofort charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SofortPayments { [JsonStringEnumMemberName("active")] @@ -4134,7 +4142,7 @@ public enum SofortPayments /// /// The status of the Sunbit capability of the account, or whether the account can directly process Sunbit payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SunbitPayments { [JsonStringEnumMemberName("active")] @@ -4148,7 +4156,7 @@ public enum SunbitPayments /// /// The status of the Swish capability of the account, or whether the account can directly process Swish payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SwishPayments { [JsonStringEnumMemberName("active")] @@ -4162,7 +4170,7 @@ public enum SwishPayments /// /// The status of the tax reporting 1099-K (US) capability of the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxReportingUs1099K { [JsonStringEnumMemberName("active")] @@ -4176,7 +4184,7 @@ public enum TaxReportingUs1099K /// /// The status of the tax reporting 1099-MISC (US) capability of the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxReportingUs1099Misc { [JsonStringEnumMemberName("active")] @@ -4190,7 +4198,7 @@ public enum TaxReportingUs1099Misc /// /// The status of the transfers capability of the account, or whether your platform can transfer funds to the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Transfers { [JsonStringEnumMemberName("active")] @@ -4204,7 +4212,7 @@ public enum Transfers /// /// The status of the banking capability, or whether the account can have bank accounts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Treasury { [JsonStringEnumMemberName("active")] @@ -4218,7 +4226,7 @@ public enum Treasury /// /// The status of the TWINT capability of the account, or whether the account can directly process TWINT charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TwintPayments { [JsonStringEnumMemberName("active")] @@ -4232,7 +4240,7 @@ public enum TwintPayments /// /// The status of the upi payments capability of the account, or whether the account can directly process upi charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum UpiPayments { [JsonStringEnumMemberName("active")] @@ -4246,7 +4254,7 @@ public enum UpiPayments /// /// The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum UsBankAccountAchPayments { [JsonStringEnumMemberName("active")] @@ -4260,7 +4268,7 @@ public enum UsBankAccountAchPayments /// /// The status of the US customer_balance payments (USD currency) capability of the account, or whether the account can directly process US customer_balance charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum UsBankTransferPayments { [JsonStringEnumMemberName("active")] @@ -4274,7 +4282,7 @@ public enum UsBankTransferPayments /// /// The status of the Zip capability of the account, or whether the account can directly process Zip charges. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ZipPayments { [JsonStringEnumMemberName("active")] @@ -4288,7 +4296,7 @@ public enum ZipPayments /// /// This is typed as an enum for consistency with `requirements.disabled_reason`, but it safe to assume `future_requirements.disabled_reason` is null because fields in `future_requirements` will never disable the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountCapabilityFutureRequirementsDisabledReason { [JsonStringEnumMemberName("other")] @@ -4316,7 +4324,7 @@ public enum AccountCapabilityFutureRequirementsDisabledReason /// /// This is typed as an enum for consistency with `requirements.disabled_reason`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountFutureRequirementsDisabledReason { [JsonStringEnumMemberName("action_required.requested_capabilities")] @@ -4354,7 +4362,7 @@ public enum AccountFutureRequirementsDisabledReason /// /// If Stripe disabled automatic tax, this enum describes why. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AutomaticTaxDisabledReason { [JsonStringEnumMemberName("finalization_requires_location_inputs")] @@ -4366,7 +4374,7 @@ public enum AutomaticTaxDisabledReason /// /// If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardholderRequirementsDisabledReason { [JsonStringEnumMemberName("listed")] @@ -4382,7 +4390,7 @@ public enum IssuingCardholderRequirementsDisabledReason /// /// If Stripe disabled automatic tax, this enum describes why. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SchedulesPhaseAutomaticTaxDisabledReason { [JsonStringEnumMemberName("requires_location_inputs")] @@ -4392,7 +4400,7 @@ public enum SchedulesPhaseAutomaticTaxDisabledReason /// /// Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum HostedPaymentMethodSave { [JsonStringEnumMemberName("always")] @@ -4406,7 +4414,7 @@ public enum HostedPaymentMethodSave /// /// The code for the type of error. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountRequirementsErrorCode { [JsonStringEnumMemberName("external_request")] @@ -4606,7 +4614,7 @@ public enum AccountRequirementsErrorCode /// /// A short machine-readable string giving the reason for the verification failure. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoDocumentReportErrorCode { [JsonStringEnumMemberName("document_expired")] @@ -4620,7 +4628,7 @@ public enum GelatoDocumentReportErrorCode /// /// A short machine-readable string giving the reason for the verification failure. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoEmailReportErrorCode { [JsonStringEnumMemberName("email_unverified_other")] @@ -4632,7 +4640,7 @@ public enum GelatoEmailReportErrorCode /// /// A short machine-readable string giving the reason for the verification failure. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoIdNumberReportErrorCode { [JsonStringEnumMemberName("id_number_insufficient_document_data")] @@ -4646,7 +4654,7 @@ public enum GelatoIdNumberReportErrorCode /// /// A short machine-readable string giving the reason for the verification failure. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoPhoneReportErrorCode { [JsonStringEnumMemberName("phone_unverified_other")] @@ -4658,7 +4666,7 @@ public enum GelatoPhoneReportErrorCode /// /// A short machine-readable string giving the reason for the verification failure. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoSelfieReportErrorCode { [JsonStringEnumMemberName("selfie_document_missing_photo")] @@ -4674,7 +4682,7 @@ public enum GelatoSelfieReportErrorCode /// /// A short machine-readable string giving the reason for the verification or user-session failure. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoSessionLastErrorCode { [JsonStringEnumMemberName("abandoned")] @@ -4720,7 +4728,7 @@ public enum GelatoSessionLastErrorCode /// /// The code of the error that occurred when validating the current amount details. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentFlowsAmountDetailsResourceErrorCode { [JsonStringEnumMemberName("amount_details_amount_mismatch")] @@ -4732,7 +4740,7 @@ public enum PaymentFlowsAmountDetailsResourceErrorCode /// /// Represents the reason why the status is `pending` or `restricted`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode { [JsonStringEnumMemberName("activating")] @@ -4758,7 +4766,7 @@ public enum TreasuryFinancialAccountsResourceTogglesSettingStatusDetailsCode /// /// Reason for the failure. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryInboundTransfersResourceFailureDetailsCode { [JsonStringEnumMemberName("account_closed")] @@ -4792,7 +4800,7 @@ public enum TreasuryInboundTransfersResourceFailureDetailsCode /// /// Reason for the return. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryOutboundPaymentsResourceReturnedStatusCode { [JsonStringEnumMemberName("account_closed")] @@ -4820,7 +4828,7 @@ public enum TreasuryOutboundPaymentsResourceReturnedStatusCode /// /// A value indicating responsibility for collecting requirements on this account. Only returned when the Connect application retrieving the resource controls the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RequirementCollection { [JsonStringEnumMemberName("application")] @@ -4832,7 +4840,7 @@ public enum RequirementCollection /// /// A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Payer { [JsonStringEnumMemberName("account")] @@ -4848,7 +4856,7 @@ public enum Payer /// /// A value indicating who is liable when this account can't pay back negative balances from payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Payments { [JsonStringEnumMemberName("application")] @@ -4860,7 +4868,7 @@ public enum Payments /// /// The status of the most recent automated tax calculation for this invoice. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AutomaticTaxStatus { [JsonStringEnumMemberName("complete")] @@ -4874,7 +4882,7 @@ public enum AutomaticTaxStatus /// /// Whether the funds in this account can be paid out. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceSettingsResourcePayoutsStatus { [JsonStringEnumMemberName("disabled")] @@ -4886,7 +4894,7 @@ public enum BalanceSettingsResourcePayoutsStatus /// /// Whether the account number is currently active and usable for transactions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BankConnectionsResourceAccountNumberDetailsStatus { [JsonStringEnumMemberName("deactivated")] @@ -4898,7 +4906,7 @@ public enum BankConnectionsResourceAccountNumberDetailsStatus /// /// The status of the last refresh attempt. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BankConnectionsResourceBalanceRefreshStatus { [JsonStringEnumMemberName("failed")] @@ -4912,7 +4920,7 @@ public enum BankConnectionsResourceBalanceRefreshStatus /// /// Status of the alert. This can be active, inactive or archived. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingAlertStatus { [JsonStringEnumMemberName("active")] @@ -4926,7 +4934,7 @@ public enum BillingAlertStatus /// /// The meter's status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterStatus { [JsonStringEnumMemberName("active")] @@ -4938,7 +4946,7 @@ public enum BillingMeterStatus /// /// The meter event adjustment's status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingMeterEventAdjustmentStatus { [JsonStringEnumMemberName("complete")] @@ -4950,7 +4958,7 @@ public enum BillingMeterEventAdjustmentStatus /// /// The status of the capability. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CapabilityStatus { [JsonStringEnumMemberName("active")] @@ -4966,7 +4974,7 @@ public enum CapabilityStatus /// /// The status of the Checkout Session, one of `open`, `complete`, or `expired`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutSessionStatus { [JsonStringEnumMemberName("complete")] @@ -4980,7 +4988,7 @@ public enum CheckoutSessionStatus /// /// The current status of this order. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClimateOrderStatus { [JsonStringEnumMemberName("awaiting_funds")] @@ -4998,7 +5006,7 @@ public enum ClimateOrderStatus /// /// Status of this credit note, one of `issued` or `void`. Learn more about [voiding credit notes](https://docs.stripe.com/billing/invoices/credit-notes#voiding). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNoteStatus { [JsonStringEnumMemberName("issued")] @@ -5010,7 +5018,7 @@ public enum CreditNoteStatus /// /// The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, `lost`, or `prevented`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DisputeStatus { [JsonStringEnumMemberName("lost")] @@ -5031,10 +5039,22 @@ public enum DisputeStatus Won } +/// +/// Mastercard compliance eligibility status. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum DisputeEnhancedEligibilityMastercardComplianceStatus +{ + [JsonStringEnumMemberName("fee_acknowledged")] + FeeAcknowledged, + [JsonStringEnumMemberName("requires_fee_acknowledgement")] + RequiresFeeAcknowledgement +} + /// /// Visa Compelling Evidence 3.0 eligibility status. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DisputeEnhancedEligibilityVisaCompellingEvidence3Status { [JsonStringEnumMemberName("not_qualified")] @@ -5045,22 +5065,10 @@ public enum DisputeEnhancedEligibilityVisaCompellingEvidence3Status RequiresAction } -/// -/// Visa compliance eligibility status. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum DisputeEnhancedEligibilityVisaComplianceStatus -{ - [JsonStringEnumMemberName("fee_acknowledged")] - FeeAcknowledged, - [JsonStringEnumMemberName("requires_fee_acknowledgement")] - RequiresFeeAcknowledgement -} - /// /// The status of the link to the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsAccountStatus { [JsonStringEnumMemberName("active")] @@ -5074,7 +5082,7 @@ public enum FinancialConnectionsAccountStatus /// /// The status of the transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsTransactionStatus { [JsonStringEnumMemberName("pending")] @@ -5088,7 +5096,7 @@ public enum FinancialConnectionsTransactionStatus /// /// Status of this `document` check. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum GelatoDocumentReportStatus { [JsonStringEnumMemberName("unverified")] @@ -5100,7 +5108,7 @@ public enum GelatoDocumentReportStatus /// /// Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://docs.stripe.com/identity/how-sessions-work). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdentityVerificationSessionStatus { [JsonStringEnumMemberName("canceled")] @@ -5116,7 +5124,7 @@ public enum IdentityVerificationSessionStatus /// /// The status of the invoice, one of `draft`, `open`, `paid`, `uncollectible`, or `void`. [Learn more](https://docs.stripe.com/billing/invoices/workflow#workflow-overview) /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoiceStatus { [JsonStringEnumMemberName("draft")] @@ -5134,7 +5142,7 @@ public enum InvoiceStatus /// /// The status of the template, one of `active` or `archived`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoiceRenderingTemplateStatus { [JsonStringEnumMemberName("active")] @@ -5146,7 +5154,7 @@ public enum InvoiceRenderingTemplateStatus /// /// The current status of the authorization in its lifecycle. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationStatus { [JsonStringEnumMemberName("closed")] @@ -5162,7 +5170,7 @@ public enum IssuingAuthorizationStatus /// /// Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardStatus { [JsonStringEnumMemberName("active")] @@ -5176,7 +5184,7 @@ public enum IssuingCardStatus /// /// Specifies whether to permit authorizations on this cardholder's cards. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardholderStatus { [JsonStringEnumMemberName("active")] @@ -5190,7 +5198,7 @@ public enum IssuingCardholderStatus /// /// Current status of the dispute. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingDisputeStatus { [JsonStringEnumMemberName("expired")] @@ -5208,7 +5216,7 @@ public enum IssuingDisputeStatus /// /// Whether this personalization design can be used to create cards. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingPersonalizationDesignStatus { [JsonStringEnumMemberName("active")] @@ -5224,7 +5232,7 @@ public enum IssuingPersonalizationDesignStatus /// /// Whether this physical bundle can be used to create cards. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingPhysicalBundleStatus { [JsonStringEnumMemberName("active")] @@ -5238,7 +5246,7 @@ public enum IssuingPhysicalBundleStatus /// /// The usage state of the token. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingTokenStatus { [JsonStringEnumMemberName("active")] @@ -5254,7 +5262,7 @@ public enum IssuingTokenStatus /// /// The status of the fraud challenge. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationFraudChallengeStatus { [JsonStringEnumMemberName("expired")] @@ -5272,7 +5280,7 @@ public enum IssuingAuthorizationFraudChallengeStatus /// /// The delivery status of the card. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardShippingStatus { [JsonStringEnumMemberName("canceled")] @@ -5294,7 +5302,7 @@ public enum IssuingCardShippingStatus /// /// The mandate status indicates whether or not you can use it to initiate a payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MandateStatus { [JsonStringEnumMemberName("active")] @@ -5308,7 +5316,7 @@ public enum MandateStatus /// /// Indicates whether or not the incremental authorization feature is supported. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFeaturesIncrementalAuthorizationIncrementalAuthorizationStatus { [JsonStringEnumMemberName("available")] @@ -5320,7 +5328,7 @@ public enum PaymentFlowsPrivatePaymentMethodsCardDetailsApiResourceEnterpriseFea /// /// Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more about each PaymentIntent [status](https://docs.stripe.com/payments/intents#intent-statuses). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentIntentStatus { [JsonStringEnumMemberName("canceled")] @@ -5342,7 +5350,7 @@ public enum PaymentIntentStatus /// /// Indicates whether the transaction is eligible for PayPal's seller protection. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaypalSellerProtectionStatus { [JsonStringEnumMemberName("eligible")] @@ -5356,7 +5364,7 @@ public enum PaypalSellerProtectionStatus /// /// The status of the quote. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum QuoteStatus { [JsonStringEnumMemberName("accepted")] @@ -5372,7 +5380,7 @@ public enum QuoteStatus /// /// [Status](https://docs.stripe.com/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SetupIntentStatus { [JsonStringEnumMemberName("canceled")] @@ -5402,7 +5410,7 @@ public enum SetupIntentStatus /// /// If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionStatus { [JsonStringEnumMemberName("active")] @@ -5426,7 +5434,7 @@ public enum SubscriptionStatus /// /// The present status of the subscription schedule. Possible values are `not_started`, `active`, `completed`, `released`, and `canceled`. You can read more about the different states in our [behavior guide](https://docs.stripe.com/billing/subscriptions/subscription-schedules). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionScheduleStatus { [JsonStringEnumMemberName("active")] @@ -5444,7 +5452,7 @@ public enum SubscriptionScheduleStatus /// /// The status of the registration. This field is present for convenience and can be deduced from `active_from` and `expires_at`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxRegistrationStatus { [JsonStringEnumMemberName("active")] @@ -5458,7 +5466,7 @@ public enum TaxRegistrationStatus /// /// The status of the Tax `Settings`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxSettingsStatus { [JsonStringEnumMemberName("active")] @@ -5470,7 +5478,7 @@ public enum TaxSettingsStatus /// /// Verification status, one of `pending`, `verified`, `unverified`, or `unavailable`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxIdVerificationStatus { [JsonStringEnumMemberName("pending")] @@ -5486,7 +5494,7 @@ public enum TaxIdVerificationStatus /// /// The networking status of the reader. We do not recommend using this field in flows that may block taking payments. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderStatus { [JsonStringEnumMemberName("offline")] @@ -5498,7 +5506,7 @@ public enum TerminalReaderStatus /// /// Status of the action performed by the reader. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderReaderResourceReaderActionStatus { [JsonStringEnumMemberName("failed")] @@ -5512,7 +5520,7 @@ public enum TerminalReaderReaderResourceReaderActionStatus /// /// The status of the Test Clock. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TestHelpersTestClockStatus { [JsonStringEnumMemberName("advancing")] @@ -5526,7 +5534,7 @@ public enum TestHelpersTestClockStatus /// /// The status of the top-up is either `canceled`, `failed`, `pending`, `reversed`, or `succeeded`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TopupStatus { [JsonStringEnumMemberName("canceled")] @@ -5544,7 +5552,7 @@ public enum TopupStatus /// /// Status of the CreditReversal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryCreditReversalStatus { [JsonStringEnumMemberName("canceled")] @@ -5558,7 +5566,7 @@ public enum TreasuryCreditReversalStatus /// /// Status of the DebitReversal /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryDebitReversalStatus { [JsonStringEnumMemberName("failed")] @@ -5572,7 +5580,7 @@ public enum TreasuryDebitReversalStatus /// /// Status of this FinancialAccount. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryFinancialAccountStatus { [JsonStringEnumMemberName("closed")] @@ -5584,7 +5592,7 @@ public enum TreasuryFinancialAccountStatus /// /// Status of the InboundTransfer: `processing`, `succeeded`, `failed`, and `canceled`. An InboundTransfer is `processing` if it is created and pending. The status changes to `succeeded` once the funds have been "confirmed" and a `transaction` is created and posted. The status changes to `failed` if the transfer fails. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryInboundTransferStatus { [JsonStringEnumMemberName("canceled")] @@ -5600,7 +5608,7 @@ public enum TreasuryInboundTransferStatus /// /// Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`. An OutboundPayment is `processing` if it has been created and is pending. The status changes to `posted` once the OutboundPayment has been "confirmed" and funds have left the account, or to `failed` or `canceled`. If an OutboundPayment fails to arrive at its destination, its status will change to `returned`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryOutboundPaymentStatus { [JsonStringEnumMemberName("canceled")] @@ -5618,7 +5626,7 @@ public enum TreasuryOutboundPaymentStatus /// /// Status of the ReceivedCredit. ReceivedCredits are created either `succeeded` (approved) or `failed` (declined). If a ReceivedCredit is declined, the failure reason can be found in the `failure_code` field. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryReceivedCreditStatus { [JsonStringEnumMemberName("failed")] @@ -5630,7 +5638,7 @@ public enum TreasuryReceivedCreditStatus /// /// Status of the Transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryTransactionStatus { [JsonStringEnumMemberName("open")] @@ -5644,7 +5652,7 @@ public enum TreasuryTransactionStatus /// /// Whether the Feature is operational. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryFinancialAccountsResourceAbaToggleSettingsStatus { [JsonStringEnumMemberName("active")] @@ -5658,19 +5666,21 @@ public enum TreasuryFinancialAccountsResourceAbaToggleSettingsStatus /// /// Indicates whether this object and its related objects have been redacted or not. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum VerificationSessionRedactionStatus { [JsonStringEnumMemberName("processing")] Processing, [JsonStringEnumMemberName("redacted")] - Redacted + Redacted, + [JsonStringEnumMemberName("validated")] + Validated } /// /// How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceSettingsResourcePayoutScheduleInterval { [JsonStringEnumMemberName("daily")] @@ -5686,7 +5696,7 @@ public enum BalanceSettingsResourcePayoutScheduleInterval /// /// Interval (or event) to which the amount applies. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardSpendingLimitInterval { [JsonStringEnumMemberName("all_time")] @@ -5707,7 +5717,7 @@ public enum IssuingCardSpendingLimitInterval /// For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. /// One of `month`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsCardInstallmentsPlanInterval { [JsonStringEnumMemberName("month")] @@ -5717,7 +5727,7 @@ public enum PaymentMethodDetailsCardInstallmentsPlanInterval /// /// Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodOptionsCardMandateOptionsInterval { [JsonStringEnumMemberName("day")] @@ -5735,7 +5745,7 @@ public enum PaymentMethodOptionsCardMandateOptionsInterval /// /// The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PlanInterval { [JsonStringEnumMemberName("day")] @@ -5751,7 +5761,7 @@ public enum PlanInterval /// /// The balance that this transaction impacts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BalanceType { [JsonStringEnumMemberName("issuing")] @@ -5767,7 +5777,7 @@ public enum BalanceType /// /// The type of account number associated with the account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdentifierType { [JsonStringEnumMemberName("account_number")] @@ -5776,10 +5786,102 @@ public enum IdentifierType TokenizedAccountNumber } +/// +/// The action (if any) to proactively relink the Account. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Action +{ + [JsonStringEnumMemberName("none")] + None, + [JsonStringEnumMemberName("relink_required")] + RelinkRequired +} + +/// +/// The underlying cause of the Account becoming inactive. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Cause +{ + [JsonStringEnumMemberName("access_expired")] + AccessExpired, + [JsonStringEnumMemberName("institution_requirement")] + InstitutionRequirement, + [JsonStringEnumMemberName("unspecified")] + Unspecified +} + +/// +/// Whether the Session should require that linked accounts support payments and retrieve account numbers before completion. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum RequirePaymentMethodSupport +{ + [JsonStringEnumMemberName("all")] + All, + [JsonStringEnumMemberName("at_least_one")] + AtLeastOne, + [JsonStringEnumMemberName("none")] + None +} + +/// +/// Controls how manual entry of bank account details is presented to the user. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum BankConnectionsResourceLinkAccountSessionManualEntryMode +{ + [JsonStringEnumMemberName("automatic")] + Automatic, + [JsonStringEnumMemberName("disabled")] + Disabled +} + +/// +/// The mode of the Checkout Session. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum CheckoutSessionMode +{ + [JsonStringEnumMemberName("payment")] + Payment, + [JsonStringEnumMemberName("setup")] + Setup, + [JsonStringEnumMemberName("subscription")] + Subscription +} + +/// +/// The address validation capabilities to use. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum IssuingCardShippingAddressValidationMode +{ + [JsonStringEnumMemberName("disabled")] + Disabled, + [JsonStringEnumMemberName("normalization_only")] + NormalizationOnly, + [JsonStringEnumMemberName("validation_and_normalization")] + ValidationAndNormalization +} + +/// +/// Whether to cancel subscriptions immediately or at the end of the billing period. +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum PortalSubscriptionCancelMode +{ + [JsonStringEnumMemberName("at_period_end")] + AtPeriodEnd, + [JsonStringEnumMemberName("immediately")] + Immediately +} + /// /// Defines the type of the alert. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AlertType { [JsonStringEnumMemberName("usage_threshold")] @@ -5789,7 +5891,7 @@ public enum AlertType /// /// The category of this credit grant. This is for tracking purposes and isn't displayed to the customer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingCreditGrantCategory { [JsonStringEnumMemberName("paid")] @@ -5801,7 +5903,7 @@ public enum BillingCreditGrantCategory /// /// The type of the account. Account category is further divided in `subcategory`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FinancialConnectionsAccountCategory { [JsonStringEnumMemberName("cash")] @@ -5817,7 +5919,7 @@ public enum FinancialConnectionsAccountCategory /// /// Type of the line item. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentMethodOptionsCategory { [JsonStringEnumMemberName("digital_goods")] @@ -5831,7 +5933,7 @@ public enum PaymentFlowsPrivatePaymentMethodsPaypalAmountDetailsLineItemPaymentM /// /// The time window which meter events have been pre-aggregated for, if any. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EventTimeWindow { [JsonStringEnumMemberName("day")] @@ -5843,7 +5945,7 @@ public enum EventTimeWindow /// /// Whether this tax is inclusive or exclusive. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingBillResourceInvoicingTaxesTaxTaxBehavior { [JsonStringEnumMemberName("exclusive")] @@ -5855,7 +5957,7 @@ public enum BillingBillResourceInvoicingTaxesTaxTaxBehavior /// /// Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CurrencyOptionTaxBehavior { [JsonStringEnumMemberName("exclusive")] @@ -5869,7 +5971,7 @@ public enum CurrencyOptionTaxBehavior /// /// Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. If the item's price has a tax behavior set, it will take precedence over the default tax behavior. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductResourceTaxSettingsDefaultsTaxBehavior { [JsonStringEnumMemberName("exclusive")] @@ -5883,7 +5985,7 @@ public enum TaxProductResourceTaxSettingsDefaultsTaxBehavior /// /// The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingBillResourceInvoicingTaxesTaxTaxabilityReason { [JsonStringEnumMemberName("customer_exempt")] @@ -5923,7 +6025,7 @@ public enum BillingBillResourceInvoicingTaxesTaxTaxabilityReason /// /// The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum LineItemsTaxAmountTaxabilityReason { [JsonStringEnumMemberName("customer_exempt")] @@ -5961,7 +6063,7 @@ public enum LineItemsTaxAmountTaxabilityReason /// /// The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PriceType2 { [JsonStringEnumMemberName("metered")] @@ -5971,7 +6073,7 @@ public enum PriceType2 /// /// Specifies how events are aggregated. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Formula { [JsonStringEnumMemberName("count")] @@ -5985,7 +6087,7 @@ public enum Formula /// /// The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer’s `preferred_locales` or browser’s locale is used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingPortalSessionLocale { [JsonStringEnumMemberName("auto")] @@ -6087,7 +6189,7 @@ public enum BillingPortalSessionLocale /// /// The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutSessionLocale { [JsonStringEnumMemberName("auto")] @@ -6177,7 +6279,7 @@ public enum CheckoutSessionLocale /// /// The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Feedback { [JsonStringEnumMemberName("customer_service")] @@ -6201,7 +6303,7 @@ public enum Feedback /// /// Why this subscription was canceled. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CancellationDetailsReason { [JsonStringEnumMemberName("canceled_by_retention_policy")] @@ -6217,7 +6319,7 @@ public enum CancellationDetailsReason /// /// Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory` /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CreditNoteReason { [JsonStringEnumMemberName("duplicate")] @@ -6233,7 +6335,7 @@ public enum CreditNoteReason /// /// Reason given by cardholder for dispute. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationDisputeOpenedReason { [JsonStringEnumMemberName("account_not_available")] @@ -6263,7 +6365,7 @@ public enum InsightsResourcesPaymentEvaluationDisputeOpenedReason /// /// The reason the payment was blocked by the merchant. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationMerchantBlockedReason { [JsonStringEnumMemberName("authentication_required")] @@ -6279,7 +6381,7 @@ public enum InsightsResourcesPaymentEvaluationMerchantBlockedReason /// /// Indicates the reason for the refund. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationRefundedReason { [JsonStringEnumMemberName("duplicate")] @@ -6295,7 +6397,7 @@ public enum InsightsResourcesPaymentEvaluationRefundedReason /// /// Card issuer's reason for the network decline. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationRejectedCardReason { [JsonStringEnumMemberName("authentication_failed")] @@ -6329,7 +6431,7 @@ public enum InsightsResourcesPaymentEvaluationRejectedCardReason /// /// When an authorization is approved or declined by you or by Stripe, this field provides additional detail on the reason for the outcome. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationRequestReason { [JsonStringEnumMemberName("account_disabled")] @@ -6360,6 +6462,8 @@ public enum IssuingAuthorizationRequestReason PinBlocked, [JsonStringEnumMemberName("spending_controls")] SpendingControls, + [JsonStringEnumMemberName("stripe_internal_error")] + StripeInternalError, [JsonStringEnumMemberName("suspected_fraud")] SuspectedFraud, [JsonStringEnumMemberName("verification_failed")] @@ -6377,7 +6481,7 @@ public enum IssuingAuthorizationRequestReason /// /// The reason for filing the dispute. Its value will match the field containing the evidence. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingDisputeEvidenceReason { [JsonStringEnumMemberName("canceled")] @@ -6401,7 +6505,7 @@ public enum IssuingDisputeEvidenceReason /// /// The reason why this PaymentMethod's fingerprint has been blocked /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodUsBankAccountBlockedReason { [JsonStringEnumMemberName("bank_account_closed")] @@ -6423,7 +6527,7 @@ public enum PaymentMethodUsBankAccountBlockedReason /// /// Reason for the refund, which is either user-provided (`duplicate`, `fraudulent`, or `requested_by_customer`) or generated by Stripe internally (`expired_uncaptured_charge`). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RefundReason { [JsonStringEnumMemberName("duplicate")] @@ -6439,7 +6543,7 @@ public enum RefundReason /// /// Details on why we couldn't commit the tax transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredReason { [JsonStringEnumMemberName("another_payment_associated_with_calculation")] @@ -6457,7 +6561,7 @@ public enum TaxProductResourceTaxAssociationTransactionAttemptsResourceErroredRe /// /// The reason for the refund. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderReaderResourceRefundPaymentActionReason { [JsonStringEnumMemberName("duplicate")] @@ -6471,7 +6575,7 @@ public enum TerminalReaderReaderResourceRefundPaymentActionReason /// /// This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AllowRedisplay { [JsonStringEnumMemberName("always")] @@ -6485,7 +6589,7 @@ public enum AllowRedisplay /// /// Status of a card based on the card issuer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RegulatedStatus { [JsonStringEnumMemberName("regulated")] @@ -6497,7 +6601,7 @@ public enum RegulatedStatus /// /// An enumerated value providing a more detailed explanation on [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AdviceCode { [JsonStringEnumMemberName("confirm_card_data")] @@ -6511,7 +6615,7 @@ public enum AdviceCode /// /// Describes whether Checkout should collect the customer's billing address. Defaults to `auto`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingAddressCollection { [JsonStringEnumMemberName("auto")] @@ -6523,7 +6627,7 @@ public enum BillingAddressCollection /// /// Configure whether a Checkout Session creates a Customer when the Checkout Session completes. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerCreation { [JsonStringEnumMemberName("always")] @@ -6532,50 +6636,10 @@ public enum CustomerCreation IfRequired } -/// -/// The mode of the Checkout Session. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum CheckoutSessionMode -{ - [JsonStringEnumMemberName("payment")] - Payment, - [JsonStringEnumMemberName("setup")] - Setup, - [JsonStringEnumMemberName("subscription")] - Subscription -} - -/// -/// The address validation capabilities to use. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum IssuingCardShippingAddressValidationMode -{ - [JsonStringEnumMemberName("disabled")] - Disabled, - [JsonStringEnumMemberName("normalization_only")] - NormalizationOnly, - [JsonStringEnumMemberName("validation_and_normalization")] - ValidationAndNormalization -} - -/// -/// Whether to cancel subscriptions immediately or at the end of the billing period. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum PortalSubscriptionCancelMode -{ - [JsonStringEnumMemberName("at_period_end")] - AtPeriodEnd, - [JsonStringEnumMemberName("immediately")] - Immediately -} - /// /// Where the user is coming from. This informs the optimizations that are applied to the session. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OriginContext { [JsonStringEnumMemberName("mobile_app")] @@ -6587,7 +6651,7 @@ public enum OriginContext /// /// Configure whether a Checkout Session should collect a payment method. Defaults to `always`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodCollection { [JsonStringEnumMemberName("always")] @@ -6600,7 +6664,7 @@ public enum PaymentMethodCollection /// The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`. /// You can use this value to decide when to fulfill your customer's order. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentStatus { [JsonStringEnumMemberName("no_payment_required")] @@ -6614,7 +6678,7 @@ public enum PaymentStatus /// /// This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RedirectOnCompletion { [JsonStringEnumMemberName("always")] @@ -6630,7 +6694,7 @@ public enum RedirectOnCompletion /// relevant text on the page, such as the submit button. `submit_type` can only be /// specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubmitType { [JsonStringEnumMemberName("auto")] @@ -6648,7 +6712,7 @@ public enum SubmitType /// /// The UI mode of the Session. Defaults to `hosted_page`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum UiMode { [JsonStringEnumMemberName("elements")] @@ -6662,7 +6726,7 @@ public enum UiMode /// /// Payment schedule for the mandate. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutAcssDebitMandateOptionsPaymentSchedule { [JsonStringEnumMemberName("combined")] @@ -6676,7 +6740,7 @@ public enum CheckoutAcssDebitMandateOptionsPaymentSchedule /// /// The periodicity at which payments will be collected. Defaults to `adhoc`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MandateOptionsPaytoPaymentSchedule { [JsonStringEnumMemberName("adhoc")] @@ -6700,7 +6764,7 @@ public enum MandateOptionsPaytoPaymentSchedule /// /// Schedule at which the future payments will be charged. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MandatePixPaymentSchedule { [JsonStringEnumMemberName("halfyearly")] @@ -6718,7 +6782,7 @@ public enum MandatePixPaymentSchedule /// /// Transaction type of the mandate. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TransactionType { [JsonStringEnumMemberName("business")] @@ -6730,7 +6794,7 @@ public enum TransactionType /// /// Currency supported by the bank account. Returned when the Session is in `setup` mode. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Currency { [JsonStringEnumMemberName("cad")] @@ -6748,7 +6812,7 @@ public enum Currency /// /// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage { [JsonStringEnumMemberName("none")] @@ -6768,7 +6832,7 @@ public enum CheckoutAcssDebitPaymentMethodOptionsSetupFutureUsage /// /// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutAffirmPaymentMethodOptionsSetupFutureUsage { [JsonStringEnumMemberName("none")] @@ -6784,7 +6848,7 @@ public enum CheckoutAffirmPaymentMethodOptionsSetupFutureUsage /// /// When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutAmazonPayPaymentMethodOptionsSetupFutureUsage { [JsonStringEnumMemberName("none")] @@ -6798,7 +6862,7 @@ public enum CheckoutAmazonPayPaymentMethodOptionsSetupFutureUsage /// /// The presence of this property will [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ConfirmationTokenSetupFutureUsage { [JsonStringEnumMemberName("off_session")] @@ -6810,7 +6874,7 @@ public enum ConfirmationTokenSetupFutureUsage /// /// Bank account verification method. The default value is `automatic`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutAcssDebitPaymentMethodOptionsVerificationMethod { [JsonStringEnumMemberName("automatic")] @@ -6824,7 +6888,7 @@ public enum CheckoutAcssDebitPaymentMethodOptionsVerificationMethod /// /// Bank account verification method. The default value is `automatic`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutUsBankAccountPaymentMethodOptionsVerificationMethod { [JsonStringEnumMemberName("automatic")] @@ -6836,7 +6900,7 @@ public enum CheckoutUsBankAccountPaymentMethodOptionsVerificationMethod /// /// Controls when the funds will be captured from the customer's account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CheckoutAffirmPaymentMethodOptionsCaptureMethod { [JsonStringEnumMemberName("manual")] @@ -6846,7 +6910,7 @@ public enum CheckoutAffirmPaymentMethodOptionsCaptureMethod /// /// Controls when the funds will be captured from the customer's account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentIntentCaptureMethod { [JsonStringEnumMemberName("automatic")] @@ -6860,7 +6924,7 @@ public enum PaymentIntentCaptureMethod /// /// Controls when the funds will be captured from the customer's account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentIntentTypeSpecificPaymentMethodOptionsClientCaptureMethod { [JsonStringEnumMemberName("automatic_delayed")] @@ -6874,7 +6938,7 @@ public enum PaymentIntentTypeSpecificPaymentMethodOptionsClientCaptureMethod /// /// Controls when the funds will be captured from the customer's account. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodOptionsCardPresentCaptureMethod { [JsonStringEnumMemberName("manual")] @@ -6886,7 +6950,7 @@ public enum PaymentMethodOptionsCardPresentCaptureMethod /// /// Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RequestExtendedAuthorization { [JsonStringEnumMemberName("if_available")] @@ -6898,7 +6962,7 @@ public enum RequestExtendedAuthorization /// /// Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RequestIncrementalAuthorization { [JsonStringEnumMemberName("if_available")] @@ -6910,7 +6974,7 @@ public enum RequestIncrementalAuthorization /// /// Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RequestMulticapture { [JsonStringEnumMemberName("if_available")] @@ -6922,7 +6986,7 @@ public enum RequestMulticapture /// /// Request ability to [overcapture](/payments/overcapture) for this CheckoutSession. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RequestOvercapture { [JsonStringEnumMemberName("if_available")] @@ -6934,7 +6998,7 @@ public enum RequestOvercapture /// /// We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RequestThreeDSecure { [JsonStringEnumMemberName("any")] @@ -6948,7 +7012,7 @@ public enum RequestThreeDSecure /// /// The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FundingType { [JsonStringEnumMemberName("bank_transfer")] @@ -6958,7 +7022,7 @@ public enum FundingType /// /// Describes whether Checkout should display Link. Defaults to `auto`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Display { [JsonStringEnumMemberName("auto")] @@ -6970,7 +7034,7 @@ public enum Display /// /// Determines if the amount includes the IOF tax. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AmountIncludesIof { [JsonStringEnumMemberName("always")] @@ -6979,10 +7043,24 @@ public enum AmountIncludesIof Never } +/// +/// The client type that the end customer will pay from +/// +[JsonConverter(typeof(JsonStringEnumConverter))] +public enum Client +{ + [JsonStringEnumMemberName("android")] + Android, + [JsonStringEnumMemberName("ios")] + Ios, + [JsonStringEnumMemberName("web")] + Web +} + /// /// Reason for the cancellation of this order. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClimateOrderCancellationReason { [JsonStringEnumMemberName("expired")] @@ -6996,7 +7074,7 @@ public enum ClimateOrderCancellationReason /// /// The reason why the card was canceled. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardCancellationReason { [JsonStringEnumMemberName("design_rejected")] @@ -7012,7 +7090,7 @@ public enum IssuingCardCancellationReason /// /// Reason for cancellation of this PaymentIntent, either user-provided (`duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned`) or generated by Stripe internally (`failed_invoice`, `void_invoice`, `automatic`, or `expired`). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentIntentCancellationReason { [JsonStringEnumMemberName("abandoned")] @@ -7036,7 +7114,7 @@ public enum PaymentIntentCancellationReason /// /// Reason for cancellation of this SetupIntent, one of `abandoned`, `requested_by_customer`, or `duplicate`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SetupIntentCancellationReason { [JsonStringEnumMemberName("abandoned")] @@ -7050,7 +7128,7 @@ public enum SetupIntentCancellationReason /// /// The scientific pathway used for carbon removal. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RemovalPathway { [JsonStringEnumMemberName("biomass_carbon_removal_and_storage")] @@ -7066,7 +7144,7 @@ public enum RemovalPathway /// /// One of `forever`, `once`, or `repeating`. Describes how long a customer who applies this coupon will get the discount. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Duration { [JsonStringEnumMemberName("forever")] @@ -7080,7 +7158,7 @@ public enum Duration /// /// Describes the customer's tax exemption status, which is `none`, `exempt`, or `reverse`. When set to `reverse`, invoice and receipt PDFs include the following text: **"Reverse charge"**. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxExempt { [JsonStringEnumMemberName("exempt")] @@ -7094,7 +7172,7 @@ public enum TaxExempt /// /// The configuration for how funds that land in the customer cash balance are reconciled. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReconciliationMode { [JsonStringEnumMemberName("automatic")] @@ -7106,7 +7184,7 @@ public enum ReconciliationMode /// /// The banking network used for this funding. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerBalanceResourceCashBalanceTransactionResourceFundedTransactionResourceBankTransferResourceUsBankTransferNetwork { [JsonStringEnumMemberName("ach")] @@ -7120,7 +7198,7 @@ public enum CustomerBalanceResourceCashBalanceTransactionResourceFundedTransacti /// /// The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InboundTransfersPaymentMethodDetailsUsBankAccountNetwork { [JsonStringEnumMemberName("ach")] @@ -7130,7 +7208,7 @@ public enum InboundTransfersPaymentMethodDetailsUsBankAccountNetwork /// /// The card network for this settlement report. One of ["visa", "maestro", "mastercard"] /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingSettlementNetwork { [JsonStringEnumMemberName("maestro")] @@ -7144,7 +7222,7 @@ public enum IssuingSettlementNetwork /// /// The token service provider / card network associated with the token. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingTokenNetwork { [JsonStringEnumMemberName("mastercard")] @@ -7156,7 +7234,7 @@ public enum IssuingTokenNetwork /// /// The rails used to send funds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OutboundPaymentsPaymentMethodDetailsFinancialAccountNetwork { [JsonStringEnumMemberName("stripe")] @@ -7166,7 +7244,7 @@ public enum OutboundPaymentsPaymentMethodDetailsFinancialAccountNetwork /// /// The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork { [JsonStringEnumMemberName("ach")] @@ -7178,7 +7256,7 @@ public enum OutboundPaymentsPaymentMethodDetailsUsBankAccountNetwork /// /// Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentIntentPaymentMethodOptionsCardNetwork { [JsonStringEnumMemberName("amex")] @@ -7212,7 +7290,7 @@ public enum PaymentIntentPaymentMethodOptionsCardNetwork /// /// The blockchain network that the transaction was sent on. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsCryptoNetwork { [JsonStringEnumMemberName("base")] @@ -7223,6 +7301,8 @@ public enum PaymentMethodDetailsCryptoNetwork Polygon, [JsonStringEnumMemberName("solana")] Solana, + [JsonStringEnumMemberName("sui")] + Sui, [JsonStringEnumMemberName("tempo")] Tempo } @@ -7230,7 +7310,7 @@ public enum PaymentMethodDetailsCryptoNetwork /// /// Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsNetwork { [JsonStringEnumMemberName("amex")] @@ -7262,7 +7342,7 @@ public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsNetw /// /// The rails used to reverse the funds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryCreditReversalNetwork { [JsonStringEnumMemberName("ach")] @@ -7274,7 +7354,7 @@ public enum TreasuryCreditReversalNetwork /// /// The rails used to reverse the funds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryDebitReversalNetwork { [JsonStringEnumMemberName("ach")] @@ -7286,7 +7366,7 @@ public enum TreasuryDebitReversalNetwork /// /// The rails used to send the funds. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryReceivedCreditNetwork { [JsonStringEnumMemberName("ach")] @@ -7302,7 +7382,7 @@ public enum TreasuryReceivedCreditNetwork /// /// The network used for the ReceivedDebit. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TreasuryReceivedDebitNetwork { [JsonStringEnumMemberName("ach")] @@ -7318,7 +7398,7 @@ public enum TreasuryReceivedDebitNetwork /// /// Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodRemove { [JsonStringEnumMemberName("disabled")] @@ -7330,7 +7410,7 @@ public enum PaymentMethodRemove /// /// Controls whether or not the mobile payment element shows saved payment methods. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodRedisplay { [JsonStringEnumMemberName("disabled")] @@ -7344,7 +7424,7 @@ public enum PaymentMethodRedisplay /// /// If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodSave { [JsonStringEnumMemberName("disabled")] @@ -7358,7 +7438,7 @@ public enum PaymentMethodSave /// /// If not specified, defaults to `nil` (no override value). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodSaveAllowRedisplayOverride { [JsonStringEnumMemberName("always")] @@ -7374,7 +7454,7 @@ public enum PaymentMethodSaveAllowRedisplayOverride /// /// When using SetupIntents, directly configure the [`usage`](https://docs.stripe.com/api/setup_intents/object#setup_intent_object-usage) value on SetupIntent creation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodSaveUsage { [JsonStringEnumMemberName("off_session")] @@ -7386,7 +7466,7 @@ public enum PaymentMethodSaveUsage /// /// Surfaces if automatic tax computation is possible given the current customer location information. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AutomaticTax2 { [JsonStringEnumMemberName("failed")] @@ -7402,7 +7482,7 @@ public enum AutomaticTax2 /// /// The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Provider { [JsonStringEnumMemberName("anrok")] @@ -7418,7 +7498,7 @@ public enum Provider /// /// The data source used to infer the customer's location. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Source2 { [JsonStringEnumMemberName("billing_address")] @@ -7434,7 +7514,7 @@ public enum Source2 /// /// Device type of the reader. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DeviceType { [JsonStringEnumMemberName("bbpos_chipper2x")] @@ -7480,7 +7560,7 @@ public enum DeviceType /// /// The AmazonPay dispute type, chargeback or claim /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum DisputeType { [JsonStringEnumMemberName("chargeback")] @@ -7492,7 +7572,7 @@ public enum DisputeType /// /// The type of dispute opened. Different case types may have varying fees and financial impact. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CaseType { [JsonStringEnumMemberName("block")] @@ -7510,7 +7590,7 @@ public enum CaseType /// /// Categorization of disputed payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MerchandiseOrServices { [JsonStringEnumMemberName("merchandise")] @@ -7522,7 +7602,7 @@ public enum MerchandiseOrServices /// /// The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FilePurpose { [JsonStringEnumMemberName("account_requirement")] @@ -7572,7 +7652,7 @@ public enum FilePurpose /// /// The purpose for which payments are made. Has a default value based on your merchant category code. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoiceMandateOptionsPaytoPurpose { [JsonStringEnumMemberName("dependant_support")] @@ -7615,7 +7695,7 @@ public enum InvoiceMandateOptionsPaytoPurpose /// /// If `category` is `investment` or `other`, this will be `other`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Subcategory { [JsonStringEnumMemberName("checking")] @@ -7635,7 +7715,7 @@ public enum Subcategory /// /// The HTTP method used to call the destination endpoint. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum HttpMethod { [JsonStringEnumMemberName("POST")] @@ -7645,7 +7725,7 @@ public enum HttpMethod /// /// Sex of the person in the document. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Sex { [JsonStringEnumMemberName("[redacted]")] @@ -7661,7 +7741,7 @@ public enum Sex /// /// Type of ID number. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IdNumberType { [JsonStringEnumMemberName("br_cpf")] @@ -7675,7 +7755,7 @@ public enum IdNumberType /// /// Strictness of the DOB matching policy to apply. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Dob { [JsonStringEnumMemberName("none")] @@ -7687,7 +7767,7 @@ public enum Dob /// /// Strictness of the name matching policy to apply. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Name { [JsonStringEnumMemberName("none")] @@ -7699,7 +7779,7 @@ public enum Name /// /// Account holder type: individual or company. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AccountHolderType { [JsonStringEnumMemberName("company")] @@ -7711,7 +7791,7 @@ public enum AccountHolderType /// /// Account type: checkings or savings. Defaults to checking if omitted. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InboundTransfersPaymentMethodDetailsUsBankAccountAccountType { [JsonStringEnumMemberName("checking")] @@ -7723,7 +7803,7 @@ public enum InboundTransfersPaymentMethodDetailsUsBankAccountAccountType /// /// The type of account being debited or credited /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsCardPresentReceiptAccountType { [JsonStringEnumMemberName("checking")] @@ -7739,7 +7819,7 @@ public enum PaymentMethodDetailsCardPresentReceiptAccountType /// /// The type of account being debited or credited /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsInteracPresentReceiptAccountType { [JsonStringEnumMemberName("checking")] @@ -7753,7 +7833,7 @@ public enum PaymentMethodDetailsInteracPresentReceiptAccountType /// /// The type of fraud labeled by the issuer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum FraudType { [JsonStringEnumMemberName("made_with_lost_card")] @@ -7769,7 +7849,7 @@ public enum FraudType /// /// Describes the presence of the customer during the payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerPresence { [JsonStringEnumMemberName("off_session")] @@ -7781,7 +7861,7 @@ public enum CustomerPresence /// /// Describes the type of payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentType { [JsonStringEnumMemberName("one_off")] @@ -7797,7 +7877,7 @@ public enum PaymentType /// /// Describes the type of money movement. Currently only `card` is supported. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MoneyMovementType { [JsonStringEnumMemberName("card")] @@ -7807,7 +7887,7 @@ public enum MoneyMovementType /// /// Result of the address line 1 check. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationRejectedCardAddressLine1Check { [JsonStringEnumMemberName("fail")] @@ -7823,7 +7903,7 @@ public enum InsightsResourcesPaymentEvaluationRejectedCardAddressLine1Check /// /// Whether the cardholder provided an address first line and if it matched the cardholder’s `billing.address.line1`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationVerificationDataAddressLine1Check { [JsonStringEnumMemberName("match")] @@ -7837,7 +7917,7 @@ public enum IssuingAuthorizationVerificationDataAddressLine1Check /// /// Indicates whether the cardholder provided a postal code and if it matched the cardholder’s billing address. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationRejectedCardAddressPostalCodeCheck { [JsonStringEnumMemberName("fail")] @@ -7853,7 +7933,7 @@ public enum InsightsResourcesPaymentEvaluationRejectedCardAddressPostalCodeCheck /// /// Whether the cardholder provided a postal code and if it matched the cardholder’s `billing.address.postal_code`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationVerificationDataAddressPostalCodeCheck { [JsonStringEnumMemberName("match")] @@ -7867,7 +7947,7 @@ public enum IssuingAuthorizationVerificationDataAddressPostalCodeCheck /// /// Result of the CVC check. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InsightsResourcesPaymentEvaluationRejectedCardCvcCheck { [JsonStringEnumMemberName("fail")] @@ -7883,7 +7963,7 @@ public enum InsightsResourcesPaymentEvaluationRejectedCardCvcCheck /// /// Whether the cardholder provided a CVC and if it matched Stripe’s record. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationVerificationDataCvcCheck { [JsonStringEnumMemberName("match")] @@ -7897,7 +7977,7 @@ public enum IssuingAuthorizationVerificationDataCvcCheck /// /// Risk level of this signal, based on the score. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RiskLevel { [JsonStringEnumMemberName("elevated")] @@ -7917,7 +7997,7 @@ public enum RiskLevel /// /// Result of the intervention if it has been completed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Outcome { [JsonStringEnumMemberName("abandoned")] @@ -7939,7 +8019,7 @@ public enum Outcome /// * `subscription_update`: A subscription was updated. /// * `upcoming`: Reserved for upcoming invoices created through the Create Preview Invoice API or when an `invoice.upcoming` event is generated for an upcoming invoice on a subscription. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingReason { [JsonStringEnumMemberName("automatic_pending_invoice_item_invoice")] @@ -7965,7 +8045,7 @@ public enum BillingReason /// /// Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoiceCollectionMethod { [JsonStringEnumMemberName("charge_automatically")] @@ -7977,7 +8057,7 @@ public enum InvoiceCollectionMethod /// /// Mandate collection method /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MandateUsBankAccountCollectionMethod { [JsonStringEnumMemberName("paper")] @@ -7987,7 +8067,7 @@ public enum MandateUsBankAccountCollectionMethod /// /// The customer's tax exempt status. Until the invoice is finalized, this field will equal `customer.tax_exempt`. Once the invoice is finalized, this field will no longer be updated. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CustomerTaxExempt { [JsonStringEnumMemberName("exempt")] @@ -8001,7 +8081,7 @@ public enum CustomerTaxExempt /// /// One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AmountType { [JsonStringEnumMemberName("fixed")] @@ -8013,7 +8093,7 @@ public enum AmountType /// /// Preferred language of the Bancontact authorization page that the customer is redirected to. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum InvoicePaymentMethodOptionsBancontactPreferredLanguage { [JsonStringEnumMemberName("de")] @@ -8029,7 +8109,7 @@ public enum InvoicePaymentMethodOptionsBancontactPreferredLanguage /// /// Preferred language of the SOFORT authorization page that the customer is redirected to. Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsPaymentRecordSofortPreferredLanguage { [JsonStringEnumMemberName("de")] @@ -8051,7 +8131,7 @@ public enum PaymentMethodDetailsPaymentRecordSofortPreferredLanguage /// /// The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Country { [JsonStringEnumMemberName("BE")] @@ -8071,7 +8151,7 @@ public enum Country /// /// Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PageSize { [JsonStringEnumMemberName("a4")] @@ -8085,7 +8165,7 @@ public enum PageSize /// /// How the card details were provided. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthorizationMethod { [JsonStringEnumMemberName("chip")] @@ -8103,7 +8183,7 @@ public enum AuthorizationMethod /// /// Whether the card was present at the point of sale for the authorization. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CardPresence { [JsonStringEnumMemberName("not_present")] @@ -8115,7 +8195,7 @@ public enum CardPresence /// /// The reason why the previous card needed to be replaced. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReplacementReason { [JsonStringEnumMemberName("damaged")] @@ -8133,7 +8213,7 @@ public enum ReplacementReason /// /// The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum LossReason { [JsonStringEnumMemberName("cardholder_authentication_issuer_liability")] @@ -8181,7 +8261,7 @@ public enum LossReason /// /// The digital wallet for this token, if one was used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum WalletProvider { [JsonStringEnumMemberName("apple_pay")] @@ -8195,7 +8275,7 @@ public enum WalletProvider /// /// The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Wallet { [JsonStringEnumMemberName("apple_pay")] @@ -8209,7 +8289,7 @@ public enum Wallet /// /// The entity that requested the exemption, either the acquiring merchant or the Issuing user. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClaimedBy { [JsonStringEnumMemberName("acquirer")] @@ -8221,7 +8301,7 @@ public enum ClaimedBy /// /// The type of purchase. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PurchaseType { [JsonStringEnumMemberName("fuel_and_non_fuel_purchase")] @@ -8235,7 +8315,7 @@ public enum PurchaseType /// /// The type of fuel service. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ServiceType { [JsonStringEnumMemberName("full_service")] @@ -8249,7 +8329,7 @@ public enum ServiceType /// /// The method by which the fraud challenge was delivered to the cardholder. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Channel { [JsonStringEnumMemberName("sms")] @@ -8259,7 +8339,7 @@ public enum Channel /// /// If the challenge is not deliverable, the reason why. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum UndeliverableReason { [JsonStringEnumMemberName("no_phone_number")] @@ -8271,7 +8351,7 @@ public enum UndeliverableReason /// /// The units for `quantity_decimal`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationFuelDataUnit { [JsonStringEnumMemberName("charging_minute")] @@ -8295,7 +8375,7 @@ public enum IssuingAuthorizationFuelDataUnit /// /// A unit of time. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ShippingRateDeliveryEstimateBoundUnit { [JsonStringEnumMemberName("business_day")] @@ -8313,7 +8393,7 @@ public enum ShippingRateDeliveryEstimateBoundUnit /// /// The outcome of the 3D Secure authentication request. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingAuthorizationThreeDSecureResult { [JsonStringEnumMemberName("attempt_acknowledged")] @@ -8329,7 +8409,7 @@ public enum IssuingAuthorizationThreeDSecureResult /// /// The validation result for the shipping address. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IssuingCardShippingAddressValidationResult { [JsonStringEnumMemberName("indeterminate")] @@ -8343,13 +8423,15 @@ public enum IssuingCardShippingAddressValidationResult /// /// Indicates the outcome of 3D Secure authentication. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureResult { [JsonStringEnumMemberName("attempt_acknowledged")] AttemptAcknowledged, [JsonStringEnumMemberName("authenticated")] Authenticated, + [JsonStringEnumMemberName("data_share_only")] + DataShareOnly, [JsonStringEnumMemberName("exempted")] Exempted, [JsonStringEnumMemberName("failed")] @@ -8363,7 +8445,7 @@ public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsReso /// /// Whether the cardholder provided an expiry date and if it matched Stripe’s record. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ExpiryCheck { [JsonStringEnumMemberName("match")] @@ -8377,7 +8459,7 @@ public enum ExpiryCheck /// /// Reason the card is ineligible for Apple Pay /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum IneligibleReason { [JsonStringEnumMemberName("missing_agreement")] @@ -8391,9 +8473,11 @@ public enum IneligibleReason /// /// The delivery company that shipped a card. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Carrier { + [JsonStringEnumMemberName("correos")] + Correos, [JsonStringEnumMemberName("dhl")] Dhl, [JsonStringEnumMemberName("fedex")] @@ -8407,7 +8491,7 @@ public enum Carrier /// /// Shipment service, such as `standard` or `express`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Service { [JsonStringEnumMemberName("express")] @@ -8421,7 +8505,7 @@ public enum Service /// /// Whether the product was a merchandise or service. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProductType { [JsonStringEnumMemberName("merchandise")] @@ -8433,7 +8517,7 @@ public enum ProductType /// /// Result of cardholder's attempt to return the product. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReturnStatus { [JsonStringEnumMemberName("merchant_rejected")] @@ -8445,7 +8529,7 @@ public enum ReturnStatus /// /// The method used for tokenizing a card. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CardNumberSource { [JsonStringEnumMemberName("app")] @@ -8461,7 +8545,7 @@ public enum CardNumberSource /// /// The recommendation on responding to the tokenization request. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SuggestedDecision { [JsonStringEnumMemberName("approve")] @@ -8475,7 +8559,7 @@ public enum SuggestedDecision /// /// The policy for how to use card logo images in a card design with this physical bundle. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CardLogo { [JsonStringEnumMemberName("optional")] @@ -8489,7 +8573,7 @@ public enum CardLogo /// /// The policy for how to use carrier letter text in a card design with this physical bundle. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum CarrierText { [JsonStringEnumMemberName("optional")] @@ -8503,7 +8587,7 @@ public enum CarrierText /// /// The policy for how to use a second line on a card with this physical bundle. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SecondLine { [JsonStringEnumMemberName("optional")] @@ -8517,7 +8601,7 @@ public enum SecondLine /// /// This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OwnershipExemptionReason { [JsonStringEnumMemberName("qualified_entity_exceeds_ownership_threshold")] @@ -8529,7 +8613,7 @@ public enum OwnershipExemptionReason /// /// The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Structure { [JsonStringEnumMemberName("free_zone_establishment")] @@ -8583,7 +8667,7 @@ public enum Structure /// /// The status of the mandate on the Bacs network. Can be one of `pending`, `revoked`, `refused`, or `accepted`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NetworkStatus { [JsonStringEnumMemberName("accepted")] @@ -8599,7 +8683,7 @@ public enum NetworkStatus /// /// When the mandate is revoked on the Bacs network this field displays the reason for the revocation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RevocationReason { [JsonStringEnumMemberName("account_closed")] @@ -8617,7 +8701,7 @@ public enum RevocationReason /// /// Indicates who reported the payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReportedBy { [JsonStringEnumMemberName("self")] @@ -8631,7 +8715,7 @@ public enum ReportedBy /// /// Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://docs.stripe.com/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AllowRedirects { [JsonStringEnumMemberName("always")] @@ -8643,7 +8727,7 @@ public enum AllowRedirects /// /// Describes whether we can confirm this PaymentIntent automatically, or if it requires customer action to confirm the payment. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ConfirmationMethod { [JsonStringEnumMemberName("automatic")] @@ -8655,7 +8739,7 @@ public enum ConfirmationMethod /// /// The type of the microdeposit sent to the customer. Used to distinguish between different verification methods. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MicrodepositType { [JsonStringEnumMemberName("amounts")] @@ -8667,7 +8751,7 @@ public enum MicrodepositType /// /// The purpose of the transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TransactionPurpose { [JsonStringEnumMemberName("goods")] @@ -8683,7 +8767,7 @@ public enum TransactionPurpose /// /// If set to `auto`, enables the collection of customer consent for promotional communications. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentLinksResourceConsentCollectionPromotions { [JsonStringEnumMemberName("auto")] @@ -8696,7 +8780,7 @@ public enum PaymentLinksResourceConsentCollectionPromotions /// If `opt_in`, the customer consents to receiving promotional communications /// from the merchant about this Checkout Session. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentPagesCheckoutSessionConsentPromotions { [JsonStringEnumMemberName("opt_in")] @@ -8708,7 +8792,7 @@ public enum PaymentPagesCheckoutSessionConsentPromotions /// /// If set to `required`, it requires cutomers to accept the terms of service before being able to pay. If set to `none`, customers won't be shown a checkbox to accept the terms of service. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentLinksResourceConsentCollectionTermsOfService { [JsonStringEnumMemberName("none")] @@ -8720,7 +8804,7 @@ public enum PaymentLinksResourceConsentCollectionTermsOfService /// /// If `accepted`, the customer in this Checkout Session has agreed to the merchant's terms of service. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentPagesCheckoutSessionConsentTermsOfService { [JsonStringEnumMemberName("accepted")] @@ -8732,7 +8816,7 @@ public enum PaymentPagesCheckoutSessionConsentTermsOfService /// /// When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Position { [JsonStringEnumMemberName("auto")] @@ -8741,7 +8825,7 @@ public enum Position Hidden } -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Required { [JsonStringEnumMemberName("if_supported")] @@ -8753,7 +8837,7 @@ public enum Required /// /// How card details were read in this transaction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReadMethod { [JsonStringEnumMemberName("contact_emv")] @@ -8771,7 +8855,7 @@ public enum ReadMethod /// /// The account's display preference. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Preference { [JsonStringEnumMemberName("none")] @@ -8785,7 +8869,7 @@ public enum Preference /// /// The effective display preference value. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodConfigResourceDisplayPreferenceValue { [JsonStringEnumMemberName("off")] @@ -8797,7 +8881,7 @@ public enum PaymentMethodConfigResourceDisplayPreferenceValue /// /// The toggle's collected value. Can be `enabled` or `disabled`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TerminalReaderReaderResourceToggleValue { [JsonStringEnumMemberName("disabled")] @@ -8809,7 +8893,7 @@ public enum TerminalReaderReaderResourceToggleValue /// /// The token currency that the transaction was sent with. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TokenCurrency { [JsonStringEnumMemberName("phantom_cash")] @@ -8820,6 +8904,8 @@ public enum TokenCurrency Usdg, [JsonStringEnumMemberName("usdp")] Usdp, + [JsonStringEnumMemberName("usdsui")] + Usdsui, [JsonStringEnumMemberName("usdt")] Usdt } @@ -8827,7 +8913,7 @@ public enum TokenCurrency /// /// The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsEpsBank { [JsonStringEnumMemberName("arzte_und_apotheker_bank")] @@ -8889,9 +8975,9 @@ public enum PaymentMethodDetailsEpsBank } /// -/// The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. +/// The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bnp_paribas`, `bank_rakyat`, `bsn`, `cimb`, `citibank`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `mbsb_bank`, `pb_enterprise`, or `bank_of_china`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsFpxBank { [JsonStringEnumMemberName("affin_bank")] @@ -8910,10 +8996,14 @@ public enum PaymentMethodDetailsFpxBank BankOfChina, [JsonStringEnumMemberName("bank_rakyat")] BankRakyat, + [JsonStringEnumMemberName("bnp_paribas")] + BnpParibas, [JsonStringEnumMemberName("bsn")] Bsn, [JsonStringEnumMemberName("cimb")] Cimb, + [JsonStringEnumMemberName("citibank")] + Citibank, [JsonStringEnumMemberName("deutsche_bank")] DeutscheBank, [JsonStringEnumMemberName("hong_leong_bank")] @@ -8926,6 +9016,8 @@ public enum PaymentMethodDetailsFpxBank Maybank2e, [JsonStringEnumMemberName("maybank2u")] Maybank2u, + [JsonStringEnumMemberName("mbsb_bank")] + MbsbBank, [JsonStringEnumMemberName("ocbc")] Ocbc, [JsonStringEnumMemberName("pb_enterprise")] @@ -8943,7 +9035,7 @@ public enum PaymentMethodDetailsFpxBank /// /// The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsIdealBank { [JsonStringEnumMemberName("abn_amro")] @@ -8991,7 +9083,7 @@ public enum PaymentMethodDetailsIdealBank /// /// The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsP24Bank { [JsonStringEnumMemberName("alior_bank")] @@ -9051,7 +9143,7 @@ public enum PaymentMethodDetailsP24Bank /// /// The Bank Identifier Code of the customer's bank. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Bic { [JsonStringEnumMemberName("ABNANL2A")] @@ -9101,7 +9193,7 @@ public enum Bic /// /// The name of the convenience store chain where the payment was completed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Chain { [JsonStringEnumMemberName("familymart")] @@ -9117,7 +9209,7 @@ public enum Chain /// /// The local credit or debit card brand. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodDetailsKrCardBrand { [JsonStringEnumMemberName("bc")] @@ -9169,7 +9261,7 @@ public enum PaymentMethodDetailsKrCardBrand /// /// Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsBrand { [JsonStringEnumMemberName("amex")] @@ -9201,7 +9293,7 @@ public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsBran /// /// Whether to fund this transaction with Naver Pay points or a card. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentMethodNaverPayFunding { [JsonStringEnumMemberName("card")] @@ -9213,7 +9305,7 @@ public enum PaymentMethodNaverPayFunding /// /// Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsFunding { [JsonStringEnumMemberName("credit")] @@ -9229,7 +9321,7 @@ public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsFund /// /// Requested routing priority /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RequestedPriority { [JsonStringEnumMemberName("domestic")] @@ -9238,24 +9330,10 @@ public enum RequestedPriority International } -/// -/// The client type that the end customer will pay from -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum Client -{ - [JsonStringEnumMemberName("android")] - Android, - [JsonStringEnumMemberName("ios")] - Ios, - [JsonStringEnumMemberName("web")] - Web -} - /// /// The ACH network code that resulted in this block. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum NetworkCode { [JsonStringEnumMemberName("R02")] @@ -9287,7 +9365,7 @@ public enum NetworkCode /// /// The border style for the Checkout Session. Must be one of `rounded`, `rectangular`, or `pill`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BorderStyle { [JsonStringEnumMemberName("pill")] @@ -9305,7 +9383,7 @@ public enum BorderStyle /// /// When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum UpdateShippingDetails { [JsonStringEnumMemberName("client_only")] @@ -9314,22 +9392,10 @@ public enum UpdateShippingDetails ServerOnly } -/// -/// The transaction type that was passed for an off-session, Merchant-Initiated transaction, one of `recurring` or `unscheduled`. -/// -[JsonConverter(typeof(JsonStringEnumConverter))] -public enum StoredCredentialUsage -{ - [JsonStringEnumMemberName("recurring")] - Recurring, - [JsonStringEnumMemberName("unscheduled")] - Unscheduled -} - /// /// For authenticated transactions: Indicates how the issuing bank authenticated the customer. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AuthenticationFlow { [JsonStringEnumMemberName("challenge")] @@ -9341,7 +9407,7 @@ public enum AuthenticationFlow /// /// The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureElectronicCommerceIndicator { [JsonStringEnumMemberName("01")] @@ -9364,7 +9430,7 @@ public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsReso /// The Electronic Commerce Indicator (ECI). A protocol-level field /// indicating what degree of authentication was performed. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ThreeDSecureDetailsElectronicCommerceIndicator { [JsonStringEnumMemberName("01")] @@ -9382,7 +9448,7 @@ public enum ThreeDSecureDetailsElectronicCommerceIndicator /// /// The exemption requested via 3DS and accepted by the issuer at authentication time. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ExemptionIndicator { [JsonStringEnumMemberName("low_risk")] @@ -9394,7 +9460,7 @@ public enum ExemptionIndicator /// /// Additional information about why 3D Secure succeeded or failed, based on the `result`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ResultReason { [JsonStringEnumMemberName("abandoned")] @@ -9416,7 +9482,7 @@ public enum ResultReason /// /// The version of 3D Secure that was used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsResourceThreeDSecureVersion { [JsonStringEnumMemberName("1.0.2")] @@ -9430,7 +9496,7 @@ public enum PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCardDetailsReso /// /// The version of 3D Secure that was used. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ThreeDSecureDetailsVersion { [JsonStringEnumMemberName("1.0.2")] @@ -9448,7 +9514,7 @@ public enum ThreeDSecureDetailsVersion /// /// If `completed`, you can use the [Balance Transactions API](https://docs.stripe.com/api/balance_transactions/list#balance_transaction_list-payout) to list all balance transactions that are paid out in this payout. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ReconciliationStatus { [JsonStringEnumMemberName("completed")] @@ -9462,7 +9528,7 @@ public enum ReconciliationStatus /// /// Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PoliticalExposure { [JsonStringEnumMemberName("existing")] @@ -9474,7 +9540,7 @@ public enum PoliticalExposure /// /// Describes how to compute the price per period. Either `per_unit` or `tiered`. `per_unit` indicates that the fixed amount (specified in `amount`) will be charged per unit in `quantity` (for plans with `usage_type=licensed`), or per unit of total usage (for plans with `usage_type=metered`). `tiered` indicates that the unit pricing will be computed using a tiering strategy as defined using the `tiers` and `tiers_mode` attributes. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum BillingScheme { [JsonStringEnumMemberName("per_unit")] @@ -9486,7 +9552,7 @@ public enum BillingScheme /// /// Defines if the tiering price should be `graduated` or `volume` based. In `volume`-based tiering, the maximum quantity within a period determines the per unit price. In `graduated` tiering, pricing can change as the quantity grows. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TiersMode { [JsonStringEnumMemberName("graduated")] @@ -9498,7 +9564,7 @@ public enum TiersMode /// /// Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum UsageType { [JsonStringEnumMemberName("licensed")] @@ -9510,7 +9576,7 @@ public enum UsageType /// /// Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProrationBehavior { [JsonStringEnumMemberName("always_invoice")] @@ -9524,7 +9590,7 @@ public enum ProrationBehavior /// /// Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PortalSubscriptionUpdateBillingCycleAnchor { [JsonStringEnumMemberName("now")] @@ -9536,7 +9602,7 @@ public enum PortalSubscriptionUpdateBillingCycleAnchor /// /// Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SubscriptionSchedulePhaseConfigurationBillingCycleAnchor { [JsonStringEnumMemberName("automatic")] @@ -9548,7 +9614,7 @@ public enum SubscriptionSchedulePhaseConfigurationBillingCycleAnchor /// /// Determines how handle updates to trialing subscriptions. Valid values are `end_trial` and `continue_trial`. Defaults to a value of `end_trial` if you don't set it during creation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TrialUpdateBehavior { [JsonStringEnumMemberName("continue_trial")] @@ -9560,7 +9626,7 @@ public enum TrialUpdateBehavior /// /// Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RecommendedAction { [JsonStringEnumMemberName("block")] @@ -9572,7 +9638,7 @@ public enum RecommendedAction /// /// The type of items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `account`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ItemType { [JsonStringEnumMemberName("account")] @@ -9604,7 +9670,7 @@ public enum ItemType /// /// Provides the reason for why the refund is pending. Possible values are: `processing`, `insufficient_funds`, or `charge_pending`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum PendingReason { [JsonStringEnumMemberName("charge_pending")] @@ -9618,7 +9684,7 @@ public enum PendingReason /// /// The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ClosedReason { [JsonStringEnumMemberName("acknowledged")] @@ -9642,7 +9708,7 @@ public enum ClosedReason /// /// The reason the review was opened. One of `rule` or `manual`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum OpenedReason { [JsonStringEnumMemberName("manual")] @@ -9654,7 +9720,7 @@ public enum OpenedReason /// /// Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum EndBehavior { [JsonStringEnumMemberName("cancel")] @@ -9670,7 +9736,7 @@ public enum EndBehavior /// /// Controls how invoices and invoice items display proration amounts and discount amounts. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum ProrationDiscounts { [JsonStringEnumMemberName("included")] @@ -9682,7 +9748,7 @@ public enum ProrationDiscounts /// /// The payment collection behavior for this subscription while paused. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Behavior { [JsonStringEnumMemberName("keep_as_draft")] @@ -9696,7 +9762,7 @@ public enum Behavior /// /// Configure whether Stripe updates `subscription.default_payment_method` when payment succeeds. Defaults to `off`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum SaveDefaultPaymentMethod { [JsonStringEnumMemberName("off")] @@ -9708,7 +9774,7 @@ public enum SaveDefaultPaymentMethod /// /// Indicates how the subscription should change when the trial ends if the user did not provide a payment method. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum MissingPaymentMethod { [JsonStringEnumMemberName("cancel")] @@ -9722,7 +9788,7 @@ public enum MissingPaymentMethod /// /// Place of supply scheme used in an Default standard registration. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsDefaultStandardPlaceOfSupplyScheme { [JsonStringEnumMemberName("inbound_goods")] @@ -9734,7 +9800,7 @@ public enum TaxProductRegistrationsResourceCountryOptionsDefaultStandardPlaceOfS /// /// Place of supply scheme used in an EU standard registration. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxProductRegistrationsResourceCountryOptionsEuStandardPlaceOfSupplyScheme { [JsonStringEnumMemberName("inbound_goods")] @@ -9748,7 +9814,7 @@ public enum TaxProductRegistrationsResourceCountryOptionsEuStandardPlaceOfSupply /// /// The type of customer address provided. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum AddressSource { [JsonStringEnumMemberName("billing")] @@ -9760,7 +9826,7 @@ public enum AddressSource /// /// The taxability override used for taxation. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxabilityOverride { [JsonStringEnumMemberName("customer_exempt")] @@ -9774,7 +9840,7 @@ public enum TaxabilityOverride /// /// Indicates the level of the jurisdiction imposing the tax. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Level { [JsonStringEnumMemberName("city")] @@ -9792,7 +9858,7 @@ public enum Level /// /// Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum Sourcing { [JsonStringEnumMemberName("destination")] @@ -9804,7 +9870,7 @@ public enum Sourcing /// /// The tax type, such as `vat` or `sales_tax`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum TaxType { [JsonStringEnumMemberName("amusement_tax")] @@ -9821,6 +9887,10 @@ public enum TaxType Jct, [JsonStringEnumMemberName("lease_tax")] LeaseTax, + [JsonStringEnumMemberName("mass_transit_parking_tax")] + MassTransitParkingTax, + [JsonStringEnumMemberName("parking_tax")] + ParkingTax, [JsonStringEnumMemberName("pst")] Pst, [JsonStringEnumMemberName("qst")] @@ -9840,7 +9910,7 @@ public enum TaxType /// /// Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum RateType { [JsonStringEnumMemberName("flat_amount")] @@ -9852,7 +9922,7 @@ public enum RateType /// /// The level of the jurisdiction that imposes this tax rate. Will be `null` for manually defined tax rates. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum JurisdictionLevel { [JsonStringEnumMemberName("city")] @@ -9872,7 +9942,7 @@ public enum JurisdictionLevel /// /// The type of link being generated. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter))] public enum LinkType { [JsonStringEnumMemberName("apple_terms_and_conditions")] @@ -9882,7 +9952,7 @@ public enum LinkType /// /// The button style for the choice. Can be `primary` or `secondary`. /// -[JsonConverter(typeof(JsonStringEnumConverter))] +[JsonConverter(typeof(JsonStringEnumConverter