diff --git a/Sources/actions/Types.swift b/Sources/actions/Types.swift index 9b7cf2bd3c..0792a5587b 100644 --- a/Sources/actions/Types.swift +++ b/Sources/actions/Types.swift @@ -7503,21 +7503,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/activity/Types.swift b/Sources/activity/Types.swift index d8634153ba..3834e4428b 100644 --- a/Sources/activity/Types.swift +++ b/Sources/activity/Types.swift @@ -5563,21 +5563,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/agent-tasks/Client.swift b/Sources/agent-tasks/Client.swift index c65a16152b..ad0ac35cba 100644 --- a/Sources/agent-tasks/Client.swift +++ b/Sources/agent-tasks/Client.swift @@ -286,7 +286,7 @@ public struct Client: APIProtocol { /// > [!NOTE] /// > This endpoint is in public preview and is subject to change. /// - /// Creates a new task for a repository + /// Creates a new task for a repository. /// /// /// - Remark: HTTP `POST /agents/repos/{owner}/{repo}/tasks`. diff --git a/Sources/agent-tasks/Types.swift b/Sources/agent-tasks/Types.swift index fabec465c5..bc4a4c23d2 100644 --- a/Sources/agent-tasks/Types.swift +++ b/Sources/agent-tasks/Types.swift @@ -27,7 +27,7 @@ public protocol APIProtocol: Sendable { /// > [!NOTE] /// > This endpoint is in public preview and is subject to change. /// - /// Creates a new task for a repository + /// Creates a new task for a repository. /// /// /// - Remark: HTTP `POST /agents/repos/{owner}/{repo}/tasks`. @@ -96,7 +96,7 @@ extension APIProtocol { /// > [!NOTE] /// > This endpoint is in public preview and is subject to change. /// - /// Creates a new task for a repository + /// Creates a new task for a repository. /// /// /// - Remark: HTTP `POST /agents/repos/{owner}/{repo}/tasks`. @@ -562,14 +562,16 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/provider`. public var provider: Operations.AgentTasksListTasksForRepo.Output.Ok.Body.JsonPayload.TasksPayloadPayload.ArtifactsPayloadPayload.ProviderPayload - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/type`. @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { - case githubResource = "github_resource" + case pull = "pull" case branch = "branch" } - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/type`. public var _type: Operations.AgentTasksListTasksForRepo.Output.Ok.Body.JsonPayload.TasksPayloadPayload.ArtifactsPayloadPayload._TypePayload @@ -584,11 +586,7 @@ public enum Operations { /// GitHub resource ID /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case1/id`. - public var id: Swift.Int64? - /// Resource type (e.g., pull_request, issue) - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case1/type`. - public var _type: Swift.String? + public var id: Swift.Int64 /// GraphQL global ID /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case1/global_id`. @@ -597,20 +595,16 @@ public enum Operations { /// /// - Parameters: /// - id: GitHub resource ID - /// - _type: Resource type (e.g., pull_request, issue) /// - globalId: GraphQL global ID public init( - id: Swift.Int64? = nil, - _type: Swift.String? = nil, + id: Swift.Int64, globalId: Swift.String? = nil ) { self.id = id - self._type = _type self.globalId = globalId } public enum CodingKeys: String, CodingKey { case id - case _type = "type" case globalId = "global_id" } } @@ -625,19 +619,19 @@ public enum Operations { /// Head branch name /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case2/head_ref`. - public var headRef: Swift.String? + public var headRef: Swift.String /// Base branch name /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case2/base_ref`. - public var baseRef: Swift.String? + public var baseRef: Swift.String /// Creates a new `Case2Payload`. /// /// - Parameters: /// - headRef: Head branch name /// - baseRef: Base branch name public init( - headRef: Swift.String? = nil, - baseRef: Swift.String? = nil + headRef: Swift.String, + baseRef: Swift.String ) { self.headRef = headRef self.baseRef = baseRef @@ -688,7 +682,7 @@ public enum Operations { /// /// - Parameters: /// - provider: Provider namespace - /// - _type: Discriminator for data shape + /// - _type: Type of artifact. Available Values: `pull`, `branch`. /// - data: Resource data (shape depends on type) public init( provider: Operations.AgentTasksListTasksForRepo.Output.Ok.Body.JsonPayload.TasksPayloadPayload.ArtifactsPayloadPayload.ProviderPayload, @@ -1595,7 +1589,7 @@ public enum Operations { /// > [!NOTE] /// > This endpoint is in public preview and is subject to change. /// - /// Creates a new task for a repository + /// Creates a new task for a repository. /// /// /// - Remark: HTTP `POST /agents/repos/{owner}/{repo}/tasks`. @@ -1643,27 +1637,15 @@ public enum Operations { @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json`. public struct JsonPayload: Codable, Hashable, Sendable { - /// Agent ID (optional, defaults to coding agent) + /// The user's prompt for the agent /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/agent_id`. - public var agentId: Swift.Int64? - /// Additional prompting for the agent - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/problem_statement`. - public var problemStatement: Swift.String? - /// User's written prompt - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/event_content`. - public var eventContent: Swift.String + /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/prompt`. + public var prompt: Swift.String /// The model to use for this task. The allowed models may change over time and depend on the user's GitHub Copilot plan and organization policies. Currently supported values: `claude-sonnet-4.6`, `claude-opus-4.6`, `gpt-5.2-codex`, `gpt-5.3-codex`, `gpt-5.4`, `claude-sonnet-4.5`, `claude-opus-4.5` /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/model`. public var model: Swift.String? - /// Custom agent identifier - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/custom_agent`. - public var customAgent: Swift.String? - /// Whether to create a PR + /// Whether to create a PR. /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/requestBody/json/create_pull_request`. public var createPullRequest: Swift.Bool? @@ -1674,36 +1656,24 @@ public enum Operations { /// Creates a new `JsonPayload`. /// /// - Parameters: - /// - agentId: Agent ID (optional, defaults to coding agent) - /// - problemStatement: Additional prompting for the agent - /// - eventContent: User's written prompt + /// - prompt: The user's prompt for the agent /// - model: The model to use for this task. The allowed models may change over time and depend on the user's GitHub Copilot plan and organization policies. Currently supported values: `claude-sonnet-4.6`, `claude-opus-4.6`, `gpt-5.2-codex`, `gpt-5.3-codex`, `gpt-5.4`, `claude-sonnet-4.5`, `claude-opus-4.5` - /// - customAgent: Custom agent identifier - /// - createPullRequest: Whether to create a PR + /// - createPullRequest: Whether to create a PR. /// - baseRef: Base ref for new branch/PR public init( - agentId: Swift.Int64? = nil, - problemStatement: Swift.String? = nil, - eventContent: Swift.String, + prompt: Swift.String, model: Swift.String? = nil, - customAgent: Swift.String? = nil, createPullRequest: Swift.Bool? = nil, baseRef: Swift.String? = nil ) { - self.agentId = agentId - self.problemStatement = problemStatement - self.eventContent = eventContent + self.prompt = prompt self.model = model - self.customAgent = customAgent self.createPullRequest = createPullRequest self.baseRef = baseRef } public enum CodingKeys: String, CodingKey { - case agentId = "agent_id" - case problemStatement = "problem_statement" - case eventContent = "event_content" + case prompt case model - case customAgent = "custom_agent" case createPullRequest = "create_pull_request" case baseRef = "base_ref" } @@ -1922,14 +1892,16 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/provider`. public var provider: Operations.AgentTasksCreateTask.Output.Created.Body.JsonPayload.ArtifactsPayloadPayload.ProviderPayload - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/type`. @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { - case githubResource = "github_resource" + case pull = "pull" case branch = "branch" } - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/type`. public var _type: Operations.AgentTasksCreateTask.Output.Created.Body.JsonPayload.ArtifactsPayloadPayload._TypePayload @@ -1944,11 +1916,7 @@ public enum Operations { /// GitHub resource ID /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/data/case1/id`. - public var id: Swift.Int64? - /// Resource type (e.g., pull_request, issue) - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/data/case1/type`. - public var _type: Swift.String? + public var id: Swift.Int64 /// GraphQL global ID /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/data/case1/global_id`. @@ -1957,20 +1925,16 @@ public enum Operations { /// /// - Parameters: /// - id: GitHub resource ID - /// - _type: Resource type (e.g., pull_request, issue) /// - globalId: GraphQL global ID public init( - id: Swift.Int64? = nil, - _type: Swift.String? = nil, + id: Swift.Int64, globalId: Swift.String? = nil ) { self.id = id - self._type = _type self.globalId = globalId } public enum CodingKeys: String, CodingKey { case id - case _type = "type" case globalId = "global_id" } } @@ -1985,19 +1949,19 @@ public enum Operations { /// Head branch name /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/data/case2/head_ref`. - public var headRef: Swift.String? + public var headRef: Swift.String /// Base branch name /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/POST/responses/201/content/json/ArtifactsPayload/data/case2/base_ref`. - public var baseRef: Swift.String? + public var baseRef: Swift.String /// Creates a new `Case2Payload`. /// /// - Parameters: /// - headRef: Head branch name /// - baseRef: Base branch name public init( - headRef: Swift.String? = nil, - baseRef: Swift.String? = nil + headRef: Swift.String, + baseRef: Swift.String ) { self.headRef = headRef self.baseRef = baseRef @@ -2048,7 +2012,7 @@ public enum Operations { /// /// - Parameters: /// - provider: Provider namespace - /// - _type: Discriminator for data shape + /// - _type: Type of artifact. Available Values: `pull`, `branch`. /// - data: Resource data (shape depends on type) public init( provider: Operations.AgentTasksCreateTask.Output.Created.Body.JsonPayload.ArtifactsPayloadPayload.ProviderPayload, @@ -3038,14 +3002,16 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/provider`. public var provider: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value1Payload.ArtifactsPayloadPayload.ProviderPayload - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/type`. @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { - case githubResource = "github_resource" + case pull = "pull" case branch = "branch" } - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/type`. public var _type: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value1Payload.ArtifactsPayloadPayload._TypePayload @@ -3060,11 +3026,7 @@ public enum Operations { /// GitHub resource ID /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case1/id`. - public var id: Swift.Int64? - /// Resource type (e.g., pull_request, issue) - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case1/type`. - public var _type: Swift.String? + public var id: Swift.Int64 /// GraphQL global ID /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case1/global_id`. @@ -3073,20 +3035,16 @@ public enum Operations { /// /// - Parameters: /// - id: GitHub resource ID - /// - _type: Resource type (e.g., pull_request, issue) /// - globalId: GraphQL global ID public init( - id: Swift.Int64? = nil, - _type: Swift.String? = nil, + id: Swift.Int64, globalId: Swift.String? = nil ) { self.id = id - self._type = _type self.globalId = globalId } public enum CodingKeys: String, CodingKey { case id - case _type = "type" case globalId = "global_id" } } @@ -3101,19 +3059,19 @@ public enum Operations { /// Head branch name /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case2/head_ref`. - public var headRef: Swift.String? + public var headRef: Swift.String /// Base branch name /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case2/base_ref`. - public var baseRef: Swift.String? + public var baseRef: Swift.String /// Creates a new `Case2Payload`. /// /// - Parameters: /// - headRef: Head branch name /// - baseRef: Base branch name public init( - headRef: Swift.String? = nil, - baseRef: Swift.String? = nil + headRef: Swift.String, + baseRef: Swift.String ) { self.headRef = headRef self.baseRef = baseRef @@ -3164,7 +3122,7 @@ public enum Operations { /// /// - Parameters: /// - provider: Provider namespace - /// - _type: Discriminator for data shape + /// - _type: Type of artifact. Available Values: `pull`, `branch`. /// - data: Resource data (shape depends on type) public init( provider: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value1Payload.ArtifactsPayloadPayload.ProviderPayload, @@ -3355,14 +3313,6 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/repository`. public var repository: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.RepositoryPayload? - /// Agent ID - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/agent_id`. - public var agentId: Swift.Int64? - /// Agent internal task ID - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/agent_task_id`. - public var agentTaskId: Swift.String? /// Task ID this session belongs to /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/task_id`. @@ -3396,42 +3346,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/completed_at`. public var completedAt: Foundation.Date? - /// Type of event that triggered this session - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_type`. - public var eventType: Swift.String? - /// URL of the triggering event - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_url`. - public var eventUrl: Swift.String? /// Content of the triggering event /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_content`. - public var eventContent: Swift.String? - /// Identifiers for tracking - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_identifiers`. - public var eventIdentifiers: [Swift.String]? - /// Type of resource associated with this session - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_type`. - public var resourceType: Swift.String? - /// Resource ID - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_id`. - public var resourceId: Swift.Int64? - /// Resource number (e.g., PR number) - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_number`. - public var resourceNumber: Swift.Int32? - /// GraphQL global ID of the resource - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_global_id`. - public var resourceGlobalId: Swift.String? - /// State of the associated resource - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_state`. - public var resourceState: Swift.String? + /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/prompt`. + public var prompt: Swift.String? /// Head branch name /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/head_ref`. @@ -3440,18 +3358,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/base_ref`. public var baseRef: Swift.String? - /// GitHub Actions workflow run ID - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/workflow_run_id`. - public var workflowRunId: Swift.Int64? /// Model used for this session /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/model`. public var model: Swift.String? - /// Premium request count - /// - /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/premium_requests`. - public var premiumRequests: Swift.Double? /// Error details for a failed session /// /// - Remark: Generated from `#/paths/agents/repos/{owner}/{repo}/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/error`. @@ -3483,27 +3393,15 @@ public enum Operations { /// - user: The user who created this session /// - owner: The owner of the repository /// - repository: The repository this session belongs to - /// - agentId: Agent ID - /// - agentTaskId: Agent internal task ID /// - taskId: Task ID this session belongs to /// - state: Current state of a session /// - createdAt: Creation timestamp /// - updatedAt: Last update timestamp /// - completedAt: Completion timestamp - /// - eventType: Type of event that triggered this session - /// - eventUrl: URL of the triggering event - /// - eventContent: Content of the triggering event - /// - eventIdentifiers: Identifiers for tracking - /// - resourceType: Type of resource associated with this session - /// - resourceId: Resource ID - /// - resourceNumber: Resource number (e.g., PR number) - /// - resourceGlobalId: GraphQL global ID of the resource - /// - resourceState: State of the associated resource + /// - prompt: Content of the triggering event /// - headRef: Head branch name /// - baseRef: Base branch name - /// - workflowRunId: GitHub Actions workflow run ID /// - model: Model used for this session - /// - premiumRequests: Premium request count /// - error: Error details for a failed session public init( id: Swift.String, @@ -3511,27 +3409,15 @@ public enum Operations { user: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.UserPayload? = nil, owner: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.OwnerPayload? = nil, repository: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.RepositoryPayload? = nil, - agentId: Swift.Int64? = nil, - agentTaskId: Swift.String? = nil, taskId: Swift.String? = nil, state: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.StatePayload, createdAt: Foundation.Date, updatedAt: Foundation.Date? = nil, completedAt: Foundation.Date? = nil, - eventType: Swift.String? = nil, - eventUrl: Swift.String? = nil, - eventContent: Swift.String? = nil, - eventIdentifiers: [Swift.String]? = nil, - resourceType: Swift.String? = nil, - resourceId: Swift.Int64? = nil, - resourceNumber: Swift.Int32? = nil, - resourceGlobalId: Swift.String? = nil, - resourceState: Swift.String? = nil, + prompt: Swift.String? = nil, headRef: Swift.String? = nil, baseRef: Swift.String? = nil, - workflowRunId: Swift.Int64? = nil, model: Swift.String? = nil, - premiumRequests: Swift.Double? = nil, error: Operations.AgentTasksGetTaskByRepoAndId.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload._ErrorPayload? = nil ) { self.id = id @@ -3539,27 +3425,15 @@ public enum Operations { self.user = user self.owner = owner self.repository = repository - self.agentId = agentId - self.agentTaskId = agentTaskId self.taskId = taskId self.state = state self.createdAt = createdAt self.updatedAt = updatedAt self.completedAt = completedAt - self.eventType = eventType - self.eventUrl = eventUrl - self.eventContent = eventContent - self.eventIdentifiers = eventIdentifiers - self.resourceType = resourceType - self.resourceId = resourceId - self.resourceNumber = resourceNumber - self.resourceGlobalId = resourceGlobalId - self.resourceState = resourceState + self.prompt = prompt self.headRef = headRef self.baseRef = baseRef - self.workflowRunId = workflowRunId self.model = model - self.premiumRequests = premiumRequests self.error = error } public enum CodingKeys: String, CodingKey { @@ -3568,27 +3442,15 @@ public enum Operations { case user case owner case repository - case agentId = "agent_id" - case agentTaskId = "agent_task_id" case taskId = "task_id" case state case createdAt = "created_at" case updatedAt = "updated_at" case completedAt = "completed_at" - case eventType = "event_type" - case eventUrl = "event_url" - case eventContent = "event_content" - case eventIdentifiers = "event_identifiers" - case resourceType = "resource_type" - case resourceId = "resource_id" - case resourceNumber = "resource_number" - case resourceGlobalId = "resource_global_id" - case resourceState = "resource_state" + case prompt case headRef = "head_ref" case baseRef = "base_ref" - case workflowRunId = "workflow_run_id" case model - case premiumRequests = "premium_requests" case error } } @@ -4709,14 +4571,16 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/provider`. public var provider: Operations.AgentTasksListTasks.Output.Ok.Body.JsonPayload.TasksPayloadPayload.ArtifactsPayloadPayload.ProviderPayload - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/type`. @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { - case githubResource = "github_resource" + case pull = "pull" case branch = "branch" } - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/type`. public var _type: Operations.AgentTasksListTasks.Output.Ok.Body.JsonPayload.TasksPayloadPayload.ArtifactsPayloadPayload._TypePayload @@ -4731,11 +4595,7 @@ public enum Operations { /// GitHub resource ID /// /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case1/id`. - public var id: Swift.Int64? - /// Resource type (e.g., pull_request, issue) - /// - /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case1/type`. - public var _type: Swift.String? + public var id: Swift.Int64 /// GraphQL global ID /// /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case1/global_id`. @@ -4744,20 +4604,16 @@ public enum Operations { /// /// - Parameters: /// - id: GitHub resource ID - /// - _type: Resource type (e.g., pull_request, issue) /// - globalId: GraphQL global ID public init( - id: Swift.Int64? = nil, - _type: Swift.String? = nil, + id: Swift.Int64, globalId: Swift.String? = nil ) { self.id = id - self._type = _type self.globalId = globalId } public enum CodingKeys: String, CodingKey { case id - case _type = "type" case globalId = "global_id" } } @@ -4772,19 +4628,19 @@ public enum Operations { /// Head branch name /// /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case2/head_ref`. - public var headRef: Swift.String? + public var headRef: Swift.String /// Base branch name /// /// - Remark: Generated from `#/paths/agents/tasks/GET/responses/200/content/json/TasksPayload/ArtifactsPayload/data/case2/base_ref`. - public var baseRef: Swift.String? + public var baseRef: Swift.String /// Creates a new `Case2Payload`. /// /// - Parameters: /// - headRef: Head branch name /// - baseRef: Base branch name public init( - headRef: Swift.String? = nil, - baseRef: Swift.String? = nil + headRef: Swift.String, + baseRef: Swift.String ) { self.headRef = headRef self.baseRef = baseRef @@ -4835,7 +4691,7 @@ public enum Operations { /// /// - Parameters: /// - provider: Provider namespace - /// - _type: Discriminator for data shape + /// - _type: Type of artifact. Available Values: `pull`, `branch`. /// - data: Resource data (shape depends on type) public init( provider: Operations.AgentTasksListTasks.Output.Ok.Body.JsonPayload.TasksPayloadPayload.ArtifactsPayloadPayload.ProviderPayload, @@ -5851,14 +5707,16 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/provider`. public var provider: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value1Payload.ArtifactsPayloadPayload.ProviderPayload - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/type`. @frozen public enum _TypePayload: String, Codable, Hashable, Sendable, CaseIterable { - case githubResource = "github_resource" + case pull = "pull" case branch = "branch" } - /// Discriminator for data shape + /// Type of artifact. Available Values: `pull`, `branch`. + /// /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/type`. public var _type: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value1Payload.ArtifactsPayloadPayload._TypePayload @@ -5873,11 +5731,7 @@ public enum Operations { /// GitHub resource ID /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case1/id`. - public var id: Swift.Int64? - /// Resource type (e.g., pull_request, issue) - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case1/type`. - public var _type: Swift.String? + public var id: Swift.Int64 /// GraphQL global ID /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case1/global_id`. @@ -5886,20 +5740,16 @@ public enum Operations { /// /// - Parameters: /// - id: GitHub resource ID - /// - _type: Resource type (e.g., pull_request, issue) /// - globalId: GraphQL global ID public init( - id: Swift.Int64? = nil, - _type: Swift.String? = nil, + id: Swift.Int64, globalId: Swift.String? = nil ) { self.id = id - self._type = _type self.globalId = globalId } public enum CodingKeys: String, CodingKey { case id - case _type = "type" case globalId = "global_id" } } @@ -5914,19 +5764,19 @@ public enum Operations { /// Head branch name /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case2/head_ref`. - public var headRef: Swift.String? + public var headRef: Swift.String /// Base branch name /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value1/ArtifactsPayload/data/case2/base_ref`. - public var baseRef: Swift.String? + public var baseRef: Swift.String /// Creates a new `Case2Payload`. /// /// - Parameters: /// - headRef: Head branch name /// - baseRef: Base branch name public init( - headRef: Swift.String? = nil, - baseRef: Swift.String? = nil + headRef: Swift.String, + baseRef: Swift.String ) { self.headRef = headRef self.baseRef = baseRef @@ -5977,7 +5827,7 @@ public enum Operations { /// /// - Parameters: /// - provider: Provider namespace - /// - _type: Discriminator for data shape + /// - _type: Type of artifact. Available Values: `pull`, `branch`. /// - data: Resource data (shape depends on type) public init( provider: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value1Payload.ArtifactsPayloadPayload.ProviderPayload, @@ -6168,14 +6018,6 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/repository`. public var repository: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.RepositoryPayload? - /// Agent ID - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/agent_id`. - public var agentId: Swift.Int64? - /// Agent internal task ID - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/agent_task_id`. - public var agentTaskId: Swift.String? /// Task ID this session belongs to /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/task_id`. @@ -6209,42 +6051,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/completed_at`. public var completedAt: Foundation.Date? - /// Type of event that triggered this session - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_type`. - public var eventType: Swift.String? - /// URL of the triggering event - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_url`. - public var eventUrl: Swift.String? /// Content of the triggering event /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_content`. - public var eventContent: Swift.String? - /// Identifiers for tracking - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/event_identifiers`. - public var eventIdentifiers: [Swift.String]? - /// Type of resource associated with this session - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_type`. - public var resourceType: Swift.String? - /// Resource ID - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_id`. - public var resourceId: Swift.Int64? - /// Resource number (e.g., PR number) - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_number`. - public var resourceNumber: Swift.Int32? - /// GraphQL global ID of the resource - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_global_id`. - public var resourceGlobalId: Swift.String? - /// State of the associated resource - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/resource_state`. - public var resourceState: Swift.String? + /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/prompt`. + public var prompt: Swift.String? /// Head branch name /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/head_ref`. @@ -6253,18 +6063,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/base_ref`. public var baseRef: Swift.String? - /// GitHub Actions workflow run ID - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/workflow_run_id`. - public var workflowRunId: Swift.Int64? /// Model used for this session /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/model`. public var model: Swift.String? - /// Premium request count - /// - /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/premium_requests`. - public var premiumRequests: Swift.Double? /// Error details for a failed session /// /// - Remark: Generated from `#/paths/agents/tasks/{task_id}/GET/responses/200/content/json/value2/SessionsPayload/error`. @@ -6296,27 +6098,15 @@ public enum Operations { /// - user: The user who created this session /// - owner: The owner of the repository /// - repository: The repository this session belongs to - /// - agentId: Agent ID - /// - agentTaskId: Agent internal task ID /// - taskId: Task ID this session belongs to /// - state: Current state of a session /// - createdAt: Creation timestamp /// - updatedAt: Last update timestamp /// - completedAt: Completion timestamp - /// - eventType: Type of event that triggered this session - /// - eventUrl: URL of the triggering event - /// - eventContent: Content of the triggering event - /// - eventIdentifiers: Identifiers for tracking - /// - resourceType: Type of resource associated with this session - /// - resourceId: Resource ID - /// - resourceNumber: Resource number (e.g., PR number) - /// - resourceGlobalId: GraphQL global ID of the resource - /// - resourceState: State of the associated resource + /// - prompt: Content of the triggering event /// - headRef: Head branch name /// - baseRef: Base branch name - /// - workflowRunId: GitHub Actions workflow run ID /// - model: Model used for this session - /// - premiumRequests: Premium request count /// - error: Error details for a failed session public init( id: Swift.String, @@ -6324,27 +6114,15 @@ public enum Operations { user: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.UserPayload? = nil, owner: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.OwnerPayload? = nil, repository: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.RepositoryPayload? = nil, - agentId: Swift.Int64? = nil, - agentTaskId: Swift.String? = nil, taskId: Swift.String? = nil, state: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload.StatePayload, createdAt: Foundation.Date, updatedAt: Foundation.Date? = nil, completedAt: Foundation.Date? = nil, - eventType: Swift.String? = nil, - eventUrl: Swift.String? = nil, - eventContent: Swift.String? = nil, - eventIdentifiers: [Swift.String]? = nil, - resourceType: Swift.String? = nil, - resourceId: Swift.Int64? = nil, - resourceNumber: Swift.Int32? = nil, - resourceGlobalId: Swift.String? = nil, - resourceState: Swift.String? = nil, + prompt: Swift.String? = nil, headRef: Swift.String? = nil, baseRef: Swift.String? = nil, - workflowRunId: Swift.Int64? = nil, model: Swift.String? = nil, - premiumRequests: Swift.Double? = nil, error: Operations.AgentTasksGetTaskById.Output.Ok.Body.JsonPayload.Value2Payload.SessionsPayloadPayload._ErrorPayload? = nil ) { self.id = id @@ -6352,27 +6130,15 @@ public enum Operations { self.user = user self.owner = owner self.repository = repository - self.agentId = agentId - self.agentTaskId = agentTaskId self.taskId = taskId self.state = state self.createdAt = createdAt self.updatedAt = updatedAt self.completedAt = completedAt - self.eventType = eventType - self.eventUrl = eventUrl - self.eventContent = eventContent - self.eventIdentifiers = eventIdentifiers - self.resourceType = resourceType - self.resourceId = resourceId - self.resourceNumber = resourceNumber - self.resourceGlobalId = resourceGlobalId - self.resourceState = resourceState + self.prompt = prompt self.headRef = headRef self.baseRef = baseRef - self.workflowRunId = workflowRunId self.model = model - self.premiumRequests = premiumRequests self.error = error } public enum CodingKeys: String, CodingKey { @@ -6381,27 +6147,15 @@ public enum Operations { case user case owner case repository - case agentId = "agent_id" - case agentTaskId = "agent_task_id" case taskId = "task_id" case state case createdAt = "created_at" case updatedAt = "updated_at" case completedAt = "completed_at" - case eventType = "event_type" - case eventUrl = "event_url" - case eventContent = "event_content" - case eventIdentifiers = "event_identifiers" - case resourceType = "resource_type" - case resourceId = "resource_id" - case resourceNumber = "resource_number" - case resourceGlobalId = "resource_global_id" - case resourceState = "resource_state" + case prompt case headRef = "head_ref" case baseRef = "base_ref" - case workflowRunId = "workflow_run_id" case model - case premiumRequests = "premium_requests" case error } } diff --git a/Sources/checks/Types.swift b/Sources/checks/Types.swift index bbec88505b..d798fcfc34 100644 --- a/Sources/checks/Types.swift +++ b/Sources/checks/Types.swift @@ -1366,21 +1366,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/code-security/Types.swift b/Sources/code-security/Types.swift index 82e988572c..312b530543 100644 --- a/Sources/code-security/Types.swift +++ b/Sources/code-security/Types.swift @@ -1192,6 +1192,17 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// The ID of the security configuration associated with this bypass reviewer /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_delegated_bypass_options/ReviewersPayload/security_configuration_id`. @@ -1201,19 +1212,23 @@ public enum Components { /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer /// - securityConfigurationId: The ID of the security configuration associated with this bypass reviewer public init( reviewerId: Swift.Int, reviewerType: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.CodeSecurityConfiguration.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil, securityConfigurationId: Swift.Int? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode self.securityConfigurationId = securityConfigurationId } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode case securityConfigurationId = "security_configuration_id" } } @@ -5680,21 +5695,36 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Operations.CodeSecurityCreateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass @@ -7114,21 +7144,36 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Operations.CodeSecurityUpdateConfiguration.Input.Body.JsonPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/codespaces/Types.swift b/Sources/codespaces/Types.swift index fa7a62cc8d..e8f9c49d1f 100644 --- a/Sources/codespaces/Types.swift +++ b/Sources/codespaces/Types.swift @@ -3034,21 +3034,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/copilot/Types.swift b/Sources/copilot/Types.swift index 5296313674..ac0074f262 100644 --- a/Sources/copilot/Types.swift +++ b/Sources/copilot/Types.swift @@ -1996,21 +1996,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/dependabot/Types.swift b/Sources/dependabot/Types.swift index 5d00c226b8..7da680974c 100644 --- a/Sources/dependabot/Types.swift +++ b/Sources/dependabot/Types.swift @@ -2845,21 +2845,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/gists/Client.swift b/Sources/gists/Client.swift index dc80f9c4b6..6f861bd03c 100644 --- a/Sources/gists/Client.swift +++ b/Sources/gists/Client.swift @@ -586,7 +586,6 @@ public struct Client: APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. @@ -705,7 +704,6 @@ public struct Client: APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. @@ -917,7 +915,6 @@ public struct Client: APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. @@ -1054,7 +1051,6 @@ public struct Client: APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. @@ -1186,7 +1182,6 @@ public struct Client: APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. @@ -1302,7 +1297,6 @@ public struct Client: APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. @@ -2168,7 +2162,6 @@ public struct Client: APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. diff --git a/Sources/gists/Types.swift b/Sources/gists/Types.swift index b9f94ba9a9..1f21722b7e 100644 --- a/Sources/gists/Types.swift +++ b/Sources/gists/Types.swift @@ -51,7 +51,6 @@ public protocol APIProtocol: Sendable { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. @@ -67,7 +66,6 @@ public protocol APIProtocol: Sendable { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. @@ -86,7 +84,6 @@ public protocol APIProtocol: Sendable { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. @@ -98,7 +95,6 @@ public protocol APIProtocol: Sendable { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. @@ -110,7 +106,6 @@ public protocol APIProtocol: Sendable { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. @@ -122,7 +117,6 @@ public protocol APIProtocol: Sendable { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. @@ -183,7 +177,6 @@ public protocol APIProtocol: Sendable { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. @@ -271,7 +264,6 @@ extension APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. @@ -295,7 +287,6 @@ extension APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. @@ -332,7 +323,6 @@ extension APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. @@ -354,7 +344,6 @@ extension APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. @@ -376,7 +365,6 @@ extension APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. @@ -396,7 +384,6 @@ extension APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. @@ -527,7 +514,6 @@ extension APIProtocol { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. @@ -3741,7 +3727,6 @@ public enum Operations { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/get(gists/get)`. @@ -3959,7 +3944,6 @@ public enum Operations { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/patch(gists/update)`. @@ -4426,7 +4410,6 @@ public enum Operations { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/get(gists/list-comments)`. @@ -4686,7 +4669,6 @@ public enum Operations { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `POST /gists/{gist_id}/comments`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/post(gists/create-comment)`. @@ -4945,7 +4927,6 @@ public enum Operations { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/get(gists/get-comment)`. @@ -5168,7 +5149,6 @@ public enum Operations { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `PATCH /gists/{gist_id}/comments/{comment_id}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/comments/{comment_id}/patch(gists/update-comment)`. @@ -6941,7 +6921,6 @@ public enum Operations { /// This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." /// /// - **`application/vnd.github.raw+json`**: Returns the raw markdown. This is the default if you do not pass any specific media type. - /// - **`application/vnd.github.base64+json`**: Returns the base64-encoded contents. This can be useful if your gist contains any invalid UTF-8 sequences. /// /// - Remark: HTTP `GET /gists/{gist_id}/{sha}`. /// - Remark: Generated from `#/paths//gists/{gist_id}/{sha}/get(gists/get-revision)`. diff --git a/Sources/migrations/Types.swift b/Sources/migrations/Types.swift index 4bd956c5bc..ecdc58fd22 100644 --- a/Sources/migrations/Types.swift +++ b/Sources/migrations/Types.swift @@ -2353,21 +2353,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/orgs/Types.swift b/Sources/orgs/Types.swift index 897f22566f..8148a7ac0b 100644 --- a/Sources/orgs/Types.swift +++ b/Sources/orgs/Types.swift @@ -5571,21 +5571,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/packages/Types.swift b/Sources/packages/Types.swift index ff53668917..77e9139e04 100644 --- a/Sources/packages/Types.swift +++ b/Sources/packages/Types.swift @@ -1441,21 +1441,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/repos/Client.swift b/Sources/repos/Client.swift index 315b3899c4..dceaad6f42 100644 --- a/Sources/repos/Client.swift +++ b/Sources/repos/Client.swift @@ -7634,7 +7634,10 @@ public struct Client: APIProtocol { let chosenContentType = try converter.bestContentType( received: contentType, options: [ - "application/json" + "application/json", + "application/vnd.github.diff", + "application/vnd.github.patch", + "application/vnd.github.sha" ] ) switch chosenContentType { @@ -7646,6 +7649,30 @@ public struct Client: APIProtocol { .json(value) } ) + case "application/vnd.github.diff": + body = try converter.getResponseBodyAsBinary( + OpenAPIRuntime.HTTPBody.self, + from: responseBody, + transforming: { value in + .applicationVnd_github_diff(value) + } + ) + case "application/vnd.github.patch": + body = try converter.getResponseBodyAsBinary( + OpenAPIRuntime.HTTPBody.self, + from: responseBody, + transforming: { value in + .applicationVnd_github_patch(value) + } + ) + case "application/vnd.github.sha": + body = try converter.getResponseBodyAsBinary( + OpenAPIRuntime.HTTPBody.self, + from: responseBody, + transforming: { value in + .applicationVnd_github_sha(value) + } + ) default: preconditionFailure("bestContentType chose an invalid content type.") } @@ -8170,7 +8197,9 @@ public struct Client: APIProtocol { let chosenContentType = try converter.bestContentType( received: contentType, options: [ - "application/json" + "application/json", + "application/vnd.github.diff", + "application/vnd.github.patch" ] ) switch chosenContentType { @@ -8182,6 +8211,22 @@ public struct Client: APIProtocol { .json(value) } ) + case "application/vnd.github.diff": + body = try converter.getResponseBodyAsBinary( + OpenAPIRuntime.HTTPBody.self, + from: responseBody, + transforming: { value in + .applicationVnd_github_diff(value) + } + ) + case "application/vnd.github.patch": + body = try converter.getResponseBodyAsBinary( + OpenAPIRuntime.HTTPBody.self, + from: responseBody, + transforming: { value in + .applicationVnd_github_patch(value) + } + ) default: preconditionFailure("bestContentType chose an invalid content type.") } diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index b924b94a94..b8e50b17f8 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -9093,21 +9093,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass @@ -26790,21 +26805,36 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Operations.ReposUpdate.Input.Body.JsonPayload.SecurityAndAnalysisPayload.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass. @@ -40287,6 +40317,68 @@ public enum Operations { switch self { case let .json(body): return body + default: + try throwUnexpectedResponseBody( + expectedContent: "application/json", + body: self + ) + } + } + } + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/responses/200/content/application\/vnd.github.diff`. + case applicationVnd_github_diff(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationVnd_github_diff`. + /// + /// - Throws: An error if `self` is not `.applicationVnd_github_diff`. + /// - SeeAlso: `.applicationVnd_github_diff`. + public var applicationVnd_github_diff: OpenAPIRuntime.HTTPBody { + get throws { + switch self { + case let .applicationVnd_github_diff(body): + return body + default: + try throwUnexpectedResponseBody( + expectedContent: "application/vnd.github.diff", + body: self + ) + } + } + } + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/responses/200/content/application\/vnd.github.patch`. + case applicationVnd_github_patch(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationVnd_github_patch`. + /// + /// - Throws: An error if `self` is not `.applicationVnd_github_patch`. + /// - SeeAlso: `.applicationVnd_github_patch`. + public var applicationVnd_github_patch: OpenAPIRuntime.HTTPBody { + get throws { + switch self { + case let .applicationVnd_github_patch(body): + return body + default: + try throwUnexpectedResponseBody( + expectedContent: "application/vnd.github.patch", + body: self + ) + } + } + } + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{ref}/GET/responses/200/content/application\/vnd.github.sha`. + case applicationVnd_github_sha(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationVnd_github_sha`. + /// + /// - Throws: An error if `self` is not `.applicationVnd_github_sha`. + /// - SeeAlso: `.applicationVnd_github_sha`. + public var applicationVnd_github_sha: OpenAPIRuntime.HTTPBody { + get throws { + switch self { + case let .applicationVnd_github_sha(body): + return body + default: + try throwUnexpectedResponseBody( + expectedContent: "application/vnd.github.sha", + body: self + ) } } } @@ -40446,11 +40538,20 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json + case applicationVnd_github_diff + case applicationVnd_github_patch + case applicationVnd_github_sha case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json + case "application/vnd.github.diff": + self = .applicationVnd_github_diff + case "application/vnd.github.patch": + self = .applicationVnd_github_patch + case "application/vnd.github.sha": + self = .applicationVnd_github_sha default: self = .other(rawValue) } @@ -40461,11 +40562,20 @@ public enum Operations { return string case .json: return "application/json" + case .applicationVnd_github_diff: + return "application/vnd.github.diff" + case .applicationVnd_github_patch: + return "application/vnd.github.patch" + case .applicationVnd_github_sha: + return "application/vnd.github.sha" } } public static var allCases: [Self] { [ - .json + .json, + .applicationVnd_github_diff, + .applicationVnd_github_patch, + .applicationVnd_github_sha ] } } @@ -41202,6 +41312,49 @@ public enum Operations { switch self { case let .json(body): return body + default: + try throwUnexpectedResponseBody( + expectedContent: "application/json", + body: self + ) + } + } + } + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/responses/200/content/application\/vnd.github.diff`. + case applicationVnd_github_diff(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationVnd_github_diff`. + /// + /// - Throws: An error if `self` is not `.applicationVnd_github_diff`. + /// - SeeAlso: `.applicationVnd_github_diff`. + public var applicationVnd_github_diff: OpenAPIRuntime.HTTPBody { + get throws { + switch self { + case let .applicationVnd_github_diff(body): + return body + default: + try throwUnexpectedResponseBody( + expectedContent: "application/vnd.github.diff", + body: self + ) + } + } + } + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/compare/{basehead}/GET/responses/200/content/application\/vnd.github.patch`. + case applicationVnd_github_patch(OpenAPIRuntime.HTTPBody) + /// The associated value of the enum case if `self` is `.applicationVnd_github_patch`. + /// + /// - Throws: An error if `self` is not `.applicationVnd_github_patch`. + /// - SeeAlso: `.applicationVnd_github_patch`. + public var applicationVnd_github_patch: OpenAPIRuntime.HTTPBody { + get throws { + switch self { + case let .applicationVnd_github_patch(body): + return body + default: + try throwUnexpectedResponseBody( + expectedContent: "application/vnd.github.patch", + body: self + ) } } } @@ -41315,11 +41468,17 @@ public enum Operations { } @frozen public enum AcceptableContentType: AcceptableProtocol { case json + case applicationVnd_github_diff + case applicationVnd_github_patch case other(Swift.String) public init?(rawValue: Swift.String) { switch rawValue.lowercased() { case "application/json": self = .json + case "application/vnd.github.diff": + self = .applicationVnd_github_diff + case "application/vnd.github.patch": + self = .applicationVnd_github_patch default: self = .other(rawValue) } @@ -41330,11 +41489,17 @@ public enum Operations { return string case .json: return "application/json" + case .applicationVnd_github_diff: + return "application/vnd.github.diff" + case .applicationVnd_github_patch: + return "application/vnd.github.patch" } } public static var allCases: [Self] { [ - .json + .json, + .applicationVnd_github_diff, + .applicationVnd_github_patch ] } } diff --git a/Sources/search/Types.swift b/Sources/search/Types.swift index 131bb56d69..2737367353 100644 --- a/Sources/search/Types.swift +++ b/Sources/search/Types.swift @@ -2902,21 +2902,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/secret-scanning/Client.swift b/Sources/secret-scanning/Client.swift index dd4d2e79d2..0284e81c5e 100644 --- a/Sources/secret-scanning/Client.swift +++ b/Sources/secret-scanning/Client.swift @@ -78,6 +78,27 @@ public struct Client: APIProtocol { name: "secret_type", value: input.query.secretType ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "exclude_secret_types", + value: input.query.excludeSecretTypes + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "exclude_providers", + value: input.query.excludeProviders + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "providers", + value: input.query.providers + ) try converter.setQueryItemAsURI( in: &request, style: .form, @@ -601,6 +622,27 @@ public struct Client: APIProtocol { name: "secret_type", value: input.query.secretType ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "exclude_secret_types", + value: input.query.excludeSecretTypes + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "exclude_providers", + value: input.query.excludeProviders + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "providers", + value: input.query.providers + ) try converter.setQueryItemAsURI( in: &request, style: .form, diff --git a/Sources/secret-scanning/Types.swift b/Sources/secret-scanning/Types.swift index 6515ebb38c..8b7a3dd18e 100644 --- a/Sources/secret-scanning/Types.swift +++ b/Sources/secret-scanning/Types.swift @@ -1888,6 +1888,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/secret_type_display_name`. public var secretTypeDisplayName: Swift.String? + /// The provider of the secret that was detected. + /// + /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/provider`. + public var provider: Swift.String? + /// 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. + /// + /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/provider_slug`. + public var providerSlug: Swift.String? /// The secret that was detected. /// /// - Remark: Generated from `#/components/schemas/organization-secret-scanning-alert/secret`. @@ -1979,6 +1987,8 @@ public enum Components { /// - resolvedBy: /// - secretType: The type of secret that secret scanning detected. /// - secretTypeDisplayName: User-friendly name for the detected secret, matching the `secret_type`. + /// - provider: The provider of the secret that was detected. + /// - providerSlug: 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. /// - secret: The secret that was detected. /// - repository: /// - pushProtectionBypassed: Whether push protection was bypassed for the detected secret. @@ -2012,6 +2022,8 @@ public enum Components { resolvedBy: Components.Schemas.NullableSimpleUser? = nil, secretType: Swift.String? = nil, secretTypeDisplayName: Swift.String? = nil, + provider: Swift.String? = nil, + providerSlug: Swift.String? = nil, secret: Swift.String? = nil, repository: Components.Schemas.SimpleRepository? = nil, pushProtectionBypassed: Swift.Bool? = nil, @@ -2045,6 +2057,8 @@ public enum Components { self.resolvedBy = resolvedBy self.secretType = secretType self.secretTypeDisplayName = secretTypeDisplayName + self.provider = provider + self.providerSlug = providerSlug self.secret = secret self.repository = repository self.pushProtectionBypassed = pushProtectionBypassed @@ -2079,6 +2093,8 @@ public enum Components { case resolvedBy = "resolved_by" case secretType = "secret_type" case secretTypeDisplayName = "secret_type_display_name" + case provider + case providerSlug = "provider_slug" case secret case repository case pushProtectionBypassed = "push_protection_bypassed" @@ -2313,6 +2329,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/secret_type_display_name`. public var secretTypeDisplayName: Swift.String? + /// The provider of the secret that was detected. + /// + /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/provider`. + public var provider: Swift.String? + /// 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. + /// + /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/provider_slug`. + public var providerSlug: Swift.String? /// The secret that was detected. /// /// - Remark: Generated from `#/components/schemas/secret-scanning-alert/secret`. @@ -2399,6 +2423,8 @@ public enum Components { /// - resolutionComment: An optional comment to resolve an alert. /// - secretType: The type of secret that secret scanning detected. /// - secretTypeDisplayName: User-friendly name for the detected secret, matching the `secret_type`. + /// - provider: The provider of the secret that was detected. + /// - providerSlug: 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. /// - secret: The secret that was detected. /// - pushProtectionBypassed: Whether push protection was bypassed for the detected secret. /// - pushProtectionBypassedBy: @@ -2431,6 +2457,8 @@ public enum Components { resolutionComment: Swift.String? = nil, secretType: Swift.String? = nil, secretTypeDisplayName: Swift.String? = nil, + provider: Swift.String? = nil, + providerSlug: Swift.String? = nil, secret: Swift.String? = nil, pushProtectionBypassed: Swift.Bool? = nil, pushProtectionBypassedBy: Components.Schemas.NullableSimpleUser? = nil, @@ -2463,6 +2491,8 @@ public enum Components { self.resolutionComment = resolutionComment self.secretType = secretType self.secretTypeDisplayName = secretTypeDisplayName + self.provider = provider + self.providerSlug = providerSlug self.secret = secret self.pushProtectionBypassed = pushProtectionBypassed self.pushProtectionBypassedBy = pushProtectionBypassedBy @@ -2496,6 +2526,8 @@ public enum Components { case resolutionComment = "resolution_comment" case secretType = "secret_type" case secretTypeDisplayName = "secret_type_display_name" + case provider + case providerSlug = "provider_slug" case secret case pushProtectionBypassed = "push_protection_bypassed" case pushProtectionBypassedBy = "push_protection_bypassed_by" @@ -2922,6 +2954,24 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-secret-type`. public typealias SecretScanningAlertSecretType = Swift.String + /// A comma-separated list of secret types to exclude from the results. All default secret patterns are returned except those matching the specified types. Cannot be combined with the `secret_type` parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// + /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-exclude-secret-types`. + public typealias SecretScanningAlertExcludeSecretTypes = Swift.String + /// A comma-separated list of provider slugs to exclude from the results. + /// Provider slugs use lowercase with underscores (e.g., `github_secret_scanning`, `clojars`). + /// You can find the provider slug in the `provider_slug` field of each alert. + /// Cannot be combined with the `providers` parameter. + /// + /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-exclude-providers`. + public typealias SecretScanningAlertExcludeProviders = Swift.String + /// A comma-separated list of provider slugs to filter by. + /// Provider slugs use lowercase with underscores (e.g., `github_secret_scanning`, `clojars`). + /// You can find the provider slug in the `provider_slug` field of each alert. + /// Cannot be combined with the `exclude_providers` parameter. + /// + /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-providers`. + public typealias SecretScanningAlertProviders = Swift.String /// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-resolution`. @@ -3248,6 +3298,24 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/secret_type`. public var secretType: Components.Parameters.SecretScanningAlertSecretType? + /// A comma-separated list of secret types to exclude from the results. All default secret patterns are returned except those matching the specified types. Cannot be combined with the `secret_type` parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/exclude_secret_types`. + public var excludeSecretTypes: Components.Parameters.SecretScanningAlertExcludeSecretTypes? + /// A comma-separated list of provider slugs to exclude from the results. + /// Provider slugs use lowercase with underscores (e.g., `github_secret_scanning`, `clojars`). + /// You can find the provider slug in the `provider_slug` field of each alert. + /// Cannot be combined with the `providers` parameter. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/exclude_providers`. + public var excludeProviders: Components.Parameters.SecretScanningAlertExcludeProviders? + /// A comma-separated list of provider slugs to filter by. + /// Provider slugs use lowercase with underscores (e.g., `github_secret_scanning`, `clojars`). + /// You can find the provider slug in the `provider_slug` field of each alert. + /// Cannot be combined with the `exclude_providers` parameter. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/providers`. + public var providers: Components.Parameters.SecretScanningAlertProviders? /// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/resolution`. @@ -3311,6 +3379,9 @@ public enum Operations { /// - Parameters: /// - state: Set to `open` or `resolved` to only list secret scanning alerts in a specific state. /// - secretType: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// - excludeSecretTypes: A comma-separated list of secret types to exclude from the results. All default secret patterns are returned except those matching the specified types. Cannot be combined with the `secret_type` parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// - excludeProviders: A comma-separated list of provider slugs to exclude from the results. + /// - providers: A comma-separated list of provider slugs to filter by. /// - resolution: A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// - assignee: Filters alerts by assignee. Use `*` to get all assigned alerts, `none` to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user. /// - sort: The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. @@ -3326,6 +3397,9 @@ public enum Operations { public init( state: Components.Parameters.SecretScanningAlertState? = nil, secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, + excludeSecretTypes: Components.Parameters.SecretScanningAlertExcludeSecretTypes? = nil, + excludeProviders: Components.Parameters.SecretScanningAlertExcludeProviders? = nil, + providers: Components.Parameters.SecretScanningAlertProviders? = nil, resolution: Components.Parameters.SecretScanningAlertResolution? = nil, assignee: Components.Parameters.SecretScanningAlertAssignee? = nil, sort: Components.Parameters.SecretScanningAlertSort? = nil, @@ -3341,6 +3415,9 @@ public enum Operations { ) { self.state = state self.secretType = secretType + self.excludeSecretTypes = excludeSecretTypes + self.excludeProviders = excludeProviders + self.providers = providers self.resolution = resolution self.assignee = assignee self.sort = sort @@ -4161,6 +4238,24 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/secret_type`. public var secretType: Components.Parameters.SecretScanningAlertSecretType? + /// A comma-separated list of secret types to exclude from the results. All default secret patterns are returned except those matching the specified types. Cannot be combined with the `secret_type` parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/exclude_secret_types`. + public var excludeSecretTypes: Components.Parameters.SecretScanningAlertExcludeSecretTypes? + /// A comma-separated list of provider slugs to exclude from the results. + /// Provider slugs use lowercase with underscores (e.g., `github_secret_scanning`, `clojars`). + /// You can find the provider slug in the `provider_slug` field of each alert. + /// Cannot be combined with the `providers` parameter. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/exclude_providers`. + public var excludeProviders: Components.Parameters.SecretScanningAlertExcludeProviders? + /// A comma-separated list of provider slugs to filter by. + /// Provider slugs use lowercase with underscores (e.g., `github_secret_scanning`, `clojars`). + /// You can find the provider slug in the `provider_slug` field of each alert. + /// Cannot be combined with the `exclude_providers` parameter. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/providers`. + public var providers: Components.Parameters.SecretScanningAlertProviders? /// A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/resolution`. @@ -4224,6 +4319,9 @@ public enum Operations { /// - Parameters: /// - state: Set to `open` or `resolved` to only list secret scanning alerts in a specific state. /// - secretType: A comma-separated list of secret types to return. All default secret patterns are returned. To return generic patterns, pass the token name(s) in the parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// - excludeSecretTypes: A comma-separated list of secret types to exclude from the results. All default secret patterns are returned except those matching the specified types. Cannot be combined with the `secret_type` parameter. See "[Supported secret scanning patterns](https://docs.github.com/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)" for a complete list of secret types. + /// - excludeProviders: A comma-separated list of provider slugs to exclude from the results. + /// - providers: A comma-separated list of provider slugs to filter by. /// - resolution: A comma-separated list of resolutions. Only secret scanning alerts with one of these resolutions are listed. Valid resolutions are `false_positive`, `wont_fix`, `revoked`, `pattern_edited`, `pattern_deleted` or `used_in_tests`. /// - assignee: Filters alerts by assignee. Use `*` to get all assigned alerts, `none` to get all unassigned alerts, or a GitHub username to get alerts assigned to a specific user. /// - sort: The property to sort the results by. `created` means when the alert was created. `updated` means when the alert was updated or resolved. @@ -4239,6 +4337,9 @@ public enum Operations { public init( state: Components.Parameters.SecretScanningAlertState? = nil, secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, + excludeSecretTypes: Components.Parameters.SecretScanningAlertExcludeSecretTypes? = nil, + excludeProviders: Components.Parameters.SecretScanningAlertExcludeProviders? = nil, + providers: Components.Parameters.SecretScanningAlertProviders? = nil, resolution: Components.Parameters.SecretScanningAlertResolution? = nil, assignee: Components.Parameters.SecretScanningAlertAssignee? = nil, sort: Components.Parameters.SecretScanningAlertSort? = nil, @@ -4254,6 +4355,9 @@ public enum Operations { ) { self.state = state self.secretType = secretType + self.excludeSecretTypes = excludeSecretTypes + self.excludeProviders = excludeProviders + self.providers = providers self.resolution = resolution self.assignee = assignee self.sort = sort diff --git a/Sources/security-advisories/Types.swift b/Sources/security-advisories/Types.swift index b0390ab60c..e324a3e933 100644 --- a/Sources/security-advisories/Types.swift +++ b/Sources/security-advisories/Types.swift @@ -2985,21 +2985,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Sources/teams/Types.swift b/Sources/teams/Types.swift index 9f676e6587..535ce8f5f8 100644 --- a/Sources/teams/Types.swift +++ b/Sources/teams/Types.swift @@ -1873,21 +1873,36 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/reviewer_type`. public var reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + @frozen public enum ModePayload: String, Codable, Hashable, Sendable, CaseIterable { + case always = "ALWAYS" + case exempt = "EXEMPT" + } + /// The bypass mode for the reviewer + /// + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_delegated_bypass_options/ReviewersPayload/mode`. + public var mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? /// Creates a new `ReviewersPayloadPayload`. /// /// - Parameters: /// - reviewerId: The ID of the team or role selected as a bypass reviewer /// - reviewerType: The type of the bypass reviewer + /// - mode: The bypass mode for the reviewer public init( reviewerId: Swift.Int, - reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload + reviewerType: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ReviewerTypePayload, + mode: Components.Schemas.SecurityAndAnalysis.SecretScanningDelegatedBypassOptionsPayload.ReviewersPayloadPayload.ModePayload? = nil ) { self.reviewerId = reviewerId self.reviewerType = reviewerType + self.mode = mode } public enum CodingKeys: String, CodingKey { case reviewerId = "reviewer_id" case reviewerType = "reviewer_type" + case mode } } /// The bypass reviewers for secret scanning delegated bypass diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index 758e5523c8..3ba1e7273b 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit 758e5523c8b6082bdd547cef042b884229a0355c +Subproject commit 3ba1e7273bb94c613cf608640e4a7a860310669b