diff --git a/java/scripts/codegen/java.ts b/java/scripts/codegen/java.ts index b3768797b..842ba772e 100644 --- a/java/scripts/codegen/java.ts +++ b/java/scripts/codegen/java.ts @@ -2059,6 +2059,12 @@ async function main(): Promise { console.log("๐Ÿš€ Java SDK code generator"); console.log("============================"); + // Clean the generated output directory to remove orphaned files from previous runs + const generatedOutputDir = path.join(REPO_ROOT, "src/generated/java/com/github/copilot/generated"); + console.log(`๐Ÿงน Cleaning output directory: ${generatedOutputDir}`); + await fs.rm(generatedOutputDir, { recursive: true, force: true }); + await fs.mkdir(generatedOutputDir, { recursive: true }); + const sessionEventsSchemaPath = await getSessionEventsSchemaPath(); console.log(`๐Ÿ“„ Session events schema: ${sessionEventsSchemaPath}`); const apiSchemaPath = await getApiSchemaPath(); diff --git a/java/src/generated/java/com/github/copilot/generated/McpServerStatusChangedStatus.java b/java/src/generated/java/com/github/copilot/generated/McpServerStatusChangedStatus.java deleted file mode 100644 index cc11c8cab..000000000 --- a/java/src/generated/java/com/github/copilot/generated/McpServerStatusChangedStatus.java +++ /dev/null @@ -1,43 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * New connection status: connected, failed, needs-auth, pending, disabled, or not_configured - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum McpServerStatusChangedStatus { - /** The {@code connected} variant. */ - CONNECTED("connected"), - /** The {@code failed} variant. */ - FAILED("failed"), - /** The {@code needs-auth} variant. */ - NEEDS_AUTH("needs-auth"), - /** The {@code pending} variant. */ - PENDING("pending"), - /** The {@code disabled} variant. */ - DISABLED("disabled"), - /** The {@code not_configured} variant. */ - NOT_CONFIGURED("not_configured"); - - private final String value; - McpServerStatusChangedStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpServerStatusChangedStatus fromValue(String value) { - for (McpServerStatusChangedStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpServerStatusChangedStatus value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/McpServersLoadedServerStatus.java b/java/src/generated/java/com/github/copilot/generated/McpServersLoadedServerStatus.java deleted file mode 100644 index af3c97840..000000000 --- a/java/src/generated/java/com/github/copilot/generated/McpServersLoadedServerStatus.java +++ /dev/null @@ -1,43 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * Connection status: connected, failed, needs-auth, pending, disabled, or not_configured - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum McpServersLoadedServerStatus { - /** The {@code connected} variant. */ - CONNECTED("connected"), - /** The {@code failed} variant. */ - FAILED("failed"), - /** The {@code needs-auth} variant. */ - NEEDS_AUTH("needs-auth"), - /** The {@code pending} variant. */ - PENDING("pending"), - /** The {@code disabled} variant. */ - DISABLED("disabled"), - /** The {@code not_configured} variant. */ - NOT_CONFIGURED("not_configured"); - - private final String value; - McpServersLoadedServerStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static McpServersLoadedServerStatus fromValue(String value) { - for (McpServersLoadedServerStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown McpServersLoadedServerStatus value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionApproved.java b/java/src/generated/java/com/github/copilot/generated/PermissionApproved.java deleted file mode 100644 index 731dd048b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionApproved.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionApproved` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionApproved extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "approved"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionApprovedForLocation.java b/java/src/generated/java/com/github/copilot/generated/PermissionApprovedForLocation.java deleted file mode 100644 index d296dbec6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionApprovedForLocation.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionApprovedForLocation` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionApprovedForLocation extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "approved-for-location"; - - @Override - public String getKind() { return kind; } - - /** The approval to persist for this location */ - @JsonProperty("approval") - private UserToolSessionApproval approval; - - /** The location key (git root or cwd) to persist the approval to */ - @JsonProperty("locationKey") - private String locationKey; - - public UserToolSessionApproval getApproval() { return approval; } - public void setApproval(UserToolSessionApproval approval) { this.approval = approval; } - - public String getLocationKey() { return locationKey; } - public void setLocationKey(String locationKey) { this.locationKey = locationKey; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionApprovedForSession.java b/java/src/generated/java/com/github/copilot/generated/PermissionApprovedForSession.java deleted file mode 100644 index ce13e11b0..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionApprovedForSession.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionApprovedForSession` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionApprovedForSession extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "approved-for-session"; - - @Override - public String getKind() { return kind; } - - /** The approval to add as a session-scoped rule */ - @JsonProperty("approval") - private UserToolSessionApproval approval; - - public UserToolSessionApproval getApproval() { return approval; } - public void setApproval(UserToolSessionApproval approval) { this.approval = approval; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionCancelled.java b/java/src/generated/java/com/github/copilot/generated/PermissionCancelled.java deleted file mode 100644 index 2734d6dc4..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionCancelled.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionCancelled` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionCancelled extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "cancelled"; - - @Override - public String getKind() { return kind; } - - /** Optional explanation of why the request was cancelled */ - @JsonProperty("reason") - private String reason; - - public String getReason() { return reason; } - public void setReason(String reason) { this.reason = reason; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionCompletedKind.java b/java/src/generated/java/com/github/copilot/generated/PermissionCompletedKind.java deleted file mode 100644 index 61c770b65..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionCompletedKind.java +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * The outcome of the permission request - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionCompletedKind { - /** The {@code approved} variant. */ - APPROVED("approved"), - /** The {@code approved-for-session} variant. */ - APPROVED_FOR_SESSION("approved-for-session"), - /** The {@code approved-for-location} variant. */ - APPROVED_FOR_LOCATION("approved-for-location"), - /** The {@code denied-by-rules} variant. */ - DENIED_BY_RULES("denied-by-rules"), - /** The {@code denied-no-approval-rule-and-could-not-request-from-user} variant. */ - DENIED_NO_APPROVAL_RULE_AND_COULD_NOT_REQUEST_FROM_USER("denied-no-approval-rule-and-could-not-request-from-user"), - /** The {@code denied-interactively-by-user} variant. */ - DENIED_INTERACTIVELY_BY_USER("denied-interactively-by-user"), - /** The {@code denied-by-content-exclusion-policy} variant. */ - DENIED_BY_CONTENT_EXCLUSION_POLICY("denied-by-content-exclusion-policy"), - /** The {@code denied-by-permission-request-hook} variant. */ - DENIED_BY_PERMISSION_REQUEST_HOOK("denied-by-permission-request-hook"); - - private final String value; - PermissionCompletedKind(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionCompletedKind fromValue(String value) { - for (PermissionCompletedKind v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionCompletedKind value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionCompletedResult.java b/java/src/generated/java/com/github/copilot/generated/PermissionCompletedResult.java deleted file mode 100644 index 1beb80523..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionCompletedResult.java +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * The result of the permission request - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionCompletedResult( - /** The outcome of the permission request */ - @JsonProperty("kind") PermissionCompletedKind kind -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByContentExclusionPolicy.java b/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByContentExclusionPolicy.java deleted file mode 100644 index 31ac827d6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByContentExclusionPolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDeniedByContentExclusionPolicy` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDeniedByContentExclusionPolicy extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "denied-by-content-exclusion-policy"; - - @Override - public String getKind() { return kind; } - - /** File path that triggered the exclusion */ - @JsonProperty("path") - private String path; - - /** Human-readable explanation of why the path was excluded */ - @JsonProperty("message") - private String message; - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } - - public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByPermissionRequestHook.java b/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByPermissionRequestHook.java deleted file mode 100644 index d8fe75734..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByPermissionRequestHook.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDeniedByPermissionRequestHook` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDeniedByPermissionRequestHook extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "denied-by-permission-request-hook"; - - @Override - public String getKind() { return kind; } - - /** Optional message from the hook explaining the denial */ - @JsonProperty("message") - private String message; - - /** Whether to interrupt the current agent turn */ - @JsonProperty("interrupt") - private Boolean interrupt; - - public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } - - public Boolean getInterrupt() { return interrupt; } - public void setInterrupt(Boolean interrupt) { this.interrupt = interrupt; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByRules.java b/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByRules.java deleted file mode 100644 index 475bed99a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedByRules.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDeniedByRules` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDeniedByRules extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "denied-by-rules"; - - @Override - public String getKind() { return kind; } - - /** Rules that denied the request */ - @JsonProperty("rules") - private List rules; - - public List getRules() { return rules; } - public void setRules(List rules) { this.rules = rules; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedInteractivelyByUser.java b/java/src/generated/java/com/github/copilot/generated/PermissionDeniedInteractivelyByUser.java deleted file mode 100644 index 8ff6304de..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedInteractivelyByUser.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDeniedInteractivelyByUser` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDeniedInteractivelyByUser extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "denied-interactively-by-user"; - - @Override - public String getKind() { return kind; } - - /** Optional feedback from the user explaining the denial */ - @JsonProperty("feedback") - private String feedback; - - /** Whether to force-reject the current agent turn */ - @JsonProperty("forceReject") - private Boolean forceReject; - - public String getFeedback() { return feedback; } - public void setFeedback(String feedback) { this.feedback = feedback; } - - public Boolean getForceReject() { return forceReject; } - public void setForceReject(Boolean forceReject) { this.forceReject = forceReject; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser.java b/java/src/generated/java/com/github/copilot/generated/PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser.java deleted file mode 100644 index 8af6b10b8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser extends PermissionResult { - - @JsonProperty("kind") - private final String kind = "denied-no-approval-rule-and-could-not-request-from-user"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequest.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequest.java deleted file mode 100644 index 01d2714b8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequest.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Derived user-facing permission prompt details for UI consumers - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = PermissionPromptRequestCommands.class, name = "commands"), - @JsonSubTypes.Type(value = PermissionPromptRequestWrite.class, name = "write"), - @JsonSubTypes.Type(value = PermissionPromptRequestRead.class, name = "read"), - @JsonSubTypes.Type(value = PermissionPromptRequestMcp.class, name = "mcp"), - @JsonSubTypes.Type(value = PermissionPromptRequestUrl.class, name = "url"), - @JsonSubTypes.Type(value = PermissionPromptRequestMemory.class, name = "memory"), - @JsonSubTypes.Type(value = PermissionPromptRequestCustomTool.class, name = "custom-tool"), - @JsonSubTypes.Type(value = PermissionPromptRequestPath.class, name = "path"), - @JsonSubTypes.Type(value = PermissionPromptRequestHook.class, name = "hook"), - @JsonSubTypes.Type(value = PermissionPromptRequestExtensionManagement.class, name = "extension-management"), - @JsonSubTypes.Type(value = PermissionPromptRequestExtensionPermissionAccess.class, name = "extension-permission-access") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class PermissionPromptRequest { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestCommands.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestCommands.java deleted file mode 100644 index 9bbdc4942..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestCommands.java +++ /dev/null @@ -1,73 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Shell command permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestCommands extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "commands"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** The complete shell command text to be executed */ - @JsonProperty("fullCommandText") - private String fullCommandText; - - /** Human-readable description of what the command intends to do */ - @JsonProperty("intention") - private String intention; - - /** Command identifiers covered by this approval prompt */ - @JsonProperty("commandIdentifiers") - private List commandIdentifiers; - - /** Whether the UI can offer session-wide approval for this command pattern */ - @JsonProperty("canOfferSessionApproval") - private Boolean canOfferSessionApproval; - - /** Optional warning message about risks of running this command */ - @JsonProperty("warning") - private String warning; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getFullCommandText() { return fullCommandText; } - public void setFullCommandText(String fullCommandText) { this.fullCommandText = fullCommandText; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public List getCommandIdentifiers() { return commandIdentifiers; } - public void setCommandIdentifiers(List commandIdentifiers) { this.commandIdentifiers = commandIdentifiers; } - - public Boolean getCanOfferSessionApproval() { return canOfferSessionApproval; } - public void setCanOfferSessionApproval(Boolean canOfferSessionApproval) { this.canOfferSessionApproval = canOfferSessionApproval; } - - public String getWarning() { return warning; } - public void setWarning(String warning) { this.warning = warning; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestCustomTool.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestCustomTool.java deleted file mode 100644 index f9c3287ca..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestCustomTool.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Custom tool invocation permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestCustomTool extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "custom-tool"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the custom tool */ - @JsonProperty("toolName") - private String toolName; - - /** Description of what the custom tool does */ - @JsonProperty("toolDescription") - private String toolDescription; - - /** Arguments to pass to the custom tool */ - @JsonProperty("args") - private Object args; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } - - public String getToolDescription() { return toolDescription; } - public void setToolDescription(String toolDescription) { this.toolDescription = toolDescription; } - - public Object getArgs() { return args; } - public void setArgs(Object args) { this.args = args; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestExtensionManagement.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestExtensionManagement.java deleted file mode 100644 index d295843e6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestExtensionManagement.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Extension management permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestExtensionManagement extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "extension-management"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** The extension management operation (scaffold, reload) */ - @JsonProperty("operation") - private String operation; - - /** Name of the extension being managed */ - @JsonProperty("extensionName") - private String extensionName; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getOperation() { return operation; } - public void setOperation(String operation) { this.operation = operation; } - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestExtensionPermissionAccess.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestExtensionPermissionAccess.java deleted file mode 100644 index 7fd531da6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestExtensionPermissionAccess.java +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Extension permission access prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestExtensionPermissionAccess extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "extension-permission-access"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the extension requesting permission access */ - @JsonProperty("extensionName") - private String extensionName; - - /** Capabilities the extension is requesting */ - @JsonProperty("capabilities") - private List capabilities; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } - - public List getCapabilities() { return capabilities; } - public void setCapabilities(List capabilities) { this.capabilities = capabilities; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestHook.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestHook.java deleted file mode 100644 index 9a612017d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestHook.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Hook confirmation permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestHook extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "hook"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the tool the hook is gating */ - @JsonProperty("toolName") - private String toolName; - - /** Arguments of the tool call being gated */ - @JsonProperty("toolArgs") - private Object toolArgs; - - /** Optional message from the hook explaining why confirmation is needed */ - @JsonProperty("hookMessage") - private String hookMessage; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } - - public Object getToolArgs() { return toolArgs; } - public void setToolArgs(Object toolArgs) { this.toolArgs = toolArgs; } - - public String getHookMessage() { return hookMessage; } - public void setHookMessage(String hookMessage) { this.hookMessage = hookMessage; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestMcp.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestMcp.java deleted file mode 100644 index 04d6399a8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestMcp.java +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * MCP tool invocation permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestMcp extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "mcp"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the MCP server providing the tool */ - @JsonProperty("serverName") - private String serverName; - - /** Internal name of the MCP tool */ - @JsonProperty("toolName") - private String toolName; - - /** Human-readable title of the MCP tool */ - @JsonProperty("toolTitle") - private String toolTitle; - - /** Arguments to pass to the MCP tool */ - @JsonProperty("args") - private Object args; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } - - public String getToolTitle() { return toolTitle; } - public void setToolTitle(String toolTitle) { this.toolTitle = toolTitle; } - - public Object getArgs() { return args; } - public void setArgs(Object args) { this.args = args; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestMemory.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestMemory.java deleted file mode 100644 index 8323206d6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestMemory.java +++ /dev/null @@ -1,79 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Memory operation permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestMemory extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "memory"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Whether this is a store or vote memory operation */ - @JsonProperty("action") - private PermissionRequestMemoryAction action; - - /** Topic or subject of the memory (store only) */ - @JsonProperty("subject") - private String subject; - - /** The fact being stored or voted on */ - @JsonProperty("fact") - private String fact; - - /** Source references for the stored fact (store only) */ - @JsonProperty("citations") - private String citations; - - /** Vote direction (vote only) */ - @JsonProperty("direction") - private PermissionRequestMemoryDirection direction; - - /** Reason for the vote (vote only) */ - @JsonProperty("reason") - private String reason; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public PermissionRequestMemoryAction getAction() { return action; } - public void setAction(PermissionRequestMemoryAction action) { this.action = action; } - - public String getSubject() { return subject; } - public void setSubject(String subject) { this.subject = subject; } - - public String getFact() { return fact; } - public void setFact(String fact) { this.fact = fact; } - - public String getCitations() { return citations; } - public void setCitations(String citations) { this.citations = citations; } - - public PermissionRequestMemoryDirection getDirection() { return direction; } - public void setDirection(PermissionRequestMemoryDirection direction) { this.direction = direction; } - - public String getReason() { return reason; } - public void setReason(String reason) { this.reason = reason; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestPath.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestPath.java deleted file mode 100644 index 5649cfed8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestPath.java +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Path access permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestPath extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "path"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Underlying permission kind that needs path approval */ - @JsonProperty("accessKind") - private PermissionPromptRequestPathAccessKind accessKind; - - /** File paths that require explicit approval */ - @JsonProperty("paths") - private List paths; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public PermissionPromptRequestPathAccessKind getAccessKind() { return accessKind; } - public void setAccessKind(PermissionPromptRequestPathAccessKind accessKind) { this.accessKind = accessKind; } - - public List getPaths() { return paths; } - public void setPaths(List paths) { this.paths = paths; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestPathAccessKind.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestPathAccessKind.java deleted file mode 100644 index 183d01235..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestPathAccessKind.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * Underlying permission kind that needs path approval - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionPromptRequestPathAccessKind { - /** The {@code read} variant. */ - READ("read"), - /** The {@code shell} variant. */ - SHELL("shell"), - /** The {@code write} variant. */ - WRITE("write"); - - private final String value; - PermissionPromptRequestPathAccessKind(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionPromptRequestPathAccessKind fromValue(String value) { - for (PermissionPromptRequestPathAccessKind v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionPromptRequestPathAccessKind value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestRead.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestRead.java deleted file mode 100644 index de09d1481..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestRead.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * File read permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestRead extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "read"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Human-readable description of why the file is being read */ - @JsonProperty("intention") - private String intention; - - /** Path of the file or directory being read */ - @JsonProperty("path") - private String path; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestUrl.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestUrl.java deleted file mode 100644 index cb3474ef5..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestUrl.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * URL access permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestUrl extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "url"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Human-readable description of why the URL is being accessed */ - @JsonProperty("intention") - private String intention; - - /** URL to be fetched */ - @JsonProperty("url") - private String url; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestWrite.java b/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestWrite.java deleted file mode 100644 index a260b7789..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionPromptRequestWrite.java +++ /dev/null @@ -1,72 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * File write permission prompt - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionPromptRequestWrite extends PermissionPromptRequest { - - @JsonProperty("kind") - private final String kind = "write"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Human-readable description of the intended file change */ - @JsonProperty("intention") - private String intention; - - /** Path of the file being written to */ - @JsonProperty("fileName") - private String fileName; - - /** Unified diff showing the proposed changes */ - @JsonProperty("diff") - private String diff; - - /** Complete new file contents for newly created files */ - @JsonProperty("newFileContents") - private String newFileContents; - - /** Whether the UI can offer session-wide approval for file write operations */ - @JsonProperty("canOfferSessionApproval") - private Boolean canOfferSessionApproval; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public String getFileName() { return fileName; } - public void setFileName(String fileName) { this.fileName = fileName; } - - public String getDiff() { return diff; } - public void setDiff(String diff) { this.diff = diff; } - - public String getNewFileContents() { return newFileContents; } - public void setNewFileContents(String newFileContents) { this.newFileContents = newFileContents; } - - public Boolean getCanOfferSessionApproval() { return canOfferSessionApproval; } - public void setCanOfferSessionApproval(Boolean canOfferSessionApproval) { this.canOfferSessionApproval = canOfferSessionApproval; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequest.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequest.java deleted file mode 100644 index b49242e7e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequest.java +++ /dev/null @@ -1,43 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Details of the permission being requested - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = PermissionRequestShell.class, name = "shell"), - @JsonSubTypes.Type(value = PermissionRequestWrite.class, name = "write"), - @JsonSubTypes.Type(value = PermissionRequestRead.class, name = "read"), - @JsonSubTypes.Type(value = PermissionRequestMcp.class, name = "mcp"), - @JsonSubTypes.Type(value = PermissionRequestUrl.class, name = "url"), - @JsonSubTypes.Type(value = PermissionRequestMemory.class, name = "memory"), - @JsonSubTypes.Type(value = PermissionRequestCustomTool.class, name = "custom-tool"), - @JsonSubTypes.Type(value = PermissionRequestHook.class, name = "hook"), - @JsonSubTypes.Type(value = PermissionRequestExtensionManagement.class, name = "extension-management"), - @JsonSubTypes.Type(value = PermissionRequestExtensionPermissionAccess.class, name = "extension-permission-access") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class PermissionRequest { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestCustomTool.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestCustomTool.java deleted file mode 100644 index d2f374cb9..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestCustomTool.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Custom tool invocation permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestCustomTool extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "custom-tool"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the custom tool */ - @JsonProperty("toolName") - private String toolName; - - /** Description of what the custom tool does */ - @JsonProperty("toolDescription") - private String toolDescription; - - /** Arguments to pass to the custom tool */ - @JsonProperty("args") - private Object args; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } - - public String getToolDescription() { return toolDescription; } - public void setToolDescription(String toolDescription) { this.toolDescription = toolDescription; } - - public Object getArgs() { return args; } - public void setArgs(Object args) { this.args = args; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestExtensionManagement.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestExtensionManagement.java deleted file mode 100644 index 6a2dbf54a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestExtensionManagement.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Extension management permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestExtensionManagement extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "extension-management"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** The extension management operation (scaffold, reload) */ - @JsonProperty("operation") - private String operation; - - /** Name of the extension being managed */ - @JsonProperty("extensionName") - private String extensionName; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getOperation() { return operation; } - public void setOperation(String operation) { this.operation = operation; } - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestExtensionPermissionAccess.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestExtensionPermissionAccess.java deleted file mode 100644 index 07328ec8a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestExtensionPermissionAccess.java +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Extension permission access request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestExtensionPermissionAccess extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "extension-permission-access"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the extension requesting permission access */ - @JsonProperty("extensionName") - private String extensionName; - - /** Capabilities the extension is requesting */ - @JsonProperty("capabilities") - private List capabilities; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } - - public List getCapabilities() { return capabilities; } - public void setCapabilities(List capabilities) { this.capabilities = capabilities; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestHook.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestHook.java deleted file mode 100644 index 46710b67a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestHook.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Hook confirmation permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestHook extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "hook"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the tool the hook is gating */ - @JsonProperty("toolName") - private String toolName; - - /** Arguments of the tool call being gated */ - @JsonProperty("toolArgs") - private Object toolArgs; - - /** Optional message from the hook explaining why confirmation is needed */ - @JsonProperty("hookMessage") - private String hookMessage; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } - - public Object getToolArgs() { return toolArgs; } - public void setToolArgs(Object toolArgs) { this.toolArgs = toolArgs; } - - public String getHookMessage() { return hookMessage; } - public void setHookMessage(String hookMessage) { this.hookMessage = hookMessage; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMcp.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestMcp.java deleted file mode 100644 index 7ddf97d54..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMcp.java +++ /dev/null @@ -1,72 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * MCP tool invocation permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestMcp extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "mcp"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Name of the MCP server providing the tool */ - @JsonProperty("serverName") - private String serverName; - - /** Internal name of the MCP tool */ - @JsonProperty("toolName") - private String toolName; - - /** Human-readable title of the MCP tool */ - @JsonProperty("toolTitle") - private String toolTitle; - - /** Arguments to pass to the MCP tool */ - @JsonProperty("args") - private Object args; - - /** Whether this MCP tool is read-only (no side effects) */ - @JsonProperty("readOnly") - private Boolean readOnly; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } - - public String getToolTitle() { return toolTitle; } - public void setToolTitle(String toolTitle) { this.toolTitle = toolTitle; } - - public Object getArgs() { return args; } - public void setArgs(Object args) { this.args = args; } - - public Boolean getReadOnly() { return readOnly; } - public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemory.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemory.java deleted file mode 100644 index a7b7d4a5d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemory.java +++ /dev/null @@ -1,79 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Memory operation permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestMemory extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "memory"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Whether this is a store or vote memory operation */ - @JsonProperty("action") - private PermissionRequestMemoryAction action; - - /** Topic or subject of the memory (store only) */ - @JsonProperty("subject") - private String subject; - - /** The fact being stored or voted on */ - @JsonProperty("fact") - private String fact; - - /** Source references for the stored fact (store only) */ - @JsonProperty("citations") - private String citations; - - /** Vote direction (vote only) */ - @JsonProperty("direction") - private PermissionRequestMemoryDirection direction; - - /** Reason for the vote (vote only) */ - @JsonProperty("reason") - private String reason; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public PermissionRequestMemoryAction getAction() { return action; } - public void setAction(PermissionRequestMemoryAction action) { this.action = action; } - - public String getSubject() { return subject; } - public void setSubject(String subject) { this.subject = subject; } - - public String getFact() { return fact; } - public void setFact(String fact) { this.fact = fact; } - - public String getCitations() { return citations; } - public void setCitations(String citations) { this.citations = citations; } - - public PermissionRequestMemoryDirection getDirection() { return direction; } - public void setDirection(PermissionRequestMemoryDirection direction) { this.direction = direction; } - - public String getReason() { return reason; } - public void setReason(String reason) { this.reason = reason; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemoryAction.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemoryAction.java deleted file mode 100644 index 24edbe6e3..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemoryAction.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * Whether this is a store or vote memory operation - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionRequestMemoryAction { - /** The {@code store} variant. */ - STORE("store"), - /** The {@code vote} variant. */ - VOTE("vote"); - - private final String value; - PermissionRequestMemoryAction(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionRequestMemoryAction fromValue(String value) { - for (PermissionRequestMemoryAction v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionRequestMemoryAction value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemoryDirection.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemoryDirection.java deleted file mode 100644 index 48b74a501..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestMemoryDirection.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * Vote direction (vote only) - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum PermissionRequestMemoryDirection { - /** The {@code upvote} variant. */ - UPVOTE("upvote"), - /** The {@code downvote} variant. */ - DOWNVOTE("downvote"); - - private final String value; - PermissionRequestMemoryDirection(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static PermissionRequestMemoryDirection fromValue(String value) { - for (PermissionRequestMemoryDirection v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown PermissionRequestMemoryDirection value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestRead.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestRead.java deleted file mode 100644 index d77ef2d22..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestRead.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * File or directory read permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestRead extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "read"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Human-readable description of why the file is being read */ - @JsonProperty("intention") - private String intention; - - /** Path of the file or directory being read */ - @JsonProperty("path") - private String path; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestShell.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestShell.java deleted file mode 100644 index 164b10604..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestShell.java +++ /dev/null @@ -1,94 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Shell command permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestShell extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "shell"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** The complete shell command text to be executed */ - @JsonProperty("fullCommandText") - private String fullCommandText; - - /** Human-readable description of what the command intends to do */ - @JsonProperty("intention") - private String intention; - - /** Parsed command identifiers found in the command text */ - @JsonProperty("commands") - private List commands; - - /** File paths that may be read or written by the command */ - @JsonProperty("possiblePaths") - private List possiblePaths; - - /** URLs that may be accessed by the command */ - @JsonProperty("possibleUrls") - private List possibleUrls; - - /** Whether the command includes a file write redirection (e.g., > or >>) */ - @JsonProperty("hasWriteFileRedirection") - private Boolean hasWriteFileRedirection; - - /** Whether the UI can offer session-wide approval for this command pattern */ - @JsonProperty("canOfferSessionApproval") - private Boolean canOfferSessionApproval; - - /** Optional warning message about risks of running this command */ - @JsonProperty("warning") - private String warning; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getFullCommandText() { return fullCommandText; } - public void setFullCommandText(String fullCommandText) { this.fullCommandText = fullCommandText; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public List getCommands() { return commands; } - public void setCommands(List commands) { this.commands = commands; } - - public List getPossiblePaths() { return possiblePaths; } - public void setPossiblePaths(List possiblePaths) { this.possiblePaths = possiblePaths; } - - public List getPossibleUrls() { return possibleUrls; } - public void setPossibleUrls(List possibleUrls) { this.possibleUrls = possibleUrls; } - - public Boolean getHasWriteFileRedirection() { return hasWriteFileRedirection; } - public void setHasWriteFileRedirection(Boolean hasWriteFileRedirection) { this.hasWriteFileRedirection = hasWriteFileRedirection; } - - public Boolean getCanOfferSessionApproval() { return canOfferSessionApproval; } - public void setCanOfferSessionApproval(Boolean canOfferSessionApproval) { this.canOfferSessionApproval = canOfferSessionApproval; } - - public String getWarning() { return warning; } - public void setWarning(String warning) { this.warning = warning; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestShellCommand.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestShellCommand.java deleted file mode 100644 index cdc5d5dba..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestShellCommand.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionRequestShellCommand` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionRequestShellCommand( - /** Command identifier (e.g., executable name) */ - @JsonProperty("identifier") String identifier, - /** Whether this command is read-only (no side effects) */ - @JsonProperty("readOnly") Boolean readOnly -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestShellPossibleUrl.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestShellPossibleUrl.java deleted file mode 100644 index c1c62760d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestShellPossibleUrl.java +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionRequestShellPossibleUrl` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionRequestShellPossibleUrl( - /** URL that may be accessed by the command */ - @JsonProperty("url") String url -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestUrl.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestUrl.java deleted file mode 100644 index 87054a327..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestUrl.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * URL access permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestUrl extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "url"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Human-readable description of why the URL is being accessed */ - @JsonProperty("intention") - private String intention; - - /** URL to be fetched */ - @JsonProperty("url") - private String url; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRequestWrite.java b/java/src/generated/java/com/github/copilot/generated/PermissionRequestWrite.java deleted file mode 100644 index ed268b378..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRequestWrite.java +++ /dev/null @@ -1,72 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * File write permission request - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionRequestWrite extends PermissionRequest { - - @JsonProperty("kind") - private final String kind = "write"; - - @Override - public String getKind() { return kind; } - - /** Tool call ID that triggered this permission request */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Human-readable description of the intended file change */ - @JsonProperty("intention") - private String intention; - - /** Path of the file being written to */ - @JsonProperty("fileName") - private String fileName; - - /** Unified diff showing the proposed changes */ - @JsonProperty("diff") - private String diff; - - /** Complete new file contents for newly created files */ - @JsonProperty("newFileContents") - private String newFileContents; - - /** Whether the UI can offer session-wide approval for file write operations */ - @JsonProperty("canOfferSessionApproval") - private Boolean canOfferSessionApproval; - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getIntention() { return intention; } - public void setIntention(String intention) { this.intention = intention; } - - public String getFileName() { return fileName; } - public void setFileName(String fileName) { this.fileName = fileName; } - - public String getDiff() { return diff; } - public void setDiff(String diff) { this.diff = diff; } - - public String getNewFileContents() { return newFileContents; } - public void setNewFileContents(String newFileContents) { this.newFileContents = newFileContents; } - - public Boolean getCanOfferSessionApproval() { return canOfferSessionApproval; } - public void setCanOfferSessionApproval(Boolean canOfferSessionApproval) { this.canOfferSessionApproval = canOfferSessionApproval; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionResult.java b/java/src/generated/java/com/github/copilot/generated/PermissionResult.java deleted file mode 100644 index 0c5720808..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionResult.java +++ /dev/null @@ -1,42 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * The result of the permission request - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = PermissionApproved.class, name = "approved"), - @JsonSubTypes.Type(value = PermissionApprovedForSession.class, name = "approved-for-session"), - @JsonSubTypes.Type(value = PermissionApprovedForLocation.class, name = "approved-for-location"), - @JsonSubTypes.Type(value = PermissionCancelled.class, name = "cancelled"), - @JsonSubTypes.Type(value = PermissionDeniedByRules.class, name = "denied-by-rules"), - @JsonSubTypes.Type(value = PermissionDeniedNoApprovalRuleAndCouldNotRequestFromUser.class, name = "denied-no-approval-rule-and-could-not-request-from-user"), - @JsonSubTypes.Type(value = PermissionDeniedInteractivelyByUser.class, name = "denied-interactively-by-user"), - @JsonSubTypes.Type(value = PermissionDeniedByContentExclusionPolicy.class, name = "denied-by-content-exclusion-policy"), - @JsonSubTypes.Type(value = PermissionDeniedByPermissionRequestHook.class, name = "denied-by-permission-request-hook") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class PermissionResult { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/PermissionRule.java b/java/src/generated/java/com/github/copilot/generated/PermissionRule.java deleted file mode 100644 index 25acdc3cf..000000000 --- a/java/src/generated/java/com/github/copilot/generated/PermissionRule.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionRule` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record PermissionRule( - /** The rule kind, such as Shell or GitHubMCP */ - @JsonProperty("kind") String kind, - /** Argument value matched against the request, or null when the rule kind has no argument (e.g. 'read', 'write', 'memory'). */ - @JsonProperty("argument") String argument -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotification.java b/java/src/generated/java/com/github/copilot/generated/SystemNotification.java deleted file mode 100644 index f185d90df..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotification.java +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Structured metadata identifying what triggered this notification - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = SystemNotificationAgentCompleted.class, name = "agent_completed"), - @JsonSubTypes.Type(value = SystemNotificationAgentIdle.class, name = "agent_idle"), - @JsonSubTypes.Type(value = SystemNotificationNewInboxMessage.class, name = "new_inbox_message"), - @JsonSubTypes.Type(value = SystemNotificationShellCompleted.class, name = "shell_completed"), - @JsonSubTypes.Type(value = SystemNotificationShellDetachedCompleted.class, name = "shell_detached_completed"), - @JsonSubTypes.Type(value = SystemNotificationInstructionDiscovered.class, name = "instruction_discovered") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class SystemNotification { - - /** - * Returns the discriminator value for this variant. - * - * @return the type discriminator - */ - public abstract String getType(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentCompleted.java b/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentCompleted.java deleted file mode 100644 index 404b85c2d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentCompleted.java +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SystemNotificationAgentCompleted` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemNotificationAgentCompleted extends SystemNotification { - - @JsonProperty("type") - private final String type = "agent_completed"; - - @Override - public String getType() { return type; } - - /** Unique identifier of the background agent */ - @JsonProperty("agentId") - private String agentId; - - /** Type of the agent (e.g., explore, task, general-purpose) */ - @JsonProperty("agentType") - private String agentType; - - /** Whether the agent completed successfully or failed */ - @JsonProperty("status") - private SystemNotificationAgentCompletedStatus status; - - /** Human-readable description of the agent task */ - @JsonProperty("description") - private String description; - - /** The full prompt given to the background agent */ - @JsonProperty("prompt") - private String prompt; - - public String getAgentId() { return agentId; } - public void setAgentId(String agentId) { this.agentId = agentId; } - - public String getAgentType() { return agentType; } - public void setAgentType(String agentType) { this.agentType = agentType; } - - public SystemNotificationAgentCompletedStatus getStatus() { return status; } - public void setStatus(SystemNotificationAgentCompletedStatus status) { this.status = status; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - - public String getPrompt() { return prompt; } - public void setPrompt(String prompt) { this.prompt = prompt; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentCompletedStatus.java b/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentCompletedStatus.java deleted file mode 100644 index a78d83e3e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentCompletedStatus.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * Whether the agent completed successfully or failed - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SystemNotificationAgentCompletedStatus { - /** The {@code completed} variant. */ - COMPLETED("completed"), - /** The {@code failed} variant. */ - FAILED("failed"); - - private final String value; - SystemNotificationAgentCompletedStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SystemNotificationAgentCompletedStatus fromValue(String value) { - for (SystemNotificationAgentCompletedStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SystemNotificationAgentCompletedStatus value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentIdle.java b/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentIdle.java deleted file mode 100644 index 3d07d558b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotificationAgentIdle.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SystemNotificationAgentIdle` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemNotificationAgentIdle extends SystemNotification { - - @JsonProperty("type") - private final String type = "agent_idle"; - - @Override - public String getType() { return type; } - - /** Unique identifier of the background agent */ - @JsonProperty("agentId") - private String agentId; - - /** Type of the agent (e.g., explore, task, general-purpose) */ - @JsonProperty("agentType") - private String agentType; - - /** Human-readable description of the agent task */ - @JsonProperty("description") - private String description; - - public String getAgentId() { return agentId; } - public void setAgentId(String agentId) { this.agentId = agentId; } - - public String getAgentType() { return agentType; } - public void setAgentType(String agentType) { this.agentType = agentType; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotificationInstructionDiscovered.java b/java/src/generated/java/com/github/copilot/generated/SystemNotificationInstructionDiscovered.java deleted file mode 100644 index eb47c413c..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotificationInstructionDiscovered.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SystemNotificationInstructionDiscovered` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemNotificationInstructionDiscovered extends SystemNotification { - - @JsonProperty("type") - private final String type = "instruction_discovered"; - - @Override - public String getType() { return type; } - - /** Relative path to the discovered instruction file */ - @JsonProperty("sourcePath") - private String sourcePath; - - /** Path of the file access that triggered discovery */ - @JsonProperty("triggerFile") - private String triggerFile; - - /** Tool command that triggered discovery (currently always 'view') */ - @JsonProperty("triggerTool") - private String triggerTool; - - /** Human-readable label for the timeline (e.g., 'AGENTS.md from packages/billing/') */ - @JsonProperty("description") - private String description; - - public String getSourcePath() { return sourcePath; } - public void setSourcePath(String sourcePath) { this.sourcePath = sourcePath; } - - public String getTriggerFile() { return triggerFile; } - public void setTriggerFile(String triggerFile) { this.triggerFile = triggerFile; } - - public String getTriggerTool() { return triggerTool; } - public void setTriggerTool(String triggerTool) { this.triggerTool = triggerTool; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotificationNewInboxMessage.java b/java/src/generated/java/com/github/copilot/generated/SystemNotificationNewInboxMessage.java deleted file mode 100644 index 98e618b80..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotificationNewInboxMessage.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SystemNotificationNewInboxMessage` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemNotificationNewInboxMessage extends SystemNotification { - - @JsonProperty("type") - private final String type = "new_inbox_message"; - - @Override - public String getType() { return type; } - - /** Unique identifier of the inbox entry */ - @JsonProperty("entryId") - private String entryId; - - /** Human-readable name of the sender */ - @JsonProperty("senderName") - private String senderName; - - /** Category of the sender (e.g., sidekick-agent, plugin, hook) */ - @JsonProperty("senderType") - private String senderType; - - /** Short summary shown before the agent decides whether to read the inbox */ - @JsonProperty("summary") - private String summary; - - public String getEntryId() { return entryId; } - public void setEntryId(String entryId) { this.entryId = entryId; } - - public String getSenderName() { return senderName; } - public void setSenderName(String senderName) { this.senderName = senderName; } - - public String getSenderType() { return senderType; } - public void setSenderType(String senderType) { this.senderType = senderType; } - - public String getSummary() { return summary; } - public void setSummary(String summary) { this.summary = summary; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotificationShellCompleted.java b/java/src/generated/java/com/github/copilot/generated/SystemNotificationShellCompleted.java deleted file mode 100644 index 34df0c41e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotificationShellCompleted.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SystemNotificationShellCompleted` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemNotificationShellCompleted extends SystemNotification { - - @JsonProperty("type") - private final String type = "shell_completed"; - - @Override - public String getType() { return type; } - - /** Unique identifier of the shell session */ - @JsonProperty("shellId") - private String shellId; - - /** Exit code of the shell command, if available */ - @JsonProperty("exitCode") - private Long exitCode; - - /** Human-readable description of the command */ - @JsonProperty("description") - private String description; - - public String getShellId() { return shellId; } - public void setShellId(String shellId) { this.shellId = shellId; } - - public Long getExitCode() { return exitCode; } - public void setExitCode(Long exitCode) { this.exitCode = exitCode; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/SystemNotificationShellDetachedCompleted.java b/java/src/generated/java/com/github/copilot/generated/SystemNotificationShellDetachedCompleted.java deleted file mode 100644 index 59cd2d31f..000000000 --- a/java/src/generated/java/com/github/copilot/generated/SystemNotificationShellDetachedCompleted.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SystemNotificationShellDetachedCompleted` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SystemNotificationShellDetachedCompleted extends SystemNotification { - - @JsonProperty("type") - private final String type = "shell_detached_completed"; - - @Override - public String getType() { return type; } - - /** Unique identifier of the detached shell session */ - @JsonProperty("shellId") - private String shellId; - - /** Human-readable description of the command */ - @JsonProperty("description") - private String description; - - public String getShellId() { return shellId; } - public void setShellId(String shellId) { this.shellId = shellId; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContent.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContent.java deleted file mode 100644 index 2b0ebf4bd..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContent.java +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * A content block within a tool result, which may be text, terminal output, image, audio, or a resource - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = ToolExecutionCompleteContentText.class, name = "text"), - @JsonSubTypes.Type(value = ToolExecutionCompleteContentTerminal.class, name = "terminal"), - @JsonSubTypes.Type(value = ToolExecutionCompleteContentImage.class, name = "image"), - @JsonSubTypes.Type(value = ToolExecutionCompleteContentAudio.class, name = "audio"), - @JsonSubTypes.Type(value = ToolExecutionCompleteContentResourceLink.class, name = "resource_link"), - @JsonSubTypes.Type(value = ToolExecutionCompleteContentResource.class, name = "resource") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class ToolExecutionCompleteContent { - - /** - * Returns the discriminator value for this variant. - * - * @return the type discriminator - */ - public abstract String getType(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentAudio.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentAudio.java deleted file mode 100644 index 81fdb6f25..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentAudio.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Audio content block with base64-encoded data - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionCompleteContentAudio extends ToolExecutionCompleteContent { - - @JsonProperty("type") - private final String type = "audio"; - - @Override - public String getType() { return type; } - - /** Base64-encoded audio data */ - @JsonProperty("data") - private String data; - - /** MIME type of the audio (e.g., audio/wav, audio/mpeg) */ - @JsonProperty("mimeType") - private String mimeType; - - public String getData() { return data; } - public void setData(String data) { this.data = data; } - - public String getMimeType() { return mimeType; } - public void setMimeType(String mimeType) { this.mimeType = mimeType; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentImage.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentImage.java deleted file mode 100644 index 944d53478..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentImage.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Image content block with base64-encoded data - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionCompleteContentImage extends ToolExecutionCompleteContent { - - @JsonProperty("type") - private final String type = "image"; - - @Override - public String getType() { return type; } - - /** Base64-encoded image data */ - @JsonProperty("data") - private String data; - - /** MIME type of the image (e.g., image/png, image/jpeg) */ - @JsonProperty("mimeType") - private String mimeType; - - public String getData() { return data; } - public void setData(String data) { this.data = data; } - - public String getMimeType() { return mimeType; } - public void setMimeType(String mimeType) { this.mimeType = mimeType; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResource.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResource.java deleted file mode 100644 index ab8d478e6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResource.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Embedded resource content block with inline text or binary data - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionCompleteContentResource extends ToolExecutionCompleteContent { - - @JsonProperty("type") - private final String type = "resource"; - - @Override - public String getType() { return type; } - - /** The embedded resource contents, either text or base64-encoded binary */ - @JsonProperty("resource") - private Object resource; - - public Object getResource() { return resource; } - public void setResource(Object resource) { this.resource = resource; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLink.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLink.java deleted file mode 100644 index 6ebbc26d9..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLink.java +++ /dev/null @@ -1,80 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Resource link content block referencing an external resource - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionCompleteContentResourceLink extends ToolExecutionCompleteContent { - - @JsonProperty("type") - private final String type = "resource_link"; - - @Override - public String getType() { return type; } - - /** Icons associated with this resource */ - @JsonProperty("icons") - private List icons; - - /** Resource name identifier */ - @JsonProperty("name") - private String name; - - /** Human-readable display title for the resource */ - @JsonProperty("title") - private String title; - - /** URI identifying the resource */ - @JsonProperty("uri") - private String uri; - - /** Human-readable description of the resource */ - @JsonProperty("description") - private String description; - - /** MIME type of the resource content */ - @JsonProperty("mimeType") - private String mimeType; - - /** Size of the resource in bytes */ - @JsonProperty("size") - private Long size; - - public List getIcons() { return icons; } - public void setIcons(List icons) { this.icons = icons; } - - public String getName() { return name; } - public void setName(String name) { this.name = name; } - - public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - - public String getUri() { return uri; } - public void setUri(String uri) { this.uri = uri; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - - public String getMimeType() { return mimeType; } - public void setMimeType(String mimeType) { this.mimeType = mimeType; } - - public Long getSize() { return size; } - public void setSize(Long size) { this.size = size; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLinkIcon.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLinkIcon.java deleted file mode 100644 index e18a6c992..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLinkIcon.java +++ /dev/null @@ -1,34 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Icon image for a resource - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record ToolExecutionCompleteContentResourceLinkIcon( - /** URL or path to the icon image */ - @JsonProperty("src") String src, - /** MIME type of the icon image */ - @JsonProperty("mimeType") String mimeType, - /** Available icon sizes (e.g., ['16x16', '32x32']) */ - @JsonProperty("sizes") List sizes, - /** Theme variant this icon is intended for */ - @JsonProperty("theme") ToolExecutionCompleteContentResourceLinkIconTheme theme -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLinkIconTheme.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLinkIconTheme.java deleted file mode 100644 index 6d2f5e587..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentResourceLinkIconTheme.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * Theme variant this icon is intended for - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum ToolExecutionCompleteContentResourceLinkIconTheme { - /** The {@code light} variant. */ - LIGHT("light"), - /** The {@code dark} variant. */ - DARK("dark"); - - private final String value; - ToolExecutionCompleteContentResourceLinkIconTheme(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static ToolExecutionCompleteContentResourceLinkIconTheme fromValue(String value) { - for (ToolExecutionCompleteContentResourceLinkIconTheme v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown ToolExecutionCompleteContentResourceLinkIconTheme value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentTerminal.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentTerminal.java deleted file mode 100644 index 3f2ab2169..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentTerminal.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Terminal/shell output content block with optional exit code and working directory - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionCompleteContentTerminal extends ToolExecutionCompleteContent { - - @JsonProperty("type") - private final String type = "terminal"; - - @Override - public String getType() { return type; } - - /** Terminal/shell output text */ - @JsonProperty("text") - private String text; - - /** Process exit code, if the command has completed */ - @JsonProperty("exitCode") - private Long exitCode; - - /** Working directory where the command was executed */ - @JsonProperty("cwd") - private String cwd; - - public String getText() { return text; } - public void setText(String text) { this.text = text; } - - public Long getExitCode() { return exitCode; } - public void setExitCode(Long exitCode) { this.exitCode = exitCode; } - - public String getCwd() { return cwd; } - public void setCwd(String cwd) { this.cwd = cwd; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentText.java b/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentText.java deleted file mode 100644 index 86c1ec46a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteContentText.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Plain text content block - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ToolExecutionCompleteContentText extends ToolExecutionCompleteContent { - - @JsonProperty("type") - private final String type = "text"; - - @Override - public String getType() { return type; } - - /** The text content */ - @JsonProperty("text") - private String text; - - public String getText() { return text; } - public void setText(String text) { this.text = text; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachment.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachment.java deleted file mode 100644 index 08f0bdfb5..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachment.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * A user message attachment โ€” a file, directory, code selection, blob, or GitHub reference - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = UserMessageAttachmentFile.class, name = "file"), - @JsonSubTypes.Type(value = UserMessageAttachmentDirectory.class, name = "directory"), - @JsonSubTypes.Type(value = UserMessageAttachmentSelection.class, name = "selection"), - @JsonSubTypes.Type(value = UserMessageAttachmentGitHubReference.class, name = "github_reference"), - @JsonSubTypes.Type(value = UserMessageAttachmentBlob.class, name = "blob") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class UserMessageAttachment { - - /** - * Returns the discriminator value for this variant. - * - * @return the type discriminator - */ - public abstract String getType(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentBlob.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentBlob.java deleted file mode 100644 index 9cd78eae5..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentBlob.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Blob attachment with inline base64-encoded data - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserMessageAttachmentBlob extends UserMessageAttachment { - - @JsonProperty("type") - private final String type = "blob"; - - @Override - public String getType() { return type; } - - /** Base64-encoded content */ - @JsonProperty("data") - private String data; - - /** MIME type of the inline data */ - @JsonProperty("mimeType") - private String mimeType; - - /** User-facing display name for the attachment */ - @JsonProperty("displayName") - private String displayName; - - public String getData() { return data; } - public void setData(String data) { this.data = data; } - - public String getMimeType() { return mimeType; } - public void setMimeType(String mimeType) { this.mimeType = mimeType; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentDirectory.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentDirectory.java deleted file mode 100644 index dc3d9e276..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentDirectory.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Directory attachment - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserMessageAttachmentDirectory extends UserMessageAttachment { - - @JsonProperty("type") - private final String type = "directory"; - - @Override - public String getType() { return type; } - - /** Absolute directory path */ - @JsonProperty("path") - private String path; - - /** User-facing display name for the attachment */ - @JsonProperty("displayName") - private String displayName; - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentFile.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentFile.java deleted file mode 100644 index 9a14e2401..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentFile.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * File attachment - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserMessageAttachmentFile extends UserMessageAttachment { - - @JsonProperty("type") - private final String type = "file"; - - @Override - public String getType() { return type; } - - /** Absolute file path */ - @JsonProperty("path") - private String path; - - /** User-facing display name for the attachment */ - @JsonProperty("displayName") - private String displayName; - - /** Optional line range to scope the attachment to a specific section of the file */ - @JsonProperty("lineRange") - private UserMessageAttachmentFileLineRange lineRange; - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } - - public UserMessageAttachmentFileLineRange getLineRange() { return lineRange; } - public void setLineRange(UserMessageAttachmentFileLineRange lineRange) { this.lineRange = lineRange; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentFileLineRange.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentFileLineRange.java deleted file mode 100644 index 9cb3cc1c1..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentFileLineRange.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Optional line range to scope the attachment to a specific section of the file - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UserMessageAttachmentFileLineRange( - /** Start line number (1-based) */ - @JsonProperty("start") Long start, - /** End line number (1-based, inclusive) */ - @JsonProperty("end") Long end -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentGitHubReference.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentGitHubReference.java deleted file mode 100644 index 381b970e2..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentGitHubReference.java +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * GitHub issue, pull request, or discussion reference - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserMessageAttachmentGitHubReference extends UserMessageAttachment { - - @JsonProperty("type") - private final String type = "github_reference"; - - @Override - public String getType() { return type; } - - /** Issue, pull request, or discussion number */ - @JsonProperty("number") - private Long number; - - /** Title of the referenced item */ - @JsonProperty("title") - private String title; - - /** Type of GitHub reference */ - @JsonProperty("referenceType") - private UserMessageAttachmentGitHubReferenceType referenceType; - - /** Current state of the referenced item (e.g., open, closed, merged) */ - @JsonProperty("state") - private String state; - - /** URL to the referenced item on GitHub */ - @JsonProperty("url") - private String url; - - public Long getNumber() { return number; } - public void setNumber(Long number) { this.number = number; } - - public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - - public UserMessageAttachmentGitHubReferenceType getReferenceType() { return referenceType; } - public void setReferenceType(UserMessageAttachmentGitHubReferenceType referenceType) { this.referenceType = referenceType; } - - public String getState() { return state; } - public void setState(String state) { this.state = state; } - - public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentGitHubReferenceType.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentGitHubReferenceType.java deleted file mode 100644 index 11a8e3b5f..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentGitHubReferenceType.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import javax.annotation.processing.Generated; - -/** - * Type of GitHub reference - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum UserMessageAttachmentGitHubReferenceType { - /** The {@code issue} variant. */ - ISSUE("issue"), - /** The {@code pr} variant. */ - PR("pr"), - /** The {@code discussion} variant. */ - DISCUSSION("discussion"); - - private final String value; - UserMessageAttachmentGitHubReferenceType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static UserMessageAttachmentGitHubReferenceType fromValue(String value) { - for (UserMessageAttachmentGitHubReferenceType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown UserMessageAttachmentGitHubReferenceType value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelection.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelection.java deleted file mode 100644 index 813c70319..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelection.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Code selection attachment from an editor - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserMessageAttachmentSelection extends UserMessageAttachment { - - @JsonProperty("type") - private final String type = "selection"; - - @Override - public String getType() { return type; } - - /** Absolute path to the file containing the selection */ - @JsonProperty("filePath") - private String filePath; - - /** User-facing display name for the selection */ - @JsonProperty("displayName") - private String displayName; - - /** The selected text content */ - @JsonProperty("text") - private String text; - - /** Position range of the selection within the file */ - @JsonProperty("selection") - private UserMessageAttachmentSelectionDetails selection; - - public String getFilePath() { return filePath; } - public void setFilePath(String filePath) { this.filePath = filePath; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } - - public String getText() { return text; } - public void setText(String text) { this.text = text; } - - public UserMessageAttachmentSelectionDetails getSelection() { return selection; } - public void setSelection(UserMessageAttachmentSelectionDetails selection) { this.selection = selection; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetails.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetails.java deleted file mode 100644 index 6fcb90c99..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetails.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Position range of the selection within the file - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UserMessageAttachmentSelectionDetails( - /** Start position of the selection */ - @JsonProperty("start") UserMessageAttachmentSelectionDetailsStart start, - /** End position of the selection */ - @JsonProperty("end") UserMessageAttachmentSelectionDetailsEnd end -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetailsEnd.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetailsEnd.java deleted file mode 100644 index 9ff35f618..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetailsEnd.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * End position of the selection - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UserMessageAttachmentSelectionDetailsEnd( - /** End line number (0-based) */ - @JsonProperty("line") Long line, - /** End character offset within the line (0-based) */ - @JsonProperty("character") Long character -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetailsStart.java b/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetailsStart.java deleted file mode 100644 index 3aa5f47b0..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserMessageAttachmentSelectionDetailsStart.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: session-events.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Start position of the selection - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record UserMessageAttachmentSelectionDetailsStart( - /** Start line number (0-based) */ - @JsonProperty("line") Long line, - /** Start character offset within the line (0-based) */ - @JsonProperty("character") Long character -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApproval.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApproval.java deleted file mode 100644 index 2bcf4bd92..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApproval.java +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * The approval to add as a session-scoped rule - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = UserToolSessionApprovalCommands.class, name = "commands"), - @JsonSubTypes.Type(value = UserToolSessionApprovalRead.class, name = "read"), - @JsonSubTypes.Type(value = UserToolSessionApprovalWrite.class, name = "write"), - @JsonSubTypes.Type(value = UserToolSessionApprovalMcp.class, name = "mcp"), - @JsonSubTypes.Type(value = UserToolSessionApprovalMemory.class, name = "memory"), - @JsonSubTypes.Type(value = UserToolSessionApprovalCustomTool.class, name = "custom-tool"), - @JsonSubTypes.Type(value = UserToolSessionApprovalExtensionManagement.class, name = "extension-management"), - @JsonSubTypes.Type(value = UserToolSessionApprovalExtensionPermissionAccess.class, name = "extension-permission-access") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class UserToolSessionApproval { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalCommands.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalCommands.java deleted file mode 100644 index 79b4138e3..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalCommands.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalCommands` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalCommands extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "commands"; - - @Override - public String getKind() { return kind; } - - /** Command identifiers approved by the user */ - @JsonProperty("commandIdentifiers") - private List commandIdentifiers; - - public List getCommandIdentifiers() { return commandIdentifiers; } - public void setCommandIdentifiers(List commandIdentifiers) { this.commandIdentifiers = commandIdentifiers; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalCustomTool.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalCustomTool.java deleted file mode 100644 index 115c58ba8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalCustomTool.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalCustomTool` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalCustomTool extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "custom-tool"; - - @Override - public String getKind() { return kind; } - - /** Custom tool name */ - @JsonProperty("toolName") - private String toolName; - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalExtensionManagement.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalExtensionManagement.java deleted file mode 100644 index f9f0ab47f..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalExtensionManagement.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalExtensionManagement` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalExtensionManagement extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "extension-management"; - - @Override - public String getKind() { return kind; } - - /** Optional operation identifier */ - @JsonProperty("operation") - private String operation; - - public String getOperation() { return operation; } - public void setOperation(String operation) { this.operation = operation; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalExtensionPermissionAccess.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalExtensionPermissionAccess.java deleted file mode 100644 index 01e3f1840..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalExtensionPermissionAccess.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalExtensionPermissionAccess` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalExtensionPermissionAccess extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "extension-permission-access"; - - @Override - public String getKind() { return kind; } - - /** Extension name */ - @JsonProperty("extensionName") - private String extensionName; - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalMcp.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalMcp.java deleted file mode 100644 index d261dbe1c..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalMcp.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalMcp` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalMcp extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "mcp"; - - @Override - public String getKind() { return kind; } - - /** MCP server name */ - @JsonProperty("serverName") - private String serverName; - - /** Optional MCP tool name, or null for all tools on the server */ - @JsonProperty("toolName") - private String toolName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalMemory.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalMemory.java deleted file mode 100644 index 07a5e202c..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalMemory.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalMemory` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalMemory extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "memory"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalRead.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalRead.java deleted file mode 100644 index 07a678dfb..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalRead.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalRead` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalRead extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "read"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalWrite.java b/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalWrite.java deleted file mode 100644 index 0baa01874..000000000 --- a/java/src/generated/java/com/github/copilot/generated/UserToolSessionApprovalWrite.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalWrite` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalWrite extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "write"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/ApiKeyAuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/ApiKeyAuthInfo.java deleted file mode 100644 index 891faa5eb..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/ApiKeyAuthInfo.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `ApiKeyAuthInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class ApiKeyAuthInfo extends AuthInfo { - - @JsonProperty("type") - private final String type = "api-key"; - - @Override - public String getType() { return type; } - - /** The API key. Treat as a secret. */ - @JsonProperty("apiKey") - private String apiKey; - - /** Authentication host. */ - @JsonProperty("host") - private String host; - - /** Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. */ - @JsonProperty("copilotUser") - private CopilotUserResponse copilotUser; - - public String getApiKey() { return apiKey; } - public void setApiKey(String apiKey) { this.apiKey = apiKey; } - - public String getHost() { return host; } - public void setHost(String host) { this.host = host; } - - public CopilotUserResponse getCopilotUser() { return copilotUser; } - public void setCopilotUser(CopilotUserResponse copilotUser) { this.copilotUser = copilotUser; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/AuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/AuthInfo.java deleted file mode 100644 index e53ba8c5e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/AuthInfo.java +++ /dev/null @@ -1,40 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * The new auth credentials to install on the session. When omitted or `undefined`, the call is a no-op and the session's existing credentials are preserved. The runtime stores the value verbatim and uses it for outbound model/API requests; it does NOT re-validate or re-fetch the associated Copilot user response. Several variants carry secret material; treat this method's params as containing secrets at rest and in transit. - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = HMACAuthInfo.class, name = "hmac"), - @JsonSubTypes.Type(value = EnvAuthInfo.class, name = "env"), - @JsonSubTypes.Type(value = TokenAuthInfo.class, name = "token"), - @JsonSubTypes.Type(value = CopilotApiTokenAuthInfo.class, name = "copilot-api-token"), - @JsonSubTypes.Type(value = UserAuthInfo.class, name = "user"), - @JsonSubTypes.Type(value = GhCliAuthInfo.class, name = "gh-cli"), - @JsonSubTypes.Type(value = ApiKeyAuthInfo.class, name = "api-key") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class AuthInfo { - - /** - * Returns the discriminator value for this variant. - * - * @return the type discriminator - */ - public abstract String getType(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CanvasInvokeActionParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/CanvasInvokeActionParams.java deleted file mode 100644 index 8843a3bf0..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CanvasInvokeActionParams.java +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Canvas action invocation parameters sent to the provider. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CanvasInvokeActionParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Owning provider identifier */ - @JsonProperty("extensionId") String extensionId, - /** Provider-local canvas identifier */ - @JsonProperty("canvasId") String canvasId, - /** Canvas instance identifier */ - @JsonProperty("instanceId") String instanceId, - /** Action name to invoke */ - @JsonProperty("actionName") String actionName, - /** Action input */ - @JsonProperty("input") Object input, - /** Host context supplied by the runtime. */ - @JsonProperty("host") CanvasHostContext host, - /** Session context supplied by the runtime. */ - @JsonProperty("session") CanvasSessionContext session -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotApiTokenAuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/CopilotApiTokenAuthInfo.java deleted file mode 100644 index 45c691dab..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotApiTokenAuthInfo.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `CopilotApiTokenAuthInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class CopilotApiTokenAuthInfo extends AuthInfo { - - @JsonProperty("type") - private final String type = "copilot-api-token"; - - @Override - public String getType() { return type; } - - /** Authentication host (always the public GitHub host). */ - @JsonProperty("host") - private String host; - - /** Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. */ - @JsonProperty("copilotUser") - private CopilotUserResponse copilotUser; - - public String getHost() { return host; } - public void setHost(String host) { this.host = host; } - - public CopilotUserResponse getCopilotUser() { return copilotUser; } - public void setCopilotUser(CopilotUserResponse copilotUser) { this.copilotUser = copilotUser; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponse.java b/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponse.java deleted file mode 100644 index 47b77a71c..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponse.java +++ /dev/null @@ -1,52 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import java.util.Map; -import javax.annotation.processing.Generated; - -/** - * Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CopilotUserResponse( - @JsonProperty("login") String login, - @JsonProperty("access_type_sku") String accessTypeSku, - @JsonProperty("analytics_tracking_id") String analyticsTrackingId, - @JsonProperty("assigned_date") Object assignedDate, - @JsonProperty("can_signup_for_limited") Boolean canSignupForLimited, - @JsonProperty("chat_enabled") Boolean chatEnabled, - @JsonProperty("copilot_plan") String copilotPlan, - @JsonProperty("copilotignore_enabled") Boolean copilotignoreEnabled, - /** Schema for the `CopilotUserResponseEndpoints` type. */ - @JsonProperty("endpoints") CopilotUserResponseEndpoints endpoints, - @JsonProperty("organization_login_list") List organizationLoginList, - @JsonProperty("organization_list") Object organizationList, - @JsonProperty("codex_agent_enabled") Boolean codexAgentEnabled, - @JsonProperty("is_mcp_enabled") Object isMcpEnabled, - @JsonProperty("quota_reset_date") String quotaResetDate, - /** Schema for the `CopilotUserResponseQuotaSnapshots` type. */ - @JsonProperty("quota_snapshots") CopilotUserResponseQuotaSnapshots quotaSnapshots, - @JsonProperty("restricted_telemetry") Boolean restrictedTelemetry, - @JsonProperty("token_based_billing") Boolean tokenBasedBilling, - @JsonProperty("quota_reset_date_utc") String quotaResetDateUtc, - @JsonProperty("limited_user_quotas") Map limitedUserQuotas, - @JsonProperty("limited_user_reset_date") String limitedUserResetDate, - @JsonProperty("monthly_quotas") Map monthlyQuotas, - @JsonProperty("cloud_session_storage_enabled") Boolean cloudSessionStorageEnabled, - @JsonProperty("cli_remote_control_enabled") Boolean cliRemoteControlEnabled -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseEndpoints.java b/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseEndpoints.java deleted file mode 100644 index bd42b1d42..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseEndpoints.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `CopilotUserResponseEndpoints` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CopilotUserResponseEndpoints( - @JsonProperty("api") String api, - @JsonProperty("origin-tracker") String originTracker, - @JsonProperty("proxy") String proxy, - @JsonProperty("telemetry") String telemetry -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshots.java b/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshots.java deleted file mode 100644 index 76ccc1355..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshots.java +++ /dev/null @@ -1,31 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `CopilotUserResponseQuotaSnapshots` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CopilotUserResponseQuotaSnapshots( - /** Schema for the `CopilotUserResponseQuotaSnapshotsChat` type. */ - @JsonProperty("chat") CopilotUserResponseQuotaSnapshotsChat chat, - /** Schema for the `CopilotUserResponseQuotaSnapshotsCompletions` type. */ - @JsonProperty("completions") CopilotUserResponseQuotaSnapshotsCompletions completions, - /** Schema for the `CopilotUserResponseQuotaSnapshotsPremiumInteractions` type. */ - @JsonProperty("premium_interactions") CopilotUserResponseQuotaSnapshotsPremiumInteractions premiumInteractions -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsChat.java b/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsChat.java deleted file mode 100644 index 8f079caad..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsChat.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `CopilotUserResponseQuotaSnapshotsChat` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CopilotUserResponseQuotaSnapshotsChat( - @JsonProperty("entitlement") Double entitlement, - @JsonProperty("overage_count") Double overageCount, - @JsonProperty("overage_permitted") Boolean overagePermitted, - @JsonProperty("percent_remaining") Double percentRemaining, - @JsonProperty("quota_id") String quotaId, - @JsonProperty("quota_remaining") Double quotaRemaining, - @JsonProperty("remaining") Double remaining, - @JsonProperty("unlimited") Boolean unlimited, - @JsonProperty("timestamp_utc") String timestampUtc, - @JsonProperty("has_quota") Boolean hasQuota, - @JsonProperty("quota_reset_at") Double quotaResetAt, - @JsonProperty("token_based_billing") Boolean tokenBasedBilling -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsCompletions.java b/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsCompletions.java deleted file mode 100644 index 72bd26071..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsCompletions.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `CopilotUserResponseQuotaSnapshotsCompletions` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CopilotUserResponseQuotaSnapshotsCompletions( - @JsonProperty("entitlement") Double entitlement, - @JsonProperty("overage_count") Double overageCount, - @JsonProperty("overage_permitted") Boolean overagePermitted, - @JsonProperty("percent_remaining") Double percentRemaining, - @JsonProperty("quota_id") String quotaId, - @JsonProperty("quota_remaining") Double quotaRemaining, - @JsonProperty("remaining") Double remaining, - @JsonProperty("unlimited") Boolean unlimited, - @JsonProperty("timestamp_utc") String timestampUtc, - @JsonProperty("has_quota") Boolean hasQuota, - @JsonProperty("quota_reset_at") Double quotaResetAt, - @JsonProperty("token_based_billing") Boolean tokenBasedBilling -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsPremiumInteractions.java b/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsPremiumInteractions.java deleted file mode 100644 index 74c032e6b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/CopilotUserResponseQuotaSnapshotsPremiumInteractions.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `CopilotUserResponseQuotaSnapshotsPremiumInteractions` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record CopilotUserResponseQuotaSnapshotsPremiumInteractions( - @JsonProperty("entitlement") Double entitlement, - @JsonProperty("overage_count") Double overageCount, - @JsonProperty("overage_permitted") Boolean overagePermitted, - @JsonProperty("percent_remaining") Double percentRemaining, - @JsonProperty("quota_id") String quotaId, - @JsonProperty("quota_remaining") Double quotaRemaining, - @JsonProperty("remaining") Double remaining, - @JsonProperty("unlimited") Boolean unlimited, - @JsonProperty("timestamp_utc") String timestampUtc, - @JsonProperty("has_quota") Boolean hasQuota, - @JsonProperty("quota_reset_at") Double quotaResetAt, - @JsonProperty("token_based_billing") Boolean tokenBasedBilling -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerSource.java b/java/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerSource.java deleted file mode 100644 index 89d7322fb..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/DiscoveredMcpServerSource.java +++ /dev/null @@ -1,39 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import javax.annotation.processing.Generated; - -/** - * Configuration source - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum DiscoveredMcpServerSource { - /** The {@code user} variant. */ - USER("user"), - /** The {@code workspace} variant. */ - WORKSPACE("workspace"), - /** The {@code plugin} variant. */ - PLUGIN("plugin"), - /** The {@code builtin} variant. */ - BUILTIN("builtin"); - - private final String value; - DiscoveredMcpServerSource(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static DiscoveredMcpServerSource fromValue(String value) { - for (DiscoveredMcpServerSource v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown DiscoveredMcpServerSource value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/EnvAuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/EnvAuthInfo.java deleted file mode 100644 index 84cceaf8d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/EnvAuthInfo.java +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `EnvAuthInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class EnvAuthInfo extends AuthInfo { - - @JsonProperty("type") - private final String type = "env"; - - @Override - public String getType() { return type; } - - /** Authentication host (e.g. https://github.com or a GHES host). */ - @JsonProperty("host") - private String host; - - /** User login associated with the token. Undefined for server-to-server tokens (those starting with `ghs_`). */ - @JsonProperty("login") - private String login; - - /** The token value itself. Treat as a secret. */ - @JsonProperty("token") - private String token; - - /** Name of the environment variable the token was sourced from. */ - @JsonProperty("envVar") - private String envVar; - - /** Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. */ - @JsonProperty("copilotUser") - private CopilotUserResponse copilotUser; - - public String getHost() { return host; } - public void setHost(String host) { this.host = host; } - - public String getLogin() { return login; } - public void setLogin(String login) { this.login = login; } - - public String getToken() { return token; } - public void setToken(String token) { this.token = token; } - - public String getEnvVar() { return envVar; } - public void setEnvVar(String envVar) { this.envVar = envVar; } - - public CopilotUserResponse getCopilotUser() { return copilotUser; } - public void setCopilotUser(CopilotUserResponse copilotUser) { this.copilotUser = copilotUser; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/GhCliAuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/GhCliAuthInfo.java deleted file mode 100644 index 96c54893a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/GhCliAuthInfo.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `GhCliAuthInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class GhCliAuthInfo extends AuthInfo { - - @JsonProperty("type") - private final String type = "gh-cli"; - - @Override - public String getType() { return type; } - - /** Authentication host. */ - @JsonProperty("host") - private String host; - - /** User login as reported by `gh auth status`. */ - @JsonProperty("login") - private String login; - - /** The token returned by `gh auth token`. Treat as a secret. */ - @JsonProperty("token") - private String token; - - /** Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. */ - @JsonProperty("copilotUser") - private CopilotUserResponse copilotUser; - - public String getHost() { return host; } - public void setHost(String host) { this.host = host; } - - public String getLogin() { return login; } - public void setLogin(String login) { this.login = login; } - - public String getToken() { return token; } - public void setToken(String token) { this.token = token; } - - public CopilotUserResponse getCopilotUser() { return copilotUser; } - public void setCopilotUser(CopilotUserResponse copilotUser) { this.copilotUser = copilotUser; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/HMACAuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/HMACAuthInfo.java deleted file mode 100644 index 6853d0044..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/HMACAuthInfo.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `HMACAuthInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class HMACAuthInfo extends AuthInfo { - - @JsonProperty("type") - private final String type = "hmac"; - - @Override - public String getType() { return type; } - - /** Authentication host. HMAC auth always targets the public GitHub host. */ - @JsonProperty("host") - private String host; - - /** HMAC secret used to sign requests. */ - @JsonProperty("hmac") - private String hmac; - - /** Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. */ - @JsonProperty("copilotUser") - private CopilotUserResponse copilotUser; - - public String getHost() { return host; } - public void setHost(String host) { this.host = host; } - - public String getHmac() { return hmac; } - public void setHmac(String hmac) { this.hmac = hmac; } - - public CopilotUserResponse getCopilotUser() { return copilotUser; } - public void setCopilotUser(CopilotUserResponse copilotUser) { this.copilotUser = copilotUser; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecision.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecision.java deleted file mode 100644 index 0a2d7ae18..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecision.java +++ /dev/null @@ -1,48 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * The client's response to the pending permission prompt - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = PermissionDecisionApproveOnce.class, name = "approve-once"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSession.class, name = "approve-for-session"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocation.class, name = "approve-for-location"), - @JsonSubTypes.Type(value = PermissionDecisionApprovePermanently.class, name = "approve-permanently"), - @JsonSubTypes.Type(value = PermissionDecisionReject.class, name = "reject"), - @JsonSubTypes.Type(value = PermissionDecisionUserNotAvailable.class, name = "user-not-available"), - @JsonSubTypes.Type(value = PermissionDecisionApproved.class, name = "approved"), - @JsonSubTypes.Type(value = PermissionDecisionApprovedForSession.class, name = "approved-for-session"), - @JsonSubTypes.Type(value = PermissionDecisionApprovedForLocation.class, name = "approved-for-location"), - @JsonSubTypes.Type(value = PermissionDecisionCancelled.class, name = "cancelled"), - @JsonSubTypes.Type(value = PermissionDecisionDeniedByRules.class, name = "denied-by-rules"), - @JsonSubTypes.Type(value = PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser.class, name = "denied-no-approval-rule-and-could-not-request-from-user"), - @JsonSubTypes.Type(value = PermissionDecisionDeniedInteractivelyByUser.class, name = "denied-interactively-by-user"), - @JsonSubTypes.Type(value = PermissionDecisionDeniedByContentExclusionPolicy.class, name = "denied-by-content-exclusion-policy"), - @JsonSubTypes.Type(value = PermissionDecisionDeniedByPermissionRequestHook.class, name = "denied-by-permission-request-hook") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class PermissionDecision { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocation.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocation.java deleted file mode 100644 index 99719a210..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocation.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocation` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocation extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "approve-for-location"; - - @Override - public String getKind() { return kind; } - - /** Approval to persist for this location */ - @JsonProperty("approval") - private PermissionDecisionApproveForLocationApproval approval; - - /** Location key (git root or cwd) to persist the approval to */ - @JsonProperty("locationKey") - private String locationKey; - - public PermissionDecisionApproveForLocationApproval getApproval() { return approval; } - public void setApproval(PermissionDecisionApproveForLocationApproval approval) { this.approval = approval; } - - public String getLocationKey() { return locationKey; } - public void setLocationKey(String locationKey) { this.locationKey = locationKey; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApproval.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApproval.java deleted file mode 100644 index 2fdb5b720..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApproval.java +++ /dev/null @@ -1,42 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Approval to persist for this location - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalCommands.class, name = "commands"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalRead.class, name = "read"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalWrite.class, name = "write"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalMcp.class, name = "mcp"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalMcpSampling.class, name = "mcp-sampling"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalMemory.class, name = "memory"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalCustomTool.class, name = "custom-tool"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalExtensionManagement.class, name = "extension-management"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess.class, name = "extension-permission-access") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class PermissionDecisionApproveForLocationApproval { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalCommands.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalCommands.java deleted file mode 100644 index 7a2273169..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalCommands.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalCommands` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalCommands extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "commands"; - - @Override - public String getKind() { return kind; } - - /** Command identifiers covered by this approval. */ - @JsonProperty("commandIdentifiers") - private List commandIdentifiers; - - public List getCommandIdentifiers() { return commandIdentifiers; } - public void setCommandIdentifiers(List commandIdentifiers) { this.commandIdentifiers = commandIdentifiers; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalCustomTool.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalCustomTool.java deleted file mode 100644 index 523e95e53..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalCustomTool.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalCustomTool` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalCustomTool extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "custom-tool"; - - @Override - public String getKind() { return kind; } - - /** Custom tool name. */ - @JsonProperty("toolName") - private String toolName; - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalExtensionManagement.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalExtensionManagement.java deleted file mode 100644 index 94d5a100d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalExtensionManagement.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalExtensionManagement` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalExtensionManagement extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "extension-management"; - - @Override - public String getKind() { return kind; } - - /** Optional operation identifier; when omitted, the approval covers all extension management operations. */ - @JsonProperty("operation") - private String operation; - - public String getOperation() { return operation; } - public void setOperation(String operation) { this.operation = operation; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess.java deleted file mode 100644 index c18a14fb1..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalExtensionPermissionAccess extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "extension-permission-access"; - - @Override - public String getKind() { return kind; } - - /** Extension name. */ - @JsonProperty("extensionName") - private String extensionName; - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMcp.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMcp.java deleted file mode 100644 index e73934b7f..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMcp.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalMcp` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalMcp extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "mcp"; - - @Override - public String getKind() { return kind; } - - /** MCP server name. */ - @JsonProperty("serverName") - private String serverName; - - /** MCP tool name, or null to cover every tool on the server. */ - @JsonProperty("toolName") - private String toolName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMcpSampling.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMcpSampling.java deleted file mode 100644 index ee16a246f..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMcpSampling.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalMcpSampling` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalMcpSampling extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "mcp-sampling"; - - @Override - public String getKind() { return kind; } - - /** MCP server name. */ - @JsonProperty("serverName") - private String serverName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMemory.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMemory.java deleted file mode 100644 index a254a11b8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalMemory.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalMemory` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalMemory extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "memory"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalRead.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalRead.java deleted file mode 100644 index 9c339c9de..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalRead.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalRead` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalRead extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "read"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalWrite.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalWrite.java deleted file mode 100644 index 9dec0a2a6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForLocationApprovalWrite.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForLocationApprovalWrite` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForLocationApprovalWrite extends PermissionDecisionApproveForLocationApproval { - - @JsonProperty("kind") - private final String kind = "write"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSession.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSession.java deleted file mode 100644 index 4f189391e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSession.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSession` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSession extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "approve-for-session"; - - @Override - public String getKind() { return kind; } - - /** Session-scoped approval to remember (tool prompts only; omitted for path/url prompts) */ - @JsonProperty("approval") - private PermissionDecisionApproveForSessionApproval approval; - - /** URL domain to approve for the rest of the session (URL prompts only) */ - @JsonProperty("domain") - private String domain; - - public PermissionDecisionApproveForSessionApproval getApproval() { return approval; } - public void setApproval(PermissionDecisionApproveForSessionApproval approval) { this.approval = approval; } - - public String getDomain() { return domain; } - public void setDomain(String domain) { this.domain = domain; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApproval.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApproval.java deleted file mode 100644 index d9e0e91ad..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApproval.java +++ /dev/null @@ -1,42 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Session-scoped approval to remember (tool prompts only; omitted for path/url prompts) - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalCommands.class, name = "commands"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalRead.class, name = "read"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalWrite.class, name = "write"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalMcp.class, name = "mcp"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalMcpSampling.class, name = "mcp-sampling"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalMemory.class, name = "memory"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalCustomTool.class, name = "custom-tool"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalExtensionManagement.class, name = "extension-management"), - @JsonSubTypes.Type(value = PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess.class, name = "extension-permission-access") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class PermissionDecisionApproveForSessionApproval { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalCommands.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalCommands.java deleted file mode 100644 index 1dad13b0f..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalCommands.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalCommands` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalCommands extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "commands"; - - @Override - public String getKind() { return kind; } - - /** Command identifiers covered by this approval. */ - @JsonProperty("commandIdentifiers") - private List commandIdentifiers; - - public List getCommandIdentifiers() { return commandIdentifiers; } - public void setCommandIdentifiers(List commandIdentifiers) { this.commandIdentifiers = commandIdentifiers; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalCustomTool.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalCustomTool.java deleted file mode 100644 index 0f9a19174..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalCustomTool.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalCustomTool` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalCustomTool extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "custom-tool"; - - @Override - public String getKind() { return kind; } - - /** Custom tool name. */ - @JsonProperty("toolName") - private String toolName; - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalExtensionManagement.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalExtensionManagement.java deleted file mode 100644 index 8b00492b0..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalExtensionManagement.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalExtensionManagement` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalExtensionManagement extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "extension-management"; - - @Override - public String getKind() { return kind; } - - /** Optional operation identifier; when omitted, the approval covers all extension management operations. */ - @JsonProperty("operation") - private String operation; - - public String getOperation() { return operation; } - public void setOperation(String operation) { this.operation = operation; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess.java deleted file mode 100644 index 354063751..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalExtensionPermissionAccess extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "extension-permission-access"; - - @Override - public String getKind() { return kind; } - - /** Extension name. */ - @JsonProperty("extensionName") - private String extensionName; - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMcp.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMcp.java deleted file mode 100644 index 212a5aea2..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMcp.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalMcp` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalMcp extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "mcp"; - - @Override - public String getKind() { return kind; } - - /** MCP server name. */ - @JsonProperty("serverName") - private String serverName; - - /** MCP tool name, or null to cover every tool on the server. */ - @JsonProperty("toolName") - private String toolName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMcpSampling.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMcpSampling.java deleted file mode 100644 index 3c4fbb2eb..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMcpSampling.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalMcpSampling` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalMcpSampling extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "mcp-sampling"; - - @Override - public String getKind() { return kind; } - - /** MCP server name. */ - @JsonProperty("serverName") - private String serverName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMemory.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMemory.java deleted file mode 100644 index 4fcf072e2..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalMemory.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalMemory` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalMemory extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "memory"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalRead.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalRead.java deleted file mode 100644 index 6966d9fb3..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalRead.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalRead` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalRead extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "read"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalWrite.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalWrite.java deleted file mode 100644 index ab8025dd7..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveForSessionApprovalWrite.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveForSessionApprovalWrite` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveForSessionApprovalWrite extends PermissionDecisionApproveForSessionApproval { - - @JsonProperty("kind") - private final String kind = "write"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveOnce.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveOnce.java deleted file mode 100644 index a4dfbfd1b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproveOnce.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproveOnce` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproveOnce extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "approve-once"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovePermanently.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovePermanently.java deleted file mode 100644 index 34c3304b0..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovePermanently.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApprovePermanently` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApprovePermanently extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "approve-permanently"; - - @Override - public String getKind() { return kind; } - - /** URL domain to approve permanently */ - @JsonProperty("domain") - private String domain; - - public String getDomain() { return domain; } - public void setDomain(String domain) { this.domain = domain; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproved.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproved.java deleted file mode 100644 index b4b317078..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApproved.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApproved` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApproved extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "approved"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovedForLocation.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovedForLocation.java deleted file mode 100644 index faa53fe59..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovedForLocation.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApprovedForLocation` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApprovedForLocation extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "approved-for-location"; - - @Override - public String getKind() { return kind; } - - /** The approval to persist for this location */ - @JsonProperty("approval") - private UserToolSessionApproval approval; - - /** The location key (git root or cwd) to persist the approval to */ - @JsonProperty("locationKey") - private String locationKey; - - public UserToolSessionApproval getApproval() { return approval; } - public void setApproval(UserToolSessionApproval approval) { this.approval = approval; } - - public String getLocationKey() { return locationKey; } - public void setLocationKey(String locationKey) { this.locationKey = locationKey; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovedForSession.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovedForSession.java deleted file mode 100644 index 6adfda22e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionApprovedForSession.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionApprovedForSession` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionApprovedForSession extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "approved-for-session"; - - @Override - public String getKind() { return kind; } - - /** The approval to add as a session-scoped rule */ - @JsonProperty("approval") - private UserToolSessionApproval approval; - - public UserToolSessionApproval getApproval() { return approval; } - public void setApproval(UserToolSessionApproval approval) { this.approval = approval; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionCancelled.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionCancelled.java deleted file mode 100644 index 0f7f51270..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionCancelled.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionCancelled` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionCancelled extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "cancelled"; - - @Override - public String getKind() { return kind; } - - /** Optional explanation of why the request was cancelled */ - @JsonProperty("reason") - private String reason; - - public String getReason() { return reason; } - public void setReason(String reason) { this.reason = reason; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByContentExclusionPolicy.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByContentExclusionPolicy.java deleted file mode 100644 index 3c7993a1d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByContentExclusionPolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionDeniedByContentExclusionPolicy` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionDeniedByContentExclusionPolicy extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "denied-by-content-exclusion-policy"; - - @Override - public String getKind() { return kind; } - - /** File path that triggered the exclusion */ - @JsonProperty("path") - private String path; - - /** Human-readable explanation of why the path was excluded */ - @JsonProperty("message") - private String message; - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } - - public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByPermissionRequestHook.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByPermissionRequestHook.java deleted file mode 100644 index 20df43f28..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByPermissionRequestHook.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionDeniedByPermissionRequestHook` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionDeniedByPermissionRequestHook extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "denied-by-permission-request-hook"; - - @Override - public String getKind() { return kind; } - - /** Optional message from the hook explaining the denial */ - @JsonProperty("message") - private String message; - - /** Whether to interrupt the current agent turn */ - @JsonProperty("interrupt") - private Boolean interrupt; - - public String getMessage() { return message; } - public void setMessage(String message) { this.message = message; } - - public Boolean getInterrupt() { return interrupt; } - public void setInterrupt(Boolean interrupt) { this.interrupt = interrupt; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByRules.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByRules.java deleted file mode 100644 index 2ba8281cd..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedByRules.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionDeniedByRules` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionDeniedByRules extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "denied-by-rules"; - - @Override - public String getKind() { return kind; } - - /** Rules that denied the request */ - @JsonProperty("rules") - private List rules; - - public List getRules() { return rules; } - public void setRules(List rules) { this.rules = rules; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedInteractivelyByUser.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedInteractivelyByUser.java deleted file mode 100644 index ee20ec417..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedInteractivelyByUser.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionDeniedInteractivelyByUser` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionDeniedInteractivelyByUser extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "denied-interactively-by-user"; - - @Override - public String getKind() { return kind; } - - /** Optional feedback from the user explaining the denial */ - @JsonProperty("feedback") - private String feedback; - - /** Whether to force-reject the current agent turn */ - @JsonProperty("forceReject") - private Boolean forceReject; - - public String getFeedback() { return feedback; } - public void setFeedback(String feedback) { this.feedback = feedback; } - - public Boolean getForceReject() { return forceReject; } - public void setForceReject(Boolean forceReject) { this.forceReject = forceReject; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser.java deleted file mode 100644 index 416419cb0..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionDeniedNoApprovalRuleAndCouldNotRequestFromUser extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "denied-no-approval-rule-and-could-not-request-from-user"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionReject.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionReject.java deleted file mode 100644 index 6f8c989d7..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionReject.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionReject` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionReject extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "reject"; - - @Override - public String getKind() { return kind; } - - /** Optional feedback explaining the rejection */ - @JsonProperty("feedback") - private String feedback; - - public String getFeedback() { return feedback; } - public void setFeedback(String feedback) { this.feedback = feedback; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionUserNotAvailable.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionUserNotAvailable.java deleted file mode 100644 index 65bf2d663..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionDecisionUserNotAvailable.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionDecisionUserNotAvailable` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionDecisionUserNotAvailable extends PermissionDecision { - - @JsonProperty("kind") - private final String kind = "user-not-available"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetails.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetails.java deleted file mode 100644 index 643c8ccfd..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetails.java +++ /dev/null @@ -1,42 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Tool approval to persist and apply - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsCommands.class, name = "commands"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsRead.class, name = "read"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsWrite.class, name = "write"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsMcp.class, name = "mcp"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsMcpSampling.class, name = "mcp-sampling"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsMemory.class, name = "memory"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsCustomTool.class, name = "custom-tool"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsExtensionManagement.class, name = "extension-management"), - @JsonSubTypes.Type(value = PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess.class, name = "extension-permission-access") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class PermissionsLocationsAddToolApprovalDetails { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsCommands.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsCommands.java deleted file mode 100644 index 81c9bc292..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsCommands.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsCommands` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsCommands extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "commands"; - - @Override - public String getKind() { return kind; } - - /** Command identifiers covered by this approval. */ - @JsonProperty("commandIdentifiers") - private List commandIdentifiers; - - public List getCommandIdentifiers() { return commandIdentifiers; } - public void setCommandIdentifiers(List commandIdentifiers) { this.commandIdentifiers = commandIdentifiers; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsCustomTool.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsCustomTool.java deleted file mode 100644 index f404dda26..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsCustomTool.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsCustomTool` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsCustomTool extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "custom-tool"; - - @Override - public String getKind() { return kind; } - - /** Custom tool name. */ - @JsonProperty("toolName") - private String toolName; - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsExtensionManagement.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsExtensionManagement.java deleted file mode 100644 index a2bb656f8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsExtensionManagement.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsExtensionManagement` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsExtensionManagement extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "extension-management"; - - @Override - public String getKind() { return kind; } - - /** Optional operation identifier; when omitted, the approval covers all extension management operations. */ - @JsonProperty("operation") - private String operation; - - public String getOperation() { return operation; } - public void setOperation(String operation) { this.operation = operation; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess.java deleted file mode 100644 index 8da6625fa..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsExtensionPermissionAccess extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "extension-permission-access"; - - @Override - public String getKind() { return kind; } - - /** Extension name. */ - @JsonProperty("extensionName") - private String extensionName; - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMcp.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMcp.java deleted file mode 100644 index 24e4a6e4c..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMcp.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsMcp` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsMcp extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "mcp"; - - @Override - public String getKind() { return kind; } - - /** MCP server name. */ - @JsonProperty("serverName") - private String serverName; - - /** MCP tool name, or null to cover every tool on the server. */ - @JsonProperty("toolName") - private String toolName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMcpSampling.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMcpSampling.java deleted file mode 100644 index d6233ca1e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMcpSampling.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsMcpSampling` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsMcpSampling extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "mcp-sampling"; - - @Override - public String getKind() { return kind; } - - /** MCP server name. */ - @JsonProperty("serverName") - private String serverName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMemory.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMemory.java deleted file mode 100644 index 8b3ea87b8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsMemory.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsMemory` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsMemory extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "memory"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsRead.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsRead.java deleted file mode 100644 index 18f3b03e7..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsRead.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsRead` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsRead extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "read"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsWrite.java b/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsWrite.java deleted file mode 100644 index fee038f72..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/PermissionsLocationsAddToolApprovalDetailsWrite.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `PermissionsLocationsAddToolApprovalDetailsWrite` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class PermissionsLocationsAddToolApprovalDetailsWrite extends PermissionsLocationsAddToolApprovalDetails { - - @JsonProperty("kind") - private final String kind = "write"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandHandled.java b/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandHandled.java deleted file mode 100644 index 9e114be27..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandHandled.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `QueuedCommandHandled` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class QueuedCommandHandled extends QueuedCommandResult { - - @JsonProperty("handled") - private final String handled = "true"; - - @Override - public String getHandled() { return handled; } - - /** When true, the runtime will not process subsequent queued commands until a new request comes in. */ - @JsonProperty("stopProcessingQueue") - private Boolean stopProcessingQueue; - - public Boolean getStopProcessingQueue() { return stopProcessingQueue; } - public void setStopProcessingQueue(Boolean stopProcessingQueue) { this.stopProcessingQueue = stopProcessingQueue; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandNotHandled.java b/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandNotHandled.java deleted file mode 100644 index 619098055..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandNotHandled.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `QueuedCommandNotHandled` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class QueuedCommandNotHandled extends QueuedCommandResult { - - @JsonProperty("handled") - private final String handled = "false"; - - @Override - public String getHandled() { return handled; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandResult.java deleted file mode 100644 index 0b6cd7df7..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/QueuedCommandResult.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Result of the queued command execution. - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "handled", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = QueuedCommandHandled.class, name = "true"), - @JsonSubTypes.Type(value = QueuedCommandNotHandled.class, name = "false") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class QueuedCommandResult { - - /** - * Returns the discriminator value for this variant. - * - * @return the handled discriminator - */ - public abstract String getHandled(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachment.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachment.java deleted file mode 100644 index 1d1044270..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachment.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * A user message attachment โ€” a file, directory, code selection, blob, or GitHub reference - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = SendAttachmentFile.class, name = "file"), - @JsonSubTypes.Type(value = SendAttachmentDirectory.class, name = "directory"), - @JsonSubTypes.Type(value = SendAttachmentSelection.class, name = "selection"), - @JsonSubTypes.Type(value = SendAttachmentGitHubReference.class, name = "github_reference"), - @JsonSubTypes.Type(value = SendAttachmentBlob.class, name = "blob") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class SendAttachment { - - /** - * Returns the discriminator value for this variant. - * - * @return the type discriminator - */ - public abstract String getType(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentBlob.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentBlob.java deleted file mode 100644 index 13d7dbb39..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentBlob.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Blob attachment with inline base64-encoded data - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SendAttachmentBlob extends SendAttachment { - - @JsonProperty("type") - private final String type = "blob"; - - @Override - public String getType() { return type; } - - /** Base64-encoded content */ - @JsonProperty("data") - private String data; - - /** MIME type of the inline data */ - @JsonProperty("mimeType") - private String mimeType; - - /** User-facing display name for the attachment */ - @JsonProperty("displayName") - private String displayName; - - public String getData() { return data; } - public void setData(String data) { this.data = data; } - - public String getMimeType() { return mimeType; } - public void setMimeType(String mimeType) { this.mimeType = mimeType; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentDirectory.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentDirectory.java deleted file mode 100644 index 1ac9bf84b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentDirectory.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Directory attachment - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SendAttachmentDirectory extends SendAttachment { - - @JsonProperty("type") - private final String type = "directory"; - - @Override - public String getType() { return type; } - - /** Absolute directory path */ - @JsonProperty("path") - private String path; - - /** User-facing display name for the attachment */ - @JsonProperty("displayName") - private String displayName; - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentFile.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentFile.java deleted file mode 100644 index c9e821b29..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentFile.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * File attachment - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SendAttachmentFile extends SendAttachment { - - @JsonProperty("type") - private final String type = "file"; - - @Override - public String getType() { return type; } - - /** Absolute file path */ - @JsonProperty("path") - private String path; - - /** User-facing display name for the attachment */ - @JsonProperty("displayName") - private String displayName; - - /** Optional line range to scope the attachment to a specific section of the file */ - @JsonProperty("lineRange") - private SendAttachmentFileLineRange lineRange; - - public String getPath() { return path; } - public void setPath(String path) { this.path = path; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } - - public SendAttachmentFileLineRange getLineRange() { return lineRange; } - public void setLineRange(SendAttachmentFileLineRange lineRange) { this.lineRange = lineRange; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentFileLineRange.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentFileLineRange.java deleted file mode 100644 index 661fe2181..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentFileLineRange.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Optional line range to scope the attachment to a specific section of the file - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SendAttachmentFileLineRange( - /** Start line number (1-based) */ - @JsonProperty("start") Long start, - /** End line number (1-based, inclusive) */ - @JsonProperty("end") Long end -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentGitHubReference.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentGitHubReference.java deleted file mode 100644 index ce4f0363a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentGitHubReference.java +++ /dev/null @@ -1,65 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * GitHub issue, pull request, or discussion reference - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SendAttachmentGitHubReference extends SendAttachment { - - @JsonProperty("type") - private final String type = "github_reference"; - - @Override - public String getType() { return type; } - - /** Issue, pull request, or discussion number */ - @JsonProperty("number") - private Long number; - - /** Title of the referenced item */ - @JsonProperty("title") - private String title; - - /** Type of GitHub reference */ - @JsonProperty("referenceType") - private SendAttachmentGitHubReferenceType referenceType; - - /** Current state of the referenced item (e.g., open, closed, merged) */ - @JsonProperty("state") - private String state; - - /** URL to the referenced item on GitHub */ - @JsonProperty("url") - private String url; - - public Long getNumber() { return number; } - public void setNumber(Long number) { this.number = number; } - - public String getTitle() { return title; } - public void setTitle(String title) { this.title = title; } - - public SendAttachmentGitHubReferenceType getReferenceType() { return referenceType; } - public void setReferenceType(SendAttachmentGitHubReferenceType referenceType) { this.referenceType = referenceType; } - - public String getState() { return state; } - public void setState(String state) { this.state = state; } - - public String getUrl() { return url; } - public void setUrl(String url) { this.url = url; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentGitHubReferenceType.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentGitHubReferenceType.java deleted file mode 100644 index 18c9cdca4..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentGitHubReferenceType.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import javax.annotation.processing.Generated; - -/** - * Type of GitHub reference - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum SendAttachmentGitHubReferenceType { - /** The {@code issue} variant. */ - ISSUE("issue"), - /** The {@code pr} variant. */ - PR("pr"), - /** The {@code discussion} variant. */ - DISCUSSION("discussion"); - - private final String value; - SendAttachmentGitHubReferenceType(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SendAttachmentGitHubReferenceType fromValue(String value) { - for (SendAttachmentGitHubReferenceType v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SendAttachmentGitHubReferenceType value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelection.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelection.java deleted file mode 100644 index c00a9ca36..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelection.java +++ /dev/null @@ -1,58 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Code selection attachment from an editor - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SendAttachmentSelection extends SendAttachment { - - @JsonProperty("type") - private final String type = "selection"; - - @Override - public String getType() { return type; } - - /** Absolute path to the file containing the selection */ - @JsonProperty("filePath") - private String filePath; - - /** User-facing display name for the selection */ - @JsonProperty("displayName") - private String displayName; - - /** The selected text content */ - @JsonProperty("text") - private String text; - - /** Position range of the selection within the file */ - @JsonProperty("selection") - private SendAttachmentSelectionDetails selection; - - public String getFilePath() { return filePath; } - public void setFilePath(String filePath) { this.filePath = filePath; } - - public String getDisplayName() { return displayName; } - public void setDisplayName(String displayName) { this.displayName = displayName; } - - public String getText() { return text; } - public void setText(String text) { this.text = text; } - - public SendAttachmentSelectionDetails getSelection() { return selection; } - public void setSelection(SendAttachmentSelectionDetails selection) { this.selection = selection; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetails.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetails.java deleted file mode 100644 index 68822bb45..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetails.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Position range of the selection within the file - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SendAttachmentSelectionDetails( - /** Start position of the selection */ - @JsonProperty("start") SendAttachmentSelectionDetailsStart start, - /** End position of the selection */ - @JsonProperty("end") SendAttachmentSelectionDetailsEnd end -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetailsEnd.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetailsEnd.java deleted file mode 100644 index 4ddedb9b4..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetailsEnd.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * End position of the selection - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SendAttachmentSelectionDetailsEnd( - /** End line number (0-based) */ - @JsonProperty("line") Long line, - /** End character offset within the line (0-based) */ - @JsonProperty("character") Long character -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetailsStart.java b/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetailsStart.java deleted file mode 100644 index af896ef1a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SendAttachmentSelectionDetailsStart.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Start position of the selection - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SendAttachmentSelectionDetailsStart( - /** Start line number (0-based) */ - @JsonProperty("line") Long line, - /** Start character offset within the line (0-based) */ - @JsonProperty("character") Long character -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectResult.java deleted file mode 100644 index 679a3fb83..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionAgentDeselectResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.agent.deselect} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionAgentDeselectResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasInvokeActionParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasInvokeActionParams.java deleted file mode 100644 index 3696e3e3e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasInvokeActionParams.java +++ /dev/null @@ -1,33 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Canvas action invocation parameters. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCanvasInvokeActionParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Open canvas instance identifier */ - @JsonProperty("instanceId") String instanceId, - /** Action name to invoke */ - @JsonProperty("actionName") String actionName, - /** Action input */ - @JsonProperty("input") Object input -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasInvokeActionResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasInvokeActionResult.java deleted file mode 100644 index 117b618ae..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasInvokeActionResult.java +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Canvas action invocation result. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionCanvasInvokeActionResult( - /** Provider-supplied action result */ - @JsonProperty("result") Object result -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableResult.java deleted file mode 100644 index ac057e5a2..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsDisableResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.extensions.disable} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsDisableResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableResult.java deleted file mode 100644 index 82d9b9c6b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsEnableResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.extensions.enable} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsEnableResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadResult.java deleted file mode 100644 index 9d118b783..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionExtensionsReloadResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.extensions.reload} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionExtensionsReloadResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableResult.java deleted file mode 100644 index 834dc2cb7..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpDisableResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.mcp.disable} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpDisableResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableResult.java deleted file mode 100644 index 86b1a6716..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpEnableResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.mcp.enable} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpEnableResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadResult.java deleted file mode 100644 index 3f0d970fc..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpReloadResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.mcp.reload} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMcpReloadResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadata.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadata.java deleted file mode 100644 index 03a9e3280..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadata.java +++ /dev/null @@ -1,45 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `SessionMetadata` type. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadata( - /** Stable session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Session creation time as an ISO 8601 timestamp */ - @JsonProperty("startTime") String startTime, - /** Last-modified time of the session's persisted state, as ISO 8601 */ - @JsonProperty("modifiedTime") String modifiedTime, - /** Short summary of the session, when one has been derived */ - @JsonProperty("summary") String summary, - /** Optional human-friendly name set via /rename */ - @JsonProperty("name") String name, - /** Runtime client name that created/last resumed this session */ - @JsonProperty("clientName") String clientName, - /** True for remote (GitHub) sessions; false for local */ - @JsonProperty("isRemote") Boolean isRemote, - /** True for detached maintenance sessions that should be hidden from normal resume lists. */ - @JsonProperty("isDetached") Boolean isDetached, - /** Schema for the `SessionContext` type. */ - @JsonProperty("context") SessionContext context, - /** GitHub task ID, when this local session is bound to one. Only present for local sessions exported to remote control. */ - @JsonProperty("mcTaskId") String mcTaskId -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeResult.java deleted file mode 100644 index 41f252b20..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionMetadataRecordContextChangeResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Notify the session that its working directory context has changed. Emits a `session.context_changed` event so consumers (telemetry, OTel tracker, ACP, the timeline UI) can react. Use this when the host has detected a cwd/branch/repo change outside the session's normal lifecycle (e.g., after a shell command in interactive mode). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionMetadataRecordContextChangeResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionModeGetResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionModeGetResult.java deleted file mode 100644 index b5123aebf..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionModeGetResult.java +++ /dev/null @@ -1,49 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.mode.get} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModeGetResult( - /** The current agent mode. */ - @JsonProperty("mode") SessionModeGetResultMode mode -) { - - /** The current agent mode. */ - public enum SessionModeGetResultMode { - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code plan} variant. */ - PLAN("plan"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"); - - private final String value; - SessionModeGetResultMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionModeGetResultMode fromValue(String value) { - for (SessionModeGetResultMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionModeGetResultMode value: " + value); - } - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionModeSetResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionModeSetResult.java deleted file mode 100644 index c79602272..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionModeSetResult.java +++ /dev/null @@ -1,49 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.mode.set} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionModeSetResult( - /** The agent mode after switching. */ - @JsonProperty("mode") SessionModeSetResultMode mode -) { - - /** The agent mode after switching. */ - public enum SessionModeSetResultMode { - /** The {@code interactive} variant. */ - INTERACTIVE("interactive"), - /** The {@code plan} variant. */ - PLAN("plan"), - /** The {@code autopilot} variant. */ - AUTOPILOT("autopilot"); - - private final String value; - SessionModeSetResultMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static SessionModeSetResultMode fromValue(String value) { - for (SessionModeSetResultMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown SessionModeSetResultMode value: " + value); - } - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteResult.java deleted file mode 100644 index 98cb199e6..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionPlanDeleteResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.plan.delete} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPlanDeleteResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateResult.java deleted file mode 100644 index 3e17cfeda..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionPlanUpdateResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.plan.update} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionPlanUpdateResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedResult.java deleted file mode 100644 index 4d48e604d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionRemoteNotifySteerableChangedResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Persist a steerability change as a `session.remote_steerable_changed` event. Used by the host (CLI / SDK consumer) when it has just finished enabling or disabling steering on a remote exporter that the runtime does not directly own. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionRemoteNotifySteerableChangedResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableResult.java deleted file mode 100644 index 3bd4b7dad..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsDisableResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.skills.disable} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsDisableResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableResult.java deleted file mode 100644 index e8684ddc1..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionSkillsEnableResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.skills.enable} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionSkillsEnableResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshResult.java deleted file mode 100644 index 497d41233..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionTasksRefreshResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Refresh metadata for any detached background shells the runtime knows about. Use after a long pause to pick up exit/output state for shells running outside the agent loop. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksRefreshResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingResult.java deleted file mode 100644 index b8ec86d12..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionTasksWaitForPendingResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Wait until all in-flight background tasks (agents + shells) and any follow-up turns scheduled by their completions have settled. Returns when the runtime is fully drained or after an internal timeout (default 10 minutes; configurable via COPILOT_TASK_WAIT_TIMEOUT_SECONDS). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionTasksWaitForPendingResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateResult.java deleted file mode 100644 index b4126b390..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionToolsInitializeAndValidateResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Resolve, build, and validate the runtime tool list for this session. Subagent sessions and consumer flows that need an initialized tool set before `send` invoke this. Default base-class implementation is a no-op for sessions that don't support tool validation. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionToolsInitializeAndValidateResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceApi.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceApi.java deleted file mode 100644 index d74f67047..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceApi.java +++ /dev/null @@ -1,66 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import java.util.concurrent.CompletableFuture; -import javax.annotation.processing.Generated; - -/** - * API methods for the {@code workspace} namespace. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class SessionWorkspaceApi { - - private static final com.fasterxml.jackson.databind.ObjectMapper MAPPER = RpcMapper.INSTANCE; - - private final RpcCaller caller; - private final String sessionId; - - /** @param caller the RPC transport function */ - SessionWorkspaceApi(RpcCaller caller, String sessionId) { - this.caller = caller; - this.sessionId = sessionId; - } - - /** - * Invokes {@code session.workspace.listFiles}. - * @since 1.0.0 - */ - public CompletableFuture listFiles() { - return caller.invoke("session.workspace.listFiles", java.util.Map.of("sessionId", this.sessionId), SessionWorkspaceListFilesResult.class); - } - - /** - * Invokes {@code session.workspace.readFile}. - *

- * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * @since 1.0.0 - */ - public CompletableFuture readFile(SessionWorkspaceReadFileParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.workspace.readFile", _p, SessionWorkspaceReadFileResult.class); - } - - /** - * Invokes {@code session.workspace.createFile}. - *

- * Note: the {@code sessionId} field in the params record is overridden - * by the session-scoped wrapper; any value provided is ignored. - * @since 1.0.0 - */ - public CompletableFuture createFile(SessionWorkspaceCreateFileParams params) { - com.fasterxml.jackson.databind.node.ObjectNode _p = MAPPER.valueToTree(params); - _p.put("sessionId", this.sessionId); - return caller.invoke("session.workspace.createFile", _p, Void.class); - } - -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileParams.java deleted file mode 100644 index 94efe9313..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileParams.java +++ /dev/null @@ -1,31 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Request parameters for the {@code session.workspace.createFile} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspaceCreateFileParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Relative path within the workspace files directory */ - @JsonProperty("path") String path, - /** File content to write as a UTF-8 string */ - @JsonProperty("content") String content -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileResult.java deleted file mode 100644 index f0bf113ba..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceCreateFileResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.workspace.createFile} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspaceCreateFileResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesParams.java deleted file mode 100644 index a2fd1407c..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesParams.java +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Request parameters for the {@code session.workspace.listFiles} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspaceListFilesParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesResult.java deleted file mode 100644 index 96e7ce9c4..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceListFilesResult.java +++ /dev/null @@ -1,28 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.workspace.listFiles} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspaceListFilesResult( - /** Relative file paths in the workspace files directory */ - @JsonProperty("files") List files -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileParams.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileParams.java deleted file mode 100644 index c39a8a525..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileParams.java +++ /dev/null @@ -1,29 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Request parameters for the {@code session.workspace.readFile} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspaceReadFileParams( - /** Target session identifier */ - @JsonProperty("sessionId") String sessionId, - /** Relative path within the workspace files directory */ - @JsonProperty("path") String path -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileResult.java deleted file mode 100644 index b4ece91ef..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspaceReadFileResult.java +++ /dev/null @@ -1,27 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Result for the {@code session.workspace.readFile} RPC method. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionWorkspaceReadFileResult( - /** File content as a UTF-8 string */ - @JsonProperty("content") String content -) { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsCloseResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionsCloseResult.java deleted file mode 100644 index a63c44633..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsCloseResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Closes a session: emits shutdown, flushes pending events to disk, releases the in-use lock, disposes the active session. Idempotent: succeeds even if the session is not currently active. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsCloseResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockResult.java deleted file mode 100644 index dde0c445e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsReleaseLockResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Release the in-use lock held by this process for the given session. No-op when this process does not currently hold a lock for the session. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsReleaseLockResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksResult.java deleted file mode 100644 index 835641e4d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsReloadPluginHooksResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Reload all hooks (user, plugin, optionally repo) and apply them to the active session. Call after installing or removing plugins so their hooks take effect immediately. No-op when no active session matches the given sessionId. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsReloadPluginHooksResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsSaveResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionsSaveResult.java deleted file mode 100644 index 758d11885..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsSaveResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Flush a session's pending events to disk. No-op when no writer exists for the session (e.g., already closed). - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsSaveResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsResult.java b/java/src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsResult.java deleted file mode 100644 index 848ff9e08..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/SessionsSetAdditionalPluginsResult.java +++ /dev/null @@ -1,24 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Replace the manager-wide additional plugins. New session creations and subsequent hook reloads see the new set; already-running sessions keep their existing hook installation until the next reload. - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonIgnoreProperties(ignoreUnknown = true) -public record SessionsSetAdditionalPluginsResult() { -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/TaskAgentInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/TaskAgentInfo.java deleted file mode 100644 index 7ec2e405b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/TaskAgentInfo.java +++ /dev/null @@ -1,150 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Schema for the `TaskAgentInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class TaskAgentInfo extends TaskInfo { - - @JsonProperty("type") - private final String type = "agent"; - - @Override - public String getType() { return type; } - - /** Unique task identifier */ - @JsonProperty("id") - private String id; - - /** Tool call ID associated with this agent task */ - @JsonProperty("toolCallId") - private String toolCallId; - - /** Short description of the task */ - @JsonProperty("description") - private String description; - - /** Current lifecycle status of the task */ - @JsonProperty("status") - private TaskStatus status; - - /** ISO 8601 timestamp when the task was started */ - @JsonProperty("startedAt") - private OffsetDateTime startedAt; - - /** ISO 8601 timestamp when the task finished */ - @JsonProperty("completedAt") - private OffsetDateTime completedAt; - - /** Accumulated active execution time in milliseconds */ - @JsonProperty("activeTimeMs") - private Long activeTimeMs; - - /** ISO 8601 timestamp when the current active period began */ - @JsonProperty("activeStartedAt") - private OffsetDateTime activeStartedAt; - - /** Error message when the task failed */ - @JsonProperty("error") - private String error; - - /** Type of agent running this task */ - @JsonProperty("agentType") - private String agentType; - - /** Prompt passed to the agent */ - @JsonProperty("prompt") - private String prompt; - - /** Result text from the task when available */ - @JsonProperty("result") - private String result; - - /** Model used for the task when specified */ - @JsonProperty("model") - private String model; - - /** Whether task execution is synchronously awaited or managed in the background */ - @JsonProperty("executionMode") - private TaskExecutionMode executionMode; - - /** Whether the task is currently in the original sync wait and can be moved to background mode. False once it is already backgrounded, idle, finished, or no longer has a promotable sync waiter. */ - @JsonProperty("canPromoteToBackground") - private Boolean canPromoteToBackground; - - /** Most recent response text from the agent */ - @JsonProperty("latestResponse") - private String latestResponse; - - /** ISO 8601 timestamp when the agent entered idle state */ - @JsonProperty("idleSince") - private OffsetDateTime idleSince; - - public String getId() { return id; } - public void setId(String id) { this.id = id; } - - public String getToolCallId() { return toolCallId; } - public void setToolCallId(String toolCallId) { this.toolCallId = toolCallId; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - - public TaskStatus getStatus() { return status; } - public void setStatus(TaskStatus status) { this.status = status; } - - public OffsetDateTime getStartedAt() { return startedAt; } - public void setStartedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; } - - public OffsetDateTime getCompletedAt() { return completedAt; } - public void setCompletedAt(OffsetDateTime completedAt) { this.completedAt = completedAt; } - - public Long getActiveTimeMs() { return activeTimeMs; } - public void setActiveTimeMs(Long activeTimeMs) { this.activeTimeMs = activeTimeMs; } - - public OffsetDateTime getActiveStartedAt() { return activeStartedAt; } - public void setActiveStartedAt(OffsetDateTime activeStartedAt) { this.activeStartedAt = activeStartedAt; } - - public String getError() { return error; } - public void setError(String error) { this.error = error; } - - public String getAgentType() { return agentType; } - public void setAgentType(String agentType) { this.agentType = agentType; } - - public String getPrompt() { return prompt; } - public void setPrompt(String prompt) { this.prompt = prompt; } - - public String getResult() { return result; } - public void setResult(String result) { this.result = result; } - - public String getModel() { return model; } - public void setModel(String model) { this.model = model; } - - public TaskExecutionMode getExecutionMode() { return executionMode; } - public void setExecutionMode(TaskExecutionMode executionMode) { this.executionMode = executionMode; } - - public Boolean getCanPromoteToBackground() { return canPromoteToBackground; } - public void setCanPromoteToBackground(Boolean canPromoteToBackground) { this.canPromoteToBackground = canPromoteToBackground; } - - public String getLatestResponse() { return latestResponse; } - public void setLatestResponse(String latestResponse) { this.latestResponse = latestResponse; } - - public OffsetDateTime getIdleSince() { return idleSince; } - public void setIdleSince(OffsetDateTime idleSince) { this.idleSince = idleSince; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/TaskExecutionMode.java b/java/src/generated/java/com/github/copilot/generated/rpc/TaskExecutionMode.java deleted file mode 100644 index afa489ce8..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/TaskExecutionMode.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import javax.annotation.processing.Generated; - -/** - * Whether task execution is synchronously awaited or managed in the background - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum TaskExecutionMode { - /** The {@code sync} variant. */ - SYNC("sync"), - /** The {@code background} variant. */ - BACKGROUND("background"); - - private final String value; - TaskExecutionMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static TaskExecutionMode fromValue(String value) { - for (TaskExecutionMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown TaskExecutionMode value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/TaskInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/TaskInfo.java deleted file mode 100644 index 91b90f37a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/TaskInfo.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * Schema for the `TaskInfo` type. - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = TaskAgentInfo.class, name = "agent"), - @JsonSubTypes.Type(value = TaskShellInfo.class, name = "shell") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class TaskInfo { - - /** - * Returns the discriminator value for this variant. - * - * @return the type discriminator - */ - public abstract String getType(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/TaskShellInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/TaskShellInfo.java deleted file mode 100644 index 69690e964..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/TaskShellInfo.java +++ /dev/null @@ -1,108 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.time.OffsetDateTime; -import javax.annotation.processing.Generated; - -/** - * Schema for the `TaskShellInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class TaskShellInfo extends TaskInfo { - - @JsonProperty("type") - private final String type = "shell"; - - @Override - public String getType() { return type; } - - /** Unique task identifier */ - @JsonProperty("id") - private String id; - - /** Short description of the task */ - @JsonProperty("description") - private String description; - - /** Current lifecycle status of the task */ - @JsonProperty("status") - private TaskStatus status; - - /** ISO 8601 timestamp when the task was started */ - @JsonProperty("startedAt") - private OffsetDateTime startedAt; - - /** ISO 8601 timestamp when the task finished */ - @JsonProperty("completedAt") - private OffsetDateTime completedAt; - - /** Command being executed */ - @JsonProperty("command") - private String command; - - /** Whether the shell runs inside a managed PTY session or as an independent background process */ - @JsonProperty("attachmentMode") - private TaskShellInfoAttachmentMode attachmentMode; - - /** Whether task execution is synchronously awaited or managed in the background */ - @JsonProperty("executionMode") - private TaskExecutionMode executionMode; - - /** Whether this shell task can be promoted to background mode */ - @JsonProperty("canPromoteToBackground") - private Boolean canPromoteToBackground; - - /** Path to the detached shell log, when available */ - @JsonProperty("logPath") - private String logPath; - - /** Process ID when available */ - @JsonProperty("pid") - private Long pid; - - public String getId() { return id; } - public void setId(String id) { this.id = id; } - - public String getDescription() { return description; } - public void setDescription(String description) { this.description = description; } - - public TaskStatus getStatus() { return status; } - public void setStatus(TaskStatus status) { this.status = status; } - - public OffsetDateTime getStartedAt() { return startedAt; } - public void setStartedAt(OffsetDateTime startedAt) { this.startedAt = startedAt; } - - public OffsetDateTime getCompletedAt() { return completedAt; } - public void setCompletedAt(OffsetDateTime completedAt) { this.completedAt = completedAt; } - - public String getCommand() { return command; } - public void setCommand(String command) { this.command = command; } - - public TaskShellInfoAttachmentMode getAttachmentMode() { return attachmentMode; } - public void setAttachmentMode(TaskShellInfoAttachmentMode attachmentMode) { this.attachmentMode = attachmentMode; } - - public TaskExecutionMode getExecutionMode() { return executionMode; } - public void setExecutionMode(TaskExecutionMode executionMode) { this.executionMode = executionMode; } - - public Boolean getCanPromoteToBackground() { return canPromoteToBackground; } - public void setCanPromoteToBackground(Boolean canPromoteToBackground) { this.canPromoteToBackground = canPromoteToBackground; } - - public String getLogPath() { return logPath; } - public void setLogPath(String logPath) { this.logPath = logPath; } - - public Long getPid() { return pid; } - public void setPid(Long pid) { this.pid = pid; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/TaskShellInfoAttachmentMode.java b/java/src/generated/java/com/github/copilot/generated/rpc/TaskShellInfoAttachmentMode.java deleted file mode 100644 index e247f3180..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/TaskShellInfoAttachmentMode.java +++ /dev/null @@ -1,35 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import javax.annotation.processing.Generated; - -/** - * Whether the shell runs inside a managed PTY session or as an independent background process - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum TaskShellInfoAttachmentMode { - /** The {@code attached} variant. */ - ATTACHED("attached"), - /** The {@code detached} variant. */ - DETACHED("detached"); - - private final String value; - TaskShellInfoAttachmentMode(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static TaskShellInfoAttachmentMode fromValue(String value) { - for (TaskShellInfoAttachmentMode v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown TaskShellInfoAttachmentMode value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/TaskStatus.java b/java/src/generated/java/com/github/copilot/generated/rpc/TaskStatus.java deleted file mode 100644 index 1b15508fb..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/TaskStatus.java +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import javax.annotation.processing.Generated; - -/** - * Current lifecycle status of the task - * - * @since 1.0.0 - */ -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public enum TaskStatus { - /** The {@code running} variant. */ - RUNNING("running"), - /** The {@code idle} variant. */ - IDLE("idle"), - /** The {@code completed} variant. */ - COMPLETED("completed"), - /** The {@code failed} variant. */ - FAILED("failed"), - /** The {@code cancelled} variant. */ - CANCELLED("cancelled"); - - private final String value; - TaskStatus(String value) { this.value = value; } - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { return value; } - @com.fasterxml.jackson.annotation.JsonCreator - public static TaskStatus fromValue(String value) { - for (TaskStatus v : values()) { - if (v.value.equals(value)) return v; - } - throw new IllegalArgumentException("Unknown TaskStatus value: " + value); - } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/TokenAuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/TokenAuthInfo.java deleted file mode 100644 index a635a7bed..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/TokenAuthInfo.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `TokenAuthInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class TokenAuthInfo extends AuthInfo { - - @JsonProperty("type") - private final String type = "token"; - - @Override - public String getType() { return type; } - - /** Authentication host. */ - @JsonProperty("host") - private String host; - - /** The token value itself. Treat as a secret. */ - @JsonProperty("token") - private String token; - - /** Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. */ - @JsonProperty("copilotUser") - private CopilotUserResponse copilotUser; - - public String getHost() { return host; } - public void setHost(String host) { this.host = host; } - - public String getToken() { return token; } - public void setToken(String token) { this.token = token; } - - public CopilotUserResponse getCopilotUser() { return copilotUser; } - public void setCopilotUser(CopilotUserResponse copilotUser) { this.copilotUser = copilotUser; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserAuthInfo.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserAuthInfo.java deleted file mode 100644 index d271bfb4a..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserAuthInfo.java +++ /dev/null @@ -1,51 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserAuthInfo` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserAuthInfo extends AuthInfo { - - @JsonProperty("type") - private final String type = "user"; - - @Override - public String getType() { return type; } - - /** Authentication host. */ - @JsonProperty("host") - private String host; - - /** OAuth user login. */ - @JsonProperty("login") - private String login; - - /** Snapshot of the authenticated user's Copilot subscription info, if known. Mirrors the GitHub API `/copilot_internal/v2/token` user response shape โ€” the runtime trusts this verbatim and does not re-fetch when set. */ - @JsonProperty("copilotUser") - private CopilotUserResponse copilotUser; - - public String getHost() { return host; } - public void setHost(String host) { this.host = host; } - - public String getLogin() { return login; } - public void setLogin(String login) { this.login = login; } - - public CopilotUserResponse getCopilotUser() { return copilotUser; } - public void setCopilotUser(CopilotUserResponse copilotUser) { this.copilotUser = copilotUser; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApproval.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApproval.java deleted file mode 100644 index 6b5e8e7c4..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApproval.java +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import javax.annotation.processing.Generated; - -/** - * The approval to add as a session-scoped rule - * - * @since 1.0.0 - */ -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "kind", visible = true) -@JsonSubTypes({ - @JsonSubTypes.Type(value = UserToolSessionApprovalCommands.class, name = "commands"), - @JsonSubTypes.Type(value = UserToolSessionApprovalRead.class, name = "read"), - @JsonSubTypes.Type(value = UserToolSessionApprovalWrite.class, name = "write"), - @JsonSubTypes.Type(value = UserToolSessionApprovalMcp.class, name = "mcp"), - @JsonSubTypes.Type(value = UserToolSessionApprovalMemory.class, name = "memory"), - @JsonSubTypes.Type(value = UserToolSessionApprovalCustomTool.class, name = "custom-tool"), - @JsonSubTypes.Type(value = UserToolSessionApprovalExtensionManagement.class, name = "extension-management"), - @JsonSubTypes.Type(value = UserToolSessionApprovalExtensionPermissionAccess.class, name = "extension-permission-access") -}) -@JsonIgnoreProperties(ignoreUnknown = true) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public abstract class UserToolSessionApproval { - - /** - * Returns the discriminator value for this variant. - * - * @return the kind discriminator - */ - public abstract String getKind(); -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalCommands.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalCommands.java deleted file mode 100644 index 1a45fc406..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalCommands.java +++ /dev/null @@ -1,38 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalCommands` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalCommands extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "commands"; - - @Override - public String getKind() { return kind; } - - /** Command identifiers approved by the user */ - @JsonProperty("commandIdentifiers") - private List commandIdentifiers; - - public List getCommandIdentifiers() { return commandIdentifiers; } - public void setCommandIdentifiers(List commandIdentifiers) { this.commandIdentifiers = commandIdentifiers; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalCustomTool.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalCustomTool.java deleted file mode 100644 index c479eb71d..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalCustomTool.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalCustomTool` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalCustomTool extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "custom-tool"; - - @Override - public String getKind() { return kind; } - - /** Custom tool name */ - @JsonProperty("toolName") - private String toolName; - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalExtensionManagement.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalExtensionManagement.java deleted file mode 100644 index 5d21936a0..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalExtensionManagement.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalExtensionManagement` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalExtensionManagement extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "extension-management"; - - @Override - public String getKind() { return kind; } - - /** Optional operation identifier */ - @JsonProperty("operation") - private String operation; - - public String getOperation() { return operation; } - public void setOperation(String operation) { this.operation = operation; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalExtensionPermissionAccess.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalExtensionPermissionAccess.java deleted file mode 100644 index 5e4da39ae..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalExtensionPermissionAccess.java +++ /dev/null @@ -1,37 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalExtensionPermissionAccess` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalExtensionPermissionAccess extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "extension-permission-access"; - - @Override - public String getKind() { return kind; } - - /** Extension name */ - @JsonProperty("extensionName") - private String extensionName; - - public String getExtensionName() { return extensionName; } - public void setExtensionName(String extensionName) { this.extensionName = extensionName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalMcp.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalMcp.java deleted file mode 100644 index e7cb2035b..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalMcp.java +++ /dev/null @@ -1,44 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalMcp` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalMcp extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "mcp"; - - @Override - public String getKind() { return kind; } - - /** MCP server name */ - @JsonProperty("serverName") - private String serverName; - - /** Optional MCP tool name, or null for all tools on the server */ - @JsonProperty("toolName") - private String toolName; - - public String getServerName() { return serverName; } - public void setServerName(String serverName) { this.serverName = serverName; } - - public String getToolName() { return toolName; } - public void setToolName(String toolName) { this.toolName = toolName; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalMemory.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalMemory.java deleted file mode 100644 index 472080418..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalMemory.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalMemory` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalMemory extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "memory"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalRead.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalRead.java deleted file mode 100644 index 3d84e786e..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalRead.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalRead` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalRead extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "read"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalWrite.java b/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalWrite.java deleted file mode 100644 index 36696d463..000000000 --- a/java/src/generated/java/com/github/copilot/generated/rpc/UserToolSessionApprovalWrite.java +++ /dev/null @@ -1,30 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - *--------------------------------------------------------------------------------------------*/ - -// AUTO-GENERATED FILE - DO NOT EDIT -// Generated from: api.schema.json - -package com.github.copilot.generated.rpc; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import javax.annotation.processing.Generated; - -/** - * Schema for the `UserToolSessionApprovalWrite` type. - * - * @since 1.0.0 - */ -@JsonIgnoreProperties(ignoreUnknown = true) -@JsonInclude(JsonInclude.Include.NON_NULL) -@javax.annotation.processing.Generated("copilot-sdk-codegen") -public final class UserToolSessionApprovalWrite extends UserToolSessionApproval { - - @JsonProperty("kind") - private final String kind = "write"; - - @Override - public String getKind() { return kind; } -} diff --git a/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcApiCoverageTest.java b/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcApiCoverageTest.java index 4bc1cc06b..a4c934463 100644 --- a/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcApiCoverageTest.java +++ b/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcApiCoverageTest.java @@ -663,14 +663,6 @@ void sessionsForkParams_record() { assertEquals("event-123", params.toEventId()); } - // โ”€โ”€ SessionAgentDeselectResult (empty record) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ - - @Test - void sessionAgentDeselectResult_empty_record() { - var result = new SessionAgentDeselectResult(); - assertNotNull(result); - } - // โ”€โ”€ SessionLogParams enum โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ @Test diff --git a/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java b/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java index 4ed98c269..2f96668bf 100644 --- a/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java +++ b/java/src/test/java/com/github/copilot/generated/rpc/GeneratedRpcRecordsCoverageTest.java @@ -447,27 +447,6 @@ void sessionUsageGetMetricsParams_record() { assertEquals("sess-47", params.sessionId()); } - @Test - void sessionWorkspaceCreateFileParams_record() { - var params = new SessionWorkspaceCreateFileParams("sess-48", "README.md", "# Hello"); - assertEquals("sess-48", params.sessionId()); - assertEquals("README.md", params.path()); - assertEquals("# Hello", params.content()); - } - - @Test - void sessionWorkspaceListFilesParams_record() { - var params = new SessionWorkspaceListFilesParams("sess-49"); - assertEquals("sess-49", params.sessionId()); - } - - @Test - void sessionWorkspaceReadFileParams_record() { - var params = new SessionWorkspaceReadFileParams("sess-50", "src/Main.java"); - assertEquals("sess-50", params.sessionId()); - assertEquals("src/Main.java", params.path()); - } - // โ”€โ”€ Result records โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ @Test @@ -479,11 +458,6 @@ void pingResult_fields() { assertEquals(1L, result.protocolVersion()); } - @Test - void sessionAgentDeselectResult_empty() { - assertNotNull(new SessionAgentDeselectResult()); - } - @Test void sessionAgentListResult_with_items() { var item = new AgentInfo("name1", "Name One", "Desc 1", "/path/to/agent1", null, null, null, null, null, null, @@ -536,16 +510,6 @@ void sessionCommandsHandlePendingCommandResult_record() { assertFalse(new SessionCommandsHandlePendingCommandResult(false).success()); } - @Test - void sessionExtensionsDisableResult_empty() { - assertNotNull(new SessionExtensionsDisableResult()); - } - - @Test - void sessionExtensionsEnableResult_empty() { - assertNotNull(new SessionExtensionsEnableResult()); - } - @Test void sessionExtensionsListResult_nested() { var ext = new Extension("ext-1", "My Extension", ExtensionSource.PROJECT, ExtensionStatus.RUNNING, 1234L); @@ -572,11 +536,6 @@ void sessionExtensionsListResult_enums() { assertThrows(IllegalArgumentException.class, () -> ExtensionStatus.fromValue("unknown")); } - @Test - void sessionExtensionsReloadResult_empty() { - assertNotNull(new SessionExtensionsReloadResult()); - } - @Test void sessionFleetStartResult_record() { var result = new SessionFleetStartResult(true); @@ -665,16 +624,6 @@ void sessionLogResult_record() { assertEquals(id, result.eventId()); } - @Test - void sessionMcpDisableResult_empty() { - assertNotNull(new SessionMcpDisableResult()); - } - - @Test - void sessionMcpEnableResult_empty() { - assertNotNull(new SessionMcpEnableResult()); - } - @Test void sessionMcpListResult_nested() { var server = new McpServer("my-mcp", McpServerStatus.CONNECTED, McpServerSource.USER, null); @@ -694,30 +643,6 @@ void sessionMcpListResult_status_enum_all_values() { assertThrows(IllegalArgumentException.class, () -> McpServerStatus.fromValue("unknown-status")); } - @Test - void sessionMcpReloadResult_empty() { - assertNotNull(new SessionMcpReloadResult()); - } - - @Test - void sessionModeGetResult_enum() { - var result = new SessionModeGetResult(SessionModeGetResult.SessionModeGetResultMode.INTERACTIVE); - assertEquals(SessionModeGetResult.SessionModeGetResultMode.INTERACTIVE, result.mode()); - assertEquals("interactive", result.mode().getValue()); - for (var mode : SessionModeGetResult.SessionModeGetResultMode.values()) { - assertEquals(mode, SessionModeGetResult.SessionModeGetResultMode.fromValue(mode.getValue())); - } - assertThrows(IllegalArgumentException.class, - () -> SessionModeGetResult.SessionModeGetResultMode.fromValue("unknown")); - } - - @Test - void sessionModeSetResult_enum() { - var result = new SessionModeSetResult(SessionModeSetResult.SessionModeSetResultMode.AUTOPILOT); - assertEquals(SessionModeSetResult.SessionModeSetResultMode.AUTOPILOT, result.mode()); - assertEquals("autopilot", result.mode().getValue()); - } - @Test void sessionModelGetCurrentResult_record() { var result = new SessionModelGetCurrentResult("claude-sonnet-4.5", null, null); @@ -737,11 +662,6 @@ void sessionPermissionsHandlePendingPermissionRequestResult_record() { assertFalse(new SessionPermissionsHandlePendingPermissionRequestResult(false).success()); } - @Test - void sessionPlanDeleteResult_empty() { - assertNotNull(new SessionPlanDeleteResult()); - } - @Test void sessionPlanReadResult_record() { var result = new SessionPlanReadResult(true, "# Plan\n1. Do stuff", "/workspace/.plan"); @@ -750,11 +670,6 @@ void sessionPlanReadResult_record() { assertEquals("/workspace/.plan", result.path()); } - @Test - void sessionPlanUpdateResult_empty() { - assertNotNull(new SessionPlanUpdateResult()); - } - @Test void sessionPluginsListResult_nested() { var plugin = new Plugin("my-plugin", "marketplace-x", "1.2.3", true); @@ -779,16 +694,6 @@ void sessionShellKillResult_record() { assertFalse(new SessionShellKillResult(false).killed()); } - @Test - void sessionSkillsDisableResult_empty() { - assertNotNull(new SessionSkillsDisableResult()); - } - - @Test - void sessionSkillsEnableResult_empty() { - assertNotNull(new SessionSkillsEnableResult()); - } - @Test void sessionSkillsListResult_nested() { var item = new Skill("deploy", "Deploy the app", SkillSource.PROJECT, true, true, "/skills/deploy.md", null); @@ -849,24 +754,6 @@ void sessionUsageGetMetricsResult_nested() { assertEquals("gpt-5", result.currentModel()); } - @Test - void sessionWorkspaceCreateFileResult_empty() { - assertNotNull(new SessionWorkspaceCreateFileResult()); - } - - @Test - void sessionWorkspaceListFilesResult_record() { - var result = new SessionWorkspaceListFilesResult(List.of("src/Main.java", "README.md")); - assertEquals(2, result.files().size()); - assertEquals("src/Main.java", result.files().get(0)); - } - - @Test - void sessionWorkspaceReadFileResult_record() { - var result = new SessionWorkspaceReadFileResult("public class Main {}"); - assertEquals("public class Main {}", result.content()); - } - @Test void sessionsForkResult_record() { var result = new SessionsForkResult("forked-sess-id", null); @@ -909,15 +796,6 @@ void mcpDiscoverResult_nested() { assertTrue(result.servers().get(0).enabled()); } - @Test - void mcpDiscoverResult_source_enum_all_values() { - for (var src : DiscoveredMcpServerSource.values()) { - assertNotNull(src.getValue()); - assertEquals(src, DiscoveredMcpServerSource.fromValue(src.getValue())); - } - assertThrows(IllegalArgumentException.class, () -> DiscoveredMcpServerSource.fromValue("unknown-source")); - } - @Test void modelsListResult_nested() { var supports = new ModelCapabilitiesSupports(true, false);